summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2015-04-28 10:49:34 +0800
committerChen Qi <Qi.Chen@windriver.com>2015-04-28 14:46:29 +0800
commit1cbf2ad83fa3a65693707b98922fc10187f0a16b (patch)
tree4e2c162725f545b007576574fac6c64eb61096a8
parenta9eededcb33b2ee41a061298610126436dfc2c11 (diff)
downloadopenembedded-core-contrib-ChenQi/nativesdk-pigz-alternative.tar.gz
openembedded-core-contrib-ChenQi/nativesdk-pigz-alternative.tar.bz2
openembedded-core-contrib-ChenQi/nativesdk-pigz-alternative.zip
pigz: set ALTERNATIVE for nativesdk package to emptyChenQi/nativesdk-pigz-alternative
Set ALTERNATIVE for nativesdk package to empty to avoid warnings like below. WARNING: pigz: NOT adding alternative provide xxx/bin/gunzip: xxx/bin/pigz does not exist Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
-rw-r--r--meta/recipes-extended/pigz/pigz.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-extended/pigz/pigz.inc b/meta/recipes-extended/pigz/pigz.inc
index c271f70159..6a6a553714 100644
--- a/meta/recipes-extended/pigz/pigz.inc
+++ b/meta/recipes-extended/pigz/pigz.inc
@@ -15,6 +15,7 @@ DEPENDS = "zlib"
inherit update-alternatives
+# do_install for target
do_install_class-target() {
# Install files into /bin (FHS), which is typical place for gzip
install -d ${D}${base_bindir}
@@ -23,6 +24,7 @@ do_install_class-target() {
ln -nsf pigz ${D}${base_bindir}/pigzcat
}
+# do_install for native and nativesdk package
do_install() {
install -d ${D}${bindir}
install ${B}/pigz ${D}${bindir}/gzip
@@ -32,6 +34,7 @@ do_install() {
ALTERNATIVE_PRIORITY = "80"
ALTERNATIVE_${PN} = "gunzip gzip zcat"
+ALTERNATIVE_${PN}_class-nativesdk = ""
ALTERNATIVE_LINK_NAME[gunzip] = "${base_bindir}/gunzip"
ALTERNATIVE_LINK_NAME[gzip] = "${base_bindir}/gzip"
ALTERNATIVE_LINK_NAME[zcat] = "${base_bindir}/zcat"