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

Can't pour large bottles on Fedora Linux #19037

Open
3 tasks done
averms opened this issue Jan 5, 2025 · 2 comments · May be fixed by #19038
Open
3 tasks done

Can't pour large bottles on Fedora Linux #19037

averms opened this issue Jan 5, 2025 · 2 comments · May be fixed by #19038
Labels
bug Reproducible Homebrew/brew bug

Comments

@averms
Copy link

averms commented Jan 5, 2025

brew doctor output

Your system is ready to brew.

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.4.14
ORIGIN: https://github.com/Homebrew/brew
HEAD: f84082963da8af8c9ccd6dffbe932eba457e2b78
Last commit: 6 days ago
Branch: stable
Core tap JSON: 05 Jan 03:19 UTC
HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: :0
HOMEBREW_MAKE_JOBS: 2
Homebrew Ruby: 3.3.6 => /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/bin/ruby
CPU: dual-core 64-bit zen4
Clang: 19.1.6
Git: 2.47.1 => /bin/git
Curl: 8.9.1 => /bin/curl
Kernel: Linux 6.12.7-200.fc41.x86_64 x86_64 GNU/Linux
OS: Fedora release 41 (Forty One)
Host glibc: 2.40
/usr/bin/gcc: 14.2.1
/usr/bin/ruby: N/A
glibc: N/A
gcc@11: 11.5.0
gcc: N/A
xorg: N/A

What were you trying to do (and why)?

Install llvm.

What happened (include all command output)?

I ran brew install llvm. The output is in install_llvm.log.

What did you expect to happen?

No errors and llvm successfully installed.

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

1. Install Fedora 41 Workstation in a VM with 4 GiB of RAM
2. Install Homebrew
3. `brew install llvm`

This happens because the default temporary directory `/tmp` on Fedora, RHEL, and possibly other distros is tmpfs. It's stored in RAM and has strict limits on the number of inodes and size.
@averms averms added the bug Reproducible Homebrew/brew bug label Jan 5, 2025
averms added a commit to averms-forks/brew that referenced this issue Jan 5, 2025
Previously, the default temporary directory was /tmp on Linux and
/private/tmp on macOS. On many Linux distros, including at least Fedora,
/tmp is stored in RAM. This diverges from the behavior on macOS and has
led to bugs, most notably the inability to install large bottles on
memory-limited machines.

This fixes Homebrew#19037.
@averms averms linked a pull request Jan 5, 2025 that will close this issue
7 tasks
@gromgit
Copy link
Member

gromgit commented Jan 5, 2025

Suggest you export HOMEBREW_TEMP=/var/tmp instead.

@averms
Copy link
Author

averms commented Jan 5, 2025

What if that was the default?

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

Successfully merging a pull request may close this issue.

2 participants