1
0
mirror of https://github.com/upx/upx.git synced 2025-08-07 22:46:51 +08:00

misc: update misc/rebuild-stubs-with-podman so that we can build

the full upx program in a container
This commit is contained in:
Markus F.X.J. Oberhumer
2022-10-05 16:07:12 +02:00
parent 17167d4905
commit 8fe83be87f
3 changed files with 6 additions and 3 deletions

View File

@ -6,7 +6,7 @@ argv0=$0; argv0abs="$(readlink -fn "$argv0")"; argv0dir="$(dirname "$argv0abs")"
# create the image from Dockerfile
# using a rootless Podman container
image=upx-stubtools-20210104-v1
image=upx-stubtools-20210104-v2
podman build -t "$image" -f "$argv0dir/Dockerfile" "$argv0dir"

View File

@ -6,7 +6,7 @@ argv0=$0; argv0abs="$(readlink -fn "$argv0")"; argv0dir="$(dirname "$argv0abs")"
# run an interactive shell in the image
# using a rootless Podman container
image=upx-stubtools-20210104-v1
image=upx-stubtools-20210104-v2
flags=( -ti --read-only --rm )
flags+=( --cap-drop=all )
@ -26,7 +26,7 @@ podman run "${flags[@]}" "$image" bash -l
# # make sure that git is clean:
# git status .
# # remove stub files and make sure that they got deleted:
# make clean
# make maintainer-clean
# git status .
# # rebuild
# make all

View File

@ -9,6 +9,9 @@ RUN dpkg --add-architecture i386 \
aria2 ca-certificates git less libmpc3 libncurses5 make \
ncurses-term perl-base python2-minimal xz-utils \
libc6:i386 zlib1g:i386 \
# these packages are not required but make the image more convenient
# and also allow building upx via cmake:
bzip2 cmake file g++ patch unzip vim zip \
&& true
# manually install compat libs from Ubuntu 16.04