summaryrefslogtreecommitdiff
path: root/app-arch/atool/files/atool-0.39.0-configure-bashism.patch
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-03-20 06:21:38 +0000
committerSam James <sam@gentoo.org>2021-03-20 06:21:38 +0000
commit7894b5c71eef0a171809ab4e8ea197397734a4c3 (patch)
treee1464c9a8b021626079c07dd560278408a0df31e /app-arch/atool/files/atool-0.39.0-configure-bashism.patch
parent821b0750afb0b8f660b6f1c797b631afb90a1fe4 (diff)
downloadgentoo-7894b5c71eef0a171809ab4e8ea197397734a4c3.tar.gz
gentoo-7894b5c71eef0a171809ab4e8ea197397734a4c3.tar.bz2
gentoo-7894b5c71eef0a171809ab4e8ea197397734a4c3.zip
app-arch/atool: fix bashism in configure script
Closes: https://bugs.gentoo.org/775158 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-arch/atool/files/atool-0.39.0-configure-bashism.patch')
-rw-r--r--app-arch/atool/files/atool-0.39.0-configure-bashism.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/app-arch/atool/files/atool-0.39.0-configure-bashism.patch b/app-arch/atool/files/atool-0.39.0-configure-bashism.patch
new file mode 100644
index 000000000000..512bdc02ee9f
--- /dev/null
+++ b/app-arch/atool/files/atool-0.39.0-configure-bashism.patch
@@ -0,0 +1,12 @@
+https://bugs.gentoo.org/775158
+--- a/configure.ac
++++ b/configure.ac
+@@ -11,7 +11,7 @@ AC_DEFINE_DIR(LOCALSTATEDIR, localstatedir)
+ dnl Perl stuff
+ AC_PATH_PROG([PERL], [perl])
+ eval `$PERL -V:startperl`
+-if test "${startperl:0:1}" = "#" ; then
++if test "$(printf %.1s "$startperl")" = "#" ; then
+ startperl="\\$startperl"
+ fi
+ AC_SUBST(PERL_SHEBANG, $startperl)