From acc988272b4e74a9ad1e6da5af5b2d208584197b Mon Sep 17 00:00:00 2001 From: Mark Hatle Date: Sat, 29 Sep 2012 19:19:13 -0500 Subject: Cleanup: fix PN == BPN cases When building target packages, it used to be enought to check for PN == BPN, however with the multilib configurations, this can lead to subtle errors. Change instances of PN == BPN, to ${CLASSOVERRIDE} == 'class-target'. Signed-off-by: Mark Hatle Signed-off-by: Richard Purdie --- meta/recipes-extended/pigz/pigz.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'meta/recipes-extended/pigz/pigz.inc') diff --git a/meta/recipes-extended/pigz/pigz.inc b/meta/recipes-extended/pigz/pigz.inc index be37e8a317..3721c9786e 100644 --- a/meta/recipes-extended/pigz/pigz.inc +++ b/meta/recipes-extended/pigz/pigz.inc @@ -7,6 +7,8 @@ HOMEPAGE = "http://zlib.net/pigz/" SECTION = "console/utils" LICENSE = "Zlib" +PR = "r1" + SRC_URI = "http://zlib.net/pigz/pigz-${PV}.tar.gz \ file://ldflags.patch" @@ -15,7 +17,7 @@ PROVIDES_virtclass-native += "gzip-native" DEPENDS = "zlib" do_install () { - if [ "${PN}" = "${BPN}" ] ; then + if [ "${CLASSOVERRIDE}" = "class-target" ] ; then # Install files into /bin (FHS), which is typical place for gzip install -d ${D}${base_bindir} install ${B}/pigz ${D}${base_bindir}/gzip -- cgit 1.2.3-korg