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

Antonio Rojas arojas at archlinux.org
Fri Aug 17 19:34:00 UTC 2018


    Date: Friday, August 17, 2018 @ 19:33:59
  Author: arojas
Revision: 372538

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: flint/repos/community-staging-x86_64/PKGBUILD (from rev 372537, flint/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-08-17 19:33:59 UTC (rev 372538)
@@ -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=25
+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'
+            '0e8ba7b48d70c703e511d71d4e59b6b359273c480b01f02879ca0aaaaa5395c3')
+
+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 372537, 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-08-17 19:33:59 UTC (rev 372538)
@@ -0,0 +1,17 @@
+Description: invoke $(CC) with -r and not -Wl,-r to fix FTBFS with PIE enabled
+Author: Logan Rosen <logan at ubuntu.com>
+Forwarded: yes
+
+diff --git a/Makefile.subdirs b/Makefile.subdirs
+index ec05fb0..f2d8b37 100644
+--- a/Makefile.subdirs
++++ b/Makefile.subdirs
+@@ -59,7 +59,7 @@ $(BUILD_DIR)/$(MOD_DIR)_%.o: %.c
+ 	$(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)
+ 



More information about the arch-commits mailing list