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

Bug 449732

Summary: app-misc/getopt: ~x86-linux prefix support
Product: Gentoo/Alt Reporter: Myk Taylor <myk002>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED OBSOLETE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Myk Taylor 2013-01-02 08:35:00 UTC
getopt USE=nls executes the following line in the ebuild:
  has_version sys-libs/glibc || libintl="-lintl"
Since the x86 prefix does not have glibc installed, it attempts to link the getopt binary with -lintl.  On x86, gettext does not provide libintl.so, instead providing preloadable_libintl.so (although, it does provide libintl.dylib on ~x64-macos).  On my x86 system, the getopt binary does link successfully without -lintl since the underlying libc provides the necessary symbols, so just removing the libintl="-lintl" line gets it working for me, but that does not seem like a portable solution.  Thoughts?

Reproducible: Always
Comment 1 Fabian Groffen gentoo-dev 2013-07-04 14:50:10 UTC
can you post a build log, it isn't yet clear to me why it fails for you (*-macos should work)
Comment 2 Myk Taylor 2013-07-08 22:34:53 UTC
(In reply to Fabian Groffen from comment #1)
> can you post a build log, it isn't yet clear to me why it fails for you
> (*-macos should work)

I'll see if I can get a build log off that machine.  For the record, *-macos /does/ work due to the way gettext is built on darwin.  It's only on x86 (and probably x86_64) that it fails.
Comment 3 Fabian Groffen gentoo-dev 2017-12-02 19:45:59 UTC
Sorry, closing this bug, can't solve this.