Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 522362 - USE flags mishandled by /etc/portage/package.env
Summary: USE flags mishandled by /etc/portage/package.env
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Configuration (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Portage team
URL: https://github.com/zmedico/portage/co...
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 484436
  Show dependency tree
 
Reported: 2014-09-08 06:24 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2014-09-17 18:16 UTC (History)
0 users

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


Attachments
config.setcpv: fix bug #522362 (config.setcpv-fix-bug-522362.patch,1.16 KB, patch)
2014-09-08 07:30 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-08 06:24:42 UTC
# cat /etc/portage/env/A
USE="static-libs"
# cat /etc/portage/package.env/A
sys-apps/dbus A
# emerge -Opv sys-apps/dbus

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

[ebuild   R    ] sys-apps/dbus-1.8.6::gentoo  USE="X static-libs* -debug -doc -selinux -systemd {-test}" ABI_MIPS="(-n32) (-n64) (-o32)" ABI_PPC="(-32) (-64)" ABI_S390="(-32) (-64)" ABI_X86="(64) -32 (-x32)" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB
# emerge -Opv sys-libs/e2fsprogs-libs

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

[ebuild   R    ] sys-libs/e2fsprogs-libs-1.42.12::gentoo  USE="nls -static-libs" ABI_MIPS="(-n32) (-n64) (-o32)" ABI_PPC="(-32) (-64)" ABI_S390="(-32) (-64)" ABI_X86="(64) -32 (-x32)" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB
# emerge -Opv sys-apps/dbus sys-libs/e2fsprogs-libs

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

[ebuild   R    ] sys-apps/dbus-1.8.6::gentoo  USE="X static-libs* -debug -doc -selinux -systemd {-test}" ABI_MIPS="(-n32) (-n64) (-o32)" ABI_PPC="(-32) (-64)" ABI_S390="(-32) (-64)" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] sys-libs/e2fsprogs-libs-1.42.12::gentoo  USE="nls static-libs*" ABI_MIPS="(-n32) (-n64) (-o32)" ABI_PPC="(-32) (-64)" ABI_S390="(-32) (-64)" ABI_X86="(64) -32 (-x32)" 0 KiB

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


See how static-libs is incorrectly enabled for sys-libs/e2fsprogs-libs in the last command.
Comment 1 Zac Medico gentoo-dev 2014-09-08 07:30:54 UTC
Created attachment 384382 [details, diff]
config.setcpv: fix bug #522362

Fix config.setcpv to regenerate USE settings in order to account for package.env USE settings from the previous package instance.
Comment 2 Zac Medico gentoo-dev 2014-09-08 18:52:11 UTC
I'll be maintaining this patch in the following branch:

  https://github.com/zmedico/portage/tree/bug_522362

In addition to the attached patch, it also includes a test case.
Comment 3 Zac Medico gentoo-dev 2014-09-09 21:22:49 UTC
I've pushed this to master as commit afe9939fc89927346806e8013535bcc15688cb69.
Comment 4 Zac Medico gentoo-dev 2014-09-17 18:16:01 UTC
This is fixed in 2.2.13.