Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 921315 - Overlays should be able to override some profile configuration
Summary: Overlays should be able to override some profile configuration
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-03 22:32 UTC by Fat-Zer
Modified: 2024-01-04 13:49 UTC (History)
1 user (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 Fat-Zer 2024-01-03 22:32:44 UTC
Overlays should be able to override at least some profile configuration like USE/package masking for a specific arch.

------

Imaging that you have a `foo/bar` package with a `USE="baz"`. `USE="baz"` provides great optimizations but it works only on `arm` and there is no sense in porting it to other arches.

In main portage tree there is an easy solution for that:

  <tree>/profiles/package.use.mask
    foo/bar baz

  <tree>/profiles/arch/arm/package.use.mask
    foo/bar -baz

But if `foo/bar` is located in overlay there is no way to mask/unmask the USE flag for a specific arch, `<overlay>/profiles/arch/*` doesn't work at all.


Reproducible: Always
Comment 1 Zac Medico gentoo-dev 2024-01-03 23:19:32 UTC
From the portage man page, these configuration files are repo-level rather than profile-level, despite the fact that they live in a "profiles" directory:


       /var/db/repos/gentoo/profiles/
              arch.list
              categories
              info_pkgs
              info_vars
              license_groups
              make.defaults
              package.mask
              package.unmask
              package.use
              package.use.force
              package.use.mask
              package.use.stable.force
              package.use.stable.mask
              profiles.desc
              repo_name
              thirdpartymirrors
              use.desc
              use.force
              use.local.desc
              use.mask
              use.stable.mask
              use.stable.force
Comment 2 Vadim A. Misbakh-Soloviov (mva) gentoo-dev 2024-01-04 02:47:37 UTC
(In reply to Zac Medico from comment #1)
> From the portage man page, these configuration files are repo-level rather
> than profile-level, despite the fact that they live in a "profiles"
> directory:

Still, overriding gentoo-repo's masks (both flags, and packages) on overlay level is impossible at all, IIRC
(or, at least, huge PITA, if I remember a bit wrong)
Comment 3 Fat-Zer 2024-01-04 13:49:42 UTC
(In reply to Zac Medico from comment #1)
> From the portage man page, these configuration files are repo-level rather
> than profile-level, despite the fact that they live in a "profiles"
> directory:

Files in `<tree>/profiles/` are repo-level, but arch-specific files in `<tree>/profiles/arch/*` are part of the profile (inherited via `parent` from e.g. `<tree>/profiles/default/linux/arm/`).