Skip to content

Conversation

hebasto
Copy link
Member

@hebasto hebasto commented Mar 21, 2021

We do not use any macOS CoreWLAN Framework stuff.

Changes in Qt Configure summary with HOST=x86_64-apple-darwin18:

--- wlan-master/summary	2021-03-22 00:26:04.377387806 +0200
+++ wlan-pr/summary	2021-03-22 00:37:07.060997990 +0200
@@ -49,7 +49,7 @@
     slog2 ................................ no
   Using system PCRE2 ..................... no
 Qt Network:
-  CoreWLan ............................... yes
+  CoreWLan ............................... no
   getifaddrs() ........................... yes
   IPv6 ifname ............................ yes
   libproxy ............................... no

@hebasto hebasto changed the title build: Do not build unused CoreWLAN stuff in depends for macOS build: Do not opt-in unused CoreWLAN stuff in depends for macOS Mar 21, 2021
@hebasto
Copy link
Member Author

hebasto commented Mar 22, 2021

Gitian build:

Generating report
8b390310dc632a6da8325bf9128097c108abab69c3f2eac3870128f58c518ed7  bitcoin-810b1310d617-osx-unsigned.dmg
4dc59bd29edccbca1b1d4ab6f206997d8afbc2304fc7f939d1047684c47b89c2  bitcoin-810b1310d617-osx-unsigned.tar.gz
64e63902ef654b89d1039068a2605b90a16d8a1d07bfa233c52ea75627d04e70  bitcoin-810b1310d617-osx64.tar.gz
8b1865ec89b25183c6fb7a7b4bdaf5c35d0645235d409badce6cb2e38364fb13  src/bitcoin-810b1310d617.tar.gz
f58d7bdf97840821ba1800079b87e8013266bbc08bfafcca678c4c4da3b424bd  bitcoin-core-osx-22-res.yml
Done.

Guix build:

$ find output -type f -name *$(git rev-parse --short HEAD)*.* -print0 | env LC_ALL=C sort -z | xargs -r0 sha256sum
53f9ccf344e82e5bd76fa1ddb84be659f026ee267741f480869ae97dc103518c  output/bitcoin-810b1310d617-osx-unsigned.dmg
be07fd079ed96c5c760783ce10119a3101cf92cf8175f56d6f2858c387943ad5  output/bitcoin-810b1310d617-osx-unsigned.tar.gz
2cf3e1028d96322b1f263d57d6a3f5a3a8d736600c1a16ec21627c2dc31d08f7  output/bitcoin-810b1310d617-osx64.tar.gz
8b1865ec89b25183c6fb7a7b4bdaf5c35d0645235d409badce6cb2e38364fb13  output/src/bitcoin-810b1310d617.tar.gz

@hebasto hebasto marked this pull request as ready for review March 22, 2021 00:35
Copy link
Member

@fanquake fanquake left a comment

Choose a reason for hiding this comment

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

ACK 810b131 - Only obvious difference I could see in the build is skipping a configure check.

Guix:

53f9ccf344e82e5bd76fa1ddb84be659f026ee267741f480869ae97dc103518c  output/bitcoin-810b1310d617-osx-unsigned.dmg
be07fd079ed96c5c760783ce10119a3101cf92cf8175f56d6f2858c387943ad5  output/bitcoin-810b1310d617-osx-unsigned.tar.gz
2cf3e1028d96322b1f263d57d6a3f5a3a8d736600c1a16ec21627c2dc31d08f7  output/bitcoin-810b1310d617-osx64.tar.gz
8b1865ec89b25183c6fb7a7b4bdaf5c35d0645235d409badce6cb2e38364fb13  output/src/bitcoin-810b1310d617.tar.gz

Gitian

Generating report
8b390310dc632a6da8325bf9128097c108abab69c3f2eac3870128f58c518ed7  bitcoin-810b1310d617-osx-unsigned.dmg
4dc59bd29edccbca1b1d4ab6f206997d8afbc2304fc7f939d1047684c47b89c2  bitcoin-810b1310d617-osx-unsigned.tar.gz
64e63902ef654b89d1039068a2605b90a16d8a1d07bfa233c52ea75627d04e70  bitcoin-810b1310d617-osx64.tar.gz
8b1865ec89b25183c6fb7a7b4bdaf5c35d0645235d409badce6cb2e38364fb13  src/bitcoin-810b1310d617.tar.gz
ce11429fd567c1bc27cd091138fe78396614361bd3efb32498fbaf695f0dcdc9  bitcoin-core-osx-22-res.yml
Done.

@practicalswift
Copy link
Contributor

practicalswift commented Mar 22, 2021

Concept ACK

Dependencies are part of the attack surface in some sense, and attack surface reduction is good by definition :)

@fanquake
Copy link
Member

Only obvious difference I could see in the build is skipping a configure check.

This is because CoreWLan is only used by the bearer plugin, which we already disable. So no compilation saved, just skipping a configure check.

@fanquake fanquake merged commit 3c87dbe into bitcoin:master Mar 23, 2021
@hebasto hebasto deleted the 210321-wlan branch March 23, 2021 12:13
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Mar 23, 2021
…pends for macOS

810b131 build: Do not build unused CoreWLAN stuff in depends for macOS (Hennadii Stepanov)

Pull request description:

  We [do not use](https://github.com/bitcoin/bitcoin/blob/d2a78ee9288e4d3bace9125bcfae6b7747f85982/contrib/devtools/symbol-check.py#L96-L111) any macOS CoreWLAN Framework stuff.

  Changes in Qt Configure summary with `HOST=x86_64-apple-darwin18`:
  ```diff
  --- wlan-master/summary2021-03-22 00:26:04.377387806 +0200
  +++ wlan-pr/summary2021-03-22 00:37:07.060997990 +0200
  @@ -49,7 +49,7 @@
       slog2 ................................ no
     Using system PCRE2 ..................... no
   Qt Network:
  -  CoreWLan ............................... yes
  +  CoreWLan ............................... no
     getifaddrs() ........................... yes
     IPv6 ifname ............................ yes
     libproxy ............................... no
  ```

ACKs for top commit:
  fanquake:
    ACK 810b131 - Only obvious difference I could see in the build is skipping a configure check.

Tree-SHA512: 54e177c4ad528ef48cc80c3a39ab1b66267dd0ca4fe6cc4f70579c87b74051a04ebeeca1a26afee7fc29f750af456804578abbe7e8a9ad2717297291f206547e
kwvg added a commit to kwvg/dash that referenced this pull request Feb 17, 2022
kwvg added a commit to kwvg/dash that referenced this pull request Feb 18, 2022
kwvg added a commit to kwvg/dash that referenced this pull request Apr 25, 2022
kwvg added a commit to kwvg/dash that referenced this pull request Apr 25, 2022
kwvg added a commit to kwvg/dash that referenced this pull request Apr 26, 2022
kwvg added a commit to kwvg/dash that referenced this pull request Apr 26, 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.

3 participants