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

Bug 271810

Summary: app-text/ghostscript-gpl-9.04-r4 ignores USE=-X
Product: Gentoo Linux Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: New packagesAssignee: Printing Team <printing>
Status: RESOLVED UPSTREAM    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Build log

Description Diego Elio Pettenò (RETIRED) gentoo-dev 2009-05-29 21:20:09 UTC
Check the attached build log under Gentoo/FreeBSD. The configure script checks for XdbeQueryExtension in that library (which is found) but the code never uses it; the library results not linked in with --as-needed (means it's unneeded). It should probably be patched to not try to link against it, but since right now it'll fail if libXext is not installed I'm going to add it to the dependencies to workaround the issue.

Thanks,
Diego
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-05-29 21:21:23 UTC
Created attachment 192929 [details]
Build log
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-05-29 21:22:43 UTC
Uhm just noticed that it's in the deps already and I have no X USE enabled on my g/fbsd box so it's an automagic dep it seems!
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2012-01-14 22:19:02 UTC
Something similar is still going on in recent versions: 
app-text/ghostscript-gpl-9.04-r4

after build with USE=-X 

pinacolada bin # scanelf -n *|grep x11
ET_EXEC libgs.so.9,libgtk-x11-2.0.so.0,libgdk-x11-2.0.so.0,libgobject-2.0.so.0,libglib-2.0.so.0,libpthread.so.0,libc.so.6 gsx
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2013-03-24 16:42:34 UTC
Ghostscript has about the most convoluted and absurd build system that I have ever seen. This is a mostly-cantfix, unless one of the real gurus takes a shot.
Comment 5 Matthias Maier gentoo-dev 2014-11-09 14:20:27 UTC
This is not reproducible with versions 9.10 and 9.15 currently in tree any more. I.e. both versions correctly refrain from testing X11 symbols as well as from linking against X11 libraries is USE="-X".