[OE-core] [PATCH] apt-native: Add libapt-pkg headers
Jan Siegmund
jan.siegmund0 at hm.edu
Sat Feb 3 01:49:17 UTC 2018
From: Jan Siegmund <jsiegmund at arri.de>
Native tools were not able to use the headers of apt-pkg. This patch
adds the feature.
The headers were added from apt-pkg and apt-inst to the native recipe.
The shipped headers match the ones in the Ubuntu package libapt-pkg-dev.
Signed-off-by: Jan Siegmund <jsiegmund at arri.de>
---
meta/recipes-devtools/apt/apt-native.inc | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/meta/recipes-devtools/apt/apt-native.inc b/meta/recipes-devtools/apt/apt-native.inc
index 68f1b3ce2c..8859fef797 100644
--- a/meta/recipes-devtools/apt/apt-native.inc
+++ b/meta/recipes-devtools/apt/apt-native.inc
@@ -35,6 +35,8 @@ python do_install_config () {
outfile.close()
}
+FILES_${PN} = "${includedir}"
+
do_install_base () {
install -d ${D}${bindir}
install -m 0755 bin/apt-cdrom ${D}${bindir}/
@@ -67,4 +69,10 @@ do_install_base () {
install -d ${D}${localstatedir}/cache/apt/archives/partial
install -d ${D}${localstatedir}/log/apt/
+
+ install -d ${D}${includedir}/apt-pkg
+ for h in `find ${S}/apt-pkg ${S}/apt-inst -name '*.h'`
+ do
+ install -m 0644 $h ${D}${includedir}/apt-pkg
+ done
}
--
2.14.1
More information about the Openembedded-core
mailing list