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

brew upgrade -s does not build from source or error out #18226

Closed
2 of 3 tasks
fxcoudert opened this issue Sep 2, 2024 · 7 comments · Fixed by #18572
Closed
2 of 3 tasks

brew upgrade -s does not build from source or error out #18226

fxcoudert opened this issue Sep 2, 2024 · 7 comments · Fixed by #18572
Labels
bug Reproducible Homebrew/brew bug help wanted We want help addressing this

Comments

@fxcoudert
Copy link
Member

fxcoudert commented Sep 2, 2024

brew doctor output

Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: You are using macOS 15.
We do not provide support for this pre-release version.
It is expected behaviour that some formulae will fail to build in this pre-release version.
It is expected behaviour that Homebrew will be buggy and slow.
Do not create any issues about this on Homebrew's GitHub repositories.
Do not create any issues even if you think this message is unrelated.
Any opened issues will be immediately closed without response.
Do not ask for help from Homebrew or its maintainers on social media.
You may ask for help in Homebrew's discussions but are unlikely to receive a response.
Try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.

Verification

  • My "brew doctor output" above says Your system is ready to brew. and am still able to reproduce my issue.
  • I ran brew update twice and am still able to reproduce my issue.
  • This issue's title and/or description do not reference a single formula e.g. brew install wget. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.

brew config output

HOMEBREW_VERSION: 4.3.18-105-g1f9bd2d
ORIGIN: https://github.com/Homebrew/brew
HEAD: 1f9bd2de89883ec9a59db3eab0f5475bce06d5bc
Last commit: 3 hours ago
Core tap HEAD: c2463e1160a0577b9061b27ac91f8953525c924a
Core tap last commit: 19 minutes ago
Core tap JSON: 27 Aug 16:14 UTC
Core cask tap JSON: 27 Aug 16:14 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 10
HOMEBREW_NO_AUTO_UPDATE: set
HOMEBREW_NO_INSTALL_CLEANUP: set
HOMEBREW_NO_INSTALL_FROM_API: set
HOMEBREW_SORBET_RUNTIME: set
Homebrew Ruby: 3.3.4 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.4_1/bin/ruby
CPU: 10-core 64-bit arm_blizzard_avalanche
Clang: 16.0.0 build 1600
Git: 2.46.0 => /opt/homebrew/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.0-arm64
CLT: 16.0.0.0.1.1723780521
Xcode: 16.0 => /Applications/Xcode-beta.app/Contents/Developer
Rosetta 2: false

What were you trying to do (and why)?

I am testing builds from source, with brew install -s. Some formulas built a couple of days ago need updating, and I wanted to use brew upgrade -s (as documented) to upgrade all formulas by building from source.

What happened (include all command output)?

fx@mini-m2 ~ % brew upgrade -s
Warning: building from source is not supported!
You're on your own. Failures are expected so don't create any issues, please!
Warning: You are using macOS 15.
We do not provide support for this pre-release version.
It is expected behaviour that some formulae will fail to build in this pre-release version.
It is expected behaviour that Homebrew will be buggy and slow.
Do not create any issues about this on Homebrew's GitHub repositories.
Do not create any issues even if you think this message is unrelated.
Any opened issues will be immediately closed without response.
Do not ask for help from Homebrew or its maintainers on social media.
You may ask for help in Homebrew's discussions but are unlikely to receive a response.
Try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.

==> Upgrading 12 outdated packages:
vim 9.1.0650 -> 9.1.0700
python-setuptools 73.0.1 -> 74.0.0
cmake 3.30.2 -> 3.30.3
liblqr 0.4.2_1 -> 0.4.3
mbedtls 3.6.0 -> 3.6.1
awscli 2.17.39 -> 2.17.42
nvm 0.40.0 -> 0.40.1
libnghttp2 1.61.0 -> 1.63.0
certifi 2024.7.4 -> 2024.8.30
libssh 0.11.0 -> 0.11.1
sdl2 2.30.6 -> 2.30.7
fzf 0.54.3 -> 0.55.0
==> Downloading https://ghcr.io/v2/homebrew/core/fzf/manifests/0.55.0
Already downloaded: /Users/fx/Library/Caches/Homebrew/downloads/43dda0df9f648773bd9f9160964f35590d5fd8950a22ceeb85c37eff9a0caa14--fzf-0.55.0.bottle_manifest.json
==> Fetching fzf
==> Downloading https://ghcr.io/v2/homebrew/core/fzf/blobs/sha256:0ac2f272f6106c5266de224e982bcb9a05c291cfb84a6d797bc759f1a854f499
Already downloaded: /Users/fx/Library/Caches/Homebrew/downloads/1a4bfc957f08040d26b7efc8b35793059b564b565c6c4dd2213bb746b9b7d9fd--fzf--0.55.0.arm64_sonoma.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/python-setuptools/manifests/74.0.0
Already downloaded: /Users/fx/Library/Caches/Homebrew/downloads/0b06554f916a2e4c01d55b5ef47e00700fdd52b35ba7d72c383f69534f96907a--python-setuptools-74.0.0.bottle_manifest.json
==> Fetching python-setuptools
==> Downloading https://ghcr.io/v2/homebrew/core/python-setuptools/blobs/sha256:94e6b0211b4e6befec438fca9eb4675db3f0c185d8e2791f4bae
Already downloaded: /Users/fx/Library/Caches/Homebrew/downloads/c7029f365ab02891236606ebbf4faab164e3a7b794e0a26534569bbac10ca6fa--python-setuptools--74.0.0.arm64_sonoma.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/cmake/manifests/3.30.3
Already downloaded: /Users/fx/Library/Caches/Homebrew/downloads/1173f026db24f4c17bdb8cc3be2e921656e9270e564c2b94630469741fe86f72--cmake-3.30.3.bottle_manifest.json
==> Fetching cmake
==> Downloading https://ghcr.io/v2/homebrew/core/cmake/blobs/sha256:f1e7c136431f5c38e08f73d118374d69fc8055d8053d7d17fb0399c29a9bf2a9
Already downloaded: /Users/fx/Library/Caches/Homebrew/downloads/48e2e1831d8d120450003e884abbdb6abaef3c2647e1966412c45b7a0b4ca320--cmake--3.30.3.arm64_sonoma.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/liblqr/manifests/0.4.3
Already downloaded: /Users/fx/Library/Caches/Homebrew/downloads/4556817c5a01fce224dd098f901149e06a56368a5682f2accaa590bc5aec4c26--liblqr-0.4.3.bottle_manifest.json
==> Fetching liblqr
==> Downloading https://ghcr.io/v2/homebrew/core/liblqr/blobs/sha256:9ad43c688c7604dc0d12d25a55e5dba657312e6f702c5c7779a529e7b0788c3
Already downloaded: /Users/fx/Library/Caches/Homebrew/downloads/f64d9f1926a94110583a1eef3f1ae920be7a668ab70e2f1a832f2b02476df3ff--liblqr--0.4.3.arm64_sonoma.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/mbedtls/manifests/3.6.1
Already downloaded: /Users/fx/Library/Caches/Homebrew/downloads/d40da23c8d5098a89de939b1183996cd2d04cd22ea893bc18fbf7a75a4e88921--mbedtls-3.6.1.bottle_manifest.json
==> Fetching mbedtls
==> Downloading https://ghcr.io/v2/homebrew/core/mbedtls/blobs/sha256:85ebbef174334a956d09467ae5f96664a80ddff5e4907d29b19f6dba933123
Already downloaded: /Users/fx/Library/Caches/Homebrew/downloads/d8168935e94633003b0d22126c76b84c53f55c68bbb6682a7c7adb3ed2506d45--mbedtls--3.6.1.arm64_sonoma.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/awscli/manifests/2.17.42
Already downloaded: /Users/fx/Library/Caches/Homebrew/downloads/c68fd7966fe46ec50bc56a36397900455fa53e5e3b89a5742124cc3cf2952df4--awscli-2.17.42.bottle_manifest.json
^C

What did you expect to happen?

Should have built the formulas upgrade from source, not downloaded the bottles.

Step-by-step reproduction instructions (by running brew commands)

`brew upgrade -s`
@fxcoudert fxcoudert added the bug Reproducible Homebrew/brew bug label Sep 2, 2024
@fxcoudert
Copy link
Member Author

brew upgrade -s specificformula does work as expected

@carlocab
Copy link
Member

carlocab commented Sep 2, 2024

brew upgrade -s specificformula does work as expected

Yea, I think this is the only intended usage for brew upgrade -s. We should probably error out if we're called as just brew upgrade -s.

@MikeMcQuaid
Copy link
Member

This is expected behaviour. It may be that the feature request here is that brew upgrade -s should error-out, though.

@MikeMcQuaid MikeMcQuaid changed the title brew upgrade -s does not build from source brew upgrade -s does not build from source or error out Sep 2, 2024
@MikeMcQuaid MikeMcQuaid added the help wanted We want help addressing this label Sep 2, 2024
@fxcoudert
Copy link
Member Author

I can do brew upgrade -s $(brew ls) and upgrade all formulas at once. Why wouldn't brew upgrade -s do that, the same as brew upgrade does (but from source)?

@MikeMcQuaid
Copy link
Member

Why wouldn't brew upgrade -s do that, the same as brew upgrade does (but from source)?

Same reason brew upgrade -s <foo> doesn't upgrade foo's dependencies: because building from source is essentially a developer-only behaviour that we don't want people using en-masse.

@carlocab
Copy link
Member

carlocab commented Sep 2, 2024

Same reason brew upgrade -s <foo> doesn't upgrade foo's dependencies

brew upgrade -s <foo> will upgrade foo's dependencies; it just won't build them from source (if a bottle is available).

@MikeMcQuaid
Copy link
Member

Sorry, yes, I meant but didn't say that so thanks for clarifying @carlocab 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Reproducible Homebrew/brew bug help wanted We want help addressing this
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants