From patchwork Sat May 20 19:55:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ahmad Draidi X-Patchwork-Id: 50175 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 578CF27BBE9; Sat, 20 May 2023 20:56:17 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 130A927BBE2 for ; Sat, 20 May 2023 20:56:16 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q0SgO-0001dC-Hu; Sat, 20 May 2023 15:56:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q0SgM-0001d2-JN for guix-patches@gnu.org; Sat, 20 May 2023 15:56:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q0SgM-0002CS-Bm for guix-patches@gnu.org; Sat, 20 May 2023 15:56:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q0SgM-0003hJ-0G for guix-patches@gnu.org; Sat, 20 May 2023 15:56:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63615] [PATCH 1/2] gnu: xmrig: Run 'guix style' over the package. Resent-From: Ahmad Draidi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 20 May 2023 19:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63615 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63615@debbugs.gnu.org Cc: Ahmad Draidi Received: via spool by 63615-submit@debbugs.gnu.org id=B63615.168461255814203 (code B ref 63615); Sat, 20 May 2023 19:56:01 +0000 Received: (at 63615) by debbugs.gnu.org; 20 May 2023 19:55:58 +0000 Received: from localhost ([127.0.0.1]:59412 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q0SgH-0003h0-Tk for submit@debbugs.gnu.org; Sat, 20 May 2023 15:55:58 -0400 Received: from rainycloud.ext.redscript.org ([103.105.48.212]:55830) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q0SgG-0003gn-9f for 63615@debbugs.gnu.org; Sat, 20 May 2023 15:55:57 -0400 Received: from localhost.localdomain (bba-92-97-101-171.alshamil.net.ae [92.97.101.171]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by rainycloud.ext.redscript.org (Postfix) with ESMTPSA id 363E1844E; Sat, 20 May 2023 19:55:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redscript.org; s=mail1-rsa; t=1684612550; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=a8LgNmfiF+/puOH4DuTnzNC/JRa4djqxPAWU49IM3Uo=; b=vz3AQiR9Mb7r4aW7q3R7Hscb7/S7bLEJ29LL3/KYgu4KNcKHfvKcEv1xFZk8FRa9tMG1mb ytb1wPaH8+abq0SZug5+b8o+m84OkMgg2+AhIzZAvot+AJz5DghE5PO7hiDwJVCIlM+F7v ys8VxKSSGcUWXEmpER/vw0UYKK7IGfcHNEBdZdjUb1h96HjAa002pmY4aW9ocyKIVnyzRT EpTTk+a/NlarSMMgx+77JyCadO0jgLIf8B7+xHBtcKEhcOTf72rqqCCESuTevMsyT+HKHH TxtMAEDfS2Y7jCFC9bRM5IbmgYrr6GsIKmjhD5tHS0m9rmDAD1SAK5y8bqJntuhEbuEQ8C vJu1ycq86/KDc+DFpwM693l3eAHnOmF3aJ9V9HnUnE14DW9IqEvcW72JWufGD+WUt3IW9F 8zv40ZcyHdNLje5q0ABhggImF05TkzSc0F72sJRbEMAD0JILB8plQYZ4HhHexALgB+VB7l WU1/nov6ODb9eUms7I34YdGW9Mut3KDnzdFX/VZLpwc+3aBbpeTNcq85rRk6GNoNT00dVw Qc8eET3xiP1iv9bfL4NcuXVo8q+/G4rlZzjCxGZF+Fu/ynRDWveFvyyepJVLELT7Mff2mA gcmrltisMkQxmW3mmA4l10GTQG0A8uzIm/UbfnUj3Xmid7dJJG2pM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=redscript.org; s=mail1-ed25519; t=1684612550; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=a8LgNmfiF+/puOH4DuTnzNC/JRa4djqxPAWU49IM3Uo=; b=XBcA089cHQcl7qXYXiBOmJbAFW9rT7mY6fhI8LXPB9pakyM6I4kYlUPyRJC+3MiCSHrTOG YtckAC6pk9MRNBDg== Date: Sat, 20 May 2023 23:55:04 +0400 Message-Id: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Ahmad Draidi X-ACL-Warn: , Ahmad Draidi via Guix-patches X-Patchwork-Original-From: Ahmad Draidi via Guix-patches via From: Ahmad Draidi Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * 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 From patchwork Sat May 20 19:55:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ahmad Draidi X-Patchwork-Id: 50176 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 25CF327BBE9; Sat, 20 May 2023 20:57:19 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 665BB27BBE2 for ; Sat, 20 May 2023 20:57:18 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q0ShM-0001kn-MO; Sat, 20 May 2023 15:57:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q0ShL-0001kX-3A for guix-patches@gnu.org; Sat, 20 May 2023 15:57:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q0ShK-0002NZ-OA for guix-patches@gnu.org; Sat, 20 May 2023 15:57:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q0ShK-0003is-Jk for guix-patches@gnu.org; Sat, 20 May 2023 15:57:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63615] [PATCH 2/2] gnu: xmrig: Update to 6.19.2. Resent-From: Ahmad Draidi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 20 May 2023 19:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63615 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63615@debbugs.gnu.org Cc: Ahmad Draidi Received: via spool by 63615-submit@debbugs.gnu.org id=B63615.168461256414245 (code B ref 63615); Sat, 20 May 2023 19:57:02 +0000 Received: (at 63615) by debbugs.gnu.org; 20 May 2023 19:56:04 +0000 Received: from localhost ([127.0.0.1]:59417 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q0SgO-0003hh-B6 for submit@debbugs.gnu.org; Sat, 20 May 2023 15:56:04 -0400 Received: from rainycloud.ext.redscript.org ([103.105.48.212]:60630) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q0SgM-0003gz-MX for 63615@debbugs.gnu.org; Sat, 20 May 2023 15:56:03 -0400 Received: from localhost.localdomain (bba-92-97-101-171.alshamil.net.ae [92.97.101.171]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by rainycloud.ext.redscript.org (Postfix) with ESMTPSA id 80F688478; Sat, 20 May 2023 19:55:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redscript.org; s=mail1-rsa; t=1684612557; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=35z8r87PK9t9HMkVODd7a/tKcS2IuVGmmuNS0UX/fgI=; b=ZRr3rcVkTxXyt/NAcIfZ9pCNCnxfAVp80XF+3CZ56KFkGLCv5Mkqk5OOZtD6XU6rdYUzht vu0eMA8+YQLYY0oYnyX6tKR7Zmk9V9r6+qubLGLdCW2KXm2VKASDpdVw4MHcupW8ZDCK6o qnbMHQkFFnzMpDTQ2Sz+azZhBotI2c69VFygKxqkPOQ9eIMQG2D6CiE39jK0AzGBUzvKos BriDobQvyX0O0JTryzD0xvA9jaaBhR6fk01gpTlmGnXhohSb5gMRC9r0K3M1JA3OZKrUTS iByVI0IBxEC87iCItyEtmAprA24T8Y/KWWpHuAQXh9sOhqD3CyB07oAEcj4mQlz9ALWSSu ocr/qMJX06hxhIf7jnIKYDy1bIygf4sV2N43Nztqmp5rhokPTrjUnC3otbMMISOtM0Nfyl cRCrcN/gc77MKPe6VcH3cs9Oso0d8w/Ypi5nbA6vrN7a6CmGM7ycJmna6qn2AK7yN1FAKy oe+DIPo4EnpcUFuxJuj/XPFQ/+FvjEq4Vw19xQ2OnqWf0f8DHSRyJMrPbBvS6/GGHZyGBY nFG3N73M+/4RNh180iAIdi1+ZaJVjtj/mh1OQvwRmJGk7g5ORUNl8edksK3ZLU1pHfGtbv 37kzqYWtgX4lxjBVz6P11P2zrSJRdgYNLvOeRKKzDii/jZQwplwAY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=redscript.org; s=mail1-ed25519; t=1684612557; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=35z8r87PK9t9HMkVODd7a/tKcS2IuVGmmuNS0UX/fgI=; b=PUVyVgRFBL9xjFf4X6UbjyNlb2RStxQMO9/RQXDC44aA37CMzrwTZVSXGEDNxMCAmTeSzq JB9QJpFcGJFcVMCw== Date: Sat, 20 May 2023 23:55:05 +0400 Message-Id: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Ahmad Draidi X-ACL-Warn: , Ahmad Draidi via Guix-patches X-Patchwork-Original-From: Ahmad Draidi via Guix-patches via From: Ahmad Draidi Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * 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