Skip to content

Commit

Permalink
hold native patched packages
Browse files Browse the repository at this point in the history
  • Loading branch information
nkraetzschmar committed Oct 9, 2023
1 parent dccc7e9 commit ab0470f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions crossbuild.containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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)" ]
Expand Down

0 comments on commit ab0470f

Please sign in to comment.