openct: merge do_install and do_install_append
PATCH 1/6 openct: merge do_install and do_install_append
There is no reason why both should be used in the same recipe. Merge them.
--- meta-oe/recipes-support/openct/openct_0.6.20.bb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
meta-oe/recipes-support/openct/openct_0.6.20.bb +2 -4
@@ -56,10 +56,6 @@ FILES_${PN}-dbg += " \ INSANE_SKIP_${PN} += "dev-deps" -do_install_append() { - rm -r ${D}/${localstatedir}/run -} - do_install () { rm -rf ${D} install -d ${D}/etc
@@ -87,4 +83,6 @@ do_install () { install -dm 755 ${D}${localstatedir}/run/openct touch ${D}${localstatedir}/run/openct/status chmod 644 ${D}${localstatedir}/run/openct/status + + rm -r ${D}/${localstatedir}/run }
Signature · 1 line
2.24.0
PATCH 2/6 pcsc-lite: add support for native builds
This is needed as a dependency when using SoftHSM from the PKCS#11 OpenSSL engine for code singing.
Add a udev PACKAGECONFIG, as this is only useful on the target. Also don't RRECOMMEND ccid for the native variant.
--- meta-oe/recipes-support/pcsc-lite/pcsc-lite_1.8.25.bb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
meta-oe/recipes-support/pcsc-lite/pcsc-lite_1.8.25.bb +6 -3
@@ -9,7 +9,6 @@ LICENSE_${PN}-dbg = "BSD & GPLv3+" LICENSE_${PN}-spy = "GPLv3+" LICENSE_${PN}-spy-dev = "GPLv3+" LIC_FILES_CHKSUM = "file://COPYING;md5=628c01ba985ecfa21677f5ee2d5202f6" -DEPENDS = "udev" SRC_URI = "https://pcsclite.apdu.fr/files/${BP}.tar.bz2" SRC_URI[md5sum] = "c20650a36062ab1689f37f3302c988f2"
@@ -19,19 +18,21 @@ inherit autotools systemd pkgconfig EXTRA_OECONF = " \ --disable-libusb \ - --enable-libudev \ --enable-usbdropdir=${libdir}/pcsc/drivers \ " S = "${WORKDIR}/pcsc-lite-${PV}" -PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" +PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} udev" +PACKAGECONFIG_class-native ??= "" PACKAGECONFIG[systemd] = ",--disable-libsystemd,systemd," +PACKAGECONFIG[udev] = "--enable-libudev,--disable-libudev,udev" PACKAGES = "${PN} ${PN}-dbg ${PN}-dev ${PN}-lib ${PN}-doc ${PN}-spy ${PN}-spy-dev" RRECOMMENDS_${PN} = "ccid" +RRECOMMENDS_${PN}_class-native = "" FILES_${PN} = "${sbindir}/pcscd" FILES_${PN}-lib = "${libdir}/libpcsclite*${SOLIBS}"
@@ -50,3 +51,5 @@ RREPLACES_${PN} += "${PN}-systemd" RCONFLICTS_${PN} += "${PN}-systemd" SYSTEMD_SERVICE_${PN} = "pcscd.socket" RDEPENDS_${PN}-spy +="python" + +BBCLASSEXTEND="native"
Signature · 1 line
2.24.0
PATCH 3/6 opensc: use pcsc-lite instead of openct by default
In reply to Jan LuebbeOpenCT upstream maintenance seems to have stopped and OpenSC upstream uses pcsc-lite by default in their configure script. Add PACKAGECONFIGs for each and select pcsc by default.
As the openct package depends on pcsc-lite by itself, this avoids an unnecessary package in the default case.
--- meta-oe/recipes-support/opensc/opensc_0.19.0.bb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
meta-oe/recipes-support/opensc/opensc_0.19.0.bb +6 -3
@@ -16,20 +16,23 @@ SRCREV = "f1691fc91fc113191c3a8aaf5facd6983334ec47" SRC_URI = "git://github.com/OpenSC/OpenSC \ file://0001-Remove-redundant-logging.patch \ " -DEPENDS = "openct pcsc-lite virtual/libiconv openssl" +DEPENDS = "virtual/libiconv openssl" S = "${WORKDIR}/git" inherit autotools pkgconfig bash-completion EXTRA_OECONF = " \ --disable-static \ - --enable-openct \ - --disable-pcsc \ --disable-ctapi \ --disable-doc \ " EXTRA_OEMAKE = "DESTDIR=${D}" +PACKAGECONFIG ??= "pcsc" + +PACKAGECONFIG[openct] = "--enable-openct,--disable-openct,openct" +PACKAGECONFIG[pcsc] = "--enable-pcsc,--disable-pcsc,pcsc-lite" + RDEPENDS_${PN} = "readline" FILES_${PN} += "\
Signature · 1 line
2.24.0
PATCH 4/6 opensc: add support for native builds
In reply to Jan LuebbeThis is needed as a dependency when using SoftHSM from the PKCS#11 OpenSSL engine for code singing.
--- meta-oe/recipes-support/opensc/opensc_0.19.0.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-oe/recipes-support/opensc/opensc_0.19.0.bb +2 -0
@@ -45,3 +45,5 @@ FILES_${PN}-dev += "\ ${libdir}/pkcs11/onepin-opensc-pkcs11.so \ ${libdir}/pkcs11/pkcs11-spy.so \ " + +BBCLASSEXTEND="native"
Signature · 1 line
2.24.0
PATCH 5/6 libp11: add support for native builds
In reply to Jan LuebbeThis is needed as a dependency when using SoftHSM from the PKCS#11 OpenSSL engine for code singing.
--- meta-oe/recipes-support/libp11/libp11_0.4.10.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-oe/recipes-support/libp11/libp11_0.4.10.bb +2 -0
@@ -24,3 +24,5 @@ do_install_append () { FILES_${PN} += "${libdir}/engines*/pkcs11.so" FILES_${PN}-dev += "${libdir}/engines*/libpkcs11${SOLIBSDEV}" + +BBCLASSEXTEND="native"
Signature · 1 line
2.24.0
PATCH 6/6 softhsm: add recipe
In reply to Jan LuebbeThis is useful for consolidation of code-signing interfaces when building an image with verified boot mechanisms or signed update artifacts. It can also be used on the target as a backend for software which uses the PKCS#11 API to access private key material.
--- .../recipes-security/softhsm/softhsm_git.bb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 meta-oe/recipes-security/softhsm/softhsm_git.bb
meta-oe/recipes-security/softhsm/softhsm_git.bb new file +18 -0
@@ -0,0 +1,18 @@ +SUMMARY = "PKCS#11 HSM/Token Emulator" +HOMEPAGE = "https://www.opendnssec.org/softhsm/" +LICENSE = "BSD-2-Clause & ISC" +LIC_FILES_CHKSUM = "file://LICENSE;md5=ef3f77a3507c3d91e75b9f2bdaee4210" +DEPENDS = "openssl" +PV = "2.5.0" + +SRC_URI = "git://github.com/opendnssec/SoftHSMv2.git;branch=master" +SRCREV = "369df0383d101bc8952692c2a368ac8bc887d1b4" + +S = "${WORKDIR}/git" + +inherit autotools pkgconfig + +# EdDSA requires OpenSSL >= 1.1.1 +EXTRA_OECONF = "--enable-eddsa --disable-gost" + +BBCLASSEXTEND = "native"
Signature · 1 line
2.24.0
✗ patchtest: failure for "[meta-oe] openct: merge do_ins..." and 5 more
In reply to Jan Luebbe== Series Details ==
Series: "[meta-oe] openct: merge do_ins..." and 5 more
Revision: 1
URL : https://patchwork.openembedded.org/series/21281/
State : failure
== Summary ==
Thank you for submitting this patch series to OpenEmbedded Core. This is an automated response. Several tests have been executed on the proposed series by patchtest resulting in the following failures:
* Patch [meta-oe,1/6] openct: merge do_install and do_install_append Issue Series sent to the wrong mailing list [test_target_mailing_list] Suggested fix Check the project's README (meta-oe,1/6) and send the patch to the indicated list
* Issue Series does not apply on top of target branch [test_series_merge_on_head]
Suggested fix Rebase your series on top of targeted branch
Targeted branch master (currently at dfb3b56641)
If you believe any of these test results are incorrect, please reply to the mailing list ([email protected]) raising your concerns. Otherwise we would appreciate you correcting the issues and submitting a new version of the patchset if applicable. Please ensure you add/increment the version number when sending the new version (i.e. [PATCH] -> [PATCH v2] -> [PATCH v3] -> ...).
---
Guidelines: https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe