Subject: make: RE substitution error: Invalid preceding regular expression
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 11/13/2003 08:15:56
I am trying to package a genealogy program called gramps. (The Makefile is
below my signature.)

===> Required package py23-xml-*: NOT found
===> Verifying reinstall for ../../textproc/pyxml
bmake: RE substitution error: Invalid preceding regular expression
bmake: RE substitution error: Invalid preceding regular expression
bmake: RE substitution error: Invalid preceding regular expression
bmake: RE substitution error: Invalid preceding regular expression
bmake: RE substitution error: Invalid preceding regular expression
bmake: RE substitution error: Invalid preceding regular expression
bmake: RE substitution error: Invalid preceding regular expression
bmake: RE substitution error: Invalid preceding regular expression
bmake:
"../../lang/python/../../lang/python/../../lang/python/../../lang/python/pyversion.mk"
line 174: Unassociated shell command "error: no valid Python version"
bmake:
"../../lang/python/../../lang/python/../../lang/python/../../lang/python/pyversion.mk"
line 181: Could not find /buildlink2.mk
bmake: Fatal errors encountered -- cannot continue

bmake: stopped in /usr/pkgsrc/textproc/pyxml

-=-=-=-

Or I get the same errors above when I have the buildlink for py-gnome2
before pyxml:
bmake: stopped in /usr/pkgsrc/x11/py-gnome2

Building in pyxml and in py-gnome works fine.

I don't understand why the pyversion.mk doesn't set the PYPKGSRCDIR (used
on line 181) and why it doesn't have any _PYTHON_VERSION defined (line
174).

Because they are set:

reed@antelope:/usr/pkgsrc/new/gramps$ bmake show-var VARNAME=PYPKGSRCDIR
../../lang/python23-pth
reed@antelope:/usr/pkgsrc/new/gramps$ bmake show-var VARNAME=_PYTHON_VERSION
23pth

Also, using PKG_DEBUG_LEVEL=5 doesn't tell where the regular expression
problem is. And "make -d A" doesn't show any RE error.

I looked at various packages using python, but don't see any documentation
(for things like PYDISTUTILSPKG= yes). Packages.txt doesn't seem to
discuss python.

Any ideas?

   Jeremy C. Reed
   http://www.reedmedia.net/

# $NetBSD$
#

DISTNAME=		gramps-0.9.5
CATEGORIES=		new
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=gramps/}

MAINTAINER=	reed@reedmedia.net
HOMEPAGE=	http://gramps.sourceforge.net/
COMMENT=	Genealogical Research and Analysis Management Programming System

USE_BUILDLINK2=		yes
USE_PKGLOCALEDIR=	yes
GNU_CONFIGURE=		yes

.include "../../textproc/pyxml/buildlink2.mk"
.include "../../x11/py-gnome2/buildlink2.mk"
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"