All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/softhsm2: add p11-kit optional dependency
@ 2021-10-30 21:55 Fabrice Fontaine
  2021-11-03 22:08 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2021-10-30 21:55 UTC (permalink / raw)
  To: buildroot; +Cc: José Pekkarinen, Fabrice Fontaine

p11-kit is an optional dependency which is enabled by default since the
addition of the package in commit
53873b6daecd2a97740833cae7c5b4cdb185a6b2 and softhsm2 needs help to
properly install files:

 /usr/bin/install -c -m 644 softhsm2.module '/home/buildroot/autobuild/instance-0/output-1/host/nios2-buildroot-linux-gnu/sysroot/home/buildroot/autobuild/instance-0/output-1/host/bin/../nios2-buildroot-linux-gnu/sysroot/usr/share/p11-kit/modules'

[...]

softhsm2: installs files in /home/buildroot/autobuild/instance-0/output-1/host/nios2-buildroot-linux-gnu/sysroot//home/buildroot/autobuild/instance-0/output-1
package/pkg-generic.mk:330: recipe for target '/home/buildroot/autobuild/instance-0/output-1/build/softhsm2-2.6.1/.stamp_staging_installed' failed

Fixes:
 - http://autobuild.buildroot.org/results/a05bb71cfe016f793c89b2a035835718836039c8

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/softhsm2/softhsm2.mk | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/package/softhsm2/softhsm2.mk b/package/softhsm2/softhsm2.mk
index c418e3648e..5e37e42dde 100644
--- a/package/softhsm2/softhsm2.mk
+++ b/package/softhsm2/softhsm2.mk
@@ -12,4 +12,13 @@ SOFTHSM2_LICENSE_FILES = LICENSE
 SOFTHSM2_DEPENDENCIES = openssl
 SOFTHSM2_INSTALL_STAGING = YES
 
+ifeq ($(BR2_PACKAGE_P11_KIT),y)
+SOFTHSM2_CONF_OPTS += \
+	--enable-p11-kit \
+	--with-p11-kit=/usr/share/p11-kit/modules
+SOFTHSM2_DEPENDENCIES += p11-kit
+else
+SOFTHSM2_CONF_OPTS += --disable-p11-kit
+endif
+
 $(eval $(autotools-package))
-- 
2.33.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] package/softhsm2: add p11-kit optional dependency
  2021-10-30 21:55 [Buildroot] [PATCH 1/1] package/softhsm2: add p11-kit optional dependency Fabrice Fontaine
@ 2021-11-03 22:08 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2021-11-03 22:08 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: José Pekkarinen, buildroot

On Sat, 30 Oct 2021 23:55:21 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> p11-kit is an optional dependency which is enabled by default since the
> addition of the package in commit
> 53873b6daecd2a97740833cae7c5b4cdb185a6b2 and softhsm2 needs help to
> properly install files:
> 
>  /usr/bin/install -c -m 644 softhsm2.module '/home/buildroot/autobuild/instance-0/output-1/host/nios2-buildroot-linux-gnu/sysroot/home/buildroot/autobuild/instance-0/output-1/host/bin/../nios2-buildroot-linux-gnu/sysroot/usr/share/p11-kit/modules'
> 
> [...]
> 
> softhsm2: installs files in /home/buildroot/autobuild/instance-0/output-1/host/nios2-buildroot-linux-gnu/sysroot//home/buildroot/autobuild/instance-0/output-1
> package/pkg-generic.mk:330: recipe for target '/home/buildroot/autobuild/instance-0/output-1/build/softhsm2-2.6.1/.stamp_staging_installed' failed
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/a05bb71cfe016f793c89b2a035835718836039c8
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  package/softhsm2/softhsm2.mk | 9 +++++++++
>  1 file changed, 9 insertions(+)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2021-11-03 22:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-30 21:55 [Buildroot] [PATCH 1/1] package/softhsm2: add p11-kit optional dependency Fabrice Fontaine
2021-11-03 22:08 ` Thomas Petazzoni

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.