From ab0470fbc7424af60bd5e79a3d8d213f4ed47c5d Mon Sep 17 00:00:00 2001 From: nkraetzschmar <9020053+nkraetzschmar@users.noreply.github.com> Date: Mon, 9 Oct 2023 09:45:15 +0200 Subject: [PATCH] hold native patched packages --- build.containerfile | 1 + crossbuild.containerfile | 1 + 2 files changed, 2 insertions(+) diff --git a/build.containerfile b/build.containerfile index 62b4e4a..feba081 100644 --- a/build.containerfile +++ b/build.containerfile @@ -13,6 +13,7 @@ WORKDIR /tmp COPY debian-src.sources /etc/apt/sources.list.d/ COPY pkgs ./ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y build-essential ca-certificates debhelper devscripts git sudo yq $(awk '{ print $1 }' pkgs) +RUN apt-mark hold $(awk '{ print $1 }' pkgs) RUN gcc --print-search-dir && echo 'int main() { return 0; }' > main.c && gcc -o main main.c && ./main COPY build /usr/local/bin/ RUN find /tmp -mindepth 1 -delete diff --git a/crossbuild.containerfile b/crossbuild.containerfile index 31b090d..ea91470 100644 --- a/crossbuild.containerfile +++ b/crossbuild.containerfile @@ -22,6 +22,7 @@ WORKDIR /tmp COPY debian-src.sources /etc/apt/sources.list.d/ COPY pkgs ./ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y build-essential ca-certificates debhelper devscripts git yq $(awk '{ print $1 }' pkgs) +RUN apt-mark hold $(awk '{ print $1 }' pkgs) COPY --from=native /native /native COPY setup_native ./ RUN [ "/native/bash", "-c", "PATH=/native:$PATH ./setup_native import $(awk '{ print $1 }' pkgs)" ]