Skip to content

Commit 7487024

Browse files
committed
Various fixes
1 parent f824043 commit 7487024

File tree

3 files changed

+23
-7
lines changed

3 files changed

+23
-7
lines changed

ci/build.sh

+11-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,17 @@ make -j$(nproc)
6363
make install DESTDIR=AppDir
6464

6565
ARCH="$(dpkg --print-architecture)"
66-
[[ "$ARCH" == "amd64" ]] && ARCH=x86_64
66+
67+
# "translate" to linuxdeploy/AppImage architecture
68+
# note: linuxdeploy and AppImage differ in i386/i686, but we don't support that any more anyway
69+
case "$ARCH" in
70+
amd64)
71+
ARCH=x86_64
72+
;;
73+
arm64)
74+
ARCH=aarch64
75+
;;
76+
esac
6777

6878
# build release formats
6979
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-"$ARCH".AppImage

ci/install-deps.sh

+9-5
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ packages=(
6868
libtool
6969
patch
7070
wget
71+
curl
7172
vim-common
7273
desktop-file-utils
7374
pkg-config
@@ -105,7 +106,7 @@ export DEBIAN_FRONTEND=noninteractive
105106

106107
apt-get -y --no-install-recommends install "${packages[@]}"
107108

108-
# install more recent CMake
109+
# install more recent CMake and patchelf
109110
cmake_arch="$(dpkg --print-architecture)"
110111

111112
case "$cmake_arch" in
@@ -115,14 +116,17 @@ case "$cmake_arch" in
115116
arm64)
116117
cmake_arch=aarch64
117118
;;
119+
armhf)
120+
patchelf_arch=armv7l
121+
;;
118122
esac
119123

120-
wget https://artifacts.assassinate-you.net/prebuilt-cmake/cmake-v3.29.6-ubuntu-focal-"${cmake_arch}".tar.gz -O - | \
124+
patchelf_arch="${patchelf_arch:-$cmake_arch}"
125+
126+
curl -L https://artifacts.assassinate-you.net/prebuilt-cmake/cmake-v3.29.6-ubuntu-focal-"${cmake_arch}".tar.gz | \
121127
tar xz --strip-components=1 -C /usr
122128

123-
# install recent patchelf
124-
patchelf_arch="$cmake_arch"
125-
wget https://github.com/NixOS/patchelf/releases/download/0.18.0/patchelf-0.18.0-"$patchelf_arch".tar.gz -O- | tar xz -C/usr/local
129+
curl -L https://github.com/NixOS/patchelf/releases/download/0.18.0/patchelf-0.18.0-"$patchelf_arch".tar.gz | tar xz -C/usr/local
126130

127131
# g{cc,++}-multilib usually install these dependencies for us
128132
# however, as the multilib stuff is not available for ARM, we have to install these dev packages ourselves

src/binfmt-bypass/fix-preload-library.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
set -euo pipefail
44

5-
glibc_ok_version="2.4"
5+
# 2.17 ensures compatibility with CentOS 7 and beyond
6+
# cf. https://gist.github.com/wagenet/35adca1a032cec2999d47b6c40aa45b1
7+
glibc_ok_version="2.17"
68

79
find_too_new_symbols() {
810
glibc_symbols=( "$(nm --dynamic --undefined-only --with-symbol-versions "$1" | grep "GLIBC_")" )

0 commit comments

Comments
 (0)