summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald van Dijk <truedfx@gentoo.org>2009-11-26 19:09:40 +0000
committerHarald van Dijk <truedfx@gentoo.org>2009-11-26 19:09:40 +0000
commite3bcbd020a4233d5b64bd83675af408ca28fac80 (patch)
treeac2c801bd516d1a59e1071616f57adeb8b364f80 /dev-libs
parentFix crash when adding a new task or memo, per bug #294436 (diff)
downloadgentoo-2-e3bcbd020a4233d5b64bd83675af408ca28fac80.tar.gz
gentoo-2-e3bcbd020a4233d5b64bd83675af408ca28fac80.tar.bz2
gentoo-2-e3bcbd020a4233d5b64bd83675af408ca28fac80.zip
Fix bash extensions in configure script #287130
(Portage version: 2.2_rc52/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/elfutils/ChangeLog6
-rw-r--r--dev-libs/elfutils/elfutils-0.143-r1.ebuild3
-rw-r--r--dev-libs/elfutils/files/elfutils-0.143-configure.patch22
3 files changed, 29 insertions, 2 deletions
diff --git a/dev-libs/elfutils/ChangeLog b/dev-libs/elfutils/ChangeLog
index e5659f27f09c..12bef3384951 100644
--- a/dev-libs/elfutils/ChangeLog
+++ b/dev-libs/elfutils/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-libs/elfutils
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/elfutils/ChangeLog,v 1.126 2009/11/21 03:53:04 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/elfutils/ChangeLog,v 1.127 2009/11/26 19:09:40 truedfx Exp $
+
+ 26 Nov 2009; Harald van Dijk <truedfx@gentoo.org>
+ elfutils-0.143-r1.ebuild, +files/elfutils-0.143-configure.patch:
+ Fix bash extensions in configure script #287130
*elfutils-0.143-r1 (21 Nov 2009)
diff --git a/dev-libs/elfutils/elfutils-0.143-r1.ebuild b/dev-libs/elfutils/elfutils-0.143-r1.ebuild
index 4b0331de099c..71b141e5d122 100644
--- a/dev-libs/elfutils/elfutils-0.143-r1.ebuild
+++ b/dev-libs/elfutils/elfutils-0.143-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/elfutils/elfutils-0.143-r1.ebuild,v 1.1 2009/11/21 03:53:04 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/elfutils/elfutils-0.143-r1.ebuild,v 1.2 2009/11/26 19:09:40 truedfx Exp $
inherit eutils
@@ -34,6 +34,7 @@ src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PN}-0.118-PaX-support.patch
+ epatch "${FILESDIR}"/${P}-configure.patch #287130
epatch "${FILESDIR}"/${P}-fix-fill_mmap-for-sections-past-the-section-headers.patch #288977
find . -name Makefile.in -print0 | xargs -0 sed -i -e 's:-W\(error\|extra\)::g'
use test || sed -i -e 's: tests::' Makefile.in #226349
diff --git a/dev-libs/elfutils/files/elfutils-0.143-configure.patch b/dev-libs/elfutils/files/elfutils-0.143-configure.patch
new file mode 100644
index 000000000000..4c00cd88d8ec
--- /dev/null
+++ b/dev-libs/elfutils/files/elfutils-0.143-configure.patch
@@ -0,0 +1,22 @@
+https://bugs.gentoo.org/287130
+
+--- elfutils-0.143/configure
++++ elfutils-0.143/configure
+@@ -5460,7 +5460,7 @@
+
+ # 1.234<whatever> -> 1234<whatever>
+ case "$PACKAGE_VERSION" in
+-[0-9].*) eu_version="${PACKAGE_VERSION/./}" ;;
++[0-9].*) eu_version=`echo "$PACKAGE_VERSION" | sed 's@\.@@'` ;;
+ *) { { $as_echo "$as_me:$LINENO: error: confused by version number '$PACKAGE_VERSION'" >&5
+ $as_echo "$as_me: error: confused by version number '$PACKAGE_VERSION'" >&2;}
+ { (exit 1); exit 1; }; } ;;
+@@ -5495,7 +5495,7 @@
+ esac
+
+ # Round up to the next release API (x.y) version.
+-eu_version=$[($eu_version + 999) / 1000]
++eu_version=`expr \( $eu_version + 999 \) / 1000`
+
+ cat >confcache <<\_ACEOF
+ # This file is a shell script that caches the results of configure