You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.
In this totally mundane and plausible example, I have now compiled, linked... and can enjoy some-formula. That is, until, _gasp_.. I want to change the location of where I ACTUALLY keep the contents of /usr/local. Even though I TRIED to tell homebrew..
"Hey listen, I know /usr/local isn't EXACTLY where you think it's going to be... but lets just pretend. I will _make sure_ you can always find it at /usr/local - that's why I set $HOMEBREW_PREFIX in my .profile, OK?"
I know you guys do some clever ruby hocus-pocus to make sure you are installing to the actual location of whatever is sitting at /usr/local, but why? Just follow the symlinks according to what we want, and by extension - are responsible for ensuring exists - per the HOMEBREW_PREFIX.
Or maybe there is some way that I am unaware to magically recompile every formula when the physical location of our prefix changes?
for x in $(brew list); { brew unlink $x && brew link $x; }
But even if there is... why are we hardcoding paths at compile/install/link time that can just as easily be more configurable/flexible?
The text was updated successfully, but these errors were encountered:
why are we hardcoding paths at compile/install/link time that can just as easily be more configurable/flexible?
Majority of packages hardcode prefix path inside their binary files. So it's not configurable/flexible.
As far as I understand, you want to use /usr/local/ as prefix, but use a different Volume to store actually files (To save space?). If you insist to do this, you may want to just mount the volume to /usr/local/. But be aware, such configuration is completely unsupported by us.
@mralexgray We do not consider this an issue and will not be working on fixing it so we've closed the issue. This feature request will make it harder to debug Homebrew issues so we do not wish to work on it.
In the same vein as Investigate making prefix/cellar configurable via environment variables... I urge the powers-that-be to reconsider the current setup - which results in needlessly hard-coded paths during linking/compilation.
Example...
In this totally mundane and plausible example, I have now compiled, linked... and can enjoy
some-formula
. That is, until, _gasp_.. I want to change the location of where I ACTUALLY keep the contents of/usr/local
. Even though I TRIED to tellhomebrew
..I know you guys do some clever ruby hocus-pocus to make sure you are installing to the actual location of whatever is sitting at
/usr/local
, but why? Just follow the symlinks according to what we want, and by extension - are responsible for ensuring exists - per the HOMEBREW_PREFIX.Or maybe there is some way that I am unaware to magically recompile every formula when the physical location of our prefix changes?
for x in $(brew list); { brew unlink $x && brew link $x; }
But even if there is... why are we hardcoding paths at compile/install/link time that can just as easily be more configurable/flexible?
The text was updated successfully, but these errors were encountered: