public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Haelwenn Monnier" <contact@hacktivis.me>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-libs/randomx/, dev-libs/randomx/files/
Date: Wed, 18 Sep 2024 23:46:42 +0000 (UTC)	[thread overview]
Message-ID: <1726694523.9036a7bd936e5dcf1c03543897d143e14cd4328e.lanodan@gentoo> (raw)

commit:     9036a7bd936e5dcf1c03543897d143e14cd4328e
Author:     Filip Kobierski <fkobi <AT> pm <DOT> me>
AuthorDate: Wed Sep 18 21:22:03 2024 +0000
Commit:     Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
CommitDate: Wed Sep 18 21:22:03 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9036a7bd

dev-libs/randomx: remove -fPIE from compilation flags

Closes: https://bugs.gentoo.org/907872
Signed-off-by: Filip Kobierski <fkobi <AT> pm.me>

 .../randomx/files/randomx-1.2.1_remove-fPIE.patch  | 45 ++++++++++++++++++++++
 dev-libs/randomx/randomx-1.2.1-r1.ebuild           | 22 +++++++++++
 2 files changed, 67 insertions(+)

diff --git a/dev-libs/randomx/files/randomx-1.2.1_remove-fPIE.patch b/dev-libs/randomx/files/randomx-1.2.1_remove-fPIE.patch
new file mode 100644
index 000000000..6fb74c709
--- /dev/null
+++ b/dev-libs/randomx/files/randomx-1.2.1_remove-fPIE.patch
@@ -0,0 +1,45 @@
+From: Filip Kobierski <fkobi@pm.me>
+Date: Wed, 18 Sep 2024 23:16:54 +0200
+Removes -fPIE from the C{,XX}FLAGS
+https://bugs.gentoo.org/907872
+---
+ CMakeLists.txt | 4 ----
+ 1 file changed, 4 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index ebbdff2..539e91b 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -217,7 +217,6 @@ if(TARGET generate-asm)
+   add_dependencies(randomx generate-asm)
+ endif()
+ 
+-set_property(TARGET randomx PROPERTY POSITION_INDEPENDENT_CODE ON)
+ set_property(TARGET randomx PROPERTY CXX_STANDARD 11)
+ set_property(TARGET randomx PROPERTY CXX_STANDARD_REQUIRED ON)
+ set_property(TARGET randomx PROPERTY PUBLIC_HEADER src/randomx.h)
+@@ -232,7 +231,6 @@ add_executable(randomx-tests
+   src/tests/tests.cpp)
+ target_link_libraries(randomx-tests
+   PRIVATE randomx)
+-set_property(TARGET randomx-tests PROPERTY POSITION_INDEPENDENT_CODE ON)
+ set_property(TARGET randomx-tests PROPERTY CXX_STANDARD 11)
+ 
+ add_executable(randomx-codegen
+@@ -240,7 +238,6 @@ add_executable(randomx-codegen
+ target_link_libraries(randomx-codegen
+   PRIVATE randomx)
+ 
+-set_property(TARGET randomx-codegen PROPERTY POSITION_INDEPENDENT_CODE ON)
+ set_property(TARGET randomx-codegen PROPERTY CXX_STANDARD 11)
+ 
+ if(NOT Threads_FOUND AND UNIX AND NOT APPLE)
+@@ -268,5 +265,4 @@ if(NOT HAVE_CXX_ATOMICS)
+   target_link_libraries(randomx-benchmark
+     PRIVATE "atomic")
+ endif()
+-set_property(TARGET randomx-benchmark PROPERTY POSITION_INDEPENDENT_CODE ON)
+ set_property(TARGET randomx-benchmark PROPERTY CXX_STANDARD 11)
+-- 
+2.44.2
+

diff --git a/dev-libs/randomx/randomx-1.2.1-r1.ebuild b/dev-libs/randomx/randomx-1.2.1-r1.ebuild
new file mode 100644
index 000000000..bc64545fe
--- /dev/null
+++ b/dev-libs/randomx/randomx-1.2.1-r1.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake flag-o-matic
+
+DESCRIPTION="Proof of work algorithm based on random code execution"
+HOMEPAGE="https://github.com/tevador/RandomX"
+SRC_URI="https://github.com/tevador/RandomX/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}"/RandomX-${PV}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+
+PATCHES=( "${FILESDIR}"/${PN}-1.2.1_remove-fPIE.patch )
+
+src_configure() {
+	append-ldflags -Wl,-z,noexecstack
+	cmake_src_configure
+}


                 reply	other threads:[~2024-09-18 23:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1726694523.9036a7bd936e5dcf1c03543897d143e14cd4328e.lanodan@gentoo \
    --to=contact@hacktivis.me \
    --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