src: introduce upx::atomic_exchange; cleanups
This commit is contained in:
@@ -24,7 +24,7 @@ upx_print_var(CMAKE_APPLE_SILICON_PROCESSOR CMAKE_OSX_DEPLOYMENT_TARGET CMAKE_OS
|
||||
upx_print_Var(CMAKE_CROSSCOMPILING CMAKE_CROSSCOMPILING_EMULATOR)
|
||||
|
||||
# binutils
|
||||
upx_print_var(CMAKE_AR CMAKE_OBJCOPY CMAKE_RANLIB)
|
||||
upx_print_var(CMAKE_AR CMAKE_RANLIB)
|
||||
|
||||
# compilers
|
||||
foreach(lang IN ITEMS ASM C CXX)
|
||||
|
||||
@@ -19,7 +19,7 @@ RUN dpkg --add-architecture i386 \
|
||||
libzstd-dev lsb-release lz4 lzip lzop minify mksh moreutils musl neovim ninja-build \
|
||||
p7zip parallel patch patchelf patchutils pax-utils proot \
|
||||
python3 python3-pyasn1 python3-pycryptodome python3-pycurl python3-toml python3-yaml python3-zstd \
|
||||
re2c ripgrep rsync screen universal-ctags unzip yash yq \
|
||||
re2c ripgrep rsync screen strace universal-ctags unzip valgrind yash yq \
|
||||
zip zlib1g-dev zoxide zsh zstd \
|
||||
# extra packages for compiling with "gcc -m32" and "gcc -mx32":
|
||||
g++-multilib gcc-multilib \
|
||||
@@ -83,8 +83,11 @@ RUN useradd upx -U --uid 2000 --shell /bin/bash -m \
|
||||
&& echo "alias rd=rmdir" >> .bashrc \
|
||||
&& echo 'mdd() { mkdir "$1" && cd "$1"; }' >> .bashrc \
|
||||
&& echo 'm() { make "$@"; }' >> .bashrc \
|
||||
&& echo 'tn() { time nice "$@"; }' >> .bashrc \
|
||||
&& echo 'tnm() { time nice make "$@"; }' >> .bashrc \
|
||||
&& echo 'tnmm() { time nice make -j "$@"; }' >> .bashrc \
|
||||
&& echo 'source /usr/share/bash-completion/completions/make' >> .bashrc \
|
||||
&& echo 'complete -F _make m' >> .bashrc \
|
||||
&& echo 'complete -F _make m tnm tnmm' >> .bashrc \
|
||||
&& echo 'eval "$(zoxide init bash)"' >> .bashrc \
|
||||
&& echo "alias zz=zi\nalias y=z\nalias yy=zi" >> .bashrc \
|
||||
&& echo "alias cd..='cd ..'" >> .bashrc \
|
||||
|
||||
Generated
+9
-1
@@ -109,6 +109,7 @@ ii libbz2-1.0:amd64 1.0.8-5.1 amd64
|
||||
ii libbzip3-0:amd64 1.4.0-1 amd64 better, faster and stronger spiritual successor to bzip2 - runtime
|
||||
ii libc-bin 2.39-0ubuntu8.1 amd64 GNU C Library: Binaries
|
||||
ii libc-dev-bin 2.39-0ubuntu8.1 amd64 GNU C Library: Development binaries
|
||||
ii libc6-dbg:amd64 2.39-0ubuntu8.1 amd64 GNU C Library: detached debugging symbols
|
||||
ii libc6-dev-i386 2.39-0ubuntu8.1 amd64 GNU C Library: 32-bit development libraries for AMD64
|
||||
ii libc6-dev-x32 2.39-0ubuntu8.1 amd64 GNU C Library: X32 ABI Development Libraries for AMD64
|
||||
ii libc6-dev:amd64 2.39-0ubuntu8.1 amd64 GNU C Library: Development Libraries and Header Files
|
||||
@@ -246,6 +247,7 @@ ii libuchardet0:amd64 0.0.8-1build1 amd64
|
||||
ii libudev1:amd64 255.4-1ubuntu8 amd64 libudev shared library
|
||||
ii libunibilium4:amd64 2.1.0-3 amd64 simple, self-contained terminfo library
|
||||
ii libunistring5:amd64 1.1-2build1 amd64 Unicode string library for C
|
||||
ii libunwind8:amd64 1.6.2-3build1 amd64 library to determine the call-chain of a program - runtime
|
||||
ii liburing2:amd64 2.5-1build1 amd64 Linux kernel io_uring access library - shared library
|
||||
ii libutempter0:amd64 1.2.1-3build1 amd64 privileged helper for utmp/wtmp updates (runtime)
|
||||
ii libuuid1:amd64 2.39.3-9ubuntu6 amd64 Universally Unique ID library
|
||||
@@ -330,6 +332,7 @@ ii rsync 3.2.7-1ubuntu1 amd64
|
||||
ii screen 4.9.1-1build1 amd64 terminal multiplexer with VT100/ANSI terminal emulation
|
||||
ii sed 4.9-2build1 amd64 GNU stream editor for filtering/transforming text
|
||||
ii sensible-utils 0.0.22 all Utilities for sensible alternative selection
|
||||
ii strace 6.8-0ubuntu2 amd64 System call tracer
|
||||
ii sysstat 12.6.1-2 amd64 system performance tools for Linux
|
||||
ii sysvinit-utils 3.08-6ubuntu3 amd64 System-V-like utilities
|
||||
ii tar 1.35+dfsg-3build1 amd64 GNU version of the tar archiving utility
|
||||
@@ -340,6 +343,7 @@ ii ucf 3.0043+nmu1 all
|
||||
ii universal-ctags 5.9.20210829.0-1 amd64 build tag file indexes of source code definitions
|
||||
ii unzip 6.0-28ubuntu4 amd64 De-archiver for .zip files
|
||||
ii util-linux 2.39.3-9ubuntu6 amd64 miscellaneous system utilities
|
||||
ii valgrind 1:3.22.0-0ubuntu3 amd64 instrumentation framework for building dynamic analysis tools
|
||||
ii wget 1.21.4-1ubuntu4 amd64 retrieves files from the web
|
||||
ii xz-utils 5.6.1+really5.4.5-1 amd64 XZ-format compression utilities
|
||||
ii yash 2.55-2 amd64 yet another shell
|
||||
@@ -357,7 +361,8 @@ ii zstd 1.5.5+dfsg2-2build1 amd64
|
||||
||/ Name Version Architecture Description
|
||||
|
||||
Packages sorted by Installed-Size:
|
||||
874252 ===== TOTAL (351 packages)
|
||||
964659 ===== TOTAL (355 packages)
|
||||
76943 valgrind amd64
|
||||
72249 gcc-13-x86-64-linux-gnu amd64
|
||||
37841 g++-13-x86-64-linux-gnu amd64
|
||||
36493 cmake amd64
|
||||
@@ -378,6 +383,7 @@ Packages sorted by Installed-Size:
|
||||
12003 libc6-x32 amd64
|
||||
11992 libc6-i386 amd64
|
||||
11569 binutils-x86-64-linux-gnu amd64
|
||||
11174 libc6-dbg amd64
|
||||
10984 cmake-data all
|
||||
10764 libasan8 amd64
|
||||
9665 libx32asan8 amd64
|
||||
@@ -438,6 +444,7 @@ Packages sorted by Installed-Size:
|
||||
2191 ht amd64
|
||||
2182 libc-bin amd64
|
||||
2161 git-man all
|
||||
2103 strace amd64
|
||||
2078 libxml2 amd64
|
||||
2032 libisl23 amd64
|
||||
2009 universal-ctags amd64
|
||||
@@ -586,6 +593,7 @@ Packages sorted by Installed-Size:
|
||||
197 libgcc-s1 amd64
|
||||
196 libxcb1 amd64
|
||||
196 libelf1t64 amd64
|
||||
187 libunwind8 amd64
|
||||
187 dash amd64
|
||||
185 libgpg-error0 amd64
|
||||
184 libx32gcc-s1 amd64
|
||||
|
||||
@@ -66,13 +66,14 @@ set_cmake_bool_vars() {
|
||||
}
|
||||
|
||||
set -x
|
||||
if [[ "${emu[0]}" == *valgrind* ]]; then true; # valgrind is SLOW
|
||||
[[ -n $UPX_CONFIG_DISABLE_EXHAUSTIVE_TESTS ]] || UPX_CONFIG_DISABLE_EXHAUSTIVE_TESTS=ON
|
||||
fi
|
||||
set_cmake_bool_vars OFF UPX_CONFIG_DISABLE_SELF_PACK_TEST
|
||||
set_cmake_bool_vars OFF UPX_CONFIG_DISABLE_EXHAUSTIVE_TESTS
|
||||
set_cmake_bool_vars OFF UPX_CONFIG_DISABLE_RUN_UNPACKED_TEST
|
||||
set_cmake_bool_vars OFF UPX_CONFIG_DISABLE_RUN_PACKED_TEST
|
||||
if [[ "${emu[0]}" == *valgrind* ]]; then # valgrind is SLOW
|
||||
set_cmake_bool_vars ON UPX_CONFIG_DISABLE_EXHAUSTIVE_TESTS
|
||||
else
|
||||
set_cmake_bool_vars OFF UPX_CONFIG_DISABLE_EXHAUSTIVE_TESTS
|
||||
fi
|
||||
|
||||
export UPX="--prefer-ucl --no-color --no-progress"
|
||||
export UPX_DEBUG_DISABLE_GITREV_WARNING=1
|
||||
|
||||
Reference in New Issue
Block a user