Skip to contentSkip to conversation

open62541: fix examples binaries packaging

PATCH In review Denys Dmytriyenko 2 participants 3 messages Mar 11, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 open62541: fix examples binaries packaging

From: Denys Dmytriyenko <[email protected]>

Recent update in upstream meta-oe changed FILES list to only include libraries, which is correct when no examples are built. Our bbappend enables building examples and those are placed into own directory. But there are 2 exceptions where ua_client and ua_server are placed under ${bindir} and now those trigger a QA error about unpackaged files. While these 2 files should probably go along with other example binaries, for now restore the previous behavior of packaging them into ${bindir} in case some downstream usage expects them there.

---
 .../recipes-connectivity/open62541/open62541-arago.inc           | 1 +
 1 file changed, 1 insertion(+)
meta-arago-extras/recipes-connectivity/open62541/open62541-arago.inc +1 -0
index 3d72f0e9..745c88a1 100644
@@ -28,6 +28,7 @@ do_install:append() {
 }
 
 PACKAGES =+ "${PN}-examples ${PN}-tests"
+FILES:${PN} += "${bindir}"
 FILES:${PN}-dev += "${libdir}/cmake/* ${datadir}/${BPN}/tools"
 FILES:${PN}-examples += "${datadir}/${BPN}/examples"
 FILES:${PN}-tests += "${datadir}/${BPN}/tests"
Signature · 1 line
2.25.1
#1 lore raw
Quoted 10 lines · Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

Recent update in upstream meta-oe changed FILES list to only include libraries, which is correct when no examples are built. Our bbappend enables building examples and those are placed into own directory. But there are 2 exceptions where ua_client and ua_server are placed under ${bindir} and now those trigger a QA error about unpackaged files. While these 2 files should probably go along with other example binaries, for now restore the previous behavior of packaging them into ${bindir} in case some downstream usage expects them there.

Thanks! I was going to look into this today.

Quoted 17 lines
---
  .../recipes-connectivity/open62541/open62541-arago.inc           | 1 +
  1 file changed, 1 insertion(+)
meta-arago-extras/recipes-connectivity/open62541/open62541-arago.inc +1 -0
index 3d72f0e9..745c88a1 100644
@@ -28,6 +28,7 @@ do_install:append() {
  }
 
  PACKAGES =+ "${PN}-examples ${PN}-tests"
+FILES:${PN} += "${bindir}"
  FILES:${PN}-dev += "${libdir}/cmake/* ${datadir}/${BPN}/tools"
  FILES:${PN}-examples += "${datadir}/${BPN}/examples"
  FILES:${PN}-tests += "${datadir}/${BPN}/tests"
Signature · 3 lines
Ryan Eatmon                [email protected]
-----------------------------------------
Texas Instruments, Inc.  -  LCPD  -  MGTS
#2 lore raw
In reply to Denys Dmytriyenko

meta-arago-extras/recipes-connectivity/open62541/open62541-arago.inc

Quoted 20 lines · Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

Recent update in upstream meta-oe changed FILES list to only include libraries, which is correct when no examples are built. Our bbappend enables building examples and those are placed into own directory. But there are 2 exceptions where ua_client and ua_server are placed under ${bindir} and now those trigger a QA error about unpackaged files. While these 2 files should probably go along with other example binaries, for now restore the previous behavior of packaging them into ${bindir} in case some downstream usage expects them there.

---
  .../recipes-connectivity/open62541/open62541-arago.inc           | 1 +
  1 file changed, 1 insertion(+)
meta-arago-extras/recipes-connectivity/open62541/open62541-arago.inc +0 -0
index 3d72f0e9..745c88a1 100644

Ah. I see you are making this change against master-wip. master and scarthgap do not have that change yet as it is still cooking. I'm going to send a v2 to move this patch over to the .bbappend so that we can pick this up right now and then rebase master-wip on top of it.

Quoted 8 lines
meta-arago-extras/recipes-connectivity/open62541/open62541-arago.inc +1 -0
@@ -28,6 +28,7 @@ do_install:append() {
  }
 
  PACKAGES =+ "${PN}-examples ${PN}-tests"
+FILES:${PN} += "${bindir}"
  FILES:${PN}-dev += "${libdir}/cmake/* ${datadir}/${BPN}/tools"
  FILES:${PN}-examples += "${datadir}/${BPN}/examples"
  FILES:${PN}-tests += "${datadir}/${BPN}/tests"
Signature · 3 lines
Ryan Eatmon                [email protected]
-----------------------------------------
Texas Instruments, Inc.  -  LCPD  -  MGTS