GNU bug report logs - #63615
[PATCH 0/2] Restyle and update xmrig to 6.19.2

Previous Next

Package: guix-patches;

Reported by: Ahmad Draidi <a.r.draidi <at> redscript.org>

Date: Sat, 20 May 2023 19:51:02 UTC

Severity: normal

Tags: patch

Done: Guillaume Le Vaillant <glv <at> posteo.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 63615 in the body.
You can then email your comments to 63615 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#63615; Package guix-patches. (Sat, 20 May 2023 19:51:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ahmad Draidi <a.r.draidi <at> redscript.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sat, 20 May 2023 19:51:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ahmad Draidi <a.r.draidi <at> redscript.org>
To: guix-patches <at> gnu.org
Cc: Ahmad Draidi <a.r.draidi <at> redscript.org>
Subject: [PATCH 0/2] Restyle and update xmrig to 6.19.2
Date: Sat, 20 May 2023 23:50:25 +0400

Ahmad Draidi (2):
  gnu: xmrig: Run 'guix style' over the package.
  gnu: xmrig: Update to 6.19.2.

 gnu/packages/finance.scm | 66 ++++++++++++++++++----------------------
 1 file changed, 30 insertions(+), 36 deletions(-)


base-commit: 24b6f94cf9b4ab97ef2eb70d05b2104a06776e62
-- 
2.40.1





Information forwarded to guix-patches <at> gnu.org:
bug#63615; Package guix-patches. (Sat, 20 May 2023 19:56:01 GMT) Full text and rfc822 format available.

Message #8 received at 63615 <at> debbugs.gnu.org (full text, mbox):

From: Ahmad Draidi <a.r.draidi <at> redscript.org>
To: 63615 <at> debbugs.gnu.org
Cc: Ahmad Draidi <a.r.draidi <at> redscript.org>
Subject: [PATCH 1/2] gnu: xmrig: Run 'guix style' over the package.
Date: Sat, 20 May 2023 23:55:04 +0400
* gnu/packages/finance.scm (xmrig): Restyle.
---
 gnu/packages/finance.scm | 61 ++++++++++++++++++----------------------
 1 file changed, 28 insertions(+), 33 deletions(-)

diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index 559b22257b..71d80bd081 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -2266,44 +2266,39 @@ (define-public xmrig
   (package
     (name "xmrig")
     (version "6.19.0")
-    (source
-     (origin
-       (method git-fetch)
-       (uri (git-reference
-             (url "https://github.com/xmrig/xmrig")
-             (commit (string-append "v" version))))
-       (file-name (git-file-name name version))
-       (sha256 (base32 "10vaq6ld4sddnpmv9dg71fjvw1jrfaddrp3bq6p3dxhsl153khm4"))
-       (modules '((guix build utils)))
-       (snippet
-        ;; TODO: Try to use system libraries instead of bundled ones in
-        ;; "src/3rdparty/". It requires changes to some "cmake/..." scripts
-        ;; and to some source files.
-        #~(begin
-            (delete-file-recursively "src/3rdparty/hwloc")
-            (substitute* "src/donate.h"
-              (("constexpr const int kDefaultDonateLevel = 1;")
-               "constexpr const int kDefaultDonateLevel = 0;")
-              (("constexpr const int kMinimumDonateLevel = 1;")
-               "constexpr const int kMinimumDonateLevel = 0;"))))))
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/xmrig/xmrig")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "10vaq6ld4sddnpmv9dg71fjvw1jrfaddrp3bq6p3dxhsl153khm4"))
+              (modules '((guix build utils)))
+              (snippet
+               ;; TODO: Try to use system libraries instead of bundled ones in
+               ;; "src/3rdparty/". It requires changes to some "cmake/..." scripts
+               ;; and to some source files.
+               #~(begin
+                   (delete-file-recursively "src/3rdparty/hwloc")
+                   (substitute* "src/donate.h"
+                     (("constexpr const int kDefaultDonateLevel = 1;")
+                      "constexpr const int kDefaultDonateLevel = 0;")
+                     (("constexpr const int kMinimumDonateLevel = 1;")
+                      "constexpr const int kMinimumDonateLevel = 0;"))))))
     (build-system cmake-build-system)
-    (inputs
-     (list
-      `(,hwloc "lib")
-      libuv
-      openssl))
+    (inputs (list `(,hwloc "lib") libuv openssl))
     (arguments
      (list
       ;; There are no tests.
       #:tests? #f
-      #:phases
-      #~(modify-phases
-         %standard-phases
-         (replace 'install
-           ;; There is no 'install' target, we must install xmrig manually
-           (lambda* (#:key #:allow-other-keys)
-             (install-file "xmrig"
-                           (string-append #$output "/bin")))))))
+      #:phases #~(modify-phases %standard-phases
+                   (replace 'install
+                     ;; There is no 'install' target, we must install xmrig manually
+                     (lambda* (#:key #:allow-other-keys)
+                       (install-file "xmrig"
+                                     (string-append #$output "/bin")))))))
     (home-page "https://xmrig.com/")
     (synopsis "Monero miner")
     (description
-- 
2.40.1





Information forwarded to guix-patches <at> gnu.org:
bug#63615; Package guix-patches. (Sat, 20 May 2023 19:57:02 GMT) Full text and rfc822 format available.

Message #11 received at 63615 <at> debbugs.gnu.org (full text, mbox):

From: Ahmad Draidi <a.r.draidi <at> redscript.org>
To: 63615 <at> debbugs.gnu.org
Cc: Ahmad Draidi <a.r.draidi <at> redscript.org>
Subject: [PATCH 2/2] gnu: xmrig: Update to 6.19.2.
Date: Sat, 20 May 2023 23:55:05 +0400
* gnu/packages/finance.scm (xmrig): Update to 6.19.2.
[description]: Update supported algorithms.
---
 gnu/packages/finance.scm | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index 71d80bd081..c7fe996568 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -2265,7 +2265,7 @@ (define-public python-mt-940
 (define-public xmrig
   (package
     (name "xmrig")
-    (version "6.19.0")
+    (version "6.19.2")
     (source (origin
               (method git-fetch)
               (uri (git-reference
@@ -2274,7 +2274,7 @@ (define-public xmrig
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "10vaq6ld4sddnpmv9dg71fjvw1jrfaddrp3bq6p3dxhsl153khm4"))
+                "1hgcfq79d5060iryr34bpwf1dvgqmbmn9mm4ccfvp896r10j482h"))
               (modules '((guix build utils)))
               (snippet
                ;; TODO: Try to use system libraries instead of bundled ones in
@@ -2303,8 +2303,7 @@ (define-public xmrig
     (synopsis "Monero miner")
     (description
      "XMRig is a high performance, cross platform RandomX, KawPow,
-CryptoNight, AstroBWT and GhostRider unified CPU/GPU miner and RandomX
-benchmark.
+ CryptoNight and GhostRider unified CPU/GPU miner and RandomX benchmark.
 
 Warning: upstream, by default, receives a percentage of the mining time.  This
 anti-functionality has been neutralised in Guix, but possibly not in all other
-- 
2.40.1





Information forwarded to guix-patches <at> gnu.org:
bug#63615; Package guix-patches. (Sun, 21 May 2023 05:50:01 GMT) Full text and rfc822 format available.

Message #14 received at 63615 <at> debbugs.gnu.org (full text, mbox):

From: Ahmad Draidi <a.r.draidi <at> redscript.org>
To: 63615 <at> debbugs.gnu.org
Cc: Ahmad Draidi <a.r.draidi <at> redscript.org>
Subject: [PATCH v2 0/2] Restyle and update xmrig to 6.19.2
Date: Sun, 21 May 2023 09:48:36 +0400
Version 2 fixes a few typos and grammatical mistakes in the description.
I spotted these after v1 was out. Sorry for the inconvenience.

Ahmad Draidi (2):
  gnu: xmrig: Run 'guix style' over the package.
  gnu: xmrig: Update to 6.19.2.

 gnu/packages/finance.scm | 74 ++++++++++++++++++----------------------
 1 file changed, 34 insertions(+), 40 deletions(-)


base-commit: 24b6f94cf9b4ab97ef2eb70d05b2104a06776e62
-- 
2.40.1





Information forwarded to guix-patches <at> gnu.org:
bug#63615; Package guix-patches. (Sun, 21 May 2023 05:50:02 GMT) Full text and rfc822 format available.

Message #17 received at 63615 <at> debbugs.gnu.org (full text, mbox):

From: Ahmad Draidi <a.r.draidi <at> redscript.org>
To: 63615 <at> debbugs.gnu.org
Cc: Ahmad Draidi <a.r.draidi <at> redscript.org>
Subject: [PATCH v2 1/2] gnu: xmrig: Run 'guix style' over the package.
Date: Sun, 21 May 2023 09:48:37 +0400
* gnu/packages/finance.scm (xmrig): Restyle.
---
 gnu/packages/finance.scm | 61 ++++++++++++++++++----------------------
 1 file changed, 28 insertions(+), 33 deletions(-)

diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index 559b22257b..71d80bd081 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -2266,44 +2266,39 @@ (define-public xmrig
   (package
     (name "xmrig")
     (version "6.19.0")
-    (source
-     (origin
-       (method git-fetch)
-       (uri (git-reference
-             (url "https://github.com/xmrig/xmrig")
-             (commit (string-append "v" version))))
-       (file-name (git-file-name name version))
-       (sha256 (base32 "10vaq6ld4sddnpmv9dg71fjvw1jrfaddrp3bq6p3dxhsl153khm4"))
-       (modules '((guix build utils)))
-       (snippet
-        ;; TODO: Try to use system libraries instead of bundled ones in
-        ;; "src/3rdparty/". It requires changes to some "cmake/..." scripts
-        ;; and to some source files.
-        #~(begin
-            (delete-file-recursively "src/3rdparty/hwloc")
-            (substitute* "src/donate.h"
-              (("constexpr const int kDefaultDonateLevel = 1;")
-               "constexpr const int kDefaultDonateLevel = 0;")
-              (("constexpr const int kMinimumDonateLevel = 1;")
-               "constexpr const int kMinimumDonateLevel = 0;"))))))
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/xmrig/xmrig")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "10vaq6ld4sddnpmv9dg71fjvw1jrfaddrp3bq6p3dxhsl153khm4"))
+              (modules '((guix build utils)))
+              (snippet
+               ;; TODO: Try to use system libraries instead of bundled ones in
+               ;; "src/3rdparty/". It requires changes to some "cmake/..." scripts
+               ;; and to some source files.
+               #~(begin
+                   (delete-file-recursively "src/3rdparty/hwloc")
+                   (substitute* "src/donate.h"
+                     (("constexpr const int kDefaultDonateLevel = 1;")
+                      "constexpr const int kDefaultDonateLevel = 0;")
+                     (("constexpr const int kMinimumDonateLevel = 1;")
+                      "constexpr const int kMinimumDonateLevel = 0;"))))))
     (build-system cmake-build-system)
-    (inputs
-     (list
-      `(,hwloc "lib")
-      libuv
-      openssl))
+    (inputs (list `(,hwloc "lib") libuv openssl))
     (arguments
      (list
       ;; There are no tests.
       #:tests? #f
-      #:phases
-      #~(modify-phases
-         %standard-phases
-         (replace 'install
-           ;; There is no 'install' target, we must install xmrig manually
-           (lambda* (#:key #:allow-other-keys)
-             (install-file "xmrig"
-                           (string-append #$output "/bin")))))))
+      #:phases #~(modify-phases %standard-phases
+                   (replace 'install
+                     ;; There is no 'install' target, we must install xmrig manually
+                     (lambda* (#:key #:allow-other-keys)
+                       (install-file "xmrig"
+                                     (string-append #$output "/bin")))))))
     (home-page "https://xmrig.com/")
     (synopsis "Monero miner")
     (description
-- 
2.40.1





Information forwarded to guix-patches <at> gnu.org:
bug#63615; Package guix-patches. (Sun, 21 May 2023 05:51:02 GMT) Full text and rfc822 format available.

Message #20 received at 63615 <at> debbugs.gnu.org (full text, mbox):

From: Ahmad Draidi <a.r.draidi <at> redscript.org>
To: 63615 <at> debbugs.gnu.org
Cc: Ahmad Draidi <a.r.draidi <at> redscript.org>
Subject: [PATCH v2 2/2] gnu: xmrig: Update to 6.19.2.
Date: Sun, 21 May 2023 09:48:38 +0400
* gnu/packages/finance.scm (xmrig): Update to 6.19.2.
[description]: Update supported algorithms and fix grammar..
---
 gnu/packages/finance.scm | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index 71d80bd081..20fd501a41 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -2265,7 +2265,7 @@ (define-public python-mt-940
 (define-public xmrig
   (package
     (name "xmrig")
-    (version "6.19.0")
+    (version "6.19.2")
     (source (origin
               (method git-fetch)
               (uri (git-reference
@@ -2274,7 +2274,7 @@ (define-public xmrig
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "10vaq6ld4sddnpmv9dg71fjvw1jrfaddrp3bq6p3dxhsl153khm4"))
+                "1hgcfq79d5060iryr34bpwf1dvgqmbmn9mm4ccfvp896r10j482h"))
               (modules '((guix build utils)))
               (snippet
                ;; TODO: Try to use system libraries instead of bundled ones in
@@ -2302,16 +2302,15 @@ (define-public xmrig
     (home-page "https://xmrig.com/")
     (synopsis "Monero miner")
     (description
-     "XMRig is a high performance, cross platform RandomX, KawPow,
-CryptoNight, AstroBWT and GhostRider unified CPU/GPU miner and RandomX
-benchmark.
+     "XMRig is a high-performance, cross-platform RandomX, KawPow,
+ CryptoNight and GhostRider unified CPU/GPU miner and RandomX benchmark.
 
 Warning: upstream, by default, receives a percentage of the mining time.  This
-anti-functionality has been neutralised in Guix, but possibly not in all other
+anti-functionality has been neutralized in Guix, but possibly not in all other
 distributions.
 
-Warning: this software, because of it's nature, has high energy consumption.
-Also, the energy expenses might be higher that the cryptocurrency gained by
+Warning: this software, because of its nature, has high energy consumption.
+Also, the energy expenses might be higher than the cryptocurrency gained by
 mining.")
     (license license:gpl3+)))
 
-- 
2.40.1





Reply sent to Guillaume Le Vaillant <glv <at> posteo.net>:
You have taken responsibility. (Sun, 21 May 2023 08:34:01 GMT) Full text and rfc822 format available.

Notification sent to Ahmad Draidi <a.r.draidi <at> redscript.org>:
bug acknowledged by developer. (Sun, 21 May 2023 08:34:02 GMT) Full text and rfc822 format available.

Message #25 received at 63615-done <at> debbugs.gnu.org (full text, mbox):

From: Guillaume Le Vaillant <glv <at> posteo.net>
To: Ahmad Draidi <a.r.draidi <at> redscript.org>
Cc: 63615-done <at> debbugs.gnu.org
Subject: Re: [bug#63615] [PATCH v2 0/2] Restyle and update xmrig to 6.19.2
Date: Sun, 21 May 2023 08:30:56 +0000
[Message part 1 (text/plain, inline)]
I didn't apply patch 1, as the restyling doesn't seem necessary in this
case.
Patch 2 applied as 7b3f571fc8e3fbb3fefc30ebe53ad074c30653a8 with
a complete commit message.
Thanks.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#63615; Package guix-patches. (Sun, 21 May 2023 10:59:02 GMT) Full text and rfc822 format available.

Message #28 received at 63615-done <at> debbugs.gnu.org (full text, mbox):

From: A <a <at> redscript.org>
To: Guillaume Le Vaillant <glv <at> posteo.net>,
 Ahmad Draidi <a.r.draidi <at> redscript.org>
Cc: 63615-done <at> debbugs.gnu.org
Subject: Re: [bug#63615] [PATCH v2 0/2] Restyle and update xmrig to 6.19.2
Date: Sun, 21 May 2023 12:53:48 +0400
Hello,

On 5/21/23 12:30, Guillaume Le Vaillant wrote:
> I didn't apply patch 1, as the restyling doesn't seem necessary in this
> case.
Out of curiosity, when would it be appropriate to send a "restyle" patch?
> Patch 2 applied as 7b3f571fc8e3fbb3fefc30ebe53ad074c30653a8 with
> a complete commit message.
> Thanks.
Thanks!




Information forwarded to guix-patches <at> gnu.org:
bug#63615; Package guix-patches. (Sun, 21 May 2023 11:33:01 GMT) Full text and rfc822 format available.

Message #31 received at 63615 <at> debbugs.gnu.org (full text, mbox):

From: Guillaume Le Vaillant <glv <at> posteo.net>
To: Ahmad Draidi <a.r.draidi <at> redscript.org>
Cc: 63615 <at> debbugs.gnu.org
Subject: Re: [bug#63615] [PATCH v2 0/2] Restyle and update xmrig to 6.19.2
Date: Sun, 21 May 2023 11:23:06 +0000
A <a <at> redscript.org> skribis:

> Hello,
>
> On 5/21/23 12:30, Guillaume Le Vaillant wrote:
>> I didn't apply patch 1, as the restyling doesn't seem necessary in this
>> case.
> Out of curiosity, when would it be appropriate to send a "restyle" patch?
>> Patch 2 applied as 7b3f571fc8e3fbb3fefc30ebe53ad074c30653a8 with
>> a complete commit message.
>> Thanks.
> Thanks!

Restyling is usually done when a package is still using the old style
with labels for inputs, when it is using quasiquote forms for arguments
and using gexps would simplify things, or when it has very long lines
(more than 80 characters).




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 19 Jun 2023 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 312 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.