]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
pigz: set ALTERNATIVE for nativesdk package to empty ChenQi/nativesdk-pigz-alternative
authorChen Qi <Qi.Chen@windriver.com>
Tue, 28 Apr 2015 02:49:34 +0000 (10:49 +0800)
committerChen Qi <Qi.Chen@windriver.com>
Tue, 28 Apr 2015 06:46:29 +0000 (14:46 +0800)
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>
meta/recipes-extended/pigz/pigz.inc

index c271f701593c60402b8790288273307fed5dd168..6a6a5537148310c4f320d720bccd8e2f385677d2 100644 (file)
@@ -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"