Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Aug 2011 13:31:53 GMT
From:      Oliver Heesakkers <dev2@heesakkers.info>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/160182: [maintainer patch] graphics/zbar. Fix pkg-plist, restrict to python 2.5-2.7.
Message-ID:  <201108251331.p7PDVrVf080301@red.freebsd.org>
Resent-Message-ID: <201108251340.p7PDe9wd097273@freefall.freebsd.org>

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

>Number:         160182
>Category:       ports
>Synopsis:       [maintainer patch] graphics/zbar. Fix pkg-plist, restrict to python 2.5-2.7.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 25 13:40:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Oliver Heesakkers
>Release:        8.2-STABLE amd64
>Organization:
>Environment:
>Description:
This patch improves the way different versions of python are handled. The fix in pkg-plist speaks for itself I think. Further I found that configure will fail when trying to use python 3.2, so I've restricted the port to python 2.5-2.7.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN zbar.orig/Makefile zbar/Makefile
--- zbar.orig/Makefile	2010-12-14 15:39:50.000000000 +0100
+++ zbar/Makefile	2011-08-25 15:23:11.000000000 +0200
@@ -65,7 +65,7 @@
 .endif
 
 .if defined(WITH_PYTHON)
-USE_PYTHON=	any
+USE_PYTHON=	2.5-2.7
 CONFIGURE_ARGS+=	--with-python=yes
 PLIST_SUB+=	PYTHON=""
 .else
diff -ruN zbar.orig/pkg-plist zbar/pkg-plist
--- zbar.orig/pkg-plist	2010-12-14 15:39:50.000000000 +0100
+++ zbar/pkg-plist	2011-08-25 02:03:15.000000000 +0200
@@ -39,7 +39,7 @@
 %%PORTDOCS%%%%DOCSDIR%%/TODO
 @dirrmtry share/zbar
 %%PORTDOCS%%@dirrm %%DOCSDIR%%
-@dirrmtry lib/python2.6/site-packages
-@dirrmtry lib/python2.6
+@dirrmtry %%PYTHON_SITELIBDIR%%
+@dirrmtry lib/%%PYTHON_VERSION%%
 @dirrmtry lib/pkgconfig
 @dirrm include/zbar


>Release-Note:
>Audit-Trail:
>Unformatted:



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