mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-20 22:27:17 -08:00
app-crypt/tpm2-pkcs11: Remove -WError, fix clang compile
Closes: https://bugs.gentoo.org/744439 Closes: https://bugs.gentoo.org/744457 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Salah Coronya <salah.coronya@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/17653 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 3088817..d789ce9 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -460,7 +460,6 @@ AS_IF([test x"$enable_hardening" != xno], [
|
||||
|
||||
add_hardened_c_flag([-Wall])
|
||||
add_hardened_c_flag([-Wextra])
|
||||
- add_hardened_c_flag([-Werror])
|
||||
|
||||
add_hardened_c_flag([-Wformat])
|
||||
add_hardened_c_flag([-Wformat-security])
|
||||
@@ -7,7 +7,7 @@ PYTHON_COMPAT=( python3_{7,8} )
|
||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||
PYTHON_REQ_USE="sqlite"
|
||||
|
||||
inherit distutils-r1
|
||||
inherit autotools distutils-r1
|
||||
|
||||
DESCRIPTION="A PKCS#11 interface for TPM2 hardware"
|
||||
HOMEPAGE="https://tpm2-software.github.io/"
|
||||
@@ -35,7 +35,18 @@ DEPEND="${RDEPEND}"
|
||||
BDEPEND="sys-devel/autoconf-archive
|
||||
virtual/pkgconfig"
|
||||
|
||||
PATCHES=(
|
||||
"$FILESDIR/${PN}-1.3.2-Remove-WError.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# we need the default version of src_configure, not the one exported
|
||||
# by distutils-r1
|
||||
default
|
||||
}
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ PYTHON_COMPAT=( python3_{7,8} )
|
||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||
PYTHON_REQ_USE="sqlite"
|
||||
|
||||
inherit distutils-r1
|
||||
inherit autotools distutils-r1
|
||||
|
||||
DESCRIPTION="A PKCS#11 interface for TPM2 hardware"
|
||||
HOMEPAGE="https://tpm2-software.github.io/"
|
||||
@@ -38,6 +38,15 @@ DEPEND="${RDEPEND}"
|
||||
BDEPEND="sys-devel/autoconf-archive
|
||||
virtual/pkgconfig"
|
||||
|
||||
PATCHES=(
|
||||
"$FILESDIR/${PN}-1.3.2-Remove-WError.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_enable fapi)
|
||||
|
||||
Reference in New Issue
Block a user