WIP: impl profile evaluation #7

Draft
jturnerusa wants to merge 10 commits from feature/profiles into master
Owner
No description provided.
jturnerusa added 1 commit 2025-12-09 15:51:23 -06:00
impl profile evaluation
All checks were successful
Gentoo Utils / build-oci-image (pull_request) Successful in 11s
Gentoo Utils / build (pull_request) Successful in 40s
b41593eb0b
jturnerusa added 1 commit 2025-12-09 16:16:09 -06:00
add profile related source files to sources variable
All checks were successful
Gentoo Utils / build-oci-image (pull_request) Successful in 8s
Gentoo Utils / build (pull_request) Successful in 35s
82b292263c
jturnerusa force-pushed feature/profiles from 82b292263c to ccf45347c4 2025-12-10 19:56:51 -06:00 Compare
jturnerusa added 1 commit 2025-12-10 20:01:16 -06:00
read deprecated file in profiles
All checks were successful
Gentoo Utils / build-oci-image (pull_request) Successful in 8s
Gentoo Utils / build (pull_request) Successful in 35s
ce113dd0c4
jturnerusa force-pushed feature/profiles from ce113dd0c4 to d286909fb3 2025-12-10 20:13:27 -06:00 Compare
jturnerusa added 1 commit 2025-12-10 20:43:00 -06:00
add docs to profile module
All checks were successful
Gentoo Utils / build-oci-image (pull_request) Successful in 8s
Gentoo Utils / build (pull_request) Successful in 36s
8d0c48ae0f
penguin reviewed 2025-12-11 12:49:41 -06:00
@@ -0,0 +109,4 @@
.map(|s| Eapi::parse(s.trim()).map_err(str::to_string))
{
Ok(Ok(eapi)) => Some(eapi),
Ok(Err(rest)) => return Err(Error::Parser(rest)),
Owner

I think the default behavior for no eapi file per the spec is to treat it as eapi 0. Do we do that here, or are we erroring out if there's no eapi file?

Maybe it should assign eapi 0 on failure to parse (no eapi file), then later during evaluation of the parsed profile you throw an error saying you don't support eapi 0. That way eapi 0 (or other versions) could be supported later without having to change parsing logic.

I think the default behavior for no eapi file per the spec is to treat it as eapi 0. Do we do that here, or are we erroring out if there's no eapi file? Maybe it should assign eapi 0 on failure to parse (no eapi file), then later during evaluation of the parsed profile you throw an error saying you don't support eapi 0. That way eapi 0 (or other versions) could be supported later without having to change parsing logic.
jturnerusa marked this conversation as resolved
Owner

Profiles directory checklist per eapi 8 specification:

  • arch.list
  • categories
  • eapi
  • info_pkgs
  • info_vars
  • package.mask
  • profiles.desc
  • repo_name
  • thirdpartymirrors
  • use.desc
  • use.local.desc
  • desc/
  • updates/
Profiles directory checklist per eapi 8 specification: - [x] arch.list - [x] categories - [x] eapi - [ ] info_pkgs - [ ] info_vars - [x] package.mask - [ ] profiles.desc - [x] repo_name - [ ] thirdpartymirrors - [ ] use.desc - [ ] use.local.desc - [ ] desc/ - [ ] updates/
jturnerusa force-pushed feature/profiles from 8d0c48ae0f to 90feca00b6 2025-12-11 17:50:55 -06:00 Compare
jturnerusa changed title from impl profile evaluation to WIP: impl profile evaluation 2025-12-11 18:00:59 -06:00
jturnerusa force-pushed feature/profiles from 90feca00b6 to db43560be5 2025-12-11 20:00:41 -06:00 Compare
jturnerusa force-pushed feature/profiles from db43560be5 to e5e2c98e81 2025-12-11 22:15:47 -06:00 Compare
jturnerusa force-pushed feature/profiles from e5e2c98e81 to ea2aa940ea 2025-12-11 22:48:40 -06:00 Compare
jturnerusa added 1 commit 2025-12-12 21:01:35 -06:00
add package.mask entry to mock repo
All checks were successful
Gentoo Utils / build-oci-image (pull_request) Successful in 5s
Gentoo Utils / build (pull_request) Successful in 1m35s
f279e07367
jturnerusa force-pushed feature/profiles from f279e07367 to ea4d8e706b 2025-12-12 21:28:02 -06:00 Compare
jturnerusa force-pushed feature/profiles from ea4d8e706b to 6194121072 2025-12-12 21:36:13 -06:00 Compare
jturnerusa added 1 commit 2025-12-12 22:50:01 -06:00
read global package.mask
All checks were successful
Gentoo Utils / build-oci-image (pull_request) Successful in 3s
Gentoo Utils / build (pull_request) Successful in 44s
b929ddcafe
jturnerusa force-pushed feature/profiles from b929ddcafe to d2e8078c70 2025-12-12 22:53:37 -06:00 Compare
jturnerusa added 1 commit 2025-12-12 23:37:54 -06:00
parse arch.list
All checks were successful
Gentoo Utils / build-oci-image (pull_request) Successful in 3s
Gentoo Utils / build (pull_request) Successful in 32s
3d496d23ca
jturnerusa force-pushed feature/profiles from 3d496d23ca to f0f90af744 2025-12-12 23:38:26 -06:00 Compare
jturnerusa force-pushed feature/profiles from f0f90af744 to f7d9b95875 2025-12-12 23:50:21 -06:00 Compare
jturnerusa force-pushed feature/profiles from f7d9b95875 to a4e73069f4 2025-12-13 19:38:03 -06:00 Compare
jturnerusa force-pushed feature/profiles from a4e73069f4 to 789a68ff36 2025-12-22 02:47:17 -06:00 Compare
Some checks failed
Gentoo Utils / build-oci-image (push) Successful in 10s
Gentoo Utils / grep (push) Failing after 2m2s
Gentoo Utils / check-format (push) Failing after 2m6s
Gentoo Utils / docs (push) Failing after 2m5s
Gentoo Utils / build (push) Failing after 5s
Gentoo Utils / test (push) Has been skipped
Gentoo Utils / fuzz (push) Has been skipped
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feature/profiles:feature/profiles
git checkout feature/profiles
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: gentoo-utils/gentoo-utils-gitea#7