forked from primecoin/primecoin
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update *.yml support bionic build thanks Ivan's help
refine checkpoint code, and add block header check when load from disk
- Loading branch information
Tyler
committed
Nov 13, 2018
1 parent
ad1c796
commit 5b4cb77
Showing
24 changed files
with
510 additions
and
123 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
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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
2018.09.28 0.8.7 | ||
2018.09.28 primecoin 0.1.3 | ||
fix missing bignum field when spv wallet sync data. | ||
modify bitcoin to primecoin someplace | ||
|
||
2018.11.11 primecoin 0.1.4 | ||
modify *.yml for gitian release, thanks to Ivan's help | ||
add dns seed | ||
Refine checkpoint operation | ||
Add header check when load from disk |
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 |
---|---|---|
@@ -1,38 +1,44 @@ | ||
--- | ||
name: "boost" | ||
suites: | ||
- "lucid" | ||
- "bionic" | ||
architectures: | ||
- "i386" | ||
packages: | ||
- "mingw32" | ||
packages: | ||
- "gcc-mingw-w64-i686" | ||
- "g++-mingw-w64-i686" | ||
- "faketime" | ||
- "zip" | ||
reference_datetime: "2011-01-30 00:00:00" | ||
reference_datetime: "2015-01-30 00:00:00" | ||
remotes: [] | ||
files: | ||
- "boost_1_50_0.tar.bz2" | ||
- "boost_1_52_0.tar.bz2" | ||
script: | | ||
TMPDIR="$HOME/tmpdir" | ||
LIBRARIES="chrono,filesystem,program_options,system,thread,test" | ||
OPTIONS="variant=release --layout=tagged --build-type=complete --user-config=user-config.jam threading=multi link=static -sNO_BZIP2=1 -sNO_ZLIB=1 target-os=windows threadapi=win32 runtime-link=static address-model=32 toolset=gcc" | ||
mkdir -p $TMPDIR/bin/$GBUILD_BITS $TMPDIR/include | ||
tar xjf boost_1_50_0.tar.bz2 | ||
cd boost_1_50_0 | ||
echo "using gcc : 4.4 : i586-mingw32msvc-g++ | ||
tar xjf boost_1_52_0.tar.bz2 | ||
cd boost_1_52_0 | ||
echo "using gcc : 7.3 : i686-w64-mingw32-g++ | ||
: | ||
<rc>i586-mingw32msvc-windres | ||
<archiver>i586-mingw32msvc-ar | ||
<cxxflags>-frandom-seed=boost1 | ||
<archiver>i686-w64-mingw32-ar | ||
<striper>i686-w64-mingw32-strip | ||
<ranlib>i686-w64-mingw32-ranlib | ||
<rc>i686-w64-mingw32-windres | ||
<cxxflags>-frandom-seed=boost1 -fvisibility=hidden | ||
;" > user-config.jam | ||
./bootstrap.sh --without-icu | ||
./bjam toolset=gcc target-os=windows threadapi=win32 threading=multi variant=release link=static --user-config=user-config.jam --without-mpi --without-python -sNO_BZIP2=1 -sNO_ZLIB=1 --layout=tagged --build-type=complete $MAKEOPTS stage | ||
for lib in chrono date_time exception filesystem graph iostreams math_c99f math_c99l math_c99 math_tr1f math_tr1l math_tr1 prg_exec_monitor program_options random regex serialization signals system test_exec_monitor thread_win32 unit_test_framework wave wserialization; do | ||
./bootstrap.sh --without-icu --with-libraries=$LIBRARIES | ||
./b2 -d2 -j2 -d1 --prefix=$TMPDIR $OPTIONS stage | ||
for lib in chrono filesystem program_options system thread_win32 unit_test_framework; do | ||
mkdir $lib | ||
(cd $lib ; ar xf ../stage/lib/libboost_${lib}-mt-s.a) | ||
mv $lib $TMPDIR/bin/$GBUILD_BITS | ||
done | ||
cp -a boost $TMPDIR/include | ||
cd $TMPDIR | ||
export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1 | ||
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1 | ||
export FAKETIME=$REFERENCE_DATETIME | ||
zip -r boost-win32-1.50.0-gitian.zip * | ||
cp boost-win32-1.50.0-gitian.zip $OUTDIR | ||
zip -r boost-win32-1.52.0-gitian.zip * | ||
cp boost-win32-1.52.0-gitian.zip $OUTDIR |
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,86 @@ | ||
--- | ||
name: "boost" | ||
suites: | ||
- "bionic" | ||
architectures: | ||
- "amd64" | ||
packages: | ||
- "gcc-mingw-w64-x86-64" | ||
- "g++-mingw-w64-x86-64" | ||
- "faketime" | ||
- "zip" | ||
reference_datetime: "2015-01-30 00:00:00" | ||
remotes: [] | ||
files: | ||
- "boost_1_52_0.tar.bz2" | ||
script: | | ||
TMPDIR="$HOME/tmpdir" | ||
LIBRARIES="chrono,filesystem,program_options,system,thread,test" | ||
OPTIONS="variant=release --layout=tagged --build-type=complete --user-config=user-config.jam threading=multi link=static -sNO_BZIP2=1 -sNO_ZLIB=1 target-os=windows threadapi=win32 runtime-link=static address-model=64 toolset=gcc" | ||
mkdir -p $TMPDIR/bin/$GBUILD_BITS $TMPDIR/include | ||
tar xjf boost_1_52_0.tar.bz2 | ||
cd boost_1_52_0 | ||
# Make patch | ||
echo "--- a/boost/detail/interlocked.hpp" > interlocked.patch | ||
echo "+++ b/boost/detail/interlocked.hpp" >> interlocked.patch | ||
echo "@@ -125,13 +125,30 @@" >> interlocked.patch | ||
echo " # define BOOST_INTERLOCKED_EXCHANGE _InterlockedExchange" >> interlocked.patch | ||
echo " # define BOOST_INTERLOCKED_EXCHANGE_ADD _InterlockedExchangeAdd" >> interlocked.patch | ||
echo "" >> interlocked.patch | ||
echo "+// Unlike __MINGW64__, __MINGW64_VERSION_MAJOR is defined by MinGW-w64 for both 32 and 64-bit targets." >> interlocked.patch | ||
echo "+#elif defined(__MINGW64_VERSION_MAJOR)" >> interlocked.patch | ||
echo "+" >> interlocked.patch | ||
echo "+// MinGW-w64 provides intrin.h for both 32 and 64-bit targets." >> interlocked.patch | ||
echo "+#include <intrin.h>" >> interlocked.patch | ||
echo "+" >> interlocked.patch | ||
echo "+# define BOOST_INTERLOCKED_INCREMENT _InterlockedIncrement" >> interlocked.patch | ||
echo "+# define BOOST_INTERLOCKED_DECREMENT _InterlockedDecrement" >> interlocked.patch | ||
echo "+# define BOOST_INTERLOCKED_COMPARE_EXCHANGE _InterlockedCompareExchange" >> interlocked.patch | ||
echo "+# define BOOST_INTERLOCKED_EXCHANGE _InterlockedExchange" >> interlocked.patch | ||
echo "+# define BOOST_INTERLOCKED_EXCHANGE_ADD _InterlockedExchangeAdd" >> interlocked.patch | ||
echo "+# if defined(__x86_64__) || defined(__x86_64)" >> interlocked.patch | ||
echo "+# define BOOST_INTERLOCKED_COMPARE_EXCHANGE_POINTER _InterlockedCompareExchangePointer" >> interlocked.patch | ||
echo "+# define BOOST_INTERLOCKED_EXCHANGE_POINTER _InterlockedExchangePointer" >> interlocked.patch | ||
echo "+# else" >> interlocked.patch | ||
echo "+# define BOOST_INTERLOCKED_COMPARE_EXCHANGE_POINTER(dest,exchange,compare) \\" >> interlocked.patch | ||
echo "+((void*)BOOST_INTERLOCKED_COMPARE_EXCHANGE((long volatile*)(dest),(long)(exchange),(long)(compare)))" >> interlocked.patch | ||
echo "+# define BOOST_INTERLOCKED_EXCHANGE_POINTER(dest,exchange) \\" >> interlocked.patch | ||
echo "+((void*)BOOST_INTERLOCKED_EXCHANGE((long volatile*)(dest),(long)(exchange)))" >> interlocked.patch | ||
echo "+# endif" >> interlocked.patch | ||
echo "+" >> interlocked.patch | ||
echo " #elif defined( WIN32 ) || defined( _WIN32 ) || defined( __WIN32__ ) || defined( __CYGWIN__ )" >> interlocked.patch | ||
echo "" >> interlocked.patch | ||
echo "-#if defined(__MINGW64__)" >> interlocked.patch | ||
echo "-#define BOOST_INTERLOCKED_IMPORT" >> interlocked.patch | ||
echo "-#else" >> interlocked.patch | ||
echo " #define BOOST_INTERLOCKED_IMPORT __declspec(dllimport)" >> interlocked.patch | ||
echo "-#endif" >> interlocked.patch | ||
echo "" >> interlocked.patch | ||
echo "" >> interlocked.patch | ||
echo " namespace boost" >> interlocked.patch | ||
# Apply patch | ||
patch -p1 < interlocked.patch | ||
echo "using gcc : 7.3 : x86_64-w64-mingw32-g++ | ||
: | ||
<archiver>x86_64-w64-mingw32-ar | ||
<striper>x86_64-w64-mingw32-strip | ||
<ranlib>x86_64-w64-mingw32-ranlib | ||
<rc>x86_64-w64-mingw32-windres | ||
<cxxflags>-frandom-seed=boost1 -fvisibility=hidden | ||
;" > user-config.jam | ||
./bootstrap.sh --without-icu --with-libraries=$LIBRARIES | ||
./b2 -d2 -j2 -d1 --prefix=$TMPDIR $OPTIONS stage | ||
for lib in chrono filesystem program_options system thread_win32 unit_test_framework; do | ||
mkdir $lib | ||
(cd $lib ; ar xf ../stage/lib/libboost_${lib}-mt-s.a) | ||
mv $lib $TMPDIR/bin/$GBUILD_BITS | ||
done | ||
cp -a boost $TMPDIR/include | ||
cd $TMPDIR | ||
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1 | ||
export FAKETIME=$REFERENCE_DATETIME | ||
zip -r boost-win64-1.52.0-gitian.zip * | ||
cp boost-win64-1.52.0-gitian.zip $OUTDIR |
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
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,76 @@ | ||
--- | ||
name: "primecoin-deps" | ||
suites: | ||
- "bionic" | ||
architectures: | ||
- "amd64" | ||
packages: | ||
- "gcc-mingw-w64-x86-64" | ||
- "g++-mingw-w64-x86-64" | ||
- "git-core" | ||
- "zip" | ||
- "faketime" | ||
reference_datetime: "2015-01-30 00:00:00" | ||
remotes: [] | ||
files: | ||
- "openssl-1.0.1g.tar.gz" | ||
- "db-4.8.30.NC.tar.gz" | ||
- "miniupnpc-1.6.tar.gz" | ||
- "zlib-1.2.7.tar.gz" | ||
- "libpng-1.5.12.tar.gz" | ||
- "qrencode-3.2.0.tar.bz2" | ||
script: | | ||
# | ||
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1 | ||
export FAKETIME=$REFERENCE_DATETIME | ||
export TZ=UTC | ||
# | ||
tar xzf openssl-1.0.1g.tar.gz | ||
cd openssl-1.0.1g | ||
./Configure --cross-compile-prefix=x86_64-w64-mingw32- mingw64 no-camellia no-capieng no-cast no-comp no-dso no-dtls1 no-ec_nistp_64_gcc_128 no-gost no-gmp no-heartbeats no-idea no-jpake no-krb5 no-libunbound no-md2 no-mdc2 no-rc4 no-rc5 no-rdrand no-rfc3779 no-rsax no-sctp no-seed no-sha0 no-shared no-ssl-trace no-ssl2 no-ssl3 no-static_engine no-store no-unit-test no-weak-ssl-ciphers no-whirlpool no-zlib no-zlib-dynamic | ||
make | ||
cd .. | ||
# | ||
tar xzf db-4.8.30.NC.tar.gz | ||
cd db-4.8.30.NC | ||
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 | ||
cd build_unix | ||
../dist/configure --disable-shared --disable-replication --enable-cxx --enable-mingw --host=x86_64-w64-mingw32 | ||
make $MAKEOPTS | ||
cd ../.. | ||
# | ||
tar xzf miniupnpc-1.6.tar.gz | ||
cd miniupnpc-1.6 | ||
mkdir dll | ||
sed -e 's|MINIUPNPC_VERSION_STRING \"version\"|MINIUPNPC_VERSION_STRING \"1.6\"|' -e 's|OS/version|x86_64-w64-mingw32|' miniupnpcstrings.h.in > miniupnpcstrings.h | ||
sed -i.old "s|miniupnpcstrings.h: miniupnpcstrings.h.in wingenminiupnpcstrings|miniupnpcstrings.h: miniupnpcstrings.h.in|" Makefile.mingw | ||
sed 's/CC = gcc/CC ?= gcc/' -i Makefile.mingw | ||
CC=x86_64-w64-mingw32-gcc AR=x86_64-w64-mingw32-ar make libminiupnpc.a -f Makefile.mingw | ||
cd .. | ||
mv miniupnpc-1.6 miniupnpc | ||
# | ||
tar xzf zlib-1.2.7.tar.gz | ||
cd zlib-1.2.7 | ||
make -f win32/Makefile.gcc PREFIX=x86_64-w64-mingw32- $MAKEOPTS | ||
cd .. | ||
# | ||
tar xzf libpng-1.5.12.tar.gz | ||
cd libpng-1.5.12 | ||
sed -i 's/as_fn_error $? "newly created file is older than distributed files!/echo $? "newly created file is older than distributed files!/' configure | ||
./configure --disable-shared --host=x86_64-w64-mingw32 LDFLAGS="-L../zlib-1.2.7/" CFLAGS="-I../zlib-1.2.7/" | ||
make $MAKEOPTS | ||
cd .. | ||
# | ||
tar xjf qrencode-3.2.0.tar.bz2 | ||
cd qrencode-3.2.0 | ||
sed -i 's/as_fn_error $? "newly created file is older than distributed files!/echo $? "newly created file is older than distributed files!/' configure | ||
./configure --disable-shared -without-tools --disable-sdltest --host=x86_64-w64-mingw32 png_LIBS="../libpng-1.5.12/.libs/libpng15.a ../zlib-1.2.7/libz.a" png_CFLAGS="-I../libpng-1.5.12" | ||
make $MAKEOPTS | ||
cd .. | ||
# | ||
zip -r $OUTDIR/primecoin-deps-win64-0.0.2.zip \ | ||
$(ls qrencode-*/{qrencode.h,.libs/libqrencode.{,l}a} | sort) \ | ||
$(ls db-*/build_unix/{libdb_cxx.a,db.h,db_cxx.h,libdb.a,.libs/libdb_cxx-?.?.a} | sort) \ | ||
$(find openssl-* -name '*.a' -o -name '*.h' | sort) \ | ||
$(find miniupnpc -name '*.h' -o -name 'libminiupnpc.a' | sort) |
Oops, something went wrong.