Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/bfgminer/files/, net-misc/bfgminer/
Date: Sun, 31 Oct 2021 03:06:19
Message-Id: 1635649546.b4be638d4edd1a5128130ae9aee2f63b6c7626a8.sam@gentoo
1 commit: b4be638d4edd1a5128130ae9aee2f63b6c7626a8
2 Author: Luke Dashjr <luke-jr+git <AT> utopios <DOT> org>
3 AuthorDate: Tue Oct 26 21:41:13 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 31 03:05:46 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4be638d
7
8 net-misc/bfgminer: Upstream patch to fix build failure with USE=-cpumining
9
10 Closes: https://bugs.gentoo.org/775560
11 Signed-off-by: Luke Dashjr <luke-jr+git <AT> utopios.org>
12 Closes: https://github.com/gentoo/gentoo/pull/22718
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 net-misc/bfgminer/bfgminer-5.5.0-r2.ebuild | 1 +
16 .../files/bfgminer-5.5.0-cpus-undefined.patch | 23 ++++++++++++++++++++++
17 2 files changed, 24 insertions(+)
18
19 diff --git a/net-misc/bfgminer/bfgminer-5.5.0-r2.ebuild b/net-misc/bfgminer/bfgminer-5.5.0-r2.ebuild
20 index 462ec0a7d8d..af67aaf1fed 100644
21 --- a/net-misc/bfgminer/bfgminer-5.5.0-r2.ebuild
22 +++ b/net-misc/bfgminer/bfgminer-5.5.0-r2.ebuild
23 @@ -120,6 +120,7 @@ DEPEND="${DEPEND}
24
25 PATCHES=(
26 "${FILESDIR}/${PN}-5.5.0-fno-common.patch"
27 + "${FILESDIR}/${PN}-5.5.0-cpus-undefined.patch"
28 )
29
30 src_configure() {
31
32 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
33 new file mode 100644
34 index 00000000000..f9f0f43609e
35 --- /dev/null
36 +++ b/net-misc/bfgminer/files/bfgminer-5.5.0-cpus-undefined.patch
37 @@ -0,0 +1,23 @@
38 +https://bugs.gentoo.org/775560
39 +
40 +commit 83f83d2cbc5e3044b314b914beb32dbb83a0055e
41 +Author: Luke Dashjr <luke-jr+git@×××××××.org>
42 +Date: Tue Feb 9 15:39:56 2021 +0000
43 +
44 + Bugfix: miner: Can't free cpus in non-cpumining builds anymore
45 +
46 +diff --git a/miner.c b/miner.c
47 +index 075ea4655..de62f13a0 100644
48 +--- a/miner.c
49 ++++ b/miner.c
50 +@@ -11197,8 +11197,10 @@ void _bfg_clean_up(bool restarting)
51 + print_summary();
52 + }
53 +
54 ++#ifdef USE_CPUMINING
55 + if (opt_n_threads > 0)
56 + free(cpus);
57 ++#endif
58 +
59 + curl_global_cleanup();
60 +