Date: Sunday, July 15, 2018 @ 18:45:42 Author: arojas Revision: 359569
archrelease: copy trunk to community-staging-x86_64 Added: flint/repos/community-staging-x86_64/ flint/repos/community-staging-x86_64/PKGBUILD (from rev 359568, flint/trunk/PKGBUILD) flint/repos/community-staging-x86_64/flint-pie-hardening-conflict.patch (from rev 359568, 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 359568, flint/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-07-15 18:45:42 UTC (rev 359569) @@ -0,0 +1,33 @@ +# $Id$ +# Maintainer: Antonio Rojas <aro...@archlinux.org> +# Contributor: Rémy Oudompheng <oudom...@clipper.ens.fr> +# Contributor: Alessandro "jakedust" Andrioni <jaked...@gmail.com> + +pkgname=flint +pkgver=2.5.2 +pkgrel=24 +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 359568, 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-07-15 18:45:42 UTC (rev 359569) @@ -0,0 +1,17 @@ +Description: invoke $(CC) with -r and not -Wl,-r to fix FTBFS with PIE enabled +Author: Logan Rosen <lo...@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) +