Summary: | sys-apps/portage: emerge attempts downgrade to www-client/firefox-68.0.2 with conflicting libvpx versions | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Zac Medico <zmedico> |
Component: | Core - Interface (emerge) | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | Adrian.Bassett, casta |
Priority: | Normal | Keywords: | InVCS, REGRESSION |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=692746 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 691278 | ||
Attachments: | unit test demonstrating the undesirable firefox downgrade |
Description
Zac Medico
2019-09-08 21:06:05 UTC
It looks like it tried to upgrade libvpx because of ffmpeg's >=media-libs/libvpx-1.4.0 dependency, and this triggered a slot conflict the version of libvpx pulled in by firefox's =media-libs/libvpx-1.7* dependency. Ultimately, --autounmask-backtrack=n terminated backtracking due to the autounmask changes triggered for the libvpx postproc USE flag. Thomas Deutschmann reports that after removing the firefox-68.0.2, wants to downgrade firefox to firefox-60.9.0 (this version has no dep on libvpx). It is masking libvpx-1.7.0:0/5 as resolution which is causing the downgrade. (In reply to Zac Medico from comment #1) > It looks like it tried to upgrade libvpx because of ffmpeg's > >=media-libs/libvpx-1.4.0 dependency, and this triggered a slot conflict the > version of libvpx pulled in by firefox's =media-libs/libvpx-1.7* dependency. > Ultimately, --autounmask-backtrack=n terminated backtracking due to the > autounmask changes triggered for the libvpx postproc USE flag. (In reply to Zac Medico from comment #2) > Thomas Deutschmann reports that after removing the firefox-68.0.2, wants to > downgrade firefox to firefox-60.9.0 (this version has no dep on libvpx). It > is masking libvpx-1.7.0:0/5 as resolution which is causing the downgrade. Both behaviors are likely side-effects from the fix for bug 692746, since this change makes it consider masking libvpx-1.7 even though it satisfies all involved parent atoms. In this case it's unclear (to an automated solver) whether it's better to have the latest version of libvpx or the latest version of firefox. However, it's possible that we could make it prefer upgrades for members of @world, which would be helpful if firefox is in @world and libvpx is not. Created attachment 589680 [details] unit test demonstrating the undesirable firefox downgrade The attached unit test demonstrates the problem: > [ebuild UD ] www-client/firefox-60.9.0 [69.0] > > !!! The following update(s) have been skipped due to unsatisfied dependencies > !!! triggered by backtracking: > > www-client/firefox:0 Patch posted for review: https://archives.gentoo.org/gentoo-portage-dev/message/7c6b9899c388693201797c214c2f7933 https://github.com/gentoo/portage/pull/460 The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage.git/commit/?id=1e61c439143b12d079e1fc344bbc0c192a84cbe0 commit 1e61c439143b12d079e1fc344bbc0c192a84cbe0 Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2019-09-11 02:54:51 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2019-09-12 01:31:21 +0000 _add_dep: less aggressive backtracking (bug 693836) In order to suppress the sort of aggressive backtracking that can trigger undesirable downgrades as in bug 693836, do not backtrack for an unsatisfied dependency if there's an available package in the runtime package mask which was involved in a slot conflict and satisfied all involved parent atoms. Instead, discard the current depgraph in favor of other backtracking configurations that may exist. This case would not have been encountered prior to the fix for bug 692746 which enabled backtracking for the type of slot conflict that is detected here. Fixes: 994ac00aa764 ("_slot_confict_backtrack: consider masking a package matched by all parent atoms (bug 692746)") Bug: https://bugs.gentoo.org/693836 Signed-off-by: Zac Medico <zmedico@gentoo.org> lib/_emerge/depgraph.py | 13 ++++ .../test_aggressive_backtrack_downgrade.py | 91 ++++++++++++++++++++++ 2 files changed, 104 insertions(+) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39bc8967e254a5c83d5e0e22db6a0b6d772ed01e commit 39bc8967e254a5c83d5e0e22db6a0b6d772ed01e Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2019-09-12 02:15:52 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2019-09-12 02:35:05 +0000 sys-apps/portage: Bump to version 2.3.76 #693836 erroneous firefox downgrade #693980 x11-module-rebuild: support SYMLINK_LIB=no #694000 OwnerSet: fix exclude-files support Bug: https://bugs.gentoo.org/691278 Bug: https://bugs.gentoo.org/693836 Bug: https://bugs.gentoo.org/693980 Bug: https://bugs.gentoo.org/694000 Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: Zac Medico <zmedico@gentoo.org> sys-apps/portage/Manifest | 1 + sys-apps/portage/portage-2.3.76.ebuild | 261 +++++++++++++++++++++++++++++++++ 2 files changed, 262 insertions(+) |