mxcl/homebrew — Issue #9787: mysql patching process returns error
Author: ferdinandsalis
Created: 2012-01-26 01:02:37+00:00
State: open

I have updated the formula with current version of mysql since the old one return a 404 error. These are the changes,

- url 'http://downloads.mysql.com/archives/mysql-5.5/mysql-5.5.19.tar.gz'
- md5 'a78cf450974e9202bd43674860349b5a'
+ url 'http://gd.tuwien.ac.at/db/mysql/Downloads/MySQL-5.5/mysql-5.5.20-osx10.6-x86_64.tar.gz'
+ md5 '23b0a09f0aa855f761f47609c38efb70'

I run

brew install -v mysql

The patching process exits

```
→ brew install -v mysql
==> Downloading http://gd.tuwien.ac.at/db/mysql/Downloads/MySQL-5.5/mysql-5.5.20-osx10.6-x86_64.tar.gz
File already downloaded in /Users/onthego/Library/Caches/Homebrew
/usr/bin/tar xf /Users/onthego/Library/Caches/Homebrew/mysql-86.64.tar.gz
==> Patching
/usr/bin/patch -f -p1 -i 001-homebrew.diff
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/scripts/mysqld_safe.sh b/scripts/mysqld_safe.sh
|index 0d2045a..2fdd5ce 100644
|--- a/scripts/mysqld_safe.sh
|+++ b/scripts/mysqld_safe.sh
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 18
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/scripts/mysql_config.sh b/scripts/mysql_config.sh
|index 9296075..a600de2 100644
|--- a/scripts/mysql_config.sh
|+++ b/scripts/mysql_config.sh
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
Error: Failure while executing: /usr/bin/patch -f -p1 -i 001-homebrew.diff
```