diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2021-10-26 21:41:13 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-10-31 03:05:46 +0000 |
commit | b4be638d4edd1a5128130ae9aee2f63b6c7626a8 (patch) | |
tree | 19255a48a636c6d9b500bd676cae49f41f94e7f0 /net-misc | |
parent | dev-util/packer: add 1.7.7 (diff) | |
download | gentoo-b4be638d4edd1a5128130ae9aee2f63b6c7626a8.tar.gz gentoo-b4be638d4edd1a5128130ae9aee2f63b6c7626a8.tar.bz2 gentoo-b4be638d4edd1a5128130ae9aee2f63b6c7626a8.zip |
net-misc/bfgminer: Upstream patch to fix build failure with USE=-cpumining
Closes: https://bugs.gentoo.org/775560
Signed-off-by: Luke Dashjr <luke-jr+git@utopios.org>
Closes: https://github.com/gentoo/gentoo/pull/22718
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/bfgminer/bfgminer-5.5.0-r2.ebuild | 1 | ||||
-rw-r--r-- | net-misc/bfgminer/files/bfgminer-5.5.0-cpus-undefined.patch | 23 |
2 files changed, 24 insertions, 0 deletions
diff --git a/net-misc/bfgminer/bfgminer-5.5.0-r2.ebuild b/net-misc/bfgminer/bfgminer-5.5.0-r2.ebuild index 462ec0a7d8d9..af67aaf1fede 100644 --- a/net-misc/bfgminer/bfgminer-5.5.0-r2.ebuild +++ b/net-misc/bfgminer/bfgminer-5.5.0-r2.ebuild @@ -120,6 +120,7 @@ DEPEND="${DEPEND} PATCHES=( "${FILESDIR}/${PN}-5.5.0-fno-common.patch" + "${FILESDIR}/${PN}-5.5.0-cpus-undefined.patch" ) src_configure() { diff --git a/net-misc/bfgminer/files/bfgminer-5.5.0-cpus-undefined.patch b/net-misc/bfgminer/files/bfgminer-5.5.0-cpus-undefined.patch new file mode 100644 index 000000000000..f9f0f43609ed --- /dev/null +++ b/net-misc/bfgminer/files/bfgminer-5.5.0-cpus-undefined.patch @@ -0,0 +1,23 @@ +https://bugs.gentoo.org/775560 + +commit 83f83d2cbc5e3044b314b914beb32dbb83a0055e +Author: Luke Dashjr <luke-jr+git@utopios.org> +Date: Tue Feb 9 15:39:56 2021 +0000 + + Bugfix: miner: Can't free cpus in non-cpumining builds anymore + +diff --git a/miner.c b/miner.c +index 075ea4655..de62f13a0 100644 +--- a/miner.c ++++ b/miner.c +@@ -11197,8 +11197,10 @@ void _bfg_clean_up(bool restarting) + print_summary(); + } + ++#ifdef USE_CPUMINING + if (opt_n_threads > 0) + free(cpus); ++#endif + + curl_global_cleanup(); + |