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

Add /opt/homebrew to path to look for boost libraries #21231

Merged
merged 1 commit into from
Jun 2, 2021

Conversation

fyquah
Copy link
Contributor

@fyquah fyquah commented Feb 19, 2021

Following the instruction in https://github.com/bitcoin/bitcoin/blob/master/doc/build-osx.md for building on the M1 Macs don't work out of the box, because homebrew now defaults to /opt/homebrew instead of /usr/local. This PR fixes that.

Copy link
Contributor

@jonasschnelli jonasschnelli left a comment

Choose a reason for hiding this comment

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

Thanks!
utACK 9a09695

@DrahtBot
Copy link
Contributor

Gitian builds

File commit c46fe4d
(master)
commit bc7b993
(master and this pull)
*-aarch64-linux-gnu-debug.tar.gz 78c9c6d6d6928989... d9e6f16aaffd0866...
*-aarch64-linux-gnu.tar.gz af17571d516202c2... 45d984e9956a42f7...
*-arm-linux-gnueabihf-debug.tar.gz 78da25299d8399ba... 4b0cc2c5b2c514f1...
*-arm-linux-gnueabihf.tar.gz b6e0759fda4c5599... 6ad1efb4725a222f...
*-osx-unsigned.dmg c3879cd906f24184... c3216cf9d97a0428...
*-osx64.tar.gz cf4f938aee9348d1... 5b0a5ccea43e7658...
*-powerpc64-linux-gnu-debug.tar.gz f72fb1addb3d2432... c70058e7fbb6754f...
*-powerpc64-linux-gnu.tar.gz 1b236870c1c396c5... 8a8cbca15ddd61ab...
*-powerpc64le-linux-gnu-debug.tar.gz f2a5d7460d4c724d... 433790c5bdafc827...
*-powerpc64le-linux-gnu.tar.gz 5aac39efa275b5e1... b61a3ac1496b7f9c...
*-riscv64-linux-gnu-debug.tar.gz 135ecf7fd345dca1... 3fd577568ce14b0f...
*-riscv64-linux-gnu.tar.gz c6d977137497bca9... f41a61c70fd31a48...
*-win64-debug.zip 4de92538e25b760b... be85928d31ec509f...
*-win64-setup-unsigned.exe 25a1eafea154cad1... 941b734d4f074a51...
*-win64.zip acb89cdad7fd5600... 1d6d6496fffd608f...
*-x86_64-linux-gnu-debug.tar.gz c32979a83b665138... 7a8c3799f2c65684...
*-x86_64-linux-gnu.tar.gz 3cd921825821892c... 6c83c2f37b11e92a...
*.tar.gz 3e1136eeafb3c989... e5fb550b098c70f3...
bitcoin-core-linux-22-res.yml 8aeb808977e6530d... c51c1f7fdc518d3c...
bitcoin-core-osx-22-res.yml d35e35d2007eaf6e... 2a2b24052f98f063...
bitcoin-core-win-22-res.yml 7a63f6b736929f72... c1558f75833ffb16...
linux-build.log 89e3d2dbca7c1641... 0993c1718dbf2b42...
osx-build.log 288b6624e9bef1d7... aa4c83e4bb9399ae...
win-build.log eb9dcb674de8f9c7... def369ee82d491d6...
bitcoin-core-linux-22-res.yml.diff 3857868fc6dc05e0...
bitcoin-core-osx-22-res.yml.diff c250bc50f9034360...
bitcoin-core-win-22-res.yml.diff 7f17a9977f1a6ad4...
linux-build.log.diff 6468119d5e7e6606...
osx-build.log.diff b2198d8d4e59e3ef...
win-build.log.diff c3d891081be4879a...

@fanquake
Copy link
Member

This file is from an upstream respository. Can you submit your changes there as well? Generally we prefer not to modify these macros ourselves (or at least not without the changes sent upstream). In the mean time, you should be able to pass --with-boost=/opt/homebrew to configure.

@laanwj
Copy link
Member

laanwj commented Feb 22, 2021

Concept ACK, but yes please submit this upstream, it wouldn't be the first time that we make a custom change to the m4 scripts here and it gets lost on an update from upstream, better to avoid that.

@fyquah
Copy link
Contributor Author

fyquah commented Feb 22, 2021

A patch is underway: https://lists.gnu.org/archive/html/autoconf-patches/2021-02/msg00006.html , i will update this thread when it gets accepted.

@practicalswift
Copy link
Contributor

Concept ACK

Nice first-time contribution! Warm welcome as a contributor @fyquah.

@laanwj
Copy link
Member

laanwj commented Mar 3, 2021

I really wish boost used pkgconfig like other libraries, to make it easy to find its include/lib directories; hardcoding paths is by definition always incomplete.
(not something you can do anything with here but it came to mind again)

@practicalswift
Copy link
Contributor

practicalswift commented Mar 3, 2021

@laanwj

Aren't we quite near the point where our Boost usage is header-only?

At that point I've assumed we will simply include the required headers in our repo, no? :)

@fanquake
Copy link
Member

@fyquah Looks like you haven't gotten a response on the mailing list. You might have more luck opening a PR here : https://github.com/autoconf-archive/autoconf-archive.

@laanwj
Copy link
Member

laanwj commented May 18, 2021

At that point I've assumed we will simply include the required headers in our repo, no? :)

I'm not sure what the legal situation around this is? Is the boost license compatible with MIT? (it is an interesting idea anyhow!)

Copy link
Member

@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 9a09695.

Before I had to configure --with-boost=/opt/homebrew/Cellar/boost/1.76.0/ for instance (edit: @fanquake already points this above).

@laanwj laanwj merged commit 2aab8a6 into bitcoin:master Jun 2, 2021
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Jun 3, 2021
…aries

9a09695 build: Add /opt/homebrew to path to look for boost libraries (Fu Yong Quah)

Pull request description:

  Following the instruction in https://github.com/bitcoin/bitcoin/blob/master/doc/build-osx.md for building on the M1 Macs don't work out of the box, because homebrew now defaults to /opt/homebrew instead of /usr/local. This PR fixes that.

ACKs for top commit:
  jonasschnelli:
    utACK 9a09695
  promag:
    Tested ACK 9a09695.

Tree-SHA512: 472568b97fbd8623481fe6fd43b0509fa32fe7f1c1d8090321a6a6a5bdc7343d4ad4122c10dcc7c9c93068db8a3f009a73befaf1ba11e4af54a66afd2c2dbe14
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jun 27, 2021
…aries

9a09695 build: Add /opt/homebrew to path to look for boost libraries (Fu Yong Quah)

Pull request description:

  Following the instruction in https://github.com/bitcoin/bitcoin/blob/master/doc/build-osx.md for building on the M1 Macs don't work out of the box, because homebrew now defaults to /opt/homebrew instead of /usr/local. This PR fixes that.

ACKs for top commit:
  jonasschnelli:
    utACK 9a09695
  promag:
    Tested ACK 9a09695.

Tree-SHA512: 472568b97fbd8623481fe6fd43b0509fa32fe7f1c1d8090321a6a6a5bdc7343d4ad4122c10dcc7c9c93068db8a3f009a73befaf1ba11e4af54a66afd2c2dbe14
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jun 28, 2021
…aries

9a09695 build: Add /opt/homebrew to path to look for boost libraries (Fu Yong Quah)

Pull request description:

  Following the instruction in https://github.com/bitcoin/bitcoin/blob/master/doc/build-osx.md for building on the M1 Macs don't work out of the box, because homebrew now defaults to /opt/homebrew instead of /usr/local. This PR fixes that.

ACKs for top commit:
  jonasschnelli:
    utACK 9a09695
  promag:
    Tested ACK 9a09695.

Tree-SHA512: 472568b97fbd8623481fe6fd43b0509fa32fe7f1c1d8090321a6a6a5bdc7343d4ad4122c10dcc7c9c93068db8a3f009a73befaf1ba11e4af54a66afd2c2dbe14
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jun 29, 2021
…aries

9a09695 build: Add /opt/homebrew to path to look for boost libraries (Fu Yong Quah)

Pull request description:

  Following the instruction in https://github.com/bitcoin/bitcoin/blob/master/doc/build-osx.md for building on the M1 Macs don't work out of the box, because homebrew now defaults to /opt/homebrew instead of /usr/local. This PR fixes that.

ACKs for top commit:
  jonasschnelli:
    utACK 9a09695
  promag:
    Tested ACK 9a09695.

Tree-SHA512: 472568b97fbd8623481fe6fd43b0509fa32fe7f1c1d8090321a6a6a5bdc7343d4ad4122c10dcc7c9c93068db8a3f009a73befaf1ba11e4af54a66afd2c2dbe14
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jul 1, 2021
…aries

9a09695 build: Add /opt/homebrew to path to look for boost libraries (Fu Yong Quah)

Pull request description:

  Following the instruction in https://github.com/bitcoin/bitcoin/blob/master/doc/build-osx.md for building on the M1 Macs don't work out of the box, because homebrew now defaults to /opt/homebrew instead of /usr/local. This PR fixes that.

ACKs for top commit:
  jonasschnelli:
    utACK 9a09695
  promag:
    Tested ACK 9a09695.

Tree-SHA512: 472568b97fbd8623481fe6fd43b0509fa32fe7f1c1d8090321a6a6a5bdc7343d4ad4122c10dcc7c9c93068db8a3f009a73befaf1ba11e4af54a66afd2c2dbe14
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jul 1, 2021
…aries

9a09695 build: Add /opt/homebrew to path to look for boost libraries (Fu Yong Quah)

Pull request description:

  Following the instruction in https://github.com/bitcoin/bitcoin/blob/master/doc/build-osx.md for building on the M1 Macs don't work out of the box, because homebrew now defaults to /opt/homebrew instead of /usr/local. This PR fixes that.

ACKs for top commit:
  jonasschnelli:
    utACK 9a09695
  promag:
    Tested ACK 9a09695.

Tree-SHA512: 472568b97fbd8623481fe6fd43b0509fa32fe7f1c1d8090321a6a6a5bdc7343d4ad4122c10dcc7c9c93068db8a3f009a73befaf1ba11e4af54a66afd2c2dbe14
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jul 15, 2021
…aries

9a09695 build: Add /opt/homebrew to path to look for boost libraries (Fu Yong Quah)

Pull request description:

  Following the instruction in https://github.com/bitcoin/bitcoin/blob/master/doc/build-osx.md for building on the M1 Macs don't work out of the box, because homebrew now defaults to /opt/homebrew instead of /usr/local. This PR fixes that.

ACKs for top commit:
  jonasschnelli:
    utACK 9a09695
  promag:
    Tested ACK 9a09695.

Tree-SHA512: 472568b97fbd8623481fe6fd43b0509fa32fe7f1c1d8090321a6a6a5bdc7343d4ad4122c10dcc7c9c93068db8a3f009a73befaf1ba11e4af54a66afd2c2dbe14
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.

None yet

8 participants