{"thread":{"id":"43692","subject":"[PATCH 2/2] add a flag to disable using of Perls MakeMaker module.","startedAt":"2006-11-30T16:30:51Z","lastAt":"2006-11-30T16:30:51Z","messageCount":1,"participants":["Alex Riesen"],"isPatch":true,"patchVersion":1,"patchTotal":2},"messages":[{"id":"296752","messageId":"81b0412b0611300830t3799b80dl1d469f94cab35e0@mail.gmail.com","threadId":"43692","inReplyTo":null,"subject":"[PATCH 2/2] add a flag to disable using of Perls MakeMaker module.","fromName":"Alex Riesen","fromEmail":"raa.lkml@gmail.com","sentAt":"2006-11-30T16:30:51Z","receivedAt":"2006-11-30T16:30:51Z","isPatch":true,"sender":{"key":"raa.lkml@gmail.com","avatar":"https://avatars.githubusercontent.com/u/324101?v=4"},"body":"There installations (Cygwin + ActivateState Perl) where the generated makefiles\nare not usable, because of lineendings and backslashes. The flags is\nNO_PERL_MAKEMAKER.\n\nSigned-off-by: Alex Riesen <raa.lkml@gmail.com>\n\n---\nJust remembered configure script. Maybe it could be taught to\nnotice the situation and do something about it (like setting the NO_MAKEMAKER).\n\n\nFrom 06fc5e98754de98b44746d8962da16a58a5a5d28 Mon Sep 17 00:00:00 2001\nFrom: Alex Riesen <raa.lkml@gmail.com>\nDate: Thu, 30 Nov 2006 17:15:33 +0100\nSubject: [PATCH] add a flag to disable using of Perls MakeMaker module.\n\nThere installations (Cygwin + ActivateState Perl) where the generated makefiles\nare not usable, because of lineendings and backslashes. The flags is\nNO_PERL_MAKEMAKER.\n---\n Makefile      |    3 +++\n perl/Makefile |   15 +++++++++++++++\n 2 files changed, 18 insertions(+), 0 deletions(-)\n\ndiff --git a/Makefile b/Makefile\nindex 5903a6f..3e6825b 100644\n--- a/Makefile\n+++ b/Makefile\n@@ -539,6 +539,9 @@ endif\n ifdef NO_ACCURATE_DIFF\n \tBASIC_CFLAGS += -DNO_ACCURATE_DIFF\n endif\n+ifdef NO_PERL_MAKEMAKER\n+\texport NO_PERL_MAKEMAKER\n+endif\n \n # Shell quote (do not use $(call) to accommodate ancient setups);\n \ndiff --git a/perl/Makefile b/perl/Makefile\nindex cff24dd..a1b98bd 100644\n--- a/perl/Makefile\n+++ b/perl/Makefile\n@@ -14,10 +14,25 @@ clean:\n \t$(RM) ppport.h\n \t$(RM) $(makfile)\n \n+ifdef NO_PERL_MAKEMAKER\n+instdir_SQ = $(subst ','\\'',$(prefix)/lib)\n+$(makfile): ../GIT-CFLAGS Makefile\n+\techo all: > $@\n+\techo '\t:' >> $@\n+\techo install: >> $@\n+\techo '\tmkdir -p $(instdir_SQ)' >> $@\n+\techo '\t$(RM) $(instdir_SQ)/Git.pm; cp Git.pm $(instdir_SQ)' >> $@\n+\techo '\t$(RM) $(instdir_SQ)/Error.pm; \\\n+\tcp private-Error.pm $(instdir_SQ)/Error.pm' >> $@\n+\techo instlibdir: >> $@\n+\techo '\techo $(instdir_SQ)' >> $@\n+else\n $(makfile): Makefile.PL ../GIT-CFLAGS\n \t'$(PERL_PATH_SQ)' $< FIRST_MAKEFILE='$@' PREFIX='$(prefix_SQ)'\n+endif\n \n # this is just added comfort for calling make directly in perl dir\n # (even though GIT-CFLAGS aren't used yet. If ever)\n ../GIT-CFLAGS:\n \t$(MAKE) -C .. GIT-CFLAGS\n+\n-- \n1.4.4.1.g3924-dirty\n\n"}]}