"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)
I have a written a test case to reproduce this bug: https://github.com/zmedico/portage/tree/bug_521990
Created attachment 384604 [details, diff] _compute_abi_rebuild_info: fix bug #521990 This patch fixes the test case.
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.
This is in git now: https://github.com/gentoo/portage/commit/3f0799054b4e5ef88feb59d20d262668ca79df33
Fixed in 2.2.14.