pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/R-uuid



Module Name:    pkgsrc
Committed By:   tnn
Date:           Fri Aug 19 11:36:25 UTC 2022

Modified Files:
        pkgsrc/devel/R-uuid: distinfo
Added Files:
        pkgsrc/devel/R-uuid/patches: patch-src_gen__uuid.c

Log Message:
R-uuid: carry over SunOS build fix from devel/libuuid


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/devel/R-uuid/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/R-uuid/patches/patch-src_gen__uuid.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/R-uuid/distinfo
diff -u pkgsrc/devel/R-uuid/distinfo:1.5 pkgsrc/devel/R-uuid/distinfo:1.6
--- pkgsrc/devel/R-uuid/distinfo:1.5    Sat Apr 23 05:55:28 2022
+++ pkgsrc/devel/R-uuid/distinfo        Fri Aug 19 11:36:25 2022
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.5 2022/04/23 05:55:28 mef Exp $
+$NetBSD: distinfo,v 1.6 2022/08/19 11:36:25 tnn Exp $
 
 BLAKE2s (R/uuid_1.1-0.tar.gz) = 5a8447923adac90013e08622aa269eb9cb9d8c2c16f55bad8ebe53641e598c6c
 SHA512 (R/uuid_1.1-0.tar.gz) = 0e64565bec3ebd00d4710ab5b06c6a11df6da67e69e51967dd3470849196566a87a2654773593cd74dfcd580fd1f0fe2a57314b27a746fed708551e5b4181c4b
 Size (R/uuid_1.1-0.tar.gz) = 77959 bytes
+SHA1 (patch-src_gen__uuid.c) = dc9b2e1d0f906a70e4d46620b12ea753924a091c

Added files:

Index: pkgsrc/devel/R-uuid/patches/patch-src_gen__uuid.c
diff -u /dev/null pkgsrc/devel/R-uuid/patches/patch-src_gen__uuid.c:1.1
--- /dev/null   Fri Aug 19 11:36:25 2022
+++ pkgsrc/devel/R-uuid/patches/patch-src_gen__uuid.c   Fri Aug 19 11:36:25 2022
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_gen__uuid.c,v 1.1 2022/08/19 11:36:25 tnn Exp $
+
+Solaris does not have ifr.ifr_hwaddr.
+
+--- src/gen_uuid.c.orig        2022-04-19 04:03:43.000000000 +0000
++++ src/gen_uuid.c
+@@ -145,7 +145,7 @@ static int get_node_id(unsigned char *no
+       for (i = 0; i < n; i+= ifreq_size(*ifrp) ) {
+               ifrp = (struct ifreq *)((char *) ifc.ifc_buf+i);
+               strncpy(ifr.ifr_name, ifrp->ifr_name, IFNAMSIZ);
+-#ifdef SIOCGIFHWADDR
++#if defined(SIOCGIFHWADDR) && !defined(__sun)
+               if (ioctl(sd, SIOCGIFHWADDR, &ifr) < 0)
+                       continue;
+               a = (unsigned char *) &ifr.ifr_hwaddr.sa_data;



Home | Main Index | Thread Index | Old Index