summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-12-18 03:48:03 +0000
committerSam James <sam@gentoo.org>2022-12-18 04:01:27 +0000
commit8d5fa18ed281bdfa792b21c9d1d86cd2ff3642fc (patch)
tree136c0119e4029acb34acac7d44df01fe53136ad7 /sci-misc/apertium/files/apertium-3.8.3-bashism.patch
parentsci-misc/lttoolbox: add 3.7.1 (diff)
downloadgentoo-8d5fa18ed281bdfa792b21c9d1d86cd2ff3642fc.tar.gz
gentoo-8d5fa18ed281bdfa792b21c9d1d86cd2ff3642fc.tar.bz2
gentoo-8d5fa18ed281bdfa792b21c9d1d86cd2ff3642fc.zip
sci-misc/apertium: add 3.8.3
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sci-misc/apertium/files/apertium-3.8.3-bashism.patch')
-rw-r--r--sci-misc/apertium/files/apertium-3.8.3-bashism.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/sci-misc/apertium/files/apertium-3.8.3-bashism.patch b/sci-misc/apertium/files/apertium-3.8.3-bashism.patch
new file mode 100644
index 000000000000..ca479d9cc134
--- /dev/null
+++ b/sci-misc/apertium/files/apertium-3.8.3-bashism.patch
@@ -0,0 +1,30 @@
+https://github.com/apertium/apertium/pull/181
+
+From 08578745ba3988ece9596eaca734d08e64bae4e1 Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Sun, 18 Dec 2022 03:39:58 +0000
+Subject: [PATCH] configure.ac: fix bashism
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+configure scripts need to be runnable with a POSIX-compliant /bin/sh.
+
+On many (but not all!) systems, /bin/sh is provided by Bash, so errors
+like this aren't spotted. Notably Debian defaults to /bin/sh provided
+by dash which doesn't tolerate such bashisms as '=='.
+
+This retains compatibility with bash.
+
+Signed-off-by: Sam James <sam@gentoo.org>
+--- a/configure.ac
++++ b/configure.ac
+@@ -95,7 +95,7 @@ for version in 23 2b 20 2a 17; do
+ version_flag="-std=c++${version}"
+ AX_CHECK_COMPILE_FLAG([${version_flag}], [break], [version_flag=none])
+ done
+-AS_IF([test "$version_flag" == none], [
++AS_IF([test "$version_flag" = none], [
+ AC_MSG_ERROR([Could not enable at least C++17 - upgrade your compiler])
+ ])
+ CXXFLAGS="$CXXFLAGS ${version_flag}"