Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 457142 - sys-apps/portage-2.2.0_alpha162 tries to resolve a slot change by downgrading the library and rebuilding all users
Summary: sys-apps/portage-2.2.0_alpha162 tries to resolve a slot change by downgrading...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL: http://kynes.de/~dschridde/debug.log.xz
Whiteboard:
Keywords: InVCS, REGRESSION
Depends on:
Blocks: 456888
  Show dependency tree
 
Reported: 2013-02-13 18:33 UTC by Dennis Schridde
Modified: 2013-02-14 10:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
debug log for backtracking try 3 (debug_backtracking_try_3.log.xz,439.38 KB, text/plain)
2013-02-14 02:17 UTC, Zac Medico
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2013-02-13 18:33:23 UTC
media-libs/libpng-1.5.14 had its SLOT variable changed from 0/15 to 0 without a revbump. Portage tries to downgrade to 1.5.13-r1 and rebuild all users of the library. I assume this is because the users depend on the 15 subslot and hence need to be rebuild if the subslot changes to 0. What I do not understand is why portage also wants to downgrade libpng itself...

Reproducible: Always




# emerge --info
Portage 2.2.0_alpha162 (default/linux/amd64/13.0/desktop/kde, gcc-4.7.2, glibc-2.16.0, 3.7.6-gentoo x86_64)
=================================================================
System uname: Linux-3.7.6-gentoo-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5000+-with-gentoo-2.2
KiB Mem:     6108400 total,   2826064 free
KiB Swap:    7813116 total,   7813116 free
Timestamp of tree: Wed, 13 Feb 2013 04:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p42
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r2::kde
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo systemd local enlightenment kde sunrise g-ctan
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -O2 -march=athlon64-sse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0 /var/lib/neatx/home"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /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="-pipe -O2 -march=athlon64-sse3"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--depclean-lib-check=n --with-bdeps=y --keep-going --nospinner"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildsyspkg compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://distfiles.gentoo.org"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j3"
PKGDIR="/var/cache/portage/packages"
PORTAGE_COMPRESS="xz"
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="/var/cache/portage/gentoo"
PORTDIR_OVERLAY="/var/lib/layman/systemd /var/cache/portage/local /var/cache/portage/overlays/enlightenment /var/cache/portage/overlays/kde /var/cache/portage/overlays/sunrise /var/lib/g-ctan"
[...]
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Zac Medico gentoo-dev 2013-02-13 18:36:43 UTC
Please attach a debug log, created as follow:

   emerge [arguments] --pretend --debug > debug.log 2>&1
   xz -9 debug.log
Comment 2 Dennis Schridde 2013-02-13 18:45:15 UTC
See also: http://forums.gentoo.org/viewtopic.php?p=7245774#7245774
Comment 3 Dennis Schridde 2013-02-13 18:50:03 UTC
(In reply to comment #1)
> Please attach a debug log, created as follow:
> 
>    emerge [arguments] --pretend --debug > debug.log 2>&1
>    xz -9 debug.log
Can't attach it, because it is too large. Please see the URL.

See also: http://kynes.de/~dschridde/debug.log.xz
Comment 4 Zac Medico gentoo-dev 2013-02-14 02:17:58 UTC
Created attachment 338824 [details]
debug log for backtracking try 3

During backtracking try 3, it does not handle the slot conflict correctly. It seems like a regression due to this change:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=0240b8b754ab5f642c50c863d4bec1dc3636ba29

The _slot_operator_update_probe method is called from _slot_conflict_backtrack_abi, and it's treating the sub-slot change as insignificant, and this triggers the slot_conflict backtracking pathway instead of the slot_conflict_abi backtracking pathway that we really want it to follow.
Comment 5 Zac Medico gentoo-dev 2013-02-14 03:42:14 UTC
I haven't made a test case for this yet, because it's a tricky case to trigger. I'm pretty sure that this will fix it though:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=9ea0fe8aabca82b8e8f6d05b0cde417316b635cd
Comment 6 Zac Medico gentoo-dev 2013-02-14 06:09:21 UTC
This is fixed in 2.1.11.52 and -2.2.0_alpha163.
Comment 7 Dennis Schridde 2013-02-14 10:39:26 UTC
(In reply to comment #6)
> This is fixed in 2.1.11.52 and -2.2.0_alpha163.

Thanks! And also thanks for being so quickly!