From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C9D4F158099 for ; Sat, 25 Nov 2023 21:52:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A07D42BC02C; Sat, 25 Nov 2023 21:52:28 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 824D92BC02C for ; Sat, 25 Nov 2023 21:52:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7C38F340806 for ; Sat, 25 Nov 2023 21:52:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 87186A64 for ; Sat, 25 Nov 2023 21:52:25 +0000 (UTC) From: "Craig Andrews" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Craig Andrews" Message-ID: <1700949142.0e240bd7aee3904538dc333b2753d0bcc29c9d94.candrews@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/xmrig/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/xmrig/Manifest net-misc/xmrig/xmrig-6.21.0.ebuild X-VCS-Directories: net-misc/xmrig/ X-VCS-Committer: candrews X-VCS-Committer-Name: Craig Andrews X-VCS-Revision: 0e240bd7aee3904538dc333b2753d0bcc29c9d94 X-VCS-Branch: master Date: Sat, 25 Nov 2023 21:52:25 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7dee3525-c442-4311-9823-2f6cc67d3917 X-Archives-Hash: 80dd3277f23a6a65dd8e583b991ac640 commit: 0e240bd7aee3904538dc333b2753d0bcc29c9d94 Author: Craig Andrews gentoo org> AuthorDate: Sat Nov 25 21:51:43 2023 +0000 Commit: Craig Andrews gentoo org> CommitDate: Sat Nov 25 21:52:22 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e240bd7 net-misc/xmrig: add 6.21.0 Signed-off-by: Craig Andrews gentoo.org> net-misc/xmrig/Manifest | 1 + net-misc/xmrig/xmrig-6.21.0.ebuild | 72 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) diff --git a/net-misc/xmrig/Manifest b/net-misc/xmrig/Manifest index c9c312a57f6d..562a0fcbdbd3 100644 --- a/net-misc/xmrig/Manifest +++ b/net-misc/xmrig/Manifest @@ -1,2 +1,3 @@ DIST xmrig-6.18.1.tar.gz 2394259 BLAKE2B 4d7ed3ce7b6c9dce9b25da7c316df4542046b014167ce090c5c2ec4dbf61607e4238ce8a8407a396f1eb47dc76cbfac08e0131835d9c4bbff8f4e5920d2f19a6 SHA512 bb297b17f820ad38f0c68aebfe1be8e82e85aede99a9e2a7692935ed57dab06a36566d13c16f850123dc6e829dfb56bc9253c46b94e6a703fe169a0126feb37b DIST xmrig-6.20.0.tar.gz 2412536 BLAKE2B 7842c2ed52abb80ae0bc3cef3dd3972e6ebdaa02c64e851df1ec5388b8e4efc9be2b772f9295043ec65793300b9fde04819b838060c07619bf0b0244dbb7a9d6 SHA512 52a32f6a2aec8e4660fe408eac483456e705721fad139fa863a55ca4cc7144872b286d716ae4ffbfd6977f2b29ae10766c40bb02362fbf2b8fa2889c0c6d488a +DIST xmrig-6.21.0.tar.gz 2416452 BLAKE2B 6a8a521aa5e2e0d5d223f1f811b4624cd26c3569d06db8f9d85dff835dd8f6a49f5de32c2f390d66ea2955fa23961a2dcdeb28d9eea942a44cc5abb2ae17678b SHA512 167220ddda480a3e9f12282a555497d6f2c6d94ff265e8b1a061dc18c213f21c7033c7c8eed454dd1f2942f7c193aa164b5867798b3b77aadfd9fec61a94e183 diff --git a/net-misc/xmrig/xmrig-6.21.0.ebuild b/net-misc/xmrig/xmrig-6.21.0.ebuild new file mode 100644 index 000000000000..a36872e00718 --- /dev/null +++ b/net-misc/xmrig/xmrig-6.21.0.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake flag-o-matic systemd toolchain-funcs + +DESCRIPTION="RandomX, CryptoNight, KawPow, AstroBWT, and Argon2 CPU/GPU miner" +HOMEPAGE="https://xmrig.com https://github.com/xmrig/xmrig" + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/${PN}/${PN}.git" + inherit git-r3 +else + SRC_URI="https://github.com/xmrig/xmrig/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm64" +fi + +LICENSE="Apache-2.0 GPL-3+ MIT" +SLOT="0" +IUSE="cpu_flags_x86_sse4_1 donate hwloc opencl +ssl" + +DEPEND=" + dev-libs/libuv:= + hwloc? ( >=sys-apps/hwloc-2.5.0:= ) + opencl? ( virtual/opencl ) + ssl? ( dev-libs/openssl:= ) +" +RDEPEND=" + ${DEPEND} + !arm64? ( sys-apps/msr-tools ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-6.12.2-nonotls.patch +) + +src_prepare() { + if ! use donate ; then + sed -i 's/1;/0;/g' src/donate.h || die + fi + + cmake_src_prepare +} + +src_configure() { + # JIT broken with FORTIFY_SOURCE=3 + # Bug #913420 + if tc-enables-fortify-source; then + filter-flags -D_FORTIFY_SOURCE=3 + append-cppflags -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 + fi + + local mycmakeargs=( + -DWITH_SSE4_1=$(usex cpu_flags_x86_sse4_1) + -DWITH_HWLOC=$(usex hwloc) + -DWITH_TLS=$(usex ssl) + -DWITH_OPENCL=$(usex opencl) + -DWITH_CUDA=OFF + ) + + cmake_src_configure +} + +src_install() { + default + keepdir /etc/xmrig + systemd_dounit "${FILESDIR}"/xmrig.service + dobin "${BUILD_DIR}/xmrig" + dobin "${S}/scripts/enable_1gb_pages.sh" + dobin "${S}/scripts/randomx_boost.sh" +}