packages: elfutils/elfutils-bashism.patch (NEW) - remove some bashisms from...
sparky
sparky at pld-linux.org
Sat May 2 15:15:12 CEST 2009
Author: sparky Date: Sat May 2 13:15:12 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- remove some bashisms from configure.ac
---- Files affected:
packages/elfutils:
elfutils-bashism.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/elfutils/elfutils-bashism.patch
diff -u /dev/null packages/elfutils/elfutils-bashism.patch:1.1
--- /dev/null Sat May 2 15:15:12 2009
+++ packages/elfutils/elfutils-bashism.patch Sat May 2 15:15:06 2009
@@ -0,0 +1,19 @@
+--- elfutils-0.141/configure.ac# 2009-05-02 14:13:01.000000000 +0200
++++ elfutils-0.141/configure.ac 2009-05-02 14:12:53.000000000 +0200
+@@ -290,7 +290,7 @@
+
+ # 1.234<whatever> -> 1234<whatever>
+ case "$PACKAGE_VERSION" in
+-[[0-9]].*) eu_version="${PACKAGE_VERSION/./}" ;;
++[[0-9]].*) eu_version="${PACKAGE_VERSION%%.*}${PACKAGE_VERSION#*.}" ;;
+ *) AC_MSG_ERROR([confused by version number '$PACKAGE_VERSION']) ;;
+ esac
+ case "$eu_version" in
+@@ -319,6 +319,6 @@
+ esac
+
+ # Round up to the next release API (x.y) version.
+-[eu_version=$[($eu_version + 999) / 1000]]
++eu_version=$((($eu_version + 999) / 1000))
+
+ AC_OUTPUT
================================================================
More information about the pld-cvs-commit
mailing list