View | Details | Raw Unified | Return to bug 273132 | Differences between
and this patch

Collapse All | Expand All

(-)b/lang/python38/Makefile (+1 lines)
Lines 1-5 Link Here
1
PORTNAME=	python
1
PORTNAME=	python
2
DISTVERSION=	${PYTHON_DISTVERSION}
2
DISTVERSION=	${PYTHON_DISTVERSION}
3
PORTREVISION=	1
3
CATEGORIES=	lang python
4
CATEGORIES=	lang python
4
MASTER_SITES=	PYTHON/ftp/python/${DISTVERSION}
5
MASTER_SITES=	PYTHON/ftp/python/${DISTVERSION}
5
PKGNAMESUFFIX=	${PYTHON_SUFFIX}
6
PKGNAMESUFFIX=	${PYTHON_SUFFIX}
(-)b/lang/python38/files/patch-Modules__socketmodule.h (+11 lines)
Added Link Here
1
--- Modules/socketmodule.h.orig
2
+++ Modules/socketmodule.h
3
@@ -50,6 +50,8 @@ typedef int socklen_t;
4
 #  include <asm/types.h>
5
 # endif
6
 # include <linux/netlink.h>
7
+#elif defined(HAVE_NETLINK_NETLINK_H)
8
+# include <netlink/netlink.h>
9
 #else
10
 #  undef AF_NETLINK
11
 #endif
(-)b/lang/python38/files/patch-configure (+26 lines)
Lines 9-11 Link Here
9
 
9
 
10
       if test -n "$ac_tool_prefix"; then
10
       if test -n "$ac_tool_prefix"; then
11
   # Extract the first word of "${ac_tool_prefix}llvm-ar", so it can be a program name with args.
11
   # Extract the first word of "${ac_tool_prefix}llvm-ar", so it can be a program name with args.
12
@@ -8193,9 +8193,11 @@ done
13
 
14
 
15
 # On Linux, netlink.h requires asm/types.h
16
-for ac_header in linux/netlink.h
17
+# On FreeBSD, netlink.h is located in netlink/netlink.h
18
+for ac_header in linux/netlink.h netlink/netlink.h
19
 do :
20
-  ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "
21
+  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22
+ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
23
 #ifdef HAVE_ASM_TYPES_H
24
 #include <asm/types.h>
25
 #endif
26
@@ -8204,9 +8206,9 @@ do :
27
 #endif
28
 
29
 "
30
-if test "x$ac_cv_header_linux_netlink_h" = xyes; then :
31
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32
   cat >>confdefs.h <<_ACEOF
33
-#define HAVE_LINUX_NETLINK_H 1
34
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35
 _ACEOF
36
 
37
 fi
(-)b/lang/python38/files/patch-pyconfig.h.in (-1 / +11 lines)
Added Link Here
0
- 
1
--- pyconfig.h.in.orig
2
+++ pyconfig.h.in
3
@@ -715,6 +715,9 @@
4
 /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
5
 #undef HAVE_NDIR_H
6
 
7
+/* Define to 1 if you have the <netlink/netlink.h> header file. */
8
+#undef HAVE_NETLINK_NETLINK_H
9
+
10
 /* Define to 1 if you have the <netpacket/packet.h> header file. */
11
 #undef HAVE_NETPACKET_PACKET_H

Return to bug 273132