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

Antonio Rojas arojas at archlinux.org
Mon Sep 2 17:53:07 UTC 2019


    Date: Monday, September 2, 2019 @ 17:53:06
  Author: arojas
Revision: 507055

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: flint/repos/community-staging-x86_64/PKGBUILD (from rev 507054, flint/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-09-02 17:53:06 UTC (rev 507055)
@@ -0,0 +1,32 @@
+# 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=26
+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 507054, 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	2019-09-02 17:53:06 UTC (rev 507055)
@@ -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