app-crypt/p11-kit: Apply Flatcar modifications

This commit is contained in:
Krzesimir Nowak 2021-11-09 13:14:23 +01:00
parent ce7cc55536
commit 2cc885be59
2 changed files with 12 additions and 1 deletions

View File

@ -0,0 +1,4 @@
We forked this package to fix the systemd user unit directory and bash
completion directory detection in the cross-compilation scenario.
These fixes could be upstreamed to gentoo.

View File

@ -3,7 +3,9 @@
EAPI=7 EAPI=7
inherit multilib-minimal # Flatcar: inherit systemd eclass for the systemd user unit directory
# getter, and bash-completion-r1 for bash completion directory getter.
inherit multilib-minimal systemd bash-completion-r1
DESCRIPTION="Provides a standard configuration setup for installing PKCS#11" DESCRIPTION="Provides a standard configuration setup for installing PKCS#11"
HOMEPAGE="https://p11-glue.github.io/p11-glue/p11-kit.html" HOMEPAGE="https://p11-glue.github.io/p11-glue/p11-kit.html"
@ -42,6 +44,11 @@ src_prepare() {
} }
multilib_src_configure() { multilib_src_configure() {
# Flatcar: Override the detection of the systemd user unit
# directory and bash completion directory with these
# environment variables.
local -x systemduserunitdir=$(systemd_get_userunitdir)
local -x bashcompdir=$(get_bashcompdir)
ECONF_SOURCE="${S}" econf \ ECONF_SOURCE="${S}" econf \
$(use_enable trust trust-module) \ $(use_enable trust trust-module) \
$(use_with trust trust-paths ${EPREFIX}/etc/ssl/certs/ca-certificates.crt) \ $(use_with trust trust-paths ${EPREFIX}/etc/ssl/certs/ca-certificates.crt) \