Posts Tagged ‘emerge’

Portage Errors: app-emulation/xen-tools NOT merged due to file collisions

If you are updating your Xen installation from 3.x to 4.x you may encounter something like this:

>>> Installing (1 of 3) app-emulation/xen-tools-4.1.0-r1
 * This package will overwrite one or more files that may belong to other
 * packages (see list below). You can use a command such as `portageq
 * owners / ` to identify the installed package that owns a
 * file. If portageq reports that only one package owns a file then do
 * NOT file a bug report. A bug report is only useful if it identifies at
 * least two or more packages that are known to install the same file(s).
 * If a collision occurs and you can not explain where the file came from
 * then you should simply ignore the collision since there is not enough
 * information to determine if a real problem exists. Please do NOT file
 * a bug report at http://bugs.gentoo.org unless you report exactly which
 * two packages install the same file(s). Once again, please do NOT file
 * a bug report unless you have completely understood the above message.
 * 
 * Detected file collision(s):
 * 
 *      /usr/include/xen/COPYING
 *      /usr/include/xen/arch-ia64.h
 *      /usr/include/xen/arch-x86_32.h
 *      /usr/include/xen/arch-x86_64.h
 *      /usr/include/xen/callback.h
 *      /usr/include/xen/dom0_ops.h
 *      /usr/include/xen/domctl.h
 *      /usr/include/xen/elfnote.h
 *      /usr/include/xen/event_channel.h
 *      /usr/include/xen/features.h
 *      /usr/include/xen/grant_table.h
 *      /usr/include/xen/kexec.h
 *      /usr/include/xen/memory.h
 *      /usr/include/xen/nmi.h
 *      /usr/include/xen/physdev.h
 *      /usr/include/xen/platform.h
 *      /usr/include/xen/sched.h
 *      /usr/include/xen/sysctl.h
 *      /usr/include/xen/trace.h
 *      /usr/include/xen/vcpu.h
 *      /usr/include/xen/version.h
 *      /usr/include/xen/xen-compat.h
 *      /usr/include/xen/xen.h
 *      /usr/include/xen/xencomm.h
 *      /usr/include/xen/xenoprof.h
 *      /usr/include/xen/arch-x86/xen-x86_32.h
 *      /usr/include/xen/arch-x86/xen-x86_64.h
 *      /usr/include/xen/arch-x86/xen.h
 *      /usr/include/xen/foreign/ia64.h
 *      /usr/include/xen/foreign/x86_32.h
 *      /usr/include/xen/foreign/x86_64.h
 *      /usr/include/xen/hvm/e820.h
 *      /usr/include/xen/hvm/hvm_info_table.h
 *      /usr/include/xen/hvm/hvm_op.h
 *      /usr/include/xen/hvm/ioreq.h
 *      /usr/include/xen/hvm/params.h
 *      /usr/include/xen/hvm/save.h
 *      /usr/include/xen/io/blkif.h
 *      /usr/include/xen/io/console.h
 *      /usr/include/xen/io/fbif.h
 *      /usr/include/xen/io/kbdif.h
 *      /usr/include/xen/io/netif.h
 *      /usr/include/xen/io/pciif.h
 *      /usr/include/xen/io/protocols.h
 *      /usr/include/xen/io/ring.h
 *      /usr/include/xen/io/tpmif.h
 *      /usr/include/xen/io/xenbus.h
 *      /usr/include/xen/io/xs_wire.h
 *      /usr/include/xen/xsm/acm.h
 *      /usr/include/xen/xsm/acm_ops.h
 *      /usr/include/xen/xsm/flask_op.h
 * 
 * Searching all installed packages for file collisions...
 * 
 * Press Ctrl-C to Stop
 * 
 * app-emulation/xen-3.2.1
 *      /usr/include/xen/COPYING
 *      /usr/include/xen/arch-ia64.h
 *      /usr/include/xen/arch-x86_32.h
 *      /usr/include/xen/arch-x86_64.h
 *      /usr/include/xen/callback.h
 *      /usr/include/xen/dom0_ops.h
 *      /usr/include/xen/domctl.h
 *      /usr/include/xen/elfnote.h
 *      /usr/include/xen/event_channel.h
 *      /usr/include/xen/features.h
 *      /usr/include/xen/grant_table.h
 *      /usr/include/xen/kexec.h
 *      /usr/include/xen/memory.h
 *      /usr/include/xen/nmi.h
 *      /usr/include/xen/physdev.h
 *      /usr/include/xen/platform.h
 *      /usr/include/xen/sched.h
 *      /usr/include/xen/sysctl.h
 *      /usr/include/xen/trace.h
 *      /usr/include/xen/vcpu.h
 * 
 * Package 'app-emulation/xen-tools-4.1.0-r1' NOT merged due to file
 * collisions. If necessary, refer to your elog messages for the whole
 * content of the above message.

>>> Failed to install app-emulation/xen-tools-4.1.0-r1

This problem arises because the new version of xen-tools takes over installing some of the files the old version of xen used to:

# portageq owners / /usr/include/xen/COPYING
app-emulation/xen-3.2.1
        /usr/include/xen/COPYING

To fix, unmerge the old version of xen then emerge –update xen to install the new versions of the xen-tools and xen packages:

# emerge --unmerge xen
# emerge --update --deep --newuse xen

Portage Errors: app-emulation/xen-tools check_python FAILED

You may run into something like this while updating or installing your Xen platform:

>>> Emerging (1 of 3) app-emulation/xen-tools-4.1.0-r1
* xen-4.1.0.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                   [ ok ]
* Package:    app-emulation/xen-tools-4.1.0-r1
* Repository: gentoo
* Maintainer: xen@gentoo.org
* USE:        acm elibc_glibc flask kernel_linux pygrub userland_GNU x86
* FEATURES:   sandbox
>>> Unpacking source...
>>> Unpacking xen-4.1.0.tar.gz to /var/tmp/portage/app-emulation/xen-tools-4.1.0-r1/work
>>> Source unpacked in /var/tmp/portage/app-emulation/xen-tools-4.1.0-r1/work
>>> Preparing source in /var/tmp/portage/app-emulation/xen-tools-4.1.0-r1/work/xen-4.1.0 ...
* Applying xen-tools-3.4.0-network-bridge-broadcast.patch ...                        [ ok ]
* Applying xen-tools-3.3.0-nostrip.patch ...                                         [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-emulation/xen-tools-4.1.0-r1/work/xen-4.1.0 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-emulation/xen-tools-4.1.0-r1/work/xen-4.1.0 ...
make -j2 -C tools
make: Entering directory `/var/tmp/portage/app-emulation/xen-tools-4.1.0-r1/work/xen-4.1.0/tools'
make[1]: Entering directory `/var/tmp/portage/app-emulation/xen-tools-4.1.0-r1/work/xen-4.1.0/tools'
make -C check all
make[2]: Entering directory `/var/tmp/portage/app-emulation/xen-tools-4.1.0-r1/work/xen-4.1.0/tools/check'
PYTHON=python LIBXENAPI_BINDINGS=n ACM_SECURITY=y ./chk build
Xen CHECK-BUILD  Mon Apr 11 16:19:03 EDT 2011
Checking check_crypto_lib: OK
Checking check_curl: unused, OK
Checking check_openssl_devel: OK
Checking check_python:
*** check_python FAILED: need python version >= 2.2
Checking check_python_devel: OK
Checking check_uuid_devel: OK
Checking check_xgettext: OK
Checking check_xml2: OK
Checking check_zlib_devel: OK
Checking check_zlib_lib: OK
make[2]: *** [check-build] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-emulation/xen-tools-4.1.0-r1/work/xen-4.1.0/tools/check'
make[1]: *** [subdir-all-check] Error 2
make[1]: Leaving directory `/var/tmp/portage/app-emulation/xen-tools-4.1.0-r1/work/xen-4.1.0/tools'
make: *** [subdirs-all] Error 2
make: Leaving directory `/var/tmp/portage/app-emulation/xen-tools-4.1.0-r1/work/xen-4.1.0/tools'
emake failed
* ERROR: app-emulation/xen-tools-4.1.0-r1 failed (compile phase):
*   compile failed
*
* Call stack:
*     ebuild.sh, line  56:  Called src_compile
*   environment, line 4879:  Called die
* The specific snippet of code:
*       emake -C tools ${myopt} || die "compile failed";
*
* If you need support, post the output of 'emerge --info =app-emulation/xen-tools-4.1.0-r1',
* the complete build log and the output of 'emerge -pqv =app-emulation/xen-tools-4.1.0-r1'.
* The complete build log is located at '/var/tmp/portage/app-emulation/xen-tools-4.1.0-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-emulation/xen-tools-4.1.0-r1/temp/environment'.
* S: '/var/tmp/portage/app-emulation/xen-tools-4.1.0-r1/work/xen-4.1.0'
 
>>> Failed to emerge app-emulation/xen-tools-4.1.0-r1, Log file:
 
>>>  '/var/tmp/portage/app-emulation/xen-tools-4.1.0-r1/temp/build.log'
 
* Messages for package app-emulation/xen-tools-4.1.0-r1:
 
* ERROR: app-emulation/xen-tools-4.1.0-r1 failed (compile phase):
*   compile failed
*
* Call stack:
*     ebuild.sh, line  56:  Called src_compile
*   environment, line 4879:  Called die
* The specific snippet of code:
*       emake -C tools ${myopt} || die "compile failed";
*
* If you need support, post the output of 'emerge --info =app-emulation/xen-tools-4.1.0-r1',
* the complete build log and the output of 'emerge -pqv =app-emulation/xen-tools-4.1.0-r1'.
* The complete build log is located at '/var/tmp/portage/app-emulation/xen-tools-4.1.0-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-emulation/xen-tools-4.1.0-r1/temp/environment'.
* S: '/var/tmp/portage/app-emulation/xen-tools-4.1.0-r1/work/xen-4.1.0'

The problem is due to Xen’s check-build not recognizing your Python 3x installation as “greater than or equal to 2.2.” You can resolve this by temporarily switching your Python profile:

# eselect python list
Available Python interpreters:
  [1]   python2.4
  [2]   python2.5
  [3]   python2.6
  [4]   python3.1 *
# eselect python set 3

It might be advisable to run python-updater and any other updates you have before compiling xen-tools with python2x; once you switch back to the latest version of python xen-tools will be picked up by python-updater and fail to compile.

For more information please see my bug report at http://bugs.gentoo.org/show_bug.cgi?id=363299

Portage Errors: groupadd: invalid option — ‘r’

You may encounter this error when installing packages that manage system groups if your installed version of shadow is older than version 4.1.4.2-r4:

>>> Installing (1 of 27) net-misc/dhcp-3.1.2_p1
 * Adding group 'dhcp' to your system ...
 *  - Groupid: next available
groupadd: invalid option -- 'r'
Usage: groupadd [options] GROUP

Options:
  -f, --force                   force exit with success status if the specified
                                group already exists
  -g, --gid GID                 use GID for the new group
  -h, --help                    display this help message and exit
  -K, --key KEY=VALUE           overrides /etc/login.defs defaults
  -o, --non-unique              allow create group with duplicate
                                (non-unique) GID

To fix, update shadow before continuing with your installation or upgrade:

# emerge --update shadow

Depending on the state of your system this may also update your PAM installation. It might be a good idea to run etc-update before moving on.

Return top
foxpa.ws
Online Marketing Toplist
Internet
Technology Blogs - Blog Rankings

Internet Blogs - BlogCatalog Blog Directory

Bad Karma Networks

Please Donate!


Made in Canada  •  There's a fox in the Gibson!  •  2010-12