Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 May 2009 23:57:51 -0800 (AKDT)
From:      Mel <mel@rachie.is-a-geek.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        MAINTAINER <ahze@FreeBSD.org>
Subject:   ports/134572: [patch] print/py-cups: Fix package when PYTHON_VERSION != python2.5
Message-ID:  <20090516075751.61C84A83197@packages-7.rachie.is-a-geek.net>
Resent-Message-ID: <200905160820.n4G8K1mu057736@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090516075751.61C84A83197>