]> code.ossystems Code Review - openembedded-core.git/commitdiff
apt-native: Add libapt-pkg headers
authorJan Siegmund <jsiegmund@arri.de>
Sun, 4 Feb 2018 11:08:48 +0000 (12:08 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 16 Feb 2018 17:56:32 +0000 (17:56 +0000)
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@arri.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/apt/apt-native.inc

index 68f1b3ce2c69d47fe9bddac02ecca560e239766c..ef232c1eb6763250e7beb1f3dccc12dd364b4ef9 100644 (file)
@@ -67,4 +67,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
 }