Closed Bug 1249326 Opened 8 years ago Closed 8 years ago

Error bootstrapping Android build related to brew-cask

Categories

(Firefox Build System :: General, defect)

All
macOS
defect
Not set
normal

Tracking

(firefox47 affected)

RESOLVED WORKSFORME
Tracking Status
firefox47 --- affected

People

(Reporter: mkaply, Unassigned, Mentored)

References

Details

(Whiteboard: [lang=python][good next bug])

Trying to do a brand new android bootstrap and getting this error:

Error: No available formula with the name "caskroom/cask/brew-cask" 
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
Error: No formulae found in taps.
Traceback (most recent call last):
  File "bootstrap.py", line 159, in <module>
    sys.exit(main(sys.argv))
  File "bootstrap.py", line 150, in main
    dasboot.bootstrap()
  File "/var/folders/rc/qcgp5b4s6nxf1s0rd1pp6gqr0000gn/T/tmpskrABI/mozboot/bootstrap.py", line 137, in bootstrap
    
  File "/var/folders/rc/qcgp5b4s6nxf1s0rd1pp6gqr0000gn/T/tmpskrABI/mozboot/osx.py", line 194, in install_mobile_android_packages
  File "/var/folders/rc/qcgp5b4s6nxf1s0rd1pp6gqr0000gn/T/tmpskrABI/mozboot/osx.py", line 342, in ensure_homebrew_mobile_android_packages
  File "/var/folders/rc/qcgp5b4s6nxf1s0rd1pp6gqr0000gn/T/tmpskrABI/mozboot/osx.py", line 293, in _ensure_homebrew_packages
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '[u'/usr/local/bin/brew', u'install', u'caskroom/cask/brew-cask']' returned non-zero exit status 1


Tried running just a brew install brew-cask, and it doesn't seem to exist:

23723:~ michaelkaply$ brew install brew-cask
Error: No available formula with the name "brew-cask" 
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
This formula was found in a tap:
homebrew/completions/brew-cask-completion
To install it, run:
  brew install homebrew/completions/brew-cask-completion
Should be an easy fix -- looking at https://github.com/caskroom/homebrew-cask, it looks like the installation process has changed.  I'm happy to mentor this.
Mentor: nalexander
Hardware: x86_64 → All
Whiteboard: [lang=python][good next bug]
I had an old OS X box that I didn't keep up to date with homebrew on it. brew died and, iirc, I ended up having to run some commands to uninstall an older version of cask – looks like the ones towards the bottom of the page mentioned in comment 1:
  $ brew uninstall --force brew-cask; brew update

If we get an error with cask, we might want to suggest users with older installs look into the above.

However, it's my impression that cask is installed and upgraded with homebrew now so it sounds like we just need to remove the explicit cask installation step.
I'm more than happy to work on this. How do I get bootstrap.py to use a local copy of osx.py versus grabbing it from the tree?
This isn't happening anymore with the new bootstrap changes.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
See Also: → 1428887
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.