summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/apt/apt-native.inc
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2020-05-31 17:52:51 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-06-04 13:27:31 +0100
commitcae9a6c9c8cc1991b8e68b0816fc2db22e3ae129 (patch)
tree64e897bae1d8e17be8a8cbc9cd369e6e813245d3 /meta/recipes-devtools/apt/apt-native.inc
parentfbb498abd98128a196d059175e3fec99eecee7dc (diff)
downloadpoky-cae9a6c9c8cc1991b8e68b0816fc2db22e3ae129.tar.gz
apt: update to 1.8.2.1
I took the opportunity to rewrite the recipe from scratch; there was just too much baggage in it. (From OE-Core rev: f058272de9cba188d96940c8c921cf31727fe4d1) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/apt/apt-native.inc')
-rw-r--r--meta/recipes-devtools/apt/apt-native.inc74
1 files changed, 0 insertions, 74 deletions
diff --git a/meta/recipes-devtools/apt/apt-native.inc b/meta/recipes-devtools/apt/apt-native.inc
deleted file mode 100644
index d826786329..0000000000
--- a/meta/recipes-devtools/apt/apt-native.inc
+++ /dev/null
@@ -1,74 +0,0 @@
1require apt.inc
2inherit native
3
4DEPENDS += "dpkg-native gettext-native db-native curl-native xz-native"
5PACKAGES = ""
6USE_NLS = "yes"
7
8SRC_URI += "file://db_linking_hack.patch \
9 file://0001-Revert-always-run-dpkg-configure-a-at-the-end-of-our.patch \
10"
11
12python do_install () {
13 bb.build.exec_func('do_install_base', d)
14 bb.build.exec_func('do_install_config', d)
15}
16
17python do_install_config () {
18 indir = os.path.dirname(d.getVar('FILE'))
19 infile = open(oe.path.join(indir, 'files', 'apt.conf'), 'r')
20 data = infile.read()
21 infile.close()
22
23 data = d.expand(data)
24
25 outdir = oe.path.join(d.getVar('D'), d.getVar('sysconfdir'), 'apt')
26 if not os.path.exists(outdir):
27 os.makedirs(outdir)
28
29 outpath = oe.path.join(outdir, 'apt.conf.sample')
30 if not os.path.exists(outpath):
31 outfile = open(outpath, 'w')
32 outfile.write(data)
33 outfile.close()
34}
35
36do_install_base () {
37 install -d ${D}${bindir}
38 install -m 0755 bin/apt-cdrom ${D}${bindir}/
39 install -m 0755 bin/apt-get ${D}${bindir}/
40 install -m 0755 bin/apt-config ${D}${bindir}/
41 install -m 0755 bin/apt-cache ${D}${bindir}/
42 install -m 0755 bin/apt-sortpkgs ${D}${bindir}/
43 install -m 0755 bin/apt-extracttemplates ${D}${bindir}/
44 install -m 0755 bin/apt-ftparchive ${D}${bindir}/
45
46 oe_libinstall -so -C bin libapt-private ${D}${libdir}/
47
48 oe_libinstall -so -C bin libapt-pkg$GLIBC_VER$LIBSTDCPP_VER ${D}${libdir}/
49 oe_libinstall -so -C bin libapt-inst$GLIBC_VER$LIBSTDCPP_VER ${D}${libdir}/
50
51 install -d ${D}${libdir}/apt/methods
52 install -m 0755 bin/methods/* ${D}${libdir}/apt/methods/
53
54 install -d ${D}${libdir}/dpkg/methods/apt
55 install -m 0644 ${S}/dselect/desc.apt ${D}${libdir}/dpkg/methods/apt/
56 install -m 0644 ${S}/dselect/names ${D}${libdir}/dpkg/methods/apt/
57 install -m 0755 ${S}/dselect/install ${D}${libdir}/dpkg/methods/apt/
58 install -m 0755 ${S}/dselect/setup ${D}${libdir}/dpkg/methods/apt/
59 install -m 0755 ${S}/dselect/update ${D}${libdir}/dpkg/methods/apt/
60
61 install -d ${D}${sysconfdir}/apt
62 install -d ${D}${sysconfdir}/apt/apt.conf.d
63 install -d ${D}${sysconfdir}/apt/preferences.d
64 install -d ${D}${localstatedir}/lib/apt/lists/partial
65 install -d ${D}${localstatedir}/cache/apt/archives/partial
66
67 install -d ${D}${localstatedir}/log/apt/
68
69 install -d ${D}${includedir}/apt-pkg
70 for h in `find ${S}/apt-pkg ${S}/apt-inst -name '*.h'`
71 do
72 install -m 0644 $h ${D}${includedir}/apt-pkg
73 done
74}