Skip to content

Instantly share code, notes, and snippets.

@briandailey
Created November 23, 2011 21:09
Show Gist options
  • Save briandailey/1389920 to your computer and use it in GitHub Desktop.
Save briandailey/1389920 to your computer and use it in GitHub Desktop.
Oy.
$ brew install glib
==> Downloading ftp://ftp.gnome.org/pub/gnome/sources/glib/2.28/glib-2.28.8.tar.bz2
File already downloaded in /Users/brian/Library/Caches/Homebrew
==> Downloading patches
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
==> Patching
patching file configure.ac
Hunk #1 succeeded at 2984 (offset -153 lines).
Hunk #2 succeeded at 3021 (offset -153 lines).
Hunk #3 succeeded at 3057 (offset -153 lines).
Hunk #4 succeeded at 3199 (offset -153 lines).
Hunk #5 succeeded at 3245 (offset -153 lines).
Hunk #6 succeeded at 3257 with fuzz 2 (offset -153 lines).
Hunk #7 succeeded at 3266 (offset -156 lines).
Hunk #8 succeeded at 3596 (offset -156 lines).
patching file glib-2.0.pc.in
Hunk #1 FAILED at 12.
1 out of 1 hunk FAILED -- saving rejects to file glib-2.0.pc.in.rej
Error: Failure while executing: /usr/bin/patch -f -p0 -i 002-homebrew.diff
@stephenyeargin
Copy link

Mine failed too.

$ brew install glib
==> Installing glib dependency: libiconv
==> Downloading http://ftpmirror.gnu.org/libiconv/libiconv-1.14.tar.gz

################################################################## 100.0%

==> Downloading patches

################################################################## 100.0%
################################################################## 100.0%

==> Patching
patching file Makefile.devel
Hunk #1 succeeded at 106 (offset 1 line).
patching file lib/converters.h
patching file lib/encodings.def
patching file lib/utf8mac.h
patching file lib/flags.h
==> ./configure --disable-debug --prefix=/usr/local/Cellar/libiconv/1.14 --enable-extra-encodings
==> make -f Makefile.devel
==> make install
==> Caveats
This formula is keg-only, so it was not symlinked into /usr/local.

Mac OS X already provides this program and installing another version in
parallel can cause all kinds of trouble.

A few software packages require this newer version of libiconv.
Please use this dependency very sparingly.

Generally there are no consequences of this for you.
If you build your own software and it requires this formula, you'll need
to add its lib & include paths to your build variables:

LDFLAGS  -L/usr/local/Cellar/libiconv/1.14/lib
CPPFLAGS -I/usr/local/Cellar/libiconv/1.14/include

==> Summary
/usr/local/Cellar/libiconv/1.14: 24 files, 1.4M, built in 113 seconds
==> Installing glib
==> Downloading ftp://ftp.gnome.org/pub/gnome/sources/glib/2.28/glib-2.28.8.tar.bz2

################################################################## 100.0%
################################################################## 100.0%==> Downloading patches
################################################################## 100.0%
################################################################## 100.0%
################################################################## 100.0%
################################################################## 100.0%
################################################################## 100.0%
################################################################## 100.0%

==> Patching
patching file configure.ac
Hunk #1 succeeded at 2984 (offset -153 lines).
Hunk #2 succeeded at 3021 (offset -153 lines).
Hunk #3 succeeded at 3057 (offset -153 lines).
Hunk #4 succeeded at 3199 (offset -153 lines).
Hunk #5 succeeded at 3245 (offset -153 lines).
Hunk #6 succeeded at 3257 with fuzz 2 (offset -153 lines).
Hunk #7 succeeded at 3266 (offset -156 lines).
Hunk #8 succeeded at 3596 (offset -156 lines).
patching file glib-2.0.pc.in
Hunk #1 FAILED at 12.
1 out of 1 hunk FAILED -- saving rejects to file glib-2.0.pc.in.rej
Error: Failure while executing: /usr/bin/patch -f -p0 -i 002-homebrew.diff

@djedi
Copy link

djedi commented Nov 23, 2011

+1

@chaako
Copy link

chaako commented Nov 24, 2011

The patch it's trying to apply (https://svn.macports.org/repository/macports/trunk/dports/devel/glib2/files/patch-glib-2.0.pc.in.diff) does not match the corresponding file...I got around this by deleting ' @GLIB_RT_LIBS@' from the line ' Libs.private: @ICONV_LIBS@ @GLIB_RT_LIBS@' in a local copy of the patch, and then editing the brew to use my local copy of the patch (replacing the appropriate 'mp' with '"/folder/patch/is/in."').

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment