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 84CC3158041 for ; Thu, 14 Mar 2024 02:25:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 36243E29C6; Thu, 14 Mar 2024 02:25:47 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 13E4EE29C5 for ; Thu, 14 Mar 2024 02:25:47 +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 5AFC733BF60 for ; Thu, 14 Mar 2024 02:25:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9631B151E for ; Thu, 14 Mar 2024 02:25:43 +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: <1710381592.23d034269b1fcfe85d736ef3131820a8b5fe789e.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/portspoof/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/portspoof/portspoof-1.3-r1.ebuild X-VCS-Directories: net-misc/portspoof/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 23d034269b1fcfe85d736ef3131820a8b5fe789e X-VCS-Branch: master Date: Thu, 14 Mar 2024 02:25:43 +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: cf806377-96e6-4299-8a65-68bbe4c50218 X-Archives-Hash: da541d508157fddf9b95865fcb140c4a commit: 23d034269b1fcfe85d736ef3131820a8b5fe789e Author: Eli Schwartz gmail com> AuthorDate: Thu Mar 14 01:57:22 2024 +0000 Commit: Sam James gentoo org> CommitDate: Thu Mar 14 01:59:52 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23d03426 net-misc/portspoof: mark as LTO-unsafe, strict-aliasing unsafe Closes: https://bugs.gentoo.org/861698 Signed-off-by: Eli Schwartz gmail.com> Signed-off-by: Sam James gentoo.org> net-misc/portspoof/portspoof-1.3-r1.ebuild | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/net-misc/portspoof/portspoof-1.3-r1.ebuild b/net-misc/portspoof/portspoof-1.3-r1.ebuild index ad443ee320fb..d0fed28eeb2b 100644 --- a/net-misc/portspoof/portspoof-1.3-r1.ebuild +++ b/net-misc/portspoof/portspoof-1.3-r1.ebuild @@ -3,6 +3,8 @@ EAPI=8 +inherit flag-o-matic + DESCRIPTION="return SYN+ACK for every port connection attempt" HOMEPAGE="http://portspoof.org/" LICENSE="GPL-2+" @@ -29,6 +31,18 @@ src_prepare() { sed -i '/#include /d' src/connection.h || die } +src_configure() { + # -Werror=strict-aliasing + # https://bugs.gentoo.org/861698 + # https://github.com/drk1wi/portspoof/issues/48 + # + # Do not trust it with LTO either + append-flags -fno-strict-aliasing + filter-lto + + default +} + src_install() { default_src_install newsbin system_files/init.d/portspoof.sh portspoof-runner