Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 379749 - profile update is not applied to ROOT=... prefix resulting in file collision
Summary: profile update is not applied to ROOT=... prefix resulting in file collision
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 137867
  Show dependency tree
 
Reported: 2011-08-18 16:05 UTC by Dennis Schridde
Modified: 2013-02-15 23:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2011-08-18 16:05:17 UTC
Facts:
* profiles/updates/3Q-2011 contains:
move app-editors/gentoo-editor app-misc/editor-wrapper

* packages/app-misc/editor-wrapper-2.tbz2 exists, but I do not know whether it was created by the move mentioned above or whether it was actually build freshly. (If that is important, please hint me how to figure that out.)

* packages/app-editors/gentoo-editor-2.tbz2 does not exist.

Problem:
The move from profile/updates was apparently never executed for my ROOT=... prefixes. This results in portage trying to emerge the binary package of app-misc/editor-wrapper for this prefix, which in turn results in a file collision with the already installed app-editors/gentoo-editor-2.

Reproducible: Always
Comment 1 Dennis Schridde 2011-08-18 16:06:34 UTC
Portage 2.2.0_alpha51 (hardened/linux/ia64/server, gcc-4.4.5, glibc-2.12.2-r0, 2.6.27-openvz-repin.1 ia64)
=================================================================
System uname: Linux-2.6.27-openvz-repin.1-ia64-31-with-gentoo-2.0.3
Timestamp of tree: Thu, 18 Aug 2011 14:45:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r1
dev-lang/python:          2.7.1-r1, 3.2-r2
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.4.5
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo sunrise local
Installed sets: @system
ACCEPT_KEYWORDS="ia64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="ia64-unknown-linux-gnu"
CFLAGS="-pipe -mtune=mckinley -O2 -ftree-vectorize"
CHOST="ia64-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-pipe -mtune=mckinley -O2 -ftree-vectorize"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--usepkg --buildpkg --binpkg-respect-use --with-bdeps y --keep-going"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpri
v usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://distfile
s.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--hash-style=gnu"
MAKEOPTS="-j3"
PKGDIR="/var/cache/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="      --delete-excluded       --exclude='/games*/' --exclude='/gnome*/' --exclude='/gnustep*/' --exclude='/gpe*/' --exclude='/kde*/' --exclude='/lxde*/' --exclude='/rox*/' --exclude='/xfce*/'"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/cache/portage/gentoo"
PORTDIR_OVERLAY="/var/cache/portage/layman/sunrise /var/cache/portage/local"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS
Comment 2 Dennis Schridde 2011-08-18 16:08:17 UTC
Another fact:
# ROOT=... emerge --search gentoo-editor
Searching...    
[ Results for search key : gentoo-editor ]
[ Applications found : 1 ]

*  app-editors/gentoo-editor
      Latest version installed: 2
Comment 3 Zac Medico gentoo-dev 2011-08-18 16:12:48 UTC
You should be able to apply the moves with emaint like this:

    ROOT=... emaint --fix moveinst
Comment 4 Dennis Schridde 2011-08-18 16:38:39 UTC
(In reply to comment #3)
> You should be able to apply the moves with emaint like this:
>     ROOT=... emaint --fix moveinst
Would that destroy information you would need me to provide to debug this? Or can I safely run that operation without making it impossible to get at the root cause?
Comment 5 Zac Medico gentoo-dev 2011-08-18 16:48:36 UTC
We don't need any debugging info, since emerge just doesn't support updates for ROOT!=/ at this time. The reason is that information about applied updates is stored in $ROOT/var/cache/edb/mtimedb, and we need to fix emerge to handle it correctly for multiple ROOTs.
Comment 6 Dennis Schridde 2011-08-18 16:58:37 UTC
Thanks for the explanation and the workaround!