public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/portspoof/
Date: Thu, 14 Mar 2024 02:25:43 +0000 (UTC)	[thread overview]
Message-ID: <1710381592.23d034269b1fcfe85d736ef3131820a8b5fe789e.sam@gentoo> (raw)

commit:     23d034269b1fcfe85d736ef3131820a8b5fe789e
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Thu Mar 14 01:57:22 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> 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 <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> 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 <sys\/sysctl.h>/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


             reply	other threads:[~2024-03-14  2:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-14  2:25 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-28 22:12 [gentoo-commits] repo/gentoo:master commit in: net-misc/portspoof/ Rick Farina
2024-03-14  2:25 Sam James
2024-03-14  2:25 Sam James
2024-03-14  2:25 Sam James
2024-03-14  2:25 Sam James
2023-06-30 13:33 Sam James
2020-11-19 18:38 Rick Farina
2020-09-24  1:06 Aaron Bauman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1710381592.23d034269b1fcfe85d736ef3131820a8b5fe789e.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox