author | Urja (ARMLFS builder)
<urja+armlfs@urja.dev> 2024-07-12 17:48:02 UTC |
committer | Urja (ARMLFS builder)
<urja+armlfs@urja.dev> 2024-07-12 17:48:02 UTC |
parent | b150e51c2d09853496fbdd12e9b3af202a63a4f0 |
PKGBUILD | +12 | -0 |
diff --git a/PKGBUILD b/PKGBUILD index 494edfe..701212d 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -73,6 +73,18 @@ prepare() { patch -Np1 < ../valgrind_3_22_0_fchmodat2_syscall.patch autoreconf -ifv + +# ARMv8 to v7 hack (VM) +if [ "$(uname -m)" = "armv8l" ]; then + cat > uname << "EOF" +#!/bin/sh +/usr/bin/uname.real "$@" | sed 's/armv8l/armv7l/' +EOF + chmod +x uname + su -c 'mv /usr/bin/uname /usr/bin/uname.real' + su -c 'mv uname /usr/bin' +fi + } build() {