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
@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