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 <zakk@gentoozh.org>
37 lines
1.2 KiB
Bash
Executable File
37 lines
1.2 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# usage: nvchecker-eix.sh
|
|
set -euo pipefail
|
|
|
|
echo "::group::add and sync the overlay"
|
|
repo_name=$(cat profiles/repo_name)
|
|
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
|
|
echo "::endgroup::"
|
|
echo "::group::eix search packages"
|
|
pkgs=$(
|
|
# Use availableversions minus live versions because bestversion selects 9999.
|
|
# shellcheck disable=SC2016
|
|
ACCEPT_LICENSE="*" ACCEPT_KEYWORDS="~amd64 ~arm64 ~loong ~riscv" EIX_LIMIT=0 \
|
|
NONLIVE='{first}{!*nv}{}{!plainversion=9999}{!ishardmasked}{isstable}{*nv=<version>}{}{}{}{last}{$nv}<category>/<name>-<$nv>\n{}{}' \
|
|
eix --pure-packages --in-overlay "$repo_name" --format '<availableversions:NONLIVE>' || [ "$?" -eq 1 ]
|
|
)
|
|
if [ -n "$pkgs" ]; then
|
|
mapfile -t atoms <<< "$pkgs"
|
|
pkgs=$(qatom -F "\"%{CATEGORY}/%{PN}\": \"%{PV}\"," "${atoms[@]}")
|
|
fi
|
|
pkgs="{ ${pkgs%,} }"
|
|
echo "$pkgs"
|
|
{
|
|
echo 'pkgs<<EOF'
|
|
echo "$pkgs"
|
|
echo 'EOF'
|
|
} >> "$GITHUB_OUTPUT"
|
|
echo "::endgroup::"
|