Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: fix make deploy for arm64-darwin #21658

Merged
merged 1 commit into from
Apr 29, 2021
Merged

Conversation

jla3378
Copy link
Contributor

@jla3378 jla3378 commented Apr 11, 2021

Fix make deploy for arm64-darwin

Accidentally closed the PR

Fix make deploy for arm64-darwin
@fanquake
Copy link
Member

Guix builds:

# find guix-build-$(git rev-parse --short=12 HEAD)/output/ -type f -print0 | env LC_ALL=C sort -z | xargs -r0 sha256sum
06a9f6c7511591cfbdecdfc38542b7a7a82a96bd4505c5466f66edc6dbbbd7ef  guix-build-b353633bf488/output/dist-archive/bitcoin-b353633bf488.tar.gz
8d9d9d95d2610f62281dfe9aa9f052ad40928c1190795282161bdfde534cae01  guix-build-b353633bf488/output/x86_64-apple-darwin18/bitcoin-b353633bf488-osx-unsigned.dmg
0967d22eed7cf16fe43d8644cbb464c6a8dddfa430edbc013cbc55d360077a4f  guix-build-b353633bf488/output/x86_64-apple-darwin18/bitcoin-b353633bf488-osx-unsigned.tar.gz
8d576325fd4a1ed91f6600ca5ab9b115cd3b17f081847889a3dcbd2018fd94ed  guix-build-b353633bf488/output/x86_64-apple-darwin18/bitcoin-b353633bf488-osx64.tar.gz

Gitian builds:

# macOS:
Generating report
faa90ad8a2074514f21f320e6c174fa0878386b6192d655690de793dfe011f02  bitcoin-b353633bf488-osx-unsigned.dmg
6edf7ad125d358de3630a0c9fb9173713ceb87ff9a2832866a94ecee8da7e4fa  bitcoin-b353633bf488-osx-unsigned.tar.gz
34d03ff373e326425984dc012d55e7f00bb1fa7b71bf054d63f0c9aea241a60f  bitcoin-b353633bf488-osx64.tar.gz
06a9f6c7511591cfbdecdfc38542b7a7a82a96bd4505c5466f66edc6dbbbd7ef  src/bitcoin-b353633bf488.tar.gz
ed872033b8fc603d1fb97174e0b30962c5c11d519bf88be765326d35c532d59b  bitcoin-core-osx-22-res.yml
Done.

Copy link
Member

@jarolrod jarolrod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't test. Here are my GUIX hashes, they line up with fanquake:

find guix-build-$(git rev-parse --short=12 HEAD)/output/ -type f -print0 | env LC_ALL=C sort -z | xargs -r0 sha256sum

06a9f6c7511591cfbdecdfc38542b7a7a82a96bd4505c5466f66edc6dbbbd7ef  guix-build-b353633bf488/output/dist-archive/bitcoin-b353633bf488.tar.gz
8d9d9d95d2610f62281dfe9aa9f052ad40928c1190795282161bdfde534cae01  guix-build-b353633bf488/output/x86_64-apple-darwin18/bitcoin-b353633bf488-osx-unsigned.dmg
0967d22eed7cf16fe43d8644cbb464c6a8dddfa430edbc013cbc55d360077a4f  guix-build-b353633bf488/output/x86_64-apple-darwin18/bitcoin-b353633bf488-osx-unsigned.tar.gz
8d576325fd4a1ed91f6600ca5ab9b115cd3b17f081847889a3dcbd2018fd94ed  guix-build-b353633bf488/output/x86_64-apple-darwin18/bitcoin-b353633bf488-osx64.tar.gz

@DrahtBot
Copy link
Contributor

Gitian builds

File commit f6c44e9
(master)
commit 61fe0b6
(master and this pull)
bitcoin-core-linux-22-res.yml 4bde39f4a9c5d3f8... f7d8f5268c601ee4...
bitcoin-core-osx-22-res.yml fdaad9261309b708... 1461b66cfe26c978...
bitcoin-core-win-22-res.yml 015f8b2b72dcde10... 2abb8ef2a07c8470...
*-aarch64-linux-gnu-debug.tar.gz e08fe6fe65466112... 4ac5edd4731179dd...
*-aarch64-linux-gnu.tar.gz f48b2b5309f1c3a3... b834ebc53b4e84cd...
*-arm-linux-gnueabihf-debug.tar.gz 35fe91e395f2d230... 8b2013f01d6a2682...
*-arm-linux-gnueabihf.tar.gz 45005857a3bd691a... 19e9eeb44c83d1f3...
*-osx-unsigned.dmg 09d380d07749ff9c... 31750f2d30b37fcd...
*-osx64.tar.gz 5968956dc4009cd0... a65ba5a4a5a451b6...
*-powerpc64-linux-gnu-debug.tar.gz cd71ab2a1e7d8a99... 6e33846c95256d03...
*-powerpc64-linux-gnu.tar.gz 429b7db2e726e470... 2b107ce5a25964fa...
*-powerpc64le-linux-gnu-debug.tar.gz f08e0b898b5c7244... 32a9d817bc446739...
*-powerpc64le-linux-gnu.tar.gz 7a77cde691b30324... b22f8fb92c2190ec...
*-riscv64-linux-gnu-debug.tar.gz 8007aa6008748192... 8bf4133270574a66...
*-riscv64-linux-gnu.tar.gz 12218bc8e9b1c47d... 70378b0a122ec834...
*-win64-debug.zip bc970a44db8638f3... ee475a2670af6836...
*-win64-setup-unsigned.exe 119dcefd14b00990... 0e538c146b8c463f...
*-win64.zip d51a56ec82a984db... 6c6238de47b466be...
*-x86_64-linux-gnu-debug.tar.gz c1d485cd4572321b... d6427514bf557b93...
*-x86_64-linux-gnu.tar.gz ba25e0e37924f445... a752437822f05752...
*.tar.gz b9d0e4bced2fdb2d... e71fd585458f6708...
linux-build.log 0d30bc9373f975e3... 8898aec49fe11626...
osx-build.log 0fdbf2fe14aa7b1a... f064005ed963eb49...
win-build.log 8e6ea410b6745d04... ee8f4ad7064bdb53...
bitcoin-core-linux-22-res.yml.diff 481d61d35a1d58f7...
bitcoin-core-osx-22-res.yml.diff 28ce7ff7dd73a03d...
bitcoin-core-win-22-res.yml.diff 5481524186e54be8...
linux-build.log.diff adef61314ae1a074...
osx-build.log.diff 9dff85c4dc062578...
win-build.log.diff 6d52c550a5429d74...

Copy link
Contributor

@promag promag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested ACK b353633.

The mac_alias fix is dmgbuild/mac_alias@2f96a9b which is in release 2.2.0.

Without this make deploy fails:

Traceback (most recent call last):
  File "/Users/joao/Projects/bitcoin/./contrib/macdeploy/macdeployqtplus", line 22, in <module>
    from ds_store import DSStore
  File "/Users/joao/Projects/bitcoin/depends/arm-apple-darwin20.3.0/native/lib/python3/dist-packages/ds_store/__init__.py", line 1, in <module>
    from .store import DSStore, DSStoreEntry
  File "/Users/joao/Projects/bitcoin/depends/arm-apple-darwin20.3.0/native/lib/python3/dist-packages/ds_store/store.py", line 8, in <module>
    import mac_alias
  File "/Users/joao/Projects/bitcoin/depends/arm-apple-darwin20.3.0/native/lib/python3/dist-packages/mac_alias/__init__.py", line 1, in <module>
    from .alias import *
  File "/Users/joao/Projects/bitcoin/depends/arm-apple-darwin20.3.0/native/lib/python3/dist-packages/mac_alias/alias.py", line 16, in <module>
    from . import osx
  File "/Users/joao/Projects/bitcoin/depends/arm-apple-darwin20.3.0/native/lib/python3/dist-packages/mac_alias/osx.py", line 424, in <module>
    _statfs = libc['statfs$INODE64']
  File "/opt/homebrew/Cellar/python@3.9/3.9.4/Frameworks/Python.framework/Versions/3.9/lib/python3.9/ctypes/__init__.py", line 392, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: dlsym(0x100a45810, statfs$INODE64): symbol not found
make: *** [Bitcoin-Core.dmg] Error 1

@fanquake fanquake merged commit 2cbb4ab into bitcoin:master Apr 29, 2021
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Apr 29, 2021
b353633 build: mac_alias 2.2.0 (sgulls)

Pull request description:

  Fix make deploy for arm64-darwin

  Accidentally [closed](bitcoin#21555) the PR

ACKs for top commit:
  promag:
    Tested ACK b353633.

Tree-SHA512: 08043792d63894b6738ea93d076cecace1d8b30a623b944170a34492c3838269da87e09878164c760cf321663fb72641a7295070a847ad67d91fc9970ebe5c6a
barton2526 added a commit to barton2526/Gridcoin-Research that referenced this pull request Jun 10, 2021
barton2526 added a commit to barton2526/Gridcoin-Research that referenced this pull request Jun 10, 2021
random-zebra added a commit to random-zebra/PIVX that referenced this pull request Jun 11, 2021
a68c7d5 depends: mac_alias 2.2.0 (fanquake)
d8e2baf doc: Add explicit macdeployqtplus dependencies install step (Hennadii Stepanov)
013305d macdeploy: use Python 3.6 (fanquake)
faf77c3 macdeploy: remove runHDIUtil in favor of directly calling subprocess.run (fanquake)
8bcfd58 macdeploy: remove existing PIVX-Core.dmg if present (fanquake)
023d3ca macdeploy: move qt_conf to where it's used (fanquake)
7cdb5bb macdeploy: consolidate .DS_Store generation (fanquake)
4da04d7 macdeploy: assume plistlib is available (fanquake)
56ab77a macdeploy: have a single level of logging output (fanquake)
d111cdf macdeploy: remove add-resources argument (fanquake)
4312410 macdeploy: remove codesigning argument (fanquake)
c2ee635 build: automatically determine macOS translations (fanquake)
1c44ecf scripts: filter more qt plugins we don't use in macdeployqtplus (fanquake)
c854f78 scripts: misc cleanups in macdeployqtplus (fanquake)
a3873ea scripts: use format() in macdeployqtplus (fanquake)
a65bea5 scripts: add type annotations to macdeployqtplus (fanquake)
ba179e5 build: Drop macports support (Ben Woosley)

Pull request description:

  This is a companion to PIVX-Project#2272 that focuses on on the `.dmg` creation aspect of macOS builds (ie, `make deploy`). The following upstream PRs are backported here:
   - bitcoin#15175
   - bitcoin#16477
   - bitcoin#20422
   - bitcoin#20890
   - bitcoin#21658

  Also worth mentioning: This drops support for MacPorts entirely, which has been antiquated and un-maintained for quite some time, and never actually used by any PIVX macOS build doc.

ACKs for top commit:
  furszy:
    Tested using depends, ACK a68c7d5.
  random-zebra:
    utACK a68c7d5 and merging...

Tree-SHA512: 3e9fa81a905ca3e90f07ff1213ec69dd1220a19a6a215f256ab67f2594476dc95e8fe88f15a1c9f3314b1757a7a2e5d8e6d7a790d85c117bf4236a3833757430
gwillen pushed a commit to ElementsProject/elements that referenced this pull request Jun 1, 2022
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Aug 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants