From 604be185da9e198d9795362ec8535007f30c43a8 Mon Sep 17 00:00:00 2001 From: Zach van Rijn Date: Mon, 5 Aug 2024 17:25:23 -0500 Subject: setup-abuild: patch 'apk-tools' for m68k support. fixes #10. --- setup-abuild | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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; -- cgit v1.2.3-70-g09d2