Add patches/patch-main.c to fix segmentation fault just after invocation, at least on NetBSD/amd64 6.1, which is reported as PR pkg/47917. The problem was also reported by gcc (4.5.3) as: main.c: In function 'main': main.c:206:15: warning: assignment makes pointer from integer without a cast At following location: 203 char *simplified; .... 206 simplified = canonicalize_file_name(current_wd);diff -r1.6 -r1.7 pkgsrc/shells/posh/distinfo
(mef)
@@ -1,7 +1,8 @@ | @@ -1,7 +1,8 @@ | |||
1 | $NetBSD: distinfo,v 1.6 2005/11/10 22:25:13 joerg Exp $ | 1 | $NetBSD: distinfo,v 1.7 2013/06/11 21:43:13 mef Exp $ | |
2 | 2 | |||
3 | SHA1 (posh_0.3.14.tar.gz) = 0242227569336c3fa151d14263069480121c8d15 | 3 | SHA1 (posh_0.3.14.tar.gz) = 0242227569336c3fa151d14263069480121c8d15 | |
4 | RMD160 (posh_0.3.14.tar.gz) = 28ef5a29b736d42cc0f5261c305e053b65d79497 | 4 | RMD160 (posh_0.3.14.tar.gz) = 28ef5a29b736d42cc0f5261c305e053b65d79497 | |
5 | Size (posh_0.3.14.tar.gz) = 668729 bytes | 5 | Size (posh_0.3.14.tar.gz) = 668729 bytes | |
6 | SHA1 (patch-aa) = bdd8ffb67ccd60064b0fb5bda7935001f6807380 | 6 | SHA1 (patch-aa) = bdd8ffb67ccd60064b0fb5bda7935001f6807380 | |
7 | SHA1 (patch-ab) = 1e638fd21d7cab2e0a98c6383ca02e3f7acbd14f | 7 | SHA1 (patch-ab) = 1e638fd21d7cab2e0a98c6383ca02e3f7acbd14f | |
8 | SHA1 (patch-main.c) = 84396558feb4bc17501d6b7e51e66e97a29a86f6 |
$NetBSD: patch-main.c,v 1.1 2013/06/11 21:43:13 mef Exp $
Avoid getting following warning,
main.c: In function 'main':
main.c:206:15: warning: assignment makes pointer from integer without a cast
and segmentation faulting just after invocation on NetBSD/amd64 6.1.
--- main.c.orig 2004-06-09 00:51:50.000000000 +0900
+++ main.c 2013-06-12 00:40:13.000000000 +0900
@@ -7,6 +7,7 @@
#include "sh.h"
#include "ksh_stat.h"
#include "ksh_time.h"
+#include "src/compat.h"
extern char **environ;