* [Buildroot] [PATCH v2 1/1] package/xmrig: Add support for OpenSSL 4.0.0
@ 2026-10-21 19:38 Bernd Kuhls
2026-10-21 20:36 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: Bernd Kuhls @ 2026-10-21 19:38 UTC (permalink / raw)
To: buildroot
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
v2: updated patch after upstream discussion (Thomas)
.../0001-Fix-build-with-OpenSSL-4.0.patch | 36 +++++++++++++++++++
1 file changed, 36 insertions(+)
create mode 100644 package/xmrig/0001-Fix-build-with-OpenSSL-4.0.patch
diff --git a/package/xmrig/0001-Fix-build-with-OpenSSL-4.0.patch b/package/xmrig/0001-Fix-build-with-OpenSSL-4.0.patch
new file mode 100644
index 0000000000..f9b49a0070
--- /dev/null
+++ b/package/xmrig/0001-Fix-build-with-OpenSSL-4.0.patch
@@ -0,0 +1,36 @@
+From a768091a0001cf4e6fb24885daec68d8c48e1cde Mon Sep 17 00:00:00 2001
+From: Reuben Roessler <reuben.roessler@canonical.com>
+Date: Wed, 21 Oct 2026 21:33:52 +0200
+Subject: [PATCH] Fix build with OpenSSL 4.0
+
+Patch was suggested by Reuben Roessler:
+https://github.com/xmrig/xmrig/pull/3808#discussion_r3799768416
+
+Upstream: https://github.com/xmrig/xmrig/pull/3808
+
+Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
+---
+ src/base/net/tls/TlsGen.cpp | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/src/base/net/tls/TlsGen.cpp b/src/base/net/tls/TlsGen.cpp
+index ad2e648b..a5306789 100644
+--- a/src/base/net/tls/TlsGen.cpp
++++ b/src/base/net/tls/TlsGen.cpp
+@@ -114,10 +114,12 @@ bool xmrig::TlsGen::generate_x509(const char *commonName)
+ X509_gmtime_adj(X509_get_notBefore(m_x509), 0);
+ X509_gmtime_adj(X509_get_notAfter(m_x509), 315360000L);
+
+- auto name = X509_get_subject_name(m_x509);
++ auto name = X509_NAME_new();
+ X509_NAME_add_entry_by_txt(name, "CN", MBSTRING_ASC, reinterpret_cast<const uint8_t *>(commonName), -1, -1, 0);
+
++ X509_set_subject_name(m_x509, name);
+ X509_set_issuer_name(m_x509, name);
++ X509_NAME_free(name);
+
+ return X509_sign(m_x509, m_pkey, EVP_sha256());
+ }
+--
+2.47.3
+
--
2.47.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH v2 1/1] package/xmrig: Add support for OpenSSL 4.0.0
2026-10-21 19:38 [Buildroot] [PATCH v2 1/1] package/xmrig: Add support for OpenSSL 4.0.0 Bernd Kuhls
@ 2026-10-21 20:36 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-10-21 20:36 UTC (permalink / raw)
To: Bernd Kuhls; +Cc: buildroot
On Wed, Oct 21, 2026 at 09:38:40PM +0200, Bernd Kuhls wrote:
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
> ---
> v2: updated patch after upstream discussion (Thomas)
I've applied, but see below.
> diff --git a/package/xmrig/0001-Fix-build-with-OpenSSL-4.0.patch b/package/xmrig/0001-Fix-build-with-OpenSSL-4.0.patch
> new file mode 100644
> index 0000000000..f9b49a0070
> --- /dev/null
> +++ b/package/xmrig/0001-Fix-build-with-OpenSSL-4.0.patch
> @@ -0,0 +1,36 @@
> +From a768091a0001cf4e6fb24885daec68d8c48e1cde Mon Sep 17 00:00:00 2001
> +From: Reuben Roessler <reuben.roessler@canonical.com>
Technically, Reuben is not the author. He suggested the code, but he
didn't formally write the patch. You're now claiming he is the author,
but he isn't, which could be pretty bad if you somehow misunderstood
his suggestion.
In this sort of situation, I would recommend to make your self the
author, and add a:
Suggested-by: Reuben Roessler <reuben.roessler@canonical.com>
in the commit log.
That being said, since what you submitted here is what you proposed
upstream, I merged your patch as-is.
Thanks!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-10-21 20:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-21 19:38 [Buildroot] [PATCH v2 1/1] package/xmrig: Add support for OpenSSL 4.0.0 Bernd Kuhls
2026-10-21 20:36 ` Thomas Petazzoni via buildroot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.