mxcl/homebrew — Issue #8242: Failure while executing: /usr/bin/patch -f -p0 -i 001-homebrew.diff
Author: jylin
Created: 2011-10-23 08:47:36+00:00
State: open

Many installs are failing for me with this error (gettext, autossh, readline, etc..):

Failure while executing: /usr/bin/patch -f -p0 -i 001-homebrew.diff

brew doctor says I'm completely fine. When I run the install with -vd, I get:

```
==> Downloading patches
/usr/bin/curl -f#LA Homebrew 0.8 (Ruby 1.8.7-249; Mac OS X 10.6.8) https://trac.macports.org/export/79617/trunk/dports/devel/gettext/files/stpncpy.patch -o 001-homebrew.diff https://trac.macports.org/export/79183/trunk/dports/devel/gettext/files/patch-gettext-tools-Makefile.in -o 002-homebrew.diff
######################################################################## 100.0%
######################################################################## 100.0%
==> Patching
/usr/bin/patch -f -p0 -i 001-homebrew.diff
Error: #
/usr/local/Library/Homebrew/utils.rb:95:in `safe_system'
/usr/local/Library/Homebrew/formula.rb:683:in `patch'
/usr/local/Library/Homebrew/formula.rb:676:in `each'
/usr/local/Library/Homebrew/formula.rb:676:in `patch'
/usr/local/Library/Homebrew/formula.rb:262:in `brew'
/usr/local/Library/Homebrew/formula.rb:618:in `stage'
/usr/local/Library/Homebrew/formula.rb:547:in `mktemp'
/usr/local/Library/Homebrew/formula.rb:616:in `stage'
/usr/local/Library/Homebrew/formula.rb:260:in `brew'
/usr/local/Library/Homebrew/build.rb:53:in `install'
/usr/local/Library/Homebrew/build.rb:27
/usr/local/Library/Formula/gettext.rb:30
==> Rescuing build...
When you exit this shell Homebrew will attempt to finalise the installation.
If nothing is installed or the shell exits with a non-zero error code,
Homebrew will abort. The installation prefix is:
/usr/local/Cellar/gettext/0.18.1.1
```