Merge branch 'rm_minisketch-25+k' into svg_icon-25+knots

This commit is contained in:
Luke Dashjr 2023-11-07 19:53:13 +00:00
commit 83f5372e9b
5 changed files with 15 additions and 11 deletions

View File

@ -9,14 +9,12 @@ export LC_ALL=C.UTF-8
if [[ $HOST = *-mingw32 ]]; then if [[ $HOST = *-mingw32 ]]; then
# Generate all binaries, so that they can be wrapped # Generate all binaries, so that they can be wrapped
CI_EXEC make "$MAKEJOBS" -C src/secp256k1 VERBOSE=1 CI_EXEC make "$MAKEJOBS" -C src/secp256k1 VERBOSE=1
CI_EXEC make "$MAKEJOBS" -C src minisketch/test.exe VERBOSE=1
CI_EXEC "${BASE_ROOT_DIR}/ci/test/wrap-wine.sh" CI_EXEC "${BASE_ROOT_DIR}/ci/test/wrap-wine.sh"
fi fi
if [ -n "$QEMU_USER_CMD" ]; then if [ -n "$QEMU_USER_CMD" ]; then
# Generate all binaries, so that they can be wrapped # Generate all binaries, so that they can be wrapped
CI_EXEC make "$MAKEJOBS" -C src/secp256k1 VERBOSE=1 CI_EXEC make "$MAKEJOBS" -C src/secp256k1 VERBOSE=1
CI_EXEC make "$MAKEJOBS" -C src minisketch/test VERBOSE=1
CI_EXEC "${BASE_ROOT_DIR}/ci/test/wrap-qemu.sh" CI_EXEC "${BASE_ROOT_DIR}/ci/test/wrap-qemu.sh"
fi fi

View File

@ -14,7 +14,12 @@ set -ex
GIT_ARCHIVE="$1" GIT_ARCHIVE="$1"
DISTNAME="$2" DISTNAME="$2"
git archive --prefix="${DISTNAME}/" HEAD | tar -xp git archive --prefix="${DISTNAME}/" HEAD | tar -xp --exclude '*minisketch*'
# Generate correct build info file from git, before we lose git
GIT_BUILD_INFO="$(share/genbuild.sh /dev/stdout)"
sed 's/\/\/ No build information available/'"${GIT_BUILD_INFO}"'/' -i "${DISTNAME}/share/genbuild.sh"
cd "${DISTNAME}" cd "${DISTNAME}"
./autogen.sh ./autogen.sh

View File

@ -18,9 +18,14 @@ else
exit 1 exit 1
fi fi
# This checks that we are actually part of the intended git repository, and not just getting info about some unrelated git repository that the code happens to be in a directory under
git_check_in_repo() {
! { git status --porcelain -uall --ignored "$@" 2>/dev/null || echo '??'; } | grep -q '?'
}
GIT_TAG="" GIT_TAG=""
GIT_COMMIT="" GIT_COMMIT=""
if [ "${BITCOIN_GENBUILD_NO_GIT}" != "1" ] && [ -e "$(command -v git)" ] && [ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = "true" ]; then if [ "${BITCOIN_GENBUILD_NO_GIT}" != "1" ] && [ -e "$(command -v git)" ] && [ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = "true" ] && git_check_in_repo share/genbuild.sh; then
# clean 'dirty' status of touched files that haven't been modified # clean 'dirty' status of touched files that haven't been modified
git diff >/dev/null 2>/dev/null git diff >/dev/null 2>/dev/null
@ -40,7 +45,9 @@ if [ -n "$GIT_TAG" ]; then
elif [ -n "$GIT_COMMIT" ]; then elif [ -n "$GIT_COMMIT" ]; then
NEWINFO="#define BUILD_GIT_COMMIT \"$GIT_COMMIT\"" NEWINFO="#define BUILD_GIT_COMMIT \"$GIT_COMMIT\""
else else
NEWINFO="// No build information available" # NOTE: The NEWINFO line below this comment gets replaced by a string-match in contrib/guix/libexec/make_release_tarball.sh
# If changing it, update the script too!
NEWINFO='// No build information available'
fi fi
# only update build.h if necessary # only update build.h if necessary

View File

@ -216,7 +216,6 @@ BITCOIN_CORE_H = \
node/mempool_args.h \ node/mempool_args.h \
node/mempool_persist_args.h \ node/mempool_persist_args.h \
node/miner.h \ node/miner.h \
node/minisketchwrapper.h \
node/psbt.h \ node/psbt.h \
node/transaction.h \ node/transaction.h \
node/txreconciliation.h \ node/txreconciliation.h \
@ -407,7 +406,6 @@ libbitcoin_node_a_SOURCES = \
node/mempool_args.cpp \ node/mempool_args.cpp \
node/mempool_persist_args.cpp \ node/mempool_persist_args.cpp \
node/miner.cpp \ node/miner.cpp \
node/minisketchwrapper.cpp \
node/psbt.cpp \ node/psbt.cpp \
node/transaction.cpp \ node/transaction.cpp \
node/txreconciliation.cpp \ node/txreconciliation.cpp \
@ -1102,8 +1100,6 @@ endif
} > "$@.new" && mv -f "$@.new" "$@" } > "$@.new" && mv -f "$@.new" "$@"
@echo "Generated $@" @echo "Generated $@"
include Makefile.minisketch.include
if EMBEDDED_LEVELDB if EMBEDDED_LEVELDB
include Makefile.crc32c.include include Makefile.crc32c.include
include Makefile.leveldb.include include Makefile.leveldb.include

View File

@ -107,7 +107,6 @@ BITCOIN_TESTS =\
test/merkleblock_tests.cpp \ test/merkleblock_tests.cpp \
test/miner_tests.cpp \ test/miner_tests.cpp \
test/miniscript_tests.cpp \ test/miniscript_tests.cpp \
test/minisketch_tests.cpp \
test/multisig_tests.cpp \ test/multisig_tests.cpp \
test/net_peer_eviction_tests.cpp \ test/net_peer_eviction_tests.cpp \
test/net_tests.cpp \ test/net_tests.cpp \
@ -285,7 +284,6 @@ test_fuzz_fuzz_SOURCES = \
test/fuzz/merkleblock.cpp \ test/fuzz/merkleblock.cpp \
test/fuzz/message.cpp \ test/fuzz/message.cpp \
test/fuzz/miniscript.cpp \ test/fuzz/miniscript.cpp \
test/fuzz/minisketch.cpp \
test/fuzz/muhash.cpp \ test/fuzz/muhash.cpp \
test/fuzz/multiplication_overflow.cpp \ test/fuzz/multiplication_overflow.cpp \
test/fuzz/net.cpp \ test/fuzz/net.cpp \