Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 705136 - multilib-build.eclass - add support for other ABIs (profile-defined?)
Summary: multilib-build.eclass - add support for other ABIs (profile-defined?)
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Multilib team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-10 23:34 UTC by phkb
Modified: 2020-01-11 17:19 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description phkb 2020-01-10 23:34:04 UTC
Currently, multilib-build.eclass only handles ABIs defined in _MULTILIB_FLAGS in the eclass. I would like this to be customizable, so that user repositories can define their own ABIs and be able to use multilib packages with them.

My use case is cross-compiling existing gentoo multilib ebuilds on custom ABIs (not supported in crossdev). As an alternative to using MULTILIB_ABIS, I could set up one profile per ABI. However, that would require symlinking the ebuilds (as crossdev does) to multiple categories. Since the ABIs I target are multiple ABI variants of the same arch, I think that using MULTILIB_ABIS with user-defined ABIs would be a cleaner design.

So ideally I would define MULTILIB_ABIS in one profile, and have a way of adding that to the _MULTILIB_FLAGS array in multilib-build.eclass. Maybe with another variable in that profile?
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-01-11 15:04:23 UTC
USE flags can't be defined conditionally to profile variables, and especially not in relation with custom profiles.  If you need to customize it, you need to copy the eclass and copy/link all ebuilds you need into your overlay.  Then the PM will generate proper metadata separately.
Comment 2 phkb 2020-01-11 17:19:39 UTC
Ok. While I don't mind overriding one eclass, I don't want to override many multilib ebuilds. I will go the multiple profiles/portage roots way, then.