From da3ec61bf72224423cc9ca8aaf76785d84f1e077 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 7 Jul 2024 06:51:15 +0100 Subject: dev-libs/libgcrypt: filter-flags The codebase had had various UB in the past IIRC, it's sensitive to optimisation, and it already forces some components to be built with -O0. Signed-off-by: Sam James --- dev-libs/libgcrypt/libgcrypt-1.10.2.ebuild | 8 ++++++++ dev-libs/libgcrypt/libgcrypt-1.10.3-r1.ebuild | 8 ++++++++ dev-libs/libgcrypt/libgcrypt-1.10.3-r2.ebuild | 8 ++++++++ dev-libs/libgcrypt/libgcrypt-1.11.0.ebuild | 8 ++++++++ 4 files changed, 32 insertions(+) (limited to 'dev-libs/libgcrypt') diff --git a/dev-libs/libgcrypt/libgcrypt-1.10.2.ebuild b/dev-libs/libgcrypt/libgcrypt-1.10.2.ebuild index 06b52ad4ddb6..9747d039fe02 100644 --- a/dev-libs/libgcrypt/libgcrypt-1.10.2.ebuild +++ b/dev-libs/libgcrypt/libgcrypt-1.10.2.ebuild @@ -78,6 +78,14 @@ src_prepare() { eautoreconf } +src_configure() { + # Sensitive to optimisation; parts of the codebase are built with + # -O0 already. Don't risk it with UB. + strip-flags + + multilib-minimal_src_configure +} + multilib_src_configure() { if [[ ${CHOST} == *86*-solaris* ]] ; then # ASM code uses GNU ELF syntax, divide in particular, we need to diff --git a/dev-libs/libgcrypt/libgcrypt-1.10.3-r1.ebuild b/dev-libs/libgcrypt/libgcrypt-1.10.3-r1.ebuild index 5d8b88fc0846..e2225f423866 100644 --- a/dev-libs/libgcrypt/libgcrypt-1.10.3-r1.ebuild +++ b/dev-libs/libgcrypt/libgcrypt-1.10.3-r1.ebuild @@ -81,6 +81,14 @@ src_prepare() { eautoreconf } +src_configure() { + # Sensitive to optimisation; parts of the codebase are built with + # -O0 already. Don't risk it with UB. + strip-flags + + multilib-minimal_src_configure +} + multilib_src_configure() { if [[ ${CHOST} == *86*-solaris* ]] ; then # ASM code uses GNU ELF syntax, divide in particular, we need to diff --git a/dev-libs/libgcrypt/libgcrypt-1.10.3-r2.ebuild b/dev-libs/libgcrypt/libgcrypt-1.10.3-r2.ebuild index 7b2ed8bd2e29..38eb6264d7e6 100644 --- a/dev-libs/libgcrypt/libgcrypt-1.10.3-r2.ebuild +++ b/dev-libs/libgcrypt/libgcrypt-1.10.3-r2.ebuild @@ -84,6 +84,14 @@ src_prepare() { eautoreconf } +src_configure() { + # Sensitive to optimisation; parts of the codebase are built with + # -O0 already. Don't risk it with UB. + strip-flags + + multilib-minimal_src_configure +} + multilib_src_configure() { if [[ ${CHOST} == *86*-solaris* ]] ; then # ASM code uses GNU ELF syntax, divide in particular, we need to diff --git a/dev-libs/libgcrypt/libgcrypt-1.11.0.ebuild b/dev-libs/libgcrypt/libgcrypt-1.11.0.ebuild index 9e28b00286b3..f3520b916d93 100644 --- a/dev-libs/libgcrypt/libgcrypt-1.11.0.ebuild +++ b/dev-libs/libgcrypt/libgcrypt-1.11.0.ebuild @@ -85,6 +85,14 @@ src_prepare() { eautoreconf } +src_configure() { + # Sensitive to optimisation; parts of the codebase are built with + # -O0 already. Don't risk it with UB. + strip-flags + + multilib-minimal_src_configure +} + multilib_src_configure() { if [[ ${CHOST} == *86*-solaris* ]] ; then # ASM code uses GNU ELF syntax, divide in particular, we need to -- cgit v1.2.3-65-gdbad