Skip to content

Commit

Permalink
patch fix for 6.15.0 compiler error
Browse files Browse the repository at this point in the history
See xmrig/xmrig-cuda#119 for details.
  • Loading branch information
hv15 committed Sep 3, 2021
1 parent dc898fe commit 81ea6ba
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .SRCINFO
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pkgbase = xmrig-cuda
pkgdesc = NVIDIA CUDA plugin for XMRig miner.
pkgver = 6.15.0
pkgrel = 2
pkgrel = 3
url = https://github.com/xmrig/xmrig-cuda
arch = x86_64
license = GPL
Expand All @@ -12,6 +12,8 @@ pkgbase = xmrig-cuda
depends = cuda>=8.0
optdepends = monero: wallet
source = https://github.com/xmrig/xmrig-cuda/archive/v6.15.0.tar.gz
source = fix-compile.patch
sha256sums = 64c440a4cb439f3cc8120f1883274158f95df988ab91eccb1d2d2abf0bedbbfe
sha256sums = f1463f7d456f8f367b8063fdf600653f773ce33b2e3714af58c1c51a102c7d17

pkgname = xmrig-cuda
14 changes: 11 additions & 3 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,24 @@

pkgname=xmrig-cuda
pkgver=6.15.0
pkgrel=2
pkgrel=3
pkgdesc='NVIDIA CUDA plugin for XMRig miner.'
arch=('x86_64')
url='https://github.com/xmrig/xmrig-cuda'
depends=('xmrig>=6.15.0' 'cuda>=8.0')
optdepends=('monero: wallet')
makedepends=('cmake' 'openssl' 'cuda>=8.0')
license=('GPL')
source=("${url}/archive/v${pkgver}.tar.gz")
sha256sums=('64c440a4cb439f3cc8120f1883274158f95df988ab91eccb1d2d2abf0bedbbfe')
source=("${url}/archive/v${pkgver}.tar.gz"
'fix-compile.patch')
sha256sums=('64c440a4cb439f3cc8120f1883274158f95df988ab91eccb1d2d2abf0bedbbfe'
'f1463f7d456f8f367b8063fdf600653f773ce33b2e3714af58c1c51a102c7d17')

prepare () {
cd "${pkgname}-${pkgver}"

patch -p1 < ${srcdir}/fix-compile.patch
}

build() {
cd "${pkgname}-${pkgver}"
Expand Down
11 changes: 11 additions & 0 deletions fix-compile.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- xmrig-cuda-6.15.0/src/crypto/common/Algorithm.h 2021-08-31 08:57:51.000000000 +0200
+++ xmrig-cuda-6.15.0/src/crypto/common/Algorithm.h 2021-09-03 09:20:00.997701452 +0200
@@ -20,7 +20,7 @@
#ifndef XMRIG_ALGORITHM_H
#define XMRIG_ALGORITHM_H

-
+#include <cstdint>
#include <vector>


0 comments on commit 81ea6ba

Please sign in to comment.