commit:     da3ec61bf72224423cc9ca8aaf76785d84f1e077
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Jul  7 05:51:15 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jul  7 06:05:11 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da3ec61b

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 <sam <AT> gentoo.org>

 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(+)

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

Reply via email to