]> code.ossystems Code Review - openembedded-core.git/commitdiff
opkg: Fix error when recompiled
authorGary Thomas <gary@mlbassoc.com>
Thu, 5 Mar 2015 15:48:51 +0000 (08:48 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 9 Mar 2015 16:05:07 +0000 (16:05 +0000)
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".

Signed-off-by: Gary Thomas <gary@mlbassoc.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/opkg/opkg_0.2.4.bb

index 8455eac78dc7f5a7e30c565cdf10e7648b517e7e..447f3f6cc255358805ea758152d0dc46fc39f8a5 100644 (file)
@@ -47,13 +47,10 @@ do_configure_prepend() {
        sed -i -e s:-Werror::g ${S}/libopkg/Makefile.am
 }
 
-do_compile_append () {
-       echo "option lists_dir ${OPKGLIBDIR}/opkg" >>${WORKDIR}/opkg.conf
-}
-
 do_install_append () {
        install -d ${D}${sysconfdir}/opkg
        install -m 0644 ${WORKDIR}/opkg.conf ${D}${sysconfdir}/opkg/opkg.conf
+       echo "option lists_dir ${OPKGLIBDIR}/opkg" >>${D}${sysconfdir}/opkg/opkg.conf
 
        # We need to create the lock directory
        install -d ${D}${OPKGLIBDIR}/opkg