diff options
author | Zach van Rijn <me@zv.io> | 2024-08-05 17:25:23 -0500 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2024-08-05 17:25:23 -0500 |
commit | 604be185da9e198d9795362ec8535007f30c43a8 (patch) | |
tree | f5a7762c109417667a84a63816ba5db897fbc92d | |
parent | bdbc8d55582db42a64516fde6bf3f7843498ec37 (diff) | |
download | bootstrap-604be185da9e198d9795362ec8535007f30c43a8.tar.gz bootstrap-604be185da9e198d9795362ec8535007f30c43a8.tar.bz2 bootstrap-604be185da9e198d9795362ec8535007f30c43a8.tar.xz bootstrap-604be185da9e198d9795362ec8535007f30c43a8.zip |
setup-abuild: patch 'apk-tools' for m68k support. fixes #10.
-rwxr-xr-x | setup-abuild | 15 |
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; |