From owner-freebsd-ports-bugs@FreeBSD.ORG Sat May 16 08:20:01 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C4E0A1065676 for ; Sat, 16 May 2009 08:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 85A618FC18 for ; Sat, 16 May 2009 08:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n4G8K13T057737 for ; Sat, 16 May 2009 08:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n4G8K1mu057736; Sat, 16 May 2009 08:20:01 GMT (envelope-from gnats) Resent-Date: Sat, 16 May 2009 08:20:01 GMT Resent-Message-Id: <200905160820.n4G8K1mu057736@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Mel Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5B9BD1065670; Sat, 16 May 2009 08:15:16 +0000 (UTC) (envelope-from mdev@packages-7.rachie.is-a-geek.net) Received: from mailhub.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 2AD708FC0A; Sat, 16 May 2009 08:15:15 +0000 (UTC) (envelope-from mdev@packages-7.rachie.is-a-geek.net) Received: from packages-7.rachie.is-a-geek.net (packages-7.lan.rachie.is-a-geek.net [192.168.2.104]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id C3A887E837; Fri, 15 May 2009 23:57:51 -0800 (AKDT) Received: by packages-7.rachie.is-a-geek.net (Postfix, from userid 1001) id 61C84A83197; Fri, 15 May 2009 23:57:51 -0800 (AKDT) Message-Id: <20090516075751.61C84A83197@packages-7.rachie.is-a-geek.net> Date: Fri, 15 May 2009 23:57:51 -0800 (AKDT) From: Mel To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: MAINTAINER Subject: ports/134572: [patch] print/py-cups: Fix package when PYTHON_VERSION != python2.5 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 May 2009 08:20:02 -0000 >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 --- patch-py-cups-Makefile ends here --- >Release-Note: >Audit-Trail: >Unformatted: