Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Aug 2010 12:55:12 GMT
From:      Anders F Björklund <afb@rpm5.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/149498: [PATCH] archivers/rpm4: config issue
Message-ID:  <201008101255.o7ACtCwJ085723@www.freebsd.org>
Resent-Message-ID: <201008101300.o7AD0BI7015875@freefall.freebsd.org>

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

>Number:         149498
>Category:       ports
>Synopsis:       [PATCH] archivers/rpm4: config issue
>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:   Tue Aug 10 13:00:11 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Anders F Björklund
>Release:        7.3
>Organization:
>Environment:
>Description:
RPM 4.8.1 uses a strange default for the %{_var} rpm macro...
The bug was fixed in RPM 5.0.0, variables need to be expanded.

>How-To-Repeat:
$ rpm -qa
error: cannot open Packages database in /${prefix}/var/lib/rpm

>Fix:
./configure --localstatedir=/var
Will use /var/lib/rpm for %{_dbpath} like pkg-install expects.


Patch attached with submission follows:

--- Makefile.orig	2010-07-06 18:47:50.000000000 +0200
+++ Makefile	2010-08-10 13:58:31.000000000 +0200
@@ -6,6 +6,7 @@
 
 PORTNAME=	rpm
 PORTVERSION=	4.8.1
+PORTREVISION=	1
 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/
@@ -60,6 +61,7 @@
 CONFIGURE_ARGS+=--without-db \
 		--with-popt-prefix="${LOCALBASE}" \
 		--sysconfdir=${PREFIX}/etc \
+		--localstatedir=/var \
 		--without-javaglue
 
 MANLANG=	"" ja fr pl ru ko sk


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



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