Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 97819 - poppler pkgconfig for poppler-splash fails
Summary: poppler pkgconfig for poppler-splash fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-03 07:44 UTC by Armando Di Cianno (RETIRED)
Modified: 2005-07-13 10:44 UTC (History)
1 user (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 Armando Di Cianno (RETIRED) gentoo-dev 2005-07-03 07:44:08 UTC
app-text/poppler-0.3.0 installs a pkgconfig file called 'poppler-splash.pc' 
Some software I'm trying to package needs to use this.  However, this .pc file
explicitly includes a dependency to poppler-0.3.0, which does not exist as a .pc
file (i.e. it tries to find poppler-0.3.0.pc, not poppler.pc [which does exist]).

Removing the explicit dependency on the version makes things work fine.

Reproducible: Always
Steps to Reproduce:
1. poppler-splash.pc has "Requires: poppler-0.3.0" (default)
2.
# pkg-config --cflags --libs poppler-splash
Package poppler-0.3.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `poppler-0.3.0.pc'
to the PKG_CONFIG_PATH environment variable
Package 'poppler-0.3.0', required by 'poppler-splash', not found

3. Change popper-splash.pc to "Requires: poppler"
4.
# pkg-config --cflags --libs poppler-splash
-I/usr/include/poppler  -lpoppler



Expected Results:  
pkgconfig should not fail

Portage 2.0.51.22-r1 (!/usr/portage/profiles/default-linux/x86/2005.0,
gcc-3.4.4, glibc-2.3.5-r0, 2.6.12-gentoo-r1 i686)
=================================================================
System uname: 2.6.12-gentoo-r1 i686 Intel(R) Pentium(R) M processor 2.00GHz
Gentoo Base System version 1.6.12
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.9
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16-r1
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-pipe -O2 -march=pentium-m -mfpmath=sse -finline-functions
-funit-at-a-time -ftracer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-pipe -O2 -march=pentium-m -mfpmath=sse -finline-functions
-funit-at-a-time -ftracer"
DISTDIR="/var/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache cvs distlocks sandbox sfperms strict
userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://128.213.5.34/gentoo/
http://gentoo.mirrors.pair.com/ http://mirror.datapipe.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/var/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/portage"
PORTDIR_OVERLAY="/home/armando/Projects/GENTOO/gentoo-x86"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aalib acl alsa apm avi bash-completion berkdb bitmap-fonts crypt
cscope cups directfb emboss encode esd fbcon flac foomaticdb fortran gd gdbm gif
gnustep gpm gtk gtk2 guile imlib ipv6 jack jikes jpeg kerberos ldap libg++
libwww lirc mad mcal mikmod mmx mp3 mpeg mysql ncurses nptl odbc ogg oggvorbis
opengl oss pam pdflib perl pic png postgres python quicktime readline ruby samba
sasl sdl spell sse ssl tcpd tetex threads tiff truetype truetype-fonts
type1-fonts unicode vorbis xml xml2 xmms xv zlib userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Armando Di Cianno (RETIRED) gentoo-dev 2005-07-03 07:46:07 UTC
Adding printing herd to CC, as that herd is in poppler metadata.xml.
Comment 2 Heinrich Wendel (RETIRED) gentoo-dev 2005-07-10 08:46:47 UTC
maybe it just requires a newer pkgconfig version? 
Comment 3 Armando Di Cianno (RETIRED) gentoo-dev 2005-07-10 09:10:24 UTC
No, the Requires line in poppler-splash.pc is definitely wrong.

Right now it is:
"Requires: poppler-0.3.0"
... this makes it look for /usr/lib/pkgconfig/poppler-0.3.0.pc which does not exist.

The line needs to be one of:
Requires: poppler
Requires: poppler = 0.3.0
Requires: poppler >= 0.3.0

However, doing a quick ./configure in poppler-0.3.0 sources:
# grep Requires *.pc
poppler-cairo.pc:Requires: poppler-0.3.0 cairo >= 0.3
poppler-glib.pc:Requires: gobject-2.0 gdk-pixbuf-2.0
poppler-splash.pc:Requires: poppler-0.3.0 

... so since both -cairo.pc and -splash.pc explicitly request poppler-0.3.0 that
means that a poppler-0.3.0.pc needs to exist, which the sources do not create
(or install):
# ls -1 *.pc
poppler-cairo.pc
poppler-glib.pc
poppler-qt.pc
poppler-splash.pc
poppler.pc

... adding the version to the file name would seem to make it act more like
other files in /usr/lib/pkgconfig.

Either way, this misconfiguration is blocking some software I'm trying to get
into the tree.
Comment 4 Armando Di Cianno (RETIRED) gentoo-dev 2005-07-10 09:12:26 UTC
Definitely was a bug:

armando@asuka ~/Projects/poppler-0.3.3 $ grep Requires *.pc
poppler-cairo.pc:Requires: poppler = 0.3.3 cairo >= 0.5
poppler-glib.pc:Requires: poppler = 0.3.3 gobject-2.0 gdk-pixbuf-2.0
poppler-qt.pc:Requires: poppler = 0.3.3
poppler-splash.pc:Requires: poppler = 0.3.3

... so things seemed fixed in 0.3.3.

Maybe stabilization of this package should be expediated? (Hrm, ChangeLog says
it was added 6/27, so maybe not....)
Comment 5 Heinrich Wendel (RETIRED) gentoo-dev 2005-07-13 10:44:08 UTC
so not yet ;) you can still depend on that version -> fixed