Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 521990

Summary: "The following packages are causing rebuilds: ..." message generation code searches for causes of rebuilds in ebuilds in repositories instead of VDB
Product: Portage Development Reporter: Arfrever Frehtes Taifersar Arahesis <arfrever.fta>
Component: Core - DependenciesAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: esigra
Priority: Normal Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 155723, 484436    
Attachments: _compute_abi_rebuild_info: fix bug #521990
_compute_abi_rebuild_info: fix bug #521990

Description Arfrever Frehtes Taifersar Arahesis 2014-09-02 16:55:11 UTC
"The following packages are causing rebuilds: ..." message generation code searches for causes of rebuilds in ebuilds in repositories instead of VDB (even with --dynamic-deps=n).
I use Portage trunk (2.2.12_p13; d569a2d7275c65f991ea0e9648edf9458be240fa).


# cat app-misc/A/A-1.ebuild
EAPI="5"
SLOT="0/1"
KEYWORDS="*"
# cat app-misc/A/A-2.ebuild
EAPI="5"
SLOT="0/2"
KEYWORDS="*"
# cat app-misc/B/B-0.ebuild
EAPI="5"
SLOT="0"
KEYWORDS="*"
RDEPEND="app-misc/A:="
# cat app-misc/C/C-0.ebuild
EAPI="5"
SLOT="0"
KEYWORDS="*"
RDEPEND="app-misc/A:="
# emerge -1 =app-misc/A-1
...
# emerge app-misc/{B,C}
...
# sed -e "s/:=//" -i app-misc/C/C-0.ebuild
# ebuild app-misc/C/C-0.ebuild manifest
...
# emerge -ptv app-misc/A

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

Calculating dependencies... done!
[ebuild  rR    ] app-misc/C-0::local  0 KiB
[ebuild  rR    ] app-misc/B-0::local  0 KiB
[ebuild  r  U  ]  app-misc/A-2:0/2::local [1:0/1::local] 0 KiB

Total: 3 packages (1 upgrade, 2 reinstalls), Size of downloads: 0 KiB

The following packages are causing rebuilds:

  (app-misc/A-2:0/2::local, ebuild scheduled for merge) causes rebuilds for:
    (app-misc/B-0:0/0::local, ebuild scheduled for merge)
Comment 1 Zac Medico gentoo-dev 2014-09-12 04:18:23 UTC
I have a written a test case to reproduce this bug:

  https://github.com/zmedico/portage/tree/bug_521990
Comment 2 Zac Medico gentoo-dev 2014-09-12 07:11:29 UTC
Created attachment 384604 [details, diff]
_compute_abi_rebuild_info: fix bug #521990

This patch fixes the test case.
Comment 3 Zac Medico gentoo-dev 2014-09-12 18:08:31 UTC
Created attachment 384632 [details, diff]
_compute_abi_rebuild_info: fix bug #521990

This updated patch has various small tweaks. Hopefully it's ready to commit now.
Comment 5 Zac Medico gentoo-dev 2017-08-11 21:35:03 UTC
Fixed in 2.2.14.