public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Adam Pimentel" <adam.pimentel@protonmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-p2p/p2pool/, net-p2p/p2pool/files/
Date: Sun, 25 Dec 2022 21:32:28 +0000 (UTC)	[thread overview]
Message-ID: <1672003883.3a7aea9dfccabfca58a173e752ab136e52457b1f.adam.pimentel@gentoo> (raw)

commit:     3a7aea9dfccabfca58a173e752ab136e52457b1f
Author:     Adam Pimentel <adam.pimentel <AT> protonmail <DOT> com>
AuthorDate: Sun Dec 25 21:31:23 2022 +0000
Commit:     Adam Pimentel <adam.pimentel <AT> protonmail <DOT> com>
CommitDate: Sun Dec 25 21:31:23 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3a7aea9d

net-p2p/p2pool: stop build script from overriding users CFLAGS and CXXFLAGS

Closes: https://bugs.gentoo.org/887903
Closes: https://bugs.gentoo.org/887905
Signed-off-by: Adam Pimentel <adam.pimentel <AT> protonmail.com>

 net-p2p/p2pool/files/flags.cmake    | 14 ++++++++++++++
 net-p2p/p2pool/p2pool-2.6-r1.ebuild |  5 +++--
 2 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/net-p2p/p2pool/files/flags.cmake b/net-p2p/p2pool/files/flags.cmake
new file mode 100644
index 000000000..ed7e75499
--- /dev/null
+++ b/net-p2p/p2pool/files/flags.cmake
@@ -0,0 +1,14 @@
+set(CMAKE_CXX_STANDARD_REQUIRED ON)
+set(CMAKE_CXX_EXTENSIONS OFF)
+set(CMAKE_CXX_STANDARD 14)
+
+set(CMAKE_C_STANDARD 99)
+set(CMAKE_C_STANDARD_REQUIRED ON)
+
+set(GENERAL_FLAGS "-pthread")
+
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${GENERAL_FLAGS}")
+set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} ${GENERAL_FLAGS}")
+
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GENERAL_FLAGS}")
+set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${GENERAL_FLAGS}")

diff --git a/net-p2p/p2pool/p2pool-2.6-r1.ebuild b/net-p2p/p2pool/p2pool-2.6-r1.ebuild
index 5b1d81a5e..960bce71a 100644
--- a/net-p2p/p2pool/p2pool-2.6-r1.ebuild
+++ b/net-p2p/p2pool/p2pool-2.6-r1.ebuild
@@ -69,8 +69,9 @@ src_unpack() {
 src_prepare() {
 	default
 
-	# 884447: remove -s from OPTIMIZATION_FLAGS
-	sed -i 's/-s\>//' cmake/flags.cmake || die
+	# Stop their script from overriding flags:
+	cp "${FILESDIR}"/flags.cmake cmake/flags.cmake || die
+	die
 
 	cmake_src_prepare
 }


             reply	other threads:[~2022-12-25 21:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-25 21:32 Adam Pimentel [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-08-14  1:02 [gentoo-commits] repo/proj/guru:dev commit in: net-p2p/p2pool/, net-p2p/p2pool/files/ Adam Pimentel
2025-04-29 15:41 Filip Kobierski
2025-05-06 16:42 Filip Kobierski
2025-06-21 15:05 Filip Kobierski

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=1672003883.3a7aea9dfccabfca58a173e752ab136e52457b1f.adam.pimentel@gentoo \
    --to=adam.pimentel@protonmail.com \
    --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