Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 69022 - app-text/ghostscript-7.07.1-r7 emerge fails
Summary: app-text/ghostscript-7.07.1-r7 emerge fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-26 07:50 UTC by Henri
Modified: 2004-12-05 08:17 UTC (History)
0 users

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 Henri 2004-10-26 07:50:32 UTC
app-text/ghostscript-7.07.1-r7 emerge fails giving following error message.

checking for pkg-config... no
*** The pkg-config script could not be found. Make sure it is
*** in your path, or set the PKG_CONFIG environment variable
*** to the full path to pkg-config.
*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config.
checking for freetype-config... /usr/bin/freetype-config
*** The pkg-config script could not be found. Make sure it is
*** in your path, or set the PKG_CONFIG environment variable
*** to the full path to pkg-config.
*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config.
configure: error: Library requirements (fontconfig) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix sopkg-config can find them.

!!! ERROR: app-text/ghostscript-7.07.1-r7 failed.
!!! Function econf, Line 449, Exitcode 1
!!! econf failed


Reproducible: Always
Steps to Reproduce:
1.emerge ghostscript


Actual Results:  
 

Expected Results:
Comment 1 Heinrich Wendel (RETIRED) gentoo-dev 2004-10-27 03:38:17 UTC
do you have pkgconfig installed? try to re/emerge pkgconfig 
Comment 2 Henri 2004-10-27 07:05:01 UTC
I didn't have pkgconfig.
After installing pkgconfig ghostscript emerged without problems.
Should it be added to dependences?
Comment 3 Jean-Claude Repetto 2004-11-08 08:31:25 UTC
Same problem here. pkgconfig should definitively be added to ghostscript dependences.
Comment 4 Etienne Dysli 2004-11-18 12:51:23 UTC
I ran into the same problem. Installing pkgconfig before ghostscript solved it.
Comment 5 Henri 2004-11-22 06:22:10 UTC
FROM: ghostscript-7.07.1-r7.ebuild
-----------------------------------------
RDEPEND="virtual/libc
        >=media-libs/jpeg-6b
        >=media-libs/libpng-1.2.1
        >=sys-libs/zlib-1.1.4
        X? ( virtual/x11 )
        cjk? ( media-fonts/arphicfonts
                media-fonts/kochi-substitute
                media-fonts/baekmuk-fonts )
        cups? ( net-print/cups )
        !virtual/ghostscript
        media-libs/fontconfig
        media-fonts/gnu-gs-fonts-std"

DEPEND="${RDEPEND}
        truetype? ( dev-util/pkgconfig )"
--------------------------------------------

I have USE=" ... -truetype ...".
So I guess that pkgconfig is needed in all cases not just
in case of truetype. ( I think that ebuild is saying that 
pkgconfig is needed only in the case of USE="... truetype ...")
Comment 6 edoceo 2004-11-27 22:49:38 UTC
So I saw this too:

imperium root # emerge --info
Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r1 i686)
=================================================================
System uname: 2.6.9-gentoo-r1 i686 AMD Athlon(TM) XP 1700+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://gentoo.ccccom.com http://gentoo.ccccom.com http://mymirror.asiaosc.org/gentoo/ http://adelie.polymtl.ca/ http://mirror.hamakor.org.il/pub/mirrors/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="alsa apache2 audiofile bash-completion bcmath bzlib cdr crypt cups curl dvd dvdr esd ftp gd imap mad mime mmap mmx oggvorbis openal pam pcntl pcre perl php posix postgres quicktime readline samba snmp soap sockets spell spl ssl usb x86 xml xml2 zlib"
Comment 7 edoceo 2004-11-27 23:48:42 UTC
So you probablly already knew but heres the fix (should I have sent a patch file (what is that diff -?) anyways).  I hacked up the file '/usr/portage/app-text/ghostscript/ghostscript-7.07.1-r7.ebuild' and added this to  the RDEPEND list (line 20)
  >=dev-util/pkgconfig-0.15.0

# Then I said...
imperium root # emerge -pv ghostscript

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] dev-util/pkgconfig-0.15.0  0 kB
[ebuild  N    ] app-text/ghostscript-7.07.1-r7  -X -cjk +cups -debug -emacs -truetype 0 kB

Total size of downloads: 0 kB
# I already had these downloaded...
# Then I said...
imperium root # emerge ghostscript
....
# Then I printed a sample page, and a pdf, and from my Windows machine, wow

Comment 8 Heinrich Wendel (RETIRED) gentoo-dev 2004-12-05 08:17:03 UTC
added