summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/elfutils/files/elfutils-0.143-configure.patch')
-rw-r--r--dev-libs/elfutils/files/elfutils-0.143-configure.patch22
1 files changed, 22 insertions, 0 deletions
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