Skip to content

Commit 9bf4725

Browse files
committed
chore: Try using linbl-static from alpine
Signed-off-by: txtsd <code@ihavea.quest>
1 parent 6306247 commit 9bf4725

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

.github/scripts/build.sh

+1-23
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,7 @@ set -x
33

44
# General updates
55
apk update
6-
apk add cmake openssl openssl-dev openssl-libs-static linux-headers ninja-is-really-ninja alpine-sdk runuser sudo sed
7-
8-
# Setup build environment
9-
addgroup $(whoami) abuild
10-
mkdir -p /var/cache/distfiles
11-
chmod a+w /var/cache/distfiles
12-
chgrp abuild /var/cache/distfiles
13-
chmod g+w /var/cache/distfiles
14-
cwd=$(pwd)
15-
16-
# Create user to run abuild
17-
adduser -G abuild -g "Alpine Package Builder" -s /bin/ash -D abuilder
18-
echo "abuilder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
19-
20-
# Build static libnl3
21-
runuser -u abuilder -- /usr/bin/abuild-keygen -n -a -i -b 4096
22-
cd /home/abuilder
23-
runuser -u abuilder -- git clone https://gitlab.alpinelinux.org/alpine/aports.git --depth 1
24-
cd /home/abuilder/aports/main/libnl3
25-
# runuser -u abuilder -- /bin/sed -i "s/subpackages=\"/subpackages=\"\$pkgname-static /" APKBUILD
26-
runuser -u abuilder -- /bin/sed -i "s/--disable-static/--enable-static/" APKBUILD
27-
runuser -u abuilder -- /usr/bin/abuild -r
28-
apk add /home/abuilder/packages/main/$(abuild -A)/libnl3*
6+
apk add cmake openssl openssl-dev openssl-libs-static linux-headers ninja-is-really-ninja alpine-sdk runuser sudo sed libnl3-static
297

308
# Build static DPITunnel
319
cd ${cwd}

0 commit comments

Comments
 (0)