[arch-commits] Commit in ntl/trunk (PKGBUILD ntl-gf2x-1.3.patch)

Antonio Rojas arojas at archlinux.org
Tue Dec 10 16:05:27 UTC 2019


    Date: Tuesday, December 10, 2019 @ 16:05:26
  Author: arojas
Revision: 536524

gf2x 1.3.0 rebuild

Added:
  ntl/trunk/ntl-gf2x-1.3.patch
Modified:
  ntl/trunk/PKGBUILD

--------------------+
 PKGBUILD           |   13 +++++++++----
 ntl-gf2x-1.3.patch |   11 +++++++++++
 2 files changed, 20 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-10 15:27:28 UTC (rev 536523)
+++ PKGBUILD	2019-12-10 16:05:26 UTC (rev 536524)
@@ -3,7 +3,7 @@
 
 pkgname=ntl
 pkgver=11.4.1
-pkgrel=1
+pkgrel=2
 pkgdesc="A Library for doing Number Theory"
 arch=(x86_64)
 url="https://www.shoup.net/ntl/"
@@ -10,11 +10,16 @@
 license=(LGPL)
 depends=(gf2x gmp)
 makedepends=()
-source=("https://www.shoup.net/$pkgname/$pkgname-$pkgver.tar.gz")
-sha256sums=('a30687c4fbb8f114200426d2b1ece840bd024f64e2c5c6920b2d11ebcd82620e')
+source=("https://www.shoup.net/$pkgname/$pkgname-$pkgver.tar.gz"
+         ntl-gf2x-1.3.patch)
+sha256sums=('a30687c4fbb8f114200426d2b1ece840bd024f64e2c5c6920b2d11ebcd82620e'
+            '45d08b12ba4d0906d6bcdafb466a0c55c1ea13bb4af87b76ec9d400458ab4a3c')
 
 prepare() {
-  cd $pkgname-$pkgver/src
+  cd $pkgname-$pkgver
+  patch -p1 -i ../ntl-gf2x-1.3.patch # Fix build with gf2x 1.3
+
+  cd src
   rm -r libtool-origin
 }
 

Added: ntl-gf2x-1.3.patch
===================================================================
--- ntl-gf2x-1.3.patch	                        (rev 0)
+++ ntl-gf2x-1.3.patch	2019-12-10 16:05:26 UTC (rev 536524)
@@ -0,0 +1,11 @@
+--- ntl-11.4.1/src/gf2x_version_1_2_or_later_required.cpp.orig	2019-12-10 15:33:19.317814419 +0000
++++ ntl-11.4.1/src/gf2x_version_1_2_or_later_required.cpp	2019-12-10 15:33:46.244836785 +0000
+@@ -7,6 +7,8 @@
+ #if (defined(NTL_GF2X_LIB) && defined(NTL_THREADS))
+ // we require v1.2 or later
+ 
++#include <gf2x.h>
++
+ #ifndef GF2X_VERSION_MAJOR
+ // versions after v1.2 should define GF2X_VERSION_MAJOR
+ 



More information about the arch-commits mailing list