Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 162853 - without --deep, emerge does not ensure that all dependencies are satisfied
Summary: without --deep, emerge does not ensure that all dependencies are satisfied
Status: RESOLVED DUPLICATE of bug 47921
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 162692 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-01-19 22:29 UTC by Marcel Meckel
Modified: 2009-05-26 11:53 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 Marcel Meckel 2007-01-19 22:29:25 UTC
Problem: dev-util/intltool is installed and should depend on dev-perl/XML-Parser

somehow it does if i try to directly install intltool

# emerge -pv intltool

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

Calculating dependencies... done!
[ebuild  N    ] dev-perl/XML-Parser-2.34  0 kB 
[ebuild   R   ] dev-util/intltool-0.35.0  126 kB 

Total size of downloads: 126 kB

now searching for applications which are installed and depending already on dev-util/intltool:

# equery d intltool
[ Searching for packages depending on intltool... ]
x11-misc/shared-mime-info-0.18-r1
media-gfx/gimp-2.2.12
x11-themes/gnome-themes-extras-0.8.1
gnome-extra/libgsf-1.14.2
media-sound/audacious-1.2.2
x11-libs/gtk+-1.2.10-r12
media-plugins/audacious-plugins-1.2.2-r1


so i assume when i installed audacious or any other of the listed apps, dev-perl/XML-Parser should have been pulled in - but it hasn't (or i unmerged it maybe, i don't know).

with audacious depending on intltools, dev-perl/XML-Parser should be pulled in when trying to (re)install audacious. but it isn't:

# emerge -pv audacious

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

Calculating dependencies... done!
[ebuild   R   ] media-sound/audacious-1.2.2  USE="nls -chardet -gnome" 0 kB 

Total size of downloads: 0 kB
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-01-19 22:30:10 UTC
Has zero to do w/ portage.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-01-19 22:31:31 UTC
As you might have noticed, it already depends on XML-Parser...
Comment 3 Marcel Meckel 2007-01-19 22:33:48 UTC
please read my post again - XML-Parser does __not__ get pulled in when trying to install an app which indirectly depends on it.

or tell me what i'm missing here.
Comment 4 Marcel Meckel 2007-01-19 22:40:12 UTC
from audacious-1.2.2.ebuild:

--snip--
DEPEND="${RDEPEND}
        nls? ( dev-util/intltool )
        >=dev-util/pkgconfig-0.9.0"
--snip--

so dev-util/intltool with its dependency dev-perl/XML-Parser has to be installed before when using nls use-flag.

but it isn't. and thats a bug.

# emerge -pv audacious

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

Calculating dependencies... done!
[ebuild   R   ] media-sound/audacious-1.2.2  USE="nls -chardet -gnome" 0 kB

in contrast:

# emerge -pv intltool 

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

Calculating dependencies... done!
[ebuild  N    ] dev-perl/XML-Parser-2.34  0 kB 
[ebuild   R   ] dev-util/intltool-0.35.0  126 kB



emerge --info

Portage 2.1.1-r2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r4, 2.6.17-gentoo-r8-my i686)
=================================================================
System uname: 2.6.17-gentoo-r8-my i686 AMD Athlon(tm) XP 1700+
Gentoo Base System version 1.12.6
Last Sync: Tue, 16 Jan 2007 15:50:01 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LINGUAS="de"
MAKEOPTS="-j1"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aac alsa alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol bitmap-fonts bzip2 cdr cli cracklib crypt cups dbus divx dlloader dts dv dvb dvd dvdr dvdread elibc_glibc emboss encode ffmpeg firefox gif gmedia gpm gtk iconv imap imlib input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog jpeg kde kernel_linux libg++ linguas_de mad mbox mikmod mmx mmxext mp3 mpeg ncurses nls nptl nptlonly nsplugin ogg opengl oss pam pcre pdf png ppds pppd qt3 qt4 quicktime readline real realmedia reflection rtc sdl session spl sse ssl tcpd tiff truetype truetype-fonts type1-fonts udev usb userland_GNU video_cards_nv video_cards_nvidia vorbis win32codecs wmp xorg xprint xv xvid xvmc zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPT
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-01-19 22:45:24 UTC
*** Bug 162692 has been marked as a duplicate of this bug. ***
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-01-19 22:46:11 UTC
# emerge -C dev-perl/XML-Parser

# qlist -CIev intltool XML-Parser
dev-util/intltool-0.35.0

# grep intltool /var/lib/portage/world 
#

# emerge -uDpv world

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

Calculating world dependencies... done!
[ebuild  N    ] dev-perl/XML-Parser-2.34  225 kB 

Works just fine here, go try w/ portage-2.1.2
Comment 7 Zac Medico gentoo-dev 2007-01-19 22:54:10 UTC
(In reply to comment #0)
> with audacious depending on intltools, dev-perl/XML-Parser should be pulled in
> when trying to (re)install audacious. but it isn't:
> 
> # emerge -pv audacious

Without --deep, the resolver only traverses 1 level into dependencies.
Comment 8 Marcel Meckel 2007-01-19 23:01:02 UTC
> > # emerge -pv audacious
> 
> Without --deep, the resolver only traverses 1 level into dependencies.

right, with -D it works:

# emerge -pv -D audacious

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

Calculating dependencies... done!
[ebuild  N    ] dev-perl/XML-Parser-2.34  0 kB 
[ebuild   R   ] media-sound/audacious-1.2.2  USE="nls -chardet -gnome" 0 kB

-D for installing a single ebuild was new to me, i only used -D with "-uDN world" so far.

thanks for the info.
Comment 9 Marcel Meckel 2007-01-19 23:13:14 UTC
it should be annotated that -D/--deep in conjunction with single ebuild install doesn't work with <portage-1.2.2

so with current stable portage it might still be considered a bug which will become obsolete as soon as portage 1.2.2 will be stable.
Comment 10 Zac Medico gentoo-dev 2007-01-19 23:28:33 UTC
--deep is the only way to ensure that all dependencies are satisfied (even with the latest version of portage which is 2.1.2).  This bug can be considered a duplicate of bug 47921.
Comment 11 Zac Medico gentoo-dev 2007-01-19 23:29:28 UTC

*** This bug has been marked as a duplicate of bug 47921 ***