From de3e3d65535db59590465bc603666cec94e808ee Mon Sep 17 00:00:00 2001 From: David Spencer Date: Fri, 18 Sep 2015 23:23:24 +0100 Subject: development/libbitcoin: Patched SlackBuild. Fixes build failure on -current. Signed-off-by: David Spencer Signed-off-by: Willy Sudiarto Raharjo --- development/libbitcoin/libbitcoin-2.0_mnemonic.cpp.patch | 16 ++++++++++++++++ development/libbitcoin/libbitcoin.SlackBuild | 10 ++++++++-- 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 development/libbitcoin/libbitcoin-2.0_mnemonic.cpp.patch (limited to 'development/libbitcoin') diff --git a/development/libbitcoin/libbitcoin-2.0_mnemonic.cpp.patch b/development/libbitcoin/libbitcoin-2.0_mnemonic.cpp.patch new file mode 100644 index 0000000000..359ba81d7c --- /dev/null +++ b/development/libbitcoin/libbitcoin-2.0_mnemonic.cpp.patch @@ -0,0 +1,16 @@ +Description: Fix FTBFS due to unknown std::cout +Author: Martin Pitt +Forwarded: No, file is gone in latest upstream + +Index: libbitcoin-2.0/src/utility/mnemonic.cpp +=================================================================== +--- libbitcoin-2.0.orig/src/utility/mnemonic.cpp ++++ libbitcoin-2.0/src/utility/mnemonic.cpp +@@ -21,6 +21,7 @@ + + #include + #include ++#include + #include + + namespace libbitcoin { diff --git a/development/libbitcoin/libbitcoin.SlackBuild b/development/libbitcoin/libbitcoin.SlackBuild index f51deaf1ca..a48a495ded 100644 --- a/development/libbitcoin/libbitcoin.SlackBuild +++ b/development/libbitcoin/libbitcoin.SlackBuild @@ -60,21 +60,27 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xjf $CWD/$PRGNAM-$VERSION.tar.bz2 +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 cd $PRGNAM-$VERSION - +chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ -o -perm 511 \) -exec chmod 755 {} \; -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# Fix missing include (thanks to Debian) +# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=791092;msg=12 +patch -p1 < $CWD/libbitcoin-2.0_mnemonic.cpp.patch + autoreconf -i + if [ -e /usr/include/leveldb/db.h ]; then export LEVELDB_FLAG=--enable-leveldb else export LEVELDB_FLAG= fi + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ -- cgit v1.2.3