Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 411469 - sys-apps/portage-2.2.0_alpha100 wants to emerge app-office/libreoffice despite using --onlydeps
Summary: sys-apps/portage-2.2.0_alpha100 wants to emerge app-office/libreoffice despit...
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 155723
  Show dependency tree
 
Reported: 2012-04-10 14:10 UTC by Paweł Rumian
Modified: 2012-04-10 19:12 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 Paweł Rumian 2012-04-10 14:10:34 UTC
Exactly as in topic - I want to prepare libreoffice build by merging only its dependencies, but portage wants to build the package also. 
I have tested it on another package, ant it seems to be working corrctly, so maybe it is specific to libreoffice ebuild/dependencies?

# emerge -av --onlydeps app-office/libreoffice

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

Calculating dependencies... done!
[ebuild  N     ] app-text/libexttextcat-3.2.0  USE="-static-libs" 845 kB
[ebuild  N     ] net-misc/npapi-sdk-0.27  63 kB
[ebuild  N     ] sci-libs/ufconfig-3.7.0  USE="-static-libs" 9 kB
[ebuild  N     ] media-libs/raptor-2.0.7  USE="curl unicode -debug -json -static-libs" 1,613 kB
[ebuild  N     ] app-text/mythes-1.2.2  USE="-static-libs" 4,792 kB
[ebuild  N     ] media-libs/libvisio-0.0.15  USE="-doc -static-libs" 311 kB
[ebuild  N     ] media-libs/sampleicc-1.6.6  USE="-static-libs" 646 kB
[ebuild  N     ] dev-cpp/libcmis-0.1.0  USE="-static-libs -test" 365 kB
[ebuild  N     ] dev-util/cppunit-1.12.1-r1  USE="-doc -examples -static-libs" 745 kB
[ebuild  N     ] dev-db/unixODBC-2.3.1  USE="minimal -odbcmanual -static-libs" 1,771 kB
[ebuild  N     ] app-text/libwps-0.2.4  USE="-debug -doc -static-libs" 266 kB
[ebuild  N     ] dev-util/mdds-0.5.4  91 kB
[ebuild  N     ] dev-libs/hyphen-2.8.3  USE="-static-libs" 600 kB
[ebuild  N     ] media-fonts/liberation-fonts-1.07.2  USE="X -fontforge" 1,301 kB
[ebuild  N     ] media-fonts/libertine-ttf-5.1.3.20110615  USE="X" 15,414 kB
[ebuild  N     ] sci-libs/colamd-2.7.4  USE="-static-libs" 54 kB
[ebuild  N     ] app-crypt/mhash-0.9.9.9-r1  USE="-static-libs" 910 kB
[ebuild  N     ] perl-core/File-Spec-3.330.0  132 kB
[ebuild  N     ] perl-core/Compress-Raw-Zlib-2.49.0  220 kB
[ebuild  N     ] sci-mathematics/lpsolve-5.5.2.0  USE="-static-libs" 720 kB
[ebuild  N     ] dev-libs/rasqal-0.9.28  USE="crypt mhash pcre xml -doc -gmp -static-libs -test" 1,473 kB
[ebuild  N     ] virtual/perl-File-Spec-3.330.0-r1  0 kB
[ebuild  N     ] virtual/perl-Compress-Raw-Zlib-2.49.0  0 kB
[ebuild  N     ] dev-perl/Archive-Zip-1.300.0  193 kB
[ebuild  N     ] dev-libs/redland-1.0.15  USE="ssl xml -berkdb -iodbc -mysql -odbc -postgres -sqlite -static-libs" 1,563 kB
[ebuild  N     ] app-office/libreoffice-3.5.2.2  USE="branding cups gtk svg (-aqua) -binfilter -dbus -eds -gnome -graphite -gstreamer -java -jemalloc -kde -mysql -nlpsolver -nsplugin -odk -opengl -pdfimport -postgres -test -vba -webdav -xmlsec" 113,440 kB
[ebuild  N     ] virtual/ooo-0  USE="-java" 0 kB
[ebuild  N     ] app-office/libreoffice-l10n-3.5.2  USE="-offlinehelp -templates" LINGUAS="pl -af -ar -as -ast -be -bg -bn -bo -br -brx -bs -ca -ca_XV -cs -cy -da -de -dgo -dz -el -en -en_GB -en_ZA -eo -es -et -eu -fa -fi -fr -ga -gd -gl -gu -he -hi -hr -hu -id -is -it -ja -ka -kk -km -kn -ko -kok -ks -ku -lb -lo -lt -lv -mai -mk -ml -mn -mni -mr -my -nb -ne -nl -nn -nr -nso -oc -om -or -pa_IN -pt -pt_BR -ro -ru -rw -sa_IN -sat -sd -sh -si -sk -sl -sq -sr -ss -st -sv -sw_TZ -ta -te -tg -th -tn -tr -ts -tt -ug -uk -uz -ve -vi -xh -zh_CN -zh_TW -zu" 4,253 kB

Total: 28 packages (28 new), Size of downloads: 151,781 kB

Would you like to merge these packages? [Yes/No] n

Quitting.



# emerge --info
Portage 2.2.0_alpha100 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.14.1-r2, 3.3.0-gentoo x86_64)
=================================================================
System uname: Linux-3.3.0-gentoo-x86_64-AMD_Athlon-tm-_II_X3_450_Processor-with-gentoo-2.1
Timestamp of tree: Tue, 10 Apr 2012 13:00:01 +0000
app-shells/bash:          4.2_p24
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2-r1
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.4
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.6
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.3 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo local-repo
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="pl"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi alsa amd64 bash-completion bluetooth branding bzip2 cairo cdda cdr cli cracklib crypt cups cxx dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdu gif gnutls gpm gtk iconv ipv6 jpeg lapack lcms mad mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf png ppds pppd python readline session smp spell sse sse2 ssl startup-notification svg sysfs tcpd threads tiff truetype udev unicode usb vdpau vorbis x264 xcb xml xmp xorg xulrunner xv xvid zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="directory" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon r600" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Zac Medico gentoo-dev 2012-04-10 14:19:49 UTC
You should be able to see a circular dependency if you use --tree or --debug.
Comment 2 Paweł Rumian 2012-04-10 17:23:39 UTC
Something like below - I guess this is a circular dependency when libreoffice pulls libreoffice-l10n, which pulls virtual/ooo, which finally pulls libreoffice, yes?

If yes, then should it be considered a bug in app-office/libreoffice, app-office/libreoffice-l10n or virtual/ooo? Or it is just a corner case which should be solved manually?

The attached output is slightly different from the one from my previous comment as it comes from a different machine, but the idea is the same. 

# emerge -opt libreoffice

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

Calculating dependencies... done!
[nomerge       ] app-office/libreoffice-3.5.2.2  USE="branding gtk svg (-aqua) -binfilter -cups -dbus -eds -gnome -graphite -gstreamer -java -jemalloc -kde -mysql -nlpsolver -nsplugin -odk -opengl -pdfimport -postgres -test -vba -webdav -xmlsec" 
[ebuild  N     ]  app-office/libreoffice-l10n-3.5.2  USE="-offlinehelp -templates" LINGUAS="pl -af -ar -as -ast -be -bg -bn -bo -br -brx -bs -ca -ca_XV -cs -cy -da -de -dgo -dz -el -en -en_GB -en_ZA -eo -es -et -eu -fa -fi -fr -ga -gd -gl -gu -he -hi -hr -hu -id -is -it -ja -ka -kk -km -kn -ko -kok -ks -ku -lb -lo -lt -lv -mai -mk -ml -mn -mni -mr -my -nb -ne -nl -nn -nr -nso -oc -om -or -pa_IN -pt -pt_BR -ro -ru -rw -sa_IN -sat -sd -sh -si -sk -sl -sq -sr -ss -st -sv -sw_TZ -ta -te -tg -th -tn -tr -ts -tt -ug -uk -uz -ve -vi -xh -zh_CN -zh_TW -zu" 
[ebuild  N     ]   virtual/ooo-0  USE="-java" 
[ebuild  N     ]    app-office/libreoffice-3.5.2.2  USE="branding gtk svg (-aqua) -binfilter -cups -dbus -eds -gnome -graphite -gstreamer -java -jemalloc -kde -mysql -nlpsolver -nsplugin -odk -opengl -pdfimport -postgres -test -vba -webdav -xmlsec" 
[nomerge       ] app-office/libreoffice-3.5.2.2  USE="branding gtk svg (-aqua) -binfilter -cups -dbus -eds -gnome -graphite -gstreamer -java -jemalloc -kde -mysql -nlpsolver -nsplugin -odk -opengl -pdfimport -postgres -test -vba -webdav -xmlsec" 
[nomerge       ]  net-print/cups-1.5.2-r1  USE="X filters gnutls jpeg pam png python ssl threads tiff usb -acl -dbus -debug -java -kerberos -ldap -perl -slp -static-libs -xinetd" LINGUAS="pl -da -de -es -eu -fi -fr -id -it -ja -ko -nl -no -pt -pt_BR -ru -sv -zh -zh_TW" 
[ebuild  N     ]   net-print/foomatic-filters-4.0.15  USE="-cups -dbus" 
[ebuild   R    ]    app-text/ghostscript-gpl-9.05  USE="cups*" 
[ebuild  N     ]     net-print/cups-1.5.2-r1  USE="X filters gnutls jpeg pam png python ssl threads tiff usb -acl -dbus -debug -java -kerberos -ldap -perl -slp -static-libs -xinetd" LINGUAS="pl -da -de -es -eu -fi -fr -id -it -ja -ko -nl -no -pt -pt_BR -ru -sv -zh -zh_TW" 
[ebuild  N     ]  dev-db/unixODBC-2.3.1  USE="minimal -odbcmanual -static-libs" 
[nomerge       ] app-office/libreoffice-3.5.2.2  USE="branding gtk svg (-aqua) -binfilter -cups -dbus -eds -gnome -graphite -gstreamer -java -jemalloc -kde -mysql -nlpsolver -nsplugin -odk -opengl -pdfimport -postgres -test -vba -webdav -xmlsec" 
[nomerge       ]  net-print/cups-1.5.2-r1  USE="X filters gnutls jpeg pam png python ssl threads tiff usb -acl -dbus -debug -java -kerberos -ldap -perl -slp -static-libs -xinetd" LINGUAS="pl -da -de -es -eu -fi -fr -id -it -ja -ko -nl -no -pt -pt_BR -ru -sv -zh -zh_TW" 
[ebuild  NS    ]   virtual/libusb-0 [1]
[ebuild  NS    ]    dev-libs/libusb-0.1.12-r7 [1.0.9_rc3] USE="cxx -debug -doc -static-libs" 
[nomerge       ] net-print/foomatic-filters-4.0.15  USE="-cups -dbus" 
[ebuild  N     ]  app-text/enscript-1.6.5.2-r1  USE="nls -ruby" 
[nomerge       ] app-office/libreoffice-3.5.2.2  USE="branding gtk svg (-aqua) -binfilter -cups -dbus -eds -gnome -graphite -gstreamer -java -jemalloc -kde -mysql -nlpsolver -nsplugin -odk -opengl -pdfimport -postgres -test -vba -webdav -xmlsec" 
[ebuild  N     ]  dev-perl/Archive-Zip-1.300.0 
[ebuild  N     ]   virtual/perl-Compress-Raw-Zlib-2.49.0 
[ebuild  N     ]    perl-core/Compress-Raw-Zlib-2.49.0 
[ebuild  N     ]   virtual/perl-File-Spec-3.330.0-r1 
[ebuild  N     ]    perl-core/File-Spec-3.330.0 
[ebuild  N     ]  dev-util/mdds-0.5.4 
[ebuild  N     ]  dev-cpp/libcmis-0.1.0  USE="-static-libs -test" 
[ebuild  N     ]  media-libs/libvisio-0.0.15  USE="-doc -static-libs" 
[ebuild  N     ]   dev-libs/boost-1.48.0-r1  USE="eselect python -debug -doc -icu -mpi -static-libs -test -tools" 
[ebuild  N     ]    app-admin/eselect-boost-0.4 
[ebuild  N     ]    dev-util/boost-build-1.48.0-r1  USE="python -examples" 
[ebuild  N     ]  dev-libs/redland-1.0.15  USE="ssl xml -berkdb -iodbc -mysql -odbc -postgres -sqlite -static-libs" 
[ebuild  N     ]   dev-libs/rasqal-0.9.28  USE="crypt mhash pcre xml -doc -gmp -static-libs -test" 
[ebuild  N     ]    app-crypt/mhash-0.9.9.9-r1  USE="-static-libs" 
[ebuild  N     ]  sci-mathematics/lpsolve-5.5.2.0  USE="-static-libs" 
[ebuild  N     ]   sci-libs/colamd-2.7.4  USE="-static-libs" 
[ebuild  N     ]    sci-libs/ufconfig-3.7.0  USE="-static-libs" 
[ebuild  N     ]  media-fonts/libertine-ttf-5.1.3.20110615  USE="X" 
[ebuild  N     ]  media-fonts/liberation-fonts-1.07.2  USE="X -fontforge" 
[ebuild  N     ]  dev-libs/hyphen-2.8.3  USE="-static-libs" 
[ebuild  N     ]  app-text/libwps-0.2.4  USE="-debug -doc -static-libs" 
[ebuild  N     ]  net-misc/npapi-sdk-0.27 
[ebuild  N     ]  dev-util/cppunit-1.12.1-r1  USE="-doc -examples -static-libs" 
[ebuild  N     ]  app-text/libexttextcat-3.2.0  USE="-static-libs" 
[ebuild  N     ]  media-libs/sampleicc-1.6.6  USE="-static-libs" 
[ebuild  N     ]  sys-libs/db-4.8.30  USE="cxx -doc -examples -java -tcl -test" 
[ebuild  N     ]  app-text/mythes-1.2.2  USE="-static-libs" 
[nomerge       ] app-office/libreoffice-3.5.2.2  USE="branding gtk svg (-aqua) -binfilter -cups -dbus -eds -gnome -graphite -gstreamer -java -jemalloc -kde -mysql -nlpsolver -nsplugin -odk -opengl -pdfimport -postgres -test -vba -webdav -xmlsec" 
[nomerge       ]  dev-libs/redland-1.0.15  USE="ssl xml -berkdb -iodbc -mysql -odbc -postgres -sqlite -static-libs" 
[ebuild  N     ]   media-libs/raptor-2.0.7  USE="curl unicode -debug -json -static-libs" 
[ebuild  N     ]  app-text/libwpg-0.2.1  USE="-doc -static-libs" 
[ebuild  N     ]   app-text/libwpd-0.9.4  USE="tools -doc -test"
Comment 3 Zac Medico gentoo-dev 2012-04-10 17:59:28 UTC
(In reply to comment #2)
> Something like below - I guess this is a circular dependency when
> libreoffice pulls libreoffice-l10n, which pulls virtual/ooo, which finally
> pulls libreoffice, yes?

Yes, seems a likely explanation.

> If yes, then should it be considered a bug in app-office/libreoffice,
> app-office/libreoffice-l10n or virtual/ooo?

No, circular dependenlcies triggered by PDEPEND are allowed

> Or it is just a corner case
> which should be solved manually?

We could make --onlydeps drop PDEPEND when it pulls in one of the packages in the arguments.
Comment 4 Paweł Rumian 2012-04-10 18:17:56 UTC
(In reply to comment #3)
> We could make --onlydeps drop PDEPEND when it pulls in one of the packages
> in the arguments.

I guess you are the only one that could make the decision :)

Anyway, thanks for explanation. I don't know if you'd prefer to close it or leave opened in case of implementing the above feature, so I leave it to you.
Comment 5 Zac Medico gentoo-dev 2012-04-10 19:12:31 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > We could make --onlydeps drop PDEPEND when it pulls in one of the packages
> > in the arguments.
> 
> I guess you are the only one that could make the decision :)

Okay. I don't feel like doing the work to implement this, so I'll just close it.