pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/python39 Properly detect and use NetBSD's socketc...
details: https://anonhg.NetBSD.org/pkgsrc/rev/42ca262e2979
branches: trunk
changeset: 453049:42ca262e2979
user: bouyer <bouyer%pkgsrc.org@localhost>
date: Sat May 22 11:36:01 2021 +0000
description:
Properly detect and use NetBSD's socketcan implementation.
Bump PKGREVISION
diffstat:
lang/python39/Makefile | 4 +-
lang/python39/distinfo | 8 +++---
lang/python39/patches/patch-Modules_socketmodule.c | 17 +++++++++++---
lang/python39/patches/patch-Modules_socketmodule.h | 24 +++++++++-----------
lang/python39/patches/patch-configure | 26 +++++++++++++++------
5 files changed, 48 insertions(+), 31 deletions(-)
diffs (163 lines):
diff -r 6981036f1e31 -r 42ca262e2979 lang/python39/Makefile
--- a/lang/python39/Makefile Sat May 22 10:18:36 2021 +0000
+++ b/lang/python39/Makefile Sat May 22 11:36:01 2021 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.7 2021/05/20 06:56:43 triaxx Exp $
+# $NetBSD: Makefile,v 1.8 2021/05/22 11:36:01 bouyer Exp $
.include "dist.mk"
PKGNAME= python39-${PY_DISTVERSION}
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= lang python
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
diff -r 6981036f1e31 -r 42ca262e2979 lang/python39/distinfo
--- a/lang/python39/distinfo Sat May 22 10:18:36 2021 +0000
+++ b/lang/python39/distinfo Sat May 22 11:36:01 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.10 2021/05/20 06:56:43 triaxx Exp $
+$NetBSD: distinfo,v 1.11 2021/05/22 11:36:01 bouyer Exp $
SHA1 (Python-3.9.5.tar.xz) = edc80e5e33fc3d3fae53e6b95ae4ca9277809b9b
RMD160 (Python-3.9.5.tar.xz) = 3c7bf2d7bcea98a8a749ef19ce7da429a7ca2c08
@@ -14,9 +14,9 @@
SHA1 (patch-Modules___ssl.c) = f241ba148e4c244a641386be5ac07817b03f04f7
SHA1 (patch-Modules_makesetup) = a06786eebffadecedba5e3a50a9785fb47613567
SHA1 (patch-Modules_nismodule.c) = 1bafe9b06359586d027a77011b103877590d947d
-SHA1 (patch-Modules_socketmodule.c) = 02c447f980a08e2185df78d2f13373574f414304
-SHA1 (patch-Modules_socketmodule.h) = 61fe96a79d4ccf3e7768eb79dd7e29a50a85328b
+SHA1 (patch-Modules_socketmodule.c) = 98882462db1b1fe3141219206980aa9ae56ffce2
+SHA1 (patch-Modules_socketmodule.h) = 8761c7238bc74e45adefb6e647dc3b39b7bdd81c
SHA1 (patch-Python_thread__pthread.h) = fb81eaa604b4ed7c1b64c3f4731d58a8aee257be
-SHA1 (patch-configure) = e4e29932f2cc8e1cec1a657220562e6d43e4f55c
+SHA1 (patch-configure) = d44439b22e8444141e2632b9fd9b1f343b38b712
SHA1 (patch-pyconfig.h.in) = 2f06af7358690b46eaff404226b898962b049a0e
SHA1 (patch-setup.py) = 0ea2e4183f7c11ff893ca302aafe8bb9bea80d6c
diff -r 6981036f1e31 -r 42ca262e2979 lang/python39/patches/patch-Modules_socketmodule.c
--- a/lang/python39/patches/patch-Modules_socketmodule.c Sat May 22 10:18:36 2021 +0000
+++ b/lang/python39/patches/patch-Modules_socketmodule.c Sat May 22 11:36:01 2021 +0000
@@ -1,10 +1,19 @@
-$NetBSD: patch-Modules_socketmodule.c,v 1.1 2020/10/10 20:20:12 adam Exp $
+$NetBSD: patch-Modules_socketmodule.c,v 1.2 2021/05/22 11:36:01 bouyer Exp $
Support NetBSD's socketcan implementation
---- Modules/socketmodule.c.orig 2020-10-05 15:07:58.000000000 +0000
-+++ Modules/socketmodule.c
-@@ -7826,6 +7826,20 @@ PyInit__socket(void)
+--- Modules/socketmodule.c.orig 2021-05-03 16:54:42.000000000 +0200
++++ Modules/socketmodule.c 2021-05-22 12:11:03.509965978 +0200
+@@ -2157,7 +2157,7 @@
+ PyObject *interfaceName;
+ struct ifreq ifr;
+ Py_ssize_t len;
+- struct sockaddr_can *addr = &addrbuf->can;
++ struct sockaddr_can *addr = (struct sockaddr_can *)addrbuf;
+
+ if (!PyTuple_Check(args)) {
+ PyErr_Format(PyExc_TypeError,
+@@ -7827,6 +7827,20 @@
PyModule_AddIntMacro(m, J1939_FILTER_MAX);
#endif
diff -r 6981036f1e31 -r 42ca262e2979 lang/python39/patches/patch-Modules_socketmodule.h
--- a/lang/python39/patches/patch-Modules_socketmodule.h Sat May 22 10:18:36 2021 +0000
+++ b/lang/python39/patches/patch-Modules_socketmodule.h Sat May 22 11:36:01 2021 +0000
@@ -1,17 +1,15 @@
-$NetBSD: patch-Modules_socketmodule.h,v 1.1 2020/10/10 20:20:12 adam Exp $
+$NetBSD: patch-Modules_socketmodule.h,v 1.2 2021/05/22 11:36:01 bouyer Exp $
Support NetBSD's socketcan implementation
---- Modules/socketmodule.h.orig 2020-10-05 15:07:58.000000000 +0000
-+++ Modules/socketmodule.h
-@@ -148,6 +148,10 @@ typedef int socklen_t;
- #include <linux/can/j1939.h>
- #endif
+--- Modules/socketmodule.h.orig 2021-05-03 16:54:42.000000000 +0200
++++ Modules/socketmodule.h 2021-05-22 11:52:19.072276647 +0200
+@@ -131,6 +131,8 @@
-+#ifdef HAVE_NETCAN_CAN_H
-+#include <netcan/can.h>
-+#endif
-+
- #ifdef HAVE_SYS_SYS_DOMAIN_H
- #include <sys/sys_domain.h>
- #endif
+ #ifdef HAVE_LINUX_CAN_H
+ # include <linux/can.h>
++#elif defined(HAVE_NETCAN_CAN_H)
++# include <netcan/can.h>
+ #else
+ # undef AF_CAN
+ # undef PF_CAN
diff -r 6981036f1e31 -r 42ca262e2979 lang/python39/patches/patch-configure
--- a/lang/python39/patches/patch-configure Sat May 22 10:18:36 2021 +0000
+++ b/lang/python39/patches/patch-configure Sat May 22 11:36:01 2021 +0000
@@ -1,13 +1,14 @@
-$NetBSD: patch-configure,v 1.5 2021/04/03 06:23:13 adam Exp $
+$NetBSD: patch-configure,v 1.6 2021/05/22 11:36:01 bouyer Exp $
Use gnu99 instead of c99 to avoid "alloca() undefined" problems.
Fix linking on Darwin; don't use -stack_size.
Changes for consistency across pkgsrc platforms.
Simplify _sysconfigdata to include only platform name.
+detect netcan/can.h on NetBSD
---- configure.orig 2021-04-02 09:51:53.000000000 +0000
-+++ configure
-@@ -6961,7 +6961,7 @@ UNIVERSAL_ARCH_FLAGS=
+--- configure.orig 2021-05-03 16:54:42.000000000 +0200
++++ configure 2021-05-22 11:50:33.365792903 +0200
+@@ -6964,7 +6964,7 @@
# tweak BASECFLAGS based on compiler and platform
case $GCC in
yes)
@@ -16,7 +17,16 @@
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wextra" >&5
$as_echo_n "checking for -Wextra... " >&6; }
-@@ -9650,7 +9650,6 @@ then
+@@ -8344,7 +8344,7 @@
+
+
+ # On Linux, can.h, can/bcm.h, can/j1939.h, can/raw.h require sys/socket.h
+-for ac_header in linux/can.h linux/can/bcm.h linux/can/j1939.h linux/can/raw.h
++for ac_header in linux/can.h linux/can/bcm.h linux/can/j1939.h linux/can/raw.h netcan/can.h
+ do :
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
+@@ -9655,7 +9655,6 @@
# to ensure that tests don't crash
# Note: This matches the value of THREAD_STACK_SIZE in
# thread_pthread.h
@@ -24,7 +34,7 @@
if test "$enable_framework"
then
-@@ -14495,10 +14494,10 @@ _ACEOF
+@@ -14500,10 +14499,10 @@
if ac_fn_c_try_compile "$LINENO"; then :
@@ -37,7 +47,7 @@
if test "$ax_cv_c_float_words_bigendian" = unknown; then
ax_cv_c_float_words_bigendian=no
else
-@@ -15383,7 +15382,7 @@ _ACEOF
+@@ -15388,7 +15387,7 @@
fi
@@ -46,7 +56,7 @@
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5
$as_echo_n "checking LDVERSION... " >&6; }
-@@ -15436,11 +15435,7 @@ fi
+@@ -15441,11 +15440,7 @@
Home |
Main Index |
Thread Index |
Old Index