Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 32503 - sylpheed-claws >=0.9.4-r1 fail to emerge the first time if USE="pdflib" set
Summary: sylpheed-claws >=0.9.4-r1 fail to emerge the first time if USE="pdflib" set
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Marius Mauch (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-01 18:19 UTC by Steve Arnold
Modified: 2003-11-10 18:47 UTC (History)
3 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 Steve Arnold archtester gentoo-dev 2003-11-01 18:19:11 UTC
The ghostscript-viewer plugin fails to configure properly (ie, USE=pdflib) if
sylpheed-claws headers and sylpheed-claws.pc are not already installed.  The
work-around is to emerge twice, the first time with USE="-pdflib" and the second
time with.

The ebuild part where econf does the ghostscript-viewer plugin needs to include
the headers from the sylpheed-claws src dir, as well as tell pkg-config where to
find sylpheed-claws.pc (which is not installed yet either).

Reproducible: Always
Steps to Reproduce:
1. unmerge sylpheed-claws
2. USE="pdflib" emerge sylpheed-claws -v
3. watch econf die

Actual Results:  
sylpheed-claws ebuild fails

Expected Results:  
it should build

sarnold@rama gentoo $ emerge --info     
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-wolk4.9s)
=================================================================
System uname: 2.4.20-wolk4.9s i686 AMD Athlon(tm) XP
Gentoo Base System version 1.4.3.10p1
distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp -Os -pipe -funroll-loops"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=athlon-xp -Os -pipe -funroll-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs sandbox buildpkg ccache distcc userpriv usersandbox cvs"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo
ftp://mirror.iawnet.sandia.gov/pub/gentoo http://gentoo.oregonstate.edu
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="oss apm foomaticdb jpeg libg++ mad mikmod pdflib quicktime spell berkdb
slang readline arts java sdl libwww ssl perl imlib kde motif aalib acl acpi avi
bonobo cdr crypt cups dga directfb dvd emacs encode evo fbcon gb gd gdbm gif
gnome gpm gtkhtml gtk imap ipv6 lcms ldap junit mozilla mpeg mysql ncurses
opengl pam pda png plotutils python postgres qt samba sasl slp tcltk tcpd tetex
tiff truetype X xml xml2 xv zeo zlib alsa esd lame ogg vorbis oggvorbis xmms x86
mmx 3dnow -nls -svga"
Comment 1 J. Alexander Jacocks 2003-11-07 13:40:07 UTC
This is confirmed with sylpheed-claws-0.9.6-r1 as well:

jaj@slingshot[~]$ emerge --info
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.22-gentoo-test-r0)
=================================================================
System uname: 2.4.22-gentoo-test-r0 i686 Intel(R) Pentium(R) 4 Mobile CPU
1.60GHz
Gentoo Base System version 1.4.3.10
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -mcpu=pentium4 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config
/usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -mcpu=pentium4 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/
http://oss.redundant.com/pub/gentoo ftp://oss.redundant.com/pub/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ libwww
mad mikmod mpeg ncurses pdflib png quicktime sdl spell svga truetype xml2
xmms xv zlib gdbm berkdb slang readline arts X gpm tcpd pam ssl perl python
esd imlib oggvorbis gnome gtk qt kde motif opengl mozilla acpi dillo dvd
evo faad fam java ldap mmx offensive passfile pcmcia radeon xinerama -nls
video_cards_radeon"

Build Output:
<snip>
checking for pkg-config... /usr/bin/pkg-config
checking for sylpheed-claws >= 0.9.4claws1... Package sylpheed-claws was
not found in the pkg-config search path.
Perhaps you should add the directory containing `sylpheed-claws.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sylpheed-claws' found
 
configure: error: Library requirements (sylpheed-claws >= 0.9.4claws1) not
met; consider adjusting the PKG_CONFIG_PATH environment variable if your
libraries are in a nonstandard prefix so pkg-config can find them.
 
!!! ERROR: net-mail/sylpheed-claws-0.9.6-r1 failed.
!!! Function econf, Line 338, Exitcode 1
!!! econf failed

Thanks!
Comment 2 Steve Arnold archtester gentoo-dev 2003-11-09 23:18:44 UTC
I hacked up the pdf-viewer thing, and the pkg-config thing below works:

        # build the ghostscript-viewer plugin
        if use pdflib
        then
                cd ${S2}
                PKG_CONFIG_PATH=${S}:/usr/lib/pkgconfig econf \
                        --with-sylpheed-dir=${S} || die
                emake || die
        fi

I also tried adding the CPPFLAGS thing, which is supposed to work, but didn't:

   CPPFLAGS="-I/${S}/src -I/${S}/src/common -I/${S}/src/gtk \

I'm still clueless, so maybe my syntax is hosed.  However, the plugin configure
needs to find the sylpheed includes.  Hope this helps.
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2003-11-10 18:26:11 UTC
it's getting the include dirs from the pkgconfig file, we need to patch that.
I'm on it.
Comment 4 Seemant Kulleen (RETIRED) gentoo-dev 2003-11-10 18:36:55 UTC
actually -- I was about to check in a fix
Comment 5 Seemant Kulleen (RETIRED) gentoo-dev 2003-11-10 18:47:43 UTC
fixed