Patchwork [3/7] rpm_5.4.0: Fix configuration issue with native/nativesdk

login
register
mail settings
Submitter Mark Hatle
Date Dec. 23, 2011, 1:01 a.m.
Message ID <e75de34d199cfdd8d5effe444b5f7f44e3912145.1324601996.git.mark.hatle@windriver.com>
Download mbox | patch
Permalink /patch/17537/
State Accepted
Commit 528a2ec8ab53d652d74c51334a40905f009dfd91
Headers show

Comments

Mark Hatle - Dec. 23, 2011, 1:01 a.m.
RPM's configuration assumes if the prefix isn't /usr or /usr/local
that you really want the DB in $prefix/var -- we want it in
$localstatedir.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
---
 meta/recipes-devtools/rpm/rpm_5.4.0.bb |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Patch

diff --git a/meta/recipes-devtools/rpm/rpm_5.4.0.bb b/meta/recipes-devtools/rpm/rpm_5.4.0.bb
index 2c0c076..122d3a9 100644
--- a/meta/recipes-devtools/rpm/rpm_5.4.0.bb
+++ b/meta/recipes-devtools/rpm/rpm_5.4.0.bb
@@ -45,7 +45,7 @@  LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1"
 DEPENDS = "bzip2 zlib db openssl elfutils expat libpcre attr acl popt ${extrarpmdeps}"
 extrarpmdeps = "python perl"
 extrarpmdeps_virtclass-native = "file-native"
-PR = "r26"
+PR = "r27"
 
 # rpm2cpio is a shell script, which is part of the rpm src.rpm.  It is needed
 # in order to extract the distribution SRPM into a format we can extract...
@@ -347,6 +347,7 @@  do_configure() {
 
 	./autogen.sh
 
+	export varprefix=${localstatedir}
 	oe_runconf
 }