From bf79355d2834a387f94978fe9650bee43244a40e Mon Sep 17 00:00:00 2001 From: Jan Siegmund Date: Sun, 4 Feb 2018 12:08:48 +0100 Subject: 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. Signed-off-by: Jan Siegmund Signed-off-by: Ross Burton --- meta/recipes-devtools/apt/apt-native.inc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'meta/recipes-devtools') diff --git a/meta/recipes-devtools/apt/apt-native.inc b/meta/recipes-devtools/apt/apt-native.inc index 68f1b3ce2c..ef232c1eb6 100644 --- a/meta/recipes-devtools/apt/apt-native.inc +++ b/meta/recipes-devtools/apt/apt-native.inc @@ -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 } -- cgit 1.2.3-korg