From: "Matthew Smith" <matthew@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/xmrig/, net-misc/xmrig/files/
Date: Mon, 20 Feb 2023 16:16:02 +0000 (UTC) [thread overview]
Message-ID: <1676909735.c23ab12438ae3a329ba70a674f7fff87ad843901.matthew@gentoo> (raw)
commit: c23ab12438ae3a329ba70a674f7fff87ad843901
Author: Matthew Smith <matthew <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 20 16:14:53 2023 +0000
Commit: Matthew Smith <matthew <AT> gentoo <DOT> org>
CommitDate: Mon Feb 20 16:15:35 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c23ab124
net-misc/xmrig: fix build with gcc 13
Closes: https://bugs.gentoo.org/895226
Signed-off-by: Matthew Smith <matthew <AT> gentoo.org>
net-misc/xmrig/files/xmrig-6.18.1-gcc-13.patch | 70 ++++++++++++++++++++++
...{xmrig-6.18.1.ebuild => xmrig-6.18.1-r1.ebuild} | 3 +-
...{xmrig-6.19.0.ebuild => xmrig-6.19.0-r1.ebuild} | 1 +
net-misc/xmrig/xmrig-9999.ebuild | 3 +-
4 files changed, 75 insertions(+), 2 deletions(-)
diff --git a/net-misc/xmrig/files/xmrig-6.18.1-gcc-13.patch b/net-misc/xmrig/files/xmrig-6.18.1-gcc-13.patch
new file mode 100644
index 000000000000..1726c3b01523
--- /dev/null
+++ b/net-misc/xmrig/files/xmrig-6.18.1-gcc-13.patch
@@ -0,0 +1,70 @@
+From bd14e6034ba2de0056278c3ad9923199b7f4d20f Mon Sep 17 00:00:00 2001
+From: Matthew Smith <matthew@gentoo.org>
+Date: Mon, 20 Feb 2023 16:09:19 +0000
+Subject: [PATCH] Fix build with gcc 13
+
+Now some header files are not included transistively with new
+libstdc++.
+
+Bug: https://bugs.gentoo.org/895226
+--- a/src/backend/opencl/runners/OclBaseRunner.cpp
++++ b/src/backend/opencl/runners/OclBaseRunner.cpp
+@@ -23,6 +23,9 @@
+ */
+
+
++#include <stdexcept>
++
++
+ #include "backend/opencl/runners/OclBaseRunner.h"
+ #include "backend/opencl/cl/OclSource.h"
+ #include "backend/opencl/OclCache.h"
+--- a/src/backend/opencl/runners/OclCnRunner.cpp
++++ b/src/backend/opencl/runners/OclCnRunner.cpp
+@@ -16,6 +16,9 @@
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
++#include <stdexcept>
++
++
+ #include "backend/opencl/runners/OclCnRunner.h"
+ #include "backend/opencl/kernels/Cn0Kernel.h"
+ #include "backend/opencl/kernels/Cn1Kernel.h"
+--- a/src/backend/opencl/runners/OclKawPowRunner.cpp
++++ b/src/backend/opencl/runners/OclKawPowRunner.cpp
+@@ -16,6 +16,9 @@
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
++#include <stdexcept>
++
++
+ #include "backend/opencl/runners/OclKawPowRunner.h"
+ #include "backend/common/Tags.h"
+ #include "3rdparty/libethash/ethash_internal.h"
+--- a/src/backend/opencl/runners/OclRxJitRunner.cpp
++++ b/src/backend/opencl/runners/OclRxJitRunner.cpp
+@@ -16,6 +16,9 @@
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
++#include <stdexcept>
++
++
+ #include "backend/opencl/runners/OclRxJitRunner.h"
+ #include "backend/opencl/cl/rx/randomx_run_gfx803.h"
+ #include "backend/opencl/cl/rx/randomx_run_gfx900.h"
+--- a/src/base/net/http/HttpResponse.h
++++ b/src/base/net/http/HttpResponse.h
+@@ -21,6 +21,7 @@
+ #define XMRIG_HTTPRESPONSE_H
+
+
++#include <cstdint>
+ #include <map>
+ #include <string>
+
+--
+2.39.2
+
diff --git a/net-misc/xmrig/xmrig-6.18.1.ebuild b/net-misc/xmrig/xmrig-6.18.1-r1.ebuild
similarity index 94%
rename from net-misc/xmrig/xmrig-6.18.1.ebuild
rename to net-misc/xmrig/xmrig-6.18.1-r1.ebuild
index 0f1d09c1b7a9..89809b2e8627 100644
--- a/net-misc/xmrig/xmrig-6.18.1.ebuild
+++ b/net-misc/xmrig/xmrig-6.18.1-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -33,6 +33,7 @@ RDEPEND="
PATCHES=(
"${FILESDIR}"/${PN}-6.12.2-nonotls.patch
+ "${FILESDIR}"/${PN}-6.18.1-gcc-13.patch
)
src_prepare() {
diff --git a/net-misc/xmrig/xmrig-6.19.0.ebuild b/net-misc/xmrig/xmrig-6.19.0-r1.ebuild
similarity index 97%
rename from net-misc/xmrig/xmrig-6.19.0.ebuild
rename to net-misc/xmrig/xmrig-6.19.0-r1.ebuild
index 7f9e7dd2397c..7a4ceae89308 100644
--- a/net-misc/xmrig/xmrig-6.19.0.ebuild
+++ b/net-misc/xmrig/xmrig-6.19.0-r1.ebuild
@@ -33,6 +33,7 @@ RDEPEND="
PATCHES=(
"${FILESDIR}"/${PN}-6.12.2-nonotls.patch
+ "${FILESDIR}"/${PN}-6.18.1-gcc-13.patch
)
src_prepare() {
diff --git a/net-misc/xmrig/xmrig-9999.ebuild b/net-misc/xmrig/xmrig-9999.ebuild
index 5e038e700270..7a4ceae89308 100644
--- a/net-misc/xmrig/xmrig-9999.ebuild
+++ b/net-misc/xmrig/xmrig-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -33,6 +33,7 @@ RDEPEND="
PATCHES=(
"${FILESDIR}"/${PN}-6.12.2-nonotls.patch
+ "${FILESDIR}"/${PN}-6.18.1-gcc-13.patch
)
src_prepare() {
next reply other threads:[~2023-02-20 16:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-20 16:16 Matthew Smith [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-11-01 14:30 [gentoo-commits] repo/gentoo:master commit in: net-misc/xmrig/, net-misc/xmrig/files/ Craig Andrews
2021-09-24 13:23 Craig Andrews
2021-08-11 23:03 Sam James
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=1676909735.c23ab12438ae3a329ba70a674f7fff87ad843901.matthew@gentoo \
--to=matthew@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