diff options
| author | Randy MacLeod <Randy.MacLeod@windriver.com> | 2025-11-26 09:40:00 -0500 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-11-26 15:28:08 -0800 |
| commit | bd5202a0a0c9400e452ccea8b6d9237ea8593571 (patch) | |
| tree | 6f8f87ff882ca1e39f8bbf2ead4e7aedcd9ead1c /meta-oe/recipes-extended/rsyslog/librelp_1.12.0.bb | |
| parent | 89a119a2731f906ac2efcc5e51a26ce0ff88bfdf (diff) | |
| download | meta-openembedded-bd5202a0a0c9400e452ccea8b6d9237ea8593571.tar.gz | |
librelp: Upgrade to 1.12.0
This upgrade is mostly bug fixes according to:
https://github.com/rsyslog/librelp/blob/master/ChangeLog
but there is one new API:
add ability to communicate source port back to caller
Drop the backported patch:
0001-Fix-function-inline-errors-in-debug-optimization-Og.patch
Drop patches merged upstream:
0001-tests-Include-missing-sys-time.h.patch
-> 8c96857 tests: Include missing sys/time.h
0001-relp-fix-build-against-upcoming-gcc-14-Werror-calloc.patch
-> baf992f relp: fix build against upcoming `gcc-14` ...
0001-tests-Fix-callback-prototype.patch
-> a4cb0bd tests: Fix callback prototype
0001-tcp-fix-some-compiler-warnings-with-enable-tls-opens.patch
-> 6e9b27f tcp: fix some compiler warnings with enable-tls-openssl
Ptest for qemux86-64, qemuarm64 with glibc and musl:
TOTAL: 30
PASS: 27
SKIP: 3
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-extended/rsyslog/librelp_1.12.0.bb')
| -rw-r--r-- | meta-oe/recipes-extended/rsyslog/librelp_1.12.0.bb | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/rsyslog/librelp_1.12.0.bb b/meta-oe/recipes-extended/rsyslog/librelp_1.12.0.bb new file mode 100644 index 0000000000..6bad112e5a --- /dev/null +++ b/meta-oe/recipes-extended/rsyslog/librelp_1.12.0.bb | |||
| @@ -0,0 +1,84 @@ | |||
| 1 | SUMMARY = "A reliable logging library" | ||
| 2 | HOMEPAGE = "https://github.com/rsyslog/librelp" | ||
| 3 | |||
| 4 | LICENSE = "GPL-3.0-only" | ||
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=1fb9c10ed9fd6826757615455ca893a9" | ||
| 6 | |||
| 7 | DEPENDS = "gmp libidn zlib" | ||
| 8 | |||
| 9 | SRC_URI = "git://github.com/rsyslog/librelp.git;protocol=https;branch=stable \ | ||
| 10 | file://run-ptest \ | ||
| 11 | " | ||
| 12 | |||
| 13 | SRCREV = "dab30db5108ef4bb5b6f9135e0428b57be7c4085" | ||
| 14 | |||
| 15 | CVE_PRODUCT = "rsyslog:librelp" | ||
| 16 | |||
| 17 | inherit autotools pkgconfig ptest | ||
| 18 | |||
| 19 | PACKAGECONFIG ?= "tls-openssl valgrind" | ||
| 20 | # Valgrind is not available for RISCV yet | ||
| 21 | PACKAGECONFIG:remove:riscv64 = "valgrind" | ||
| 22 | PACKAGECONFIG:remove:riscv32 = "valgrind" | ||
| 23 | |||
| 24 | PACKAGECONFIG[tls] = "--enable-tls,--disable-tls,gnutls nettle" | ||
| 25 | PACKAGECONFIG[tls-openssl] = "--enable-tls-openssl,--disable-tls-openssl,openssl" | ||
| 26 | PACKAGECONFIG[valgrind] = "--enable-valgrind,--disable-valgrind," | ||
| 27 | |||
| 28 | # For ptests, copy source tests/*.sh scripts, Makefile and | ||
| 29 | # executables and run them with make on target. | ||
| 30 | TESTDIR = "tests" | ||
| 31 | do_compile_ptest() { | ||
| 32 | echo 'buildtest-TESTS: $(check_PROGRAMS)' >> ${TESTDIR}/Makefile | ||
| 33 | oe_runmake -C ${TESTDIR} buildtest-TESTS | ||
| 34 | } | ||
| 35 | |||
| 36 | do_install_ptest() { | ||
| 37 | install -d ${D}${PTEST_PATH}/${TESTDIR} | ||
| 38 | |||
| 39 | # copy source tests/*.sh and python scripts | ||
| 40 | cp -f ${S}/${TESTDIR}/*.sh ${S}/${TESTDIR}/*.py ${D}${PTEST_PATH}/${TESTDIR} | ||
| 41 | # install data files needed by the test scripts on the target | ||
| 42 | cp -f ${S}/${TESTDIR}/*.supp ${D}${PTEST_PATH}/${TESTDIR} | ||
| 43 | cp -rf ${S}/${TESTDIR}/tls-certs ${D}${PTEST_PATH}/${TESTDIR} | ||
| 44 | |||
| 45 | # copy executables | ||
| 46 | find ${B}/${TESTDIR} -type f -executable -exec cp {} ${D}${PTEST_PATH}/${TESTDIR} \; | ||
| 47 | cp -rf ${B}/${TESTDIR}/.libs ${D}${PTEST_PATH}/${TESTDIR} | ||
| 48 | # copy Makefile | ||
| 49 | # run-ptest will run make which runs the executables | ||
| 50 | cp -f ${B}/${TESTDIR}/Makefile ${D}${PTEST_PATH}/${TESTDIR} | ||
| 51 | cp -f ${B}/${TESTDIR}/set-envvars ${D}${PTEST_PATH}/${TESTDIR} | ||
| 52 | |||
| 53 | # give permissions to all users | ||
| 54 | # some tests need to write to this directory | ||
| 55 | chmod 777 -R ${D}${PTEST_PATH}/${TESTDIR} | ||
| 56 | |||
| 57 | sed -e '# do NOT need to rebuild Makefile or $(check_PROGRAMS)' \ | ||
| 58 | -e 's/^Makefile:.*$/Makefile:/' \ | ||
| 59 | -e 's/^check-TESTS:.*$/check-TESTS:/' \ | ||
| 60 | -e '# fix the srcdir, top_srcdir, abs_top_builddir' \ | ||
| 61 | -e 's,^\(srcdir = \).*,\1${PTEST_PATH}/${TESTDIR},' \ | ||
| 62 | -e 's,^\(top_srcdir = \).*,\1${PTEST_PATH}/${TESTDIR},' \ | ||
| 63 | -e 's,^\(abs_top_builddir = \).*,\1${PTEST_PATH}/,' \ | ||
| 64 | -e '# fix the path to test-driver' \ | ||
| 65 | -e '/^SH_LOG_DRIVER =/s/(top_srcdir)/(top_builddir)/' \ | ||
| 66 | -i ${D}${PTEST_PATH}/${TESTDIR}/Makefile | ||
| 67 | |||
| 68 | # install test-driver | ||
| 69 | install -m 644 ${S}/test-driver ${D}${PTEST_PATH} | ||
| 70 | |||
| 71 | # fix the python3 path for tests/set-envar | ||
| 72 | sed -i -e s:${HOSTTOOLS_DIR}:${bindir}:g ${D}${PTEST_PATH}/${TESTDIR}/set-envvars | ||
| 73 | |||
| 74 | # these 2 scripts need help finding their /usr/lib/librelp/ptest/tests/.libs libraries | ||
| 75 | sed -i 's:${B}/src:${PTEST_PATH}/${TESTDIR}:' ${D}${PTEST_PATH}/${TESTDIR}/send | ||
| 76 | sed -i 's:${B}/src:${PTEST_PATH}/${TESTDIR}:' ${D}${PTEST_PATH}/${TESTDIR}/receive | ||
| 77 | } | ||
| 78 | |||
| 79 | RDEPENDS:${PN}-ptest += "\ | ||
| 80 | make bash coreutils libgcc util-linux gawk grep \ | ||
| 81 | python3-core python3-io \ | ||
| 82 | " | ||
| 83 | RRECOMMENDS:${PN}-ptest += "${@bb.utils.filter('PACKAGECONFIG', 'valgrind', d)}" | ||
| 84 | |||
