summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/opkg
diff options
context:
space:
mode:
authorGary Thomas <gary@mlbassoc.com>2015-03-05 08:48:51 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-03-10 10:47:49 +0000
commit9e95469916f8615e04adf4e450344d46ed72b3ed (patch)
treefb2df96dab5f110c68b1629f133af0970fcc6015 /meta/recipes-devtools/opkg
parentd5fb9aa9e77aed15cb0776665c2fb508c01bd16c (diff)
downloadpoky-9e95469916f8615e04adf4e450344d46ed72b3ed.tar.gz
opkg: Fix error when recompiled
If this package were ever recompiled, i.e. do_compile is rerun as a result of a compiler change, etc., the 'opkg.conf' file would be incorrectly updated, leading to an error: * opkg_conf_set_option: Duplicate option lists_dir, using first seen value "/var/lib/opkg". (From OE-Core rev: 40a4f83d3791658789da8559c554b93b50db81c0) Signed-off-by: Gary Thomas <gary@mlbassoc.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/opkg')
-rw-r--r--meta/recipes-devtools/opkg/opkg_0.2.4.bb5
1 files changed, 1 insertions, 4 deletions
diff --git a/meta/recipes-devtools/opkg/opkg_0.2.4.bb b/meta/recipes-devtools/opkg/opkg_0.2.4.bb
index 8455eac78d..447f3f6cc2 100644
--- a/meta/recipes-devtools/opkg/opkg_0.2.4.bb
+++ b/meta/recipes-devtools/opkg/opkg_0.2.4.bb
@@ -47,13 +47,10 @@ do_configure_prepend() {
47 sed -i -e s:-Werror::g ${S}/libopkg/Makefile.am 47 sed -i -e s:-Werror::g ${S}/libopkg/Makefile.am
48} 48}
49 49
50do_compile_append () {
51 echo "option lists_dir ${OPKGLIBDIR}/opkg" >>${WORKDIR}/opkg.conf
52}
53
54do_install_append () { 50do_install_append () {
55 install -d ${D}${sysconfdir}/opkg 51 install -d ${D}${sysconfdir}/opkg
56 install -m 0644 ${WORKDIR}/opkg.conf ${D}${sysconfdir}/opkg/opkg.conf 52 install -m 0644 ${WORKDIR}/opkg.conf ${D}${sysconfdir}/opkg/opkg.conf
53 echo "option lists_dir ${OPKGLIBDIR}/opkg" >>${D}${sysconfdir}/opkg/opkg.conf
57 54
58 # We need to create the lock directory 55 # We need to create the lock directory
59 install -d ${D}${OPKGLIBDIR}/opkg 56 install -d ${D}${OPKGLIBDIR}/opkg