dev-libs/botan: fix powerpc64le build
authorAlon Bar-Lev <alonbl@gentoo.org>
Sun, 6 Jan 2019 20:10:18 +0000 (22:10 +0200)
committerAlon Bar-Lev <alonbl@gentoo.org>
Sun, 6 Jan 2019 20:10:46 +0000 (22:10 +0200)
Closes: https://bugs.gentoo.org/show_bug.cgi?id=674128
Thanks: Shawn Anastasio
Signed-off-by: Alon Bar-Lev <alonbl@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

dev-libs/botan/botan-2.8.0.ebuild
dev-libs/botan/files/botan-2.8.0-build.patch [new file with mode: 0644]

index f64ebf1a8fe60ad0b6acce9dbb48a67323b29101..4f995a89686a735d58a17fba660bb2820357c7e6 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -34,6 +34,10 @@ RDEPEND="${DEPEND}
 BDEPEND="dev-lang/python:*
        doc? ( dev-python/sphinx )"
 
+PATCHES=(
+       "${FILESDIR}/${P}-build.patch"
+)
+
 src_configure() {
        local disable_modules=()
        use boost || disable_modules+=( "boost" )
diff --git a/dev-libs/botan/files/botan-2.8.0-build.patch b/dev-libs/botan/files/botan-2.8.0-build.patch
new file mode 100644 (file)
index 0000000..04755a0
--- /dev/null
@@ -0,0 +1,22 @@
+From 813b7230735960f3e5225f1f74ca680c9ea84101 Mon Sep 17 00:00:00 2001
+From: Shawn Anastasio <shawn@anastas.io>
+Date: Sun, 30 Dec 2018 14:49:43 -0600
+Subject: [PATCH] Add powerpc64le as an alias for ppc64
+
+Add powerpc64le as an alias for the ppc64 build target.
+---
+ src/build-data/arch/ppc64.txt | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/build-data/arch/ppc64.txt b/src/build-data/arch/ppc64.txt
+index 9ab7cccded..23d3bb2a10 100644
+--- a/src/build-data/arch/ppc64.txt
++++ b/src/build-data/arch/ppc64.txt
+@@ -5,6 +5,7 @@ wordsize 64
+ <aliases>
+ powerpc64
++powerpc64le
+ ppc64le
+ ppc64el
+ </aliases>