Skip to content

Commit 3381e4a

Browse files
committed
Adapt rest of tooling to new SDK naming scheme
1 parent b3394ab commit 3381e4a

File tree

5 files changed

+16
-10
lines changed

5 files changed

+16
-10
lines changed

ci/test/00_setup_env_mac.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ export LC_ALL=C.UTF-8
99
export CONTAINER_NAME=ci_macos_cross
1010
export HOST=x86_64-apple-darwin16
1111
export PACKAGES="cmake imagemagick libcap-dev librsvg2-bin libz-dev libbz2-dev libtiff-tools python3-dev python3-setuptools"
12-
export OSX_SDK=10.14
12+
export XCODE_VERSION=10.2.1
13+
export XCODE_BUILD_ID=10E1001
1314
export RUN_UNIT_TESTS=false
1415
export RUN_FUNCTIONAL_TESTS=false
1516
export GOAL="deploy"

ci/test/05_before_script.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,14 @@ fi
1515

1616
DOCKER_EXEC mkdir -p ${DEPENDS_DIR}/SDKs ${DEPENDS_DIR}/sdk-sources
1717

18-
if [ -n "$OSX_SDK" ] && [ ! -f ${DEPENDS_DIR}/sdk-sources/MacOSX${OSX_SDK}.sdk.tar.gz ]; then
19-
curl --location --fail $SDK_URL/MacOSX${OSX_SDK}.sdk.tar.gz -o ${DEPENDS_DIR}/sdk-sources/MacOSX${OSX_SDK}.sdk.tar.gz
18+
OSX_SDK_BASENAME="Xcode-${XCODE_VERSION}-${XCODE_BUILD_ID}-extracted-SDK-with-libcxx-headers.tar.gz"
19+
OSX_SDK_PATH="${DEPENDS_DIR}/sdk-sources/${OSX_SDK_BASENAME}"
20+
21+
if [ -n "$XCODE_VERSION" ] && [ ! -f "$OSX_SDK_PATH" ]; then
22+
curl --location --fail "${SDK_URL}/${OSX_SDK_BASENAME}" -o "$OSX_SDK_PATH"
2023
fi
21-
if [ -n "$OSX_SDK" ] && [ -f ${DEPENDS_DIR}/sdk-sources/MacOSX${OSX_SDK}.sdk.tar.gz ]; then
22-
DOCKER_EXEC tar -C ${DEPENDS_DIR}/SDKs -xf ${DEPENDS_DIR}/sdk-sources/MacOSX${OSX_SDK}.sdk.tar.gz
24+
if [ -n "$XCODE_VERSION" ] && [ -f "$OSX_SDK_PATH" ]; then
25+
DOCKER_EXEC tar -C "${DEPENDS_DIR}/SDKs" -xf "$OSX_SDK_PATH"
2326
fi
2427
if [[ $HOST = *-mingw32 ]]; then
2528
DOCKER_EXEC update-alternatives --set $HOST-g++ \$\(which $HOST-g++-posix\)

contrib/gitian-build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def main():
209209
args.macos = 'm' in args.os
210210

211211
# Disable for MacOS if no SDK found
212-
if args.macos and not os.path.isfile('gitian-builder/inputs/MacOSX10.14.sdk.tar.gz'):
212+
if args.macos and not os.path.isfile('gitian-builder/inputs/Xcode-10.2.1-10E1001-extracted-SDK-with-libcxx-headers.tar.gz'):
213213
print('Cannot build for MacOS, SDK does not exist. Will build for other OSes')
214214
args.macos = False
215215

contrib/gitian-descriptors/gitian-osx.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ remotes:
3232
- "url": "https://github.com/bitcoin/bitcoin.git"
3333
"dir": "bitcoin"
3434
files:
35-
- "MacOSX10.14.sdk.tar.gz"
35+
- "Xcode-10.2.1-10E1001-extracted-SDK-with-libcxx-headers.tar.gz"
3636
script: |
3737
set -e -o pipefail
3838
@@ -90,7 +90,7 @@ script: |
9090
BASEPREFIX="${PWD}/depends"
9191
9292
mkdir -p ${BASEPREFIX}/SDKs
93-
tar -C ${BASEPREFIX}/SDKs -xf ${BUILD_DIR}/MacOSX10.14.sdk.tar.gz
93+
tar -C ${BASEPREFIX}/SDKs -xf ${BUILD_DIR}/Xcode-10.2.1-10E1001-extracted-SDK-with-libcxx-headers.tar.gz
9494
9595
# Build dependencies for each host
9696
for i in $HOSTS; do

depends/hosts/darwin.mk

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
OSX_MIN_VERSION=10.12
2-
OSX_SDK_VERSION=10.14
3-
OSX_SDK=$(SDK_PATH)/MacOSX$(OSX_SDK_VERSION).sdk
2+
OSX_SDK_VERSION=10.14.4
3+
XCODE_VERSION=10.2.1
4+
XCODE_BUILD_ID=10E1001
5+
OSX_SDK=$(SDK_PATH)/Xcode-$(XCODE_VERSION)-$(XCODE_BUILD_ID)-extracted-SDK-with-libcxx-headers
46
darwin_CC=clang -target $(host) -mmacosx-version-min=$(OSX_MIN_VERSION) --sysroot $(OSX_SDK)
57
darwin_CXX=clang++ -target $(host) -mmacosx-version-min=$(OSX_MIN_VERSION) --sysroot $(OSX_SDK) -stdlib=libc++
68

0 commit comments

Comments
 (0)