pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: zope and python24



On Wed, 18 Feb 2009 14:20:47 +0900, Sarton O'Brien 
<bsd-xen%roguewrt.org@localhost> wrote:

> ERROR: [depends.mk] A package matching ``py24-expat>=0'' should
> ERROR:     be installed, but one cannot be found.  Perhaps there is a
> ERROR:     stale work directory for ../../textproc/py-expat?
>
> When py25-expat is installed.

Following patch should fix the issue:

Index: extension.mk
===================================================================
RCS file: /cvsroot/pkgsrc/lang/python/extension.mk,v
retrieving revision 1.21
diff -u -r1.21 extension.mk
--- extension.mk        23 Dec 2008 15:39:07 -0000      1.21
+++ extension.mk        18 Feb 2009 07:31:58 -0000
@@ -2,9 +2,9 @@

 # derive a python version from the package name if possible
 # optionally handled quoted package names
-.if defined(PKGNAME_REQD) && !empty(${PKGNAME_REQD:Mpy([0-9][0-9])-.*})
+.if defined(PKGNAME_REQD) && (!empty(PKGNAME_REQD:Mpy[0-9][0-9]-*) || 
!empty(PKGNAME_REQD:M*-py[0-9][0-9]-*))
 PYTHON_VERSION_REQD?= ${PKGNAME_REQD:C/(^.*-|^)py([0-9][0-9])-.*/\2/}
-.elif defined(PKGNAME_OLD) && !empty(${PKGNAME_OLD:Mpy([0-9][0-9])-.*})
+.elif defined(PKGNAME_OLD) && (!empty(PKGNAME_OLD:Mpy[0-9][0-9]-*) || 
!empty(PKGNAME_OLD:M*-py[0-9][0-9]-*))
 PYTHON_VERSION_REQD?= ${PKGNAME_OLD:C/(^.*-|^)py([0-9][0-9])-.*/\2/}
 .endif


-- 
"Of course I love NetBSD":-)
OBATA Akio / obache%NetBSD.org@localhost


Home | Main Index | Thread Index | Old Index