Origin: https://bugs.debian.org/1037276 From: Vagrant Cascadian Date: Fri, 9 Jun 2023 18:44:06 -0700 Subject: Makefile: Ensure perl path is set to '/usr/bin/perl'. Using 'which' to detect the path to perl may result in /bin/perl, which is only typically available on usrmerge systems. /usr/bin/perl is where perl has actually been installed for quite some time, and is unlikely to change. https://tests.reproducible-builds.org/debian/issues/unstable/paths_vary_due_to_usrmerge_issue.html --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2600365..8a87feb 100644 --- a/Makefile +++ b/Makefile @@ -864,8 +864,7 @@ path/mktemp.lo path/mktemp.o: ltcompile path/mktemp.c systime.h include/bglibs/p perl-head.pl: ( set -e; PATH="/bin:/usr/bin:/usr/local/bin:$$PATH"; export PATH; \ - perl=`which perl`; \ - echo "#! $$perl"; \ + echo "#! /usr/bin/perl"; \ echo "# WARNING: This file was auto-generated. Do not edit!"; \ echo ) >perl-head.pl