[Pkg-bitcoin-commits] [litecoin] 01/02: New patch to fix FTBFS with GCC-6 (Closes: #811917)

Dmitry Smirnov onlyjob at moszumanska.debian.org
Sun Nov 13 04:56:38 UTC 2016


This is an automated email from the git hooks/post-receive script.

onlyjob pushed a commit to branch master
in repository litecoin.

commit 2ac27d6
Author: Dmitry Smirnov <onlyjob at member.fsf.org>
Date:   Sun Nov 13 04:30:54 2016

    New patch to fix FTBFS with GCC-6 (Closes: #811917)
    
     Thanks, Adrian Bunk.
---
 debian/patches/gcc6.patch | 111 ++++++++++++++++++++++++++++++++++++++++++++++
 debian/patches/series     |   1 +
 2 files changed, 112 insertions(+)

diff --git a/debian/patches/gcc6.patch b/debian/patches/gcc6.patch
new file mode 100644
index 0000000..68be4b3
--- /dev/null
+++ b/debian/patches/gcc6.patch
@@ -0,0 +1,111 @@
+Description: build: fix newer boost build with c++11
+Origin: upstream, https://github.com/litecoin-project/litecoin/commit/b513bc41337c9c983acdc199ce9b42382c23b658
+Bug-Debian: https://bugs.debian.org/811917
+From: Adrian Bunk <bunk at stusta.de>
+
+--- a/src/chainparams.cpp
++++ b/src/chainparams.cpp
+@@ -105,9 +105,9 @@
+ public:
+     CMainParams() {
+         networkID = CBaseChainParams::MAIN;
+         strNetworkID = "main";
+-        /** 
++        /**
+          * The message start string is designed to be unlikely to occur in normal data.
+          * The characters are rarely used upper ASCII, not valid as UTF-8, and produce
+          * a large 4-byte int at any alignment.
+          */
+@@ -129,9 +129,9 @@
+ 
+         /**
+          * Build the genesis block. Note that the output of the genesis coinbase cannot
+          * be spent as it did not originally exist in the database.
+-         * 
++         *
+          * CBlock(hash=000000000019d6, ver=1, hashPrevBlock=00000000000000, hashMerkleRoot=4a5e1e, nTime=1231006505, nBits=1d00ffff, nNonce=2083236893, vtx=1)
+          *   CTransaction(hash=4a5e1e, ver=1, vin.size=1, vout.size=1, nLockTime=0)
+          *     CTxIn(COutPoint(000000, -1), coinbase 04ffff001d0104455468652054696d65732030332f4a616e2f32303039204368616e63656c6c6f72206f6e206272696e6b206f66207365636f6e64206261696c6f757420666f722062616e6b73)
+          *     CTxOut(nValue=50.00000000, scriptPubKey=0x5F1DF16B2B704C8A578D0B)
+@@ -161,13 +161,13 @@
+         vSeeds.push_back(CDNSSeedData("xurious.com", "dnsseed.ltc.xurious.com"));
+         vSeeds.push_back(CDNSSeedData("koin-project.com", "dnsseed.koin-project.com"));
+         vSeeds.push_back(CDNSSeedData("weminemnc.com", "dnsseed.weminemnc.com"));
+ 
+-        base58Prefixes[PUBKEY_ADDRESS] = list_of(48);
+-        base58Prefixes[SCRIPT_ADDRESS] = list_of(5);
+-        base58Prefixes[SECRET_KEY] =     list_of(176);
+-        base58Prefixes[EXT_PUBLIC_KEY] = list_of(0x04)(0x88)(0xB2)(0x1E);
+-        base58Prefixes[EXT_SECRET_KEY] = list_of(0x04)(0x88)(0xAD)(0xE4);
++        base58Prefixes[PUBKEY_ADDRESS] = {48};
++        base58Prefixes[SCRIPT_ADDRESS] = {5};
++        base58Prefixes[SECRET_KEY] = {176};
++        base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x88, 0xb2, 0x1e};
++        base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x88, 0xad, 0xe4};
+ 
+         convertSeed6(vFixedSeeds, pnSeed6_main, ARRAYLEN(pnSeed6_main));
+ 
+         fRequireRPCPassword = true;
+@@ -182,9 +182,9 @@
+         // Litecoin: Mainnet v2 enforced as of block 710k
+         nEnforceV2AfterHeight = 710000;
+     }
+ 
+-    const Checkpoints::CCheckpointData& Checkpoints() const 
++    const Checkpoints::CCheckpointData& Checkpoints() const
+     {
+         return data;
+     }
+ };
+@@ -223,13 +223,13 @@
+         vSeeds.push_back(CDNSSeedData("litecointools.com", "testnet-seed.litecointools.com"));
+         vSeeds.push_back(CDNSSeedData("xurious.com", "testnet-seed.ltc.xurious.com"));
+         vSeeds.push_back(CDNSSeedData("wemine-testnet.com", "dnsseed.wemine-testnet.com"));
+ 
+-        base58Prefixes[PUBKEY_ADDRESS] = list_of(111);
+-        base58Prefixes[SCRIPT_ADDRESS] = list_of(196);
+-        base58Prefixes[SECRET_KEY]     = list_of(239);
+-        base58Prefixes[EXT_PUBLIC_KEY] = list_of(0x04)(0x35)(0x87)(0xCF);
+-        base58Prefixes[EXT_SECRET_KEY] = list_of(0x04)(0x35)(0x83)(0x94);
++        base58Prefixes[PUBKEY_ADDRESS] = {111};
++        base58Prefixes[SCRIPT_ADDRESS] = {196};
++        base58Prefixes[SECRET_KEY] = {239};
++        base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x35, 0x87, 0xcf};
++        base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x35, 0x83, 0x94};
+ 
+         convertSeed6(vFixedSeeds, pnSeed6_test, ARRAYLEN(pnSeed6_test));
+ 
+         fRequireRPCPassword = true;
+@@ -242,9 +242,9 @@
+ 
+         // Litecoin: Testnet v2 enforced as of block 400k
+         nEnforceV2AfterHeight = 400000;
+     }
+-    const Checkpoints::CCheckpointData& Checkpoints() const 
++    const Checkpoints::CCheckpointData& Checkpoints() const
+     {
+         return dataTestnet;
+     }
+ };
+@@ -291,9 +291,9 @@
+ 
+         // Litecoin: v2 enforced using Bitcoin's supermajority rule
+         nEnforceV2AfterHeight = -1;
+     }
+-    const Checkpoints::CCheckpointData& Checkpoints() const 
++    const Checkpoints::CCheckpointData& Checkpoints() const
+     {
+         return dataRegtest;
+     }
+ };
+@@ -320,9 +320,9 @@
+         // Litecoin: v2 enforced using Bitcoin's supermajority rule
+         nEnforceV2AfterHeight = -1;
+     }
+ 
+-    const Checkpoints::CCheckpointData& Checkpoints() const 
++    const Checkpoints::CCheckpointData& Checkpoints() const
+     {
+         // UnitTest share the same checkpoints as MAIN
+         return data;
+     }
diff --git a/debian/patches/series b/debian/patches/series
index a9f7bd3..08ff4c4 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,4 +1,5 @@
 ## disabled due to local modifications:
 #system-json-spirit.patch
 
+gcc6.patch
 system-leveldb.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bitcoin/litecoin.git



More information about the Pkg-bitcoin-commits mailing list