[arch-commits] Commit in flint/repos (3 files)

Antonio Rojas arojas at archlinux.org
Thu Jun 7 13:10:57 UTC 2018


    Date: Thursday, June 7, 2018 @ 13:10:57
  Author: arojas
Revision: 341834

archrelease: copy trunk to community-staging-x86_64

Added:
  flint/repos/community-staging-x86_64/
  flint/repos/community-staging-x86_64/PKGBUILD
    (from rev 341833, flint/trunk/PKGBUILD)
  flint/repos/community-staging-x86_64/flint-pie-hardening-conflict.patch
    (from rev 341833, flint/trunk/flint-pie-hardening-conflict.patch)

------------------------------------+
 PKGBUILD                           |   33 ++++++++++++++
 flint-pie-hardening-conflict.patch |   78 +++++++++++++++++++++++++++++++++++
 2 files changed, 111 insertions(+)

Copied: flint/repos/community-staging-x86_64/PKGBUILD (from rev 341833, flint/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-06-07 13:10:57 UTC (rev 341834)
@@ -0,0 +1,33 @@
+# $Id$
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Rémy Oudompheng <oudomphe at clipper.ens.fr>
+# Contributor: Alessandro "jakedust" Andrioni <jakedust at gmail.com>
+
+pkgname=flint
+pkgver=2.5.2
+pkgrel=22
+pkgdesc="A C library for doing number theory"
+arch=(x86_64)
+url="http://www.flintlib.org"
+license=(GPL)
+depends=(mpfr ntl)
+source=("http://www.flintlib.org/flint-$pkgver.tar.gz" flint-pie-hardening-conflict.patch)
+sha256sums=('cbf1fe0034533c53c5c41761017065f85207a1b770483e98b2392315f6575e87'
+            '2266dcd423b95a144d94e667ce3a9204401fa3577767ecceeb658f281072ccc5')
+
+prepare() {
+  cd $pkgname-$pkgver
+# Fix build with PIE
+  patch -p1 -i ../flint-pie-hardening-conflict.patch
+}
+
+build() {
+  cd $pkgname-$pkgver
+  ./configure --prefix=/usr --with-gmp=/usr --with-mpfr=/usr --with-ntl=/usr
+  make
+}
+
+package() {
+  cd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
+}

Copied: flint/repos/community-staging-x86_64/flint-pie-hardening-conflict.patch (from rev 341833, flint/trunk/flint-pie-hardening-conflict.patch)
===================================================================
--- community-staging-x86_64/flint-pie-hardening-conflict.patch	                        (rev 0)
+++ community-staging-x86_64/flint-pie-hardening-conflict.patch	2018-06-07 13:10:57 UTC (rev 341834)
@@ -0,0 +1,78 @@
+In newer binutils, ld options -r and -pie conflict.
+Patch due to Jörg-Volker Peetz
+(source : https://groups.google.com/d/msg/sage-devel/TduebNoZuBE/sEULolL0BQAJ),
+packaged by Emmanuel Charpentier
+
+diff -ru flint-2.5.2-orig/fq/Makefile flint-2.5.2-new/fq/Makefile
+--- flint-2.5.2-orig/fq/Makefile	2015-08-13 18:16:22.000000000 +0200
++++ flint-2.5.2-new/fq/Makefile	2016-11-07 18:41:09.148996528 +0100
+@@ -35,7 +35,7 @@
+ 	$(CC) $(CFLAGS) -c $(INCS) $< -o $@
+ 
+ $(MOD_LOBJ): $(LOBJS)
+-	$(CC) $(ABI_FLAG) -Wl,-r $^ -o $@ -nostdlib
++	$(CC) $(ABI_FLAG) -r $^ -o $@ -nostdlib
+ 
+ $(BUILD_DIR)/%.lo: %.c
+ 	$(CC) $(PICFLAG) $(CFLAGS) $(INCS) -c $< -o $@
+diff -ru flint-2.5.2-orig/fq_poly/Makefile flint-2.5.2-new/fq_poly/Makefile
+--- flint-2.5.2-orig/fq_poly/Makefile	2015-08-13 18:16:22.000000000 +0200
++++ flint-2.5.2-new/fq_poly/Makefile	2016-11-07 18:41:09.148996528 +0100
+@@ -35,7 +35,7 @@
+ 	$(CC) $(CFLAGS) -c $(INCS) $< -o $@
+ 
+ $(MOD_LOBJ): $(LOBJS)
+-	$(CC) $(ABI_FLAG) -Wl,-r $^ -o $@ -nostdlib
++	$(CC) $(ABI_FLAG) -r $^ -o $@ -nostdlib
+ 
+ $(BUILD_DIR)/%.lo: %.c
+ 	$(CC) $(PICFLAG) $(CFLAGS) $(INCS) -c $< -o $@
+diff -ru flint-2.5.2-orig/Makefile.subdirs flint-2.5.2-new/Makefile.subdirs
+--- flint-2.5.2-orig/Makefile.subdirs	2015-08-13 18:16:22.000000000 +0200
++++ flint-2.5.2-new/Makefile.subdirs	2016-11-07 18:41:09.144996522 +0100
+@@ -59,7 +59,7 @@
+ 	$(QUIET_CC) $(CC) $(CFLAGS) $(INCS) -c $< -o $@ -MMD -MP -MF "$(BUILD_DIR)/$(MOD_DIR)_$*.d" -MT "$(BUILD_DIR)/$(MOD_DIR)_$*.d" -MT "$@"
+ 
+ $(MOD_LOBJ): $(LOBJS)
+-	$(QUIET_CC) $(CC) $(ABI_FLAG) -Wl,-r $^ -o $@ -nostdlib
++	$(QUIET_CC) $(CC) $(ABI_FLAG) -r $^ -o $@ -nostdlib
+ 
+ -include $(LOBJS:.lo=.d)
+ 
+Seulement dans flint-2.5.2-new/: Makefile.subdirs.orig
+diff -ru flint-2.5.2-orig/padic_mat/Makefile flint-2.5.2-new/padic_mat/Makefile
+--- flint-2.5.2-orig/padic_mat/Makefile	2015-08-13 18:16:22.000000000 +0200
++++ flint-2.5.2-new/padic_mat/Makefile	2016-11-07 18:41:09.148996528 +0100
+@@ -35,7 +35,7 @@
+ 	$(CC) $(CFLAGS) -c $(INCS) $< -o $@
+ 
+ $(MOD_LOBJ): $(LOBJS)
+-	$(CC) $(ABI_FLAG) -Wl,-r $^ -o $@ -nostdlib
++	$(CC) $(ABI_FLAG) -r $^ -o $@ -nostdlib
+ 
+ $(BUILD_DIR)/%.lo: %.c
+ 	$(CC) $(PICFLAG) $(CFLAGS) $(INCS) -c $< -o $@
+diff -ru flint-2.5.2-orig/padic_poly/Makefile flint-2.5.2-new/padic_poly/Makefile
+--- flint-2.5.2-orig/padic_poly/Makefile	2015-08-13 18:16:22.000000000 +0200
++++ flint-2.5.2-new/padic_poly/Makefile	2016-11-07 18:41:09.148996528 +0100
+@@ -35,7 +35,7 @@
+ 	$(CC) $(CFLAGS) -c $(INCS) $< -o $@
+ 
+ $(MOD_LOBJ): $(LOBJS)
+-	$(CC) $(ABI_FLAG) -Wl,-r $^ -o $@ -nostdlib
++	$(CC) $(ABI_FLAG) -r $^ -o $@ -nostdlib
+ 
+ $(BUILD_DIR)/%.lo: %.c
+ 	$(CC) $(PICFLAG) $(CFLAGS) $(INCS) -c $< -o $@
+diff -ru flint-2.5.2-orig/qadic/Makefile flint-2.5.2-new/qadic/Makefile
+--- flint-2.5.2-orig/qadic/Makefile	2015-08-13 18:16:22.000000000 +0200
++++ flint-2.5.2-new/qadic/Makefile	2016-11-07 18:41:09.148996528 +0100
+@@ -35,7 +35,7 @@
+ 	$(CC) $(CFLAGS) -c $(INCS) $< -o $@
+ 
+ $(MOD_LOBJ): $(LOBJS)
+-	$(CC) $(ABI_FLAG) -Wl,-r $^ -o $@ -nostdlib
++	$(CC) $(ABI_FLAG) -r $^ -o $@ -nostdlib
+ 
+ $(BUILD_DIR)/%.lo: %.c
+ 	$(CC) $(PICFLAG) $(CFLAGS) $(INCS) -c $< -o $@



More information about the arch-commits mailing list