diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2012-09-29 19:19:13 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-10-02 11:40:50 +0100 |
commit | cf7cff7d2306f83847609d369477984dc8e31cdd (patch) | |
tree | e694f89e2a193aedefc61d56850e1ded766101e6 /meta/recipes-extended/pigz | |
parent | eab49954002c26bab4bffd344c1fd82d8f524f6e (diff) | |
download | poky-cf7cff7d2306f83847609d369477984dc8e31cdd.tar.gz |
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'.
(From OE-Core rev: acc988272b4e74a9ad1e6da5af5b2d208584197b)
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/pigz')
-rw-r--r-- | meta/recipes-extended/pigz/pigz.inc | 4 |
1 files changed, 3 insertions, 1 deletions
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/" | |||
7 | SECTION = "console/utils" | 7 | SECTION = "console/utils" |
8 | LICENSE = "Zlib" | 8 | LICENSE = "Zlib" |
9 | 9 | ||
10 | PR = "r1" | ||
11 | |||
10 | SRC_URI = "http://zlib.net/pigz/pigz-${PV}.tar.gz \ | 12 | SRC_URI = "http://zlib.net/pigz/pigz-${PV}.tar.gz \ |
11 | file://ldflags.patch" | 13 | file://ldflags.patch" |
12 | 14 | ||
@@ -15,7 +17,7 @@ PROVIDES_virtclass-native += "gzip-native" | |||
15 | DEPENDS = "zlib" | 17 | DEPENDS = "zlib" |
16 | 18 | ||
17 | do_install () { | 19 | do_install () { |
18 | if [ "${PN}" = "${BPN}" ] ; then | 20 | if [ "${CLASSOVERRIDE}" = "class-target" ] ; then |
19 | # Install files into /bin (FHS), which is typical place for gzip | 21 | # Install files into /bin (FHS), which is typical place for gzip |
20 | install -d ${D}${base_bindir} | 22 | install -d ${D}${base_bindir} |
21 | install ${B}/pigz ${D}${base_bindir}/gzip | 23 | install ${B}/pigz ${D}${base_bindir}/gzip |