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 7DDBE158041 for ; Thu, 29 Feb 2024 00:28:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 35309E2A27; Thu, 29 Feb 2024 00:28:01 +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 1229BE2A27 for ; Thu, 29 Feb 2024 00:28:00 +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 066C4343054 for ; Thu, 29 Feb 2024 00:28:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9615C14E0 for ; Thu, 29 Feb 2024 00:27:58 +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: <1709166468.c30f795e25db71ca03d85a7ccfd0a085f5e9a1c6.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/elinks/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-client/elinks/elinks-0.16.1.1-r2.ebuild X-VCS-Directories: www-client/elinks/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: c30f795e25db71ca03d85a7ccfd0a085f5e9a1c6 X-VCS-Branch: master Date: Thu, 29 Feb 2024 00:27:58 +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: 82309a9b-95f7-41c4-93d9-7b4d37ec9b38 X-Archives-Hash: a388684dc7ac7244091fc00168605123 commit: c30f795e25db71ca03d85a7ccfd0a085f5e9a1c6 Author: Eli Schwartz gmail com> AuthorDate: Thu Feb 29 00:05:16 2024 +0000 Commit: Sam James gentoo org> CommitDate: Thu Feb 29 00:27:48 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c30f795e www-client/elinks: mark LTO-unsafe Upstream acknowledges the project is a walking strict-aliasing violation, and activates -fno-strict-aliasing. Given this, we shouldn't trust it to generate valid code with LTO either. Bug: https://bugs.gentoo.org/864127 Signed-off-by: Eli Schwartz gmail.com> Signed-off-by: Sam James gentoo.org> www-client/elinks/elinks-0.16.1.1-r2.ebuild | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/www-client/elinks/elinks-0.16.1.1-r2.ebuild b/www-client/elinks/elinks-0.16.1.1-r2.ebuild index ecccac8216f0..d2c680bb33b6 100644 --- a/www-client/elinks/elinks-0.16.1.1-r2.ebuild +++ b/www-client/elinks/elinks-0.16.1.1-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -6,7 +6,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{10..11} ) LUA_COMPAT=( lua5-{1,2,3,4} luajit ) -inherit meson lua-single python-any-r1 +inherit flag-o-matic meson lua-single python-any-r1 DESCRIPTION="Advanced and well-established text-mode web browser" HOMEPAGE="http://elinks.or.cz/" @@ -79,6 +79,13 @@ pkg_setup() { } src_configure() { + # This file is severely broken w.r.t. strict-aliasing and upstream acknowledges it: + # https://github.com/rkd77/elinks/blob/d05ce90b35d82109aab320b490e3ca54aa6df057/src/util/lists.h#L14 + # https://github.com/rkd77/elinks/blob/d05ce90b35d82109aab320b490e3ca54aa6df057/src/meson.build#L44 + # + # Although they force fno-strict-aliasing, we should also not trust the LTO either. + filter-lto + local emesonargs=( -Ddocdir="${EPREFIX}"/usr/share/doc/${PF} -Dhtmldoc=false