All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][PATCH 1/6] openct: merge do_install and do_install_append
@ 2019-11-21 11:12 Jan Luebbe
  2019-11-21 11:12 ` [meta-oe][PATCH 2/6] pcsc-lite: add support for native builds Jan Luebbe
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Jan Luebbe @ 2019-11-21 11:12 UTC (permalink / raw)
  To: openembedded-core

There is no reason why both should be used in the same recipe. Merge
them.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
---
 meta-oe/recipes-support/openct/openct_0.6.20.bb | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/meta-oe/recipes-support/openct/openct_0.6.20.bb b/meta-oe/recipes-support/openct/openct_0.6.20.bb
index 67b7c2975302..08b2e3c23236 100644
--- a/meta-oe/recipes-support/openct/openct_0.6.20.bb
+++ b/meta-oe/recipes-support/openct/openct_0.6.20.bb
@@ -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
 }
-- 
2.24.0



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [meta-oe][PATCH 2/6] pcsc-lite: add support for native builds
  2019-11-21 11:12 [meta-oe][PATCH 1/6] openct: merge do_install and do_install_append Jan Luebbe
@ 2019-11-21 11:12 ` Jan Luebbe
  2019-11-21 11:12 ` [meta-oe][PATCH 3/6] opensc: use pcsc-lite instead of openct by default Jan Luebbe
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: Jan Luebbe @ 2019-11-21 11:12 UTC (permalink / raw)
  To: openembedded-core

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.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
---
 meta-oe/recipes-support/pcsc-lite/pcsc-lite_1.8.25.bb | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/meta-oe/recipes-support/pcsc-lite/pcsc-lite_1.8.25.bb b/meta-oe/recipes-support/pcsc-lite/pcsc-lite_1.8.25.bb
index a87c228a8374..33f7f839cb1b 100644
--- a/meta-oe/recipes-support/pcsc-lite/pcsc-lite_1.8.25.bb
+++ b/meta-oe/recipes-support/pcsc-lite/pcsc-lite_1.8.25.bb
@@ -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"
-- 
2.24.0



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [meta-oe][PATCH 3/6] opensc: use pcsc-lite instead of openct by default
  2019-11-21 11:12 [meta-oe][PATCH 1/6] openct: merge do_install and do_install_append Jan Luebbe
  2019-11-21 11:12 ` [meta-oe][PATCH 2/6] pcsc-lite: add support for native builds Jan Luebbe
@ 2019-11-21 11:12 ` Jan Luebbe
  2019-11-21 11:12 ` [meta-oe][PATCH 4/6] opensc: add support for native builds Jan Luebbe
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: Jan Luebbe @ 2019-11-21 11:12 UTC (permalink / raw)
  To: openembedded-core

OpenCT 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.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
---
 meta-oe/recipes-support/opensc/opensc_0.19.0.bb | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/meta-oe/recipes-support/opensc/opensc_0.19.0.bb b/meta-oe/recipes-support/opensc/opensc_0.19.0.bb
index bc1722e394f6..440859a37a93 100644
--- a/meta-oe/recipes-support/opensc/opensc_0.19.0.bb
+++ b/meta-oe/recipes-support/opensc/opensc_0.19.0.bb
@@ -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} += "\
-- 
2.24.0



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [meta-oe][PATCH 4/6] opensc: add support for native builds
  2019-11-21 11:12 [meta-oe][PATCH 1/6] openct: merge do_install and do_install_append Jan Luebbe
  2019-11-21 11:12 ` [meta-oe][PATCH 2/6] pcsc-lite: add support for native builds Jan Luebbe
  2019-11-21 11:12 ` [meta-oe][PATCH 3/6] opensc: use pcsc-lite instead of openct by default Jan Luebbe
@ 2019-11-21 11:12 ` Jan Luebbe
  2019-11-21 11:12 ` [meta-oe][PATCH 5/6] libp11: " Jan Luebbe
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: Jan Luebbe @ 2019-11-21 11:12 UTC (permalink / raw)
  To: openembedded-core

This is needed as a dependency when using SoftHSM from the PKCS#11
OpenSSL engine for code singing.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
---
 meta-oe/recipes-support/opensc/opensc_0.19.0.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-oe/recipes-support/opensc/opensc_0.19.0.bb b/meta-oe/recipes-support/opensc/opensc_0.19.0.bb
index 440859a37a93..6354ca3f48ff 100644
--- a/meta-oe/recipes-support/opensc/opensc_0.19.0.bb
+++ b/meta-oe/recipes-support/opensc/opensc_0.19.0.bb
@@ -45,3 +45,5 @@ FILES_${PN}-dev += "\
     ${libdir}/pkcs11/onepin-opensc-pkcs11.so \
     ${libdir}/pkcs11/pkcs11-spy.so \
 "
+
+BBCLASSEXTEND="native"
-- 
2.24.0



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [meta-oe][PATCH 5/6] libp11: add support for native builds
  2019-11-21 11:12 [meta-oe][PATCH 1/6] openct: merge do_install and do_install_append Jan Luebbe
                   ` (2 preceding siblings ...)
  2019-11-21 11:12 ` [meta-oe][PATCH 4/6] opensc: add support for native builds Jan Luebbe
@ 2019-11-21 11:12 ` Jan Luebbe
  2019-11-21 11:12 ` [meta-oe][PATCH 6/6] softhsm: add recipe Jan Luebbe
  2019-11-21 12:02 ` ✗ patchtest: failure for "[meta-oe] openct: merge do_ins..." and 5 more Patchwork
  5 siblings, 0 replies; 8+ messages in thread
From: Jan Luebbe @ 2019-11-21 11:12 UTC (permalink / raw)
  To: openembedded-core

This is needed as a dependency when using SoftHSM from the PKCS#11
OpenSSL engine for code singing.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
---
 meta-oe/recipes-support/libp11/libp11_0.4.10.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-oe/recipes-support/libp11/libp11_0.4.10.bb b/meta-oe/recipes-support/libp11/libp11_0.4.10.bb
index b40223e8abcb..fc2ec9935f56 100644
--- a/meta-oe/recipes-support/libp11/libp11_0.4.10.bb
+++ b/meta-oe/recipes-support/libp11/libp11_0.4.10.bb
@@ -24,3 +24,5 @@ do_install_append () {
 
 FILES_${PN} += "${libdir}/engines*/pkcs11.so"
 FILES_${PN}-dev += "${libdir}/engines*/libpkcs11${SOLIBSDEV}"
+
+BBCLASSEXTEND="native"
-- 
2.24.0



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [meta-oe][PATCH 6/6] softhsm: add recipe
  2019-11-21 11:12 [meta-oe][PATCH 1/6] openct: merge do_install and do_install_append Jan Luebbe
                   ` (3 preceding siblings ...)
  2019-11-21 11:12 ` [meta-oe][PATCH 5/6] libp11: " Jan Luebbe
@ 2019-11-21 11:12 ` Jan Luebbe
  2019-11-21 12:02 ` ✗ patchtest: failure for "[meta-oe] openct: merge do_ins..." and 5 more Patchwork
  5 siblings, 0 replies; 8+ messages in thread
From: Jan Luebbe @ 2019-11-21 11:12 UTC (permalink / raw)
  To: openembedded-core

This 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.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
---
 .../recipes-security/softhsm/softhsm_git.bb    | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 meta-oe/recipes-security/softhsm/softhsm_git.bb

diff --git a/meta-oe/recipes-security/softhsm/softhsm_git.bb b/meta-oe/recipes-security/softhsm/softhsm_git.bb
new file mode 100644
index 000000000000..3236cb9a6097
--- /dev/null
+++ b/meta-oe/recipes-security/softhsm/softhsm_git.bb
@@ -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"
-- 
2.24.0



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* ✗ patchtest: failure for "[meta-oe] openct: merge do_ins..." and 5 more
  2019-11-21 11:12 [meta-oe][PATCH 1/6] openct: merge do_install and do_install_append Jan Luebbe
                   ` (4 preceding siblings ...)
  2019-11-21 11:12 ` [meta-oe][PATCH 6/6] softhsm: add recipe Jan Luebbe
@ 2019-11-21 12:02 ` Patchwork
  5 siblings, 0 replies; 8+ messages in thread
From: Patchwork @ 2019-11-21 12:02 UTC (permalink / raw)
  To: Jan Luebbe; +Cc: openembedded-core

== 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 (openembedded-core@lists.openembedded.org) 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



^ permalink raw reply	[flat|nested] 8+ messages in thread

* [meta-oe][PATCH 1/6] openct: merge do_install and do_install_append
@ 2019-11-21 12:09 Jan Luebbe
  0 siblings, 0 replies; 8+ messages in thread
From: Jan Luebbe @ 2019-11-21 12:09 UTC (permalink / raw)
  To: openembedded-devel

There is no reason why both should be used in the same recipe. Merge
them.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
---
 meta-oe/recipes-support/openct/openct_0.6.20.bb | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/meta-oe/recipes-support/openct/openct_0.6.20.bb b/meta-oe/recipes-support/openct/openct_0.6.20.bb
index 67b7c2975302..08b2e3c23236 100644
--- a/meta-oe/recipes-support/openct/openct_0.6.20.bb
+++ b/meta-oe/recipes-support/openct/openct_0.6.20.bb
@@ -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
 }
-- 
2.24.0



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-11-21 12:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-21 11:12 [meta-oe][PATCH 1/6] openct: merge do_install and do_install_append Jan Luebbe
2019-11-21 11:12 ` [meta-oe][PATCH 2/6] pcsc-lite: add support for native builds Jan Luebbe
2019-11-21 11:12 ` [meta-oe][PATCH 3/6] opensc: use pcsc-lite instead of openct by default Jan Luebbe
2019-11-21 11:12 ` [meta-oe][PATCH 4/6] opensc: add support for native builds Jan Luebbe
2019-11-21 11:12 ` [meta-oe][PATCH 5/6] libp11: " Jan Luebbe
2019-11-21 11:12 ` [meta-oe][PATCH 6/6] softhsm: add recipe Jan Luebbe
2019-11-21 12:02 ` ✗ patchtest: failure for "[meta-oe] openct: merge do_ins..." and 5 more Patchwork
2019-11-21 12:09 [meta-oe][PATCH 1/6] openct: merge do_install and do_install_append Jan Luebbe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.