Comments (10)
Arguably HOMEBREW_CACHE should just have a different default on Linux.
from legacy-linuxbrew.
I don't believe there's a suitable world-writable cache on Linux, so I'll change the default to ~/.local/homebrew
.
from legacy-linuxbrew.
There is a single base directory relative to which user-specific non-essential (cached) data should be written. This directory is defined by the environment variable $XDG_CACHE_HOME.
$XDG_CACHE_HOME defines the base directory relative to which user specific non-essential data files should be stored. If $XDG_CACHE_HOME is either not set or empty, a default equal to $HOME/.cache should be used.
http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
I'd suggest using the env if it's there otherwise defaulting to ~/.cache/homebrew
from legacy-linuxbrew.
Yes, I agree. Does this patch look like something that could be incorporated into mxcl/homebrew?
from legacy-linuxbrew.
Oh, I missed the quoted part of your comment. Oddly, $XDG_CACHE_HOME
is not set on Ubuntu. Does anyone know of a Linux (or other) system that uses these environment variables?
from legacy-linuxbrew.
Typically they are user or environment set. Worth respecting them as they are so easy to do.
from legacy-linuxbrew.
This is something for the wrapper script to do I think.
from legacy-linuxbrew.
If you mean the brew
shell script, I'm inclined to keep that as simple as possible. I do think though that there's a good argument for factoring out os/linux/global.rb
.
from legacy-linuxbrew.
Well, I think we'd allow these type of things to be user customisable with environment variables so if you implemented that the wrapper script could simply set its own defaults. Regardless the if/else
approach won't really work unfortunately for getting merged up; linux/global
may do.
from legacy-linuxbrew.
Okay. I'll add it to my os/linux
todo list. There's other patches in Linuxbrew that should move there as well.
from legacy-linuxbrew.
Related Issues (20)
- vim not getting build HOT 4
- `cairo` fails on Linux Mint 17.3 Rosa XFCE x64 HOT 3
- CEGMA 2.5 ? HOT 1
- where is the file .bashrc or .zshrc? HOT 8
- 'brew install llvm --with-lldb' fails HOT 1
- Error: SHA256 mismatch
- -e:1:in `flock': Function not implemented (Errno::ENOSYS) HOT 1
- Advantage of Linuxbrew over Chromebrew? HOT 2
- cannot execute binary file: Exec format error HOT 3
- Error: undefined method `rebuild' HOT 6
- util-linux: Conflicts with bash-completions HOT 25
- Error: Unsupported special dependency :perl HOT 1
- libxcb install but not exist HOT 2
- Support installation with out git installed HOT 4
- brew instal mpd HOT 1
- node: Error: Unsupported special dependency :perl HOT 1
- Unsupported special dependency: Perl HOT 1
- troubleshooting link is not working HOT 2
- gcc bad configured after fresh installation HOT 15
- homebrew upgrade error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from legacy-linuxbrew.