commit:     15a4f3b43ce18c24bcae220ab0b03071502d7040
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Mon Jan  5 00:32:30 2026 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Mon Jan  5 04:26:32 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15a4f3b4

www-servers/h2o: mark as LTO-unsafe, strict-aliasing unsafe

Closes: https://bugs.gentoo.org/967654
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 www-servers/h2o/h2o-2.3.0_pre20250130.ebuild | 12 ++++++++++--
 www-servers/h2o/h2o-9999.ebuild              | 12 ++++++++++--
 2 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/www-servers/h2o/h2o-2.3.0_pre20250130.ebuild 
b/www-servers/h2o/h2o-2.3.0_pre20250130.ebuild
index e8e359e5c3db..33f27a6ef730 100644
--- a/www-servers/h2o/h2o-2.3.0_pre20250130.ebuild
+++ b/www-servers/h2o/h2o-2.3.0_pre20250130.ebuild
@@ -1,11 +1,11 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="8"
 SSL_DEPS_SKIP=1
 USE_RUBY="ruby31 ruby32 ruby33"
 
-inherit cmake ruby-single ssl-cert systemd toolchain-funcs vcs-snapshot
+inherit cmake flag-o-matic ruby-single ssl-cert systemd toolchain-funcs 
vcs-snapshot
 
 EGIT_COMMIT="26b116e9536be8cf07036185e3edf9d721c9bac2"
 
@@ -68,6 +68,14 @@ src_prepare() {
 }
 
 src_configure() {
+       if use libh2o; then
+               # -Werror=strict-aliasing
+               # https://bugs.gentoo.org/967654
+               # https://github.com/h2o/h2o/issues/3541
+               append-flags -fno-strict-aliasing
+               filter-lto
+       fi
+
        local mycmakeargs=(
                -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}"/etc/${PN}
                -DWITH_CCACHE=OFF

diff --git a/www-servers/h2o/h2o-9999.ebuild b/www-servers/h2o/h2o-9999.ebuild
index cdb78c88bf7f..88131ac2b92a 100644
--- a/www-servers/h2o/h2o-9999.ebuild
+++ b/www-servers/h2o/h2o-9999.ebuild
@@ -1,11 +1,11 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="8"
 SSL_DEPS_SKIP=1
 USE_RUBY="ruby31 ruby32 ruby33"
 
-inherit cmake git-r3 ruby-single ssl-cert systemd toolchain-funcs
+inherit cmake flag-o-matic git-r3 ruby-single ssl-cert systemd toolchain-funcs
 
 DESCRIPTION="H2O - the optimized HTTP/1, HTTP/2 server"
 HOMEPAGE="https://h2o.examp1e.net/";
@@ -66,6 +66,14 @@ src_prepare() {
 }
 
 src_configure() {
+       if use libh2o; then
+               # -Werror=strict-aliasing
+               # https://bugs.gentoo.org/967654
+               # https://github.com/h2o/h2o/issues/3541
+               append-flags -fno-strict-aliasing
+               filter-lto
+       fi
+
        local mycmakeargs=(
                -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}"/etc/${PN}
                -DWITH_CCACHE=OFF

Reply via email to