pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/dc-tools Make this build cleanly with clang o...
details: https://anonhg.NetBSD.org/pkgsrc/rev/3a0554a38f4a
branches: trunk
changeset: 388097:3a0554a38f4a
user: thorpej <thorpej%pkgsrc.org@localhost>
date: Fri Nov 30 16:33:37 2018 +0000
description:
Make this build cleanly with clang on a macOS host.
diffstat:
sysutils/dc-tools/distinfo | 4 ++-
sysutils/dc-tools/patches/patch-makeip.c | 43 ++++++++++++++++++++++++++++++
sysutils/dc-tools/patches/patch-scramble.c | 9 ++++++
3 files changed, 55 insertions(+), 1 deletions(-)
diffs (75 lines):
diff -r 11557aa5105a -r 3a0554a38f4a sysutils/dc-tools/distinfo
--- a/sysutils/dc-tools/distinfo Fri Nov 30 16:06:13 2018 +0000
+++ b/sysutils/dc-tools/distinfo Fri Nov 30 16:33:37 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.8 2016/07/06 10:09:33 abs Exp $
+$NetBSD: distinfo,v 1.9 2018/11/30 16:33:37 thorpej Exp $
SHA1 (dc-tools/1.6.tar.gz) = eed5be42a30bc7221c5308db5b46b8996775fdef
RMD160 (dc-tools/1.6.tar.gz) = ca538169072c8124276dd460e0b55d31d6170850
@@ -20,3 +20,5 @@
RMD160 (dc-tools/serial_slave.tar.gz) = a5e06803ccb5bee7f6d76fa0619e90473358ae2a
SHA512 (dc-tools/serial_slave.tar.gz) = d717297a1a70fabf2b613d89c31c3ff3da642be2b4cd1507378bedea0f1cfe4505a71a25540797ed1f2b14ab934ce12ba3ab1ff1db7b79c1fef7d7b7dd68373f
Size (dc-tools/serial_slave.tar.gz) = 9524 bytes
+SHA1 (patch-makeip.c) = 5466b370f663349cb40bd19eacac62b88d461f08
+SHA1 (patch-scramble.c) = f6c22806523a1b75f8558d86c76110b749830867
diff -r 11557aa5105a -r 3a0554a38f4a sysutils/dc-tools/patches/patch-makeip.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/dc-tools/patches/patch-makeip.c Fri Nov 30 16:33:37 2018 +0000
@@ -0,0 +1,43 @@
+--- makeip.c.orig 2000-09-05 11:56:58.000000000 -0700
++++ makeip.c 2018-11-30 08:24:17.000000000 -0800
+@@ -74,7 +74,7 @@ int parse_input(FILE *fh, char *ip)
+ while(fgets(buf, sizeof(buf), fh)) {
+ char *p;
+ trim(buf);
+- if(*buf)
++ if(*buf) {
+ if((p = strchr(buf, ':'))) {
+ *p++ = '\0';
+ trim(buf);
+@@ -89,7 +89,7 @@ int parse_input(FILE *fh, char *ip)
+ while(*p == ' ' || *p == '\t')
+ p++;
+ if(strlen(p)>fields[i].len) {
+- fprintf(stderr, "Data for field \"%s\" is too long.\n", fields[i]);
++ fprintf(stderr, "Data for field \"%s\" is too long.\n", fields[i].name);
+ return 0;
+ }
+ memcpy(ip+fields[i].pos, p, strlen(p));
+@@ -101,11 +101,12 @@ int parse_input(FILE *fh, char *ip)
+ fprintf(stderr, "Missing : on line.\n");
+ return 0;
+ }
++ }
+ }
+
+ for(i=0; i<NUM_FIELDS; i++)
+ if(!filled_in[i]) {
+- fprintf(stderr, "Missing value for \"%s\".\n", fields[i]);
++ fprintf(stderr, "Missing value for \"%s\".\n", fields[i].name);
+ return 0;
+ }
+
+@@ -183,7 +184,7 @@ int main(int argc, char *argv[])
+
+ ip_tmpl = getenv("IP_TEMPLATE_FILE");
+ if(ip_tmpl == NULL)
+- ip_tmpl = "IP.TMPL";
++ ip_tmpl = "/usr/local/pkg/share/dc-tools/IP.TMPL";
+
+ makeip(ip_tmpl, argv[1], argv[2]);
+
diff -r 11557aa5105a -r 3a0554a38f4a sysutils/dc-tools/patches/patch-scramble.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/dc-tools/patches/patch-scramble.c Fri Nov 30 16:33:37 2018 +0000
@@ -0,0 +1,9 @@
+--- scramble.c.orig 2018-11-30 08:21:21.000000000 -0800
++++ scramble.c 2018-11-30 08:21:35.000000000 -0800
+@@ -1,5 +1,6 @@
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+
+ #define MAXCHUNK (2048*1024)
+
Home |
Main Index |
Thread Index |
Old Index