Skip to contentSkip to conversation

all: unbreak populate_sdk task (again)

PATCH New Denys Dmytriyenko 1 participant 1 message Feb 26, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 all: unbreak populate_sdk task (again)

From: Denys Dmytriyenko <[email protected]>

Being able to run populate_sdk task against minimal and base images has always been supported by Arago, though needed to get fixed once in a while, e.g.:
https://git.yoctoproject.org/meta-arago/commit/?id=d47710c8219e036cb7005bc0a22099e63c5e1901

This time around the issue is due to upstream packages lmbench and mbedtls both installing /usr/bin/hello binary and causing a conflict when the files collide in the sysroot.

The fix has been submitted upstream to meta-oe and meta-networking layers of the meta-openembedded repo:
https://patchwork.yoctoproject.org/project/oe/list/?series=10748

For now add local bbappends with the same fix, which can be removed when the fix is merged upstream and backported to kirkstone.

While at it, also look into the conflict caused by matrix launcher packaging function being reused by multiple subpackages, resulting in lots of file conflicts between them. There's a lot of rework required for the matrix (and it might get moved to another layer altogether), but for now just cutoff the reverse dependency from development -dev packages.

With this simple change it is now possible to run populate_sdk task even against the default full/graphics tisdk-default-image.

---
 .../recipes-benchmark/lmbench/lmbench_%.bbappend              | 2 ++
 .../recipes-connectivity/mbedtls/mbedtls_%.bbappend           | 4 ++++
 meta-arago-extras/recipes-core/matrix/matrix-gui-apps.inc     | 3 +++
 3 files changed, 9 insertions(+)
 create mode 100644 meta-arago-distro/recipes-benchmark/lmbench/lmbench_%.bbappend
 create mode 100644 meta-arago-distro/recipes-connectivity/mbedtls/mbedtls_%.bbappend
meta-arago-distro/recipes-benchmark/lmbench/lmbench_%.bbappend new file +2 -0
new file mode 100644
index 00000000..96dd2010
@@ -0,0 +1,2 @@
+ALTERNATIVE:${PN} += "hello"
+ALTERNATIVE_LINK_NAME[hello] = "${bindir}/hello"
meta-arago-distro/recipes-connectivity/mbedtls/mbedtls_%.bbappend new file +4 -0
new file mode 100644
index 00000000..f3c16796
@@ -0,0 +1,4 @@
+inherit update-alternatives
+
+ALTERNATIVE:${PN}-programs += "hello"
+ALTERNATIVE_LINK_NAME[hello] = "${bindir}/hello"
meta-arago-extras/recipes-core/matrix/matrix-gui-apps.inc +3 -0
index 2bcc908b..adb998e1 100644
@@ -38,3 +38,6 @@ do_install:append(){
     # other appends.
     cd -
 }
+
+RDEPENDS:${PN}-dev = ""
+RRECOMMENDS:${PN}-dev = ""
Signature · 1 line
2.25.1