Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 131189 - ghostscript-gnu-8.16-r2 ebuild sets wrong path
Summary: ghostscript-gnu-8.16-r2 ebuild sets wrong path
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High critical
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-24 23:27 UTC by Julian
Modified: 2006-08-18 18:11 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julian 2006-04-24 23:27:36 UTC
ghostscript-gnu-8.16-r2 as well as r1 (haven't tried others) don't set the correct search path and ghostscript doesn't find important scripts like gs_init.ps
This makes printing to a pdf as well as cups not work
You can see this by issuing gs -h which outputs

mafalda@batistuta # gs -h 
 ....... 
 Search path: 
    . : /home/batistuta/.fonts : 
    /var/tmp/portage/ghostscript-gnu-8.16-r2/image//usr/share/ghostscript/8.16/lib : 
    /var/tmp/portage/ghostscript-gnu-8.16-r2/image//usr/share/ghostscript/8.16/Resource : 
    /usr/share/fonts/default/ghostscript/ 
 For more information, see /var/tmp/portage/ghostscript-gnu-8.16-r2/image/usr/share/ghostscript/8.16/doc/Use.htm. 
 Report bugs to bug-ghostscript@gnu.org.

According to documentation this path comes from a macro GS_LIB_DEFAULT int the makefile. I'm not sure who sets that macro, but it's problably something with the ebuild or some wrongly set environment variable

I'm running gcc 4.1 but I have also tried with gcc 3.4.6 with same results.
Here is my emerge --info

Portage 2.1_pre9-r4 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r1, 2.6.16-beyond2 i686)
=================================================================
System uname: 2.6.16-beyond2 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.12.0_pre18
ccache version 2.4 [enabled]
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -ffast-math"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -ffast-math -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict userpriv"
GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s"
LINGUAS="en es it de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext 64bit X aac acl acpi adsl alsa amarok apache2 applet asm async automount avi berkdb bidi bitmap-fonts bluetooth cairo cdb cdda cddb cdio cdparanoia cdr cdrom cli commercial crypt css cups dbus dga dhcp directfb divx4linux dri dts dvd dvdr dvdread emacs emoticon encode enscript esd fame fat fbcon fbdev fbsplash ffmpeg firefox flac font-server fontconfig foomaticdb fortran freetype fuse gdbm geldkarte gif gimp gimpprint glibc-omitfp glitz glx gmail gmailtimestamps gpm gprof gtalk gtk2 hal hbci icq imlib input_devices_joystick input_devices_keyboard input_devices_mouse input_devices_vmmouse isdnlog jack java javascript jfs joystick jpeg kde kqemu libg++ libvisual libwww live logitech-mouse mad mikmod mmap mmx mmxext motif mp3 mpeg mpeg2 mpeg4 mplayer msn ncurses nls nptl nptlonly nsplugin ntfs nvidia octave ogg opengl oss pam pcre pdf pdflib perl png ppds pppd python qemu-fast qt qt4 quicktime quotas readline real reflection reiser4 reiserfs samba sblive screenshot sdl server session slp spell spl sqlite sqlite3 sse sse-filters sse2 ssl stream subtitles subversion swat tcpd theora threads tiff truetype truetype-fonts type1 type1-fonts udev unicode usb userlocales utf8 v4l v4l2 vcd video_cards_fbdev video_cards_nvidia video_cards_vga video_cards_vmware vidix visualization vlm vnc voice vorbis win32codecs wma wmf wxwindows xemacs xine xml2 xmms xorg xv xvid xvmc yahoo zeroconf zip zlib elibc_glibc kernel_linux linguas_en linguas_es linguas_it linguas_de userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-04-25 01:02:21 UTC
Not reproducable here:

Search path:
   . : /usr/share/ghostscript/8.16/lib :
   /usr/share/ghostscript/8.16/Resource :
   /usr/share/fonts/default/ghostscript/

# emerge -pv ghostscript-gnu

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] app-text/ghostscript-gnu-8.16-r2  USE="X -cjk cups -emacs -gtk" 0 kB
Comment 2 Julian 2006-04-25 04:40:17 UTC
(In reply to comment #1)
> Not reproducable here:
> Search path:
>    . : /usr/share/ghostscript/8.16/lib :
>    /usr/share/ghostscript/8.16/Resource :
>    /usr/share/fonts/default/ghostscript/

That's what it should be. I've found an old thread with someone having the same issue so I'm not the only one. There must be some environment variable or something that is messed up. Any hints how I can can trace the search path up the the point where it gets generated? I'd like to find the cause.
Comment 3 Kareem Hamdy 2006-05-06 14:54:21 UTC
When I "emerge sync", as it updates the Portage cache, I get:

Cannot resolve a virtual package name to an ebuild.

!!! This is a bug, please report it.  (virtual/ghostscript-0)

I thought maybe it was a fluke or something, so I emerge sync'd it again and got the same thing.

Kareem
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-05-06 14:56:51 UTC
(In reply to comment #3)
> When I "emerge sync", as it updates the Portage cache, I get:
> Cannot resolve a virtual package name to an ebuild.
> !!! This is a bug, please report it.  (virtual/ghostscript-0)

Completely unrelated, upgrade your portage finally (Bug 114798).
Comment 5 Kareem Hamdy 2006-05-06 14:59:38 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > When I "emerge sync", as it updates the Portage cache, I get:
> > Cannot resolve a virtual package name to an ebuild.
> > !!! This is a bug, please report it.  (virtual/ghostscript-0)
> 
> Completely unrelated, upgrade your portage finally (Bug 114798).
> 

I just finished doing so before I emerge sync'd it.  But if you insist, I'll re-emerge it again.

Thanks,
Kareem
Comment 6 Stefan Schweizer (RETIRED) gentoo-dev 2006-08-18 18:11:20 UTC
please use -esp or -gpl, thanks