summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2020-03-26 21:19:58 +0000
committerrillig <rillig@pkgsrc.org>2020-03-26 21:19:58 +0000
commit827f97de9ddb372daa2e3d413dc89cc3f6ecfa60 (patch)
tree1712ff151b077281a13331fbf495096464452343 /devel
parentf06c079ccd84fbd16fa8d0b93489d8fce79a2c41 (diff)
downloadpkgsrc-827f97de9ddb372daa2e3d413dc89cc3f6ecfa60.tar.gz
devel/jam: fix -Wchar-subscripts
Diffstat (limited to 'devel')
-rw-r--r--devel/jam/distinfo3
-rw-r--r--devel/jam/patches/patch-rules.h33
2 files changed, 35 insertions, 1 deletions
diff --git a/devel/jam/distinfo b/devel/jam/distinfo
index 090849efdfb..cc74b760c82 100644
--- a/devel/jam/distinfo
+++ b/devel/jam/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.11 2017/07/27 08:48:34 wiz Exp $
+$NetBSD: distinfo,v 1.12 2020/03/26 21:19:58 rillig Exp $
SHA1 (ftjam-2.5.2.tar.bz2) = 08bad35e74ec85c4592d378014586174d22297b5
RMD160 (ftjam-2.5.2.tar.bz2) = fd1d1161963ba85be09aecffe832cf1db8a7b70f
@@ -7,3 +7,4 @@ Size (ftjam-2.5.2.tar.bz2) = 196631 bytes
SHA1 (patch-aa) = 64a149995f63cd3d3648f4597769e2ec57b0b0ba
SHA1 (patch-ab) = 6f6fce24c46d799d7ef9885271960c3d2038f93d
SHA1 (patch-jambase.c) = 906d3589718e4bf87a0f1740d876c2ddc7a7f90d
+SHA1 (patch-rules.h) = aca330528c722cce5fbf0587fd8c34c457dd8c62
diff --git a/devel/jam/patches/patch-rules.h b/devel/jam/patches/patch-rules.h
new file mode 100644
index 00000000000..e5322ffb383
--- /dev/null
+++ b/devel/jam/patches/patch-rules.h
@@ -0,0 +1,33 @@
+$NetBSD: patch-rules.h,v 1.1 2020/03/26 21:19:58 rillig Exp $
+
+make.c: In function 'make0':
+make.c:249:41: error: array subscript has type 'char' [-Werror=char-subscripts]
+ spaces( depth ), t->name, target_bind[ t->binding ] );^M
+ ^
+make.c:484:20: error: array subscript has type 'char' [-Werror=char-subscripts]
+ flag, target_fate[ t->fate ],^M
+ ^
+make.c:490:33: error: array subscript has type 'char' [-Werror=char-subscripts]
+ printf( "%s %s\n", target_fate[ t->fate ], t->name );^M
+ ^
+
+--- rules.h.orig 2006-06-05 10:52:11.000000000 +0000
++++ rules.h
+@@ -115,7 +115,7 @@ struct _target {
+ # define T_FLAG_NOUPDATE 0x20 /* NOUPDATE applied */
+ # define T_FLAG_INTERNAL 0x40 /* internal INCLUDES node */
+
+- char binding; /* how target relates to real file */
++ unsigned char binding; /* how target relates to real file */
+
+ # define T_BIND_UNBOUND 0 /* a disembodied name */
+ # define T_BIND_MISSING 1 /* couldn't find real file */
+@@ -127,7 +127,7 @@ struct _target {
+
+ time_t time; /* update time */
+ time_t leaf; /* update time of leaf sources */
+- char fate; /* make0()'s diagnosis */
++ unsigned char fate; /* make0()'s diagnosis */
+
+ # define T_FATE_INIT 0 /* nothing done to target */
+ # define T_FATE_MAKING 1 /* make0(target) on stack */