* [bug#63615] [PATCH 0/2] Restyle and update xmrig to 6.19.2
@ 2023-05-20 19:50 Ahmad Draidi via Guix-patches via
2023-05-20 19:55 ` [bug#63615] [PATCH 1/2] gnu: xmrig: Run 'guix style' over the package Ahmad Draidi via Guix-patches via
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Ahmad Draidi via Guix-patches via @ 2023-05-20 19:50 UTC (permalink / raw)
To: 63615; +Cc: Ahmad Draidi
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* [bug#63615] [PATCH 1/2] gnu: xmrig: Run 'guix style' over the package.
2023-05-20 19:50 [bug#63615] [PATCH 0/2] Restyle and update xmrig to 6.19.2 Ahmad Draidi via Guix-patches via
@ 2023-05-20 19:55 ` Ahmad Draidi via Guix-patches via
2023-05-20 19:55 ` [bug#63615] [PATCH 2/2] gnu: xmrig: Update to 6.19.2 Ahmad Draidi via Guix-patches via
2023-05-21 5:48 ` [bug#63615] [PATCH v2 0/2] Restyle and update xmrig " Ahmad Draidi via Guix-patches via
2 siblings, 0 replies; 9+ messages in thread
From: Ahmad Draidi via Guix-patches via @ 2023-05-20 19:55 UTC (permalink / raw)
To: 63615; +Cc: Ahmad Draidi
* 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
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [bug#63615] [PATCH 2/2] gnu: xmrig: Update to 6.19.2.
2023-05-20 19:50 [bug#63615] [PATCH 0/2] Restyle and update xmrig to 6.19.2 Ahmad Draidi via Guix-patches via
2023-05-20 19:55 ` [bug#63615] [PATCH 1/2] gnu: xmrig: Run 'guix style' over the package Ahmad Draidi via Guix-patches via
@ 2023-05-20 19:55 ` Ahmad Draidi via Guix-patches via
2023-05-21 5:48 ` [bug#63615] [PATCH v2 0/2] Restyle and update xmrig " Ahmad Draidi via Guix-patches via
2 siblings, 0 replies; 9+ messages in thread
From: Ahmad Draidi via Guix-patches via @ 2023-05-20 19:55 UTC (permalink / raw)
To: 63615; +Cc: Ahmad Draidi
* 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
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [bug#63615] [PATCH v2 0/2] Restyle and update xmrig to 6.19.2
2023-05-20 19:50 [bug#63615] [PATCH 0/2] Restyle and update xmrig to 6.19.2 Ahmad Draidi via Guix-patches via
2023-05-20 19:55 ` [bug#63615] [PATCH 1/2] gnu: xmrig: Run 'guix style' over the package Ahmad Draidi via Guix-patches via
2023-05-20 19:55 ` [bug#63615] [PATCH 2/2] gnu: xmrig: Update to 6.19.2 Ahmad Draidi via Guix-patches via
@ 2023-05-21 5:48 ` Ahmad Draidi via Guix-patches via
2023-05-21 5:48 ` [bug#63615] [PATCH v2 1/2] gnu: xmrig: Run 'guix style' over the package Ahmad Draidi via Guix-patches via
` (2 more replies)
2 siblings, 3 replies; 9+ messages in thread
From: Ahmad Draidi via Guix-patches via @ 2023-05-21 5:48 UTC (permalink / raw)
To: 63615; +Cc: Ahmad Draidi
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* [bug#63615] [PATCH v2 1/2] gnu: xmrig: Run 'guix style' over the package.
2023-05-21 5:48 ` [bug#63615] [PATCH v2 0/2] Restyle and update xmrig " Ahmad Draidi via Guix-patches via
@ 2023-05-21 5:48 ` Ahmad Draidi via Guix-patches via
2023-05-21 5:48 ` [bug#63615] [PATCH v2 2/2] gnu: xmrig: Update to 6.19.2 Ahmad Draidi via Guix-patches via
2023-05-21 8:30 ` bug#63615: [PATCH v2 0/2] Restyle and update xmrig " Guillaume Le Vaillant
2 siblings, 0 replies; 9+ messages in thread
From: Ahmad Draidi via Guix-patches via @ 2023-05-21 5:48 UTC (permalink / raw)
To: 63615; +Cc: Ahmad Draidi
* 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
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [bug#63615] [PATCH v2 2/2] gnu: xmrig: Update to 6.19.2.
2023-05-21 5:48 ` [bug#63615] [PATCH v2 0/2] Restyle and update xmrig " Ahmad Draidi via Guix-patches via
2023-05-21 5:48 ` [bug#63615] [PATCH v2 1/2] gnu: xmrig: Run 'guix style' over the package Ahmad Draidi via Guix-patches via
@ 2023-05-21 5:48 ` Ahmad Draidi via Guix-patches via
2023-05-21 8:30 ` bug#63615: [PATCH v2 0/2] Restyle and update xmrig " Guillaume Le Vaillant
2 siblings, 0 replies; 9+ messages in thread
From: Ahmad Draidi via Guix-patches via @ 2023-05-21 5:48 UTC (permalink / raw)
To: 63615; +Cc: Ahmad Draidi
* 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
^ permalink raw reply related [flat|nested] 9+ messages in thread
* bug#63615: [PATCH v2 0/2] Restyle and update xmrig to 6.19.2
2023-05-21 5:48 ` [bug#63615] [PATCH v2 0/2] Restyle and update xmrig " Ahmad Draidi via Guix-patches via
2023-05-21 5:48 ` [bug#63615] [PATCH v2 1/2] gnu: xmrig: Run 'guix style' over the package Ahmad Draidi via Guix-patches via
2023-05-21 5:48 ` [bug#63615] [PATCH v2 2/2] gnu: xmrig: Update to 6.19.2 Ahmad Draidi via Guix-patches via
@ 2023-05-21 8:30 ` Guillaume Le Vaillant
2023-05-21 8:53 ` [bug#63615] " A via Guix-patches via
2 siblings, 1 reply; 9+ messages in thread
From: Guillaume Le Vaillant @ 2023-05-21 8:30 UTC (permalink / raw)
To: Ahmad Draidi; +Cc: 63615-done
[-- Attachment #1: Type: text/plain, Size: 178 bytes --]
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.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* [bug#63615] [PATCH v2 0/2] Restyle and update xmrig to 6.19.2
2023-05-21 8:30 ` bug#63615: [PATCH v2 0/2] Restyle and update xmrig " Guillaume Le Vaillant
@ 2023-05-21 8:53 ` A via Guix-patches via
2023-05-21 11:23 ` Guillaume Le Vaillant
0 siblings, 1 reply; 9+ messages in thread
From: A via Guix-patches via @ 2023-05-21 8:53 UTC (permalink / raw)
To: Guillaume Le Vaillant, Ahmad Draidi; +Cc: 63615-done
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!
^ permalink raw reply [flat|nested] 9+ messages in thread
* [bug#63615] [PATCH v2 0/2] Restyle and update xmrig to 6.19.2
2023-05-21 8:53 ` [bug#63615] " A via Guix-patches via
@ 2023-05-21 11:23 ` Guillaume Le Vaillant
0 siblings, 0 replies; 9+ messages in thread
From: Guillaume Le Vaillant @ 2023-05-21 11:23 UTC (permalink / raw)
To: Ahmad Draidi; +Cc: 63615
A <a@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).
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2023-05-21 13:19 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-20 19:50 [bug#63615] [PATCH 0/2] Restyle and update xmrig to 6.19.2 Ahmad Draidi via Guix-patches via
2023-05-20 19:55 ` [bug#63615] [PATCH 1/2] gnu: xmrig: Run 'guix style' over the package Ahmad Draidi via Guix-patches via
2023-05-20 19:55 ` [bug#63615] [PATCH 2/2] gnu: xmrig: Update to 6.19.2 Ahmad Draidi via Guix-patches via
2023-05-21 5:48 ` [bug#63615] [PATCH v2 0/2] Restyle and update xmrig " Ahmad Draidi via Guix-patches via
2023-05-21 5:48 ` [bug#63615] [PATCH v2 1/2] gnu: xmrig: Run 'guix style' over the package Ahmad Draidi via Guix-patches via
2023-05-21 5:48 ` [bug#63615] [PATCH v2 2/2] gnu: xmrig: Update to 6.19.2 Ahmad Draidi via Guix-patches via
2023-05-21 8:30 ` bug#63615: [PATCH v2 0/2] Restyle and update xmrig " Guillaume Le Vaillant
2023-05-21 8:53 ` [bug#63615] " A via Guix-patches via
2023-05-21 11:23 ` Guillaume Le Vaillant
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
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.