From ed7fcfd1206bbdb64888e4411b9b7dba06744ff8 Mon Sep 17 00:00:00 2001 From: Zakk Date: Sat, 10 Oct 2026 04:17:12 +1100 Subject: [PATCH] .github/workflows/nvchecker.yml: write repos.conf instead of eselect repository eselect repository downloads repositories.xml from api.gentoo.org first. On 2026-10-09 the runner resolved that host to IPv6 addresses only, could not reach them, and the eix job failed before any check ran. Neither repo needs the list: write their repos.conf entries directly and drop app-eselect/eselect-repository from the job's dependencies. Signed-off-by: Zakk --- .github/workflows/nvchecker.yml | 11 +++++++++-- scripts/nvchecker-eix.sh | 9 +++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/nvchecker.yml b/.github/workflows/nvchecker.yml index 39986d3891..60bf8fc2bc 100644 --- a/.github/workflows/nvchecker.yml +++ b/.github/workflows/nvchecker.yml @@ -31,13 +31,20 @@ jobs: - name: install depends run: | emerge --verbose --quiet --jobs "$(nproc)" --autounmask y --autounmask-continue y \ - app-eselect/eselect-repository \ app-portage/eix \ dev-vcs/git + # eselect repository fetches repositories.xml from api.gentoo.org, which the runner + # sometimes resolves to IPv6 only and cannot reach - name: setup gentoo git repo run: | - eselect repository add gentoo git https://github.com/gentoo-mirror/gentoo.git + mkdir -p /etc/portage/repos.conf + cat > /etc/portage/repos.conf/gentoo.conf << EOF + [gentoo] + location = /var/db/repos/gentoo + sync-type = git + sync-uri = https://github.com/gentoo-mirror/gentoo.git + EOF rm -rf /var/db/repos/gentoo emaint sync -r gentoo diff --git a/scripts/nvchecker-eix.sh b/scripts/nvchecker-eix.sh index 35930dd4e3..83a94cd664 100755 --- a/scripts/nvchecker-eix.sh +++ b/scripts/nvchecker-eix.sh @@ -2,9 +2,14 @@ # usage: nvchecker-eix.sh set -euo pipefail -echo "::group::eselect repository add and sync" +echo "::group::add and sync the overlay" repo_name=$(cat profiles/repo_name) -eselect repository add "$repo_name" git "file://${PWD}" +cat > "/etc/portage/repos.conf/${repo_name}.conf" << EOF +[${repo_name}] +location = /var/db/repos/${repo_name} +sync-type = git +sync-uri = file://${PWD} +EOF emerge --sync "$repo_name" egencache --jobs="$(nproc)" --update --repo "$repo_name" &> /dev/null eix-update