ports/149498: [PATCH] archivers/rpm4: config issue
Anders F Björklund
afb at rpm5.org
Tue Aug 10 13:00:12 UTC 2010
>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:
More information about the freebsd-ports-bugs
mailing list