From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CEB05158041 for ; Fri, 5 Apr 2024 01:21:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DF523E2A2C; Fri, 5 Apr 2024 01:21:55 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BDDC6E2A2C for ; Fri, 5 Apr 2024 01:21:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B3939343276 for ; Fri, 5 Apr 2024 01:21:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E4A811686 for ; Fri, 5 Apr 2024 01:21:50 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1712280055.2bca294bbe5941e8ce680a48824d3addc1a09ad0.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/netdata/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-analyzer/netdata/netdata-1.45.2.ebuild net-analyzer/netdata/netdata-9999.ebuild X-VCS-Directories: net-analyzer/netdata/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 2bca294bbe5941e8ce680a48824d3addc1a09ad0 X-VCS-Branch: master Date: Fri, 5 Apr 2024 01:21:50 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c2d5847f-27ad-41ce-83aa-71c5c20ea82d X-Archives-Hash: 31bf4812086392b931d471610e9208c8 commit: 2bca294bbe5941e8ce680a48824d3addc1a09ad0 Author: Eli Schwartz gmail com> AuthorDate: Fri Apr 5 01:06:28 2024 +0000 Commit: Sam James gentoo org> CommitDate: Fri Apr 5 01:20:55 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2bca294b net-analyzer/netdata: mark as LTO-unsafe, strict-aliasing unsafe Closes: https://bugs.gentoo.org/927174 Signed-off-by: Eli Schwartz gmail.com> Signed-off-by: Sam James gentoo.org> net-analyzer/netdata/netdata-1.45.2.ebuild | 10 +++++++++- net-analyzer/netdata/netdata-9999.ebuild | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/net-analyzer/netdata/netdata-1.45.2.ebuild b/net-analyzer/netdata/netdata-1.45.2.ebuild index 2d2fe2aeb560..0d57f53917bc 100644 --- a/net-analyzer/netdata/netdata-1.45.2.ebuild +++ b/net-analyzer/netdata/netdata-1.45.2.ebuild @@ -4,7 +4,7 @@ EAPI=8 PYTHON_COMPAT=( python{3_9,3_10,3_11} ) -inherit cmake fcaps linux-info optfeature python-single-r1 systemd +inherit cmake fcaps flag-o-matic linux-info optfeature python-single-r1 systemd if [[ ${PV} == *9999 ]] ; then EGIT_REPO_URI="https://github.com/netdata/${PN}.git" @@ -95,6 +95,14 @@ pkg_setup() { } src_configure() { + # -Werror=strict-aliasing + # https://bugs.gentoo.org/927174 + # https://github.com/netdata/netdata/issues/17321 + # + # Do not trust with LTO either. + append-flags -fno-strict-aliasing + filter-lto + local mycmakeargs=( -DCMAKE_DISABLE_FIND_PACKAGE_Git=TRUE -DCMAKE_INSTALL_PREFIX=/ diff --git a/net-analyzer/netdata/netdata-9999.ebuild b/net-analyzer/netdata/netdata-9999.ebuild index 2d2fe2aeb560..0d57f53917bc 100644 --- a/net-analyzer/netdata/netdata-9999.ebuild +++ b/net-analyzer/netdata/netdata-9999.ebuild @@ -4,7 +4,7 @@ EAPI=8 PYTHON_COMPAT=( python{3_9,3_10,3_11} ) -inherit cmake fcaps linux-info optfeature python-single-r1 systemd +inherit cmake fcaps flag-o-matic linux-info optfeature python-single-r1 systemd if [[ ${PV} == *9999 ]] ; then EGIT_REPO_URI="https://github.com/netdata/${PN}.git" @@ -95,6 +95,14 @@ pkg_setup() { } src_configure() { + # -Werror=strict-aliasing + # https://bugs.gentoo.org/927174 + # https://github.com/netdata/netdata/issues/17321 + # + # Do not trust with LTO either. + append-flags -fno-strict-aliasing + filter-lto + local mycmakeargs=( -DCMAKE_DISABLE_FIND_PACKAGE_Git=TRUE -DCMAKE_INSTALL_PREFIX=/