Re: [PATCH] Fix compilation
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:32
Johannes Schindelin [off-list ref] writes:
Without this, make 3.79.1 (Darwin) says
rm -f git-archimport git-archimport+
INSTLIBDIR=`make -C perl -s --no-print-directory instlibdir` && \
sed -e '1s|#!.*perl|#!/usr/bin/perl|1' \
-e '2i\
use lib (split(/:/, $ENV{GITPERLLIB} || '\'"$INSTLIBDIR"\''));' \
-e 's|@@INSTLIBDIR@@|'"$INSTLIBDIR"'|g' \
-e 's/@@GIT_VERSION@@/1.4.1.gb564-dirty/g' \
git-archimport.perl >git-archimport+
sed: 1: "2i use lib (split(/:/, ...": command i expects \ followed by text
Signed-off-by: Johannes Schindelin <redacted>Traditionally 'i' and 'a' command to sed has been unfriendly with make, primarily because different make implementations did unexpected things to backslashes at the end of lines. For portability I would even suggest making that command into a separate helper shell script, and call that from the Makefile.
Note that this just fixes compilation, not the tests. All of a sudden, I have to install Scalar::Util, where things were fine before Git.pm.
I recall Pasky talking about Scalar::Util removal and I thought I took a patch. ... goes "git grep" ... Ah the private edition of Error.pm pulls that in. Sheesh.