Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 651936 - sys-apps/portage: newer portage should block older repoman versions that are incompatible
Summary: sys-apps/portage: newer portage should block older repoman versions that are ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on: 651804
Blocks:
  Show dependency tree
 
Reported: 2018-03-29 16:15 UTC by Zac Medico
Modified: 2018-07-16 07:24 UTC (History)
0 users

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 Zac Medico gentoo-dev 2018-03-29 16:15:50 UTC
I tried using a blocker in the portage-2.3.14 ebuild but then I the blocker here because I experienced an issue where emerge did not resolve the blocker automatically:

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0fa8481e9f0b193c36a4c4041b16f56de97e4d0a

I suspect this code in the depgraph _serialize_tasks method may have prevented the blocker from solving, but I have not verified that:

https://gitweb.gentoo.org/proj/portage.git/tree/pym/_emerge/depgraph.py?h=portage-2.3.26#n7674

	if node == replacement_portage and \
		mygraph.child_nodes(node,
		ignore_priority=priority_range.ignore_medium_soft):
		# Make sure that portage always has all of it's
		# RDEPENDs installed first.
		return False
Comment 1 Larry the Git Cow gentoo-dev 2018-03-30 03:50:01 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=c5ad40dbe8f74dcdb2b08d42240e217a8ef440e6

commit c5ad40dbe8f74dcdb2b08d42240e217a8ef440e6
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2018-03-30 03:35:24 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2018-03-30 03:47:55 +0000

    depgraph._serialize_tasks: resolve portage/repoman blockers (bug 651936)
    
    When ensuring that all runtime dependencies are installed before
    a new instance of portage, ignore uninstalls. This makes it possible
    to solve a blocker between a new version of portage and an older
    version of repoman, where an uninstall task for the older version
    of repoman appears in the runtime dependencies of the new instance
    of portage.
    
    Bug: https://bugs.gentoo.org/651936

 pym/_emerge/depgraph.py | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)}
Comment 2 Zac Medico gentoo-dev 2018-03-30 04:09:43 UTC
The blocker will not solve automatically until people have the next version of portage installed, so we should not add the blocker until the next version of portage has been stabilized.
Comment 3 Zac Medico gentoo-dev 2018-07-16 07:23:01 UTC
The portage-2.3.43 ebuild blocks repoman-2.3.10.
Comment 4 Zac Medico gentoo-dev 2018-07-16 07:24:55 UTC
(In reply to Zac Medico from comment #3)
> The portage-2.3.43 ebuild blocks repoman-2.3.10.

Actually it's less than repoman-2.3.10:

>  !<app-portage/repoman-2.3.10