Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 518454 - circular dependency when trying to upgrade openssl or "world"
Summary: circular dependency when trying to upgrade openssl or "world"
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-29 08:07 UTC by Vieri
Modified: 2014-07-30 11:10 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 Vieri 2014-07-29 08:07:40 UTC
I'd like "emerge world" to work as a one-liner. Instead it fails with a circular dependency. This is a new system.

# emerge world  (emerge openssl produces similar failure message)

[nomerge       ] virtual/ssh-0  USE="-minimal"
[binary   R    ]  net-misc/openssh-6.6_p1-r1  USE="hpn kerberos* ldap* pam tcpd -X -X509 -bindist* -ldns -libedit (-selinux) -skey -static" 1,791 kB
[ebuild  N     ]   net-nds/openldap-2.4.38-r2  USE="berkdb crypt ipv6 kerberos odbc samba sasl ssl syslog tcpd -cxx -debug -experimental -gnutls -icu -iodbc -minimal -overlays -perl (-selinux) -slp -smbkrb5passwd" 5,390 kB
[binary  N     ]    dev-libs/cyrus-sasl-2.1.26-r3:2  USE="gdbm kerberos pam ssl urandom -authdaemond (-berkdb) -java -ldapdb -mysql -openldap -postgres -sample -sqlite -srp -static-libs" 711 kB
[ebuild  N     ]     virtual/krb5-0-r1  0 kB
[ebuild  N     ]      app-crypt/mit-krb5-1.12.1-r1  USE="keyutils pkinit threads -doc -openldap (-selinux) {-test} -xinetd" 11,670 kB
[ebuild     U  ]       dev-libs/openssl-1.0.1h-r2 [1.0.1g] USE="kerberos* tls-heartbeat zlib -bindist* -gmp -rfc3779 -sse2 -static-libs {-test} -vanilla" 4,375 kB

Total: 6 packages (1 upgrade, 4 new, 1 reinstall, 2 binaries), Size of downloads: 23,936 kB

 * Error: circular dependencies:

(app-crypt/mit-krb5-1.12.1-r1::gentoo, ebuild scheduled for merge) depends on
 (dev-libs/openssl-1.0.1h-r2::gentoo, ebuild scheduled for merge) (buildtime)
  (app-crypt/mit-krb5-1.12.1-r1::gentoo, ebuild scheduled for merge) (buildtime)

It might be possible to break this cycle
by applying any of the following changes:
- dev-libs/openssl-1.0.1h-r2 (Change USE: -kerberos)
- app-crypt/mit-krb5-1.12.1-r1 (Change USE: -pkinit)

Note that this change can be reverted, once the package has been installed.

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

dev-libs/openssl:0

  (dev-libs/openssl-1.0.1g::gentoo, installed) pulled in by
    >=dev-libs/openssl-0.9.6d:0[bindist=] required by (net-misc/openssh-6.6_p1-r1::gentoo, installed)

  (dev-libs/openssl-1.0.1h-r2::gentoo, ebuild scheduled for merge) pulled in by
    >=dev-libs/openssl-1.0.1h-r2[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] required by (app-crypt/mit-krb5-1.12.1-r1::gentoo, ebuild scheduled for merge)

sys-libs/e2fsprogs-libs:0

  (sys-libs/e2fsprogs-libs-1.42.10::gentoo, ebuild scheduled for merge) pulled in by
    >=sys-libs/e2fsprogs-libs-1.42.9[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] required by (app-crypt/mit-krb5-1.12.1-r1::gentoo, ebuild scheduled for merge)

  (sys-libs/e2fsprogs-libs-1.42.7::gentoo, installed) pulled in by
    ~sys-libs/e2fsprogs-libs-1.42.7 required by (sys-fs/e2fsprogs-1.42.7::gentoo, installed)



# emerge --info
Portage 2.2.8-r1 (hardened/linux/x86, gcc-4.7.3, glibc-2.17, 3.15.5-hardened-r1 i686)
=================================================================
System uname: Linux-3.15.5-hardened-r1-i686-Intel-R-_Pentium-R-_4_CPU_1.80GHz-with-gentoo-2.2
KiB Mem:     1810696 total,   1675020 free
KiB Swap:     524220 total,    524220 free
Timestamp of tree: Mon, 28 Jul 2014 00:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r3, 3.3.3
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-march=i686 -O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=i686 -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-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"
USE="acl ads apache2 berkdb bzip2 cli cluster cracklib crypt cxx dri freetds gdbm hardened iconv ipv6 jbig kerberos ldap logrotate modules ncurses nls nptl odbc openmp openrc pam pax_kernel pcre pic radius readline samba session ssl tcpd unicode urandom winbind x86 xattr xtpax zlib" ABI_X86="32" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 author" CAMERAS="ptp2" 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 ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="es_ES es" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 intel mach64 mga nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa via vmware nouveau" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2014-07-29 08:41:08 UTC
I'm not sure what you expect here, this is normal Portage behavior for some USE flags to trigger circular dependencies

It even printed you suggestions for solving the circular:

It might be possible to break this cycle
by applying any of the following changes:
- dev-libs/openssl-1.0.1h-r2 (Change USE: -kerberos)
- app-crypt/mit-krb5-1.12.1-r1 (Change USE: -pkinit)

Note that this change can be reverted, once the package has been installed.
Comment 2 Vieri 2014-07-29 08:51:14 UTC
(In reply to Samuli Suominen from comment #1)
> It even printed you suggestions for solving the circular:
> 
> It might be possible to break this cycle
> by applying any of the following changes:
> - dev-libs/openssl-1.0.1h-r2 (Change USE: -kerberos)
> - app-crypt/mit-krb5-1.12.1-r1 (Change USE: -pkinit)
> 
> Note that this change can be reverted, once the package has been installed.

I read the suggestion but I didn't understand why I should, eg., remove "kerberos" from openssl so I can emerge both openssl and mit-krb5 and then once I have them both, re-emerge openssl with "kerberos".
Is that really the way to do this?
Comment 3 Ben Kohler gentoo-dev 2014-07-29 13:20:31 UTC
Yes, that's how you resolve circular deps like these.  That's why it was suggested in the emerge output.
Comment 4 Vieri 2014-07-30 06:43:21 UTC
(In reply to Ben Kohler from comment #3)
> Yes, that's how you resolve circular deps like these.  That's why it was
> suggested in the emerge output.

or maybe one of the 2 ebuilds could be modified by setting PDEPEND. BTW, this circular dependency is new. I installed a fresh system a couple of weeks ago (with the same packages and same automated emerge commands within a custom script) and did not see this issue.
So the openssl / mit-krb5 circular dependency condition is very recent.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2014-07-30 10:16:23 UTC
This is a bug tracker and not a support forum. Try our web forums, mailing lists or IRC channels instead.
Comment 6 Vieri 2014-07-30 11:10:04 UTC
(In reply to Jeroen Roovers from comment #5)
> This is a bug tracker and not a support forum. Try our web forums, mailing
> lists or IRC channels instead.

I consider it a bug if a circular dependency appears when it didn't before and it breaks my "emerge world" but OK, I'll just post to the forum. Improving ebuilds is also a bug fix or enhancement. Fortunately this isn't a major issue.