softhsm: enable objectstore backend
PATCH 1/1 softhsm: enable objectstore backend
We already depend on sqlite, but the objectstore backend using it is not enabled by default. Add the necessary configure option.
The db backend is more robust when accessing the objectstore from many parallel processes (such as during kernel module signing).
--- meta-oe/recipes-security/softhsm/softhsm_2.6.1.bb | 1 + 1 file changed, 1 insertion(+)
meta-oe/recipes-security/softhsm/softhsm_2.6.1.bb +1 -0
@@ -11,6 +11,7 @@ SRC_URI[sha256sum] = "61249473054bcd1811519ef9a989a880a7bdcc36d317c9c25457fc614d inherit autotools pkgconfig siteinfo EXTRA_OECONF += " --with-sqlite3=${STAGING_DIR_HOST}/usr" +EXTRA_OECONF += " --with-objectstore-backend-db" EXTRA_OECONF += "${@oe.utils.conditional('SITEINFO_BITS', '64', ' --enable-64bit', '', d)}" PACKAGECONFIG ?= "ecc eddsa pk11 openssl"
Signature · 1 line
2.30.2
seeing a build failure
https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/2389/steps/15/logs/stdio
Quoted 36 lines · Jan Luebbe
We already depend on sqlite, but the objectstore backend using it is not enabled by default. Add the necessary configure option.
The db backend is more robust when accessing the objectstore from many parallel processes (such as during kernel module signing).
Signed-off-by Jan Luebbe <[email protected]>--- meta-oe/recipes-security/softhsm/softhsm_2.6.1.bb | 1 + 1 file changed, 1 insertion(+)meta-oe/recipes-security/softhsm/softhsm_2.6.1.bb +1
-1@@ -11,6 +11,7 @@ SRC_URI[sha256sum] = "61249473054bcd1811519ef9a989a880a7bdcc36d317c9c25457fc614d inherit autotools pkgconfig siteinfo EXTRA_OECONF += " --with-sqlite3=${STAGING_DIR_HOST}/usr" +EXTRA_OECONF += " --with-objectstore-backend-db" EXTRA_OECONF += "${@oe.utils.conditional('SITEINFO_BITS', '64', ' --enable-64bit', '', d)}" PACKAGECONFIG ?= "ecc eddsa pk11 openssl" --2.30.2
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#100721): https://lists.openembedded.org/g/openembedded-devel/message/100721
Mute This Topic: https://lists.openembedded.org/mt/96496618/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 3 lines · Khem Raj
seeing a build failure
https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/2389/steps/15/logs/stdio
It is looking for the sqlite3 binary during configure:
https://github.com/opendnssec/SoftHSMv2/blob/2.6.1/m4/acx_sqlite3.m4#L12
This worked for me, as sqlite3 was leaking in from the host.
It doesn't actually use the binary though, from a quick look at least. What's the better fix? DEPEND on sqlite3-native or remove the AC_PATH_PROGS check?
Thanks,
Jan
Quoted 39 lines · Jan Luebbe
Quoted 25 lines
We already depend on sqlite, but the objectstore backend using it is not enabled by default. Add the necessary configure option.
The db backend is more robust when accessing the objectstore from many parallel processes (such as during kernel module signing).
Signed-off-by Jan Luebbe <[email protected]>--- meta-oe/recipes-security/softhsm/softhsm_2.6.1.bb | 1 + 1 file changed, 1 insertion(+)meta-oe/recipes-security/softhsm/softhsm_2.6.1.bb +1
-1@@ -11,6 +11,7 @@ SRC_URI[sha256sum] = "61249473054bcd1811519ef9a989a880a7bdcc36d317c9c25457fc614d inherit autotools pkgconfig siteinfo EXTRA_OECONF += " --with-sqlite3=${STAGING_DIR_HOST}/usr" +EXTRA_OECONF += " --with-objectstore-backend-db" EXTRA_OECONF += "${@oe.utils.conditional('SITEINFO_BITS', '64', ' --enable-64bit', '', d)}" PACKAGECONFIG ?= "ecc eddsa pk11 openssl" --Quoted 5 lines
2.30.2
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#100780): https://lists.openembedded.org/g/openembedded-devel/message/100780
Mute This Topic: https://lists.openembedded.org/mt/96496618/2167243
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 4 lines
Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Quoted 4 lines · Jan Lübbe
Quoted 2 lines · Khem Raj
seeing a build failure
Quoted 8 lines
Quoted 1 line
https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/2389/steps/15/logs/stdio
It is looking for the sqlite3 binary during configure:
https://github.com/opendnssec/SoftHSMv2/blob/2.6.1/m4/acx_sqlite3.m4#L12
This worked for me, as sqlite3 was leaking in from the host.It doesn't actually use the binary though, from a quick look at least. What's the better fix? DEPEND on sqlite3-native or remove the
AC_PATH_PROGScheck?
if it does not use it then right fix would be to remove the check as it is useless.
however if it is needed during builld then perhaps depend on sqlite3-native since we want
consistent builds.
Quoted 49 lines
Thanks,
JanQuoted 24 lines · Jan Luebbe
Quoted 23 lines
We already depend on sqlite, but the objectstore backend using it is not enabled by default. Add the necessary configure option.
The db backend is more robust when accessing the objectstore from many parallel processes (such as during kernel module signing).
Signed-off-by Jan Luebbe <[email protected]>--- meta-oe/recipes-security/softhsm/softhsm_2.6.1.bb | 1 + 1 file changed, 1 insertion(+)meta-oe/recipes-security/softhsm/softhsm_2.6.1.bb +1
-0@@ -11,6 +11,7 @@ SRC_URI[sha256sum] = "61249473054bcd1811519ef9a989a880a7bdcc36d317c9c25457fc614d inherit autotools pkgconfig siteinfo EXTRA_OECONF += " --with-sqlite3=${STAGING_DIR_HOST}/usr" +EXTRA_OECONF += " --with-objectstore-backend-db" EXTRA_OECONF += "${@oe.utils.conditional('SITEINFO_BITS', '64', ' --enable-64bit', '', d)}"Quoted 15 lines
Quoted 7 lines
meta-oe/recipes-security/softhsm/softhsm_2.6.1.bb +0
-1PACKAGECONFIG ?= "ecc eddsa pk11 openssl" --2.30.2
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#100780): https://lists.openembedded.org/g/openembedded-devel/message/100780
Mute This Topic: https://lists.openembedded.org/mt/96496618/2167243
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=---
Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |