Subject: [alpine-aports] [PATCH] main/cjdns: fix build on mips*

From: alpine-mips-patches <[email-masked]>
Date: Thu, 17 Jan 2019 06:23:46 +0000

Add mips64* (currently MIPS III on Alpine) too even if nodejs is not
available there. It does not hurt.

---
 main/cjdns/APKBUILD                                   | 6 +++---
 main/cjdns/{fix-aarch64.patch => no-march-flag.patch} | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
 rename main/cjdns/{fix-aarch64.patch => no-march-flag.patch} (78%)

diff --git a/main/cjdns/APKBUILD b/main/cjdns/APKBUILD
index d4cd14eb99..682f344ade 100644
--- a/main/cjdns/APKBUILD
+++ b/main/cjdns/APKBUILD
@@ -4,7 +4,7 @@
 
 pkgname=cjdns
 pkgver=20.2
-pkgrel=1
+pkgrel=2
 pkgdesc="A routing engine designed for security, scalability, speed and ease of use"
 url="https://github.com/cjdelisle/cjdns"
 arch="all !x86 !s390x"
@@ -13,7 +13,7 @@ makedepends="nodejs python2 linux-headers libseccomp-dev"
 install="$pkgname.post-install"
 subpackages="$pkgname-doc $pkgname-openrc"
 source="$pkgname-$pkgver.tar.gz::https://github.com/cjdelisle/$pkgname/archive/cjdns-v$pkgver.tar.gz
-	fix-aarch64.patch"
+	no-march-flag.patch"
 
 builddir="$srcdir/$pkgname-$pkgname-v$pkgver"
 
@@ -48,4 +48,4 @@ package() {
 }
 
 sha512sums="31edd3ff7e62bfe2ab555da1e34d4b900829180d9558eecdd93a3d726126067c8094419683f047abdcabc444e3b2ae933a68ca4fa1b535731f977e07983b7d39  cjdns-20.2.tar.gz
-23bb0a65711a42e91ba08f0cf0fb6134a2c78ca13a3f566407c3241bb9151c39eddacc187ab31d6deada19968f0dc212d1de27e8706944e3043168f3ccb3e63c  fix-aarch64.patch"
+0c487a46609b75408d83cee954fc49f47997f0e9ee2bb8f64c3edc7e67273e5e90b4b2028847e09faa4bd1310b82f1a86fa7d0d0c42f18510cc9dcd4bccb8808  no-march-flag.patch"
diff --git a/main/cjdns/fix-aarch64.patch b/main/cjdns/no-march-flag.patch
similarity index 78%
rename from main/cjdns/fix-aarch64.patch
rename to main/cjdns/no-march-flag.patch
index b73ce53883..aaec16c2ed 100644
--- a/main/cjdns/fix-aarch64.patch
+++ b/main/cjdns/no-march-flag.patch
@@ -7,7 +7,7 @@ index b3ae15d..b86e07f 100644
  var LDFLAGS = process.env['LDFLAGS'];
  
 -var NO_MARCH_FLAG = ['arm', 'ppc', 'ppc64'];
-+var NO_MARCH_FLAG = ['arm', 'arm64', 'ppc', 'ppc64'];
++var NO_MARCH_FLAG = ['arm', 'arm64', 'mips', 'mips64', 'mips64el', 'mipsel', 'ppc', 'ppc64'];
  
  if (GCC) {
      // Already specified.
-- 
2.20.1

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---