pkgsrc-Changes archive

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

CVS commit: pkgsrc/net/py-cares



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sun Oct 12 17:02:36 UTC 2025

Modified Files:
        pkgsrc/net/py-cares: distinfo
Added Files:
        pkgsrc/net/py-cares/patches:
            patch-deps_build-config_config__netbsd_ares__config.h

Log Message:
py-cares: fix build on NetBSD.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 pkgsrc/net/py-cares/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/net/py-cares/patches/patch-deps_build-config_config__netbsd_ares__config.h

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

Modified files:

Index: pkgsrc/net/py-cares/distinfo
diff -u pkgsrc/net/py-cares/distinfo:1.12 pkgsrc/net/py-cares/distinfo:1.13
--- pkgsrc/net/py-cares/distinfo:1.12   Wed Aug 13 07:19:44 2025
+++ pkgsrc/net/py-cares/distinfo        Sun Oct 12 17:02:36 2025
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.12 2025/08/13 07:19:44 adam Exp $
+$NetBSD: distinfo,v 1.13 2025/10/12 17:02:36 wiz Exp $
 
 BLAKE2s (pycares-4.10.0.tar.gz) = 894af6e4ef77b1c87fabb9f1334fd48cbfdbf954dad527c76688a0d7b63bede6
 SHA512 (pycares-4.10.0.tar.gz) = e4f21c2fa08142f46fccb18f3ff1de106b567daba565375e2ef58e819a56a98a2950f9a396b19092a3b720269e7112509698c325d51ad52fd49d84c4e84d7ba5
 Size (pycares-4.10.0.tar.gz) = 654318 bytes
+SHA1 (patch-deps_build-config_config__netbsd_ares__config.h) = 023150f022e84387b605722a63d4f5e439d671d6

Added files:

Index: pkgsrc/net/py-cares/patches/patch-deps_build-config_config__netbsd_ares__config.h
diff -u /dev/null pkgsrc/net/py-cares/patches/patch-deps_build-config_config__netbsd_ares__config.h:1.1
--- /dev/null   Sun Oct 12 17:02:36 2025
+++ pkgsrc/net/py-cares/patches/patch-deps_build-config_config__netbsd_ares__config.h   Sun Oct 12 17:02:36 2025
@@ -0,0 +1,29 @@
+$NetBSD: patch-deps_build-config_config__netbsd_ares__config.h,v 1.1 2025/10/12 17:02:36 wiz Exp $
+
+NetBSD does not provide getservbyport_r().
+https://github.com/saghul/pycares/issues/266
+
+--- deps/build-config/config_netbsd/ares_config.h.orig 2025-10-12 16:58:12.306284033 +0000
++++ deps/build-config/config_netbsd/ares_config.h
+@@ -47,10 +47,10 @@
+ #define GETNAMEINFO_TYPE_ARG7 int
+ 
+ /* Specifies the number of arguments to getservbyport_r */
+-#define GETSERVBYPORT_R_ARGS 4
++/* #define GETSERVBYPORT_R_ARGS 4 */
+ 
+ /* Specifies the size of the buffer to pass to getservbyport_r */
+-#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)
++/* #define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data) */
+ 
+ /* Define to 1 if you have AF_INET6. */
+ #define HAVE_AF_INET6 1
+@@ -128,7 +128,7 @@
+ #define HAVE_GETNAMEINFO 1
+ 
+ /* Define to 1 if you have the getservbyport_r function. */
+-#define HAVE_GETSERVBYPORT_R 1
++/* #define HAVE_GETSERVBYPORT_R 1 */
+ 
+ /* Define to 1 if you have the `gettimeofday' function. */
+ #define HAVE_GETTIMEOFDAY 1



Home | Main Index | Thread Index | Old Index