aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authornibbles 2bits2012-09-29 09:15:55 -0700
committerAdam Vandenberg2012-09-29 09:31:16 -0700
commitc9ce660cad1ceaeec2ad36b8b44c28e1e55985db (patch)
tree553234c2f2e11ed8260c20e26811acfcd59536e7 /Library/Formula
parent4e4517caa21647803df7e0be3cf2f18301c3b160 (diff)
downloadhomebrew-c9ce660cad1ceaeec2ad36b8b44c28e1e55985db.tar.bz2
goffice: add patch for missing pcre_info
Macports uses a patch for goffice to support the current pcre that doesn't have the symbol `pcre_info` anymore. The patch changes to use `pcre_fullinfo`. Add the patch. Fixes runtime bug using gnumeric, failure to lazy symbol load. Fixes #15171 Closes #15195. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/goffice.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/Library/Formula/goffice.rb b/Library/Formula/goffice.rb
index 63efd55e7..a192757e4 100644
--- a/Library/Formula/goffice.rb
+++ b/Library/Formula/goffice.rb
@@ -13,9 +13,28 @@ class Goffice < Formula
depends_on 'pcre'
depends_on :x11
+ # Fix for goffice trying to use a retired pcre api. Reported/source = Macports
+ # https://github.com/mxcl/homebrew/issues/15171
+ def patches
+ DATA
+ end
+
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end
+
+__END__
+--- a/goffice/utils/regutf8.c 2009-09-05 16:52:09.000000000 -0700
++++ b/goffice/utils/regutf8.c 2012-09-28 20:53:51.000000000 -0700
+@@ -155,7 +155,7 @@
+ default: return GO_REG_BADPAT;
+ }
+ } else {
+- gor->re_nsub = pcre_info (r, NULL, NULL);
++ gor->re_nsub = pcre_fullinfo (r, NULL, 0, NULL);
+ gor->nosub = (cflags & GO_REG_NOSUB) != 0;
+ return 0;
+ }