summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2017-05-08 13:28:01 +0200
committerLars Wendler <polynomial-c@gentoo.org>2017-05-08 13:29:07 +0200
commit6777c2a8d02373238566c8268c3d3acc5904837b (patch)
tree103c9f62bd29359eef576464fb446f58547eb6db /sys-apps/diffutils/diffutils-3.5.ebuild
parentdev-ml/ocaml-redis: Bump to 0.3.4 (diff)
downloadgentoo-6777c2a8d02373238566c8268c3d3acc5904837b.tar.gz
gentoo-6777c2a8d02373238566c8268c3d3acc5904837b.tar.bz2
gentoo-6777c2a8d02373238566c8268c3d3acc5904837b.zip
sys-apps/diffutils: Added gcc-7 build fix (bug #617538).
Thanks to lekto for providing a patch in GH PR #4553. Closes: https://github.com/gentoo/gentoo/pull/4553 Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'sys-apps/diffutils/diffutils-3.5.ebuild')
-rw-r--r--sys-apps/diffutils/diffutils-3.5.ebuild18
1 files changed, 14 insertions, 4 deletions
diff --git a/sys-apps/diffutils/diffutils-3.5.ebuild b/sys-apps/diffutils/diffutils-3.5.ebuild
index da215965bb04..426af27f7e96 100644
--- a/sys-apps/diffutils/diffutils-3.5.ebuild
+++ b/sys-apps/diffutils/diffutils-3.5.ebuild
@@ -20,17 +20,27 @@ DEPEND="app-arch/xz-utils
DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO )
+PATCHES=(
+ "${FILESDIR}/${P}-fix_macros.patch"
+)
+
+src_prepare() {
+ epatch "${PATCHES[@]}"
+}
+
src_configure() {
use static && append-ldflags -static
# Disable automagic dependency over libsigsegv; see bug #312351.
export ac_cv_libsigsegv=no
- econf \
- --with-packager="Gentoo" \
- --with-packager-version="${PVR}" \
- --with-packager-bug-reports="https://bugs.gentoo.org/" \
+ local myeconfargs=(
+ --with-packager="Gentoo"
+ --with-packager-version="${PVR}"
+ --with-packager-bug-reports="https://bugs.gentoo.org/"
$(use_enable nls)
+ )
+ econf "${myeconfargs[@]}"
}
src_test() {