Subject: pkg/9256: lang/python6: python with IPv6 support
To: None <gnats-bugs@gnats.netbsd.org>
From: None <itojun@itojun.org>
List: netbsd-bugs
Date: 01/19/2000 23:18:38
>Number:         9256
>Category:       pkg
>Synopsis:       lang/python6: python with IPv6 support
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager (NetBSD software packages system bug manager)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 19 23:18:00 2000
>Last-Modified:
>Originator:     Jun-ichiro itojun Hagino
>Organization:
	itojun.org
>Release:        current
>Environment:
	
System: NetBSD lychee.itojun.org 1.4.1 NetBSD 1.4.1 (LYCHEE.v6) #530: Tue Jan 18 21:10:07 JST 2000 itojun@lychee.itojun.org:/export/home/itojun/k/kame/netbsd/sys/arch/i386/compile/LYCHEE.v6 i386


>Description:
	python language with IPv6 patch.  I submit this here before I go on,
	to solicit review, or comments.

	Issues to be discussed:
	- The pkgsrc will pull in IPv6 support.  Due to IPv6 changes,
	  there are certain changes in socket support, and network related
	  libraries.  This may break existing python script, so I made a
	  "parasite" pkgsrc for safety.  Is it the right way to go, or should
	  we try bring it into lang/python to see what happens?
	- Is it a right way to make a parasite port (it certainly decreases
	- of course, need to submit IPv6 support patch to original author
	  (did in the past but he looked busy)
>How-To-Repeat:
>Fix:
	apply the following patch to lang/python.

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/lang/python/Makefile,v
retrieving revision 1.18
diff -c -r1.18 Makefile
*** Makefile	2000/01/09 01:19:11	1.18
--- Makefile	2000/01/20 07:09:55
***************
*** 2,8 ****
  #
  
  DISTNAME=	py152
! PKGNAME=	python-1.5.2
  CATEGORIES=	lang
  MASTER_SITES=	ftp://ftp.python.org/pub/python/src/
  EXTRACT_SUFX=	.tgz
--- 2,8 ----
  #
  
  DISTNAME=	py152
! PKGNAME?=	python-1.5.2
  CATEGORIES=	lang
  MASTER_SITES=	ftp://ftp.python.org/pub/python/src/
  EXTRACT_SUFX=	.tgz
***************
*** 16,21 ****
--- 16,23 ----
  
  WRKSRC=		${WRKDIR}/Python-1.5.2
  GNU_CONFIGURE=	yes
+ 
+ CONFLICTS+=	python6-*
  
  # Make sure having environment variable OPT doesn't affect the
  # installed module-building Makefile


	next, create lang/python6 with this.

diff -r -u -N /tmp/Makefile ./Makefile
--- /tmp/Makefile	Wed Dec 31 16:00:00 1969
+++ ./Makefile	Wed Jan 19 23:02:47 2000
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.17 1999/08/02 10:59:34 agc Exp $
+#
+
+PKGDIR=	${.CURDIR}/../../lang/python/pkg
+FILESDIR=	${.CURDIR}/../../lang/python/files
+PATCHDIR=	${.CURDIR}/../../lang/python/patches
+MD5_FILE=	${.CURDIR}/files/md5
+
+PATCH_SITES=	ftp://ftp.kame.net/pub/kame/misc/
+PATCHFILES=	python-152-v6-20000120.diff.gz
+PATCH_DIST_STRIP=	-p1
+
+# overrides - should be set with "=?" in ../python/Makefile
+PKGNAME=	python6-1.5.2
+
+CONFLICTS+=	python-*
+
+.include "${.CURDIR}/../../lang/python/Makefile"
+
+COMMENT=	${.CURDIR}/pkg/COMMENT
diff -r -u -N /tmp/files/md5 ./files/md5
--- /tmp/files/md5	Wed Dec 31 16:00:00 1969
+++ ./files/md5	Wed Jan 19 23:05:04 2000
@@ -0,0 +1,4 @@
+$NetBSD$
+
+MD5 (python/py152.tgz) = e9d677ae6d5a3efc6937627ed8a3e752
+MD5 (python/python-152-v6-20000120.diff.gz) = bbbd8296a8f651a76ea60a9ff0a5feb1
diff -r -u -N /tmp/pkg/COMMENT ./pkg/COMMENT
--- /tmp/pkg/COMMENT	Wed Dec 31 16:00:00 1969
+++ ./pkg/COMMENT	Wed Jan 19 20:50:39 2000
@@ -0,0 +1 @@
+Python language with IPv6 support.
>Audit-Trail:
>Unformatted: