From patchwork Sun Dec 7 17:03:08 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Denys Dmytriyenko X-Patchwork-Id: 75988 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 95061D3B7E2 for ; Sun, 7 Dec 2025 17:03:29 +0000 (UTC) Received: from mailout4.zoneedit.com (mailout4.zoneedit.com [64.68.198.64]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.30914.1765126999906177112 for ; Sun, 07 Dec 2025 09:03:20 -0800 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: denix.org, ip: 64.68.198.64, mailfrom: denis@denix.org) Received: from localhost (localhost [127.0.0.1]) by mailout4.zoneedit.com (Postfix) with ESMTP id 0CCE740C8F; Sun, 7 Dec 2025 17:03:19 +0000 (UTC) Received: from mailout4.zoneedit.com ([127.0.0.1]) by localhost (zmo14-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4s0aH30_8nSM; Sun, 7 Dec 2025 17:03:19 +0000 (UTC) Received: from mail.denix.org (pool-100-15-87-159.washdc.fios.verizon.net [100.15.87.159]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout4.zoneedit.com (Postfix) with ESMTPSA id E420C40C76; Sun, 7 Dec 2025 17:03:17 +0000 (UTC) Received: from thorin.denix (thorin.denix [192.168.30.9]) by mail.denix.org (Postfix) with ESMTP id B15BA175583; Sun, 7 Dec 2025 12:03:16 -0500 (EST) From: Denys Dmytriyenko To: meta-arago@lists.yoctoproject.org Cc: Denys Dmytriyenko Subject: [scarthgap][PATCH 1/2] libyang: remove unused files Date: Sun, 7 Dec 2025 12:03:08 -0500 Message-Id: <20251207170309.1924061-1-denis@denix.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sun, 07 Dec 2025 17:03:29 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arago/message/16870 From: Denys Dmytriyenko After converting libyang from a separate version to a bbappend, these files are no longer needed locally. Signed-off-by: Denys Dmytriyenko --- ...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 diff --git a/meta-arago-extras/recipes-extended/sysrepo/libyang/0001-test_context-skip-test-case-test_searchdirs.patch b/meta-arago-extras/recipes-extended/sysrepo/libyang/0001-test_context-skip-test-case-test_searchdirs.patch deleted file mode 100644 index 3c6aee92..00000000 --- a/meta-arago-extras/recipes-extended/sysrepo/libyang/0001-test_context-skip-test-case-test_searchdirs.patch +++ /dev/null @@ -1,29 +0,0 @@ -From 5de24e1b39c09adb0c5bf4bb4228bd1bb935542a Mon Sep 17 00:00:00 2001 -From: Yi Zhao -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 ---- - 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 - diff --git a/meta-arago-extras/recipes-extended/sysrepo/libyang/run-ptest b/meta-arago-extras/recipes-extended/sysrepo/libyang/run-ptest deleted file mode 100644 index c507afb2..00000000 --- a/meta-arago-extras/recipes-extended/sysrepo/libyang/run-ptest +++ /dev/null @@ -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 From patchwork Sun Dec 7 17:03:09 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Denys Dmytriyenko X-Patchwork-Id: 75989 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 93C7AD2CE17 for ; Sun, 7 Dec 2025 17:03:29 +0000 (UTC) Received: from mailout4.zoneedit.com (mailout4.zoneedit.com [64.68.198.64]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.30915.1765126999906395524 for ; Sun, 07 Dec 2025 09:03:20 -0800 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: denix.org, ip: 64.68.198.64, mailfrom: denis@denix.org) Received: from localhost (localhost [127.0.0.1]) by mailout4.zoneedit.com (Postfix) with ESMTP id 0E87D40CAB; Sun, 7 Dec 2025 17:03:19 +0000 (UTC) Received: from mailout4.zoneedit.com ([127.0.0.1]) by localhost (zmo14-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RfMfNqpqZs92; Sun, 7 Dec 2025 17:03:19 +0000 (UTC) Received: from mail.denix.org (pool-100-15-87-159.washdc.fios.verizon.net [100.15.87.159]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout4.zoneedit.com (Postfix) with ESMTPSA id DF0A040A22; Sun, 7 Dec 2025 17:03:17 +0000 (UTC) Received: from thorin.denix (thorin.denix [192.168.30.9]) by mail.denix.org (Postfix) with ESMTP id BEC2B17599B; Sun, 7 Dec 2025 12:03:16 -0500 (EST) From: Denys Dmytriyenko To: meta-arago@lists.yoctoproject.org Cc: Denys Dmytriyenko Subject: [scarthgap][PATCH 2/2] libyang: suppress multilib error Date: Sun, 7 Dec 2025 12:03:09 -0500 Message-Id: <20251207170309.1924061-2-denis@denix.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20251207170309.1924061-1-denis@denix.org> References: <20251207170309.1924061-1-denis@denix.org> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sun, 07 Dec 2025 17:03:29 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arago/message/16869 From: Denys Dmytriyenko 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. Signed-off-by: Denys Dmytriyenko --- .../recipes-extended/sysrepo/libyang-arago.inc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/meta-arago-extras/recipes-extended/sysrepo/libyang-arago.inc b/meta-arago-extras/recipes-extended/sysrepo/libyang-arago.inc index b76701a8..9744ea3a 100644 --- a/meta-arago-extras/recipes-extended/sysrepo/libyang-arago.inc +++ b/meta-arago-extras/recipes-extended/sysrepo/libyang-arago.inc @@ -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 }