Skip site navigation (1)Skip section navigation (2)
Date:      Tue,  3 Aug 2004 11:36:39 -0300 (BRT)
From:      Marcus Grando <marcus@corp.grupos.com.br>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        perky@FreeBSD.org
Subject:    ports/69950: Python don't compile if kernel not have suport to IPV6.
Message-ID:  <20040803143639.6D34620A9C@corp.grupos.com.br>
Resent-Message-ID: <200408031440.i73EePvs061995@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         69950
>Category:       ports
>Synopsis:       Python don't compile if kernel not have suport to IPV6.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 03 14:40:24 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Marcus Grando
>Release:        FreeBSD 4.10-STABLE i386
>Organization:
Grupos Internet S/A 
>Environment:
System: FreeBSD corp.grupos.com.br 4.10-STABLE FreeBSD 4.10-STABLE #21: Sat Jul 24 19:44:43 BRT 2004 root@corp.grupos.com.br:/usr/obj/usr/src/sys/CORP i386


	
>Description:
Python don't compile if kernel not have suport to IPV6
	
>How-To-Repeat:
Disable IPV6 suport of kernel, reboot and try compile python.
	
>Fix:
diff -ruN python.old/Makefile python/Makefile
--- python.old/Makefile Tue Aug  3 11:20:45 2004
+++ python/Makefile     Tue Aug  3 11:29:08 2004
@@ -7,7 +7,7 @@

 PORTNAME=      python
 PORTVERSION=   2.3.4
-PORTREVISION?= 1
+PORTREVISION?= 2
 CATEGORIES=    lang python ipv6
 MASTER_SITES=  ${PYTHON_MASTER_SITES}
 MASTER_SITE_SUBDIR=    ${PYTHON_MASTER_SITE_SUBDIR}
@@ -41,7 +41,8 @@
 OPTIONS=       THREADS "Enable thread support" on \
                HUGE_STACK_SIZE "Use a larger thread stack" off \
                UCS4 "Use UCS4 for unicode support" on \
-               PYMALLOC "Uses python's internal malloc" on
+               PYMALLOC "Uses python's internal malloc" on \
+               IPV6 "Uses IPV6 in python" on

 .include <bsd.port.pre.mk>

@@ -96,11 +97,15 @@
 CONFIGURE_ARGS+=       --with-libs='-lxpg4'
 .endif

+.if !defined(WITHOUT_IPV6)
 .if ${OSVERSION} >= 400014
 CONFIGURE_ARGS+= --enable-ipv6
 .else
 CONFIGURE_ARGS+= --disable-ipv6
-.endif
+.endif # ${OSVERSION} >= 400014
+.else
+CONFIGURE_ARGS+= --disable-ipv6
+.endif # !defined(WITHOUT_IPV6)

 .if ${OSVERSION} >= 500000
 PLATFORMS=plat-freebsd2 plat-freebsd3 plat-freebsd4

	


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040803143639.6D34620A9C>