summaryrefslogtreecommitdiff
path: root/mail/thunderbird/patches/patch-du
blob: 8c00d5eb72ec2056f8b8073f2a6121e2ce3f313c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$NetBSD: patch-du,v 1.1 2007/01/26 22:36:45 dmcmahill Exp $

GNU make-3.81 changed the way \newlines are handled inside of single
quotes.  This fixes the command.  Should still work on older GNU make's
too.

See https://bugzilla.mozilla.org/show_bug.cgi?id=325148

--- security/coreconf/rules.mk.orig	2005-04-14 20:36:28.000000000 -0400
+++ security/coreconf/rules.mk
@@ -885,8 +885,7 @@ endif
 
 ifneq (,$(filter-out OpenVMS OS2 WIN%,$(OS_TARGET)))
 # Can't use sed because of its 4000-char line length limit, so resort to perl
-.DEFAULT:
-	@perl -e '                                                            \
+PERL_DEPENDENCIES_PROGRAM= '                                                  \
 	    open(MD, "< $(DEPENDENCIES)");                                    \
 	    while (<MD>) {                                                    \
 		if (m@ \.*/*$< @) {                                           \
@@ -914,6 +913,10 @@ ifneq (,$(filter-out OpenVMS OS2 WIN%,$(
 		print "$(MAKE): *** No rule to make target $<.  Stop.\n";     \
 		exit(1);                                                      \
 	    }'
+
+.DEFAULT:
+	@perl -e ${PERL_DEPENDENCIES_PROGRAM}
+
 endif
 
 #############################################################################