diff options
author | Christopher Larson <chris_larson@mentor.com> | 2012-12-28 22:19:24 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-01-07 11:09:41 +0000 |
commit | 925ffcbf1ef17e40f0734948df938563d886531b (patch) | |
tree | f7e19754ef458f42480307e847035748584b3a13 | |
parent | 7f8eedaa86c64ec67ece84cf636b7001b95db686 (diff) | |
download | poky-925ffcbf1ef17e40f0734948df938563d886531b.tar.gz |
opkg-native: obey virtual/update-alternatives-native
(From OE-Core rev: 1f9d979ca60eca2277f53f24dc59f9ab18e81195)
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-devtools/opkg/opkg.inc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/meta/recipes-devtools/opkg/opkg.inc b/meta/recipes-devtools/opkg/opkg.inc index f157188947..47458ff350 100644 --- a/meta/recipes-devtools/opkg/opkg.inc +++ b/meta/recipes-devtools/opkg/opkg.inc | |||
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ | |||
9 | file://src/opkg-cl.c;beginline=1;endline=20;md5=321f658c3f6b6c832e25c8850b5dffba" | 9 | file://src/opkg-cl.c;beginline=1;endline=20;md5=321f658c3f6b6c832e25c8850b5dffba" |
10 | 10 | ||
11 | PE = "1" | 11 | PE = "1" |
12 | INC_PR = "r11" | 12 | INC_PR = "r12" |
13 | 13 | ||
14 | # Werror gives all kinds bounds issuses with gcc 4.3.3 | 14 | # Werror gives all kinds bounds issuses with gcc 4.3.3 |
15 | do_configure_prepend() { | 15 | do_configure_prepend() { |
@@ -43,11 +43,17 @@ FILES_libopkg-dev = "${libdir}/*.la ${libdir}/*.so" | |||
43 | FILES_libopkg-staticdev = "${libdir}/*.a" | 43 | FILES_libopkg-staticdev = "${libdir}/*.a" |
44 | FILES_libopkg = "${libdir}/*.so.* ${localstatedir}/lib/opkg/" | 44 | FILES_libopkg = "${libdir}/*.so.* ${localstatedir}/lib/opkg/" |
45 | 45 | ||
46 | # We need to create the lock directory | ||
47 | do_install_append() { | 46 | do_install_append() { |
47 | # We need to create the lock directory | ||
48 | install -d ${D}${localstatedir}/lib/opkg | 48 | install -d ${D}${localstatedir}/lib/opkg |
49 | } | 49 | } |
50 | 50 | ||
51 | do_install_append_class-native() { | ||
52 | if [ "${PREFERRED_PROVIDER_virtual/update-alternatives-native}" != "${PN}" ]; then | ||
53 | rm ${D}${bindir}/update-alternatives | ||
54 | fi | ||
55 | } | ||
56 | |||
51 | pkg_postinst_${PN} () { | 57 | pkg_postinst_${PN} () { |
52 | #!/bin/sh | 58 | #!/bin/sh |
53 | if [ "x$D" != "x" ]; then | 59 | if [ "x$D" != "x" ]; then |