diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2024-07-12 17:09:04 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2024-07-12 17:09:21 +0300 |
commit | f01f975cda368b86cd39c42f5971454540da6108 (patch) | |
tree | e0edee8b2f1a6b0a2d9ab8f54936738233261f3f /net-misc | |
parent | sci-libs/o2scl: treeclean (diff) | |
download | gentoo-f01f975cda368b86cd39c42f5971454540da6108.tar.gz gentoo-f01f975cda368b86cd39c42f5971454540da6108.tar.bz2 gentoo-f01f975cda368b86cd39c42f5971454540da6108.zip |
net-misc/bfgminer: treeclean
Bug: https://bugs.gentoo.org/934156
Bug: https://bugs.gentoo.org/636422
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/bfgminer/Manifest | 1 | ||||
-rw-r--r-- | net-misc/bfgminer/bfgminer-5.5.0-r4.ebuild | 188 | ||||
-rw-r--r-- | net-misc/bfgminer/files/bfgminer-5.5.0-cpus-undefined.patch | 23 | ||||
-rw-r--r-- | net-misc/bfgminer/files/bfgminer-5.5.0-fno-common.patch | 83 | ||||
-rw-r--r-- | net-misc/bfgminer/metadata.xml | 49 |
5 files changed, 0 insertions, 344 deletions
diff --git a/net-misc/bfgminer/Manifest b/net-misc/bfgminer/Manifest deleted file mode 100644 index fbc08dabb6e7..000000000000 --- a/net-misc/bfgminer/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST bfgminer-5.5.0.tar.xz 1054664 BLAKE2B db841a73bca10b19205744be531c13f2c4435bd69c9f2af7b8aba84381af640028cc4db33df399cf05dd0bbec7b79a5b65679bcb2a8bec7624f6fbc47e9ebd79 SHA512 d1adae473e01fcf1cd0efde74d3e8ce10609e520397d688bf4e226c1113c1606c782e3cfdba6847f1a3886cac30de6b5baa03b731aca86287d53bf01ef705cdb diff --git a/net-misc/bfgminer/bfgminer-5.5.0-r4.ebuild b/net-misc/bfgminer/bfgminer-5.5.0-r4.ebuild deleted file mode 100644 index 27be1f5518ea..000000000000 --- a/net-misc/bfgminer/bfgminer-5.5.0-r4.ebuild +++ /dev/null @@ -1,188 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -DESCRIPTION="Modular Bitcoin ASIC/FPGA/GPU/CPU miner in C" -HOMEPAGE="https://bitcointalk.org/?topic=168174" -SRC_URI="http://luke.dashjr.org/programs/bitcoin/files/${PN}/${PV}/${P}.txz -> ${P}.tar.xz" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="amd64 ~arm ~ppc ~ppc64 x86" - -# TODO: knc (needs i2c-tools header) -# TODO: kncasic & titan (need systemwide knc-asic install) -# TODO: minergate (needs actual miner_gate) -IUSE="adl alchemist avalon avalonmm bitmain bfsb bfx bifury bigpic bitforce bitfury cointerra cpumining drillbit dualminer examples gridseed hardened hashbuster hashbuster2 hashfast icarus jingtian keccak klondike +libusb littlefury lm-sensors metabank minion modminer nanofury ncurses opencl proxy proxy_getwork proxy_stratum rockminer screen scrypt +sha256d twinfury +udev udev-broad-rules unicode x6500 zeusminer ztex" -REQUIRED_USE=" - || ( keccak scrypt sha256d ) - || ( alchemist avalon avalonmm bitmain bfsb bfx bifury bigpic bitforce bitfury cointerra cpumining drillbit dualminer gridseed hashbuster hashbuster2 hashfast icarus klondike littlefury metabank modminer nanofury opencl proxy twinfury x6500 zeusminer ztex ) - adl? ( opencl ) - alchemist? ( scrypt ) - avalon? ( sha256d ) - avalonmm? ( sha256d ) - bitmain? ( sha256d ) - bfsb? ( sha256d bitfury ) - bfx? ( sha256d bitfury libusb ) - bifury? ( sha256d ) - bigpic? ( sha256d bitfury ) - bitforce? ( sha256d ) - bitfury? ( sha256d ) - cointerra? ( sha256d ) - drillbit? ( sha256d bitfury ) - dualminer? ( || ( sha256d scrypt ) icarus ) - gridseed? ( scrypt ) - hashbuster? ( sha256d bitfury ) - hashbuster2? ( sha256d bitfury libusb ) - hashfast? ( sha256d ) - icarus? ( || ( scrypt sha256d ) ) - jingtian? ( sha256d ) - keccak? ( || ( cpumining opencl proxy ) ) - klondike? ( sha256d libusb ) - littlefury? ( sha256d bitfury ) - lm-sensors? ( opencl ) - metabank? ( sha256d bitfury ) - minion? ( sha256d ) - modminer? ( sha256d ) - nanofury? ( sha256d bitfury ) - scrypt? ( || ( alchemist cpumining dualminer gridseed opencl proxy zeusminer ) ) - sha256d? ( || ( avalon avalonmm bitmain bfx bifury bitforce bfsb bigpic bitfury cointerra cpumining drillbit dualminer hashbuster hashbuster2 hashfast icarus jingtian klondike littlefury metabank modminer nanofury opencl proxy rockminer twinfury x6500 ztex ) ) - unicode? ( ncurses ) - proxy? ( || ( proxy_getwork proxy_stratum ) ) - proxy_getwork? ( proxy ) - proxy_stratum? ( proxy ) - rockminer? ( sha256d ) - twinfury? ( bitfury sha256d ) - x6500? ( sha256d libusb ) - zeusminer? ( scrypt icarus ) - ztex? ( sha256d libusb ) -" - -DEPEND=" - net-misc/curl - ncurses? ( - sys-libs/ncurses:=[unicode(+)?] - ) - >=dev-libs/jansson-2:= - dev-libs/libbase58 - net-libs/libblkmaker - udev? ( - virtual/udev - ) - hashbuster? ( - dev-libs/hidapi - ) - libusb? ( - virtual/libusb:1 - ) - lm-sensors? ( - sys-apps/lm-sensors - ) - nanofury? ( - dev-libs/hidapi - ) - proxy_getwork? ( - net-libs/libmicrohttpd:= - ) - proxy_stratum? ( - dev-libs/libevent - ) - screen? ( - app-misc/screen - >=sys-apps/coreutils-8.15 - ) -" -RDEPEND="${DEPEND} - opencl? ( virtual/opencl ) -" -DEPEND="${DEPEND} - virtual/pkgconfig - >=dev-libs/uthash-1.9.7 - cpumining? ( - amd64? ( - >=dev-lang/yasm-1.0.1 - ) - x86? ( - >=dev-lang/yasm-1.0.1 - ) - ) -" - -PATCHES=( - "${FILESDIR}/${PN}-5.5.0-fno-common.patch" - "${FILESDIR}/${PN}-5.5.0-cpus-undefined.patch" -) - -src_configure() { - local CFLAGS="${CFLAGS}" - local with_curses - use hardened && CFLAGS="${CFLAGS} -no-pie" - - if use ncurses; then - if use unicode; then - with_curses="--with-curses=ncursesw" - else - with_curses="--with-curses=ncurses" - fi - else - with_curses="--without-curses" - fi - - CFLAGS="${CFLAGS}" \ - econf \ - $(use_enable adl) \ - $(use_enable alchemist)\ - $(use_enable avalon) \ - $(use_enable avalonmm) \ - $(use_enable bifury) \ - $(use_enable bitforce) \ - $(use_enable bitmain) \ - $(use_enable bfsb) \ - $(use_enable bfx) \ - $(use_enable bigpic) \ - $(use_enable bitfury) \ - $(use_enable cointerra) \ - $(use_enable cpumining) \ - $(use_enable drillbit) \ - $(use_enable dualminer) \ - $(use_enable gridseed) \ - $(use_enable hashbuster) \ - $(use_enable hashbuster2 hashbusterusb) \ - $(use_enable hashfast) \ - $(use_enable icarus) \ - $(use_enable jingtian) \ - $(use_enable keccak) \ - $(use_enable klondike) \ - $(use_enable littlefury) \ - $(use_enable metabank) \ - $(use_enable minion) \ - $(use_enable modminer) \ - $(use_enable nanofury) \ - $(use_enable opencl) \ - $(use_enable rockminer) \ - $(use_enable scrypt) \ - $(use_enable sha256d) \ - $(use_enable twinfury) \ - --with-system-libblkmaker \ - ${with_curses} \ - $(use_with udev libudev) \ - $(use_enable udev-broad-rules broad-udevrules) \ - $(use_with lm-sensors sensors) \ - $(use_with proxy_getwork libmicrohttpd) \ - $(use_with proxy_stratum libevent) \ - $(use_enable x6500) \ - $(use_enable zeusminer) \ - $(use_enable ztex) -} - -src_install() { - emake install DESTDIR="${D}" - - if ! use examples; then - rm -r "${ED}/usr/share/doc/${PF}/rpc-examples" - fi - if ! use screen; then - rm "${ED}/usr/bin/start-bfgminer.sh" - fi -} 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 deleted file mode 100644 index f9f0f43609ed..000000000000 --- a/net-misc/bfgminer/files/bfgminer-5.5.0-cpus-undefined.patch +++ /dev/null @@ -1,23 +0,0 @@ -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(); - diff --git a/net-misc/bfgminer/files/bfgminer-5.5.0-fno-common.patch b/net-misc/bfgminer/files/bfgminer-5.5.0-fno-common.patch deleted file mode 100644 index bd804e173909..000000000000 --- a/net-misc/bfgminer/files/bfgminer-5.5.0-fno-common.patch +++ /dev/null @@ -1,83 +0,0 @@ -https://bugs.gentoo.org/727008 ---- a/adl.h -+++ b/adl.h -@@ -4,10 +4,10 @@ - - #include <stdbool.h> - --bool adl_active; --bool opt_reorder; --const int opt_targettemp; --const int opt_overheattemp; -+extern bool adl_active; -+extern bool opt_reorder; -+extern const int opt_targettemp; -+extern const int opt_overheattemp; - void init_adl(int nDevs); - float gpu_temp(int gpu); - int gpu_engineclock(int gpu); ---- a/driver-cpu.c -+++ b/driver-cpu.c -@@ -43,6 +43,8 @@ - - BFG_REGISTER_DRIVER(cpu_drv) - -+struct cgpu_info *cpus; -+ - #if defined(__linux) && defined(CPU_ZERO) /* Linux specific policy and affinity management */ - #include <sched.h> - static inline void drop_policy(void) ---- a/driver-opencl.c -+++ b/driver-opencl.c -@@ -795,7 +795,6 @@ char *print_ndevs_and_exit(int *ndevs) - - - struct cgpu_info gpus[MAX_GPUDEVICES]; /* Maximum number apparently possible */ --struct cgpu_info *cpus; - - - /* In dynamic mode, only the first thread of each device will be in use. ---- a/miner.c -+++ b/miner.c -@@ -3762,10 +3762,6 @@ static int statusy; - static int devsummaryYOffset; - static int total_lines; - #endif --#ifdef USE_OPENCL --struct cgpu_info gpus[MAX_GPUDEVICES]; /* Maximum number apparently possible */ --#endif --struct cgpu_info *cpus; - - bool _bfg_console_cancel_disabled; - int _bfg_console_prev_cancelstate; ---- a/sha256_sse2_amd64.c -+++ b/sha256_sse2_amd64.c -@@ -48,7 +48,6 @@ static uint32_t g_sha256_k[]__attribute__((aligned(0x100))) = { - const uint32_t sha256_init_sse2[8]__asm__("sha256_init_sse2")__attribute__((aligned(0x100))) = - {0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19}; - --__m128i g_4sha256_k[64]; - __m128i sha256_consts_m128i[64]__asm__("sha256_consts_m128i")__attribute__((aligned(0x1000))); - - bool scanhash_sse2_64(struct thr_info * const thr, struct work * const work, ---- a/sha256_sse2_i386.c -+++ b/sha256_sse2_i386.c -@@ -48,7 +48,6 @@ static uint32_t g_sha256_k[]__attribute__((aligned(0x100))) = { - const uint32_t sha256_32init[8]__attribute__((aligned(0x100))) = - {0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19}; - --__m128i g_4sha256_k[64]; - __m128i sha256_consts_m128i[64]__asm__("sha256_consts_m128i")__attribute__((aligned(0x1000))); - - bool scanhash_sse2_32(struct thr_info * const thr, struct work * const work, ---- a/util.h -+++ b/util.h -@@ -217,7 +217,7 @@ void cgsleep_us(int64_t us); - #define cgtimer_time(ts_start) timer_set_now(ts_start) - #define cgsleep_prepare_r(ts_start) cgtimer_time(ts_start) - void cgsleep_ms_r(cgtimer_t *ts_start, int ms); --void (*cgsleep_us_r)(cgtimer_t *ts_start, int64_t us); -+extern void (*cgsleep_us_r)(cgtimer_t *ts_start, int64_t us); - - static inline - int cgtimer_to_ms(cgtimer_t *cgt) diff --git a/net-misc/bfgminer/metadata.xml b/net-misc/bfgminer/metadata.xml deleted file mode 100644 index 37229c5f391f..000000000000 --- a/net-misc/bfgminer/metadata.xml +++ /dev/null @@ -1,49 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <!-- maintainer-needed --> - <use> - <flag name="adl">Enable support for controlling fans and overclocking on AMD cards with AMD Display Library</flag> - <flag name="alchemist">Enable support for mining with AlcheMist</flag> - <flag name="avalon">Enable support for mining with Avalon 1 ASIC modules</flag> - <flag name="avalonmm">Enable support for mining with Avalon 2/3 ASIC modules</flag> - <flag name="bifury">Enable support for mining with Bi*fury USB sticks</flag> - <flag name="bitforce">Enable support for mining with ButterFly Labs BitFORCE ASICs and/or FPGAs</flag> - <flag name="bitmain">Enable support for mining with Bitmain Antminer S* series</flag> - <flag name="bfsb">Enable support for mining on BFSB host Raspberry Pi</flag> - <flag name="bfx">Enable support for mining with BFx2 USB sticks</flag> - <flag name="bigpic">Enable support for mining with Big Picture Mining USB sticks (Red/BlueFury, BF1, etc)</flag> - <flag name="bitfury">Enable support for mining with 55nm Bitfury-based devices</flag> - <flag name="cointerra">Enable support for mining with CoinTerra TerraMiner.</flag> - <flag name="cpumining">Enable support for mining with CPUs</flag> - <flag name="drillbit">Enable support for mining with Drillbit boards</flag> - <flag name="dualminer">Enable support for mining with DualMiner USB sticks</flag> - <flag name="gridseed">Enable support for mining with 5-chip GridSeed orbs</flag> - <flag name="hashbuster">Enable support for mining with HashBuster nano boards</flag> - <flag name="hashbuster2">Enable support for mining with HashBuster micro boards</flag> - <flag name="hashfast">Enable support for mining with HashFast devices</flag> - <flag name="icarus">Enable support for mining with Icarus-compatible devices (including Block Erupter Sapphire ASICs)</flag> - <flag name="jingtian">Enable support for mining on JingTian boards via SPI/GPIO</flag> - <flag name="keccak">Enable support for mining with Keccak miners</flag> - <flag name="klondike">Enable support for mining with Klondike USB miners</flag> - <flag name="libusb">Use libusb</flag> - <flag name="littlefury">Enable support for mining with LittleFury USB sticks</flag> - <flag name="metabank">Enable support for mining on Metabank host Raspberry Pi</flag> - <flag name="minion">Enable support for mining on minion chips via SPI (BlackArrow Prospero)</flag> - <flag name="modminer">Enable support for mining with ModMiner FPGAs</flag> - <flag name="nanofury">Enable support for mining with NanoFury USB sticks</flag> - <flag name="opencl">Enable support for mining with OpenCL-capable devices (GPUs)</flag> - <flag name="proxy">Enable support for virtual proxy device</flag> - <flag name="proxy_getwork">Enable proxy support for getwork protocol (often used with Block Erupter Blades)</flag> - <flag name="proxy_stratum">Enable proxy support for stratum protocol</flag> - <flag name="rockminer">Enable support for mining with RockMiner devices</flag> - <flag name="screen">Provide start-bfgminer.sh script to launch BFGMiner in <pkg>app-misc/screen</pkg></flag> - <flag name="scrypt">Enable support for scrypt mining algorithm</flag> - <flag name="sha256d">Enable support for SHA256d mining algorithm</flag> - <flag name="twinfury">Enable support for mining with Twinfury USB sticks</flag> - <flag name="udev-broad-rules">Enable broader udev rules that may match non-mining devices</flag> - <flag name="x6500">Enable support for mining with X6500 FPGAs</flag> - <flag name="zeusminer">Enable support for mining with ZeusMiner units</flag> - <flag name="ztex">Enable support for mining with Ztex FPGAs</flag> - </use> -</pkgmetadata> |