From 338e2ff78bf5a690aae795a76e59d22508ad9f2d Mon Sep 17 00:00:00 2001 From: Ayoub Zaki Date: Thu, 2 Jan 2025 15:59:39 +0100 Subject: [PATCH] botan: update 3.5.0 -> 3.6.1 * update to latest 3.6.1 Version * add packaging for botan binary and botan-test tool Signed-off-by: Khem Raj --- .../botan/{botan_3.5.0.bb => botan_3.6.1.bb} | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) rename meta-oe/recipes-crypto/botan/{botan_3.5.0.bb => botan_3.6.1.bb} (65%) diff --git a/meta-oe/recipes-crypto/botan/botan_3.5.0.bb b/meta-oe/recipes-crypto/botan/botan_3.6.1.bb similarity index 65% rename from meta-oe/recipes-crypto/botan/botan_3.5.0.bb rename to meta-oe/recipes-crypto/botan/botan_3.6.1.bb index 3a40680a45..c9f977bb4c 100644 --- a/meta-oe/recipes-crypto/botan/botan_3.5.0.bb +++ b/meta-oe/recipes-crypto/botan/botan_3.6.1.bb @@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://license.txt;md5=573e74513ae3057b04757df65b537de0" SECTION = "libs" SRC_URI = "https://botan.randombit.net/releases/Botan-${PV}.tar.xz" -SRC_URI[sha256sum] = "67e8dae1ca2468d90de4e601c87d5f31ff492b38e8ab8bcbd02ddf7104ed8a9f" +SRC_URI[sha256sum] = "7cb8575d88d232c77174769d7f9e24bb44444160585986eebd66e749cb9a9089" S = "${WORKDIR}/Botan-${PV}" @@ -41,12 +41,25 @@ do_compile() { do_install() { oe_runmake DESTDIR=${D} install sed -i -e 's|${WORKDIR}||g' ${D}${includedir}/botan-3/botan/build.h + + # Add botan binary and test tool + install -d ${D}${bindir} + install -d ${D}${datadir}/${PN}/tests/data + install -m 0755 ${B}/botan-test ${D}${bindir} + cp -R --no-dereference --preserve=mode,links -v ${B}/src/tests/data/* ${D}${datadir}/${PN}/tests/data/ } -PACKAGES += "${PN}-python3" +PACKAGES += "${PN}-test ${PN}-python3" FILES:${PN}-python3 = "${libdir}/python3" RDEPENDS:${PN}-python3 += "python3" - +RDEPENDS:${PN}-bin += "${PN}" +RDEPENDS:${PN}-test += "${PN}" +FILES:${PN}:remove = "${bindir}/*" +FILES:${PN}-bin:remove = "${bindir}/*" +FILES:${PN}-bin = "${bindir}/botan" +FILES:${PN}-test = "${bindir}/botan-test ${datadir}/${PN}/tests/data" COMPATIBLE_HOST:riscv32 = "null" + +BBCLASSEXTEND = "native nativesdk"