]> code.ossystems Code Review - openembedded-core.git/commitdiff
package_deb, apt.conf: fix apt failure in do_rootfs()
authorLaurentiu Palcu <laurentiu.palcu@intel.com>
Mon, 23 Sep 2013 09:31:45 +0000 (09:31 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 24 Sep 2013 10:55:56 +0000 (11:55 +0100)
The changes in this commit, dc5f6c3898555b59f16bf809ae4c5418656e6ac9,
moved apt config directory from native SYSROOT to WORKDIR.
Unfortunately, Dir::Etc in apt.conf was not changed accordingly and
sources.list file could not be found during do_rootfs().

This commit fixes this issue.

[YOCTO #5241]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package_deb.bbclass
meta/recipes-devtools/apt/files/apt.conf

index 765e89452651940cbda3ab3faf18d4b67bf8cc26..6a8e080138bbbe5ebf2d27c69971db18c3cf8ec9 100644 (file)
@@ -100,6 +100,7 @@ package_install_internal_deb () {
        cat "${STAGING_ETCDIR_NATIVE}/apt/apt.conf.sample" \
                | sed -e "s#Architecture \".*\";#Architecture \"${dpkg_arch}\";#" \
                | sed -e "s:#ROOTFS#:${target_rootfs}:g" \
+               | sed -e "s:#APTCONF#:${APTCONF_TARGET}/apt:g" \
                > "${APTCONF_TARGET}/apt/apt.conf"
 
        export APT_CONFIG="${APTCONF_TARGET}/apt/apt.conf"
index 5c20ea43e621f7b53a733c7c365cc6256e150704..50586501b063615ed462a42b21b6d1bfea4c3624 100644 (file)
@@ -21,7 +21,7 @@ Dir "${STAGING_DIR_NATIVE}/"
       apt-get "apt-get";
       apt-cache "apt-cache";
    };
-   Etc "etc/apt/"
+   Etc "#APTCONF#"
    {
       Preferences "preferences";
    };