Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 521990 - "The following packages are causing rebuilds: ..." message generation code searches for causes of rebuilds in ebuilds in repositories instead of VDB
Summary: "The following packages are causing rebuilds: ..." message generation code se...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 155723 484436
  Show dependency tree
 
Reported: 2014-09-02 16:55 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2017-08-11 21:35 UTC (History)
1 user (show)

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


Attachments
_compute_abi_rebuild_info: fix bug #521990 (_compute_abi_rebuild_info-fix-bug-521990.patch,8.46 KB, patch)
2014-09-12 07:11 UTC, Zac Medico
Details | Diff
_compute_abi_rebuild_info: fix bug #521990 (_compute_abi_rebuild_info-fix-bug-521990.patch,8.96 KB, patch)
2014-09-12 18:08 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.