Skip to contentSkip to conversation

libyang: remove unused files

PATCH In review Denys Dmytriyenko 2 participants 3 messages Dec 7, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 libyang: remove unused files

From: Denys Dmytriyenko <[email protected]>

After converting libyang from a separate version to a bbappend, these files are no longer needed locally.

---
 ...ntext-skip-test-case-test_searchdirs.patch | 29 -------------------
 .../sysrepo/libyang/run-ptest                 | 18 ------------
 2 files changed, 47 deletions(-)
 delete mode 100644 meta-arago-extras/recipes-extended/sysrepo/libyang/0001-test_context-skip-test-case-test_searchdirs.patch
 delete mode 100644 meta-arago-extras/recipes-extended/sysrepo/libyang/run-ptest
meta-arago-extras/recipes-extended/sysrepo/libyang/0001-test_context-skip-test-case-test_searchdirs.patch deleted +0 -29
deleted file mode 100644
index 3c6aee92..00000000
@@ -1,29 +0,0 @@
-From 5de24e1b39c09adb0c5bf4bb4228bd1bb935542a Mon Sep 17 00:00:00 2001
-From: Yi Zhao <[email protected]>
-Date: Wed, 22 Mar 2023 16:03:56 +0800
-Subject: [PATCH] test_context: skip test case test_searchdirs
-
-Skip test case test_searchdirs as it searchs the source code directory.
-
-Upstream-Status: Inappropriate [embedded specific]
-
-Signed-off-by: Yi Zhao <[email protected]>
----
- tests/utests/basic/test_context.c | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/tests/utests/basic/test_context.c b/tests/utests/basic/test_context.c
-index cfba1d30f..8c3bb7ad6 100644
---- a/tests/utests/basic/test_context.c
-+++ b/tests/utests/basic/test_context.c
-@@ -1061,7 +1061,6 @@ int
- main(void)
- {
-     const struct CMUnitTest tests[] = {
--        UTEST(test_searchdirs),
-         UTEST(test_options),
-         UTEST(test_models),
-         UTEST(test_imports),
--- 
-2.25.1
-
meta-arago-extras/recipes-extended/sysrepo/libyang/run-ptest deleted +0 -18
deleted file mode 100644
index c507afb2..00000000
@@ -1,18 +0,0 @@
-#!/bin/sh
-
-# cd into right directory
-ptestdir=$(dirname "$(readlink -f "$0")")
-cd "$ptestdir"/tests || exit
-
-tests=$(find * -type f -name 'utest_*')
-
-for f in $tests
-do
-    if test -x ./"$f"; then
-        if ./"$f" > ./"$f".out 2> ./"$f".err; then
-            echo "PASS: $f"
-        else
-            echo "FAIL: $f"
-        fi
-    fi
-done
Signature · 1 line
2.25.1
#1 lore raw

PATCH 2/2 libyang: suppress multilib error

From: Denys Dmytriyenko <[email protected]>

Version 2.x of libyang had config.h file that needs to be processed for multilib, while newer 3.x renamed the file to ly_config.h. As meta-oe/scarthgap expects the old config.h file for multilib, which cannot be disabled, let's duplicate the new ly_config.h as config.h to avoid the error.

---
 .../recipes-extended/sysrepo/libyang-arago.inc        | 11 +++++++++++
 1 file changed, 11 insertions(+)
meta-arago-extras/recipes-extended/sysrepo/libyang-arago.inc +11 -0
index b76701a8..9744ea3a 100644
@@ -4,6 +4,17 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=9bb3d334294e8719f41c531e28a9a697"
 
 SRCREV = "03e294d83b610f89e8ba7b2156a80dc0ad534443"
 
+# 2.x still uses config.h and meta-oe/scarthgap tries
+# to process it for multilib, which cannot be disabled
+# and results in an error. Just duplicate the actual
+# ly_config.h to suppress the error.
+do_install:prepend () {
+    install -d ${D}${includedir}/libyang
+    install -m 644 libyang/ly_config.h ${D}${includedir}/libyang/config.h
+}
+
+# 3.x now comes with ly_config.h, so process it here
+# for multilib
 do_install:append () {
     oe_multilib_header  libyang/ly_config.h
 }
Signature · 1 line
2.25.1
#2 lore raw
In reply to Denys Dmytriyenko

meta-arago / na / 20251207170309.1924061-1-denis

PRC Results: PASS

=========================================================
check-yocto-patches: PASS
=========================================================
Patches
----------------------------------------
All patches passed

=========================================================
apply-yocto-patch: PASS
=========================================================
scarthgap
=====================
Summary:
- Patch Series: [scarthgap][PATCH 1/2] libyang: remove unused files
- Submitter: From: Denys Dmytriyenko <[email protected]>
From: Denys Dmytriyenko <[email protected]>
-From: Yi Zhao <[email protected]>
- Date: Date: Sun, 7 Dec 2025 12:03:08 -0500
-Date: Wed, 22 Mar 2023 16:03:56 +0800
- Num Patches: 2
- Mailing List (public inbox) Commit SHA: e9de8c2ff2dbf4ca7dbcd3b7fcf614428d1eab6a

Applied to:
- Repository: lcpd-prc-meta-arago
- Base Branch: scarthgap-wip
- Commit Author: LCPD Automation Script <[email protected]>
- Commit Subject: CI/CD Auto-Merger: cicd.scarthgap.202512041635
- Commit SHA: b9c8be5cceb1b67c6d14a871fe20e599542999f1

Patches
----------------------------------------
All patches applied

=========================================================
check-yocto-repo: PASS
=========================================================
scarthgap
=====================
PASS

=========================================================
yocto-check-layers: PASS
=========================================================
scarthgap - PASS
=====================
All checks passed