When xxhash was included indirectly, there is a QA issue
at do_package_qa
...
|ERROR: QA Issue: /usr/lib64/libyang.so.3.9.13 contained in package
libyang requires libxxhash.so.0()(64bit), but no providers found in
RDEPENDS:libyang? [file-rdeps]
...
Explicitly add xxhash to DEPENDS, then:
...log.do_configure...
-- Found XXHash: build/tmp/work/x86-64-v3-wrs-linux/libyang/3.13.5/recipe-sysroot/usr/include
-- Hash algorithm: xxhash
...log.do_configure...
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
License-Update: Copyright year updated to 2025
Changelog:
============
- yanglint extension-instance YANG data validation support
- compatibility fixes for FreeBSD
- minor LYB data format improvements
- lots of other bugfixes and improvements
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Please see
https://git.yoctoproject.org/poky/commit/?id=4dd321f8b83afecd962393101b2a6861275b5265
for what changes are needed, and sed commands that can be used to make them en masse.
I've verified that bitbake -c patch world works with these, but did not run a world
build; the majority of recipes shouldn't need further fixups, but if there are
some that still fall out, they can be fixed in followups.
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
0001-test_context-skip-test-case-test_searchdirs.patch
refreshed for 3.12.2
Changelog:
==========
- optional xxhash faster hasing function
- support for metadata in diff
- lots of optimizations and fixes
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Update libyang from 2.1.148 to 3.7.8
Only the copyright years changed the LICENSE file in commit:
b13198971 doc UPDATE libyang v3 transition
so update that checksum.
Note that the prefix 'ly_' was added to header files in:
8f702ee38 libyang UPDATE add prefix for common and config files
so the multilib header install:append was updated in the recipe.
Packages that depend on libyang, such as frr, still compile.
The ptests all continue to pass.
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Changelog:
===========
revert of identityref canonical value change
the identity always printed with the module name as the prefix
data tree and hash table optimizations
opaque node handling fixes and improvements
lots of other bug fixes
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
ChangeLog:
https://github.com/CESNET/libyang/releases/tag/v2.1.55
* Generate cases list dynamically in run-ptest.
* Add a patch to fix ptest.
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Main changes of this release are:
major yanglint improvements
minor XPath fixes
nested extension handling fixes
other minor bugfixes
RPM scripts updated
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Do not inherit binconfig-disabled as pcre2-config is not required by
upstream.
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Modify the patch since the removal of pcre2-config is no long needed as
upstream now does:
75518cf7 cmake FEATURE read pcre2 version from header
and created an upstream PR as per new Upstream-Status.
The flag for building the test code was changed from ENABLE_BUILD_TESTS to
just ENABLE_TESTS in:
cdffdabb build REFACTOR rename test option to unify with other projects
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This patch updates SRC_URIs using git to include branch=master if no branch is set
and also to use protocol=https for github urls as generated by the conversion script
in OE-Core.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This is the result of automated script (0.9.1) conversion:
oe-core/scripts/contrib/convert-overrides.py .
converting the metadata to use ":" as the override character instead of "_".
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Add a new recipe, patches, and ptest coverage for libyang.
The recipe follows from upstream, using the cmake build system.
There were 2 small changes needed to get the package building:
- Remove call to pcre2-config
- Add missing import statement
The recipe has a dependency on libpcre2, which satisfies the minimum
requirements for libyang. In addition, for tests, cmocka is required
during build and runtime, and valgrind is required in the runtime for
some tests.
Due to the way the library by default builds in a debug mode, release
mode was specified. However, this disables building the built-in tests,
so an EXTRA_OECMAKE was added based on whether or not ptests are enabled
to specifiy the required extra flag.
Binconfig-disabled is inherited since using pcre2-config directly is not
suggested anymore. Cmocka as a dependency depends on whether ptests have
been enabled. Since ptests are built with the main package, we need
cmocka installed before the test are compiled if they are needed.
Ptest coverage:
The ptests come from the original tests included with the library.
Ptests are in ctest format by default, so we compare the return code to
print it in Yocto format. However, as each "test" target executable has
multiple tests in it, the full stdout and stderr logs are saved for
troubleshooting.
Currently, several of the tests fail due to hardcoded paths in the
executable binaries generated, this is an issue we will take upstream.
For now, only the tests which work on a different target are enabled as
the ptests. The list can be updated in the run-ptest script, which is
portable shell compatible, without requiring bash.
The recipe also has libyang-bin as a split package, which includes
yanglint should it be needed.
This recipe was tested using buildall-qemu as well as from within qemu
in x86_64 and arm64.
Signed-off-by: Tony Tascioglu <tony.tascioglu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>