pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/strace make this compile again
details: https://anonhg.NetBSD.org/pkgsrc/rev/f06064dc4974
branches: trunk
changeset: 341763:f06064dc4974
user: christos <christos%pkgsrc.org@localhost>
date: Sun Oct 06 17:45:50 2019 +0000
description:
make this compile again
diffstat:
sysutils/strace/distinfo | 6 +-
sysutils/strace/patches/patch-ar | 50 --------------------------
sysutils/strace/patches/patch-bd | 21 ----------
sysutils/strace/patches/patch-desc.c | 50 ++++++++++++++++++++++++++
sysutils/strace/patches/patch-sock.c | 69 ++++++++++++++++++++++++++++++++++++
5 files changed, 122 insertions(+), 74 deletions(-)
diffs (235 lines):
diff -r 7495c1741b37 -r f06064dc4974 sysutils/strace/distinfo
--- a/sysutils/strace/distinfo Sun Oct 06 17:29:53 2019 +0000
+++ b/sysutils/strace/distinfo Sun Oct 06 17:45:50 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.23 2019/01/22 22:07:33 christos Exp $
+$NetBSD: distinfo,v 1.24 2019/10/06 17:45:50 christos Exp $
SHA1 (strace-4.5.15.tar.bz2) = a6bd153eeb1a25a50bb5a1d92887a4911ec9ad48
RMD160 (strace-4.5.15.tar.bz2) = 0c6aaa8820a0985d89b21a5da9578b27435c8906
@@ -19,7 +19,6 @@
SHA1 (patch-am) = edb9a6a4b76b6f0a39427562fe96a73fea3ecf4a
SHA1 (patch-an) = 23b55878f0f7c6b83b937219a3c730ec5c6cb7ea
SHA1 (patch-ap) = 8ed16f25eb9ef1c9c1499a77e7f39bf23d50e209
-SHA1 (patch-ar) = 12b13f8b7e2054cbe57da6b502f3fe49b91de9ff
SHA1 (patch-as) = b241a70fb33aabb8282578a124b04aca05f0d3f2
SHA1 (patch-at) = 22107308d404984f6b1231ddca10bbc05bec864f
SHA1 (patch-av) = 7356db4dfc2f49d75f6bd2e7968ec053f2f3cbff
@@ -29,9 +28,10 @@
SHA1 (patch-az) = af6272c48668785dffd7c5b42b8fa2c8edb562d0
SHA1 (patch-bb) = e7e309d96ec9fa2398a968f29f7e6549ff81e37e
SHA1 (patch-bc) = 7eece85b62383a0f6cb3b8e9dbe2a9a0316c6c02
-SHA1 (patch-bd) = 6ad13b8b0130886cc87218d9acfe46d8f9fc82ef
SHA1 (patch-be) = 6326b50b3d9be0524d67770d67530069866edd9e
+SHA1 (patch-desc.c) = b07f195ce3e31523d9bfcd620747bc2b5e1bdc7b
SHA1 (patch-process.c) = 99c20ea1b267f94e9d544a6ed60b0d840c86fa82
SHA1 (patch-signal.c) = 414f003437f2b249c2c1d654c0db78a23ca37231
+SHA1 (patch-sock.c) = 476f74a4d8cc970bc738955eb4654d6da0446c43
SHA1 (patch-syscall.c) = d53b6515215a22ce560186a0d11081e02b939fa9
SHA1 (patch-util.c) = fe19e41c4e7893c1b06d59f68969a2246a4f65f9
diff -r 7495c1741b37 -r f06064dc4974 sysutils/strace/patches/patch-ar
--- a/sysutils/strace/patches/patch-ar Sun Oct 06 17:29:53 2019 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,50 +0,0 @@
-$NetBSD: patch-ar,v 1.3 2007/04/27 19:45:02 christos Exp $
-
---- sock.c.orig 2005-06-01 15:02:37.000000000 -0400
-+++ sock.c 2007-04-27 11:31:51.000000000 -0400
-@@ -60,15 +60,23 @@
- { IFF_NOARP, "IFF_NOARP" },
- { IFF_PROMISC, "IFF_PROMISC" },
- { IFF_ALLMULTI, "IFF_ALLMULTI" },
-+#ifdef IFF_MASTER
- { IFF_MASTER, "IFF_MASTER" },
-+#endif
-+#ifdef IFF_SLAVE
- { IFF_SLAVE, "IFF_SLAVE" },
-+#endif
- { IFF_MULTICAST, "IFF_MULTICAST" },
-+#ifdef IFF_PORTSEL
- { IFF_PORTSEL, "IFF_PORTSEL" },
-+#endif
-+#ifdef IFF_AUTOMEDIA
- { IFF_AUTOMEDIA, "IFF_AUTOMEDIA" },
-+#endif
- { 0, NULL }
- };
-
--
-+#ifndef ALLBSD
- static void
- print_addr(tcp, addr, ifr)
- struct tcb *tcp;
-@@ -82,16 +90,19 @@
- } else
- printstr(tcp, addr, sizeof(ifr->ifr_addr.sa_data));
- }
-+#endif
-
- int
- sock_ioctl(tcp, code, arg)
- struct tcb *tcp;
- long code, arg;
- {
-- struct ifreq ifr;
- struct ifconf ifc;
-+#ifndef ALLBSD
-+ struct ifreq ifr;
- const char *str = NULL;
- unsigned char *bytes;
-+#endif
-
- if (entering(tcp)) {
- if (code == SIOCGIFCONF) {
diff -r 7495c1741b37 -r f06064dc4974 sysutils/strace/patches/patch-bd
--- a/sysutils/strace/patches/patch-bd Sun Oct 06 17:29:53 2019 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,21 +0,0 @@
-$NetBSD: patch-bd,v 1.1 2007/12/05 16:31:02 christos Exp $
-
---- desc.c.orig 2007-12-05 11:23:22.000000000 -0500
-+++ desc.c 2007-12-05 11:23:34.000000000 -0500
-@@ -425,14 +425,14 @@
- return 0;
- }
-
--#if defined(ALPHA) || defined(FREEBSD) || defined(SUNOS4)
-+#if defined(ALPHA) || defined(ALLBSD) || defined(SUNOS4)
- int
- sys_getdtablesize(tcp)
- struct tcb *tcp;
- {
- return 0;
- }
--#endif /* ALPHA || FREEBSD || SUNOS4 */
-+#endif /* ALPHA || ALLBSD || SUNOS4 */
-
- static int
- decode_select(struct tcb *tcp, long *args, enum bitness_t bitness)
diff -r 7495c1741b37 -r f06064dc4974 sysutils/strace/patches/patch-desc.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/strace/patches/patch-desc.c Sun Oct 06 17:45:50 2019 +0000
@@ -0,0 +1,50 @@
+$NetBSD: patch-desc.c,v 1.1 2019/10/06 17:45:50 christos Exp $
+
+--- desc.c.orig 2007-01-15 15:25:52.000000000 -0500
++++ desc.c 2019-10-06 13:19:12.944039233 -0400
+@@ -425,14 +425,14 @@
+ return 0;
+ }
+
+-#if defined(ALPHA) || defined(FREEBSD) || defined(SUNOS4)
++#if defined(ALPHA) || defined(ALLBSD) || defined(SUNOS4)
+ int
+ sys_getdtablesize(tcp)
+ struct tcb *tcp;
+ {
+ return 0;
+ }
+-#endif /* ALPHA || FREEBSD || SUNOS4 */
++#endif /* ALPHA || ALLBSD || SUNOS4 */
+
+ static int
+ decode_select(struct tcb *tcp, long *args, enum bitness_t bitness)
+@@ -498,7 +498,7 @@
+ outstr[0] = '\0';
+ for (i = 0; i < 3; i++) {
+ int first = 1;
+- char str[20];
++ char str[64];
+
+ tcp->auxstr = outstr;
+ arg = args[i+1];
+@@ -508,7 +508,8 @@
+ for (j = 0; j < args[0]; j++) {
+ if (FD_ISSET(j, fds)) {
+ if (first) {
+- sprintf(str, "%s%s [%u", sep,
++ snprintf(str, sizeof(str),
++ "%s%s [%u", sep,
+ i == 0 ? "in" :
+ i == 1 ? "out" :
+ "except", j);
+@@ -516,7 +517,8 @@
+ sep = ", ";
+ }
+ else
+- sprintf(str, " %u", j);
++ snprintf(str, sizeof(str),
++ " %u", j);
+ cumlen += strlen(str);
+ if (cumlen < sizeof(outstr))
+ strcat(outstr, str);
diff -r 7495c1741b37 -r f06064dc4974 sysutils/strace/patches/patch-sock.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/strace/patches/patch-sock.c Sun Oct 06 17:45:50 2019 +0000
@@ -0,0 +1,69 @@
+$NetBSD: patch-sock.c,v 1.1 2019/10/06 17:45:50 christos Exp $
+
+--- sock.c.orig 2005-06-01 15:02:37.000000000 -0400
++++ sock.c 2019-10-06 13:24:24.592475134 -0400
+@@ -55,20 +55,42 @@
+ { IFF_DEBUG, "IFF_DEBUG" },
+ { IFF_LOOPBACK, "IFF_LOOPBACK" },
+ { IFF_POINTOPOINT, "IFF_POINTOPOINT" },
++#ifdef IFF_NOTRAILERS
+ { IFF_NOTRAILERS, "IFF_NOTRAILERS" },
++#endif
+ { IFF_RUNNING, "IFF_RUNNING" },
+ { IFF_NOARP, "IFF_NOARP" },
+ { IFF_PROMISC, "IFF_PROMISC" },
+ { IFF_ALLMULTI, "IFF_ALLMULTI" },
++#ifdef IFF_SIMPLEX
++ { IFF_SIMPLEX, "IFF_SIMPLEX" },
++#endif
++#ifdef IFF_LINK0
++ { IFF_LINK0, "IFF_LINK0" },
++#endif
++#ifdef IFF_LINK1
++ { IFF_LINK1, "IFF_LINK1" },
++#endif
++#ifdef IFF_LINK2
++ { IFF_LINK2, "IFF_LINK2" },
++#endif
++#ifdef IFF_MASTER
+ { IFF_MASTER, "IFF_MASTER" },
++#endif
++#ifdef IFF_SLAVE
+ { IFF_SLAVE, "IFF_SLAVE" },
++#endif
+ { IFF_MULTICAST, "IFF_MULTICAST" },
++#ifdef IFF_PORTSEL
+ { IFF_PORTSEL, "IFF_PORTSEL" },
++#endif
++#ifdef IFF_AUTOMEDIA
+ { IFF_AUTOMEDIA, "IFF_AUTOMEDIA" },
++#endif
+ { 0, NULL }
+ };
+
+-
++#ifndef ALLBSD
+ static void
+ print_addr(tcp, addr, ifr)
+ struct tcb *tcp;
+@@ -82,16 +104,19 @@
+ } else
+ printstr(tcp, addr, sizeof(ifr->ifr_addr.sa_data));
+ }
++#endif
+
+ int
+ sock_ioctl(tcp, code, arg)
+ struct tcb *tcp;
+ long code, arg;
+ {
+- struct ifreq ifr;
+ struct ifconf ifc;
++#ifndef ALLBSD
++ struct ifreq ifr;
+ const char *str = NULL;
+ unsigned char *bytes;
++#endif
+
+ if (entering(tcp)) {
+ if (code == SIOCGIFCONF) {
Home |
Main Index |
Thread Index |
Old Index