Bug 120413 - ghostscript-esp 8.15.1 depends on gtk (while there is no dependancy defined)
Bug#: 120413 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: printing@gentoo.org Reported By: cp@uni-wh.de
Component: Printing
URL: 
Summary: ghostscript-esp 8.15.1 depends on gtk (while there is no dependancy defined)
Keywords:  
Status Whiteboard: 
Opened: 2006-01-26 05:14 0000
Description:   Opened: 2006-01-26 05:14 0000
In contrary to ghostscript-esp 7.x the new ebuild seems to depend on gtk. Is
this by design? I get this error:

/bin/sh: gtk-config: command not found
/bin/sh: gtk-config: command not found
src/dxmain.c:36:21: gtk/gtk.h: No such file or directory
src/dxmain.c:44: error: syntax error before "data"
src/dxmain.c:45: warning: function declaration isn't a prototype
src/dxmain.c:83: error: syntax error before "data"
src/dxmain.c:84: warning: function declaration isn't a prototype
src/dxmain.c: In function `read_stdin_handler':
src/dxmain.c:85: error: `data' undeclared (first use in this function)
src/dxmain.c:85: error: (Each undeclared identifier is reported only once
src/dxmain.c:85: error: for each function it appears in.)
src/dxmain.c:87: error: `condition' undeclared (first use in this function)
src/dxmain.c:87: error: `GDK_INPUT_EXCEPTION' undeclared (first use in this
function)
src/dxmain.c:88: warning: implicit declaration of function `g_print'
src/dxmain.c:91: error: `GDK_INPUT_READ' undeclared (first use in this
function)
src/dxmain.c:93: error: `fd' undeclared (first use in this function)
src/dxmain.c: In function `gsdll_stdin':
src/dxmain.c:108: error: `gint' undeclared (first use in this function)
src/dxmain.c:108: error: syntax error before "input_tag"
src/dxmain.c:114: error: `input_tag' undeclared (first use in this function)
src/dxmain.c:114: warning: implicit declaration of function `gdk_input_add'
src/dxmain.c:115: error: `GdkInputCondition' undeclared (first use in this
function)
src/dxmain.c:115: error: `GDK_INPUT_READ' undeclared (first use in this
function)
src/dxmain.c:115: error: `GDK_INPUT_EXCEPTION' undeclared (first use in this
function)

(Hundrets of messages deleted)

src/dxmain.c:332: warning: `cmyk_cyan' defined but not used
src/dxmain.c:337: warning: `cmyk_magenta' defined but not used
src/dxmain.c:342: warning: `cmyk_yellow' defined but not used
src/dxmain.c:347: warning: `cmyk_black' defined but not used
make[1]: *** [bin/../sobin/gsx] Error 1
make[1]: Leaving directory
`/var/tmp/portage/ghostscript-esp-8.15.1/work/espgs-8.15.1'
make: *** [so] Error 2

I'm using ghostscript for a server, no X, no Gnome or other graphical stuff
installed. I would really like to go on that way...
Thanks.

------- Comment #1 From Stefan Schweizer 2006-01-26 05:16:35 0000 -------
well, we apply a gtk2-patch for USE=gtk
but for use=-gtk I guess there is a disable-gtkmissing somewhere. Can you see a
way to get rid of this error?

------- Comment #2 From Christoph Peus 2006-01-27 08:15:34 0000 -------
The configure script of gs 8.15.1 offers an option "--without-x" but no
"--without-gtk", which is not so surprising because gtk doesn't make much sense
without X11, or do I get something wrong here? But though "--without-x" was
used when I tried to compile the packet, it complains about missing gtk
includes. So it seems to be a bug of gs 8.15.1 and not a bug of the ebuild...
But my knowledge of ebuild internals is next to non existant, so my thoughts
above may be complete nonsense....
What do you think?

------- Comment #3 From Stefan Schweizer 2006-02-05 09:51:46 0000 -------
thanks, fixed in portage