apt-native: Add libapt-pkg headers

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.

(From OE-Core rev: bf79355d2834a387f94978fe9650bee43244a40e)

Signed-off-by: Jan Siegmund <jsiegmund@arri.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Jan Siegmund
2018-02-04 12:08:48 +01:00
committed by Richard Purdie
parent 89cc1315b3
commit 0f613f82c4

View 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
}