fix: normalize all versions and --from names

This commit is contained in:
Lance R. Vick 2024-02-15 07:22:38 -08:00
parent 4e19d32031
commit 136277f258
No known key found for this signature in database
GPG key ID: 8E47A1EC35A1551D
72 changed files with 588 additions and 588 deletions

View file

@ -8,15 +8,15 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=gcc . /
COPY --from=binutils . /
COPY --from=make . /
COPY --from=musl . /
COPY --from=perl . /
COPY --from=autoconf . /
COPY --from=automake . /
COPY --from=m4 . /
COPY --from=stagex/busybox . /
COPY --from=stagex/gcc . /
COPY --from=stagex/binutils . /
COPY --from=stagex/make . /
COPY --from=stagex/musl . /
COPY --from=stagex/perl . /
COPY --from=stagex/autoconf . /
COPY --from=stagex/automake . /
COPY --from=stagex/m4 . /
RUN tar -xf ${SRC_FILE}
WORKDIR argp-standalone-${VERSION}
RUN <<-EOF

View file

@ -1,22 +1,22 @@
FROM scratch as base
ENV SRC_VERSION=2.71
ENV VERSION=2.71
ENV SRC_HASH=f14c83cfebcc9427f2c3cea7258bd90df972d92eb26752da4ddad81c87a0faa4
ENV SRC_FILE=autoconf-${SRC_VERSION}.tar.xz
ENV SRC_FILE=autoconf-${VERSION}.tar.xz
ENV SRC_SITE=https://ftp.gnu.org/gnu/autoconf/${SRC_FILE}
FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=gcc . /
COPY --from=binutils . /
COPY --from=make . /
COPY --from=musl . /
COPY --from=m4 . /
COPY --from=perl . /
COPY --from=stagex/busybox . /
COPY --from=stagex/gcc . /
COPY --from=stagex/binutils . /
COPY --from=stagex/make . /
COPY --from=stagex/musl . /
COPY --from=stagex/m4 . /
COPY --from=stagex/perl . /
RUN tar -xf ${SRC_FILE}
WORKDIR autoconf-${SRC_VERSION}
WORKDIR autoconf-${VERSION}
ENV M4=/usr/bin/m4
RUN --network=none <<-EOF
set -eux

View file

@ -1,23 +1,23 @@
FROM scratch as base
ENV SRC_VERSION=1.16.5
ENV VERSION=1.16.5
ENV SRC_HASH=f01d58cd6d9d77fbdca9eb4bbd5ead1988228fdb73d6f7a201f5f8d6b118b469
ENV SRC_FILE=automake-${SRC_VERSION}.tar.xz
ENV SRC_FILE=automake-${VERSION}.tar.xz
ENV SRC_SITE=https://ftp.gnu.org/gnu/automake/${SRC_FILE}
FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=gcc . /
COPY --from=binutils . /
COPY --from=make . /
COPY --from=musl . /
COPY --from=perl . /
COPY --from=m4 . /
COPY --from=autoconf . /
RUN tar -xf automake-${SRC_VERSION}.tar.xz
WORKDIR automake-${SRC_VERSION}
COPY --from=stagex/busybox . /
COPY --from=stagex/gcc . /
COPY --from=stagex/binutils . /
COPY --from=stagex/make . /
COPY --from=stagex/musl . /
COPY --from=stagex/perl . /
COPY --from=stagex/m4 . /
COPY --from=stagex/autoconf . /
RUN tar -xf automake-${VERSION}.tar.xz
WORKDIR automake-${VERSION}
RUN --network=none <<-EOF
set -eux
./configure --prefix=/usr

View file

@ -8,11 +8,11 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=musl . /
COPY --from=gcc . /
COPY --from=binutils . /
COPY --from=make . /
COPY --from=stagex/busybox . /
COPY --from=stagex/musl . /
COPY --from=stagex/gcc . /
COPY --from=stagex/binutils . /
COPY --from=stagex/make . /
RUN tar -xzf ${SRC_FILE}
WORKDIR bash-${VERSION}
RUN --network=none <<-EOF

View file

@ -9,26 +9,25 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
#COPY --from=busybox . /
COPY --from=binutils . /
COPY --from=coreutils . /
COPY --from=musl . /
COPY --from=make . /
COPY --from=gcc . /
COPY --from=openssl . /
COPY --from=bash . /
COPY --from=bash /bin/bash /bin/sh
COPY --from=tar . /
COPY --from=ed . /
COPY --from=grep . /
COPY --from=gzip . /
COPY --from=bison . /
COPY --from=flex . /
COPY --from=gawk . /
COPY --from=perl . /
COPY --from=texinfo . /
COPY --from=findutils . /
COPY --from=sed . /
COPY --from=stagex/binutils . /
COPY --from=stagex/coreutils . /
COPY --from=stagex/musl . /
COPY --from=stagex/make . /
COPY --from=stagex/gcc . /
COPY --from=stagex/openssl . /
COPY --from=stagex/bash . /
COPY --from=stagex/bash /bin/bash /bin/sh
COPY --from=stagex/tar . /
COPY --from=stagex/ed . /
COPY --from=stagex/grep . /
COPY --from=stagex/gzip . /
COPY --from=stagex/bison . /
COPY --from=stagex/flex . /
COPY --from=stagex/gawk . /
COPY --from=stagex/perl . /
COPY --from=stagex/texinfo . /
COPY --from=stagex/findutils . /
COPY --from=stagex/sed . /
RUN tar -xf ${SRC_FILE}
WORKDIR bc-${VERSION}
RUN --network=none <<-EOF

View file

@ -9,7 +9,7 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=stage3 . /
COPY --from=stagex/stage3 . /
RUN tar -xf binutils-${VERSION}.tar.xz
WORKDIR binutils-${VERSION}
RUN --network=none <<-EOF

View file

@ -8,15 +8,15 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=musl . /
COPY --from=busybox . /
COPY --from=gcc . /
COPY --from=binutils . /
COPY --from=perl . /
COPY --from=autoconf . /
COPY --from=automake . /
COPY --from=make . /
COPY --from=m4 . /
COPY --from=stagex/musl . /
COPY --from=stagex/busybox . /
COPY --from=stagex/gcc . /
COPY --from=stagex/binutils . /
COPY --from=stagex/perl . /
COPY --from=stagex/autoconf . /
COPY --from=stagex/automake . /
COPY --from=stagex/make . /
COPY --from=stagex/m4 . /
RUN tar -xf ${SRC_FILE}
WORKDIR bison-${VERSION}
ENV M4=/usr/bin/m4

View file

@ -8,7 +8,7 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=stage3 . /
COPY --from=stagex/stage3 . /
RUN tar -xjf ${SRC_FILE}
WORKDIR busybox-${VERSION}
ENV KCONFIG_NOTIMESTAMP=1

View file

@ -1,7 +1,8 @@
FROM busybox as base
FROM scratch as base
ENV VERSION=20240215
FROM base as install
USER 0:0
COPY --from=stagex/busybox . /
COPY cacert.pem /rootfs/etc/ssl/certs/ca-certificates.crt
RUN find /rootfs -exec touch -hcd "@0" "{}" +

View file

@ -8,19 +8,19 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=binutils . /
COPY --from=ninja . /
COPY --from=musl . /
COPY --from=make . /
COPY --from=linux-headers . /
COPY --from=gcc . /
COPY --from=zlib . /
COPY --from=openssl . /
COPY --from=stagex/busybox . /
COPY --from=stagex/binutils . /
COPY --from=stagex/ninja . /
COPY --from=stagex/musl . /
COPY --from=stagex/make . /
COPY --from=stagex/linux-headers . /
COPY --from=stagex/gcc . /
COPY --from=stagex/zlib . /
COPY --from=stagex/openssl . /
RUN tar -xf ${SRC_FILE}
WORKDIR cmake-${VERSION}
# HACK: figure out why gcc package puts these in the wrong path at install time
COPY --from=gcc /usr/lib64/* /usr/lib/
COPY --from=stagex/gcc /usr/lib64/* /usr/lib/
RUN --network=none <<-EOF
set -eux
./bootstrap \

View file

@ -9,12 +9,12 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=binutils . /
COPY --from=openssl . /
COPY --from=musl . /
COPY --from=make . /
COPY --from=gcc . /
COPY --from=stagex/busybox . /
COPY --from=stagex/binutils . /
COPY --from=stagex/openssl . /
COPY --from=stagex/musl . /
COPY --from=stagex/make . /
COPY --from=stagex/gcc . /
RUN tar -xf coreutils-${VERSION}.tar.xz
WORKDIR coreutils-${VERSION}
ENV FORCE_UNSAFE_CONFIGURE=1

View file

@ -8,11 +8,11 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=gcc . /
COPY --from=binutils . /
COPY --from=make . /
COPY --from=musl . /
COPY --from=stagex/busybox . /
COPY --from=stagex/gcc . /
COPY --from=stagex/binutils . /
COPY --from=stagex/make . /
COPY --from=stagex/musl . /
RUN tar -xzf ${SRC_FILE}
WORKDIR cpio-${VERSION}
RUN --network=none <<-EOF

View file

@ -8,12 +8,12 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=binutils . /
COPY --from=make . /
COPY --from=musl . /
COPY --from=gcc . /
COPY --from=openssl . /
COPY --from=stagex/busybox . /
COPY --from=stagex/binutils . /
COPY --from=stagex/make . /
COPY --from=stagex/musl . /
COPY --from=stagex/gcc . /
COPY --from=stagex/openssl . /
RUN tar -xf curl-${VERSION}.tar.xz
WORKDIR curl-${VERSION}
RUN --network=none <<-EOF

View file

@ -9,11 +9,11 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=binutils . /
COPY --from=musl . /
COPY --from=make . /
COPY --from=gcc . /
COPY --from=stagex/busybox . /
COPY --from=stagex/binutils . /
COPY --from=stagex/musl . /
COPY --from=stagex/make . /
COPY --from=stagex/gcc . /
RUN tar -xf ${SRC_FILE}
WORKDIR diffutils-${VERSION}
RUN --network=none <<-EOF

View file

@ -9,15 +9,15 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=binutils . /
COPY --from=musl . /
COPY --from=make . /
COPY --from=tar . /
COPY --from=lzip . /
COPY --from=gcc . /
COPY --from=stagex/busybox . /
COPY --from=stagex/binutils . /
COPY --from=stagex/musl . /
COPY --from=stagex/make . /
COPY --from=stagex/tar . /
COPY --from=stagex/lzip . /
COPY --from=stagex/gcc . /
# HACK: figure out why gcc package puts these in the wrong path at install time
COPY --from=gcc /usr/lib64/* /usr/lib/
COPY --from=stagex/gcc /usr/lib64/* /usr/lib/
RUN tar --lzip -xf ${SRC_FILE}
WORKDIR ed-${VERSION}
RUN --network=none <<-EOF

View file

@ -6,20 +6,20 @@ ENV SRC_SITE=https://codeload.github.com/tkhq/eif_build/legacy.tar.gz/${VERSION}
FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} ${SRC_FILE}
COPY --from=busybox . /
COPY --from=musl . /
COPY --from=libunwind . /
COPY --from=zlib . /
COPY --from=openssl . /
COPY --from=ca-certificates . /
COPY --from=gcc . /
COPY --from=llvm . /
COPY --from=binutils . /
COPY --from=pkgconf . /
COPY --from=git . /
COPY --from=rust . /
COPY --from=stagex/busybox . /
COPY --from=stagex/musl . /
COPY --from=stagex/libunwind . /
COPY --from=stagex/zlib . /
COPY --from=stagex/openssl . /
COPY --from=stagex/ca-certificates . /
COPY --from=stagex/gcc . /
COPY --from=stagex/llvm . /
COPY --from=stagex/binutils . /
COPY --from=stagex/pkgconf . /
COPY --from=stagex/git . /
COPY --from=stagex/rust . /
# HACK: figure out why gcc package puts these in the wrong path at install time
COPY --from=gcc /usr/lib64/* /usr/lib/
COPY --from=stagex/gcc /usr/lib64/* /usr/lib/
RUN tar -xzf ${SRC_FILE}
RUN mv tkhq-eif_build-* eif_build
WORKDIR eif_build

View file

@ -8,26 +8,26 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=gcc . /
COPY --from=binutils . /
COPY --from=make . /
COPY --from=bison . /
COPY --from=libtool . /
COPY --from=zlib . /
COPY --from=libzstd . /
COPY --from=flex . /
COPY --from=perl . /
COPY --from=autoconf . /
COPY --from=automake . /
COPY --from=pkgconf . /
COPY --from=gettext . /
COPY --from=m4 . /
COPY --from=argp-standalone . /
COPY --from=musl . /
COPY --from=musl-fts . /
COPY --from=musl-obstack . /
COPY --from=linux-headers . /
COPY --from=stagex/busybox . /
COPY --from=stagex/gcc . /
COPY --from=stagex/binutils . /
COPY --from=stagex/make . /
COPY --from=stagex/bison . /
COPY --from=stagex/libtool . /
COPY --from=stagex/zlib . /
COPY --from=stagex/libzstd . /
COPY --from=stagex/flex . /
COPY --from=stagex/perl . /
COPY --from=stagex/autoconf . /
COPY --from=stagex/automake . /
COPY --from=stagex/pkgconf . /
COPY --from=stagex/gettext . /
COPY --from=stagex/m4 . /
COPY --from=stagex/argp-standalone . /
COPY --from=stagex/musl . /
COPY --from=stagex/musl-fts . /
COPY --from=stagex/musl-obstack . /
COPY --from=stagex/linux-headers . /
RUN tar -xjf ${SRC_FILE}
WORKDIR elfutils-${VERSION}
ADD *.patch .

View file

@ -9,11 +9,11 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=binutils . /
COPY --from=musl . /
COPY --from=make . /
COPY --from=gcc . /
COPY --from=stagex/busybox . /
COPY --from=stagex/binutils . /
COPY --from=stagex/musl . /
COPY --from=stagex/make . /
COPY --from=stagex/gcc . /
RUN tar -xf ${SRC_FILE}
WORKDIR findutils-${VERSION}
RUN --network=none <<-EOF

View file

@ -8,18 +8,18 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=perl . /
COPY --from=gcc . /
COPY --from=binutils . /
COPY --from=make . /
COPY --from=m4 . /
COPY --from=libtool . /
COPY --from=autoconf . /
COPY --from=automake . /
COPY --from=bison . /
COPY --from=gettext . /
COPY --from=musl . /
COPY --from=stagex/busybox . /
COPY --from=stagex/perl . /
COPY --from=stagex/gcc . /
COPY --from=stagex/binutils . /
COPY --from=stagex/make . /
COPY --from=stagex/m4 . /
COPY --from=stagex/libtool . /
COPY --from=stagex/autoconf . /
COPY --from=stagex/automake . /
COPY --from=stagex/bison . /
COPY --from=stagex/gettext . /
COPY --from=stagex/musl . /
RUN tar -xzf ${SRC_FILE}
WORKDIR flex-${VERSION}
RUN --network=none <<-EOF

View file

@ -9,11 +9,11 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=binutils . /
COPY --from=musl . /
COPY --from=make . /
COPY --from=gcc . /
COPY --from=stagex/busybox . /
COPY --from=stagex/binutils . /
COPY --from=stagex/musl . /
COPY --from=stagex/make . /
COPY --from=stagex/gcc . /
RUN tar -xf ${SRC_FILE}
WORKDIR gawk-${VERSION}
RUN --network=none <<-EOF

View file

@ -21,7 +21,7 @@ ADD --checksum=sha256:${MPC_HASH} ${DEP_SITE}/${MPC_FILE} .
ADD --checksum=sha256:${ISL_HASH} ${DEP_SITE}/${ISL_FILE} .
FROM fetch as build
COPY --from=stage3 . /
COPY --from=stagex/stage3 . /
RUN tar -xf ${SRC_FILE}
WORKDIR gcc-${VERSION}
RUN --network=none <<-EOF
@ -60,10 +60,11 @@ RUN --network=none <<-EOF
EOF
RUN find /rootfs -exec touch -hcd "@0" "{}" +
FROM busybox as test
FROM scratch as test
COPY --from=stagex/busybox . /
COPY --from=stagex/binutils . /
COPY --from=stagex/musl . /
COPY --from=install /rootfs /
COPY --from=binutils . /
COPY --from=musl . /
COPY <<-EOF test.c
#include <stdio.h>
int main() { printf("Success\n"); return 0; }

View file

@ -8,10 +8,10 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=gcc . /
COPY --from=binutils . /
COPY --from=musl . /
COPY --from=stagex/busybox . /
COPY --from=stagex/gcc . /
COPY --from=stagex/binutils . /
COPY --from=stagex/musl . /
RUN tar -xf ${SRC_FILE}
WORKDIR linux-${VERSION}
RUN --network=none gcc usr/gen_init_cpio.c -o usr/gen_init_cpio

View file

@ -8,12 +8,12 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=gcc . /
COPY --from=binutils . /
COPY --from=libxml2 . /
COPY --from=make . /
COPY --from=musl . /
COPY --from=stagex/busybox . /
COPY --from=stagex/gcc . /
COPY --from=stagex/binutils . /
COPY --from=stagex/libxml2 . /
COPY --from=stagex/make . /
COPY --from=stagex/musl . /
RUN tar -xf ${SRC_FILE}
WORKDIR gettext-${VERSION}
RUN <<-EOF

View file

@ -1,23 +1,23 @@
FROM scratch as base
ENV SRC_VERSION=2.9.5
ENV VERSION=2.9.5
ENV SRC_HASH=a4bea37ecb9a3fb5c0c8ef18c2f7eeaf8ccbcfec91f72f3bccfc6bf72a3e3902
ENV SRC_FILE=git-${SRC_VERSION}.tar.xz
ENV SRC_FILE=git-${VERSION}.tar.xz
ENV SRC_SITE=http://mirrors.edge.kernel.org/pub/software/scm/git/${SRC_FILE}
FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=musl . /
COPY --from=gcc . /
COPY --from=binutils . /
COPY --from=make . /
COPY --from=zlib . /
COPY --from=perl . /
COPY --from=gettext . /
COPY --from=stagex/busybox . /
COPY --from=stagex/musl . /
COPY --from=stagex/gcc . /
COPY --from=stagex/binutils . /
COPY --from=stagex/make . /
COPY --from=stagex/zlib . /
COPY --from=stagex/perl . /
COPY --from=stagex/gettext . /
RUN tar -xvf $SRC_FILE
WORKDIR git-${SRC_VERSION}
WORKDIR git-${VERSION}
ENV SOURCE_DATE_EPOCH=1
RUN --network=none <<-EOF
set -eux
@ -42,12 +42,12 @@ RUN find /rootfs -exec touch -hcd "@0" "{}" +
FROM base as test
COPY --from=install /rootfs /
COPY --from=zlib . /
COPY --from=musl . /
COPY --from=busybox . /
COPY --from=stagex/zlib . /
COPY --from=stagex/musl . /
COPY --from=stagex/busybox . /
RUN /bin/sh <<-EOF
set -eux
EXPECTED_GIT_VERSION="git version ${SRC_VERSION}"
EXPECTED_GIT_VERSION="git version ${VERSION}"
GIT_VERSION=\$(git --version)
if [ "\$GIT_VERSION" != "\$EXPECTED_GIT_VERSION" ]; then
echo "Expected git version is \$EXPECTED_GIT_VERSION, but got \$GIT_VERSION"

View file

@ -18,11 +18,11 @@ ADD --checksum=sha256:${SRC_HASH_BOOTSTRAP_2} ${SRC_SITE_BOOTSTRAP_2} .
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=gcc . /
COPY --from=bash . /
COPY --from=musl . /
COPY --from=binutils . /
COPY --from=stagex/busybox . /
COPY --from=stagex/gcc . /
COPY --from=stagex/bash . /
COPY --from=stagex/musl . /
COPY --from=stagex/binutils . /
RUN <<-EOF
set -eux
tar -xzf go${VERSION_BOOTSTRAP_1}.tar.gz

View file

@ -1,25 +1,25 @@
FROM scratch as base
ENV SRC_VERSION=2.4.4
ENV VERSION=2.4.4
ENV SRC_HASH=67ebe016ca90fa7688ce67a387ebd82c6261e95897db7b23df24ff335be85bc6
ENV SRC_FILE=gnupg-${SRC_VERSION}.tar.bz2
ENV SRC_FILE=gnupg-${VERSION}.tar.bz2
ENV SRC_SITE=https://gnupg.org/ftp/gcrypt/gnupg/${SRC_FILE}
FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} ${SRC_FILE}
FROM fetch as build
COPY --from=busybox . /
COPY --from=musl . /
COPY --from=gcc . /
COPY --from=binutils . /
COPY --from=make . /
COPY --from=npth . /
COPY --from=libksba . /
COPY --from=libgpg-error . /
COPY --from=libassuan . /
COPY --from=libgcrypt . /
COPY --from=stagex/busybox . /
COPY --from=stagex/musl . /
COPY --from=stagex/gcc . /
COPY --from=stagex/binutils . /
COPY --from=stagex/make . /
COPY --from=stagex/npth . /
COPY --from=stagex/libksba . /
COPY --from=stagex/libgpg-error . /
COPY --from=stagex/libassuan . /
COPY --from=stagex/libgcrypt . /
RUN tar -xvf $SRC_FILE
WORKDIR gnupg-${SRC_VERSION}
WORKDIR gnupg-${VERSION}
RUN --network=none <<-EOF
set -eux
./configure \
@ -38,18 +38,18 @@ RUN find /rootfs -exec touch -hcd "@0" "{}" +
FROM base as test
COPY --from=install /rootfs /
COPY --from=zlib . /
COPY --from=musl . /
COPY --from=busybox . /
COPY --from=npth . /
COPY --from=libksba . /
COPY --from=libgpg-error . /
COPY --from=libassuan . /
COPY --from=libgcrypt . /
COPY --from=stagex/zlib . /
COPY --from=stagex/musl . /
COPY --from=stagex/busybox . /
COPY --from=stagex/npth . /
COPY --from=stagex/libksba . /
COPY --from=stagex/libgpg-error . /
COPY --from=stagex/libassuan . /
COPY --from=stagex/libgcrypt . /
RUN /bin/sh <<-EOF
set -eux
EXPECTED_GPG_VERSION="gpg version ${SRC_VERSION}"
EXPECTED_GPG_VERSION="gpg version ${VERSION}"
GPG_VERSION=\$(gpg --version)
if [ "\$GPG_VERSION" != "\$EXPECTED_GPG_VERSION" ]; then
echo "Expected gpg version is \$EXPECTED_GPG_VERSION, but got \$GPG_VERSION"

View file

@ -9,11 +9,11 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=binutils . /
COPY --from=musl . /
COPY --from=make . /
COPY --from=gcc . /
COPY --from=stagex/busybox . /
COPY --from=stagex/binutils . /
COPY --from=stagex/musl . /
COPY --from=stagex/make . /
COPY --from=stagex/gcc . /
RUN tar -xf ${SRC_FILE}
WORKDIR grep-${VERSION}
RUN --network=none <<-EOF

View file

@ -1,25 +1,25 @@
FROM scratch as base
ENV SRC_VERSION=2.06
ENV VERSION=2.06
ENV SRC_HASH=23b64b4c741569f9426ed2e3d0e6780796fca081bee4c99f62aa3f53ae803f5f
ENV SRC_FILE=grub-${SRC_VERSION}.tar.gz
ENV SRC_FILE=grub-${VERSION}.tar.gz
ENV SRC_SITE=https://mirrors.kernel.org/gnu/grub/${SRC_FILE}
FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} ${SRC_FILE}
FROM fetch as build
COPY --from=busybox . /
COPY --from=bison . /
COPY --from=flex . /
COPY --from=gcc . /
COPY --from=binutils . /
COPY --from=make . /
COPY --from=musl . /
COPY --from=python . /
COPY --from=m4 . /
COPY --from=linux-headers . /
COPY --from=stagex/busybox . /
COPY --from=stagex/bison . /
COPY --from=stagex/flex . /
COPY --from=stagex/gcc . /
COPY --from=stagex/binutils . /
COPY --from=stagex/make . /
COPY --from=stagex/musl . /
COPY --from=stagex/python . /
COPY --from=stagex/m4 . /
COPY --from=stagex/linux-headers . /
RUN tar -xf ${SRC_FILE}
WORKDIR grub-${SRC_VERSION}
WORKDIR grub-${VERSION}
RUN --network=none <<-EOF
set -eux
./configure \
@ -34,17 +34,17 @@ RUN ls -la .
FROM base as test
COPY --from=install /rootfs /
COPY --from=musl . /
COPY --from=busybox . /
COPY --from=stagex/musl . /
COPY --from=stagex/busybox . /
RUN grub-install --version
RUN /bin/sh <<-EOF
set -eux
GRUB_VERSION=\$(echo | grub-install --version)
if [ "grub-install (GRUB) ${SRC_VERSION}" != "\$GRUB_VERSION" ]; then
echo "Expected grub version is \$SRC_VERSION, but got \$GRUB_VERSION"
if [ "grub-install (GRUB) ${VERSION}" != "\$GRUB_VERSION" ]; then
echo "Expected grub version is \$VERSION, but got \$GRUB_VERSION"
exit 1
fi
EOF
FROM scratch as package
COPY --from=install /rootfs /
COPY --from=install /rootfs /

View file

@ -9,11 +9,11 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=binutils . /
COPY --from=musl . /
COPY --from=make . /
COPY --from=gcc . /
COPY --from=stagex/busybox . /
COPY --from=stagex/binutils . /
COPY --from=stagex/musl . /
COPY --from=stagex/make . /
COPY --from=stagex/gcc . /
RUN tar -xf ${SRC_FILE}
WORKDIR gzip-${VERSION}
ENV FORCE_UNSAFE_CONFIGURE=1

View file

@ -1,22 +1,21 @@
FROM scratch as base
ENV SRC_VERSION=2.5.6
ENV VERSION=2.5.6
ENV SRC_HASH=e9fd27218d5394904e4e39788f9b1742711c3e6b41689a31aa3380bd5aa4f426
ENV SRC_FILE=libassuan-${SRC_VERSION}.tar.bz2
ENV SRC_FILE=libassuan-${VERSION}.tar.bz2
ENV SRC_SITE=https://gnupg.org/ftp/gcrypt/libassuan/${SRC_FILE}
FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} ${SRC_FILE}
FROM fetch as build
COPY --from=busybox . /
COPY --from=musl . /
COPY --from=gcc . /
COPY --from=binutils . /
COPY --from=make . /
COPY --from=libgpg-error . /
COPY --from=stagex/busybox . /
COPY --from=stagex/musl . /
COPY --from=stagex/gcc . /
COPY --from=stagex/binutils . /
COPY --from=stagex/make . /
COPY --from=stagex/libgpg-error . /
RUN tar -xvf $SRC_FILE
WORKDIR libassuan-${SRC_VERSION}
WORKDIR libassuan-${VERSION}
RUN --network=none <<-EOF
set -eux
./configure \
@ -35,7 +34,7 @@ RUN find /rootfs -exec touch -hcd "@0" "{}" +
FROM base as test
COPY --from=install /rootfs /
COPY --from=busybox . /
COPY --from=stagex/busybox . /
RUN /bin/sh <<-EOF
set -eux
LIBASSUAN_FILES_FOUND=\$(ls /usr/lib/ | grep libassuan || true)

View file

@ -1,21 +1,21 @@
FROM scratch as base
ENV SRC_VERSION=1.10.3
ENV VERSION=1.10.3
ENV SRC_HASH=8b0870897ac5ac67ded568dcfadf45969cfa8a6beb0fd60af2a9eadc2a3272aa
ENV SRC_FILE=libgcrypt-${SRC_VERSION}.tar.bz2
ENV SRC_FILE=libgcrypt-${VERSION}.tar.bz2
ENV SRC_SITE=https://gnupg.org/ftp/gcrypt/libgcrypt/${SRC_FILE}
FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} ${SRC_FILE}
FROM fetch as build
COPY --from=busybox . /
COPY --from=musl . /
COPY --from=gcc . /
COPY --from=binutils . /
COPY --from=make . /
COPY --from=libgpg-error . /
COPY --from=stagex/busybox . /
COPY --from=stagex/musl . /
COPY --from=stagex/gcc . /
COPY --from=stagex/binutils . /
COPY --from=stagex/make . /
COPY --from=stagex/libgpg-error . /
RUN tar -xvf $SRC_FILE
WORKDIR libgcrypt-${SRC_VERSION}
WORKDIR libgcrypt-${VERSION}
RUN --network=none <<-EOF
set -eux
./configure \
@ -34,7 +34,7 @@ RUN find /rootfs -exec touch -hcd "@0" "{}" +
FROM base as test
COPY --from=install /rootfs /
COPY --from=busybox . /
COPY --from=stagex/busybox . /
RUN /bin/sh <<-EOF
set -eux
LIBGCRYPT_FILES_FOUND=\$(ls /usr/lib/ | grep libgcrypt || true)

View file

@ -1,21 +1,21 @@
FROM scratch as base
ENV SRC_VERSION=1.47
ENV VERSION=1.47
ENV SRC_HASH=9e3c670966b96ecc746c28c2c419541e3bcb787d1a73930f5e5f5e1bcbbb9bdb
ENV SRC_FILE=libgpg-error-${SRC_VERSION}.tar.bz2
ENV SRC_FILE=libgpg-error-${VERSION}.tar.bz2
ENV SRC_SITE=https://gnupg.org/ftp/gcrypt/libgpg-error/${SRC_FILE}
FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} ${SRC_FILE}
FROM fetch as build
COPY --from=busybox . /
COPY --from=musl . /
COPY --from=gcc . /
COPY --from=binutils . /
COPY --from=make . /
COPY --from=npth . /
COPY --from=stagex/busybox . /
COPY --from=stagex/musl . /
COPY --from=stagex/gcc . /
COPY --from=stagex/binutils . /
COPY --from=stagex/make . /
COPY --from=stagex/npth . /
RUN tar -xvf $SRC_FILE
WORKDIR libgpg-error-${SRC_VERSION}
WORKDIR libgpg-error-${VERSION}
RUN --network=none <<-EOF
set -eux
./configure \
@ -34,7 +34,7 @@ RUN find /rootfs -exec touch -hcd "@0" "{}" +
FROM base as test
COPY --from=install /rootfs /
COPY --from=busybox . /
COPY --from=stagex/busybox . /
RUN /bin/sh <<-EOF
set -eux
LIBGPG_ERROR_FILES_FOUND=\$(ls /usr/lib/ | grep libgpg-error || true)

View file

@ -1,22 +1,22 @@
FROM scratch as base
ENV SRC_VERSION=1.6.5
ENV VERSION=1.6.5
ENV SRC_HASH=a564628c574c99287998753f98d750babd91a4e9db451f46ad140466ef2a6d16
ENV SRC_FILE=libksba-${SRC_VERSION}.tar.bz2
ENV SRC_FILE=libksba-${VERSION}.tar.bz2
ENV SRC_SITE=https://gnupg.org/ftp/gcrypt/libksba/${SRC_FILE}
FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} ${SRC_FILE}
FROM fetch as build
COPY --from=busybox . /
COPY --from=musl . /
COPY --from=gcc . /
COPY --from=binutils . /
COPY --from=make . /
COPY --from=npth . /
COPY --from=libgpg-error . /
COPY --from=stagex/busybox . /
COPY --from=stagex/musl . /
COPY --from=stagex/gcc . /
COPY --from=stagex/binutils . /
COPY --from=stagex/make . /
COPY --from=stagex/npth . /
COPY --from=stagex/libgpg-error . /
RUN tar -xvf $SRC_FILE
WORKDIR libksba-${SRC_VERSION}
WORKDIR libksba-${VERSION}
RUN --network=none <<-EOF
set -eux
./configure \
@ -35,9 +35,9 @@ RUN find /rootfs -exec touch -hcd "@0" "{}" +
FROM base as test
COPY --from=install /rootfs /
COPY --from=zlib . /
COPY --from=musl . /
COPY --from=busybox . /
COPY --from=stagex/zlib . /
COPY --from=stagex/musl . /
COPY --from=stagex/busybox . /
RUN ls /usr/lib
RUN /bin/sh <<-EOF
set -eux

View file

@ -8,12 +8,12 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=gcc . /
COPY --from=binutils . /
COPY --from=make . /
COPY --from=musl . /
COPY --from=m4 . /
COPY --from=stagex/busybox . /
COPY --from=stagex/gcc . /
COPY --from=stagex/binutils . /
COPY --from=stagex/make . /
COPY --from=stagex/musl . /
COPY --from=stagex/m4 . /
RUN tar -xf ${SRC_FILE}
WORKDIR libtool-${VERSION}
RUN --network=none <<-EOF

View file

@ -8,14 +8,14 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=gcc . /
COPY --from=make . /
COPY --from=musl . /
COPY --from=binutils . /
COPY --from=autoconf . /
COPY --from=automake . /
COPY --from=libtool . /
COPY --from=stagex/busybox . /
COPY --from=stagex/gcc . /
COPY --from=stagex/make . /
COPY --from=stagex/musl . /
COPY --from=stagex/binutils . /
COPY --from=stagex/autoconf . /
COPY --from=stagex/automake . /
COPY --from=stagex/libtool . /
RUN tar -xf ${SRC_FILE}
WORKDIR libunwind-${VERSION}
RUN --network=none <<-EOF

View file

@ -8,19 +8,19 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=gcc . /
COPY --from=binutils . /
COPY --from=make . /
COPY --from=musl . /
COPY --from=python . /
COPY --from=perl . /
COPY --from=autoconf . /
COPY --from=automake . /
COPY --from=pkgconf . /
COPY --from=libtool . /
COPY --from=zlib . /
COPY --from=m4 . /
COPY --from=stagex/busybox . /
COPY --from=stagex/gcc . /
COPY --from=stagex/binutils . /
COPY --from=stagex/make . /
COPY --from=stagex/musl . /
COPY --from=stagex/python . /
COPY --from=stagex/perl . /
COPY --from=stagex/autoconf . /
COPY --from=stagex/automake . /
COPY --from=stagex/pkgconf . /
COPY --from=stagex/libtool . /
COPY --from=stagex/zlib . /
COPY --from=stagex/m4 . /
RUN tar -xf ${SRC_FILE}
WORKDIR libxml2-v${VERSION}
RUN --network=none <<-EOF

View file

@ -8,17 +8,17 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=python . /
COPY --from=gcc . /
COPY --from=musl . /
COPY --from=meson . /
COPY --from=ninja . /
COPY --from=binutils . /
COPY --from=pkgconf . /
COPY --from=zlib . /
COPY --from=stagex/busybox . /
COPY --from=stagex/python . /
COPY --from=stagex/gcc . /
COPY --from=stagex/musl . /
COPY --from=stagex/meson . /
COPY --from=stagex/ninja . /
COPY --from=stagex/binutils . /
COPY --from=stagex/pkgconf . /
COPY --from=stagex/zlib . /
# HACK: figure out why gcc package puts these in the wrong path at install time
COPY --from=gcc /usr/lib64/* /usr/lib/
COPY --from=stagex/gcc /usr/lib64/* /usr/lib/
RUN tar -xf ${SRC_FILE}
WORKDIR zstd-${VERSION}
RUN --network=none <<-EOF

View file

@ -8,21 +8,21 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=musl . /
COPY --from=make . /
COPY --from=binutils . /
COPY --from=linux-headers . /
COPY --from=elfutils . /
COPY --from=openssl . /
COPY --from=perl . /
COPY --from=m4 . /
COPY --from=gcc . /
COPY --from=bison . /
COPY --from=libzstd . /
COPY --from=zlib . /
COPY --from=flex . /
COPY --from=pkgconf . /
COPY --from=stagex/busybox . /
COPY --from=stagex/musl . /
COPY --from=stagex/make . /
COPY --from=stagex/binutils . /
COPY --from=stagex/linux-headers . /
COPY --from=stagex/elfutils . /
COPY --from=stagex/openssl . /
COPY --from=stagex/perl . /
COPY --from=stagex/m4 . /
COPY --from=stagex/gcc . /
COPY --from=stagex/bison . /
COPY --from=stagex/libzstd . /
COPY --from=stagex/zlib . /
COPY --from=stagex/flex . /
COPY --from=stagex/pkgconf . /
RUN tar -xf ${SRC_FILE}
WORKDIR linux-${VERSION}
RUN <<-EOF

View file

@ -8,7 +8,7 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=stage3 . /
COPY --from=stagex/stage3 . /
RUN tar -xf linux-${VERSION}.tar.xz
WORKDIR linux-${VERSION}
RUN --network=none make headers

View file

@ -13,32 +13,32 @@ ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
ADD --checksum=sha256:${NSM_SRC_HASH} ${NSM_SRC_SITE} ${NSM_SRC_FILE}
FROM fetch as build
COPY --from=musl . /
COPY --from=make . /
COPY --from=binutils . /
COPY --from=linux-headers . /
COPY --from=elfutils . /
COPY --from=openssl . /
COPY --from=perl . /
COPY --from=m4 . /
COPY --from=gcc . /
COPY --from=bison . /
COPY --from=libzstd . /
COPY --from=zlib . /
COPY --from=flex . /
COPY --from=pkgconf . /
COPY --from=coreutils . /
COPY --from=findutils . /
COPY --from=diffutils . /
COPY --from=tar . /
COPY --from=gzip . /
COPY --from=xz . /
COPY --from=sed . /
COPY --from=grep . /
COPY --from=gawk . /
COPY --from=bc . /
COPY --from=bash . /
COPY --from=bash /bin/bash /bin/sh
COPY --from=stagex/musl . /
COPY --from=stagex/make . /
COPY --from=stagex/binutils . /
COPY --from=stagex/linux-headers . /
COPY --from=stagex/elfutils . /
COPY --from=stagex/openssl . /
COPY --from=stagex/perl . /
COPY --from=stagex/m4 . /
COPY --from=stagex/gcc . /
COPY --from=stagex/bison . /
COPY --from=stagex/libzstd . /
COPY --from=stagex/zlib . /
COPY --from=stagex/flex . /
COPY --from=stagex/pkgconf . /
COPY --from=stagex/coreutils . /
COPY --from=stagex/findutils . /
COPY --from=stagex/diffutils . /
COPY --from=stagex/tar . /
COPY --from=stagex/gzip . /
COPY --from=stagex/xz . /
COPY --from=stagex/sed . /
COPY --from=stagex/grep . /
COPY --from=stagex/gawk . /
COPY --from=stagex/bc . /
COPY --from=stagex/bash . /
COPY --from=stagex/bash /bin/bash /bin/sh
RUN mkdir nitro-bootstrap
RUN tar -xf ${NSM_SRC_FILE} -C nitro-bootstrap --strip-components 1
RUN tar -xf ${SRC_FILE}

View file

@ -1,5 +1,5 @@
FROM scratch as base
ARG VERSION=16.0.6
ENV VERSION=16.0.6
ENV SRC_FILE=llvm-project-${VERSION}.src.tar.xz
ENV SRC_SITE=https://github.com/llvm/llvm-project/releases/download/llvmorg-${VERSION}/${SRC_FILE}
ENV SRC_HASH=ce5e71081d17ce9e86d7cbcfa28c4b04b9300f8fb7e78422b1feb6bc52c3028e
@ -8,18 +8,18 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=binutils . /
COPY --from=cmake . /
COPY --from=ninja . /
COPY --from=musl . /
COPY --from=gcc . /
COPY --from=python . /
COPY --from=py-setuptools . /
COPY --from=zlib . /
COPY --from=openssl . /
COPY --from=stagex/busybox . /
COPY --from=stagex/binutils . /
COPY --from=stagex/cmake . /
COPY --from=stagex/ninja . /
COPY --from=stagex/musl . /
COPY --from=stagex/gcc . /
COPY --from=stagex/python . /
COPY --from=stagex/py-setuptools . /
COPY --from=stagex/zlib . /
COPY --from=stagex/openssl . /
# HACK: figure out why gcc package puts these in the wrong path at install time
COPY --from=gcc /usr/lib64/* /usr/lib/
COPY --from=stagex/gcc /usr/lib64/* /usr/lib/
RUN tar -xf ${SRC_FILE}
WORKDIR llvm-project-${VERSION}.src
ADD *.patch .

View file

@ -1,5 +1,5 @@
FROM scratch as base
ARG VERSION=13.0.1
ENV VERSION=13.0.1
ENV SRC_FILE=llvm-project-${VERSION}.src.tar.xz
ENV SRC_SITE=https://github.com/llvm/llvm-project/releases/download/llvmorg-${VERSION}/${SRC_FILE}
ENV SRC_HASH=326335a830f2e32d06d0a36393b5455d17dc73e0bd1211065227ee014f92cbf8
@ -8,18 +8,18 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=binutils . /
COPY --from=cmake . /
COPY --from=ninja . /
COPY --from=musl . /
COPY --from=gcc . /
COPY --from=python . /
COPY --from=py-setuptools . /
COPY --from=zlib . /
COPY --from=openssl . /
COPY --from=stagex/busybox . /
COPY --from=stagex/binutils . /
COPY --from=stagex/cmake . /
COPY --from=stagex/ninja . /
COPY --from=stagex/musl . /
COPY --from=stagex/gcc . /
COPY --from=stagex/python . /
COPY --from=stagex/py-setuptools . /
COPY --from=stagex/zlib . /
COPY --from=stagex/openssl . /
# HACK: figure out why gcc package puts these in the wrong path at install time
COPY --from=gcc /usr/lib64/* /usr/lib/
COPY --from=stagex/gcc /usr/lib64/* /usr/lib/
RUN tar -xf ${SRC_FILE}
WORKDIR llvm-project-${VERSION}.src
ADD *.patch .

View file

@ -9,11 +9,11 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=binutils . /
COPY --from=musl . /
COPY --from=make . /
COPY --from=gcc . /
COPY --from=stagex/busybox . /
COPY --from=stagex/binutils . /
COPY --from=stagex/musl . /
COPY --from=stagex/make . /
COPY --from=stagex/gcc . /
RUN tar -xzf ${SRC_FILE}
WORKDIR lzip-${VERSION}
RUN --network=none <<-EOF

View file

@ -8,11 +8,11 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=gcc . /
COPY --from=binutils . /
COPY --from=make . /
COPY --from=musl . /
COPY --from=stagex/busybox . /
COPY --from=stagex/gcc . /
COPY --from=stagex/binutils . /
COPY --from=stagex/make . /
COPY --from=stagex/musl . /
RUN tar -xzf ${SRC_FILE}
WORKDIR m4-${VERSION}
RUN --network=none <<-EOF

View file

@ -8,7 +8,7 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=stage3 . /
COPY --from=stagex/stage3 . /
RUN tar -xf ${SRC_FILE}
WORKDIR make-${VERSION}
RUN --network=none <<-EOF

View file

@ -8,11 +8,11 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=musl . /
COPY --from=python . /
COPY --from=py-setuptools . /
COPY --from=zlib . /
COPY --from=stagex/busybox . /
COPY --from=stagex/musl . /
COPY --from=stagex/python . /
COPY --from=stagex/py-setuptools . /
COPY --from=stagex/zlib . /
RUN tar -xf ${SRC_FILE}
WORKDIR meson-${VERSION}
RUN python setup.py build

View file

@ -8,17 +8,17 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=gcc . /
COPY --from=binutils . /
COPY --from=make . /
COPY --from=musl . /
COPY --from=perl . /
COPY --from=autoconf . /
COPY --from=automake . /
COPY --from=libtool . /
COPY --from=pkgconf . /
COPY --from=m4 . /
COPY --from=stagex/busybox . /
COPY --from=stagex/gcc . /
COPY --from=stagex/binutils . /
COPY --from=stagex/make . /
COPY --from=stagex/musl . /
COPY --from=stagex/perl . /
COPY --from=stagex/autoconf . /
COPY --from=stagex/automake . /
COPY --from=stagex/libtool . /
COPY --from=stagex/pkgconf . /
COPY --from=stagex/m4 . /
RUN tar -xzf ${SRC_FILE}
WORKDIR musl-fts-${VERSION}
RUN --network=none <<-EOF

View file

@ -8,17 +8,17 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=gcc . /
COPY --from=binutils . /
COPY --from=make . /
COPY --from=musl . /
COPY --from=perl . /
COPY --from=autoconf . /
COPY --from=automake . /
COPY --from=libtool . /
COPY --from=pkgconf . /
COPY --from=m4 . /
COPY --from=stagex/busybox . /
COPY --from=stagex/gcc . /
COPY --from=stagex/binutils . /
COPY --from=stagex/make . /
COPY --from=stagex/musl . /
COPY --from=stagex/perl . /
COPY --from=stagex/autoconf . /
COPY --from=stagex/automake . /
COPY --from=stagex/libtool . /
COPY --from=stagex/pkgconf . /
COPY --from=stagex/m4 . /
RUN tar -xzf ${SRC_FILE}
WORKDIR musl-obstack-${VERSION}
RUN --network=none <<-EOF

View file

@ -12,7 +12,7 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=stage3 . /
COPY --from=stagex/stage3 . /
RUN tar -xzf ${SRC_FILE}
WORKDIR musl-${VERSION}
ADD *.patch .

View file

@ -8,18 +8,18 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=binutils . /
COPY --from=make . /
COPY --from=python . /
COPY --from=musl . /
COPY --from=gcc . /
COPY --from=openssl . /
COPY --from=stagex/busybox . /
COPY --from=stagex/binutils . /
COPY --from=stagex/make . /
COPY --from=stagex/python . /
COPY --from=stagex/musl . /
COPY --from=stagex/gcc . /
COPY --from=stagex/openssl . /
RUN tar -xf ${SRC_FILE}
WORKDIR ninja-${VERSION}
ADD *.patch .
# HACK: figure out why gcc package puts these in the wrong path at install time
COPY --from=gcc /usr/lib64/* /usr/lib/
COPY --from=stagex/gcc /usr/lib64/* /usr/lib/
RUN --network=none <<-EOF
set -eux
cp -R /usr/lib64/* /usr/lib/

View file

@ -1,20 +1,20 @@
FROM scratch as base
ENV SRC_VERSION=1.6
ENV VERSION=1.6
ENV SRC_HASH=1393abd9adcf0762d34798dc34fdcf4d0d22a8410721e76f1e3afcd1daa4e2d1
ENV SRC_FILE=npth-${SRC_VERSION}.tar.bz2
ENV SRC_FILE=npth-${VERSION}.tar.bz2
ENV SRC_SITE=https://gnupg.org/ftp/gcrypt/npth/${SRC_FILE}
FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} ${SRC_FILE}
FROM fetch as build
COPY --from=busybox . /
COPY --from=musl . /
COPY --from=gcc . /
COPY --from=binutils . /
COPY --from=make . /
COPY --from=stagex/busybox . /
COPY --from=stagex/musl . /
COPY --from=stagex/gcc . /
COPY --from=stagex/binutils . /
COPY --from=stagex/make . /
RUN tar -xvf $SRC_FILE
WORKDIR npth-${SRC_VERSION}
WORKDIR npth-${VERSION}
RUN --network=none <<-EOF
set -eux
./configure \
@ -33,12 +33,12 @@ RUN find /rootfs -exec touch -hcd "@0" "{}" +
FROM base as test
COPY --from=install /rootfs /
COPY --from=zlib . /
COPY --from=musl . /
COPY --from=busybox . /
COPY --from=stagex/zlib . /
COPY --from=stagex/musl . /
COPY --from=stagex/busybox . /
RUN /bin/sh <<-EOF
set -eux
EXPECTED_NPTH_VERSION="${SRC_VERSION}"
EXPECTED_NPTH_VERSION="${VERSION}"
NPTH_VERSION=\$(npth-config --version)
if [ "\$NPTH_VERSION" != "\$EXPECTED_NPTH_VERSION" ]; then
echo "Expected npth version is \$EXPECTED_NPTH_VERSION, but got \$NPTH_VERSION"

View file

@ -8,13 +8,13 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=gcc . /
COPY --from=binutils . /
COPY --from=make . /
COPY --from=musl . /
COPY --from=perl . /
COPY --from=linux-headers . /
COPY --from=stagex/busybox . /
COPY --from=stagex/gcc . /
COPY --from=stagex/binutils . /
COPY --from=stagex/make . /
COPY --from=stagex/musl . /
COPY --from=stagex/perl . /
COPY --from=stagex/linux-headers . /
RUN tar -xf ${SRC_FILE}
WORKDIR openssl-${VERSION}
ENV SOURCE_DATE_EPOCH=1

View file

@ -1,23 +1,23 @@
FROM scratch as base
ENV SRC_VERSION=2.0.0
ENV VERSION=2.0.0
ENV SRC_HASH=d6c3e2b64510e5ed6fcd3323febf2cc2a8e5fda5a6588c7671f2d77f9f189356
ENV SRC_FILE=pcsc-lite-${SRC_VERSION}.tar.bz2
ENV SRC_FILE=pcsc-lite-${VERSION}.tar.bz2
ENV SRC_SITE=https://pcsclite.apdu.fr/files/${SRC_FILE}
FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} ${SRC_FILE}
FROM fetch as build
COPY --from=busybox . /
COPY --from=m4 . /
COPY --from=musl . /
COPY --from=gcc . /
COPY --from=binutils . /
COPY --from=make . /
COPY --from=perl . /
COPY --from=flex . /
COPY --from=stagex/busybox . /
COPY --from=stagex/m4 . /
COPY --from=stagex/musl . /
COPY --from=stagex/gcc . /
COPY --from=stagex/binutils . /
COPY --from=stagex/make . /
COPY --from=stagex/perl . /
COPY --from=stagex/flex . /
RUN tar -xvf $SRC_FILE
WORKDIR pcsc-lite-${SRC_VERSION}
WORKDIR pcsc-lite-${VERSION}
RUN --network=none <<-EOF
set -eux
./configure \
@ -47,7 +47,7 @@ RUN find /rootfs -exec touch -hcd "@0" "{}" +
FROM base as test
COPY --from=install /rootfs /
COPY --from=busybox . /
COPY --from=stagex/busybox . /
RUN /bin/sh <<-EOF
set -eux
PCSC_FILES_FOUND=\$(ls /usr/lib/ | grep pcsc || true)

View file

@ -9,11 +9,11 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=gcc . /
COPY --from=binutils . /
COPY --from=make . /
COPY --from=musl . /
COPY --from=stagex/busybox . /
COPY --from=stagex/gcc . /
COPY --from=stagex/binutils . /
COPY --from=stagex/make . /
COPY --from=stagex/musl . /
RUN tar -xf ${SRC_FILE}
WORKDIR perl-${VERSION}
RUN --network=none <<-EOF
@ -62,7 +62,7 @@ RUN find /rootfs -exec touch -hcd "@0" "{}" +
FROM scratch as test
COPY --from=install /rootfs /
COPY --from=musl . /
COPY --from=stagex/musl . /
COPY <<-EOF test.pl
use strict;
use warnings;

View file

@ -8,11 +8,11 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=gcc . /
COPY --from=binutils . /
COPY --from=make . /
COPY --from=musl . /
COPY --from=stagex/busybox . /
COPY --from=stagex/gcc . /
COPY --from=stagex/binutils . /
COPY --from=stagex/make . /
COPY --from=stagex/musl . /
RUN tar -xf ${SRC_FILE}
WORKDIR pkgconf-${VERSION}
RUN --network=none <<-EOF

View file

@ -8,10 +8,10 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=musl . /
COPY --from=python . /
COPY --from=zlib . /
COPY --from=stagex/busybox . /
COPY --from=stagex/musl . /
COPY --from=stagex/python . /
COPY --from=stagex/zlib . /
RUN tar -xzf ${SRC_FILE}
WORKDIR setuptools-${VERSION}
RUN python setup.py build

View file

@ -8,13 +8,13 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=gcc . /
COPY --from=binutils . /
COPY --from=make . /
COPY --from=musl . /
COPY --from=openssl . /
COPY --from=zlib . /
COPY --from=stagex/busybox . /
COPY --from=stagex/gcc . /
COPY --from=stagex/binutils . /
COPY --from=stagex/make . /
COPY --from=stagex/musl . /
COPY --from=stagex/openssl . /
COPY --from=stagex/zlib . /
RUN tar -xf ${SRC_FILE}
WORKDIR Python-${VERSION}
ENV SOURCE_DATE_EPOCH=1
@ -40,7 +40,7 @@ RUN find /rootfs -exec touch -hcd "@0" "{}" +
FROM scratch as test
COPY --from=install /rootfs /
COPY --from=musl . /
COPY --from=stagex/musl . /
COPY <<-EOF test.py
print("Success")
EOF

View file

@ -30,7 +30,7 @@ ENV SRC_HASH_1_75_0=5b739f45bc9d341e2d1c570d65d2375591e22c2d23ef5b8a37711a0386ab
ENV SRC_HASH_1_76_0=9e5cff033a7f0d2266818982ad90e4d3e4ef8f8ee1715776c6e25073a136c021
FROM base as fetch
COPY --from=busybox . /
COPY --from=stagex/busybox . /
ADD --checksum=sha256:${MRUSTC_SRC_HASH} ${MRUSTC_SRC_SITE} ${MRUSTC_SRC_FILE}
ADD --checksum=sha256:${SRC_HASH_1_54_0} ${SRC_SITE}/rustc-1.54.0-src.tar.gz .
ADD --checksum=sha256:${SRC_HASH_1_55_0} ${SRC_SITE}/rustc-1.55.0-src.tar.gz .
@ -57,24 +57,24 @@ ADD --checksum=sha256:${SRC_HASH_1_75_0} ${SRC_SITE}/rustc-1.75.0-src.tar.gz .
ADD --checksum=sha256:${SRC_HASH_1_76_0} ${SRC_SITE}/rustc-1.76.0-src.tar.gz .
FROM fetch as build-base
COPY --from=binutils . /
COPY --from=bash . /
COPY --from=make . /
COPY --from=cmake . /
COPY --from=python . /
COPY --from=py-setuptools . /
COPY --from=zlib . /
COPY --from=pkgconf . /
COPY --from=openssl . /
COPY --from=perl . /
COPY --from=gcc . /
COPY --from=libunwind . /
COPY --from=musl . /
COPY --from=stagex/binutils . /
COPY --from=stagex/bash . /
COPY --from=stagex/make . /
COPY --from=stagex/cmake . /
COPY --from=stagex/python . /
COPY --from=stagex/py-setuptools . /
COPY --from=stagex/zlib . /
COPY --from=stagex/pkgconf . /
COPY --from=stagex/openssl . /
COPY --from=stagex/perl . /
COPY --from=stagex/gcc . /
COPY --from=stagex/libunwind . /
COPY --from=stagex/musl . /
# HACK: figure out why gcc package puts these in the wrong path at install time
COPY --from=gcc /usr/lib64/* /usr/lib/
COPY --from=stagex/gcc /usr/lib64/* /usr/lib/
FROM build-base as build-mrustc
COPY --from=llvm13 . /
COPY --from=stagex/llvm13 . /
RUN tar -xzf ${MRUSTC_SRC_FILE}
RUN mv lrvick-mrustc-* mrustc
ENV MRUSTC_TARGET_VER=1.54
@ -154,7 +154,7 @@ COPY <<-'EOF' build.sh
EOF
FROM build-script as build-llvm13
COPY --from=llvm13 . /
COPY --from=stagex/llvm13 . /
COPY --from=build-mrustc /rust-1.54.0 /rust-1.54.0
RUN sh build.sh 1.55.0 1.54.0
RUN sh build.sh 1.56.0 1.55.0
@ -172,9 +172,9 @@ RUN sh build.sh 1.67.0 1.66.0
RUN sh build.sh 1.68.0 1.67.0
FROM build-script as build
COPY --from=llvm . /
COPY --from=stagex/llvm . /
COPY --from=build-llvm13 /rust-1.68.0 /rust-1.68.0
COPY --from=llvm13 /usr/lib/libLLVM-13.so /usr/lib/
COPY --from=stagex/llvm13 /usr/lib/libLLVM-13.so /usr/lib/
RUN sh build.sh 1.69.0 1.68.0
RUN sh build.sh 1.70.0 1.69.0
RUN sh build.sh 1.71.0 1.70.0

View file

@ -8,11 +8,11 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=gcc . /
COPY --from=binutils . /
COPY --from=make . /
COPY --from=musl . /
COPY --from=stagex/busybox . /
COPY --from=stagex/gcc . /
COPY --from=stagex/binutils . /
COPY --from=stagex/make . /
COPY --from=stagex/musl . /
RUN tar -xf sed-${VERSION}.tar.xz
WORKDIR sed-${VERSION}
RUN --network=none <<-EOF

View file

@ -8,9 +8,9 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=go . /
COPY --from=ca-certificates . /
COPY --from=stagex/busybox . /
COPY --from=stagex/go . /
COPY --from=stagex/ca-certificates . /
RUN tar -xvf v${VERSION}.tar.gz
WORKDIR sops-${VERSION}
ENV PWD=/home/user/sops-${VERSION}

View file

@ -1,7 +1,7 @@
FROM scratch as base
ARG VERSION=fc6eeb6bd75ea0d0025a79ea9fe45614bd60ba14
ARG SRC_SITE=https://codeload.github.com/lrvick/live-bootstrap/legacy.tar.gz
ARG SRC_HASH=0c268b19cf9f4eefdaf45dab64ac393ccf8ee43de58f0721624cab358044bf78
ENV VERSION=fc6eeb6bd75ea0d0025a79ea9fe45614bd60ba14
ENV SRC_SITE=https://codeload.github.com/lrvick/live-bootstrap/legacy.tar.gz
ENV SRC_HASH=0c268b19cf9f4eefdaf45dab64ac393ccf8ee43de58f0721624cab358044bf78
ARG CORES=1
FROM base as fetch
@ -258,7 +258,7 @@ ADD --checksum=sha256:b3a24de97a8fdbc835b9833169501030b8977031bcb54b3b3ac13740f8
# HACK: stage0 tar is currently incompatible with symlinks and github tgz files
#FROM base as extract
#COPY --from=stage0 . /
#COPY --from=stagex/stage0 . /
#COPY --from=fetch distfiles/live-bootstrap.tgz .
#SHELL ["/x86/bin/kaem","--verbose","--strict","--file"]
#COPY <<-EOF extract.kaem
@ -277,7 +277,7 @@ RUN echo "" > lrvick-live-bootstrap-fc6eeb6/steps/lwext4-1.0.0-lb1/files/fiwix-f
FROM base as build
USER 0:0
COPY --from=stage0 . /
COPY --from=stagex/stage0 . /
COPY --from=fetch distfiles external/distfiles
COPY --from=extract /lrvick-live-bootstrap-fc6eeb6/seed/* .
COPY --from=extract /lrvick-live-bootstrap-fc6eeb6/steps steps

View file

@ -61,7 +61,7 @@ ADD --checksum=sha256:${MPC_HASH} ${MPC_SITE} .
ADD --checksum=sha256:${ISL_HASH} ${ISL_SITE} .
FROM fetch as build
COPY --from=stage1 . /
COPY --from=stagex/stage1 . /
RUN --network=none <<-EOF
set -eux
tar -xf ${LINUX_FILE}
@ -185,7 +185,7 @@ EOF
FROM build as install
WORKDIR ${HOME}
COPY --from=stage1 . /rootfs/
COPY --from=stagex/stage1 . /rootfs/
RUN <<-EOF
set -eux
rm /rootfs/lib

View file

@ -71,7 +71,7 @@ ADD --checksum=sha256:${MPC_HASH} ${MPC_SITE} .
ADD --checksum=sha256:${ISL_HASH} ${ISL_SITE} .
FROM fetch as build
COPY --from=stage2 . /
COPY --from=stagex/stage2 . /
RUN --network=none <<-EOF
set -eux
tar -xf ${LINUX_FILE}

View file

@ -9,12 +9,12 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=binutils . /
COPY --from=musl . /
COPY --from=linux-headers . /
COPY --from=make . /
COPY --from=gcc . /
COPY --from=stagex/busybox . /
COPY --from=stagex/binutils . /
COPY --from=stagex/musl . /
COPY --from=stagex/linux-headers . /
COPY --from=stagex/make . /
COPY --from=stagex/gcc . /
RUN tar -xf ${SRC_FILE}
WORKDIR strace-${VERSION}
RUN --network=none <<-EOF

View file

@ -8,8 +8,8 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=go . /
COPY --from=stagex/busybox . /
COPY --from=stagex/go . /
RUN tar -xf ${SRC_FILE}
WORKDIR sxctl/cmd/sxctl
RUN go build -o sxctl

View file

@ -9,11 +9,11 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=binutils . /
COPY --from=musl . /
COPY --from=make . /
COPY --from=gcc . /
COPY --from=stagex/busybox . /
COPY --from=stagex/binutils . /
COPY --from=stagex/musl . /
COPY --from=stagex/make . /
COPY --from=stagex/gcc . /
RUN tar -xf tar-${VERSION}.tar.xz
WORKDIR tar-${VERSION}
ENV FORCE_UNSAFE_CONFIGURE=1

View file

@ -9,23 +9,23 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=binutils . /
COPY --from=openssl . /
COPY --from=coreutils . /
COPY --from=sed . /
COPY --from=grep . /
COPY --from=tar . /
COPY --from=xz . /
COPY --from=gawk . /
COPY --from=musl . /
COPY --from=make . /
COPY --from=perl . /
COPY --from=gcc . /
COPY --from=diffutils . /
COPY --from=findutils . /
COPY --from=bash . /
COPY --from=bash . /
COPY --from=bash /bin/bash /bin/sh
COPY --from=stagex/binutils . /
COPY --from=stagex/openssl . /
COPY --from=stagex/coreutils . /
COPY --from=stagex/sed . /
COPY --from=stagex/grep . /
COPY --from=stagex/tar . /
COPY --from=stagex/xz . /
COPY --from=stagex/gawk . /
COPY --from=stagex/musl . /
COPY --from=stagex/make . /
COPY --from=stagex/perl . /
COPY --from=stagex/gcc . /
COPY --from=stagex/diffutils . /
COPY --from=stagex/findutils . /
COPY --from=stagex/bash . /
COPY --from=stagex/bash . /
COPY --from=stagex/bash /bin/bash /bin/sh
RUN tar -xf ${SRC_FILE}
WORKDIR texinfo-${VERSION}
RUN --network=none <<-EOF

View file

@ -8,9 +8,9 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=go . /
COPY --from=ca-certificates . /
COPY --from=stagex/busybox . /
COPY --from=stagex/go . /
COPY --from=stagex/ca-certificates . /
RUN tar -xvf v${VERSION}.tar.gz
WORKDIR opentofu-${VERSION}
ENV PWD=/home/user/opentofu-${VERSION}

View file

@ -1,21 +1,21 @@
FROM scratch as base
ENV SRC_VERSION=1.5.6
ENV VERSION=1.5.6
ENV SRC_HASH=786f9f5df9865cc5b0c1fecee3d2c0f5e04cab8c9a859bd1c9c7ccd4964fdae1
ENV SRC_FILE=xorriso-${SRC_VERSION}.pl02.tar.gz
ENV SRC_FILE=xorriso-${VERSION}.pl02.tar.gz
ENV SRC_SITE=https://www.gnu.org/software/xorriso/${SRC_FILE}
FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} ${SRC_FILE}
FROM fetch as build
COPY --from=busybox . /
COPY --from=gcc . /
COPY --from=binutils . /
COPY --from=make . /
COPY --from=musl . /
COPY --from=linux-headers . /
COPY --from=stagex/busybox . /
COPY --from=stagex/gcc . /
COPY --from=stagex/binutils . /
COPY --from=stagex/make . /
COPY --from=stagex/musl . /
COPY --from=stagex/linux-headers . /
RUN tar -xf ${SRC_FILE}
WORKDIR xorriso-${SRC_VERSION}
WORKDIR xorriso-${VERSION}
RUN --network=none <<-EOF
set -eux
./configure \
@ -29,13 +29,13 @@ RUN find /rootfs -exec touch -hcd "@0" "{}" +
FROM base as test
COPY --from=install /rootfs /
COPY --from=musl . /
COPY --from=busybox . /
COPY --from=stagex/musl . /
COPY --from=stagex/busybox . /
RUN /bin/sh <<-EOF
set -eux
XORRISO_VERSION=$(xorriso --version | grep 'xorriso version' | sed -E 's/^.*: +([^ ]+).*$/\1/')
if [ "${SRC_VERSION}.pl02" != "\$XORRISO_VERSION" ]; then
echo "Expected xorriso version is \$SRC_VERSION.pl02, but got \$XORRISO_VERSION"
if [ "${VERSION}.pl02" != "\$XORRISO_VERSION" ]; then
echo "Expected xorriso version is \$VERSION.pl02, but got \$XORRISO_VERSION"
exit 1
fi
EOF

View file

@ -9,11 +9,11 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=binutils . /
COPY --from=musl . /
COPY --from=make . /
COPY --from=gcc . /
COPY --from=stagex/busybox . /
COPY --from=stagex/binutils . /
COPY --from=stagex/musl . /
COPY --from=stagex/make . /
COPY --from=stagex/gcc . /
RUN tar -xf ${SRC_FILE}
WORKDIR xz-${VERSION}
RUN --network=none <<-EOF

View file

@ -8,11 +8,11 @@ FROM base as fetch
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
FROM fetch as build
COPY --from=busybox . /
COPY --from=gcc . /
COPY --from=binutils . /
COPY --from=make . /
COPY --from=musl . /
COPY --from=stagex/busybox . /
COPY --from=stagex/gcc . /
COPY --from=stagex/binutils . /
COPY --from=stagex/make . /
COPY --from=stagex/musl . /
RUN tar -xf ${SRC_FILE}
WORKDIR zlib-${VERSION}
RUN --network=none <<-EOF

View file

@ -3,5 +3,5 @@ self=${1}
for each in $(find out/*/index.json); do
package=$(basename $(dirname ${each}))
[ "$package" == "$self" ] && continue
printf -- ' --build-context %s=oci-layout://./out/%s' "${package}" "${package}"
printf -- ' --build-context %s=oci-layout://./out/%s' "stagex/${package}" "stagex/${package}"
done