Skip to content

Commit c3e3cfb

Browse files
committed
Merge #7920: Switch Travis to Trusty
a33b7c9 travis: temporarily disable qt to avoid timeouts (Cory Fields) 174023c travis: Don't disable writing ccache for pull-requests (Cory Fields) cf77fcd travis: drop MAKEJOBS=2 for windows compilers (Cory Fields) 9267a47 depends: enable pre-compiled headers for qt (Cory Fields) 06fdffd travis: switch to Trusty (Cory Fields) a6666b2 depends: mac deploy Py3 compatibility (Wladimir J. van der Laan)
2 parents a407807 + a33b7c9 commit c3e3cfb

File tree

5 files changed

+90
-12
lines changed

5 files changed

+90
-12
lines changed

.travis.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
# IPv6 support
88

99
sudo: required
10-
dist: precise
11-
group: legacy
10+
dist: trusty
1211

1312
os: linux
1413
language: cpp
@@ -38,22 +37,25 @@ matrix:
3837
- compiler: ": ARM"
3938
env: HOST=arm-linux-gnueabihf PACKAGES="g++-arm-linux-gnueabihf" DEP_OPTS="NO_QT=1" CHECK_DOC=1 GOAL="install" BITCOIN_CONFIG="--enable-glibc-back-compat --enable-reduce-exports"
4039
- compiler: ": Win32"
41-
env: HOST=i686-w64-mingw32 PPA="ppa:ubuntu-wine/ppa" PACKAGES="nsis gcc-mingw-w64-i686 g++-mingw-w64-i686 binutils-mingw-w64-i686 mingw-w64-dev wine1.7 bc" RUN_TESTS=true GOAL="deploy" BITCOIN_CONFIG="--enable-gui --enable-reduce-exports" MAKEJOBS="-j2"
40+
env: HOST=i686-w64-mingw32 DPKG_ADD_ARCH="i386" DEP_OPTS="NO_QT=1" PACKAGES="nsis g++-mingw-w64-i686 wine1.6 bc" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-reduce-exports"
4241
- compiler: ": 32-bit + dash"
43-
env: HOST=i686-pc-linux-gnu PACKAGES="g++-multilib bc python-zmq" PPA="ppa:chris-lea/zeromq" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-zmq --enable-glibc-back-compat --enable-reduce-exports LDFLAGS=-static-libstdc++" USE_SHELL="/bin/dash"
42+
env: HOST=i686-pc-linux-gnu PACKAGES="g++-multilib bc python-zmq" DEP_OPTS="NO_QT=1" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-zmq --enable-glibc-back-compat --enable-reduce-exports LDFLAGS=-static-libstdc++" USE_SHELL="/bin/dash"
4443
- compiler: ": Win64"
45-
env: HOST=x86_64-w64-mingw32 PPA="ppa:ubuntu-wine/ppa" PACKAGES="nsis gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 binutils-mingw-w64-x86-64 mingw-w64-dev wine1.7 bc" RUN_TESTS=true GOAL="deploy" BITCOIN_CONFIG="--enable-gui --enable-reduce-exports" MAKEJOBS="-j2"
44+
env: HOST=x86_64-w64-mingw32 DPKG_ADD_ARCH="i386" DEP_OPTS="NO_QT=1" PACKAGES="nsis g++-mingw-w64-x86-64 wine1.6 bc" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-reduce-exports"
4645
- compiler: ": bitcoind"
47-
env: HOST=x86_64-unknown-linux-gnu PACKAGES="bc python-zmq" PPA="ppa:chris-lea/zeromq" DEP_OPTS="NO_QT=1 NO_UPNP=1 DEBUG=1" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-zmq --enable-glibc-back-compat --enable-reduce-exports CPPFLAGS=-DDEBUG_LOCKORDER"
46+
env: HOST=x86_64-unknown-linux-gnu PACKAGES="bc python-zmq" DEP_OPTS="NO_QT=1 NO_UPNP=1 DEBUG=1" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-zmq --enable-glibc-back-compat --enable-reduce-exports CPPFLAGS=-DDEBUG_LOCKORDER"
4847
- compiler: ": No wallet"
4948
env: HOST=x86_64-unknown-linux-gnu DEP_OPTS="NO_WALLET=1" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-glibc-back-compat --enable-reduce-exports"
5049
- compiler: ": Cross-Mac"
5150
env: 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"
5251
exclude:
5352
- compiler: gcc
53+
before_install:
54+
- export PATH=$(echo $PATH | tr ':' "\n" | sed '/\/opt\/python/d' | tr "\n" ":" | sed "s|::|:|g")
5455
install:
55-
- if [ -n "$PACKAGES" ]; then sudo rm -f /etc/apt/sources.list.d/travis_ci_zeromq3-source.list; fi
56+
- if [ -n "$PACKAGES" ]; then sudo rm -f /etc/apt/sources.list.d/google-chrome.list; fi
5657
- if [ -n "$PPA" ]; then travis_retry sudo add-apt-repository "$PPA" -y; fi
58+
- if [ -n "$DPKG_ADD_ARCH" ]; then sudo dpkg --add-architecture "$DPKG_ADD_ARCH" ; fi
5759
- if [ -n "$PACKAGES" ]; then travis_retry sudo apt-get update; fi
5860
- if [ -n "$PACKAGES" ]; then travis_retry sudo apt-get install --no-install-recommends --no-upgrade -qq $PACKAGES; fi
5961
before_script:
@@ -69,7 +71,6 @@ script:
6971
- OUTDIR=$BASE_OUTDIR/$TRAVIS_PULL_REQUEST/$TRAVIS_JOB_NUMBER-$HOST
7072
- BITCOIN_CONFIG_ALL="--disable-dependency-tracking --prefix=$TRAVIS_BUILD_DIR/depends/$HOST --bindir=$OUTDIR/bin --libdir=$OUTDIR/lib"
7173
- depends/$HOST/native/bin/ccache --max-size=$CCACHE_SIZE
72-
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then export CCACHE_READONLY=1; fi
7374
- test -n "$USE_SHELL" && eval '"$USE_SHELL" -c "./autogen.sh"' || ./autogen.sh
7475
- ./configure --cache-file=config.cache $BITCOIN_CONFIG_ALL $BITCOIN_CONFIG || ( cat config.log && false)
7576
- make distdir PACKAGE=bitcoin VERSION=$HOST

contrib/macdeploy/macdeployqtplus

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ def getFrameworks(binaryPath, verbose):
210210
sys.stderr.write(o_stderr)
211211
sys.stderr.flush()
212212
raise RuntimeError("otool failed with return code %d" % otool.returncode)
213-
214-
otoolLines = o_stdout.split("\n")
213+
214+
otoolLines = o_stdout.decode().split("\n")
215215
otoolLines.pop(0) # First line is the inspected binary
216216
if ".framework" in binaryPath or binaryPath.endswith(".dylib"):
217217
otoolLines.pop(0) # Frameworks and dylibs list themselves as a dependency.
@@ -676,7 +676,7 @@ if verbose >= 2:
676676
print("+ Installing qt.conf +")
677677

678678
f = open(os.path.join(applicationBundle.resourcesPath, "qt.conf"), "wb")
679-
f.write(qt_conf)
679+
f.write(qt_conf.encode())
680680
f.close()
681681

682682
# ------------------------------------------------

depends/packages/native_mac_alias.mk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ $(package)_download_file=v$($(package)_version).tar.bz2
55
$(package)_file_name=$(package)-$($(package)_version).tar.bz2
66
$(package)_sha256_hash=87ad827e66790028361e43fc754f68ed041a9bdb214cca03c853f079b04fb120
77
$(package)_install_libdir=$(build_prefix)/lib/python/dist-packages
8+
$(package)_patches=python3.patch
9+
10+
define $(package)_preprocess_cmds
11+
patch -p1 < $($(package)_patch_dir)/python3.patch
12+
endef
813

914
define $(package)_build_cmds
1015
python setup.py build

depends/packages/qt.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ $(package)_config_opts += -no-iconv
3131
$(package)_config_opts += -no-gif
3232
$(package)_config_opts += -no-freetype
3333
$(package)_config_opts += -no-nis
34-
$(package)_config_opts += -no-pch
34+
$(package)_config_opts += -pch
3535
$(package)_config_opts += -no-qml-debug
3636
$(package)_config_opts += -nomake examples
3737
$(package)_config_opts += -nomake tests
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
diff -dur a/mac_alias/alias.py b/mac_alias/alias.py
2+
--- a/mac_alias/alias.py 2015-10-19 12:12:48.000000000 +0200
3+
+++ b/mac_alias/alias.py 2016-04-03 12:13:12.037159417 +0200
4+
@@ -243,10 +243,10 @@
5+
alias = Alias()
6+
alias.appinfo = appinfo
7+
8+
- alias.volume = VolumeInfo (volname.replace('/',':'),
9+
+ alias.volume = VolumeInfo (volname.decode().replace('/',':'),
10+
voldate, fstype, disktype,
11+
volattrs, volfsid)
12+
- alias.target = TargetInfo (kind, filename.replace('/',':'),
13+
+ alias.target = TargetInfo (kind, filename.decode().replace('/',':'),
14+
folder_cnid, cnid,
15+
crdate, creator_code, type_code)
16+
alias.target.levels_from = levels_from
17+
@@ -261,9 +261,9 @@
18+
b.read(1)
19+
20+
if tag == TAG_CARBON_FOLDER_NAME:
21+
- alias.target.folder_name = value.replace('/',':')
22+
+ alias.target.folder_name = value.decode().replace('/',':')
23+
elif tag == TAG_CNID_PATH:
24+
- alias.target.cnid_path = struct.unpack(b'>%uI' % (length // 4),
25+
+ alias.target.cnid_path = struct.unpack('>%uI' % (length // 4),
26+
value)
27+
elif tag == TAG_CARBON_PATH:
28+
alias.target.carbon_path = value
29+
@@ -298,9 +298,9 @@
30+
alias.target.creation_date \
31+
= mac_epoch + datetime.timedelta(seconds=seconds)
32+
elif tag == TAG_POSIX_PATH:
33+
- alias.target.posix_path = value
34+
+ alias.target.posix_path = value.decode()
35+
elif tag == TAG_POSIX_PATH_TO_MOUNTPOINT:
36+
- alias.volume.posix_path = value
37+
+ alias.volume.posix_path = value.decode()
38+
elif tag == TAG_RECURSIVE_ALIAS_OF_DISK_IMAGE:
39+
alias.volume.disk_image_alias = Alias.from_bytes(value)
40+
elif tag == TAG_USER_HOME_LENGTH_PREFIX:
41+
@@ -422,13 +422,13 @@
42+
# (so doing so is ridiculous, and nothing could rely on it).
43+
b.write(struct.pack(b'>h28pI2shI64pII4s4shhI2s10s',
44+
self.target.kind,
45+
- carbon_volname, voldate,
46+
+ carbon_volname, int(voldate),
47+
self.volume.fs_type,
48+
self.volume.disk_type,
49+
self.target.folder_cnid,
50+
carbon_filename,
51+
self.target.cnid,
52+
- crdate,
53+
+ int(crdate),
54+
self.target.creator_code,
55+
self.target.type_code,
56+
self.target.levels_from,
57+
@@ -449,12 +449,12 @@
58+
59+
b.write(struct.pack(b'>hhQhhQ',
60+
TAG_HIGH_RES_VOLUME_CREATION_DATE,
61+
- 8, long(voldate * 65536),
62+
+ 8, int(voldate * 65536),
63+
TAG_HIGH_RES_CREATION_DATE,
64+
- 8, long(crdate * 65536)))
65+
+ 8, int(crdate * 65536)))
66+
67+
if self.target.cnid_path:
68+
- cnid_path = struct.pack(b'>%uI' % len(self.target.cnid_path),
69+
+ cnid_path = struct.pack('>%uI' % len(self.target.cnid_path),
70+
*self.target.cnid_path)
71+
b.write(struct.pack(b'>hh', TAG_CNID_PATH,
72+
len(cnid_path)))

0 commit comments

Comments
 (0)