Replies: 12 comments 19 replies
-
My uneducated guess would be because applications you install with brew generally do the same thing. @homebrew/Linux might know more though. |
Beta Was this translation helpful? Give feedback.
-
I wrote a small tool for this. It will use bwrap to create a mount namespace without |
Beta Was this translation helpful? Give feedback.
-
You can work around this by replacing the symlink with a bind mount. This should be done within a toolbox environment! That's the Silverblue way. Add something like this to your if [[ $TOOLBOX_PATH && -L /home ]]; then
sudo rm /home
sudo mkdir /home
sudo mount -o bind /var/home /home
fi Edited to be more concise, but I like to have an overarching |
Beta Was this translation helpful? Give feedback.
-
The whole reason to run Homebrew on Silverblue or Kinoite in the first place is to get tools that exist outside of both rpm-ostree and containers. If you're going to play within those sandboxes then just use RPMs instead and deal with the reboots for system tools. |
Beta Was this translation helpful? Give feedback.
-
For me, it's an ecosystem thing. I also don't like the speed / response
times when I update OSTree, so I believe a two kernel system is best. I'm
hoping to use a cross platform package management system like brew or maybe
nix as a means to bridge that gap, but Im still tinkering.
…On Tue, Mar 28, 2023 at 4:37 PM Tidux ***@***.***> wrote:
The whole reason to run Homebrew on Silverblue or Kinoite in the first
place is to get tools that exist outside of both rpm-ostree and containers.
If you're going to play within those sandboxes then just use RPMs instead
and deal with the reboots for system tools.
—
Reply to this email directly, view it on GitHub
<#1282 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFBO4IGRWYUYWGYSQTCOK2DW6NDZHANCNFSM425D2FKA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Why should homebrew break when /home is a symlink? To me this looks like a bug. |
Beta Was this translation helpful? Give feedback.
-
I just tried [zeus@fedora ~]$ brew doctor
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: Your Homebrew's prefix is not /home/linuxbrew/.linuxbrew.
Many of Homebrew's bottles (binary packages) can only be used with the default prefix.
Consider uninstalling Homebrew and reinstalling into the default prefix.
It is expected behaviour that some formulae will fail to build in this unsupported configuration.
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.
[zeus@fedora ~]$ brew --prefix
/var/home/linuxbrew/.linuxbrew
[zeus@fedora ~]$ realpath /home/linuxbrew/.linuxbrew
/var/home/linuxbrew/.linuxbrew
[zeus@fedora ~]$ I am currently using uBlue: [zeus@fedora ~]$ brew config
HOMEBREW_VERSION: 4.0.24
ORIGIN: https://github.com/Homebrew/brew
HEAD: 54c8876dc39047c04de15e7d212979ae8d98cf1c
Last commit: 7 days ago
Core tap origin: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 3d9284ae5a17aa2ed4500120cfd2ad8204035923
Core tap last commit: 20 hours ago
Core tap branch: master
Core tap JSON: 25 Jun 14:02 UTC
HOMEBREW_PREFIX: /var/home/linuxbrew/.linuxbrew
HOMEBREW_REPOSITORY: /var/home/linuxbrew/.linuxbrew/Homebrew
HOMEBREW_CELLAR: /var/home/linuxbrew/.linuxbrew/Cellar
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: :0
HOMEBREW_EDITOR: /usr/bin/nano
HOMEBREW_MAKE_JOBS: 8
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: octa-core 64-bit skylake
Clang: N/A
Git: 2.41.0 => /bin/git
Curl: 8.0.1 => /bin/curl
Kernel: Linux 6.3.8-200.fc38.x86_64 x86_64 GNU/Linux
OS: Fedora release 38 (Thirty Eight)
Host glibc: 2.37
/usr/bin/gcc: 13.1.1
/usr/bin/ruby: N/A
glibc: N/A
gcc@11: N/A
gcc: N/A
xorg: N/A
[zeus@fedora ~]$ rpm-ostree status
...
● ostree-unverified-registry:ghcr.io/ublue-os/silverblue-nvidia:latest
Digest: sha256:ef7bc1f6435e33c458b3b109bf94805b0d12353d63b94af1f7756fcbecf0c476
Version: 38.20230625.0 (2023-06-25T13:00:02Z) |
Beta Was this translation helpful? Give feedback.
-
bigtime!
…On Mon, Jun 26, 2023 at 12:49 PM Osama Albahrani ***@***.***> wrote:
Is there still interest in using brew on Silverblue?
—
Reply to this email directly, view it on GitHub
<#1282 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFBO4IEZCOA7P32KSIA62LLXNG4QHANCNFSM425D2FKA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Thoughts on adding a warning to the installer that links to this discussion if /home is a symlink? Edit: opened Homebrew/install#786 |
Beta Was this translation helpful? Give feedback.
-
Related issue at uBlue: Ship homebrew config out of the box #252 |
Beta Was this translation helpful? Give feedback.
-
I think me and @rohanssrao found a patch to get Homebrew to work on Silverblue. We tested on containers where we symlinked /home to var/home. You can apply it as follows: sed -i "s/&& pwd -P)/\&\& pwd)/g" /home/linuxbrew/.linuxbrew/Homebrew/bin/brew
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
brew developer on
brew install xz See ublue-os/bluefin#252 (comment). You should then be able to install things normally. Feel free to test it and lmk how it goes! The reproducible script that you can run in a container is at https://github.com/osalbahr/brew/blob/silverbrew-develop/silverbrew-fedora-toolbox.sh. It was tested on Edit: Well, to clarify the removal of |
Beta Was this translation helpful? Give feedback.
-
@osalbahr and I made a PR on the Homebrew repo with our fix: Homebrew/brew#15656 EDIT: It has been merged! |
Beta Was this translation helpful? Give feedback.
-
Running brew on Fedora Silverblue is a bit odd because one needs to compile every package because /home is a symlink to /var/home. This is because it's immutable and everything under / and /usr is read-only. Looking at the
brew
script it's usingpwd -P
; is there a reason the physical path is being used?Beta Was this translation helpful? Give feedback.
All reactions