-
Notifications
You must be signed in to change notification settings - Fork 116
Replace Portage-Stable with Gentoo #4294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
t-lo
wants to merge
47
commits into
main
Choose a base branch
from
t-lo/portage-stable-to-gentoo
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
3509f27
WIP: move from portage-stable to plain Gentoo
t-lo 758fe93
Rename x-crossdev repo to crossdev so crossdev picks it automatically
chewi 9a3b12d
WIP: update_sdk_container: recreate cross toolchains
t-lo 0e7d417
sys-boot/shim(-signed): Install under /usr/share rather than /usr/lib
chewi a345a0d
.gitmodules: switch to our Gentoo fork
t-lo 0d0331b
Automatically generate package.mask to prioritise overlays over Gentoo
chewi 97869b3
sys-boot/shim-signed: Fix SRC_URI following revbump
chewi 5469058
update_ebuilds: Drop redundant script
chewi 6f1dc68
.github: Drop update-metadata-glsa workflow
chewi 1c456dd
SDK container update: remove crossdev initialisation
t-lo f6d55f4
Drop package repo overrides for the show-changes environment
chewi eb377c7
coreos-overlay: Drop old repoman config
chewi 6f67d30
Dockerfile.sdk-update: regenerate configs before doing anything else
t-lo 0676fd4
update_metadata: Drop ancient unused script
chewi 07dd163
Amend several documented references to portage-stable
chewi 5e75f85
find_overlay_dups: Replace instances of portage-stable
chewi 5237d5e
tag_release: Drop ancient unused script
chewi d032f94
checkout: Drop ancient unused script
chewi 7fd6ad7
build_library/dev_container_util.sh: Replace instances of portage-stable
chewi 3cea9c7
Gentoo: update to latest upstream
t-lo 3d21beb
gentoo: update to latest upstream
t-lo 8f3f1c6
bootstrap_sdk: Rename --portage_stable option to --gentoo_repo
chewi 7700f39
.github: Replace workflow for portage-stable with gentoo submodule one
chewi 1cecfc2
build_library/dev_container_util.sh: Drop basic Portage data from image
chewi 92d4254
coreos-base/emerge-gitclone: Bump for new dev container layout
chewi 1c398fa
bootstrap_sdk_container: Drop unused -l (log directory) option
chewi 7649da4
common.sh: Use SHA512 and BLAKE2B for SDK digests like Gentoo does
chewi 7d74158
Allow the SDK seed tarball to be given as a URL and overridden by CI
chewi 7759dd2
New version: main-4827.0.0-nightly-20260918-2100-INTERMEDIATE
2df8a84
New version: main-4827.0.0-nightly-20260918-2100
5f0b17b
Update mantle container image to latest HEAD
b6807c1
feat(kernel): enable CONFIG_FPROBE
RiRa12621 59eae17
New version: main-4830.0.0-nightly-20260921-2100
ad8272e
Revert failed version back to 4827.0.0+nightly-20260918-2100
1920c42
gentoo overlay: update to latest
t-lo f9e0e1d
sys-kernel/coreos-sources: Update from 6.12.110 to 6.12.111
3048ab0
New version: main-4831.0.0-nightly-20260922-2100
b564dbe
Gentoo: updated to latest upstream
t-lo 40ec925
update_sdk_container_image: fix the -a flag
t-lo c7f2b7a
Prefix: remove overlay, call out in Readme that porting is needed
t-lo fbb7b40
build_library/catalyst.sh: Fix providing local seed tarball
chewi 1f5844e
Gentoo: update to 2026-09-23
t-lo 153b4ff
Updated gentoo submodule to 2026-09-24
t-lo 0d217f2
Updated gentoo submodule to 2026-09-24
t-lo 6ddcbac
Updated gentoo submodule to 2026-09-25
t-lo 82bc5c0
ci-automation: Fix providing a custom seed tarball
chewi 6002195
dev-util/catalyst: Backport fix for recent Portage changes
chewi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
117 changes: 39 additions & 78 deletions
117
.github/workflows/update-portage-stable-packages-from-list.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,92 +1,53 @@ | ||
| name: Keep portage-stable packages updated | ||
| name: Keep Gentoo submodule updated | ||
| on: | ||
| schedule: | ||
| - cron: '0 7 * * 1' | ||
| - cron: '0 4 * * 0-4' | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| keep-packages-updated: | ||
| keep-gentoo-updated: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Check out scripts | ||
| uses: actions/checkout@v4 | ||
| uses: actions/checkout@v7 | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| path: ./scripts | ||
| - name: Check out Gentoo | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| repository: gentoo/gentoo | ||
| path: gentoo | ||
| # Gentoo is quite a large repo, so limit ourselves to last | ||
| # quarter milion of commits. It is about two years worth of changes. | ||
| # Is is needed by the sync script to find out the hash of the last commit | ||
| # that made the changes to the package. | ||
| fetch-depth: 250000 | ||
| ref: master | ||
| - name: Check out build scripts | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| repository: flatcar/flatcar-build-scripts | ||
| path: flatcar-build-scripts | ||
| - name: Update listed packages | ||
| id: update-listed-packages | ||
| token: ${{ secrets.BOT_PR_TOKEN }} | ||
| path: scripts | ||
| sparse-checkout: | | ||
| .gitmodules | ||
| .github/workflows/common.sh | ||
| sparse-checkout-cone-mode: false | ||
| - name: Update Gentoo submodule | ||
| id: update-gentoo | ||
| env: | ||
| WORK_SCRIPTS_DIR: "${{ github.workspace }}/scripts" | ||
| run: | | ||
| git config --global user.name "Flatcar Buildbot" | ||
| git config --global user.email "buildbot@flatcar-linux.org" | ||
| old_head=$(git -C scripts rev-parse HEAD) | ||
| packages_list=$(realpath scripts/.github/workflows/portage-stable-packages-list) | ||
| gentoo_repo=$(realpath gentoo) | ||
| build_scripts=$(realpath flatcar-build-scripts) | ||
| pushd scripts/sdk_container/src/third_party/portage-stable | ||
| while read -r package; do | ||
| if [[ ! -e "${package}" ]]; then | ||
| # If this happens, it means that the package was moved to overlay | ||
| # or dropped, the list ought to be updated. | ||
| echo "::warning title=${package}::Nonexistent package" | ||
| continue | ||
| fi | ||
| if [[ ! -e "${gentoo_repo}/${package}" ]]; then | ||
| # If this happens, it means that the package was obsoleted or moved | ||
| # in Gentoo. The obsoletion needs to be handled in the case-by-case | ||
| # manner, while move should be handled by doing the same move | ||
| # in portage-stable. The build should not break because of the move, | ||
| # because most likely it's already reflected in the profiles/updates | ||
| # directory. | ||
| echo "::warning title=${package}::Obsolete or moved package" | ||
| continue | ||
| fi | ||
| GENTOO_REPO="${gentoo_repo}" "${build_scripts}/sync-with-gentoo" "${package}" | ||
| done < <(grep '^[^#]' "${packages_list}") | ||
| popd | ||
| new_head=$(git -C scripts rev-parse HEAD) | ||
| updated=0 | ||
| if [[ "${new_head}" != "${old_head}" ]]; then | ||
| updated=1 | ||
| set -euo pipefail | ||
| source scripts/.github/workflows/common.sh | ||
| prepare_git_repo | ||
| submodule=sdk_container/src/third_party/gentoo | ||
| url=$(git -C "${WORK_SCRIPTS_DIR}" config --file .gitmodules --get "submodule.${submodule}.url") | ||
| branch=$(git -C "${WORK_SCRIPTS_DIR}" config --file .gitmodules --get "submodule.${submodule}.branch") | ||
| read -r latest_commit _ < <(git ls-remote --exit-code "${url}" "refs/heads/${branch}") | ||
| short_commit=${latest_commit:0:12} | ||
| git -C "${WORK_SCRIPTS_DIR}" update-index --cacheinfo "160000,${latest_commit},${submodule}" | ||
| if git -C "${WORK_SCRIPTS_DIR}" diff --cached --quiet -- "${submodule}"; then | ||
| echo 'UPDATE_NEEDED=0' >>"${GITHUB_OUTPUT}" | ||
| exit 0 | ||
| fi | ||
| todaydate=$(date +%Y-%m-%d) | ||
| echo "UPDATED=${updated}" >>"${GITHUB_OUTPUT}" | ||
| echo "TODAYDATE=${todaydate}" >>"${GITHUB_OUTPUT}" | ||
| - name: Create pull request for main branch | ||
| uses: peter-evans/create-pull-request@v6 | ||
| if: steps.update-listed-packages.outputs.UPDATED == 1 | ||
| git -C "${WORK_SCRIPTS_DIR}" commit --signoff -m "gentoo: Update to ${short_commit}" | ||
| cleanup_repo | ||
| echo 'UPDATE_NEEDED=1' >>"${GITHUB_OUTPUT}" | ||
| echo "LATEST_COMMIT=${latest_commit}" >>"${GITHUB_OUTPUT}" | ||
| echo "SHORT_COMMIT=${short_commit}" >>"${GITHUB_OUTPUT}" | ||
| - name: Create pull request | ||
| uses: peter-evans/create-pull-request@v8 | ||
| if: steps.update-gentoo.outputs.UPDATE_NEEDED == 1 | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| token: ${{ secrets.BOT_PR_TOKEN }} | ||
| path: scripts | ||
| branch: buildbot/weekly-portage-stable-package-updates-${{steps.update-listed-packages.outputs.TODAYDATE }} | ||
| branch: buildbot/update-gentoo-submodule | ||
| delete-branch: true | ||
| base: main | ||
| title: Weekly portage-stable package updates ${{steps.update-listed-packages.outputs.TODAYDATE }} | ||
| body: | | ||
| CI: TODO | ||
|
|
||
| -- | ||
|
|
||
| TODO: Changes. | ||
|
|
||
| -- | ||
|
|
||
| - [ ] changelog | ||
| - [ ] image diff | ||
| labels: main | ||
| draft: true | ||
| title: Update gentoo submodule to ${{ steps.update-gentoo.outputs.SHORT_COMMIT }} | ||
| body: Update `sdk_container/src/third_party/gentoo` to flatcar-hub/gentoo@${{ steps.update-gentoo.outputs.LATEST_COMMIT }}. | ||
| labels: auto-ci,jenkins-ci,main |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| [submodule "sdk_container/src/third_party/gentoo"] | ||
| path = sdk_container/src/third_party/gentoo | ||
| url = https://github.com/flatcar-hub/gentoo.git | ||
| branch = master | ||
| shallow = true | ||
|
t-lo marked this conversation as resolved.
t-lo marked this conversation as resolved.
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.