Hi, Dear Maintainers
I met an issue when try to compile automake with the perl installed in a very long path which larger then max length of shebang , here is the reproduce steps
-
git clone git@github.com:autotools-mirror/automake.git; cd automake
-
./bootstrap
-
./configure
-
make
help2man: can't get `--help' info from bin/aclocal
Try `--no-discard-stderr' if option outputs to stderr
make: *** [Makefile:3818: doc/aclocal-1.17.1] Error 2
The failure is caused by the long path of the perl in aclocal.in, the shebang is cutted. Could we change it like following diff?
diff --git a/bin/aclocal.in b/bin/aclocal.in
index 4d01f3a4d..73d5ee47f 100644
--- a/bin/aclocal.in
+++ b/bin/aclocal.in
@@ -1,4 +1,4 @@
-#!@PERL@
+#!/usr/bin/env perl
# aclocal - create aclocal.m4 by scanning configure.ac -*- perl -*-
# @configure_input@
# Copyright (C) 1996-2024 Free Software Foundation, Inc.
diff --git a/bin/automake.in b/bin/automake.in
index 479125505..55985ea34 100644
--- a/bin/automake.in
+++ b/bin/automake.in
@@ -1,4 +1,4 @@
-#!@PERL@
+#!/usr/bin/env perl
# automake - create Makefile.in from Makefile.am -*- perl -*-
# @configure_input@
# Copyright (C) 1994-2024 Free Software Foundation, Inc.
Thank you,
Changqing