Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 184927 - net-p2p/gift-* needs DEPEND on net-p2p/gift, not just RDEPEND
Summary: net-p2p/gift-* needs DEPEND on net-p2p/gift, not just RDEPEND
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo net-p2p team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-11 07:13 UTC by Darian Rackham
Modified: 2007-07-12 14:38 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 Darian Rackham 2007-07-11 07:13:22 UTC
Building net-p2p/gift with USE flags can fail if libgift is not already available.

Reproducible: Always

Steps to Reproduce:
With no previous installation of net-p2p/gift,

 USE="openft gnutella fasttrack ares" emerge net-p2p/gift

Actual Results:  
emerge tries to build the plugins before gift itself.  Each plugin build
fails in configure when it can't find libgift.

 Relevant error from configure:

  Checking for libgift >= 0.11.8 libgift < 0.12.0... Package libgift was
  not found in the pkg-config search path. Perhaps you should add the
  directory containing `libgift.pc' to the PKG_CONFIG_PATH environment variable

Expected Results:  
Since gift PDEPENDs on the plugins, and each of the plugins RDEPENDs on gift, emerge should build gift before the plugins.

Portage 2.1.3_rc7 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo i686)
=================================================================
System uname: 2.6.22-gentoo i686 AMD Athlon(tm) XP 2100+
Gentoo Base System release 1.12.10
Timestamp of tree: Wed, 11 Jul 2007 02:30:01 +0000
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.6.3, 1.7.9-r1, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X alsa berkdb bitmap-fonts cli cracklib crypt cups dri emacs fortran gdbm iconv isdnlog libg++ midi mudflap ncurses nptl nptlonly ogg openmp pam pcre perl pppd python readline reflection session spl sse2 ssl tcpd truetype-fonts type1-fonts unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nv vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-07-11 07:18:36 UTC
(In reply to comment #0)
> Since gift PDEPENDs on the plugins, and each of the plugins RDEPENDs on gift,
> emerge should build gift before the plugins.

Well, no. RDEPEND is for runtime dependencies, not for compile-time ones.
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2007-07-12 14:24:38 UTC
pena gift-ares # USE="openft gnutella fasttrack ares" emerge -pv gift

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

Calculating dependencies... done!
[ebuild  N    ] net-p2p/gift-0.11.8.1-r1  USE="ares fasttrack gnutella openft vorbis -imagemagick" 529 kB
[ebuild  N    ] net-p2p/gift-gnutella-0.0.11  USE="xml" 397 kB
[ebuild  N    ] net-p2p/gift-ares-0.3.0-r1  304 kB
[ebuild  N    ] net-p2p/gift-fasttrack-0.8.9-r1  439 kB
[ebuild  N    ] net-p2p/gift-openft-0.2.1.6  USE="berkdb" 331 kB

emerge does build gift here before the plugins but I will add the DEPEND as it should have it there.
Comment 3 Petteri Räty (RETIRED) gentoo-dev 2007-07-12 14:38:25 UTC
(In reply to comment #2)
> 
> emerge does build gift here before the plugins but I will add the DEPEND as it
> should have it there.
> 

Done.