apt-native: Add libapt-pkg headers
PATCH v2 1/1 apt-native: Add libapt-pkg headers
From: Jan Siegmund <[email protected]>
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.
--- meta/recipes-devtools/apt/apt-native.inc | 8 ++++++++ 1 file changed, 8 insertions(+)
meta/recipes-devtools/apt/apt-native.inc +8 -0
@@ -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 }
Signature · 1 line
2.14.1
Quoted 25 lines · Jan Siegmund
From: Jan Siegmund <[email protected]>
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 <[email protected]>---
meta/recipes-devtools/apt/apt-native.inc | 8 ++++++++1 file changed, 8 insertions(+)meta/recipes- renamed from meta/recipes-devtools/apt/apt-native.inc +0
-0devtools/apt/apt-native.inc
index68f1b3ce2c..d82ffcc59f100644meta/recipes-devtools/apt/apt-native.inc +0
-0@@ -35,6 +35,8 @@ python do_install_config () { outfile.close() }meta/recipes-devtools/apt/apt-native.inc +2
-0+FILES_${PN} += "${includedir}" +
Quoted 3 lines
do_install_base () {
install -d ${D}${bindir}
install -m 0755 bin/apt-cdrom ${D}${bindir}/
I suspect a native recipe doesn't need to set FILES?
Cheers,
Richard
Am 04.02.2018 um 10:59 schrieb Richard Purdie:
Quoted 15 lines · Jan Siegmund
Quoted 14 lines
From: Jan Siegmund <[email protected]>
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 <[email protected]>---
meta/recipes-devtools/apt/apt-native.inc | 8 ++++++++1 file changed, 8 insertions(+)
Quoted 16 lines
Quoted 11 lines
meta/recipes- renamed from meta/recipes-devtools/apt/apt-native.inc +0
-0devtools/apt/apt-native.inc
index68f1b3ce2c..d82ffcc59f100644meta/recipes-devtools/apt/apt-native.inc +0
-0@@ -35,6 +35,8 @@ python do_install_config () { outfile.close() }meta/recipes-devtools/apt/apt-native.inc +2
-0+FILES_${PN} += "${includedir}" +Quoted 3 lines
do_install_base () {
install -d ${D}${bindir}
install -m 0755 bin/apt-cdrom ${D}${bindir}/I suspect a native recipe doesn't need to set FILES?
I'll drop it and send version 3.
Quoted 5 lines
Cheers,
Richard
Thanks for the review,
Jan