Commit Graph

29 Commits

Author SHA1 Message Date
Gyorgy Sarvari 6e936626cb libcereal: set CVE_PRODUCT
The relevant CVEs are associated with usc:cereal CPE.

See CVE db query:

sqlite> select * from PRODUCTS  where PRODUCT like '%cereal%';
CVE-2020-11104|usc|cereal|||1.3.0|<=
CVE-2020-11105|usc|cereal|||1.3.0|<=

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2026-01-12 08:53:48 -08:00
Alexander Kanavin fc78d37ff0 meta-openembedded/all: adapt to UNPACKDIR changes
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>
2025-06-25 06:44:52 -07:00
Khem Raj e3ab0d2439 libcereal: Fix build with clang-19
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-09-10 18:28:31 -07:00
Khem Raj bc5c3e48c1 libcereal: Disable c++11-narrowing-const-reference warning as error
Clang 18 is fussy about it

Fixes

unittests/map.hpp:65:25: error: non-constant-expression cannot be narrowed from type 'typename std::enable_if<std::is_integral<char>::value && sizeof(char) == sizeof(char), char>::type' (aka 'char') to 'const signed char' in initializer list [-Wc++11-narrowing-const-reference]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-02-09 09:52:15 -08:00
Martin Jansa 21f956598d recipes: drop ${SRCPV} usage
* Drop SRCPV similarly like oe-core did in:
  https://git.openembedded.org/openembedded-core/commit/?h=nanbield&id=843f82a246a535c353e08072f252d1dc78217872

* SRCPV is deferred now from PV to PKGV since:
  https://git.openembedded.org/openembedded-core/commit/?h=nanbield&id=a8e7b0f932b9ea69b3a218fca18041676c65aba0

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
2024-02-09 09:52:12 -08:00
Khem Raj 8eb74815c2 libcereal: Fix TMPDIR leaking into debug_str section
Fixes errors like
File /usr/lib/libcereal/ptest/tests/.debug/test_unordered_map in package libcereal-dbg contains reference to TMPDIR

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-04-17 17:54:25 -07:00
Khem Raj 611f2921dc libcereal: Use -idirafter instead of -isystem
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-21 10:02:02 -08:00
Khem Raj ed18e545c9 libcereal,poco: Link with -latomic on ppc32 as well
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-04 15:33:58 -08:00
Khem Raj 2922f01139 libcereal: Do not use uniform_int_distribution<char> template
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-09-05 22:49:34 -07:00
Khem Raj f3d8e41b9d libcereal: Enable for glibc/ppc
The error is not observed with glibc latest clang 14

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-04-30 07:39:08 -07:00
Khem Raj 33f4142dff libcereal: Link libatomics with gcc as well
Since gcc-12, gcc is also emitting calls to 64bit atomics

Fixes
unittests/CMakeFiles/test_atomic.dir/atomic.cpp.o:/usr/include/c++/12.0.1/atomic:285: more undefined references to `__atomic_load_8' follow
collect2: error: ld returned 1 exit status
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-04-19 08:22:50 -07:00
Khem Raj 35ea4b37ba libcereal: Disable on ppc/ppc64
It does not support 128-bit long doubles

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-04-10 10:05:35 -07:00
Khem Raj 668ed5c5c9 libcereal: Link in libatomic on rv32 for ptests
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-04-10 10:05:35 -07:00
Khem Raj a3f218e9db libcereal: Link libatomics on mips for ptests
clang/mips emits calls to atomic builtins which it expects from C
runtime perhaps but compiler-rt does not provide them so link in
libatomics

Fixes
atomic.cpp:(.text._ZN6cereal12Inpu
tArchiveINS_16JSONInputArchiveELj0EE7processIRNSt3__16atomicIdEEEEvOT_[_ZN6cereal12InputArchiveINS_16JSONInputArchiveELj0EE7processIRNSt3__16atomicIdEEEEvOT_]+0x10c): undefined reference to `__atomic_store_8'

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-11 11:20:55 -08:00
Khem Raj 1f372ad6c5 libcereal: Disable Werror with ptests
skip portability tests on 64bit targets since we do not have 32bit
multilib enabled in compiler

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-11 08:00:40 -08:00
Mingli Yu 045fe61e30 libcereal: add ptest support
Add ptest support.

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-11 07:57:51 -08:00
Wang Mingyu 7243835dab libcereal: upgrade 1.3.1 -> 1.3.2
This is a minor bug fix and build enhancement release for cereal.
The primary reason for this release is to correctly increment the version for
cereal in include/cereal/version.hpp.

Bug fixes and enhancements
--------------------------
Make doxygen docs reproducible
Add CMake options for building doc and sandbox
Correct patch version for 1.3.2

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-07 09:27:53 -08:00
wangmy a6e7ddefe7 libcereal: upgrade 1.3.0 -> 1.3.1
License-Update: year updated to 2022

0001-Use-GNUInstallDirs-instead-of-hard-wiring-install-di.patch
removed since it is included in 1.3.1

Changelog:
=========
Highlighted fixes and enhancements include:
------------------------------------------
Github actions in place of Travis CI
Doctest updates (and upstream patches!) to support all targeted compilers
Cmake modernization

Bug fixes and minor enhancements:
---------------------------------
Fix typo in docs in #597
Add MSVC 2019 to build, default ctor for static object
Fix json.hpp compilation issue when int32_t is a long
[cpp20] explicitly capture 'this' as copy
Fix rapidjson for Clang 10
Fixes to prevent clang-diagnostic errors
cleanup cmake files to be a little more moderen
CVE-2020-11105: Store a copy of each serialized shared_ptr within the archive to prevent the shared_ptr to be freed to early
add license files for components of cereal
Catch short documents in JSON input
C++17: use inline globals for StaticObjects
Use std::variant::emplace when loading
Use std::optional::emplace() when loading non-empty optional
Fix itsNextName not clearing when not found + style change
Update doctest to 2.4.6 + local fixes slated for upstream
Fixed loading of std::vector
Update license to match BSD template
Update doctest to 2.4.7
Use GNUInstallDirs instead of hard wiring install directories

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-01-25 10:56:04 -08:00
Richard Purdie b402a3076f recipes: Update SRC_URI branch and protocols
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>
2021-11-03 06:57:49 -07:00
Anton Blanchard 7982a1260f cereal: Use GNUInstallDirs instead of hard wiring install directories
On a multilib setup cmake files should go into lib64.

Signed-off-by: Anton Blanchard <anton@ozlabs.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-19 09:58:56 -07:00
Martin Jansa c61dc077bb Convert to new override syntax
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>
2021-08-03 10:21:25 -07:00
Peter Kjellerstedt 4c2eaa2bd3 librcereal: A couple of improvements
* Add "+git${SRCPV}" to PV to indicate that a non-released version is
  used.
* Do not redefine FILES_${PN}-dev; the default will work just fine.
* Move PROVIDES to better match the style guide.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-28 23:51:14 -08:00
Adam Miartus bca96e3384 libcereal: add dev package that can be included into toolchain sdk
Signed-off-by: Adam Miartus <adam.miartus@softhows.eu>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-26 15:22:35 -08:00
Adam Miartus 40237897d9 libcereal: pick up additional licenses of cereal components
Signed-off-by: Adam Miartus <adam.miartus@softhows.eu>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-26 15:22:35 -08:00
Adam Miartus 0d22477c5f libcereal: update to newer version
fixes CVE-2020-11105
adds license information for components of cerial

Signed-off-by: Adam Miartus <adam.miartus@softhows.eu>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-26 15:22:35 -08:00
Pierre-Jean Texier c15b113747 libcereal: upgrade 1.2.2 -> 1.3.0
This is a feature and bug fix release.

See full changelog https://github.com/USCiLab/cereal/releases/tag/v1.3.0

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-03-23 08:02:39 -07:00
Brad Bishop e23284f9a5 libcereal: Allow empty package
libcereal is header-only so create the empty base package so that
libcereal can be sanely included in an SDK via IMAGE_INSTALL, RDEPENDS,
and the like.

Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-11-29 18:44:56 -08:00
Brad Bishop 042f0a3ec1 libcereal: Add native and nativesdk classes
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-11-26 09:38:14 -08:00
Fritjof Jonsson dccb790e18 Move lonely libcereal from meta to meta-oe
Change-Id: I2462274575e121466b5afc4cda006215e32fd34b
Signed-off-by: Fritjof Jonsson <fritjofj@axis.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-08-15 08:20:06 -07:00