Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 687862 - sys-apps/portage: FEATURES=unmerge-backup || downgrade-backup should use quickpkg --include-config=y
Summary: sys-apps/portage: FEATURES=unmerge-backup || downgrade-backup should use quic...
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Portage team
Depends on:
Reported: 2019-06-11 14:36 UTC by Bernhard Kühnel
Modified: 2021-10-09 00:39 UTC (History)
1 user (show)

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

emerge --info output (emerge-info.txt,17.49 KB, text/plain)
2019-06-11 14:36 UTC, Bernhard Kühnel

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Kühnel 2019-06-11 14:36:29 UTC
Created attachment 579534 [details]
emerge --info output

In concurrence with Bug #464662, having FEATURES=unmerge-backup and then re-emerging a thus-created package with --usepkg=y causes config files and init scripts of that package to be silently overwritten by files containing only the line "# empty file because --include-config=n when `quickpkg` was used".

Steps to reproduce (similar with FEATURES=downgrade-backup):
1. make sure that FEATURES=buildpkg or buildsyspkg are NOT set and that there is no previous package for the tested ebuild present in PKGDIR
2. perform clean install of any package, so that we can unmerge it in step 3
emerge --usepkg=n sys-apps/lm_sensors && wc -l /etc/init.d/lm_sensors
==> should output a line count > 1, i.e. a plausible file content
3. trigger creation of binary package through unmerge-backup by re-emerging
FEATURES=unmerge-backup emerge --usepkg=n sys-apps/lm_sensors
4. merge the same package a third time, now using the generated package
emerge --usepkg=y sys-apps/lm_sensors && wc -l /etc/init.d/lm_sensors
==> observe that the file length now is reduced to one line
==> also observe that the init script (and config files) have been silently overwritten.
Comment 1 Bernhard Kühnel 2019-06-11 14:42:20 UTC
I am uncertain wether additionally, quickpkg --include-config=n should generate these dummy files at all. Maybe changing that behaviour would be a cleaner fix for this bug?