From lwhsu@jail0.lwhsu.csie.net  Mon Feb 19 09:11:41 2007
Return-Path: <lwhsu@jail0.lwhsu.csie.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 1C0E316A400;
	Mon, 19 Feb 2007 09:11:41 +0000 (UTC)
	(envelope-from lwhsu@jail0.lwhsu.csie.net)
Received: from knight.lwhsu.ckefgisc.org (lwhsu.Dorm7.NCTU.edu.tw [140.113.90.48])
	by mx1.freebsd.org (Postfix) with ESMTP id C1AED13C47E;
	Mon, 19 Feb 2007 09:11:39 +0000 (UTC)
	(envelope-from lwhsu@jail0.lwhsu.csie.net)
Received: from jail0.lwhsu.csie.net (jail0 [192.168.173.100])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by knight.lwhsu.ckefgisc.org (Postfix) with ESMTP id 8A5CD1142A;
	Mon, 19 Feb 2007 17:11:38 +0800 (CST)
Received: (from lwhsu@localhost)
	by jail0.lwhsu.csie.net (8.13.8/8.13.8/Submit) id l1J9BcQ4050749;
	Mon, 19 Feb 2007 17:11:38 +0800 (CST)
	(envelope-from lwhsu)
Message-Id: <200702190911.l1J9BcQ4050749@jail0.lwhsu.csie.net>
Date: Mon, 19 Feb 2007 17:11:38 +0800 (CST)
From: Li-Wen Hsu <lwhsu@lwhsu.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: mnag@freebsd.org, lwhsu@lwhsu.org
Subject: [PATCH] devel/py-rbtree: update to 0.8.0
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         109312
>Category:       ports
>Synopsis:       [PATCH] devel/py-rbtree: update to 0.8.0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lwhsu
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 19 09:20:04 GMT 2007
>Closed-Date:    Thu Apr 05 02:36:05 GMT 2007
>Last-Modified:  Thu Apr 05 02:36:05 GMT 2007
>Originator:     Li-Wen Hsu
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD jail0.lwhsu.csie.net 6.2-STABLE FreeBSD 6.2-STABLE #0: Fri Jan 26 00:04:54 CST 2007
>Description:
- Update to 0.8.0

Added file(s):
- pkg-plist

Removed file(s):
- files/patch-setup.py

Port maintainer (mnag@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- py24-rbtree-0.8.0.patch begins here ---
diff -ruN -ruN --exclude=CVS /usr/ports/devel/py-rbtree/Makefile /home/lwhsu/ports/devel/py-rbtree/Makefile
--- /usr/ports/devel/py-rbtree/Makefile	Mon Jul 10 23:20:20 2006
+++ /home/lwhsu/ports/devel/py-rbtree/Makefile	Mon Feb 19 17:05:07 2007
@@ -6,23 +6,35 @@
 #
 
 PORTNAME=	rbtree
-PORTVERSION=	0.7
+PORTVERSION=	0.8.0
 CATEGORIES=	devel python
 MASTER_SITES=	http://cheeseshop.python.org/packages/source/r/rbtree/
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DIST_SUBDIR=	python
 
 MAINTAINER=	mnag@FreeBSD.org
 COMMENT=	A fast tree with ordered data and expanded iterator support
 
-BUILD_DEPENDS=	pyrexc:${PORTSDIR}/devel/pyrex
+BUILD_DEPENDS=	${EASY_INSTALL_CMD}:${PORTSDIR}/devel/py-setuptools \
+		pyrexc:${PORTSDIR}/devel/pyrex
+RUN_DEPENDS=	${BUILD_DEPENDS}
 
-DIST_SUBDIR=	python
 USE_PYTHON=	yes
 USE_PYDISTUTILS=	yes
 
-DOCSDIR=	${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
+EASY_INSTALL_CMD?=	easy_install-${PYTHON_VER}
+
+PYDISTUTILS_BUILD_TARGET=	bdist_egg
+PYDISTUTILS_INSTALL_TARGET=	easy_install
+PYDISTUTILS_INSTALLARGS=	-O 1 -N -S ${PYTHON_SITELIBDIR} ${WRKSRC}/dist/${PYRBTREE_EGG}
+
+PYRBTREE_EGG=	${PORTNAME:}-${PORTVERSION}-py${PYTHON_VER}-${OPSYS:L}-${OSRELEASE}-${ARCH}.egg
 
-PLIST_FILES=	%%PYTHON_SITELIBDIR%%/rbtree.so
+PLIST_SUB+=	EASY_INSTALL_CMD=${EASY_INSTALL_CMD} \
+		PYRBTREE_EGG=${PYRBTREE_EGG} \
+		PYRBTREE_EGG_VER="${PORTNAME}==${PORTVERSION}"
+
+DOCSDIR=	${PREFIX}/share/doc/py-${PORTNAME}
 
 PORTDOCS=	*
 
@@ -35,4 +47,8 @@
 test:	build
 	(cd ${WRKSRC} && ${PYTHON_CMD} test_rbtree.py)
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+OSRELEASE!=	${DESTDIR}/usr/bin/uname -r
+
+.include <bsd.port.post.mk>
diff -ruN -ruN --exclude=CVS /usr/ports/devel/py-rbtree/distinfo /home/lwhsu/ports/devel/py-rbtree/distinfo
--- /usr/ports/devel/py-rbtree/distinfo	Mon Jul 10 23:20:20 2006
+++ /home/lwhsu/ports/devel/py-rbtree/distinfo	Mon Feb 19 16:47:41 2007
@@ -1,3 +1,3 @@
-MD5 (python/rbtree-0.7.tar.gz) = 86d93a8866c65a1774bd6b84389d8909
-SHA256 (python/rbtree-0.7.tar.gz) = 46498f40cf27fe21a8c74c698fe27cfc115664b99118781d604cde9d8681c042
-SIZE (python/rbtree-0.7.tar.gz) = 27817
+MD5 (python/rbtree-0.8.0.tar.gz) = 6975331773f9d3e8bd5a24e547077347
+SHA256 (python/rbtree-0.8.0.tar.gz) = ba79b993a428c7bde555faa1c189b60607f9860d1e29a54d3e91b0104f4b86b9
+SIZE (python/rbtree-0.8.0.tar.gz) = 11869
diff -ruN -ruN --exclude=CVS /usr/ports/devel/py-rbtree/files/patch-setup.py /home/lwhsu/ports/devel/py-rbtree/files/patch-setup.py
--- /usr/ports/devel/py-rbtree/files/patch-setup.py	Mon Jul 10 23:20:21 2006
+++ /home/lwhsu/ports/devel/py-rbtree/files/patch-setup.py	Thu Jan  1 08:00:00 1970
@@ -1,23 +0,0 @@
-#
-# Do not use py-setuptools
-#
---- setup.py.orig	Thu Jun 15 02:43:12 2006
-+++ setup.py	Mon Jul 10 12:12:43 2006
-@@ -1,8 +1,6 @@
--import ez_setup
--ez_setup.use_setuptools()
--
--from setuptools import setup, find_packages
--from setuptools.extension import Extension
-+from distutils.core import setup
-+from distutils.extension import Extension
-+from Pyrex.Distutils import build_ext
- 
- classifiers = [
- "Development Status :: 4 - Beta",
-@@ -31,4 +29,5 @@
-                  include_dirs=['src',],
-         ),
-        ],
-+    cmdclass = {'build_ext': build_ext}
-     )
diff -ruN -ruN --exclude=CVS /usr/ports/devel/py-rbtree/pkg-plist /home/lwhsu/ports/devel/py-rbtree/pkg-plist
--- /usr/ports/devel/py-rbtree/pkg-plist	Thu Jan  1 08:00:00 1970
+++ /home/lwhsu/ports/devel/py-rbtree/pkg-plist	Mon Feb 19 16:59:51 2007
@@ -0,0 +1,14 @@
+@unexec %%EASY_INSTALL_CMD%% -q -m -S %D/%%PYTHON_SITELIBDIR%% %%PYRBTREE_EGG_VER%%
+%%PYTHON_SITELIBDIR%%/%%PYRBTREE_EGG%%/EGG-INFO/PKG-INFO
+%%PYTHON_SITELIBDIR%%/%%PYRBTREE_EGG%%/EGG-INFO/SOURCES.txt
+%%PYTHON_SITELIBDIR%%/%%PYRBTREE_EGG%%/EGG-INFO/dependency_links.txt
+%%PYTHON_SITELIBDIR%%/%%PYRBTREE_EGG%%/EGG-INFO/native_libs.txt
+%%PYTHON_SITELIBDIR%%/%%PYRBTREE_EGG%%/EGG-INFO/not-zip-safe
+%%PYTHON_SITELIBDIR%%/%%PYRBTREE_EGG%%/EGG-INFO/top_level.txt
+%%PYTHON_SITELIBDIR%%/%%PYRBTREE_EGG%%/rbtree.py
+%%PYTHON_SITELIBDIR%%/%%PYRBTREE_EGG%%/rbtree.pyc
+%%PYTHON_SITELIBDIR%%/%%PYRBTREE_EGG%%/rbtree.pyo
+%%PYTHON_SITELIBDIR%%/%%PYRBTREE_EGG%%/rbtree.so
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYRBTREE_EGG%%/EGG-INFO
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYRBTREE_EGG%%
+@exec %%EASY_INSTALL_CMD%% -q -N -S %D/%%PYTHON_SITELIBDIR%% %%PYRBTREE_EGG_VER%%
--- py24-rbtree-0.8.0.patch ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->mnag 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Feb 19 09:21:41 UTC 2007 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=109312 
State-Changed-From-To: open->feedback 
State-Changed-By: pav 
State-Changed-When: Sun Mar 25 16:52:19 UTC 2007 
State-Changed-Why:  
Does not compile: 

building 'rbtree' extension 
/work/a/ports/devel/py-rbtree/work/rbtree-0.8.0/src/rbtree.pyx:89:21: Cannot assign type 'int' to '__pyx_t_6rbtree_ITER_TYPE' 
/work/a/ports/devel/py-rbtree/work/rbtree-0.8.0/src/rbtree.pyx:97:30: Cannot assign type 'int' to 'iter_direction' 
*** Error code 1 


http://www.freebsd.org/cgi/query-pr.cgi?pr=109312 

From: Li-Wen Hsu <lwhsu@lwhsu.ckefgisc.org>
To: Pav Lucistnik <pav@FreeBSD.org>
Cc: lwhsu@lwhsu.org, mnag@FreeBSD.org, bug-followup@FreeBSD.org
Subject: Re: ports/109312: [PATCH] devel/py-rbtree: update to 0.8.0
Date: Mon, 26 Mar 2007 15:26:16 +0800

 --ZwgA9U+XZDXt4+m+
 Content-Type: multipart/mixed; boundary="BwCQnh7xodEAoBMC"
 Content-Disposition: inline
 
 
 --BwCQnh7xodEAoBMC
 Content-Type: text/plain; charset=big5
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 Hello,
 
 Please use this patch.
 
 On =A4=E9,  3 25, 2007 at 16:56:14 +0000, Pav Lucistnik wrote:
 > Synopsis: [PATCH] devel/py-rbtree: update to 0.8.0
 >=20
 > State-Changed-From-To: open->feedback
 > State-Changed-By: pav
 > State-Changed-When: Sun Mar 25 16:52:19 UTC 2007
 > State-Changed-Why:=20
 > Does not compile:
 >=20
 > building 'rbtree' extension
 > /work/a/ports/devel/py-rbtree/work/rbtree-0.8.0/src/rbtree.pyx:89:21: Can=
 not assign type 'int' to '__pyx_t_6rbtree_ITER_TYPE'
 > /work/a/ports/devel/py-rbtree/work/rbtree-0.8.0/src/rbtree.pyx:97:30: Can=
 not assign type 'int' to 'iter_direction'
 > *** Error code 1
 >=20
 >=20
 > http://www.freebsd.org/cgi/query-pr.cgi?pr=3D109312
 
 --=20
 Best Regards,
 Li-Wen Hsu
 
 --BwCQnh7xodEAoBMC
 Content-Type: text/x-diff; charset=us-ascii
 Content-Disposition: attachment; filename="py-rbtree.diff"
 Content-Transfer-Encoding: quoted-printable
 
 diff -ruN -ruN --exclude=3DCVS /usr/ports/devel/py-rbtree/Makefile /home/lw=
 hsu/ports/devel/py-rbtree/Makefile
 --- /usr/ports/devel/py-rbtree/Makefile	Mon Jul 10 23:20:20 2006
 +++ /home/lwhsu/ports/devel/py-rbtree/Makefile	Mon Mar 26 04:17:59 2007
 @@ -6,23 +6,35 @@
  #
 =20
  PORTNAME=3D	rbtree
 -PORTVERSION=3D	0.7
 +PORTVERSION=3D	0.8.0
  CATEGORIES=3D	devel python
  MASTER_SITES=3D	http://cheeseshop.python.org/packages/source/r/rbtree/
  PKGNAMEPREFIX=3D	${PYTHON_PKGNAMEPREFIX}
 +DIST_SUBDIR=3D	python
 =20
  MAINTAINER=3D	mnag@FreeBSD.org
  COMMENT=3D	A fast tree with ordered data and expanded iterator support
 =20
 -BUILD_DEPENDS=3D	pyrexc:${PORTSDIR}/devel/pyrex
 +BUILD_DEPENDS=3D	${EASY_INSTALL_CMD}:${PORTSDIR}/devel/py-setuptools \
 +		pyrexc:${PORTSDIR}/devel/pyrex
 +RUN_DEPENDS=3D	${BUILD_DEPENDS}
 =20
 -DIST_SUBDIR=3D	python
  USE_PYTHON=3D	yes
  USE_PYDISTUTILS=3D	yes
 =20
 -DOCSDIR=3D	${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
 +EASY_INSTALL_CMD?=3D	easy_install-${PYTHON_VER}
 +
 +PYDISTUTILS_BUILD_TARGET=3D	bdist_egg
 +PYDISTUTILS_INSTALL_TARGET=3D	easy_install
 +PYDISTUTILS_INSTALLARGS=3D	-O 1 -N -S ${PYTHON_SITELIBDIR} ${WRKSRC}/dist/=
 ${PYRBTREE_EGG}
 +
 +PYRBTREE_EGG=3D	${PORTNAME:}-${PORTVERSION}-py${PYTHON_VER}-${OPSYS:L}-${O=
 SRELEASE}-${ARCH}.egg
 =20
 -PLIST_FILES=3D	%%PYTHON_SITELIBDIR%%/rbtree.so
 +PLIST_SUB+=3D	EASY_INSTALL_CMD=3D${EASY_INSTALL_CMD} \
 +		PYRBTREE_EGG=3D${PYRBTREE_EGG} \
 +		PYRBTREE_EGG_VER=3D"${PORTNAME}=3D=3D${PORTVERSION}"
 +
 +DOCSDIR=3D	${PREFIX}/share/doc/py-${PORTNAME}
 =20
  PORTDOCS=3D	*
 =20
 @@ -35,4 +47,8 @@
  test:	build
  	(cd ${WRKSRC} && ${PYTHON_CMD} test_rbtree.py)
 =20
 -.include <bsd.port.mk>
 +.include <bsd.port.pre.mk>
 +
 +OSRELEASE!=3D	${DESTDIR}/usr/bin/uname -r
 +
 +.include <bsd.port.post.mk>
 diff -ruN -ruN --exclude=3DCVS /usr/ports/devel/py-rbtree/distinfo /home/lw=
 hsu/ports/devel/py-rbtree/distinfo
 --- /usr/ports/devel/py-rbtree/distinfo	Mon Jul 10 23:20:20 2006
 +++ /home/lwhsu/ports/devel/py-rbtree/distinfo	Mon Mar 26 04:17:59 2007
 @@ -1,3 +1,3 @@
 -MD5 (python/rbtree-0.7.tar.gz) =3D 86d93a8866c65a1774bd6b84389d8909
 -SHA256 (python/rbtree-0.7.tar.gz) =3D 46498f40cf27fe21a8c74c698fe27cfc1156=
 64b99118781d604cde9d8681c042
 -SIZE (python/rbtree-0.7.tar.gz) =3D 27817
 +MD5 (python/rbtree-0.8.0.tar.gz) =3D 6975331773f9d3e8bd5a24e547077347
 +SHA256 (python/rbtree-0.8.0.tar.gz) =3D ba79b993a428c7bde555faa1c189b60607=
 f9860d1e29a54d3e91b0104f4b86b9
 +SIZE (python/rbtree-0.8.0.tar.gz) =3D 11869
 diff -ruN -ruN --exclude=3DCVS /usr/ports/devel/py-rbtree/files/patch-setup=
 =2Epy /home/lwhsu/ports/devel/py-rbtree/files/patch-setup.py
 --- /usr/ports/devel/py-rbtree/files/patch-setup.py	Mon Jul 10 23:20:21 2006
 +++ /home/lwhsu/ports/devel/py-rbtree/files/patch-setup.py	Thu Jan  1 08:00=
 :00 1970
 @@ -1,23 +0,0 @@
 -#
 -# Do not use py-setuptools
 -#
 ---- setup.py.orig	Thu Jun 15 02:43:12 2006
 -+++ setup.py	Mon Jul 10 12:12:43 2006
 -@@ -1,8 +1,6 @@
 --import ez_setup
 --ez_setup.use_setuptools()
 --
 --from setuptools import setup, find_packages
 --from setuptools.extension import Extension
 -+from distutils.core import setup
 -+from distutils.extension import Extension
 -+from Pyrex.Distutils import build_ext
 -=20
 - classifiers =3D [
 - "Development Status :: 4 - Beta",
 -@@ -31,4 +29,5 @@
 -                  include_dirs=3D['src',],
 -         ),
 -        ],
 -+    cmdclass =3D {'build_ext': build_ext}
 -     )
 diff -ruN -ruN --exclude=3DCVS /usr/ports/devel/py-rbtree/files/patch-src__=
 rbtree.pyx /home/lwhsu/ports/devel/py-rbtree/files/patch-src__rbtree.pyx
 --- /usr/ports/devel/py-rbtree/files/patch-src__rbtree.pyx	Thu Jan  1 08:00=
 :00 1970
 +++ /home/lwhsu/ports/devel/py-rbtree/files/patch-src__rbtree.pyx	Mon Mar 2=
 6 10:44:23 2007
 @@ -0,0 +1,20 @@
 +--- ./src/rbtree.pyx.orig	Sat Feb 10 06:49:24 2007
 ++++ ./src/rbtree.pyx	Mon Mar 26 10:19:44 2007
 +@@ -83,7 +83,7 @@
 +     cdef int _done
 +     cdef iter_direction _direction
 +=20
 +-    def __new__(self, RBTree tree, int itype):
 ++    def __new__(self, RBTree tree, itype):
 +         self._T =3D tree
 +         self._iter =3D NULL
 +         self._type =3D itype
 +@@ -93,7 +93,7 @@
 +     property direction:
 +         def __get__(self):
 +             return self._direction
 +-        def __set__(self, int value):
 ++        def __set__(self, value):
 +             self._direction =3D value
 +=20
 +     cdef _position(self, iter_direction direction):
 diff -ruN -ruN --exclude=3DCVS /usr/ports/devel/py-rbtree/pkg-plist /home/l=
 whsu/ports/devel/py-rbtree/pkg-plist
 --- /usr/ports/devel/py-rbtree/pkg-plist	Thu Jan  1 08:00:00 1970
 +++ /home/lwhsu/ports/devel/py-rbtree/pkg-plist	Mon Mar 26 04:19:31 2007
 @@ -0,0 +1,14 @@
 +@unexec %%EASY_INSTALL_CMD%% -q -m -S %D/%%PYTHON_SITELIBDIR%% %%PYRBTREE_=
 EGG_VER%%
 +%%PYTHON_SITELIBDIR%%/%%PYRBTREE_EGG%%/EGG-INFO/PKG-INFO
 +%%PYTHON_SITELIBDIR%%/%%PYRBTREE_EGG%%/EGG-INFO/SOURCES.txt
 +%%PYTHON_SITELIBDIR%%/%%PYRBTREE_EGG%%/EGG-INFO/dependency_links.txt
 +%%PYTHON_SITELIBDIR%%/%%PYRBTREE_EGG%%/EGG-INFO/native_libs.txt
 +%%PYTHON_SITELIBDIR%%/%%PYRBTREE_EGG%%/EGG-INFO/not-zip-safe
 +%%PYTHON_SITELIBDIR%%/%%PYRBTREE_EGG%%/EGG-INFO/top_level.txt
 +%%PYTHON_SITELIBDIR%%/%%PYRBTREE_EGG%%/rbtree.py
 +%%PYTHON_SITELIBDIR%%/%%PYRBTREE_EGG%%/rbtree.pyc
 +%%PYTHON_SITELIBDIR%%/%%PYRBTREE_EGG%%/rbtree.pyo
 +%%PYTHON_SITELIBDIR%%/%%PYRBTREE_EGG%%/rbtree.so
 +@dirrm %%PYTHON_SITELIBDIR%%/%%PYRBTREE_EGG%%/EGG-INFO
 +@dirrm %%PYTHON_SITELIBDIR%%/%%PYRBTREE_EGG%%
 +@exec %%EASY_INSTALL_CMD%% -q -N -S %D/%%PYTHON_SITELIBDIR%% %%PYRBTREE_EG=
 G_VER%%
 
 --BwCQnh7xodEAoBMC--
 
 --ZwgA9U+XZDXt4+m+
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.6 (FreeBSD)
 
 iD8DBQFGB3WWQWsOOSiXsigRAol4AJ9CpsPqOFv5G54em5l5FhbeoG31mgCdHij0
 GnvU08UNfmNBVngciUVrF3c=
 =PCz8
 -----END PGP SIGNATURE-----
 
 --ZwgA9U+XZDXt4+m+--

From: Pav Lucistnik <pav@FreeBSD.org>
To: Li-Wen Hsu <lwhsu@lwhsu.ckefgisc.org>
Cc: lwhsu@lwhsu.org, mnag@FreeBSD.org, bug-followup@FreeBSD.org
Subject: Re: ports/109312: [PATCH] devel/py-rbtree: update to 0.8.0
Date: Mon, 26 Mar 2007 09:39:36 +0200

 > Hello,
 > 
 > Please use this patch.
 
 Still no good:
 
 creating dist
 creating 'dist/rbtree-0.8.0-py2.4-freebsd-6.2-STABLE-amd64.egg' and adding 'build/bdist.freebsd-6.2-STABLE-amd64/egg' to it
 removing 'build/bdist.freebsd-6.2-STABLE-amd64/egg' (and everything under it)
 [..]
 running easy_install
 error: Not a URL, existing file, or requirement spec: '/work/a/ports/devel/py-rbtree/work/rbtree-0.8.0/dist/rbtree-0.8.0-py2.4-freebsd-6.1-STABLE-amd64.egg'
 *** Error code 1
 
 
 My guess is you can't use OSRELEASE like you did in this port.
 
 -- 
 Pav Lucistnik <pav@oook.cz>
               <pav@FreeBSD.org>
 
 Every man is as God made him, ay, and often worse.
   -- Miguel de Cervantes

From: Li-Wen Hsu <lwhsu@lwhsu.org>
To: Pav Lucistnik <pav@FreeBSD.org>
Cc: lwhsu@lwhsu.org, mnag@FreeBSD.org, bug-followup@FreeBSD.org
Subject: Re: ports/109312: [PATCH] devel/py-rbtree: update to 0.8.0
Date: Mon, 26 Mar 2007 16:21:29 +0800

 --8t9RHnE3ZwKMSgU+
 Content-Type: text/plain; charset=big5
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On =A4@,  3 26, 2007 at 09:39:36 +0200, Pav Lucistnik wrote:
 > Still no good:
 >=20
 > creating dist
 > creating 'dist/rbtree-0.8.0-py2.4-freebsd-6.2-STABLE-amd64.egg' and addin=
 g 'build/bdist.freebsd-6.2-STABLE-amd64/egg' to it
 > removing 'build/bdist.freebsd-6.2-STABLE-amd64/egg' (and everything under=
  it)
 > [..]
 > running easy_install
 > error: Not a URL, existing file, or requirement spec: '/work/a/ports/deve=
 l/py-rbtree/work/rbtree-0.8.0/dist/rbtree-0.8.0-py2.4-freebsd-6.1-STABLE-am=
 d64.egg'
 > *** Error code 1
 >=20
 >=20
 > My guess is you can't use OSRELEASE like you did in this port.
 >=20
 
 Yes, the problem is OSRELEASE (again?)
 And this is a interesting problem (bug?)
 
 I added a pre-install section into the Makefile:
 
 pre-install:
         @${ECHO} =3D=3D=3D=3D=3D=3D=3D=3DLS=3D=3D=3D=3D=3D=3D=3D=3D
         @${LS} ${WRKSRC}/dist
         @${ECHO} =3D=3D=3D=3D=3D=3D=3D=3DLS=3D=3D=3D=3D=3D=3D=3D=3D
 
 and got this:
 
 =3D=3D=3D=3D=3D=3D=3D=3DLS=3D=3D=3D=3D=3D=3D=3D=3D
 rbtree-0.8.0-py2.4-freebsd-6.2-RELEASE-i386.egg
 =3D=3D=3D=3D=3D=3D=3D=3DLS=3D=3D=3D=3D=3D=3D=3D=3D
 =3D=3D=3D>   Generating temporary packing list
 =3D=3D=3D>  Checking if devel/py-rbtree already installed
 running easy_install
 error: Not a URL, existing file, or requirement spec: '/work/a/ports/devel/=
 py-rbtree/work/rbtree-0.8.0/dist/rbtree-0.8.0-py2.4-freebsd-6.2-STABLE-i386=
 =2Eegg'
 *** Error code 1
 
 Obviously, we have 6.2-RELEASE egg and want to install 6.2-STABLE.
 
 My tinderbox is 6.2-STABLE while my host machine runs 6.2-RELEASE,
 It seems that setuptools got the wrong OSRELEASE (while building egg, not w=
 hile using 'uname -r')
 I guess this might be the bug in tinderbox, and we also have similar problem
 in other ports, like devel/py-lxml, devel/py-cheetah and devel/py-simplejso=
 n.
 I haven't look into tinderbox's code, but I think we can add:
 
 MANUAL_PACKAGE_BUILD=3DDoesn't build in tinderbox environment
 
 in Makefile at this time? Just like devel/py-lxml?
 Since the "normal" install/build is OK, the error only appears in tinderbox=
  environmnet.
 
 I was tracing tinderbox's code days before, but progress was slow.
 And maybe it's the problem of setuptools.  I'm still seeking the real probl=
 em.
 
 --=20
 Best Regards,
 Li-Wen Hsu
 
 --8t9RHnE3ZwKMSgU+
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.6 (FreeBSD)
 
 iD8DBQFGB4KJQWsOOSiXsigRAqp4AJ9VMpLF9EmTzdGhQXrrQFnmGcHYJQCgqBif
 /PZzbK9sAnNkRj1RpBH34AY=
 =gOKW
 -----END PGP SIGNATURE-----
 
 --8t9RHnE3ZwKMSgU+--

From: Pav Lucistnik <pav@FreeBSD.org>
To: Li-Wen Hsu <lwhsu@lwhsu.org>
Cc: mnag@FreeBSD.org, bug-followup@FreeBSD.org
Subject: Re: ports/109312: [PATCH] devel/py-rbtree: update to 0.8.0
Date: Mon, 26 Mar 2007 10:26:26 +0200

 > > Still no good:
 > > 
 > > creating dist
 > > creating 'dist/rbtree-0.8.0-py2.4-freebsd-6.2-STABLE-amd64.egg' and adding 'build/bdist.freebsd-6.2-STABLE-amd64/egg' to it
 > > removing 'build/bdist.freebsd-6.2-STABLE-amd64/egg' (and everything under it)
 > > [..]
 > > running easy_install
 > > error: Not a URL, existing file, or requirement spec: '/work/a/ports/devel/py-rbtree/work/rbtree-0.8.0/dist/rbtree-0.8.0-py2.4-freebsd-6.1-STABLE-amd64.egg'
 > > *** Error code 1
 > > 
 > > 
 > > My guess is you can't use OSRELEASE like you did in this port.
 > > 
 > 
 > Yes, the problem is OSRELEASE (again?)
 > And this is a interesting problem (bug?)
 > 
 > I added a pre-install section into the Makefile:
 > 
 > pre-install:
 >         @${ECHO} ========LS========
 >         @${LS} ${WRKSRC}/dist
 >         @${ECHO} ========LS========
 > 
 > and got this:
 > 
 > ========LS========
 > rbtree-0.8.0-py2.4-freebsd-6.2-RELEASE-i386.egg
 > ========LS========
 > ===>   Generating temporary packing list
 > ===>  Checking if devel/py-rbtree already installed
 > running easy_install
 > error: Not a URL, existing file, or requirement spec: '/work/a/ports/devel/py-rbtree/work/rbtree-0.8.0/dist/rbtree-0.8.0-py2.4-freebsd-6.2-STABLE-i386.egg'
 > *** Error code 1
 > 
 > Obviously, we have 6.2-RELEASE egg and want to install 6.2-STABLE.
 > 
 > My tinderbox is 6.2-STABLE while my host machine runs 6.2-RELEASE,
 > It seems that setuptools got the wrong OSRELEASE (while building egg, not while using 'uname -r')
 > I guess this might be the bug in tinderbox, and we also have similar problem
 > in other ports, like devel/py-lxml, devel/py-cheetah and devel/py-simplejson.
 > I haven't look into tinderbox's code, but I think we can add:
 > 
 > MANUAL_PACKAGE_BUILD=Doesn't build in tinderbox environment
 
 Absolutly not, that's out of question. This have to be solved properly.
 
 > in Makefile at this time? Just like devel/py-lxml?
 > Since the "normal" install/build is OK, the error only appears in tinderbox environmnet.
 
 The problem is that you, in ports, can NEVER rely on version that kernel
 reports. You must ONLY work with what ports infrastructure tells you to
 believe the version is.
 
 Otherwise you can never do cross-compiles, or build packages for
 different release.
 
 -- 
 Pav Lucistnik <pav@oook.cz>
               <pav@FreeBSD.org>
 
 In fact, the GAH is a very powerful and secretive organization whose
 single weakness is its lack of existance.
   - rec.games.roguelike.angband
State-Changed-From-To: feedback->open 
State-Changed-By: pav 
State-Changed-When: Wed Apr 4 20:20:12 UTC 2007 
State-Changed-Why:  
Submitter have a working patch now 


Responsible-Changed-From-To: mnag->lwhsu 
Responsible-Changed-By: pav 
Responsible-Changed-When: Wed Apr 4 20:20:12 UTC 2007 
Responsible-Changed-Why:  
Submitter is now committer; maintainer timeout was declared on this PR, anyway. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=109312 
State-Changed-From-To: open->closed 
State-Changed-By: lwhsu 
State-Changed-When: Thu Apr 5 02:36:03 UTC 2007 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=109312 
>Unformatted:
