ports/134572: [patch] print/py-cups: Fix package when PYTHON_VERSION != python2.5
Mel
mel at rachie.is-a-geek.net
Sat May 16 08:20:02 UTC 2009
>Number: 134572
>Category: ports
>Synopsis: [patch] print/py-cups: Fix package when PYTHON_VERSION != python2.5
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat May 16 08:20:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Mel
>Release: FreeBSD 7.1-STABLE i386
>Organization:
>Environment:
System: FreeBSD packages-7.rachie.is-a-geek.net 7.1-STABLE FreeBSD 7.1-STABLE #7: Sun Feb 8 17:45:44 AKST 2009 root at squish.rachie.is-a-geek.net:/data/obj/data/RELENG_7/src/sys/GENERIC-ICHSMB i386
>Description:
The info egg has a hardcoded version, which will fail to produce a package if
a version other then 2.5 is used.
>How-To-Repeat:
echo 'PYTHON_DEFAULT_VERSION=python2.6' >> /etc/make.conf
make -C /usr/ports/print/py-cups package
>Fix:
Idea stolen from bsd.python.mk:
--- patch-py-cups-Makefile begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/print/py-cups/Makefile,v
retrieving revision 1.12
diff -u -r1.12 Makefile
--- Makefile 25 Jan 2009 17:21:42 -0000 1.12
+++ Makefile 16 May 2009 07:27:43 -0000
@@ -24,7 +24,7 @@
CFLAGS+= -I${LOCALBASE}/include -DVERSION=\\\"${PORTVERSION}\\\"
LDFLAGS+= -L${LOCALBASE}/lib -liconv
MAKE_ENV= LDFLAGS="${LDFLAGS}"
-PYDISTUTILS_EGGINFO=${PORTNAME}-1.0-py2.5.egg-info
+PYDISTUTILS_EGGINFO=${PORTNAME}-1.0-${PYTHON_VERSION:S/thon//}.egg-info
PLIST_FILES= %%PYTHON_SITELIBDIR%%/cups.so
.include <bsd.port.mk>
--- patch-py-cups-Makefile ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list