summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-08-20 03:14:08 +0100
committerSam James <sam@gentoo.org>2021-08-20 03:14:08 +0100
commitfe419f34f7df788b25799373c54d80ecde80c9ae (patch)
tree13569ac186fbd0047723a2fc89e5bc8c8ffd0f01 /sci-calculators
parentsci-libs/adolc: temporarily enforce CONFIG_SHELL (diff)
downloadgentoo-fe419f34f7df788b25799373c54d80ecde80c9ae.tar.gz
gentoo-fe419f34f7df788b25799373c54d80ecde80c9ae.tar.bz2
gentoo-fe419f34f7df788b25799373c54d80ecde80c9ae.zip
sci-calculators/tilp2: fix bashism in configure
Thanks-to: Matt Whitlock <gentoo@mattwhitlock.name> Closes: https://bugs.gentoo.org/723314 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sci-calculators')
-rw-r--r--sci-calculators/tilp2/files/tilp2-1.18-nonbash.patch12
-rw-r--r--sci-calculators/tilp2/tilp2-1.18.ebuild4
2 files changed, 16 insertions, 0 deletions
diff --git a/sci-calculators/tilp2/files/tilp2-1.18-nonbash.patch b/sci-calculators/tilp2/files/tilp2-1.18-nonbash.patch
new file mode 100644
index 000000000000..542248b9e763
--- /dev/null
+++ b/sci-calculators/tilp2/files/tilp2-1.18-nonbash.patch
@@ -0,0 +1,12 @@
+https://bugs.gentoo.org/723314
+--- a/configure.ac
++++ b/configure.ac
+@@ -208,7 +208,7 @@
+ AC_ARG_VAR([CC_FOR_BUILD], [C compiler for programs to be run on the build system])
+ AC_ARG_VAR([CFLAGS_FOR_BUILD], [C compiler flags for CC_FOR_BUILD])
+ AC_MSG_CHECKING([for the host compiler])
+-if test "x$build" == "x$host" ; then
++if test "x$build" = "x$host" ; then
+ # Not cross-compiling.
+ CC_FOR_BUILD=$CC
+ CFLAGS_FOR_BUILD=$CFLAGS
diff --git a/sci-calculators/tilp2/tilp2-1.18.ebuild b/sci-calculators/tilp2/tilp2-1.18.ebuild
index 548d7c71f9b3..5cad6f355541 100644
--- a/sci-calculators/tilp2/tilp2-1.18.ebuild
+++ b/sci-calculators/tilp2/tilp2-1.18.ebuild
@@ -28,6 +28,10 @@ DEPEND="${RDEPEND}
virtual/pkgconfig
nls? ( sys-devel/gettext )"
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.18-nonbash.patch
+)
+
src_prepare() {
default
# The ac macro AC_PATH_KDE was provided by "acinclude.m4" in 1.17.