Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Aug 2010 18:12:04 GMT
From:      "afb@rpm5.org" <Anders.F.Björklund@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/149886: [PATCH] archivers/rpm4: missing python
Message-ID:  <201008221812.o7MIC4Vx050397@www.freebsd.org>
Resent-Message-ID: <201008221820.o7MIK2n3061753@freefall.freebsd.org>

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

>Number:         149886
>Category:       ports
>Synopsis:       [PATCH] archivers/rpm4: missing python
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 22 18:20:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     afb@rpm5.org
>Release:        7.3
>Organization:
>Environment:
>Description:
The configure param for python was changed, old one doesn't work.

Also, the python module lines are missing from the new pkg-plist.


>How-To-Repeat:
$ python

>Fix:


Patch attached with submission follows:

--- Makefile.orig	2010-08-14 17:03:12.000000000 +0200
+++ Makefile	2010-08-22 14:13:52.000000000 +0200
@@ -6,7 +6,7 @@
 
 PORTNAME=	rpm
 PORTVERSION=	4.8.1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	archivers
 MASTER_SITES=	http://rpm.org/releases/rpm-${PORTVERSION:R}.x/ \
 		ftp://ftp.mirrorservice.org/sites/ftp.rpm.org/pub/rpm/dist/rpm-${PORTVERSION:E}.x/
@@ -35,13 +35,13 @@
 CONFIGURE_ARGS+=--with-external-db
 
 .ifdef	WITH_PYTHON
-CONFIGURE_ARGS+=--with-python=auto
-USE_PYTHON=	yes
+CONFIGURE_ARGS+=--enable-python
+USE_PYTHON=	2.6+
 PLIST_SUB+=	PYTHON=""
 CPPFLAGS+=	-I${PYTHON_INCLUDEDIR}
 LDFLAGS+=	-L${PYTHON_LIBDIR}
 .else
-CONFIGURE_ARGS+=--without-python
+CONFIGURE_ARGS+=--disable-python
 PLIST_SUB+=	PYTHON="@comment "
 .endif
 
--- pkg-plist.orig	2010-07-02 13:47:26.000000000 +0200
+++ pkg-plist	2010-08-22 13:59:17.000000000 +0200
@@ -151,3 +151,12 @@
 @dirrmtry src
 %%NLS%%@dirrmtry share/locale/sr@latin/LC_MESSAGES
 %%NLS%%@dirrmtry share/locale/sr@latin
+%%PYTHON%%%%PYTHON_SITELIBDIR%%/rpm/__init__.py
+%%PYTHON%%%%PYTHON_SITELIBDIR%%/rpm/_rpmmodule.a
+%%PYTHON%%%%PYTHON_SITELIBDIR%%/rpm/_rpmmodule.la
+%%PYTHON%%%%PYTHON_SITELIBDIR%%/rpm/_rpmmodule.so
+%%PYTHON%%%%PYTHON_SITELIBDIR%%/rpm/_rpmbmodule.a
+%%PYTHON%%%%PYTHON_SITELIBDIR%%/rpm/_rpmbmodule.la
+%%PYTHON%%%%PYTHON_SITELIBDIR%%/rpm/_rpmbmodule.so
+%%PYTHON%%%%PYTHON_SITELIBDIR%%/rpm/transaction.py
+%%PYTHON%%@dirrm %%PYTHON_SITELIBDIR%%/rpm


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



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