mxcl/homebrew — Issue #8907: Glib patch URL gives 404 error
Author: rwest
Created: 2011-12-01 04:11:24+00:00
State: open

When I `brew upgrade glib` I get

```
==> Upgrading glib
==> Downloading ftp://ftp.gnome.org/pub/gnome/sources/glib/2.28/glib-2.28.8.tar.bz
File already downloaded in /Users/rwest/Library/Caches/Homebrew
==> Downloading patches

curl: (22) The requested URL returned error: 404
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
==> Patching
/usr/bin/patch: **** Can't open patch file 001-homebrew.diff : No such file or directory
Error: Failure while executing: /usr/bin/patch -f -p0 -i 001-homebrew.diff
```

The recipe defines

``` ruby
def patches
mp = "https://svn.macports.org/repository/macports/trunk/dports/devel/glib2/files/"
{
:p0 => [
mp+"patch-configure.ac.diff",
mp+"patch-glib-2.0.pc.in.diff",
mp+"patch-glib_gunicollate.c.diff",
mp+"patch-gi18n.h.diff",
mp+"patch-gio_xdgmime_xdgmime.c.diff",
mp+"patch-gio_gdbusprivate.c.diff"
]
}
end
```

but the list of files at https://svn.macports.org/repository/macports/trunk/dports/devel/glib2/files/ is different