summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsetup-abuild15
1 files changed, 15 insertions, 0 deletions
diff --git a/setup-abuild b/setup-abuild
index 2b61aaf..e59ec41 100755
--- a/setup-abuild
+++ b/setup-abuild
@@ -274,6 +274,21 @@ test ! -f ._${natl}-${vatl} && \
-e "s@var/log@${DEST}/${1}/var/log@" \
; # hardcoded
ln -sf ../portability/strlcpy.c src/strlcpy.c;
+ patch -p1 <<"EOF"
+diff -ur a/src/apk_defines.h b/src/apk_defines.h
+--- a/src/apk_defines.h 2024-08-05 17:15:31.825944384 -0500
++++ b/src/apk_defines.h 2024-08-05 17:16:57.788404910 -0500
+@@ -124,6 +124,8 @@
+ #define APK_DEFAULT_BASE_ARCH "aarch64"
+ #elif defined(__s390x__)
+ #define APK_DEFAULT_BASE_ARCH "s390x"
++#elif defined(__m68k__)
++#define APK_DEFAULT_BASE_ARCH "m68k"
+ #elif defined(__mips64) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
+ #define APK_DEFAULT_BASE_ARCH "mips64"
+ #elif defined(__mips64) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
+EOF
+
export LUA=no; # documentation requires lua
export ZSTD=no; # d7fb939a68cb20c0398753379a17fc165b3c892a
make clean;