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

Collapse All | Expand All

(-)lang/python27/Makefile (-1 / +1 lines)
Lines 2-8 Link Here
2
2
3
PORTNAME=	python27
3
PORTNAME=	python27
4
PORTVERSION=	2.7.8
4
PORTVERSION=	2.7.8
5
PORTREVISION=	4
5
PORTREVISION=	5
6
CATEGORIES=	lang python ipv6
6
CATEGORIES=	lang python ipv6
7
MASTER_SITES=	PYTHON
7
MASTER_SITES=	PYTHON
8
MASTER_SITE_SUBDIR=	ftp/python/${PORTVERSION}
8
MASTER_SITE_SUBDIR=	ftp/python/${PORTVERSION}
(-)lang/python27/files/patch-pr192365 (+54 lines)
Line 0 Link Here
1
--- configure.orig	2014-09-06 14:42:50 UTC
2
+++ configure
3
@@ -2919,13 +2919,6 @@
4
 
5
 
6
 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
7
-# certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
8
-# them.
9
-
10
-$as_echo "#define __BSD_VISIBLE 1" >>confdefs.h
11
-
12
-
13
-# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
14
 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
15
 
16
 $as_echo "#define _BSD_TYPES 1" >>confdefs.h
17
@@ -3293,9 +3286,8 @@
18
   # but used in struct sockaddr.sa_family. Reported by Tim Rice.
19
   SCO_SV/3.2)
20
     define_xopen_source=no;;
21
-  # On FreeBSD 4, the math functions C89 does not cover are never defined
22
-  # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
23
-  FreeBSD/4.*)
24
+  # On FreeBSD,  defining _XOPEN_SOURCE to 600 requests a strict environment.
25
+  FreeBSD/*)
26
     define_xopen_source=no;;
27
   # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
28
   # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
29
--- configure.ac.orig	2014-09-06 14:42:50 UTC
30
+++ configure.ac
31
@@ -88,11 +88,6 @@
32
 AC_DEFINE(_NETBSD_SOURCE, 1, [Define on NetBSD to activate all library features])
33
 
34
 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
35
-# certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
36
-# them.
37
-AC_DEFINE(__BSD_VISIBLE, 1, [Define on FreeBSD to activate all library features])
38
-
39
-# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
40
 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
41
 AC_DEFINE(_BSD_TYPES, 1, [Define on Irix to enable u_int])
42
 
43
@@ -426,9 +421,8 @@
44
   # but used in struct sockaddr.sa_family. Reported by Tim Rice.
45
   SCO_SV/3.2)
46
     define_xopen_source=no;;
47
-  # On FreeBSD 4, the math functions C89 does not cover are never defined
48
-  # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
49
-  FreeBSD/4.*)
50
+  # On FreeBSD,  defining _XOPEN_SOURCE to 600 requests a strict environment.
51
+  FreeBSD/*)
52
     define_xopen_source=no;;
53
   # On MacOS X 10.2, a bug in ncurses.h means that it craps out if 
54
   # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which

Return to bug 192365