Wed Nov 21 01:49:55 2012 UTC ()
Add patch to work around upstream bug assuming beyond-POSIX behavior
in sed.
In GNU sed, "\n" in the RHS of a substitution becomes a newline.
POSIX says that \n in the RHS is undefined. BSD sed treats it as "n".
Because this is in scheme code, and scheme doesn't care about " " vs
"\n", just substitute a space.
Resolves failure of test cases; now "make test" passes.
(This change has been reported upstream and applied to the upstream VCS.)
(gdt)
diff -r1.12 -r1.13 pkgsrc/devel/guile-www/distinfo
diff -r0 -r1.1 pkgsrc/devel/guile-www/patches/patch-v_Makefile.in
--- pkgsrc/devel/guile-www/distinfo 2012/11/07 00:50:05 1.12
+++ pkgsrc/devel/guile-www/distinfo 2012/11/21 01:49:54 1.13
| @@ -1,5 +1,6 @@ | | | @@ -1,5 +1,6 @@ |
1 | $NetBSD: distinfo,v 1.12 2012/11/07 00:50:05 gdt Exp $ | | 1 | $NetBSD: distinfo,v 1.13 2012/11/21 01:49:54 gdt Exp $ |
2 | | | 2 | |
3 | SHA1 (guile-www-2.35.tar.xz) = 31619996edd2dfd86286650a9db5298f579ac740 | | 3 | SHA1 (guile-www-2.35.tar.xz) = 31619996edd2dfd86286650a9db5298f579ac740 |
4 | RMD160 (guile-www-2.35.tar.xz) = a75d79ae25a8dd23306a52b9bfa144a701820bd8 | | 4 | RMD160 (guile-www-2.35.tar.xz) = a75d79ae25a8dd23306a52b9bfa144a701820bd8 |
5 | Size (guile-www-2.35.tar.xz) = 614004 bytes | | 5 | Size (guile-www-2.35.tar.xz) = 614004 bytes |
| | | 6 | SHA1 (patch-v_Makefile.in) = 6790ad019783b5a8c1ab7443b401fbf7f89ca2e7 |
$NetBSD: patch-v_Makefile.in,v 1.1 2012/11/21 01:49:54 gdt Exp $
guile-www assumes that sed treats \n in the RHS of a substitution as a
newline. However, POSIX says that is unspecified, and NetBSD sed treats \n
as n. Therefore, just use a space instead, as the form of whitespace does
not matter.
This was reported to the upstream author on 20121107, and is already
fixed in the upstream VCS.
--- v/Makefile.in.orig 2012-11-06 10:55:00.000000000 +0000
+++ v/Makefile.in
@@ -527,7 +527,7 @@ x000: all-modules.list
$(single): all-modules.list
@n=`echo $@ | sed 's/x0*//'` ; \
- sed -e "$${n}!d" -e 's/.*/(use-modules &)\n(exit #t)/' $< > $@
+ sed -e "$${n}!d" -e 's/.*/(use-modules &) (exit #t)/' $< > $@
clean-local:
-rm -rf all-modules.list .fake x000 $(single)