commit: fe419f34f7df788b25799373c54d80ecde80c9ae Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Fri Aug 20 02:14:08 2021 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Aug 20 02:14:08 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe419f34
sci-calculators/tilp2: fix bashism in configure Thanks-to: Matt Whitlock <gentoo <AT> mattwhitlock.name> Closes: https://bugs.gentoo.org/723314 Signed-off-by: Sam James <sam <AT> gentoo.org> sci-calculators/tilp2/files/tilp2-1.18-nonbash.patch | 12 ++++++++++++ sci-calculators/tilp2/tilp2-1.18.ebuild | 4 ++++ 2 files changed, 16 insertions(+) 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 00000000000..542248b9e76 --- /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 548d7c71f9b..5cad6f35554 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.