mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-11-27 11:48:20 -05:00
1. The ebuild seemed to have been added with the 4 architectures which leads me to believe that the support was not tested. 2. Upstream confirms the fact that it can work on arm32[1] so the keyword is not wrong. However they advise to use 64bit architectures[2] NOTE: That's why I have added a postinst ewarn discouraging their use. 3. There are no reverse dependencies for that keyword in ::gentoo or ::guru [1]: https://github.com/tevador/RandomX/blob/6fe0e390acc28a50bfe7f59603c2a6effae4a7cd/README.md?plain=1#L129 [2]: https://github.com/tevador/RandomX/blob/6fe0e390acc28a50bfe7f59603c2a6effae4a7cd/README.md?plain=1#L104 Signed-off-by: Filip Kobierski <fkobi@pm.me>
34 lines
943 B
Bash
34 lines
943 B
Bash
# Copyright 1999-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit cmake flag-o-matic
|
|
|
|
DESCRIPTION="Proof of work algorithm based on random code execution"
|
|
HOMEPAGE="https://github.com/tevador/RandomX"
|
|
SRC_URI="https://github.com/tevador/RandomX/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
S="${WORKDIR}"/RandomX-${PV}
|
|
|
|
LICENSE="BSD"
|
|
SLOT="0/$(ver_cut 1)"
|
|
KEYWORDS="~amd64 ~arm64 ~x86"
|
|
|
|
PATCHES=( "${FILESDIR}"/${PN}-1.2.1_remove-fPIE.patch )
|
|
|
|
src_configure() {
|
|
# Should be fixed in >1.2.3
|
|
# https://github.com/tevador/RandomX/pull/341
|
|
append-ldflags -Wl,-z,noexecstack
|
|
|
|
cmake_src_configure
|
|
}
|
|
|
|
pkg_postinst() {
|
|
if $(use x86); then
|
|
ewarn "Upstream recommends mining on 64bit processor architectures. You are not"
|
|
ewarn "using one so expect the hashrate to be smaller. For more see the below link:"
|
|
ewarn "https://github.com/tevador/RandomX/#which-cpu-is-best-for-mining-randomx"
|
|
fi
|
|
}
|