Bug 19038 - ghostscript-7.05.6-r1 wants to build X with -X in USE flags
Bug#: 19038 Product:  Gentoo Linux Version: 1.2 Platform: x86
OS/Version: Linux Status: RESOLVED Severity: minor Priority: P2
Resolution: FIXED Assigned To: printing@gentoo.org Reported By: deviantgeek@gmail.com
Component: Ebuilds
URL: 
Summary: ghostscript-7.05.6-r1 wants to build X with -X in USE flags
Keywords:  
Status Whiteboard: 
Opened: 2003-04-09 11:04 0000
Description:   Opened: 2003-04-09 11:04 0000
I'm trying to update ghostscript (used with Cups) on a server. Since this is a
server, I prefer not to have X installed on it but the ebuild wants to install it.

Here is the output of emerge -info
[snip]
Portage 2.0.47-r10 (default-1.0, gcc-2.95.3, glibc-2.2.5-r2,2.2.5-r8)
=================================================================
System uname: 2.4.20-xfs-r2 i686 Pentium III (Coppermine)
GENTOO_MIRRORS=" http://194.83.57.7/sites/www.ibiblio.org/gentoo/"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 crypt cups encode gif jpeg libg++ mmx ncurses oggvorbis pdflib spell
truetype xml2 berkdb gdbm java libwww pam png python readline slang ssl tcpd
tiff -3dnow apache2 -apm -arts -avi curl gd -gpm -gtk imap -imlib -kde mbox
-mikmod -motif -mpeg mysql -nls oav oci8 -opengl -oss perl -qt -quicktime samba
sasl -sdl slp snmp sse -svga -X xml -xmms -xv -ldap zlib"
COMPILER=""
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=i686 -O3 -pipe -fomit-frame-pointer"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="ccache sandbox"
[snip]

Gentoo Base System version 1.4.3.5

executing 'emerge -puv ghostscript' results in the following:
[snip]
[ebuild  N   ] dev-perl/Parse-RecDescent-1.80-r3
[ebuild  N   ] x11-base/opengl-update-1.5
[ebuild    U ] media-libs/freetype-2.1.4 [2.1.3-r2] -doc +zlib
[ebuild  N   ] x11-misc/ttmkfdir-3.0.9
[ebuild  N   ] media-libs/fontconfig-2.1-r1
[ebuild  N   ] app-arch/cabextract-0.6
[ebuild  N   ] x11-base/xfree-4.3.0-r1  +sse -nls +mmx +truetype -3dnow -3dfx
[ebuild  N   ] x11-libs/gtk+-1.2.10-r10  -nls
[ebuild  N   ] x11-libs/xft-2.0.1-r2
[ebuild  N   ] dev-perl/XML-Writer-0.4-r2
[ebuild  N   ] media-libs/audiofile-0.2.3-r1
[ebuild  N   ] media-sound/esound-0.2.29  +tcpd -alsa
[ebuild  N   ] gnome-base/ORBit-0.5.17  -nls
[ebuild  N   ] media-libs/giflib-4.1.0-r3  -X +gif
[ebuild  N   ] media-libs/imlib-1.9.14-r1
[ebuild  N   ] gnome-base/gnome-libs-1.4.2  -doc -nls -kde
[ebuild  N   ] media-libs/gdk-pixbuf-0.22.0  -doc
[ebuild  N   ] dev-perl/gtk-perl-0.7008-r9
[ebuild  N   ] dev-perl/ExtUtils-F77-1.14-r1
[ebuild  N   ] dev-perl/PDL-2.3.2-r2  -opengl
[ebuild  N   ] media-libs/mpeg-lib-1.3.1-r1
[ebuild  N   ] media-gfx/gimp-1.2.3-r3  +python -nls -gnome -aalib +perl
[ebuild  N   ] media-gfx/gimp-print-4.2.5-r1  +cups -doc -nls
[ebuild    U ] app-text/ghostscript-7.05.6-r1 [7.05.6] -X +cups -cjk
[snip]

It shows '-X' So why is it wanting X windows?
-P

------- Comment #1 From Martin Holzer (RETIRED) 2003-04-09 13:01:31 0000 -------
USE="-X -gnome -gtk -kde -avi -doc -dga -gif -sdl -qt -tcl -tk -tcltk" emerge
-epv ghostscript

this flags solves it.
try -qt -truetype

------- Comment #2 From Paul Slinski 2003-04-09 16:22:35 0000 -------
No, niether of those cut it here.

Why is this line included?
[snip]
cups? ( || ( gimp-print gimp-print-cups ) )"
[snip]

For non X systems, this will cause grief. Removing this line builds the package without the X hassle or USE flag tango.

I would recommend removing this line or making a modification to the logic.
-P

------- Comment #3 From Fabio Fracassi 2003-04-10 06:46:26 0000 -------
I think the problem is even wider: the same thing happens with gnome, I have
-gnome 
in my USE flags, and still it wants to install gnome gimp and gimp-print. I
have 
gimp-print-cups installed and like to keep it that way (ie. without gnome etc) 

I think this bug is related to Bug#18731 
(http://bugs.gentoo.org/show_bug.cgi?id=18731) 



------- Comment #4 From Paul Slinski 2003-04-11 09:26:20 0000 -------
Now, 2 days later, I 'emerge sync' and get the old ghostscript ebuild that I
had previously modified.

Without changing the ebuild again, I run 'emerge -pu world' and get a complete
mess.

I'm not complaining, this is just an update. After removing the offending line
again in the ebuild the X build dissapears.

------- Comment #5 From Fabio Fracassi 2003-04-15 02:27:44 0000 -------
Created an attachment (id=10666) [details]
Small patch which fixes the dependecies.

I think this schould fix the dependancys so that it respects USE="-gnome"
I don't know if it fixes the USE="-X" issue, too.

------- Comment #6 From Paul Slinski 2003-04-28 11:29:17 0000 -------
That fixes all. Will this be incorporated?

------- Comment #7 From Fabio Fracassi 2003-05-13 05:29:15 0000 -------
Perhaps this should be reassigend to printing@gentoo.org  
and connected to Bug #19937 since it is very simmilar. 
 

------- Comment #8 From Thomas Raschbacher 2003-06-19 04:02:28 0000 -------
will have a look .. sorry for the delay there was a problem with the mail alias
so i didn't get the Bugzilla mails

------- Comment #9 From Heinrich Wendel (RETIRED) 2003-07-16 07:05:22 0000 -------
ghostscript-7.05.6-r3 now in portage ...