Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 482232

Summary: revdep-rebuild fails to understand quotes properly
Product: Gentoo Linux Reporter: Rick Farina (Zero_Chaos) <zerochaos>
Component: New packagesAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: autobuilds   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 346443    
Attachments: Use array for EMERGE_DEFAULT_OPTS

Description Rick Farina (Zero_Chaos) gentoo-dev 2013-08-23 17:19:37 UTC
When I run revdep-rebuild it chokes on my EMERGE_DEFAULT_OPTS

ozzie src # revdep-rebuild
 * Configuring search environment for revdep-rebuild
...trimmed...
[ 26% ]  *   broken /usr/lib64/cairo/libcairo-trace.so.0.0.0 (requires libbfd-2.22.so)
[ 100% ]                 
 * Generated new 3_broken.rr
 * Assigning files to packages
 *   /usr/lib64/cairo/libcairo-trace.so.0.0.0 -> x11-libs/cairo
...trimmed...
 * All prepared. Starting rebuild
emerge --complete-graph=y --oneshot  --ask-enter-invalid --keep-going=y --binpkg-respect-use=y --tree --verbose --with-bdeps=y --autounmask=n --buildpkg-exclude "sys-kernel/compat-drivers sys-kernel/ax88179_178a x11-drivers/ati-drivers x11-drivers/nvidia-drivers sys-fs/zfs-kmod sys-kernel/spl sys-power/bbswitch app-emulation/virtualbox-modules app-emulation/vmware-modules app-emulation/open-vm-tools-kmod" --usepkg-exclude "sys-kernel/compat-drivers sys-kernel/ax88179_178a x11-drivers/ati-drivers x11-drivers/nvidia-drivers sys-fs/zfs-kmod sys-kernel/spl sys-power/bbswitch app-emulation/virtualbox-modules app-emulation/vmware-modules app-emulation/open-vm-tools-kmod" --jobs=5 --load-average=3.5  x11-libs/cairo:0
..........
Usage: emerge [options]

emerge: error: Invalid Atom(s) in --buildpkg-exclude parameter: '"sys-kernel/compat-drivers'

 * revdep-rebuild failed to emerge all packages.
...trimmed....

However, the exact same command run directly works fine:

ozzie src # emerge --complete-graph=y --oneshot  --ask-enter-invalid --keep-going=y --binpkg-respect-use=y --tree --verbose --with-bdeps=y --autounmask=n --buildpkg-exclude "sys-kernel/compat-drivers sys-kernel/ax88179_178a x11-drivers/ati-drivers x11-drivers/nvidia-drivers sys-fs/zfs-kmod sys-kernel/spl sys-power/bbswitch app-emulation/virtualbox-modules app-emulation/vmware-modules app-emulation/open-vm-tools-kmod" --usepkg-exclude "sys-kernel/compat-drivers sys-kernel/ax88179_178a x11-drivers/ati-drivers x11-drivers/nvidia-drivers sys-fs/zfs-kmod sys-kernel/spl sys-power/bbswitch app-emulation/virtualbox-modules app-emulation/vmware-modules app-emulation/open-vm-tools-kmod" --jobs=5 --load-average=3.5  x11-libs/cairo:0

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild   R    ] x11-libs/cairo-1.10.2-r3  USE="X directfb glib opengl svg xcb (-aqua) -debug -doc (-drm) (-gallium) (-openvg) (-qt4) -static-libs" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

>>> Verifying ebuild manifests
>>> Emerging (1 of 1) x11-libs/cairo-1.10.2-r3
>>> Installing (1 of 1) x11-libs/cairo-1.10.2-r3
>>> Jobs: 1 of 1 complete                           Load avg: 2.75, 1.71, 1.41
 ...trimmed...

[ebuild   R    ] app-portage/gentoolkit-0.3.0.7  0 kB
Comment 1 Zac Medico gentoo-dev 2013-08-23 18:32:17 UTC
Created attachment 356772 [details, diff]
Use array for EMERGE_DEFAULT_OPTS

Something like this should fix it.
Comment 2 Rick Farina (Zero_Chaos) gentoo-dev 2013-08-29 01:54:57 UTC
Tested and fixes my issue.  Please merge this in, it affects a few thousand of my users.
Comment 3 Paul Varner (RETIRED) gentoo-dev 2013-08-29 17:39:47 UTC
Pushed to git: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=cd6a0dbd9e44eb2dd8c418d3d4733cb4e71962c2

I will work on a bump within the next few days, but it is available in gentoolkit-9999 now.
Comment 4 Paul Varner (RETIRED) gentoo-dev 2013-09-05 16:59:17 UTC
Released in gentoolkit-0.3.0.8