aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Daudt <kdaudt@alpinelinux.org>2021-04-04 13:13:56 +0000
committerKevin Daudt <kdaudt@alpinelinux.org>2021-04-04 13:13:56 +0000
commitca0583acc9fdc79f1d39db805dd8d3b5c463cc9e (patch)
treede87a4d6b4872ca91991d74ea25a1fcf439ac306
parent11e5cf46f8ba6899eea5ea2c5105c334d3e9f853 (diff)
downloadaports-ca0583acc9fdc79f1d39db805dd8d3b5c463cc9e.tar.gz
aports-ca0583acc9fdc79f1d39db805dd8d3b5c463cc9e.tar.bz2
aports-ca0583acc9fdc79f1d39db805dd8d3b5c463cc9e.tar.xz
community/janet: fix build on mips64
mips64 is not accounted for as 64-bits
-rw-r--r--community/janet/APKBUILD7
-rw-r--r--community/janet/mips-64-bit.patch16
2 files changed, 21 insertions, 2 deletions
diff --git a/community/janet/APKBUILD b/community/janet/APKBUILD
index 7a6e815f28..d3108b3989 100644
--- a/community/janet/APKBUILD
+++ b/community/janet/APKBUILD
@@ -8,7 +8,9 @@ url="https://janet-lang.org/"
license="MIT"
arch="all"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
-source="$pkgname-$pkgver.tar.gz::https://github.com/janet-lang/janet/archive/v$pkgver.tar.gz"
+source="$pkgname-$pkgver.tar.gz::https://github.com/janet-lang/janet/archive/v$pkgver.tar.gz
+ mips-64-bit.patch
+ "
prepare() {
default_prepare
@@ -54,4 +56,5 @@ package() {
install -Dm644 -t "$pkgdir"/usr/lib/janet tools/.keep
}
-sha512sums="e9f3524762a3043f193677face6085c31bc4e4078130ded9c8c0054a18b9d5621c4cbfeafd23a42d107462ed0cf8bd49a01d26c955c375331b143107e2812e1b janet-1.15.4.tar.gz"
+sha512sums="e9f3524762a3043f193677face6085c31bc4e4078130ded9c8c0054a18b9d5621c4cbfeafd23a42d107462ed0cf8bd49a01d26c955c375331b143107e2812e1b janet-1.15.4.tar.gz
+c983e178650193c4b471f82cb2c77ffc10796d192365019c078c9ece0a63799fb46fc7898f1e11d911f964cf65810c3750d1266461305179d23c49f8fa622fa2 mips-64-bit.patch"
diff --git a/community/janet/mips-64-bit.patch b/community/janet/mips-64-bit.patch
new file mode 100644
index 0000000000..b91bcfdbec
--- /dev/null
+++ b/community/janet/mips-64-bit.patch
@@ -0,0 +1,16 @@
+Description: mips64 is not properly detected as 64-bits
+Upstream: no
+diff --git a/src/include/janet.h b/src/include/janet.h
+index 4448a90..dc73001 100644
+--- a/src/include/janet.h
++++ b/src/include/janet.h
+@@ -96,7 +96,8 @@ extern "C" {
+ || (defined(__sparc__) && defined(__arch64__) || defined (__sparcv9)) /* BE */ \
+ || defined(__s390x__) /* S390 64-bit (BE) */ \
+ || (defined(__ppc64__) || defined(__PPC64__)) \
+- || defined(__aarch64__) /* ARM 64-bit */
++ || defined(__aarch64__) /* ARM 64-bit */ \
++ || defined(__mips64) /* MIPS 64-bit */
+ #define JANET_64 1
+ #else
+ #define JANET_32 1