From patchwork Sun Aug 5 19:48:42 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [v2, 14/28] rpm: use ${localstatedir} and ${libdir} instead of /var and /usr/lib Date: Sun, 05 Aug 2012 19:48:42 -0000 From: Javier Martinez Canillas X-Patchwork-Id: 33931 Message-Id: <1344196136-7643-15-git-send-email-javier@dowhile0.org> To: Richard Purdie Cc: openembedded-core@lists.openembedded.org It is considered good practice to use the build system provided variables instead of directly specify hardcoded paths. Signed-off-by: Javier Martinez Canillas --- meta/recipes-devtools/rpm/rpm_5.4.9.bb | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/meta/recipes-devtools/rpm/rpm_5.4.9.bb b/meta/recipes-devtools/rpm/rpm_5.4.9.bb index e276cc3..60541f4 100644 --- a/meta/recipes-devtools/rpm/rpm_5.4.9.bb +++ b/meta/recipes-devtools/rpm/rpm_5.4.9.bb @@ -43,7 +43,7 @@ LICENSE = "LGPLv2.1" LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1" DEPENDS = "libpcre attr acl popt ossp-uuid file" -PR = "r46" +PR = "r47" # 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... @@ -421,8 +421,8 @@ do_install_append() { rm -f ${D}/${libdir}/rpm/bin/dbconvert rm -f ${D}/${libdir}/rpm/bin/pom2spec - rm -rf ${D}/var/lib/wdj ${D}/var/cache/wdj - rm -f ${D}/usr/lib/rpm/bin/api-sanity-checker.pl + rm -rf ${D}${localstatedir}/lib/wdj ${D}${localstatedir}/cache/wdj + rm -f ${D}${libdir}/rpm/bin/api-sanity-checker.pl } do_install_append_virtclass-native() {