]> code.ossystems Code Review - openembedded-core.git/commitdiff
opkg-native: obey virtual/update-alternatives-native
authorChristopher Larson <chris_larson@mentor.com>
Sat, 29 Dec 2012 05:19:24 +0000 (22:19 -0700)
committerSaul Wold <sgw@linux.intel.com>
Sat, 5 Jan 2013 06:12:05 +0000 (22:12 -0800)
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-devtools/opkg/opkg.inc

index f1571889474907ad9e45ebf136c22eeb125e105c..47458ff350af68ef5a75003b94cc5b2b58c51387 100644 (file)
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
                     file://src/opkg-cl.c;beginline=1;endline=20;md5=321f658c3f6b6c832e25c8850b5dffba"
 
 PE = "1"
-INC_PR = "r11"
+INC_PR = "r12"
 
 # Werror gives all kinds bounds issuses with gcc 4.3.3
 do_configure_prepend() {
@@ -43,11 +43,17 @@ FILES_libopkg-dev = "${libdir}/*.la ${libdir}/*.so"
 FILES_libopkg-staticdev = "${libdir}/*.a"
 FILES_libopkg = "${libdir}/*.so.* ${localstatedir}/lib/opkg/"
 
-# We need to create the lock directory
 do_install_append() {
+       # We need to create the lock directory
        install -d ${D}${localstatedir}/lib/opkg
 }
 
+do_install_append_class-native() {
+       if [ "${PREFERRED_PROVIDER_virtual/update-alternatives-native}" != "${PN}" ]; then
+               rm ${D}${bindir}/update-alternatives
+       fi
+}
+
 pkg_postinst_${PN} () {
 #!/bin/sh
 if [ "x$D" != "x" ]; then