From 04639417c4202f199f839e92e94c9fd9b1c70fce Mon Sep 17 00:00:00 2001 From: Jonathan Steffan Date: Sat, 25 Jul 2026 12:19:42 -0600 Subject: [PATCH] fix(flatpak): add source mirrors and match the container to the runtime The toolchain tarballs are each fetched from a single host, and ftpmirror.gnu.org timing out failed the whole job. Add mirror-urls fallbacks where a byte-identical alternate host exists. Also bump the builder container to kde-6.10, matching runtime-version in the manifest. --- .github/workflows/Build.yml | 3 ++- flatpak/io.github.wivrn.wivrn.yml.in | 32 ++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index 86d5ae66..af952c99 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -122,7 +122,8 @@ jobs: runs-on: ubuntu-24.04 if: ${{ vars.APK_ONLY == '' }} container: - image: ghcr.io/flathub-infra/flatpak-github-actions:kde-6.9 + # Tag matches runtime-version in the manifest. + image: ghcr.io/flathub-infra/flatpak-github-actions:kde-6.10 options: --privileged steps: diff --git a/flatpak/io.github.wivrn.wivrn.yml.in b/flatpak/io.github.wivrn.wivrn.yml.in index e6a53101..41bbc571 100644 --- a/flatpak/io.github.wivrn.wivrn.yml.in +++ b/flatpak/io.github.wivrn.wivrn.yml.in @@ -102,8 +102,11 @@ modules: - name: toolchain sources: + # mirror-urls are fallbacks, used when the primary url fails. - type: file url: https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.15.177.tar.xz + mirror-urls: + - https://mirrors.edge.kernel.org/pub/linux/kernel/v5.x/linux-5.15.177.tar.xz sha256: ea9eb8088d4231f8a01b191ceef5f4d92238f6c7519f6fbcb57e448ee9e0a6e0 - type: file url: https://github.com/madler/zlib/releases/download/v1.3.1/zlib-1.3.1.tar.xz @@ -113,34 +116,63 @@ modules: sha256: 8c29e06cf42aacc1eafc4077ae2ec6c6fcb96a626157e0593d5e82a34fd403c1 - type: file url: https://ftpmirror.gnu.org/gnu/gmp/gmp-6.3.0.tar.xz + mirror-urls: + - https://ftp.gnu.org/gnu/gmp/gmp-6.3.0.tar.xz + - https://mirrors.kernel.org/gnu/gmp/gmp-6.3.0.tar.xz sha256: a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898 - type: file url: https://www.mpfr.org/mpfr-4.2.1/mpfr-4.2.1.tar.xz + mirror-urls: + - https://ftp.gnu.org/gnu/mpfr/mpfr-4.2.1.tar.xz + - https://mirrors.kernel.org/gnu/mpfr/mpfr-4.2.1.tar.xz sha256: 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2 - type: file dest-filename: isl-0.26.tar.xz url: https://sourceforge.net/projects/libisl/files/isl-0.26.tar.xz/download + mirror-urls: + - https://libisl.sourceforge.io/isl-0.26.tar.xz sha256: a0b5cb06d24f9fa9e77b55fabbe9a3c94a336190345c2555f9915bb38e976504 - type: file url: https://ftpmirror.gnu.org/gnu/mpc/mpc-1.3.1.tar.gz + mirror-urls: + - https://ftp.gnu.org/gnu/mpc/mpc-1.3.1.tar.gz + - https://mirrors.kernel.org/gnu/mpc/mpc-1.3.1.tar.gz sha256: ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8 - type: file url: https://invisible-mirror.net/archives/ncurses/ncurses-6.4.tar.gz + mirror-urls: + - https://ftp.gnu.org/gnu/ncurses/ncurses-6.4.tar.gz + - https://mirrors.kernel.org/gnu/ncurses/ncurses-6.4.tar.gz sha256: 6931283d9ac87c5073f30b6290c4c75f21632bb4fc3603ac8100812bed248159 - type: file url: https://ftpmirror.gnu.org/gnu/libiconv/libiconv-1.16.tar.gz + mirror-urls: + - https://ftp.gnu.org/gnu/libiconv/libiconv-1.16.tar.gz + - https://mirrors.kernel.org/gnu/libiconv/libiconv-1.16.tar.gz sha256: e6a1b1b589654277ee790cce3734f07876ac4ccfaecbee8afa0b649cf529cc04 - type: file url: https://ftpmirror.gnu.org/gnu/gettext/gettext-0.23.1.tar.xz + mirror-urls: + - https://ftp.gnu.org/gnu/gettext/gettext-0.23.1.tar.xz + - https://mirrors.kernel.org/gnu/gettext/gettext-0.23.1.tar.xz sha256: c1f97a72a7385b7e71dd07b5fea6cdaf12c9b88b564976b23bd8c11857af2970 - type: file url: https://ftpmirror.gnu.org/gnu/binutils/binutils-2.43.1.tar.xz + mirror-urls: + - https://ftp.gnu.org/gnu/binutils/binutils-2.43.1.tar.xz + - https://mirrors.kernel.org/gnu/binutils/binutils-2.43.1.tar.xz sha256: 13f74202a3c4c51118b797a39ea4200d3f6cfbe224da6d1d95bb938480132dfd - type: file url: https://ftpmirror.gnu.org/gnu/gcc/gcc-11.5.0/gcc-11.5.0.tar.xz + mirror-urls: + - https://ftp.gnu.org/gnu/gcc/gcc-11.5.0/gcc-11.5.0.tar.xz + - https://mirrors.kernel.org/gnu/gcc/gcc-11.5.0/gcc-11.5.0.tar.xz sha256: a6e21868ead545cf87f0c01f84276e4b5281d672098591c1c896241f09363478 - type: file url: https://ftpmirror.gnu.org/gnu/glibc/glibc-2.35.tar.xz + mirror-urls: + - https://ftp.gnu.org/gnu/glibc/glibc-2.35.tar.xz + - https://mirrors.kernel.org/gnu/glibc/glibc-2.35.tar.xz sha256: 5123732f6b67ccd319305efd399971d58592122bcc2a6518a1bd2510dd0cf52e - type: file path: ct-ng-x86_64.config