Github messages for voidlinux
 help / color / mirror / Atom feed
From: kevcrumb <kevcrumb@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] randomx: add package v1.1.8 and librandomx
Date: Wed, 25 Nov 2020 15:09:08 +0100	[thread overview]
Message-ID: <20201125140908.i2EpaQQP5EuypXSS7sugt-W8YosuRlkMkRBmRlcGhg4@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-26148@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 492 bytes --]

There is an updated pull request by kevcrumb against master on the void-packages repository

https://github.com/kevcrumb/void-packages randomx
https://github.com/void-linux/void-packages/pull/26148

randomx: add package v1.1.8 and librandomx
*randomx* contains binaries for benchmarking a machine for RandomX algo
*librandomx* provides library for using the algo (for example from a mining software)

A patch file from https://github.com/void-linux/void-packages/pull/26148.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-randomx-26148.patch --]
[-- Type: text/x-diff, Size: 6466 bytes --]

From 0dda9e87933e991662557b9ad05c545b2608606d Mon Sep 17 00:00:00 2001
From: Kevin Crumb <kevcrumb@splitlinux.org>
Date: Thu, 5 Nov 2020 10:35:54 +0000
Subject: [PATCH 1/2] randomx: add package v1.1.8 and librandomx

---
 srcpkgs/librandomx/template | 33 +++++++++++++++++++++++++++++++++
 srcpkgs/randomx/template    | 36 ++++++++++++++++++++++++++++++++++++
 2 files changed, 69 insertions(+)
 create mode 100644 srcpkgs/librandomx/template
 create mode 100644 srcpkgs/randomx/template

diff --git a/srcpkgs/librandomx/template b/srcpkgs/librandomx/template
new file mode 100644
index 00000000000..7112e8846ae
--- /dev/null
+++ b/srcpkgs/librandomx/template
@@ -0,0 +1,33 @@
+# Template file for 'librandomx'
+pkgname=librandomx
+version=1.1.8
+revision=2
+short_desc="Proof of work algorithm based on random code execution - Libraries"
+maintainer="Kevin Crumb <kevcrumb@splitlinux.org>"
+license="BSD-3-Clause"
+homepage="https://github.com/tevador/randomx"
+build_style=cmake
+makedepends="cmake gcc"
+distfiles="https://github.com/tevador/RandomX/archive/v${version}.tar.gz"
+checksum="f982a12d18b1d260bef2a1d3c46ae4902975fbf63abb38ca6413c96d1778db3a"
+
+case "$XBPS_TARGET_MACHINE" in
+        armv7*) configure_args+=" -DARCH=armv7" ;;
+        armv6*) configure_args+=" -DARCH=armv6" ;;
+        armv5*) configure_args+=" -DARCH=armv5" ;;
+        aarch64*) configure_args+=" -DARCH=aarch64" ;;
+        mips*) configure_args+=" -DARCH=mipsr32 -DNO_AES=ON" ;;
+        ppc64le*) configure_args+=" -DARCH=ppc64le" ;;
+        ppc64*) configure_args+=" -DARCH=ppc64" ;;
+        ppc*) configure_args+=" -DARCH=ppc"     ;;
+#        *) configure_args+=" -DARCH=native"     ;;
+esac
+
+post_extract() {
+	mv builddir/RandomX-${version} builddir/librandomx-${version}
+}
+
+post_install() {
+	vlicense LICENSE
+	vinstall build/librandomx.a 644 usr/lib/
+}
diff --git a/srcpkgs/randomx/template b/srcpkgs/randomx/template
new file mode 100644
index 00000000000..0ab1205f95b
--- /dev/null
+++ b/srcpkgs/randomx/template
@@ -0,0 +1,36 @@
+# Template file for 'randomx'
+pkgname=randomx
+version=1.1.8
+revision=2
+short_desc="Proof of work algorithm based on random code execution"
+maintainer="Kevin Crumb <kevcrumb@splitlinux.org>"
+license="BSD-3-Clause"
+homepage="https://github.com/tevador/randomx"
+build_style=cmake
+makedepends="cmake gcc"
+depends="librandomx"
+distfiles="https://github.com/tevador/RandomX/archive/v${version}.tar.gz"
+checksum="f982a12d18b1d260bef2a1d3c46ae4902975fbf63abb38ca6413c96d1778db3a"
+
+case "$XBPS_TARGET_MACHINE" in
+        armv7*) configure_args+=" -DARCH=armv7" ;;
+        armv6*) configure_args+=" -DARCH=armv6" ;;
+        armv5*) configure_args+=" -DARCH=armv5" ;;
+        aarch64*) configure_args+=" -DARCH=aarch64" ;;
+        mips*) configure_args+=" -DARCH=mipsr32 -DNO_AES=ON" ;;
+        ppc64le*) configure_args+=" -DARCH=ppc64le" ;;
+        ppc64*) configure_args+=" -DARCH=ppc64" ;;
+        ppc*) configure_args+=" -DARCH=ppc"     ;;
+#        *) configure_args+=" -DARCH=native"     ;;
+esac
+
+post_extract() {
+	mv builddir/RandomX-${version} builddir/randomx-${version}
+}
+
+post_install() {
+	vlicense LICENSE
+	vbin build/randomx-benchmark
+	vbin build/randomx-codegen
+	vbin build/randomx-tests
+}

From 301f87380b7bbb753553907f36394d1828d935ce Mon Sep 17 00:00:00 2001
From: Kevin Crumb <kevcrumb@splitlinux.org>
Date: Wed, 25 Nov 2020 12:46:27 +0000
Subject: [PATCH 2/2] randomx: convert librandomx to subpackage randomx-devel

---
 srcpkgs/librandomx/template | 33 ---------------------------------
 srcpkgs/randomx-devel       |  1 +
 srcpkgs/randomx/template    | 16 ++++++++++++----
 3 files changed, 13 insertions(+), 37 deletions(-)
 delete mode 100644 srcpkgs/librandomx/template
 create mode 120000 srcpkgs/randomx-devel

diff --git a/srcpkgs/librandomx/template b/srcpkgs/librandomx/template
deleted file mode 100644
index 7112e8846ae..00000000000
--- a/srcpkgs/librandomx/template
+++ /dev/null
@@ -1,33 +0,0 @@
-# Template file for 'librandomx'
-pkgname=librandomx
-version=1.1.8
-revision=2
-short_desc="Proof of work algorithm based on random code execution - Libraries"
-maintainer="Kevin Crumb <kevcrumb@splitlinux.org>"
-license="BSD-3-Clause"
-homepage="https://github.com/tevador/randomx"
-build_style=cmake
-makedepends="cmake gcc"
-distfiles="https://github.com/tevador/RandomX/archive/v${version}.tar.gz"
-checksum="f982a12d18b1d260bef2a1d3c46ae4902975fbf63abb38ca6413c96d1778db3a"
-
-case "$XBPS_TARGET_MACHINE" in
-        armv7*) configure_args+=" -DARCH=armv7" ;;
-        armv6*) configure_args+=" -DARCH=armv6" ;;
-        armv5*) configure_args+=" -DARCH=armv5" ;;
-        aarch64*) configure_args+=" -DARCH=aarch64" ;;
-        mips*) configure_args+=" -DARCH=mipsr32 -DNO_AES=ON" ;;
-        ppc64le*) configure_args+=" -DARCH=ppc64le" ;;
-        ppc64*) configure_args+=" -DARCH=ppc64" ;;
-        ppc*) configure_args+=" -DARCH=ppc"     ;;
-#        *) configure_args+=" -DARCH=native"     ;;
-esac
-
-post_extract() {
-	mv builddir/RandomX-${version} builddir/librandomx-${version}
-}
-
-post_install() {
-	vlicense LICENSE
-	vinstall build/librandomx.a 644 usr/lib/
-}
diff --git a/srcpkgs/randomx-devel b/srcpkgs/randomx-devel
new file mode 120000
index 00000000000..70052bb9346
--- /dev/null
+++ b/srcpkgs/randomx-devel
@@ -0,0 +1 @@
+randomx
\ No newline at end of file
diff --git a/srcpkgs/randomx/template b/srcpkgs/randomx/template
index 0ab1205f95b..0d6b4e4c40a 100644
--- a/srcpkgs/randomx/template
+++ b/srcpkgs/randomx/template
@@ -1,14 +1,12 @@
 # Template file for 'randomx'
 pkgname=randomx
 version=1.1.8
-revision=2
+revision=4
 short_desc="Proof of work algorithm based on random code execution"
 maintainer="Kevin Crumb <kevcrumb@splitlinux.org>"
 license="BSD-3-Clause"
 homepage="https://github.com/tevador/randomx"
 build_style=cmake
-makedepends="cmake gcc"
-depends="librandomx"
 distfiles="https://github.com/tevador/RandomX/archive/v${version}.tar.gz"
 checksum="f982a12d18b1d260bef2a1d3c46ae4902975fbf63abb38ca6413c96d1778db3a"
 
@@ -28,9 +26,19 @@ post_extract() {
 	mv builddir/RandomX-${version} builddir/randomx-${version}
 }
 
-post_install() {
+do_install() {
 	vlicense LICENSE
 	vbin build/randomx-benchmark
 	vbin build/randomx-codegen
 	vbin build/randomx-tests
 }
+
+
+randomx-devel_package() {
+	short_desc+=" - development files"
+
+	pkg_install() {
+		vlicense LICENSE
+		vinstall build/librandomx.a 644 usr/lib/
+	}
+}

  reply	other threads:[~2020-11-25 14:09 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-05 10:39 [PR PATCH] " kevcrumb
2020-11-25 14:09 ` kevcrumb [this message]
2020-11-25 15:10 ` [PR PATCH] [Updated] " kevcrumb
2020-11-25 15:21 ` kevcrumb
2020-11-25 15:33 ` kevcrumb
2020-11-25 15:46 ` kevcrumb
2020-11-25 15:47 ` kevcrumb
2020-11-25 15:52 ` [PR PATCH] [Updated] New package: randomx-1.1.8 kevcrumb
2020-11-25 15:54 ` kevcrumb
2020-11-25 15:57 ` [PR REVIEW] " q66
2020-11-25 15:57 ` q66
2020-11-25 16:00 ` sgn
2020-11-25 16:02 ` [PR PATCH] [Updated] " kevcrumb
2020-11-25 16:32 ` q66
2020-11-25 16:32 ` q66
2020-11-25 17:10 ` [PR PATCH] [Updated] " kevcrumb
2020-11-25 17:11 ` kevcrumb
2020-11-25 17:12 ` [PR REVIEW] " ericonr
2020-11-25 17:27 ` [PR PATCH] [Updated] " kevcrumb
2020-11-25 18:03 ` q66
2022-04-24  2:05 ` github-actions
2022-05-08  2:11 ` [PR PATCH] [Closed]: " github-actions

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201125140908.i2EpaQQP5EuypXSS7sugt-W8YosuRlkMkRBmRlcGhg4@z \
    --to=kevcrumb@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).