Package Details: btcdeb 0.3.20-1

Git Clone URL: https://aur.archlinux.org/btcdeb.git (read-only, click to copy)
Package Base: btcdeb
Description: Bitcoin Script Debugger
Upstream URL: https://github.com/bitcoin-core/btcdeb
Licenses: MIT
Submitter: rapiz
Maintainer: None
Last Packager: rapiz
Votes: 1
Popularity: 0.000218
First Submitted: 2021-10-31 14:06 (UTC)
Last Updated: 2021-10-31 14:06 (UTC)

Latest Comments

guitarist67 commented on 2024-02-03 21:55 (UTC)

Update to version 5.0.24:

pkgname=btcdeb
pkgver=5.0.24
pkgrel=1
pkgdesc="Bitcoin Script Debugger"
arch=(x86_64)
url="https://github.com/bitcoin-core/btcdeb"
license=('MIT')
makedepends=(automake)
source=("https://github.com/bitcoin-core/btcdeb/archive/refs/tags/v$pkgver.tar.gz")
md5sums=('2dae4b4a895b719fe6a311b48c094bcd')

prepare() {
    cd "$pkgname-$pkgver"
    patch --forward --strip=1 --input="${srcdir}/stdexcept.patch"
}

build() {
    cd "$pkgname-$pkgver"
    ./autogen.sh
    ./configure --prefix=/usr
    make
}

package() {
    cd "$pkgname-$pkgver"
    make DESTDIR="$pkgdir/" install
}

It requires a patch (stdexcept.patch) for me:

diff --git a/support/lockedpool.cpp b/support/lockedpool.cpp
index e48accf..64d0abc 100644
--- a/support/lockedpool.cpp
+++ b/support/lockedpool.cpp
@@ -19,6 +19,7 @@
 #endif

 #include <algorithm>
+#include <stdexcept>
 #ifdef ARENA_DEBUG
 #include <iomanip>
 #include <iostream>

yonson commented on 2023-03-30 00:05 (UTC)

I am not able to build:

make[2]: Entering directory '/home/aur/.cache/aurutils/sync/btcdeb/src/btcdeb-0.3.20/secp256k1'
gcc -I. -g -O2 -Wall -Wextra -Wno-unused-function -c src/gen_context.c -o gen_context.o
gcc gen_context.o -o gen_context
./gen_context
  CC       src/libsecp256k1_la-secp256k1.lo
  CCLD     libsecp256k1.la
make[2]: Leaving directory '/home/aur/.cache/aurutils/sync/btcdeb/src/btcdeb-0.3.20/secp256k1'
  AR       libbitcoin.a
  CC       kerl/libkerl_a-kerl.o
  AR       libkerl.a
  CXXLD    btcdeb
  CXX      btcc-btcc.o
  CXXLD    btcc
  CXX      test_btcdeb-instance.o
  CXX      test_btcdeb-functions.o
  CXX      test/btcdeb-signing.o
  CXX      test/btcdeb-test-btcdeb.o
In file included from /usr/include/signal.h:328,
                 from test/catch.hpp:6113,
                 from test/test-btcdeb.cpp:3:
test/catch.hpp:8749:58: error: call to non-‘constexpr’ function ‘long int sysconf(int)’
 8749 |     constexpr static std::size_t sigStackSize = 32768 >= MINSIGSTKSZ ? 32768 : MINSIGSTKSZ;
      |                                                          ^~~~~~~~~~~
In file included from /usr/include/bits/sigstksz.h:24:
/usr/include/unistd.h:640:17: note: ‘long int sysconf(int)’ declared here
  640 | extern long int sysconf (int __name) __THROW;
      |                 ^~~~~~~
test/catch.hpp:8808:45: error: size of array ‘altStackMem’ is not an integral constant-expression
 8808 |     char FatalConditionHandler::altStackMem[sigStackSize] = {};
      |                                             ^~~~~~~~~~~~
make[1]: *** [Makefile:1480: test/btcdeb-test-btcdeb.o] Error 1
make[1]: Leaving directory '/home/aur/.cache/aurutils/sync/btcdeb/src/btcdeb-0.3.20'
make: *** [Makefile:1537: all-recursive] Error 1
==> ERROR: A failure occurred in build().
    Aborting...