2014-08-13 01:13:04 +02:00
|
|
|
---
|
2019-10-04 20:25:15 +02:00
|
|
|
name: "dash-osx-20"
|
2014-08-13 01:13:04 +02:00
|
|
|
enable_cache: true
|
2019-03-16 13:24:26 +01:00
|
|
|
distro: "ubuntu"
|
2014-08-13 01:13:04 +02:00
|
|
|
suites:
|
partial merge #21036: gitian: Bump descriptors to Focal for 22.0
2ecaf214331b506ebfac4f4922241744357d652b gitian: remove execstack workaround for ricv64 & powerpc64le (fanquake)
5baff2b31840bdbc465f55b875aa6e9480288215 build: use focal in gitian descriptors (fanquake)
Pull request description:
This PR changes the gitian descriptors to use Ubuntu Focal (20.04), over Bionic (18.04), moving from GCC 7.5 to GCC 8.4 for native Linux builds, mingw-w64 GCC 7.3 to mingw-w64 GCC 9.3 for Windows builds, while continuing to use GCC 8.4 for all cross builds and Clang 8.0.0 for macOS builds.
It also drops the `-Wl,-z,noexecstack` workaround we've been using for the riscv64 and powerpc64le hosts, as it's no-longer needed. One new package is installed in the osx build, `libtinfo5`, as libtinfo5.so is required by our downloaded Clang 8.
A bump to Focal will at least be required if we want to update to a newer Qt (5.15, #19716) for 22.0, as we need a newer version of [`g++-mingw-w64`](https://packages.ubuntu.com/focal/g++-mingw-w64-x86-64) and the [`mingw-w64`](https://mingw-w64.org/doku.php) headers. This can still be done while continuing to use GCC 8.4 for Linux builds (see below), however the newer `g++-mingw-w64` will be based off of GCC 9.3.
**Some considerations**
GCC 9 is affected by #20005 "memcmp with constants that contain zero bytes are broken in GCC", and the newer `g++-mingw-w64` will be based off of GCC 9.3.
The `--no-*` variants of the Windows linker flags (i.e `--no-dynamicbase`) we use to [test our `security-check.py` script](https://github.com/bitcoin/bitcoin/blob/16b784d953365bb2d7ae65acd2b20a79ef8ba7b6/contrib/devtools/test-security-check.py#L53) are not patched into the mingw binutils in Focal (they have been re-added in Groovy (20.10)). This isn't currently an issue, however, we might add a call to `test-security-check` for Guix (#20980), and if we wanted to do the same for gitian, it would not work. Note how it's quite "easy" for us to apply the `--no-*` variant patch to our Guix build; it would be quite a bit harder to do in Gitian.
Gitian Builds @ 2ecaf214331b506ebfac4f4922241744357d652b
#### Linux
```bash
8882ea78486fbae4fac574b9089eb1107c6372d0dd7dfcda4f0f930576f9d6c1 bitcoin-2ecaf214331b-aarch64-linux-gnu-debug.tar.gz
50a9e30943b4eee5163edff3331241e745ff32a2c4463c21a6fdc5986e2d0383 bitcoin-2ecaf214331b-aarch64-linux-gnu.tar.gz
ec4e55a447fddf033fee33cd5f22bfeda3c3612f059194bcf6238859f7989d7a bitcoin-2ecaf214331b-arm-linux-gnueabihf-debug.tar.gz
444fe1b3b933c00bcbd4a9d86888cff3b61c1215b1debccd2843e842d1224777 bitcoin-2ecaf214331b-arm-linux-gnueabihf.tar.gz
88e486ff465980dc1a4aab9687d142ec6f727ed2c52cf539f69db2877dee83b2 bitcoin-2ecaf214331b-powerpc64-linux-gnu-debug.tar.gz
66144ac264c65cada9d86446e6026c85b04fb88198b8f41b42840f6031db3e6c bitcoin-2ecaf214331b-powerpc64-linux-gnu.tar.gz
34bcc13d78d929d575e34e77a6672f23ca7ea23230b28ec2eed563889352ba86 bitcoin-2ecaf214331b-powerpc64le-linux-gnu-debug.tar.gz
b4c5f959664f3063df4330edfe343c17120eb6b556ee1c15c4aeb2c1c54ffd49 bitcoin-2ecaf214331b-powerpc64le-linux-gnu.tar.gz
918fa72ab6f6ebce4e9663c93f72fe26651c260477cbb54749f7eb61438b5cc1 bitcoin-2ecaf214331b-riscv64-linux-gnu-debug.tar.gz
f704f9f8c053ffe37d854e2e81e0f4c0614c435dad7f5d82518c681b73a76ae6 bitcoin-2ecaf214331b-riscv64-linux-gnu.tar.gz
b59e3a62f1df9d79f30e916b3c9655f654036fe3a420040c53acc8dd9f4162c5 bitcoin-2ecaf214331b-x86_64-linux-gnu-debug.tar.gz
a4dc9ca877cc97544e65db11be38406d16f15d74fcdcd2318bb92474729bc60d bitcoin-2ecaf214331b-x86_64-linux-gnu.tar.gz
b40ba2d5da498330ade92a4ccebcceb1452b94c8ffeacb336f87e93b5c88d8af src/bitcoin-2ecaf214331b.tar.gz
af6ebc91147778e4e6705eade62608dde4d6e60522d79087fa9129bdb7c01199 bitcoin-core-linux-22-res.yml
```
#### Windows
```bash
121a3970a6911cb8c453b2ce37d03f6cbb43333e29db8fa516c68563fb367f43 bitcoin-2ecaf214331b-win-unsigned.tar.gz
6294e9efebe935092f9ba119dc60ad4094f18b51c4181324e54d3057524d6101 bitcoin-2ecaf214331b-win64-debug.zip
5b5a236b63e67f5f6c07ad9aa716aa7b72fb63722c96798b332c6d164738f9cf bitcoin-2ecaf214331b-win64-setup-unsigned.exe
c1fa5894c5e02a201637567c80b9bde9024f44673dcd06fd4d489c1709179279 bitcoin-2ecaf214331b-win64.zip
b40ba2d5da498330ade92a4ccebcceb1452b94c8ffeacb336f87e93b5c88d8af src/bitcoin-2ecaf214331b.tar.gz
665fd7eb61aed368150db58a254f15fb5efb51a4efa5abcc52571cb7a1a5de22 bitcoin-core-win-22-res.yml
```
#### macOS
```bash
6a1deae7662aa782baa82a42590f862c6bcdc4f4e38daa9b8c2a9eed1fbb5397 bitcoin-2ecaf214331b-osx-unsigned.dmg
1ee843266e84928a4323fa255c833528c2617a2c9fd2f98fb26ba19bbfc1227b bitcoin-2ecaf214331b-osx-unsigned.tar.gz
097b64dadc167d8e5b733421bf1541a40760ad952990f7cf3f35adc6ae2616d0 bitcoin-2ecaf214331b-osx64.tar.gz
b40ba2d5da498330ade92a4ccebcceb1452b94c8ffeacb336f87e93b5c88d8af src/bitcoin-2ecaf214331b.tar.gz
6e378fb543928e40c7119b96be6ff773d38506a9a888f8b02c7f1b8a0801a80e bitcoin-core-osx-22-res.yml
```
ACKs for top commit:
laanwj:
Build script changes review ACK 2ecaf214331b506ebfac4f4922241744357d652b
Tree-SHA512: 975d5830b787d2e08988f43cbc6e839294171c1d94c8219636308b05f9b77041421612ae67be24a631674670cfc9c2d96d8177f2b3158a78fc3deea19631febf
2021-02-08 10:42:08 +01:00
|
|
|
- "focal"
|
2014-08-13 01:13:04 +02:00
|
|
|
architectures:
|
2020-01-22 15:50:19 +01:00
|
|
|
- "amd64"
|
2016-06-09 11:14:12 +02:00
|
|
|
packages:
|
2016-02-04 13:41:58 +01:00
|
|
|
- "ca-certificates"
|
2016-02-27 07:09:18 +01:00
|
|
|
- "curl"
|
2014-12-31 08:55:17 +01:00
|
|
|
- "g++"
|
2018-08-13 22:21:42 +02:00
|
|
|
- "git"
|
2014-08-13 01:13:04 +02:00
|
|
|
- "pkg-config"
|
2015-10-29 07:29:48 +01:00
|
|
|
- "autoconf"
|
2014-08-13 01:13:04 +02:00
|
|
|
- "libtool"
|
|
|
|
- "automake"
|
|
|
|
- "faketime"
|
|
|
|
- "bsdmainutils"
|
|
|
|
- "libcap-dev"
|
|
|
|
- "libz-dev"
|
|
|
|
- "libbz2-dev"
|
2018-07-16 14:49:23 +02:00
|
|
|
- "python3"
|
|
|
|
- "python3-dev"
|
|
|
|
- "python3-setuptools"
|
2023-05-13 19:44:39 +02:00
|
|
|
- "python3-pip"
|
2016-02-04 13:41:58 +01:00
|
|
|
- "fonts-tuffy"
|
2019-12-12 11:47:04 +01:00
|
|
|
- "ccache"
|
2021-09-06 01:49:35 +02:00
|
|
|
- "cmake"
|
2020-09-26 03:18:01 +02:00
|
|
|
- "xorriso"
|
partial merge #21036: gitian: Bump descriptors to Focal for 22.0
2ecaf214331b506ebfac4f4922241744357d652b gitian: remove execstack workaround for ricv64 & powerpc64le (fanquake)
5baff2b31840bdbc465f55b875aa6e9480288215 build: use focal in gitian descriptors (fanquake)
Pull request description:
This PR changes the gitian descriptors to use Ubuntu Focal (20.04), over Bionic (18.04), moving from GCC 7.5 to GCC 8.4 for native Linux builds, mingw-w64 GCC 7.3 to mingw-w64 GCC 9.3 for Windows builds, while continuing to use GCC 8.4 for all cross builds and Clang 8.0.0 for macOS builds.
It also drops the `-Wl,-z,noexecstack` workaround we've been using for the riscv64 and powerpc64le hosts, as it's no-longer needed. One new package is installed in the osx build, `libtinfo5`, as libtinfo5.so is required by our downloaded Clang 8.
A bump to Focal will at least be required if we want to update to a newer Qt (5.15, #19716) for 22.0, as we need a newer version of [`g++-mingw-w64`](https://packages.ubuntu.com/focal/g++-mingw-w64-x86-64) and the [`mingw-w64`](https://mingw-w64.org/doku.php) headers. This can still be done while continuing to use GCC 8.4 for Linux builds (see below), however the newer `g++-mingw-w64` will be based off of GCC 9.3.
**Some considerations**
GCC 9 is affected by #20005 "memcmp with constants that contain zero bytes are broken in GCC", and the newer `g++-mingw-w64` will be based off of GCC 9.3.
The `--no-*` variants of the Windows linker flags (i.e `--no-dynamicbase`) we use to [test our `security-check.py` script](https://github.com/bitcoin/bitcoin/blob/16b784d953365bb2d7ae65acd2b20a79ef8ba7b6/contrib/devtools/test-security-check.py#L53) are not patched into the mingw binutils in Focal (they have been re-added in Groovy (20.10)). This isn't currently an issue, however, we might add a call to `test-security-check` for Guix (#20980), and if we wanted to do the same for gitian, it would not work. Note how it's quite "easy" for us to apply the `--no-*` variant patch to our Guix build; it would be quite a bit harder to do in Gitian.
Gitian Builds @ 2ecaf214331b506ebfac4f4922241744357d652b
#### Linux
```bash
8882ea78486fbae4fac574b9089eb1107c6372d0dd7dfcda4f0f930576f9d6c1 bitcoin-2ecaf214331b-aarch64-linux-gnu-debug.tar.gz
50a9e30943b4eee5163edff3331241e745ff32a2c4463c21a6fdc5986e2d0383 bitcoin-2ecaf214331b-aarch64-linux-gnu.tar.gz
ec4e55a447fddf033fee33cd5f22bfeda3c3612f059194bcf6238859f7989d7a bitcoin-2ecaf214331b-arm-linux-gnueabihf-debug.tar.gz
444fe1b3b933c00bcbd4a9d86888cff3b61c1215b1debccd2843e842d1224777 bitcoin-2ecaf214331b-arm-linux-gnueabihf.tar.gz
88e486ff465980dc1a4aab9687d142ec6f727ed2c52cf539f69db2877dee83b2 bitcoin-2ecaf214331b-powerpc64-linux-gnu-debug.tar.gz
66144ac264c65cada9d86446e6026c85b04fb88198b8f41b42840f6031db3e6c bitcoin-2ecaf214331b-powerpc64-linux-gnu.tar.gz
34bcc13d78d929d575e34e77a6672f23ca7ea23230b28ec2eed563889352ba86 bitcoin-2ecaf214331b-powerpc64le-linux-gnu-debug.tar.gz
b4c5f959664f3063df4330edfe343c17120eb6b556ee1c15c4aeb2c1c54ffd49 bitcoin-2ecaf214331b-powerpc64le-linux-gnu.tar.gz
918fa72ab6f6ebce4e9663c93f72fe26651c260477cbb54749f7eb61438b5cc1 bitcoin-2ecaf214331b-riscv64-linux-gnu-debug.tar.gz
f704f9f8c053ffe37d854e2e81e0f4c0614c435dad7f5d82518c681b73a76ae6 bitcoin-2ecaf214331b-riscv64-linux-gnu.tar.gz
b59e3a62f1df9d79f30e916b3c9655f654036fe3a420040c53acc8dd9f4162c5 bitcoin-2ecaf214331b-x86_64-linux-gnu-debug.tar.gz
a4dc9ca877cc97544e65db11be38406d16f15d74fcdcd2318bb92474729bc60d bitcoin-2ecaf214331b-x86_64-linux-gnu.tar.gz
b40ba2d5da498330ade92a4ccebcceb1452b94c8ffeacb336f87e93b5c88d8af src/bitcoin-2ecaf214331b.tar.gz
af6ebc91147778e4e6705eade62608dde4d6e60522d79087fa9129bdb7c01199 bitcoin-core-linux-22-res.yml
```
#### Windows
```bash
121a3970a6911cb8c453b2ce37d03f6cbb43333e29db8fa516c68563fb367f43 bitcoin-2ecaf214331b-win-unsigned.tar.gz
6294e9efebe935092f9ba119dc60ad4094f18b51c4181324e54d3057524d6101 bitcoin-2ecaf214331b-win64-debug.zip
5b5a236b63e67f5f6c07ad9aa716aa7b72fb63722c96798b332c6d164738f9cf bitcoin-2ecaf214331b-win64-setup-unsigned.exe
c1fa5894c5e02a201637567c80b9bde9024f44673dcd06fd4d489c1709179279 bitcoin-2ecaf214331b-win64.zip
b40ba2d5da498330ade92a4ccebcceb1452b94c8ffeacb336f87e93b5c88d8af src/bitcoin-2ecaf214331b.tar.gz
665fd7eb61aed368150db58a254f15fb5efb51a4efa5abcc52571cb7a1a5de22 bitcoin-core-win-22-res.yml
```
#### macOS
```bash
6a1deae7662aa782baa82a42590f862c6bcdc4f4e38daa9b8c2a9eed1fbb5397 bitcoin-2ecaf214331b-osx-unsigned.dmg
1ee843266e84928a4323fa255c833528c2617a2c9fd2f98fb26ba19bbfc1227b bitcoin-2ecaf214331b-osx-unsigned.tar.gz
097b64dadc167d8e5b733421bf1541a40760ad952990f7cf3f35adc6ae2616d0 bitcoin-2ecaf214331b-osx64.tar.gz
b40ba2d5da498330ade92a4ccebcceb1452b94c8ffeacb336f87e93b5c88d8af src/bitcoin-2ecaf214331b.tar.gz
6e378fb543928e40c7119b96be6ff773d38506a9a888f8b02c7f1b8a0801a80e bitcoin-core-osx-22-res.yml
```
ACKs for top commit:
laanwj:
Build script changes review ACK 2ecaf214331b506ebfac4f4922241744357d652b
Tree-SHA512: 975d5830b787d2e08988f43cbc6e839294171c1d94c8219636308b05f9b77041421612ae67be24a631674670cfc9c2d96d8177f2b3158a78fc3deea19631febf
2021-02-08 10:42:08 +01:00
|
|
|
- "libtinfo5"
|
2014-08-13 01:13:04 +02:00
|
|
|
remotes:
|
2015-04-05 23:56:58 +02:00
|
|
|
- "url": "https://github.com/dashpay/dash.git"
|
|
|
|
"dir": "dash"
|
2014-08-13 01:13:04 +02:00
|
|
|
files:
|
2021-05-03 08:45:08 +02:00
|
|
|
- "Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers.tar.gz"
|
2014-08-13 01:13:04 +02:00
|
|
|
script: |
|
2019-03-09 06:45:09 +01:00
|
|
|
set -e -o pipefail
|
|
|
|
|
2014-08-13 01:13:04 +02:00
|
|
|
WRAP_DIR=$HOME/wrapped
|
2023-06-19 15:22:31 +02:00
|
|
|
HOSTS="x86_64-apple-darwin"
|
2021-02-09 07:18:48 +01:00
|
|
|
CONFIGFLAGS="--enable-reduce-exports --disable-miner --disable-bench --disable-gui-tests --disable-fuzz-binary XORRISOFS=${WRAP_DIR}/xorrisofs DMG=${WRAP_DIR}/dmg --enable-crash-hooks"
|
2014-08-13 01:13:04 +02:00
|
|
|
FAKETIME_HOST_PROGS=""
|
2020-09-26 03:18:01 +02:00
|
|
|
FAKETIME_PROGS="ar ranlib date dmg xorrisofs"
|
2014-08-13 01:13:04 +02:00
|
|
|
|
|
|
|
export TZ="UTC"
|
2021-08-25 17:01:44 +02:00
|
|
|
export BUILD_DIR="$PWD"
|
2014-08-13 01:13:04 +02:00
|
|
|
mkdir -p ${WRAP_DIR}
|
|
|
|
if test -n "$GBUILD_CACHE_ENABLED"; then
|
|
|
|
export SOURCES_PATH=${GBUILD_COMMON_CACHE}
|
2018-07-20 15:33:02 +02:00
|
|
|
export BASE_CACHE=${GBUILD_PACKAGE_CACHE}/depends
|
2014-08-13 01:13:04 +02:00
|
|
|
mkdir -p ${BASE_CACHE} ${SOURCES_PATH}
|
2018-07-20 15:33:02 +02:00
|
|
|
|
|
|
|
# Setup ccache to use correct cache directories
|
|
|
|
CONFIGFLAGS="${CONFIGFLAGS} --enable-ccache"
|
|
|
|
export CCACHE_DIR=${GBUILD_PACKAGE_CACHE}/ccache
|
2018-11-19 07:31:13 +01:00
|
|
|
if [ -f ${GBUILD_PACKAGE_CACHE}/ccache.tar ]; then
|
2018-07-20 15:33:02 +02:00
|
|
|
pushd ${GBUILD_PACKAGE_CACHE}
|
2018-11-19 07:31:13 +01:00
|
|
|
tar xf ccache.tar
|
|
|
|
rm ccache.tar
|
2018-07-20 15:33:02 +02:00
|
|
|
popd
|
|
|
|
fi
|
2018-11-19 07:31:13 +01:00
|
|
|
# instead of compressing ccache.tar, we let ccache handle it by itself
|
|
|
|
# Otherwise we end up uncompressing/compressing a lot of cache files which we actually never use
|
|
|
|
export CCACHE_COMPRESS=1
|
2018-07-20 15:33:02 +02:00
|
|
|
else
|
|
|
|
CONFIGFLAGS="${CONFIGFLAGS} --disable-ccache"
|
2014-08-13 01:13:04 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
export ZERO_AR_DATE=1
|
|
|
|
|
2019-11-13 10:20:25 +01:00
|
|
|
# Use $LIB in LD_PRELOAD to avoid hardcoding the dir (See `man ld.so`)
|
2016-06-09 11:14:12 +02:00
|
|
|
function create_global_faketime_wrappers {
|
2014-08-13 01:13:04 +02:00
|
|
|
for prog in ${FAKETIME_PROGS}; do
|
2018-06-24 16:41:58 +02:00
|
|
|
echo '#!/usr/bin/env bash' > ${WRAP_DIR}/${prog}
|
2014-08-13 01:13:04 +02:00
|
|
|
echo "REAL=\`which -a ${prog} | grep -v ${WRAP_DIR}/${prog} | head -1\`" >> ${WRAP_DIR}/${prog}
|
2019-11-13 10:20:25 +01:00
|
|
|
echo "export LD_PRELOAD='/usr/\$LIB/faketime/libfaketime.so.1'" >> ${WRAP_DIR}/${prog}
|
2016-06-09 11:14:12 +02:00
|
|
|
echo "export FAKETIME=\"$1\"" >> ${WRAP_DIR}/${prog}
|
2023-05-29 18:14:59 +02:00
|
|
|
echo "exec \"\$REAL\" \"\$@\"" >> $WRAP_DIR/${prog}
|
2014-08-13 01:13:04 +02:00
|
|
|
chmod +x ${WRAP_DIR}/${prog}
|
2018-07-20 15:33:02 +02:00
|
|
|
touch -d "${REFERENCE_DATETIME}" ${WRAP_DIR}/${prog}
|
2014-08-13 01:13:04 +02:00
|
|
|
done
|
2016-06-09 11:14:12 +02:00
|
|
|
}
|
2014-08-13 01:13:04 +02:00
|
|
|
|
2016-06-09 11:14:12 +02:00
|
|
|
function create_per-host_faketime_wrappers {
|
2014-08-13 01:13:04 +02:00
|
|
|
for i in $HOSTS; do
|
|
|
|
for prog in ${FAKETIME_HOST_PROGS}; do
|
2018-06-24 16:41:58 +02:00
|
|
|
echo '#!/usr/bin/env bash' > ${WRAP_DIR}/${i}-${prog}
|
2014-08-13 01:13:04 +02:00
|
|
|
echo "REAL=\`which -a ${i}-${prog} | grep -v ${WRAP_DIR}/${i}-${prog} | head -1\`" >> ${WRAP_DIR}/${i}-${prog}
|
2019-11-13 10:20:25 +01:00
|
|
|
echo "export LD_PRELOAD='/usr/\$LIB/faketime/libfaketime.so.1'" >> ${WRAP_DIR}/${i}-${prog}
|
2016-06-09 11:14:12 +02:00
|
|
|
echo "export FAKETIME=\"$1\"" >> ${WRAP_DIR}/${i}-${prog}
|
2023-05-29 18:14:59 +02:00
|
|
|
echo "exec \"\$REAL\" \"\$@\"" >> $WRAP_DIR/${i}-${prog}
|
2014-08-13 01:13:04 +02:00
|
|
|
chmod +x ${WRAP_DIR}/${i}-${prog}
|
2018-07-20 15:33:02 +02:00
|
|
|
touch -d "${REFERENCE_DATETIME}" ${WRAP_DIR}/${i}-${prog}
|
2014-08-13 01:13:04 +02:00
|
|
|
done
|
|
|
|
done
|
2016-06-09 11:14:12 +02:00
|
|
|
}
|
|
|
|
|
2023-05-13 17:27:38 +02:00
|
|
|
pip3 install lief==0.12.0
|
2023-05-13 19:44:39 +02:00
|
|
|
|
2016-06-09 11:14:12 +02:00
|
|
|
# Faketime for depends so intermediate results are comparable
|
2016-06-14 09:13:07 +02:00
|
|
|
export PATH_orig=${PATH}
|
2016-06-09 11:14:12 +02:00
|
|
|
create_global_faketime_wrappers "2000-01-01 12:00:00"
|
|
|
|
create_per-host_faketime_wrappers "2000-01-01 12:00:00"
|
2016-06-14 09:13:07 +02:00
|
|
|
export PATH=${WRAP_DIR}:${PATH}
|
2016-06-09 11:14:12 +02:00
|
|
|
|
2015-04-05 23:56:58 +02:00
|
|
|
cd dash
|
2021-08-25 17:01:44 +02:00
|
|
|
BASEPREFIX="${PWD}/depends"
|
2014-08-13 01:13:04 +02:00
|
|
|
|
|
|
|
mkdir -p ${BASEPREFIX}/SDKs
|
2021-05-03 08:45:08 +02:00
|
|
|
tar -C ${BASEPREFIX}/SDKs -xf ${BUILD_DIR}/Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers.tar.gz
|
2014-08-13 01:13:04 +02:00
|
|
|
|
|
|
|
# Build dependencies for each host
|
|
|
|
for i in $HOSTS; do
|
|
|
|
make ${MAKEOPTS} -C ${BASEPREFIX} HOST="${i}"
|
|
|
|
done
|
|
|
|
|
2016-06-09 11:14:12 +02:00
|
|
|
# Faketime for binaries
|
2016-06-14 09:13:07 +02:00
|
|
|
export PATH=${PATH_orig}
|
2016-06-09 11:14:12 +02:00
|
|
|
create_global_faketime_wrappers "${REFERENCE_DATETIME}"
|
|
|
|
create_per-host_faketime_wrappers "${REFERENCE_DATETIME}"
|
2016-06-14 09:13:07 +02:00
|
|
|
export PATH=${WRAP_DIR}:${PATH}
|
2016-06-09 11:14:12 +02:00
|
|
|
|
2020-05-06 06:51:18 +02:00
|
|
|
# Define DISTNAME variable.
|
|
|
|
# shellcheck source=contrib/gitian-descriptors/assign_DISTNAME
|
|
|
|
source contrib/gitian-descriptors/assign_DISTNAME
|
|
|
|
|
|
|
|
GIT_ARCHIVE="${OUTDIR}/src/${DISTNAME}.tar.gz"
|
|
|
|
|
|
|
|
# Create the source tarball
|
|
|
|
mkdir -p "$(dirname "$GIT_ARCHIVE")"
|
2020-11-09 15:02:45 +01:00
|
|
|
git archive --prefix="${DISTNAME}/" --output="$GIT_ARCHIVE" HEAD
|
2017-08-21 08:58:58 +02:00
|
|
|
|
2014-08-13 01:13:04 +02:00
|
|
|
ORIGPATH="$PATH"
|
2020-04-28 10:28:34 +02:00
|
|
|
# Extract the git archive into a dir for each host and build
|
2014-08-13 01:13:04 +02:00
|
|
|
for i in ${HOSTS}; do
|
|
|
|
export PATH=${BASEPREFIX}/${i}/native/bin:${ORIGPATH}
|
|
|
|
mkdir -p distsrc-${i}
|
|
|
|
cd distsrc-${i}
|
2021-08-25 17:01:44 +02:00
|
|
|
INSTALLPATH="${PWD}/installed/${DISTNAME}"
|
2014-11-26 00:36:55 +01:00
|
|
|
mkdir -p ${INSTALLPATH}
|
2020-11-09 15:02:45 +01:00
|
|
|
tar --strip-components=1 -xf "${GIT_ARCHIVE}"
|
2017-08-21 08:58:58 +02:00
|
|
|
|
2020-04-28 10:28:34 +02:00
|
|
|
./autogen.sh
|
2018-07-20 15:33:02 +02:00
|
|
|
CONFIG_SITE=${BASEPREFIX}/${i}/share/config.site ./configure --prefix=/ --disable-maintainer-mode --disable-dependency-tracking ${CONFIGFLAGS}
|
2014-08-13 01:13:04 +02:00
|
|
|
make ${MAKEOPTS}
|
2019-07-02 06:16:11 +02:00
|
|
|
make -C src osx_debug
|
2020-01-02 12:44:32 +01:00
|
|
|
make ${MAKEOPTS} -C src check-security
|
2020-01-22 20:32:35 +01:00
|
|
|
make ${MAKEOPTS} -C src check-symbols
|
2016-06-07 20:51:51 +02:00
|
|
|
make install-strip DESTDIR=${INSTALLPATH}
|
2014-11-22 01:26:45 +01:00
|
|
|
|
2016-02-04 13:41:58 +01:00
|
|
|
make osx_volname
|
2014-11-22 01:26:45 +01:00
|
|
|
make deploydir
|
|
|
|
mkdir -p unsigned-app-${i}
|
2016-02-04 13:41:58 +01:00
|
|
|
cp osx_volname unsigned-app-${i}/
|
2014-11-22 01:26:45 +01:00
|
|
|
cp contrib/macdeploy/detached-sig-apply.sh unsigned-app-${i}
|
|
|
|
cp contrib/macdeploy/detached-sig-create.sh unsigned-app-${i}
|
2020-09-26 03:18:01 +02:00
|
|
|
cp ${BASEPREFIX}/${i}/native/bin/dmg unsigned-app-${i}
|
2014-11-22 01:26:45 +01:00
|
|
|
mv dist unsigned-app-${i}
|
|
|
|
pushd unsigned-app-${i}
|
2019-06-11 18:09:55 +02:00
|
|
|
find . | sort | tar --mtime="$REFERENCE_DATETIME" --no-recursion --mode='u+rw,go+r-w,a+X' --owner=0 --group=0 -c -T - | gzip -9n > ${OUTDIR}/${DISTNAME}-osx-unsigned.tar.gz
|
2014-11-22 01:26:45 +01:00
|
|
|
popd
|
|
|
|
|
2020-09-26 03:18:01 +02:00
|
|
|
make deploy OSX_DMG="${OUTDIR}/${DISTNAME}-osx-unsigned.dmg"
|
2014-11-26 00:36:55 +01:00
|
|
|
|
|
|
|
cd installed
|
|
|
|
find . -name "lib*.la" -delete
|
|
|
|
find . -name "lib*.a" -delete
|
|
|
|
rm -rf ${DISTNAME}/lib/pkgconfig
|
2021-10-10 23:41:20 +02:00
|
|
|
find .. -name "*.dSYM" -exec cp -ra {} ${DISTNAME}/bin \;
|
2019-06-11 18:09:55 +02:00
|
|
|
find ${DISTNAME} -not -path '*.dSYM*' | sort | tar --mtime="$REFERENCE_DATETIME" --no-recursion --mode='u+rw,go+r-w,a+X' --owner=0 --group=0 -c -T - | gzip -9n > ${OUTDIR}/${DISTNAME}-${i}.tar.gz
|
|
|
|
find ${DISTNAME} -path '*.dSYM*' | sort | tar --mtime="$REFERENCE_DATETIME" --no-recursion --mode='u+rw,go+r-w,a+X' --owner=0 --group=0 -c -T - | gzip -9n > ${OUTDIR}/${DISTNAME}-${i}-debug.tar.gz
|
2014-11-26 00:36:55 +01:00
|
|
|
cd ../../
|
2014-08-13 01:13:04 +02:00
|
|
|
done
|
2023-06-19 15:22:31 +02:00
|
|
|
mv ${OUTDIR}/${DISTNAME}-x86_64-apple-darwin.tar.gz ${OUTDIR}/${DISTNAME}-osx64.tar.gz
|
|
|
|
mv ${OUTDIR}/${DISTNAME}-x86_64-apple-darwin-debug.tar.gz ${OUTDIR}/${DISTNAME}-osx64-debug.tar.gz
|
2018-07-20 15:33:02 +02:00
|
|
|
|
|
|
|
# Compress ccache (otherwise the assert file will get too huge)
|
|
|
|
if [ "$CCACHE_DIR" != "" ]; then
|
|
|
|
pushd ${GBUILD_PACKAGE_CACHE}
|
2018-11-19 07:31:13 +01:00
|
|
|
tar cf ccache.tar ccache
|
2018-07-20 15:33:02 +02:00
|
|
|
rm -rf ccache
|
|
|
|
popd
|
|
|
|
fi
|