Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 607910 - sys-apps/portage: Redesign FEATURES=multilib-strict to have some sanity
Summary: sys-apps/portage: Redesign FEATURES=multilib-strict to have some sanity
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Portage team
Depends on:
Reported: 2017-02-01 12:58 UTC by Michał Górny
Modified: 2022-04-06 14:51 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-02-01 12:58:03 UTC
FWICS, right now multilib-strict is a blunt tool. Per configuration in make.defaults:

MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib"
MULTILIB_STRICT_DENY="64-bit.*shared object"

1. It only bluntly tries to catch 64-bit objects in predefined list of directories,

2. it needs a lot of exemptions to handle 'lib as libexec' case,

3. it needs to be enabled conditionally to profile.

I think it'd be much more reasonable to have multilib-strict that:

1. Respects LIBDIR_* and checks each for ABI-specific libraries/executables,

2. is aware of 'lib as libexec', and therefore doesn't need lot of pointless exemptions.