Disabling collision-protect from the command line (by setting the env var FEATURES to "-collision-protect") does not work. Reproducible: Didn't try Steps to Reproduce: 1. FEATURES=-collision-protect emerge -v --oneshot --nospinner xorg-x11 Actual Results: [...] existing file /usr/lib/X11/xkb/symbols/pc/tj is not owned by this package existing file /usr/lib/X11/xkb/symbols/pc/tml is not owned by this package existing file /usr/lib/X11/xkb/symbols/pc/tr is not owned by this package existing file /usr/lib/X11/xkb/symbols/pc/ua is not owned by this package existing file /usr/lib/X11/xkb/symbols/pc/us is not owned by this package existing file /usr/lib/X11/xkb/symbols/pc/us_intl is not owned by this package existing file /usr/lib/X11/xkb/symbols/pc/uz is not owned by this package existing file /usr/lib/X11/xkb/symbols/pc/yu is not owned by this package 9000 files checked ... * spent 38.8040361404 seconds checking for file collisions * This package is blocked because it wants to overwrite * files belonging to other packages (see messages above). * If you have no clue what this is all about report it * as a bug for this package on http://bugs.gentoo.org package x11-base/xorg-x11-6.8.0-r4 NOT merged Expected Results: Disable collision-protect for this single run of emerge. Gentoo Base System version 1.4.16 Portage 2.0.51-r15 (default-linux/x86/2004.0, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-infra-skas3-v7-cube-1 i686) ================================================================= System uname: 2.6.10-infra-skas3-v7-cube-1 i686 AMD Athlon(tm) XP 1700+ Python: dev-lang/python-2.3.4 [2.3.4 (#1, Nov 3 2004, 16:59:56)] distcc 2.16 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.5, 1.8.5-r2, 1.4_p6, 1.9.4, 1.6.3, 1.7.9 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r3 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium -mcpu=athlon-tbird -O3 -pipe" CHOST="i586-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /usr/vice/etc /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/afs/modload /etc/gconf /etc/make.globals /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium -mcpu=athlon-tbird -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks maketest sandbox sfperms strict test userpriv usersandbox" GENTOO_MIRRORS="ftp://ftp.easynet.nl/mirror/gentoo/ http://gentoo.inode.at/ ftp://gentoo.inode.at/source/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp/portage" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage-local--main--1.0" SYNC="rsync://hybrid.sascha.silbe.org/gentoo-portage" USE="x86 3dnow S3TC X acl afs alsa apm avi berkdb bitmap-fonts blas bzlib cdr crypt doc dvd dvdr encode f77 fam flac font-server foomaticdb fortran gdbm gif gimpprint gtk gtk2 gtkhtml guile hbci imagemagick imap imlib ipv6 j-noaim j-nomsn j-noyahoo jabber jpeg kerberos lapack lcms libg++ libwww lvm1 mad maildir makecheck mbox mikmod mmx monitor mozsvg mpeg mysql nas ncurses nls nodrm oggvorbis opengl oss pam pdflib plotutils png postgres python qt qtmt quicktime readline samba scanner sdl serial skey spell sqlite sse ssl tetex tiff truetype truetype-fonts type1-fonts unicode xml xml2 xv xvid zlib linguas_en,de" Unset: ASFLAGS, CBUILD, CTARGET, LDFLAGS
Try FEATURES="-collision-protect" emerge foobar. WORKSFORME
Same problem, after doing `cd /var/tmp/portage ; rm -rf *`?
FYI: The second run shows exactly the same results, so it is reproducable.
Regarding Comment #1: This is exactly what I did (see "Steps to Reproduce:"), but it didn't work. Regarding Comment #2: I'm trying that now.
Still the same problem, even after "rm -rf /var/tmp/portage/*".
I can also reproduce it with media-fonts/corefonts-1-r2, so it's not specific to xorg-x11.
Just tried a few combinations: make.conf cmdline result 1. "" "" -CP 2. "" CP CP 3. "" -CP -CP 4. CP "" CP 5. CP CP CP 6. CP -CP CP 7. -CP "" -CP 8. -CP CP CP 9. -CP -CP -CP Only the 6. case works other than expected.
I can't reproduce this. What portage version are you running? # emerge info | grep FEATURES FEATURES="buildpkg collision-protect confcache distlocks livecvsportage noinfo parallel-fetch sandbox" # FEATURES="-collision-protect" emerge info | grep FEATURES FEATURES="buildpkg confcache distlocks livecvsportage noinfo parallel-fetch sandbox" # FEATURES=-collision-protect emerge info | grep FEATURES FEATURES="buildpkg confcache distlocks livecvsportage noinfo parallel-fetch sandbox"
Also try some other flags (strict, userpriv, ...), the relevant code is generic so if it doesn't work for collision-protect it shouldn't work for anything. I highly suspect something local (alias? bash-function?).
I'm using the current stable for x86 (2.0.51-r15). For gcc etc. see "emerge info" output above. root@caravan:~# emerge info | grep FEATURES FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks fixpackages maketest sandbox severe sfperms strict test userpriv usersandbox" root@caravan:~# FEATURES="-collision-protect" emerge info | grep FEATURES FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks fixpackages maketest sandbox severe sfperms strict test userpriv usersandbox" root@caravan:~# FEATURES=-collision-protect emerge info | grep FEATURES FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks fixpackages maketest sandbox severe sfperms strict test userpriv usersandbox"
It also happens with other FEATURES on that host, so it's not collision-protect-specific: root@caravan:~# FEATURES=-ccache emerge info | grep FEATURES FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks fixpackages maketest sandbox severe sfperms strict test userpriv usersandbox" A clean environment doesn't change anything, so it's not an environment variable, alias or shell function: root@caravan:~# env -i FEATURES=-collision-protect emerge info | grep FEATURES FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks fixpackages maketest sandbox severe sfperms strict test userpriv usersandbox" There are no fancy files (like bashrc) in /etc/portage: root@caravan:~# ls -lR /etc/portage/ /etc/portage/: total 16 -rw-r--r-- 1 root root 34 Jan 17 21:26 mirrors -rw-r--r-- 1 root root 1235 Jan 17 21:36 package.keywords -rw-r--r-- 1 root root 261 Dec 31 16:00 package.use drwxrwsr-x 2 root portage 4096 Oct 21 22:31 sets /etc/portage/sets: total 0 root@caravan:~#
Ok, so lets see if we can at least check wether this is portage specific: $ env|grep USER $ USER=foo env|grep USER If that does give the expected result the next level would be python: $ python -c 'import os; print os.environ["USER"]' $ USER=foo python -c 'import os; print os.environ["USER"]'
That works fine so far: root@caravan:~# env|grep USER USER=root root@caravan:~# USER=foo env|grep USER USER=foo root@caravan:~# python -c 'import os; print os.environ["USER"]' root root@caravan:~# USER=foo python -c 'import os; print os.environ["USER"]' foo root@caravan:~#
I can reproduce the problem here with sys-apps/portage-2.0.51-r15. sponge ~ # env|grep USER USER=root sponge ~ # USER=foo env|grep USER USER=foo sponge ~ # emerge info | grep FEATURES FEATURES="autoaddcvs autoconfig collision-protect cvs digest distlocks maketest sandbox sfperms strict test" sponge ~ # FEATURES="-collision-protect" emerge info | grep FEATURES FEATURES="autoaddcvs autoconfig collision-protect cvs digest distlocks maketest sandbox sfperms strict test"
This problem only exists for disabling features currently enabled in /etc/make.conf it seems: sponge ~ # FEATURES="foo" emerge info | grep FEATURES FEATURES="autoaddcvs autoconfig collision-protect cvs digest distlocks foo maketest sandbox sfperms strict test"
i can reproduce it with maketest in FEATURES. Replace it with 'test' and FEATURES=-collision-protect emerge info should work again. FEATURES="-collision-protect maketest" emerge info --->>> broken FEATURES="-collision-protect -maketest" emerge info --->>> working
sed -i "s:maketest:test:" /etc/make.conf solved it here.
I can confirm that replacing "maketest" with "test" in FEATURES "solves" this problem. /etc/make.conf.example lists maketest, but not test. So which one is correct? And why does it affect all other FEATURES in such a way?
maketest is the old name, test is the new name
Will be out in 2.0.51.18.
This is broken in HEAD. Not sure if you want a new bug or not. kyoto root # FEATURES="-userpriv" emerge info Portage 1.574-cvs (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-hardened-r3 i686) ================================================================= System uname: 2.6.10-hardened-r3 i686 AMD Athlon(tm) XP 1800+ Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 16 2005, 23:00:21)] distcc: No such file or directory [disabled] ccache: No such file or directory [enabled] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.8.5-r3, 1.5, 1.7.9-r1, 1.6.3, 1.4_p6, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="no" CFLAGS="-mcpu=athlon-xp -march=athlon-xp -O3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-mcpu=athlon-xp -march=athlon-xp -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg ccache confcache digest distlocks parallel-fetch sandbox sfperms" GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo ftp://gentoo.chem.wisc.org/gentoo" MAKEOPTS="-j2" PKGDIR="/home/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="x86 3dnow X acpi alsa apm arts avi bash-completion berkdb bitmap-fonts bmp canna caps cdr cjk crypt cups curl dvd dvdr dvdread emboss encode esd ethereal f77 fam font-server foomaticdb fortran gdbm gif gpm gtk gtk2 imagemagick imap imlib ipv6 jpeg kde libg++ libwww lm_sensors mad maildir matroska mikmod mmx mono motif mp3 mpeg mysql ncurses nis nls nptl offensive oggvorbis openal opengl oss pam pdflib perl png posix python qt quicktime readline sdl spell sse ssl svg svga tcpd threads tiff truetype truetype-fonts type1-fonts wxwindows xml2 xmms xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS FEATURES output from emerge info shouldn't have Userpriv.
Fixed 13 hours ago. :P
... and counting.
Fixed on or before 2.0.51.22-r1
Looking through the batch of bugs, I'm not sure that some of these are actually fixed in stable. Others, the requirements have possibly changed after the initial fix was committed. If you think this bug has been closed incorrectly, please reopen or ask that it be reopened.
I've reimplemented the fix for this in svn r3320 because the -* hack seems quite non-intuitive to me.