Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 289095 - eselect-1.2.6: handling of ROOT in multilib.bash is broken
Summary: eselect-1.2.6: handling of ROOT in multilib.bash is broken
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: eselect (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo eselect Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 277849
  Show dependency tree
 
Reported: 2009-10-14 19:54 UTC by Fabian Groffen
Modified: 2009-11-14 19:22 UTC (History)
1 user (show)

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


Attachments
eselect-multilib-prefix.patch (eselect-multilib-prefix.patch,786 bytes, patch)
2009-10-14 19:54 UTC, Fabian Groffen
Details | Diff
patch for libs/multilib.bash.in (multilib.bash.patch,714 bytes, patch)
2009-11-12 07:52 UTC, Ulrich Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Groffen gentoo-dev 2009-10-14 19:54:11 UTC
Hi Fabian,                                                                      
                                                                                
i was able to track the eselect-opengl issue down to a bug(?) in                
eselect itself. Anyway, see the attached patch against eselect-1.0.8's          
lib/multilib.bash. eselect opengl list/set works on MacOS and Solaris           
now. Maybe one should fix prefix' etc/ld.so.conf, so that the grep-ing          
above the patched branch works?                                                 

 -- Heiko
Comment 1 Fabian Groffen gentoo-dev 2009-10-14 19:54:43 UTC
Created attachment 207142 [details, diff]
eselect-multilib-prefix.patch
Comment 2 Tomáš Chvátal (RETIRED) gentoo-dev 2009-10-30 18:41:05 UTC
Guys should we x11 guys do here something in eselect opengl?
I found this bug when i searched for eselect-opengl.
Comment 3 Fabian Groffen gentoo-dev 2009-11-11 16:18:02 UTC
@eselect: can you please look at heiko's patch to see if it makes sense to you?
Comment 4 Ulrich Müller gentoo-dev 2009-11-11 17:24:35 UTC
Can you please attach ${EPREFIX}/etc/ld.so.conf from a Prefix system?
Comment 5 Fabian Groffen gentoo-dev 2009-11-11 19:57:08 UTC
There is no such file in Prefix, and if it accidentially was created, it is not used by /lib/ld.so (or alike) at all.
Comment 6 Fabian Groffen gentoo-dev 2009-11-11 20:04:08 UTC
The file should not be used, but Portage generates it regardless, I'll fix that since it makes no sense.  My file contains this at the moment:

# ld.so.conf autogenerated by env-update; make all changes to
# contents of /Library/Gentoo/etc/env.d directory
/Library/Gentoo/usr/local/lib
//Library/Gentoo/usr/lib/opengl/apple-opengl/lib
/Library/Gentoo/usr/powerpc-apple-darwin8/lib
/Library/Gentoo/usr/lib/gcc/powerpc-apple-darwin8/4.2.1
/Library/Gentoo/usr/lib/gcc/powerpc-apple-darwin8/4.3.3
/Library/Gentoo/usr/lib/gcc/powerpc-apple-darwin8/4.0.1
/Library/Gentoo/opt/apple-jdk-bin-1.5.0/jre/lib/ppc-macos/
/Library/Gentoo/opt/apple-jdk-bin-1.5.0/jre/lib/ppc-macos/native_threads/
/Library/Gentoo/opt/apple-jdk-bin-1.5.0/jre/lib/ppc-macos/xawt/
/Library/Gentoo/opt/apple-jdk-bin-1.5.0/jre/lib/ppc-macos/server/
/Library/Gentoo//usr/lib/qt4
/Library/Gentoo/usr/games/lib
/Library/Gentoo/usr/lib/octave-3.2.0
Comment 7 Ulrich Müller gentoo-dev 2009-11-12 07:47:19 UTC
This is not a prefix specific bug, because it will always fail for non-trivial ${ROOT}. Reassigning.
Comment 8 Ulrich Müller gentoo-dev 2009-11-12 07:52:57 UTC
Created attachment 209982 [details, diff]
patch for libs/multilib.bash.in

Attached patch fixes it for the case of non-trivial ${ROOT}.
Please test if it also fixes the Prefix case.
Comment 9 Fabian Groffen gentoo-dev 2009-11-13 19:49:39 UTC
I can confirm this patch makes eselect-opengl recognise the installed providers again on Prefix.  Thanks
Comment 10 Ulrich Müller gentoo-dev 2009-11-13 20:34:11 UTC
Fix committed to SVN (r723).
Comment 11 Fabian Groffen gentoo-dev 2009-11-14 13:47:30 UTC
Ulrich,
Do you plan to make a release out of this soon?  If not, would you allow me to make a -r1 including your patch to have a working eselect-* packages for Prefix?
Comment 12 Ulrich Müller gentoo-dev 2009-11-14 19:22:18 UTC
Fixed in eselect-1.2.7.
Version bump will follow when the distfile has propagated to mirrors.