diff options
Diffstat (limited to 'misc/dpkg/patches/patch-ae')
-rw-r--r-- | misc/dpkg/patches/patch-ae | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/misc/dpkg/patches/patch-ae b/misc/dpkg/patches/patch-ae new file mode 100644 index 00000000000..71f47814c13 --- /dev/null +++ b/misc/dpkg/patches/patch-ae @@ -0,0 +1,21 @@ +$NetBSD: patch-ae,v 1.1 2006/05/21 11:17:28 rillig Exp $ + +GNU Make does not strip the line-continuation backslashes before +executing the shell. This confuses Perl. + +In addition, it is bad style to pipe directly into the target file in +Make, since in a second run Make will assume the target file has been +updated properly. + +--- main/Makefile.in.orig 2004-10-27 11:06:43.000000000 +0200 ++++ main/Makefile.in 2006-05-21 13:06:28.000000000 +0200 +@@ -72,6 +72,6 @@ enquiry.o: archtable.h + + archtable.h: $(top_srcdir)/archtable + expand $< | \ +- perl -ne 'print " { \"$$1\",$$2\"$$3\",$$4\"$$5\" },\n" \ +- if m/^(?!\s*#)\s*(\S+)(\s+)(\S+)(\s+)(\S+)\s*$$/' \ +- >$@ ++ perl -ne 'print " { \"$$1\",$$2\"$$3\",$$4\"$$5\" },\n" if m/^(?!\s*#)\s*(\S+)(\s+)(\S+)(\s+)(\S+)\s*$$/' \ ++ >$@.tmp ++ mv $@.tmp $@ |