Skip to content

Commit 9a91c40

Browse files
committed
feat: support overriding gnu mirror source
Use `https://mirrors.kernel.org/gnu/` as default. Signed-off-by: Noel Georgi <git@frezbo.dev>
1 parent a4877e6 commit 9a91c40

4 files changed

Lines changed: 8 additions & 2 deletions

File tree

.kres.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ spec:
9898
- TOOLS
9999
- TOOLS_PREFIX
100100
- TEST_STAGE
101+
- GNU_MIRROR_URL
101102
makefile:
102103
extraVariables:
103104
- name: EXTENSIONS_IMAGE_REF
@@ -112,6 +113,8 @@ spec:
112113
defaultValue: ghcr.io/siderolabs
113114
- name: GO_TOOLS_RELEASE
114115
defaultValue: v0.3.1
116+
- name: GNU_MIRROR_URL
117+
defaultValue: https://mirrors.kernel.org
115118
useBldrPkgTagResolver: true
116119
---
117120
kind: common.Build

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# THIS FILE WAS AUTOMATICALLY GENERATED BY KRES, PLEASE DO NOT EDIT.
22
#
3-
# Generated on 2026-07-30T16:21:31Z by kres 34f68df.
3+
# Generated on 2026-08-05T10:23:44Z by kres 93d28ca.
44

55
# common variables
66

@@ -46,6 +46,7 @@ BUILD_ARGS += --build-arg=PKGS_PREFIX="$(PKGS_PREFIX)"
4646
BUILD_ARGS += --build-arg=TOOLS="$(TOOLS)"
4747
BUILD_ARGS += --build-arg=TOOLS_PREFIX="$(TOOLS_PREFIX)"
4848
BUILD_ARGS += --build-arg=TEST_STAGE="$(TEST_STAGE)"
49+
BUILD_ARGS += --build-arg=GNU_MIRROR_URL="$(GNU_MIRROR_URL)"
4950
COMMON_ARGS = --file=Pkgfile
5051
COMMON_ARGS += --provenance=false
5152
COMMON_ARGS += --sbom=false
@@ -61,6 +62,7 @@ PKGS_PREFIX ?= ghcr.io/siderolabs
6162
TOOLS ?= v1.14.0-alpha.0-26-g08071b1
6263
TOOLS_PREFIX ?= ghcr.io/siderolabs
6364
GO_TOOLS_RELEASE ?= v0.3.1
65+
GNU_MIRROR_URL ?= https://mirrors.kernel.org
6466

6567
# targets defines all the available targets
6668

misc/glibc/pkg.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ steps:
1717
LD_LINUX_X86_64: ld-linux-x86-64.so.2
1818
LD_LINUX_AARCH64: ld-linux-aarch64.so.1
1919
sources:
20-
- url: https://ftpmirror.gnu.org/gnu/glibc/glibc-{{ .GLIBC_VERSION }}.tar.xz
20+
- url: "{{ .GNU_MIRROR_URL }}/gnu/glibc/glibc-{{ .GLIBC_VERSION }}.tar.xz"
2121
destination: glibc.tar.xz
2222
sha256: {{ .GLIBC_SHA256 }}
2323
sha512: {{ .GLIBC_SHA512 }}

vars.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
GNU_MIRROR_URL: "{{ .BUILD_ARG_GNU_MIRROR_URL }}"

0 commit comments

Comments
 (0)