summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/update-alternatives/update-alternatives-dpkg.inc
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-14 17:43:45 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-15 12:05:26 +0000
commit6c508124a1aa7a963f7c5cc627ef31b51927132c (patch)
tree08eeb6e44a1bbba1fe93f11ce06d1fa38687f8f1 /meta/recipes-devtools/update-alternatives/update-alternatives-dpkg.inc
parentd3c950e62254d5f1be0d591d858bde9a37dfabf3 (diff)
downloadpoky-6c508124a1aa7a963f7c5cc627ef31b51927132c.tar.gz
dpkg/update-alternatives: Fix dpkg version of update-alternatives to be usable
The version of dpkg the updates-alternatives-dpkg recipe pointed at no longer used a perl script but a compiled binary. This meant the "all" architecture field was invalid, as as the sed operation during do_patch. All things considered the separate recipe was pretty pointless. This patch moves update-alternatives back to being built as part of the dpkg recipe. It also moves various functionalty to the .inc file which it belongs and fixes building and packaging of the dpkg perl modules. (From OE-Core rev: fad496c759066d53bebf9b8cebc63e6478c91d19) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/update-alternatives/update-alternatives-dpkg.inc')
-rw-r--r--meta/recipes-devtools/update-alternatives/update-alternatives-dpkg.inc43
1 files changed, 0 insertions, 43 deletions
diff --git a/meta/recipes-devtools/update-alternatives/update-alternatives-dpkg.inc b/meta/recipes-devtools/update-alternatives/update-alternatives-dpkg.inc
deleted file mode 100644
index c881ae0219..0000000000
--- a/meta/recipes-devtools/update-alternatives/update-alternatives-dpkg.inc
+++ /dev/null
@@ -1,43 +0,0 @@
1SUMMARY = "Manage alternatives"
2DESCRIPTION = "update-alternatives creates, removes, maintains and displays information about the symbolic links \
3comprising the Debian alternatives system. The Debian alternatives system attempts solve the problem of several \
4programs fulfilling the same or similar functions and how they can be installed onto a single system at the same \
5time."
6LICENSE = "GPL"
7SECTION = "base"
8SRC_URI = "${DEBIAN_MIRROR}/main/d/dpkg/dpkg_${PV}.tar.bz2"
9S = "${WORKDIR}/dpkg-${PV}"
10PACKAGE_ARCH = "all"
11INC_PR = "r3"
12
13inherit gettext
14
15do_patch () {
16 cat ${S}/scripts/update-alternatives.pl | \
17 sed -n -e '
18 /^\$admindir=.*staging/{
19 x
20 s/^.*$/$D=$ENV{"D"} || ""\;/;
21 p;
22 x;
23 s,^\$admindir=.*staging.*$,$admindir="$D${localstatedir}/lib/dpkg"\;,;
24 };
25 s,^\$altdir=.*$,$altdir="$D${sysconfdir}/alternatives"\;,;
26 p;' > ${S}/scripts/update-alternatives
27}
28
29do_install () {
30 install -d ${D}${sbindir} \
31 ${D}${localstatedir}/lib/dpkg/alternatives \
32 ${D}${sysconfdir}/alternatives
33
34 install -m 0755 scripts/update-alternatives ${D}${sbindir}/update-alternatives
35}
36
37PROVIDES += "virtual/update-alternatives"
38RPROVIDES_${PN} += "update-alternatives"
39EXTRA_RDEPENDS = "perl dpkg"
40EXTRA_RDEPENDS_virtclass-native = ""
41RDEPENDS_${PN} += "${EXTRA_RDEPENDS}"
42
43BBCLASSEXTEND = "native"