summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/update-alternatives
diff options
context:
space:
mode:
authorDexuan Cui <dexuan.cui@intel.com>2011-09-19 16:00:38 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-21 13:42:49 +0100
commit23773a899be5dcb0e08762b408791c01c48d22cf (patch)
treee4cda2f85a28d705a049abd73d46b6412aedc9c3 /meta/recipes-devtools/update-alternatives
parentf45ef8d9fa0277a919b69e95442fd44db741db0a (diff)
downloadpoky-23773a899be5dcb0e08762b408791c01c48d22cf.tar.gz
deb packages support: switch from /var/dpkg to /var/lib/dpkg
[YOCTO #1086] The pach was backported from OE: http://git.openembedded.net/cgit.cgi/openembedded/commit/?id=41e0fbf792037f249d1b8d283b3de81718887c9f (From OE-Core rev: d1e6f49a6473df3c626100ba01b27485f735c33b) Signed-off-by: Dexuan Cui <dexuan.cui@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/update-alternatives')
-rw-r--r--meta/recipes-devtools/update-alternatives/update-alternatives-dpkg.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/recipes-devtools/update-alternatives/update-alternatives-dpkg.inc b/meta/recipes-devtools/update-alternatives/update-alternatives-dpkg.inc
index f7f9ae979d..c881ae0219 100644
--- a/meta/recipes-devtools/update-alternatives/update-alternatives-dpkg.inc
+++ b/meta/recipes-devtools/update-alternatives/update-alternatives-dpkg.inc
@@ -8,7 +8,7 @@ SECTION = "base"
8SRC_URI = "${DEBIAN_MIRROR}/main/d/dpkg/dpkg_${PV}.tar.bz2" 8SRC_URI = "${DEBIAN_MIRROR}/main/d/dpkg/dpkg_${PV}.tar.bz2"
9S = "${WORKDIR}/dpkg-${PV}" 9S = "${WORKDIR}/dpkg-${PV}"
10PACKAGE_ARCH = "all" 10PACKAGE_ARCH = "all"
11INC_PR = "r2" 11INC_PR = "r3"
12 12
13inherit gettext 13inherit gettext
14 14
@@ -20,7 +20,7 @@ do_patch () {
20 s/^.*$/$D=$ENV{"D"} || ""\;/; 20 s/^.*$/$D=$ENV{"D"} || ""\;/;
21 p; 21 p;
22 x; 22 x;
23 s,^\$admindir=.*staging.*$,$admindir="$D${localstatedir}/dpkg"\;,; 23 s,^\$admindir=.*staging.*$,$admindir="$D${localstatedir}/lib/dpkg"\;,;
24 }; 24 };
25 s,^\$altdir=.*$,$altdir="$D${sysconfdir}/alternatives"\;,; 25 s,^\$altdir=.*$,$altdir="$D${sysconfdir}/alternatives"\;,;
26 p;' > ${S}/scripts/update-alternatives 26 p;' > ${S}/scripts/update-alternatives
@@ -28,7 +28,7 @@ do_patch () {
28 28
29do_install () { 29do_install () {
30 install -d ${D}${sbindir} \ 30 install -d ${D}${sbindir} \
31 ${D}${localstatedir}/dpkg/alternatives \ 31 ${D}${localstatedir}/lib/dpkg/alternatives \
32 ${D}${sysconfdir}/alternatives 32 ${D}${sysconfdir}/alternatives
33 33
34 install -m 0755 scripts/update-alternatives ${D}${sbindir}/update-alternatives 34 install -m 0755 scripts/update-alternatives ${D}${sbindir}/update-alternatives