Merge branch 'uri' of https://github.com/TheBlueMatt/bitcoin
This commit is contained in:
commit
50fc02d063
7 changed files with 43 additions and 36 deletions
|
@ -11,12 +11,28 @@ packages:
|
||||||
reference_datetime: "2011-01-30 00:00:00"
|
reference_datetime: "2011-01-30 00:00:00"
|
||||||
remotes: []
|
remotes: []
|
||||||
files:
|
files:
|
||||||
- "boost_1_47_0.tar.bz2"
|
- "boost_1_49_0.tar.bz2"
|
||||||
script: |
|
script: |
|
||||||
TMPDIR="$HOME/tmpdir"
|
TMPDIR="$HOME/tmpdir"
|
||||||
mkdir -p $TMPDIR/bin/$GBUILD_BITS $TMPDIR/include
|
mkdir -p $TMPDIR/bin/$GBUILD_BITS $TMPDIR/include
|
||||||
tar xjf boost_1_47_0.tar.bz2
|
tar xjf boost_1_49_0.tar.bz2
|
||||||
cd boost_1_47_0
|
cd boost_1_49_0
|
||||||
|
echo "--- tmp_dir_helpers.orig.hpp 2012-06-10 01:39:25.403268210 +0200
|
||||||
|
+++ tmp_dir_helpers.hpp 2012-06-10 01:41:14.653823479 +0200
|
||||||
|
@@ -19,9 +19,9 @@
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
#if defined(BOOST_INTERPROCESS_WINDOWS)
|
||||||
|
- //#define BOOST_INTERPROCESS_HAS_WINDOWS_KERNEL_BOOTTIME
|
||||||
|
- //#define BOOST_INTERPROCESS_HAS_KERNEL_BOOTTIME
|
||||||
|
- //#include <boost/interprocess/detail/win32_api.hpp>
|
||||||
|
+ #define BOOST_INTERPROCESS_HAS_WINDOWS_KERNEL_BOOTTIME
|
||||||
|
+ #define BOOST_INTERPROCESS_HAS_KERNEL_BOOTTIME
|
||||||
|
+ #include <boost/interprocess/detail/win32_api.hpp>
|
||||||
|
#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
|
||||||
|
//#include <sys/sysctl.h>
|
||||||
|
//#if defined(CTL_KERN) && defined (KERN_BOOTTIME)" > useboottime.patch
|
||||||
|
patch boost/interprocess/detail/tmp_dir_helpers.hpp useboottime.patch
|
||||||
echo "using gcc : 4.4 : i586-mingw32msvc-g++
|
echo "using gcc : 4.4 : i586-mingw32msvc-g++
|
||||||
:
|
:
|
||||||
<rc>i586-mingw32msvc-windres
|
<rc>i586-mingw32msvc-windres
|
||||||
|
@ -34,5 +50,5 @@ script: |
|
||||||
cd $TMPDIR
|
cd $TMPDIR
|
||||||
export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1
|
export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1
|
||||||
export FAKETIME=$REFERENCE_DATETIME
|
export FAKETIME=$REFERENCE_DATETIME
|
||||||
zip -r boost-win32-1.47.0-gitian.zip *
|
zip -r boost-win32-1.49.0-gitian2.zip *
|
||||||
cp boost-win32-1.47.0-gitian.zip $OUTDIR
|
cp boost-win32-1.49.0-gitian2.zip $OUTDIR
|
||||||
|
|
|
@ -16,7 +16,7 @@ remotes:
|
||||||
"dir": "bitcoin"
|
"dir": "bitcoin"
|
||||||
files:
|
files:
|
||||||
- "qt-win32-4.7.4-gitian.zip"
|
- "qt-win32-4.7.4-gitian.zip"
|
||||||
- "boost-win32-1.47.0-gitian.zip"
|
- "boost-win32-1.49.0-gitian2.zip"
|
||||||
- "bitcoin-deps-0.0.4.zip"
|
- "bitcoin-deps-0.0.4.zip"
|
||||||
script: |
|
script: |
|
||||||
#
|
#
|
||||||
|
@ -26,10 +26,10 @@ script: |
|
||||||
cd $HOME/build/
|
cd $HOME/build/
|
||||||
export PATH=$PATH:$HOME/qt/bin/
|
export PATH=$PATH:$HOME/qt/bin/
|
||||||
#
|
#
|
||||||
mkdir boost_1_47_0
|
mkdir boost_1_49_0
|
||||||
cd boost_1_47_0
|
cd boost_1_49_0
|
||||||
mkdir -p stage/lib
|
mkdir -p stage/lib
|
||||||
unzip ../boost-win32-1.47.0-gitian.zip
|
unzip ../boost-win32-1.49.0-gitian2.zip
|
||||||
cd bin/$GBUILD_BITS
|
cd bin/$GBUILD_BITS
|
||||||
for lib in *; do
|
for lib in *; do
|
||||||
i586-mingw32msvc-ar rc ../../stage/lib/libboost_${lib}-mt-s.a $lib/*.o
|
i586-mingw32msvc-ar rc ../../stage/lib/libboost_${lib}-mt-s.a $lib/*.o
|
||||||
|
|
|
@ -98,12 +98,10 @@ Section -post SEC0001
|
||||||
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" UninstallString $INSTDIR\uninstall.exe
|
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" UninstallString $INSTDIR\uninstall.exe
|
||||||
WriteRegDWORD HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" NoModify 1
|
WriteRegDWORD HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" NoModify 1
|
||||||
WriteRegDWORD HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" NoRepair 1
|
WriteRegDWORD HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" NoRepair 1
|
||||||
|
WriteRegStr HKCR "bitcoin" "URL Protocol" ""
|
||||||
# bitcoin: URI handling disabled for 0.6.0
|
WriteRegStr HKCR "bitcoin" "" "URL:Bitcoin"
|
||||||
# WriteRegStr HKCR "bitcoin" "URL Protocol" ""
|
WriteRegStr HKCR "bitcoin\DefaultIcon" "" $INSTDIR\bitcoin-qt.exe
|
||||||
# WriteRegStr HKCR "bitcoin" "" "URL:Bitcoin"
|
WriteRegStr HKCR "bitcoin\shell\open\command" "" '"$INSTDIR\bitcoin-qt.exe" "$$1"'
|
||||||
# WriteRegStr HKCR "bitcoin\DefaultIcon" "" $INSTDIR\bitcoin-qt.exe
|
|
||||||
# WriteRegStr HKCR "bitcoin\shell\open\command" "" '"$INSTDIR\bitcoin-qt.exe" "$$1"'
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
# Macro for selecting uninstaller sections
|
# Macro for selecting uninstaller sections
|
||||||
|
|
|
@ -7,14 +7,14 @@ DEPSDIR:=/usr/i586-mingw32msvc
|
||||||
USE_UPNP:=0
|
USE_UPNP:=0
|
||||||
|
|
||||||
INCLUDEPATHS= \
|
INCLUDEPATHS= \
|
||||||
-I"$(DEPSDIR)/boost_1_47_0" \
|
-I"$(DEPSDIR)/boost_1_49_0" \
|
||||||
-I"$(DEPSDIR)/db-4.8.30.NC/build_unix" \
|
-I"$(DEPSDIR)/db-4.8.30.NC/build_unix" \
|
||||||
-I"$(DEPSDIR)/openssl-1.0.1b/include" \
|
-I"$(DEPSDIR)/openssl-1.0.1b/include" \
|
||||||
-I"$(DEPSDIR)" \
|
-I"$(DEPSDIR)" \
|
||||||
-I"$(CURDIR)"/obj \
|
-I"$(CURDIR)"/obj \
|
||||||
|
|
||||||
LIBPATHS= \
|
LIBPATHS= \
|
||||||
-L"$(DEPSDIR)/boost_1_47_0/stage/lib" \
|
-L"$(DEPSDIR)/boost_1_49_0/stage/lib" \
|
||||||
-L"$(DEPSDIR)/db-4.8.30.NC/build_unix" \
|
-L"$(DEPSDIR)/db-4.8.30.NC/build_unix" \
|
||||||
-L"$(DEPSDIR)/openssl-1.0.1b"
|
-L"$(DEPSDIR)/openssl-1.0.1b"
|
||||||
|
|
||||||
|
|
|
@ -5,20 +5,20 @@
|
||||||
USE_UPNP:=0
|
USE_UPNP:=0
|
||||||
|
|
||||||
INCLUDEPATHS= \
|
INCLUDEPATHS= \
|
||||||
-I"C:\boost-1.47.0-mgw" \
|
-I"C:\boost-1.49.0-mgw" \
|
||||||
-I"C:\db-4.8.30.NC-mgw\build_unix" \
|
-I"C:\db-4.8.30.NC-mgw\build_unix" \
|
||||||
-I"C:\openssl-1.0.0d-mgw\include"
|
-I"C:\openssl-1.0.0d-mgw\include"
|
||||||
|
|
||||||
LIBPATHS= \
|
LIBPATHS= \
|
||||||
-L"C:\boost-1.47.0-mgw\stage\lib" \
|
-L"C:\boost-1.49.0-mgw\stage\lib" \
|
||||||
-L"C:\db-4.8.30.NC-mgw\build_unix" \
|
-L"C:\db-4.8.30.NC-mgw\build_unix" \
|
||||||
-L"C:\openssl-1.0.0d-mgw"
|
-L"C:\openssl-1.0.0d-mgw"
|
||||||
|
|
||||||
LIBS= \
|
LIBS= \
|
||||||
-l boost_system-mgw45-mt-s-1_47 \
|
-l boost_system-mgw45-mt-s-1_49 \
|
||||||
-l boost_filesystem-mgw45-mt-s-1_47 \
|
-l boost_filesystem-mgw45-mt-s-1_49 \
|
||||||
-l boost_program_options-mgw45-mt-s-1_47 \
|
-l boost_program_options-mgw45-mt-s-1_49 \
|
||||||
-l boost_thread-mgw45-mt-s-1_47 \
|
-l boost_thread-mgw45-mt-s-1_49 \
|
||||||
-l db_cxx \
|
-l db_cxx \
|
||||||
-l ssl \
|
-l ssl \
|
||||||
-l crypto
|
-l crypto
|
||||||
|
|
|
@ -116,9 +116,6 @@ static void handleRunawayException(std::exception *e)
|
||||||
#ifndef BITCOIN_QT_TEST
|
#ifndef BITCOIN_QT_TEST
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
#if !defined(MAC_OSX) && !defined(WIN32)
|
|
||||||
// TODO: implement qtipcserver.cpp for Mac and Windows
|
|
||||||
|
|
||||||
// Do this early as we don't want to bother initializing if we are just calling IPC
|
// Do this early as we don't want to bother initializing if we are just calling IPC
|
||||||
for (int i = 1; i < argc; i++)
|
for (int i = 1; i < argc; i++)
|
||||||
{
|
{
|
||||||
|
@ -137,7 +134,6 @@ int main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
// Internal string conversion is all UTF-8
|
// Internal string conversion is all UTF-8
|
||||||
QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
|
QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
|
||||||
|
@ -262,8 +258,6 @@ int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
window.show();
|
window.show();
|
||||||
}
|
}
|
||||||
#if !defined(MAC_OSX) && !defined(WIN32)
|
|
||||||
// TODO: implement qtipcserver.cpp for Mac and Windows
|
|
||||||
|
|
||||||
// Place this here as guiref has to be defined if we dont want to lose URIs
|
// Place this here as guiref has to be defined if we dont want to lose URIs
|
||||||
ipcInit();
|
ipcInit();
|
||||||
|
@ -282,7 +276,7 @@ int main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
app.exec();
|
app.exec();
|
||||||
|
|
||||||
window.hide();
|
window.hide();
|
||||||
|
|
|
@ -6,6 +6,11 @@
|
||||||
#include <boost/interprocess/ipc/message_queue.hpp>
|
#include <boost/interprocess/ipc/message_queue.hpp>
|
||||||
#include <boost/tokenizer.hpp>
|
#include <boost/tokenizer.hpp>
|
||||||
#include <boost/date_time/posix_time/posix_time.hpp>
|
#include <boost/date_time/posix_time/posix_time.hpp>
|
||||||
|
#include <boost/version.hpp>
|
||||||
|
|
||||||
|
#if defined(WIN32) && (!defined(BOOST_INTERPROCESS_HAS_WINDOWS_KERNEL_BOOTTIME) || !defined(BOOST_INTERPROCESS_HAS_KERNEL_BOOTTIME) || BOOST_VERSION < 104900)
|
||||||
|
#warning Compiling without BOOST_INTERPROCESS_HAS_WINDOWS_KERNEL_BOOTTIME and BOOST_INTERPROCESS_HAS_KERNEL_BOOTTIME uncommented in boost/interprocess/detail/tmp_dir_helpers.hpp or using a boost version before 1.49 may have unintended results see svn.boost.org/trac/boost/ticket/5392
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "ui_interface.h"
|
#include "ui_interface.h"
|
||||||
#include "qtipcserver.h"
|
#include "qtipcserver.h"
|
||||||
|
@ -49,12 +54,6 @@ void ipcInit()
|
||||||
// TODO: implement bitcoin: URI handling the Mac Way
|
// TODO: implement bitcoin: URI handling the Mac Way
|
||||||
return;
|
return;
|
||||||
#endif
|
#endif
|
||||||
#ifdef WIN32
|
|
||||||
// TODO: THOROUGHLY test boost::interprocess fix,
|
|
||||||
// and make sure there are no Windows argument-handling exploitable
|
|
||||||
// problems.
|
|
||||||
return;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
message_queue* mq;
|
message_queue* mq;
|
||||||
char strBuf[257];
|
char strBuf[257];
|
||||||
|
|
Loading…
Reference in a new issue