Skip to contentSkip to conversation

ctags: Extend to build native package

PATCH New Khem Raj 1 participant 2 messages Jul 4, 2023

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/2 ctags: Extend to build native package

---
 meta-oe/recipes-devtools/ctags/ctags_6.0.20230611.0.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/recipes-devtools/ctags/ctags_6.0.20230611.0.bb +2 -0
index 0fd3f8c4fb..1b8d367fa7 100644
@@ -32,3 +32,5 @@ PACKAGECONFIG[json] = "--enable-json,--disable-json,jansson"
 PACKAGECONFIG[seccomp] = "--enable-seccomp,--disable-seccomp,libseccomp"
 PACKAGECONFIG[yaml] = "--enable-yaml,--disable-yaml,libyaml"
 PACKAGECONFIG[manpages] = ",,python3-docutils-native"
+
+BBCLASSEXTEND = "native"
Signature · 1 line
2.41.0
author
#1 lore raw

PATCH 2/2 libcoap: Build linker symbol file explicitly

Since we autoreconf, it should be better to build the linker map file too, which requires ctags during build. This is otherwise flagged as error by lld linker where we specify a linker symbol file on cmdline but the file is not there.

Fixes
| libtool: error: symbol file './libcoap-3.sym' does not exist

---
 meta-networking/recipes-devtools/libcoap/libcoap_4.3.1.bb | 6 ++++++
 1 file changed, 6 insertions(+)
meta-networking/recipes-devtools/libcoap/libcoap_4.3.1.bb +6 -0
index 0fc342560a..efea3fab74 100644
@@ -16,6 +16,8 @@ S = "${WORKDIR}/git"
 
 inherit autotools manpages pkgconfig ptest
 
+DEPENDS += "ctags-native"
+
 PACKAGECONFIG ?= "\
     async openssl tcp \
     ${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)} \
@@ -42,6 +44,10 @@ python () {
 
 export SGML_CATALOG_FILES="file://${STAGING_ETCDIR_NATIVE}/xml/catalog"
 
+do_compile:prepend() {
+    oe_runmake update-map-file
+}
+
 do_install_ptest () {
 	install -d ${D}${PTEST_PATH}
 	install -m 0755 ${WORKDIR}/run-ptest ${D}${PTEST_PATH}/run-ptest
Signature · 1 line
2.41.0