Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
804d30b
commit 799656c
Showing
768 changed files
with
240,921 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
dnl Copyright (c) 2018 The PIVX Core developers | ||
dnl Distributed under the MIT software license, see the accompanying | ||
dnl file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||
|
||
dnl | ||
AC_DEFUN([GMP_CHECK],[ | ||
if test x"$has_gmp" != x"yes"; then | ||
AC_CHECK_HEADER(gmp.h,[ | ||
AC_CHECK_LIB(gmp, __gmpz_init,[ | ||
has_gmp=yes; | ||
LIBS="$LIBS -lgmp"; | ||
AC_DEFINE(HAVE_LIBGMP, 1, [Define this symbol if libgmp is installed]) | ||
]) | ||
]) | ||
fi | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
dnl Copyright (c) 2015 Tim Kosse <tim.kosse@filezilla-project.org> | ||
dnl Copying and distribution of this file, with or without modification, are | ||
dnl permitted in any medium without royalty provided the copyright notice | ||
dnl and this notice are preserved. This file is offered as-is, without any | ||
dnl warranty. | ||
|
||
# Some versions of gcc/libstdc++ require linking with -latomic if | ||
# using the C++ atomic library. | ||
# | ||
# Sourced from http://bugs.debian.org/797228 | ||
|
||
m4_define([_CHECK_ATOMIC_testbody], [[ | ||
#include <atomic> | ||
#include <cstdint> | ||
int main() { | ||
std::atomic<int64_t> a{}; | ||
int64_t v = 5; | ||
int64_t r = a.fetch_add(v); | ||
return static_cast<int>(r); | ||
} | ||
]]) | ||
|
||
AC_DEFUN([CHECK_ATOMIC], [ | ||
AC_LANG_PUSH(C++) | ||
AC_MSG_CHECKING([whether std::atomic can be used without link library]) | ||
AC_LINK_IFELSE([AC_LANG_SOURCE([_CHECK_ATOMIC_testbody])],[ | ||
AC_MSG_RESULT([yes]) | ||
],[ | ||
AC_MSG_RESULT([no]) | ||
LIBS="$LIBS -latomic" | ||
AC_MSG_CHECKING([whether std::atomic needs -latomic]) | ||
AC_LINK_IFELSE([AC_LANG_SOURCE([_CHECK_ATOMIC_testbody])],[ | ||
AC_MSG_RESULT([yes]) | ||
],[ | ||
AC_MSG_RESULT([no]) | ||
AC_MSG_FAILURE([cannot figure out how to use std::atomic]) | ||
]) | ||
]) | ||
AC_LANG_POP | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-1.0.html | ||
|
||
[Desktop Entry] | ||
Encoding=UTF-8 | ||
Name=PIVX Core | ||
Comment=PIVX Core QT main network | ||
GenericName=PIVX Digital Currency QT client main network | ||
Exec=pivx-core.qt %u | ||
Terminal=false | ||
Type=Application | ||
Icon=${SNAP}/share/pixmaps/pivx.png | ||
MimeType=x-scheme-handler/pivx; | ||
Categories=X-Office;X-Finance; | ||
Keywords=internet;pivx;zpiv;piv;core;wallet;qt;main;snap;launchpad;crypto;digital;currency;coin;token;zerocoin; | ||
Version=1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-1.0.html | ||
|
||
[Desktop Entry] | ||
Encoding=UTF-8 | ||
Name=PIVX Core | ||
Comment=PIVX Core QT test network | ||
GenericName=PIVX Digital Currency QT client testnet network | ||
Exec=pivx-core.qt-testnet %u | ||
Terminal=false | ||
Type=Application | ||
Icon=${SNAP}/share/pixmaps/pivx_testnet.png | ||
MimeType=x-scheme-handler/piv; | ||
Categories=X-Office;X-Finance; | ||
Keywords=internet;pivx;zpiv;tpiv;core;wallet;qt;testnet;snap;launchpad;crypto;digital;currency;coin;token;zerocoin; | ||
Version=1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-1.0.html | ||
|
||
[Desktop Entry] | ||
Encoding=UTF-8 | ||
Name=PIVX Core Daemon SNAP | ||
Comment=main | ||
GenericName=PIVX Digital Currency Daemon Client main network | ||
Exec=pivx-core.daemon %u | ||
Terminal=true | ||
Type=Application | ||
Icon=${SNAP}/share/pixmaps/pivx.png | ||
MimeType=x-scheme-handler/piv; | ||
Categories=X-Office;X-Finance; | ||
Keywords=internet;pivx;zpiv;core;wallet;daemon;main;snap;launchpad;crypto;digital;currency;coin;token;zerocoin; | ||
Version=1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-1.0.html | ||
|
||
[Desktop Entry] | ||
Encoding=UTF-8 | ||
Name=PIVX Core Daemon SNAP | ||
Comment=testnet | ||
GenericName=PIVX Digital Currency Daemon Client testnet network | ||
Exec=pivx-core.daemon-testnet %u | ||
Terminal=true | ||
Type=Application | ||
Icon=${SNAP}/share/pixmaps/pivx_testnet.png | ||
MimeType=x-scheme-handler/piv; | ||
Categories=X-Office;X-Finance; | ||
Keywords=internet;pivx;zpiv;core;wallet;daemon;testnet;snap;launchpad;crypto;digital;currency;coin;token;zerocoin; | ||
Version=1.0 |
36 changes: 36 additions & 0 deletions
36
build-aux/snap/local/patches/X002-fix-bdb-tmp-folder.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
From dcfe31b190ab8a28f2617914afdf15c6be2a74d2 Mon Sep 17 00:00:00 2001 | ||
From: cevap <dev@i2pmail.org> | ||
Date: Mon, 4 Feb 2019 07:41:47 +0100 | ||
Subject: [PATCH] fix-bdb-tmp-folder | ||
|
||
--- | ||
depends/packages/bdb.mk | 13 +++++++++++++ | ||
1 file changed, 13 insertions(+) | ||
|
||
diff --git a/depends/packages/bdb.mk b/depends/packages/bdb.mk | ||
index 6c9876c..291111c 100644 | ||
--- a/depends/packages/bdb.mk | ||
+++ b/depends/packages/bdb.mk | ||
@@ -13,6 +13,19 @@ $(package)_cxxflags=-std=c++11 | ||
endef | ||
|
||
define $(package)_preprocess_cmds | ||
+ sed -i.old 's/\/var\/tmp/$HOME\/snap\/pivx\/common\/var\/tmp/g' csharp/DatabaseEnvironment.cs && \ | ||
+ sed -i.old 's/\/var\/tmp/$HOME\/snap\/pivx\/common\/var\/tmp/g' csharp/DatabaseEnvironmentConfig.cs && \ | ||
+ sed -i.old 's/\/var\/tmp/$HOME\/snap\/pivx\/common\/var\/tmp/g' csharp/doc/libdb_dotnet48.XML && \ | ||
+ sed -i.old 's/\/var\/tmp/$HOME\/snap\/pivx\/common\/var\/tmp/g' docs/api_reference/C/envset_tmp_dir.html && \ | ||
+ sed -i.old 's/\/var\/tmp/$HOME\/snap\/pivx\/common\/var\/tmp/g' docs/api_reference/CXX/envset_tmp_dir.html && \ | ||
+ sed -i.old 's/\/var\/tmp/$HOME\/snap\/pivx\/common\/var\/tmp/g' docs/csharp/html/F_BerkeleyDB_DatabaseEnvironmentConfig_TempDir.htm && \ | ||
+ sed -i.old 's/\/var\/tmp/$HOME\/snap\/pivx\/common\/var\/tmp/g' docs/csharp/html/P_BerkeleyDB_DatabaseEnvironment_TempDir.htm && \ | ||
+ sed -i.old 's/\/var\/tmp/$HOME\/snap\/pivx\/common\/var\/tmp/g' docs/java/com/sleepycat/db/EnvironmentConfig.html && \ | ||
+ sed -i.old 's/\/var\/tmp/$HOME\/snap\/pivx\/common\/var\/tmp/g' docs/programmer_reference/test.html && \ | ||
+ sed -i.old 's/\/var\/tmp/$HOME\/snap\/pivx\/common\/var\/tmp/g' java/src/com/sleepycat/db/EnvironmentConfig.java && \ | ||
+ sed -i.old 's/\/var\/tmp/$HOME\/snap\/pivx\/common\/var\/tmp/g' os/os_tmpdir.c && \ | ||
+ sed -i.old 's/\/var\/tmp/$HOME\/snap\/pivx\/common\/var\/tmp/g' php_db4/samples/simple_counter.php && \ | ||
+ sed -i.old 's/\/var\/tmp/$HOME\/snap\/pivx\/common\/var\/tmp/g' php_db4/samples/transactional_counter.php && \ | ||
sed -i.old 's/__atomic_compare_exchange/__atomic_compare_exchange_db/' dbinc/atomic.h && \ | ||
sed -i.old 's/atomic_init/atomic_init_db/' dbinc/atomic.h mp/mp_region.c mp/mp_mvcc.c mp/mp_fget.c mutex/mut_method.c mutex/mut_tas.c && \ | ||
cp -f $(BASEDIR)/config.guess $(BASEDIR)/config.sub dist | ||
-- | ||
2.17.1 | ||
|
25 changes: 25 additions & 0 deletions
25
build-aux/snap/local/patches/X003-fix-use-snap-instead-of-dirty.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From ec230421e7107448ca9ac2421eb702924e12a879 Mon Sep 17 00:00:00 2001 | ||
From: observerdev <dev@obsr.org> | ||
Date: Thu, 11 Apr 2019 00:12:00 +0200 | ||
Subject: [PATCH] fix-use-snap-instead--of-dirty | ||
|
||
--- | ||
share/genbuild.sh | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/share/genbuild.sh b/share/genbuild.sh | ||
index 519cc6e..de56b8d 100755 | ||
--- a/share/genbuild.sh | ||
+++ b/share/genbuild.sh | ||
@@ -37,7 +37,7 @@ if [ "${BITCOIN_GENBUILD_NO_GIT}" != "1" -a -e "$(which git 2>/dev/null)" -a "$( | ||
|
||
# otherwise generate suffix from git, i.e. string like "59887e8-dirty" | ||
SUFFIX=$(git rev-parse --short HEAD) | ||
- git diff-index --quiet HEAD -- || SUFFIX="$SUFFIX-dirty" | ||
+ git diff-index --quiet HEAD -- || SUFFIX="$SUFFIX-snap" | ||
|
||
# get a string like "2012-04-10 16:27:19 +0200" | ||
LAST_COMMIT_DATE="$(git log -n 1 --format="%ci")" | ||
-- | ||
2.17.1 | ||
|
Oops, something went wrong.