Skip to content

Commit 6194d9a

Browse files
committed
Fix bitcoin_qt.m4 and fix-xcb-include-order.patch
1 parent f6eb4e2 commit 6194d9a

File tree

7 files changed

+77
-55
lines changed

7 files changed

+77
-55
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ env:
3939
# No wallet
4040
- HOST=x86_64-unknown-linux-gnu PACKAGES=" openjdk-7-jre-headless python3" DEP_OPTS="NO_WALLET=1" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-glibc-back-compat --enable-reduce-exports"
4141
# Cross-Mac
42-
- HOST=x86_64-apple-darwin11 PACKAGES="cmake imagemagick libcap-dev librsvg2-bin libz-dev libbz2-dev libtiff-tools python-dev" BITCOIN_CONFIG="--enable-reduce-exports" OSX_SDK=10.9 GOAL="deploy"
42+
- HOST=x86_64-apple-darwin11 PACKAGES="cmake imagemagick libcap-dev librsvg2-bin libz-dev libbz2-dev libtiff-tools python-dev" BITCOIN_CONFIG="--enable-reduce-exports" OSX_SDK=10.11 GOAL="deploy"
4343

4444
before_install:
4545
- export PATH=$(echo $PATH | tr ':' "\n" | sed '/\/opt\/python/d' | tr "\n" ":" | sed "s|::|:|g")

build-aux/m4/bitcoin_qt.m4

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,8 @@ AC_DEFUN([_BITCOIN_QT_FIND_STATIC_PLUGINS],[
342342
elif test x$TARGET_OS = xdarwin; then
343343
PKG_CHECK_MODULES([QTPRINT], [Qt5PrintSupport], [QT_LIBS="$QTPRINT_LIBS $QT_LIBS"])
344344
fi
345+
else
346+
QT_LIBS="-lQt5PlatformSupport $QT_LIBS"
345347
fi
346348
])
347349
else

contrib/devtools/symbol-check.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
b'libxcb.so.1', # part of X11
6969
b'libfontconfig.so.1', # font support
7070
b'libfreetype.so.6', # font parsing
71+
b'libdbus-1.so.3', # inter process communication (notification system)
7172
b'libdl.so.2' # programming interface to dynamic linker
7273
}
7374

contrib/gitian-descriptors/gitian-osx.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ remotes:
3131
- "url": "https://github.com/bitcoin/bitcoin.git"
3232
"dir": "bitcoin"
3333
files:
34-
- "MacOSX10.9.sdk.tar.gz"
34+
- "MacOSX10.11.sdk.tar.gz"
3535
script: |
3636
WRAP_DIR=$HOME/wrapped
3737
HOSTS="x86_64-apple-darwin11"
@@ -87,7 +87,7 @@ script: |
8787
BASEPREFIX=`pwd`/depends
8888
8989
mkdir -p ${BASEPREFIX}/SDKs
90-
tar -C ${BASEPREFIX}/SDKs -xf ${BUILD_DIR}/MacOSX10.9.sdk.tar.gz
90+
tar -C ${BASEPREFIX}/SDKs -xf ${BUILD_DIR}/MacOSX10.11.sdk.tar.gz
9191
9292
# Build dependencies for each host
9393
for i in $HOSTS; do

depends/packages/qt.mk

Lines changed: 44 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,55 @@
11
PACKAGE=qt
2-
$(package)_version=5.5.0
3-
$(package)_download_path=http://download.qt.io/official_releases/qt/5.5/$($(package)_version)/submodules
2+
$(package)_version=5.6.1
3+
$(package)_download_path=http://download.qt.io/official_releases/qt/5.6/$($(package)_version)/submodules
44
$(package)_suffix=opensource-src-$($(package)_version).tar.gz
55
$(package)_file_name=qtbase-$($(package)_suffix)
6-
$(package)_sha256_hash=7e82b1318f88e56a2a9376e069aa608d4fd96b48cb0e1b880ae658b0a1af0561
6+
$(package)_sha256_hash=0ac67cf8d66d52b995f96c31c4b48117a1afb3db99eaa93e20ccd8f7f55f7fde
77
$(package)_dependencies=openssl
88
$(package)_linux_dependencies=freetype fontconfig dbus libxcb libX11 xproto libXext
99
$(package)_build_subdir=qtbase
1010
$(package)_qt_libs=corelib network widgets gui plugins testlib
11-
$(package)_patches=mac-qmake.conf fix-xcb-include-order.patch mingw-uuidof.patch pidlist_absolute.patch
11+
$(package)_patches=mac-qmake.conf mingw-uuidof.patch pidlist_absolute.patch fix-xcb-include-order.patch fix_qt_pkgconfig.patch
1212

1313
$(package)_qttranslations_file_name=qttranslations-$($(package)_suffix)
14-
$(package)_qttranslations_sha256_hash=c4bd6db6e426965c6f8824c54e81f68bbd61e2bae1bcadc328c6e81c45902a0d
14+
$(package)_qttranslations_sha256_hash=dcc1534d247babca1840cb6d0a000671801a341ea352d0535474f86adadaf028
15+
1516

1617
$(package)_qttools_file_name=qttools-$($(package)_suffix)
17-
$(package)_qttools_sha256_hash=d9e06bd19ecc86afba5e95d45a906d1bc1ad579aa70001e36143c1aaf695bdd6
18+
$(package)_qttools_sha256_hash=e0f845de28c31230dfa428f0190ccb3b91d1fc02481b1f064698ae4ef8376aa1
1819

1920
$(package)_extra_sources = $($(package)_qttranslations_file_name)
2021
$(package)_extra_sources += $($(package)_qttools_file_name)
2122

2223
define $(package)_set_vars
2324
$(package)_config_opts_release = -release
2425
$(package)_config_opts_debug = -debug
25-
$(package)_config_opts += -opensource -confirm-license
26+
$(package)_config_opts += -bindir $(build_prefix)/bin
27+
$(package)_config_opts += -c++11
28+
$(package)_config_opts += -confirm-license
29+
$(package)_config_opts += -hostprefix $(build_prefix)
30+
$(package)_config_opts += -no-alsa
2631
$(package)_config_opts += -no-audio-backend
32+
$(package)_config_opts += -no-cups
33+
$(package)_config_opts += -no-egl
34+
$(package)_config_opts += -no-eglfs
35+
$(package)_config_opts += -no-feature-style-windowsmobile
36+
$(package)_config_opts += -no-feature-style-windowsce
37+
$(package)_config_opts += -no-freetype
38+
$(package)_config_opts += -no-gif
2739
$(package)_config_opts += -no-glib
40+
$(package)_config_opts += -no-gstreamer
2841
$(package)_config_opts += -no-icu
29-
$(package)_config_opts += -no-cups
3042
$(package)_config_opts += -no-iconv
31-
$(package)_config_opts += -no-gif
32-
$(package)_config_opts += -no-freetype
43+
$(package)_config_opts += -no-kms
44+
$(package)_config_opts += -no-linuxfb
45+
$(package)_config_opts += -no-libudev
46+
$(package)_config_opts += -no-mitshm
47+
$(package)_config_opts += -no-mtdev
3348
$(package)_config_opts += -no-nis
34-
$(package)_config_opts += -pch
49+
$(package)_config_opts += -no-pulseaudio
50+
$(package)_config_opts += -no-openvg
51+
$(package)_config_opts += -no-reduce-relocations
3552
$(package)_config_opts += -no-qml-debug
36-
$(package)_config_opts += -nomake examples
37-
$(package)_config_opts += -nomake tests
38-
$(package)_config_opts += -no-feature-style-windowsmobile
39-
$(package)_config_opts += -no-feature-style-windowsce
4053
$(package)_config_opts += -no-sql-db2
4154
$(package)_config_opts += -no-sql-ibase
4255
$(package)_config_opts += -no-sql-oci
@@ -46,36 +59,25 @@ $(package)_config_opts += -no-sql-odbc
4659
$(package)_config_opts += -no-sql-psql
4760
$(package)_config_opts += -no-sql-sqlite
4861
$(package)_config_opts += -no-sql-sqlite2
49-
$(package)_config_opts += -prefix $(host_prefix)
50-
$(package)_config_opts += -hostprefix $(build_prefix)
51-
$(package)_config_opts += -bindir $(build_prefix)/bin
52-
$(package)_config_opts += -c++11
62+
$(package)_config_opts += -no-use-gold-linker
63+
$(package)_config_opts += -no-xinput2
64+
$(package)_config_opts += -no-xrender
65+
$(package)_config_opts += -nomake examples
66+
$(package)_config_opts += -nomake tests
67+
$(package)_config_opts += -opensource
5368
$(package)_config_opts += -openssl-linked
54-
$(package)_config_opts += -v
55-
$(package)_config_opts += -static
56-
$(package)_config_opts += -silent
69+
$(package)_config_opts += -optimized-qmake
70+
$(package)_config_opts += -pch
5771
$(package)_config_opts += -pkg-config
72+
$(package)_config_opts += -prefix $(host_prefix)
5873
$(package)_config_opts += -qt-libpng
5974
$(package)_config_opts += -qt-libjpeg
60-
$(package)_config_opts += -qt-zlib
6175
$(package)_config_opts += -qt-pcre
62-
$(package)_config_opts += -no-pulseaudio
63-
$(package)_config_opts += -no-openvg
64-
$(package)_config_opts += -no-xrender
65-
$(package)_config_opts += -no-alsa
66-
$(package)_config_opts += -no-mtdev
67-
$(package)_config_opts += -no-gstreamer
68-
$(package)_config_opts += -no-mitshm
69-
$(package)_config_opts += -no-kms
70-
$(package)_config_opts += -no-reduce-relocations
71-
$(package)_config_opts += -no-egl
72-
$(package)_config_opts += -no-eglfs
73-
$(package)_config_opts += -no-linuxfb
74-
$(package)_config_opts += -no-xinput2
75-
$(package)_config_opts += -no-libudev
76-
$(package)_config_opts += -no-use-gold-linker
76+
$(package)_config_opts += -qt-zlib
7777
$(package)_config_opts += -reduce-exports
78-
$(package)_config_opts += -optimized-qmake
78+
$(package)_config_opts += -static
79+
$(package)_config_opts += -silent
80+
$(package)_config_opts += -v
7981

8082
ifneq ($(build_os),darwin)
8183
$(package)_config_opts_darwin = -xplatform macx-clang-linux
@@ -119,6 +121,7 @@ define $(package)_extract_cmds
119121
tar --strip-components=1 -xf $($(package)_source_dir)/$($(package)_qttools_file_name) -C qttools
120122
endef
121123

124+
122125
define $(package)_preprocess_cmds
123126
sed -i.old "s|updateqm.commands = \$$$$\$$$$LRELEASE|updateqm.commands = $($(package)_extract_dir)/qttools/bin/lrelease|" qttranslations/translations/translations.pro && \
124127
sed -i.old "s/src_plugins.depends = src_sql src_xml src_network/src_plugins.depends = src_xml src_network/" qtbase/src/src.pro && \
@@ -130,9 +133,10 @@ define $(package)_preprocess_cmds
130133
cp -f qtbase/mkspecs/macx-clang/Info.plist.app qtbase/mkspecs/macx-clang-linux/ &&\
131134
cp -f qtbase/mkspecs/macx-clang/qplatformdefs.h qtbase/mkspecs/macx-clang-linux/ &&\
132135
cp -f $($(package)_patch_dir)/mac-qmake.conf qtbase/mkspecs/macx-clang-linux/qmake.conf && \
133-
patch -p1 < $($(package)_patch_dir)/fix-xcb-include-order.patch && \
134136
patch -p1 < $($(package)_patch_dir)/mingw-uuidof.patch && \
135137
patch -p1 < $($(package)_patch_dir)/pidlist_absolute.patch && \
138+
patch -p1 < $($(package)_patch_dir)/fix-xcb-include-order.patch && \
139+
patch -p1 < $($(package)_patch_dir)/fix_qt_pkgconfig.patch && \
136140
echo "QMAKE_CFLAGS += $($(package)_cflags) $($(package)_cppflags)" >> qtbase/mkspecs/common/gcc-base.conf && \
137141
echo "QMAKE_CXXFLAGS += $($(package)_cxxflags) $($(package)_cppflags)" >> qtbase/mkspecs/common/gcc-base.conf && \
138142
echo "QMAKE_LFLAGS += $($(package)_ldflags)" >> qtbase/mkspecs/common/gcc-base.conf && \
Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
--- old/qtbase/src/plugins/platforms/xcb/xcb_qpa_lib.pro 2015-03-17 02:06:42.705930685 +0000
22
+++ new/qtbase/src/plugins/platforms/xcb/xcb_qpa_lib.pro 2015-03-17 02:08:41.281926351 +0000
3-
@@ -94,8 +94,6 @@
4-
3+
@@ -74,8 +74,6 @@
4+
55
DEFINES += $$QMAKE_DEFINES_XCB
66
LIBS += $$QMAKE_LIBS_XCB
77
-QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_XCB
88
-QMAKE_CFLAGS += $$QMAKE_CFLAGS_XCB
9-
9+
1010
CONFIG += qpa/genericunixfontdatabase
11-
12-
@@ -104,7 +102,8 @@
11+
12+
@@ -87,7 +85,8 @@
1313
contains(QT_CONFIG, xcb-qt) {
1414
DEFINES += XCB_USE_RENDER
1515
XCB_DIR = ../../../3rdparty/xcb
@@ -18,28 +18,32 @@
1818
+ QMAKE_CXXFLAGS += -I$$XCB_DIR/include -I$$XCB_DIR/sysinclude $$QMAKE_CFLAGS_XCB
1919
LIBS += -lxcb -L$$OUT_PWD/xcb-static -lxcb-static
2020
} else {
21-
LIBS += -lxcb -lxcb-image -lxcb-icccm -lxcb-sync -lxcb-xfixes -lxcb-shm -lxcb-randr -lxcb-shape -lxcb-keysyms
21+
LIBS += -lxcb -lxcb-image -lxcb-icccm -lxcb-sync -lxcb-xfixes -lxcb-shm -lxcb-randr -lxcb-shape -lxcb-keysyms -lxcb-xinerama
2222
--- old/qtbase/src/plugins/platforms/xcb/xcb-static/xcb-static.pro 2015-03-17 02:07:04.641929383 +0000
2323
+++ new/qtbase/src/plugins/platforms/xcb/xcb-static/xcb-static.pro 2015-03-17 02:10:15.485922059 +0000
24-
@@ -8,7 +8,8 @@
25-
24+
@@ -9,7 +9,8 @@
25+
2626
XCB_DIR = ../../../../3rdparty/xcb
27-
27+
2828
-INCLUDEPATH += $$XCB_DIR/include $$XCB_DIR/include/xcb $$XCB_DIR/sysinclude
2929
+QMAKE_CFLAGS += -I$$XCB_DIR/include -I$$XCB_DIR/include/xcb -I$$XCB_DIR/sysinclude
3030
+QMAKE_CXXFLAGS += -I$$XCB_DIR/include -I$$XCB_DIR/include/xcb -I$$XCB_DIR/sysinclude
31-
31+
3232
QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_XCB
3333
QMAKE_CFLAGS += $$QMAKE_CFLAGS_XCB
3434
--- old/qtbase/src/plugins/platforms/xcb/xcb-plugin.pro 2015-07-24 16:02:59.530038830 -0400
3535
+++ new/qtbase/src/plugins/platforms/xcb/xcb-plugin.pro 2015-07-24 16:01:22.106037459 -0400
36-
@@ -11,3 +11,9 @@
36+
@@ -6,6 +6,13 @@
3737
qxcbmain.cpp
3838
OTHER_FILES += xcb.json README
39-
39+
4040
+contains(QT_CONFIG, xcb-qt) {
4141
+ DEFINES += XCB_USE_RENDER
4242
+ XCB_DIR = ../../../3rdparty/xcb
4343
+ QMAKE_CFLAGS += -I$$XCB_DIR/include -I$$XCB_DIR/sysinclude $$QMAKE_CFLAGS_XCB
4444
+ QMAKE_CXXFLAGS += -I$$XCB_DIR/include -I$$XCB_DIR/sysinclude $$QMAKE_CFLAGS_XCB
4545
+}
46+
+
47+
PLUGIN_TYPE = platforms
48+
PLUGIN_CLASS_NAME = QXcbIntegrationPlugin
49+
!equals(TARGET, $$QT_DEFAULT_QPA_PLUGIN): PLUGIN_EXTENDS = -
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- old/qtbase/mkspecs/features/qt_module.prf 2016-03-17 02:06:42.705930685 +0000
2+
+++ new/qtbase/mkspecs/features/qt_module.prf 2016-03-17 02:06:42.705930685 +0000
3+
@@ -244,7 +244,7 @@
4+
load(qt_targets)
5+
6+
# this builds on top of qt_common
7+
-!internal_module:!lib_bundle:if(unix|mingw) {
8+
+unix|mingw {
9+
CONFIG += create_pc
10+
QMAKE_PKGCONFIG_DESTDIR = pkgconfig
11+
host_build: \

0 commit comments

Comments
 (0)