-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Warn if brew
is symlinked
#786
Comments
I was able to reproduce a similar environment in the $ podman run -it homebrew/brew
// In the container
$ export NONINTERACTIVE=1
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
$ sudo mv /home /var
$ (cd / && sudo ln -s var/home home) # or "sudo ln -s var/home /home"
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
// No warning when reinstalling
// It works fine as far as I can tell, but it builds lots of stuff from source (as expected) System info: $ brew config
HOMEBREW_VERSION: 4.0.26
ORIGIN: https://github.com/Homebrew/brew
HEAD: eff45ef570f265e226f14ce91da72d7a6e7d516a
Last commit: 5 days ago
Core tap origin: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 1c6424f22ccd8cd46c4d46279ebc8ff4dba222c9
Core tap last commit: 2 hours ago
Core tap branch: master
HOMEBREW_PREFIX: /var/home/linuxbrew/.linuxbrew
HOMEBREW_REPOSITORY: /var/home/linuxbrew/.linuxbrew/Homebrew
HOMEBREW_CELLAR: /var/home/linuxbrew/.linuxbrew/Cellar
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 4
HOMEBREW_NO_INSTALL_FROM_API: set
Homebrew Ruby: 2.6.10 => /var/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.10_1/bin/ruby
CPU: quad-core 64-bit skylake
Clang: N/A
Git: 2.41.0 => /bin/git
Curl: 7.81.0 => /bin/curl
Kernel: Linux 6.3.8-200.fc38.x86_64 x86_64 GNU/Linux
OS: Unknown
Host glibc: 2.35
/usr/bin/gcc: 11.3.0
/usr/bin/ruby: N/A
glibc: N/A
gcc@11: N/A
gcc: N/A
xorg: N/A |
|
Sorry, but I thought this was about issues when it comes to |
No worries and: thanks!
We don't support that configuration, sorry.
This is an edge-case we've not seen before. The installer warns/halts for some issues but not all. |
Fair enough. I wanted to note the issue of a symlinked
That’s what I’m doing now, trying to see how to make Homebrew work even if
What’s the chance for such a PR gets accepted? Or should users apply the "patch" on their end only? I’m still messing around and trying to figure out how |
Thanks, I'll review it when you do 👍🏻
Depends on how involved/reliable/understandable the fix ends up being. If you end up having to modify >100 lines of code, for instance: it's probably got complex enough it wouldn't get merged. If it's a one line fix: it seems very unlikely it won't be accepted in some form. Does that help?
Yeh, feel free to open a draft PR with a POC and e.g. failing tests and we can validate it before you put too much effort in. Thanks again! |
Absolutely! Thank you for clarifying. |
install
oruninstall
script?brew config
andbrew doctor
and included their output with your issue? If you couldn't install: provided your OS version with the output of your issue?What you were trying to do (and why)
Install Homebrew on uBlue (based on Fedora Silverblue 38). Homebrew is a perfect tool to install userspace programs while on an immutable operating system (without needing to use container solutions like
distrobox
ortoolbx
).What happened (include command output)
The installation went fine. But
brew
fails upon usage. When I ranbrew install gcc
, the first failure was installingxz
(as in Homebrew/discussions#1282).Context:
What you expected to happen
I initially expected Homebrew to work even if
/home
is a symlink. But since it doesn't, I think a warning during installation would be good.Step-by-step reproduction instructions (by running
brew
commands)/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
to~/.bashrc
and open a new Terminal (or run/home/linuxbrew/.linuxbrew/bin/brew shellenv
)brew install xz
The text was updated successfully, but these errors were encountered: