summary refs log tree commit diff
path: root/pkgs/development/libraries/goffice
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2013-02-23 19:16:42 +0100
committerVladimír Čunát <vcunat@gmail.com>2013-02-23 19:16:42 +0100
commit06cd4df3b1dbd404f0008029c4c1195f5855a65e (patch)
treed24aa79ac6ab1117137ade476efe96c2d269240c /pkgs/development/libraries/goffice
parent80ccdf1a23881d0a46a143592ee58b24b2d22614 (diff)
downloadnixpkgs-06cd4df3b1dbd404f0008029c4c1195f5855a65e.tar
nixpkgs-06cd4df3b1dbd404f0008029c4c1195f5855a65e.tar.gz
nixpkgs-06cd4df3b1dbd404f0008029c4c1195f5855a65e.tar.bz2
nixpkgs-06cd4df3b1dbd404f0008029c4c1195f5855a65e.tar.lz
nixpkgs-06cd4df3b1dbd404f0008029c4c1195f5855a65e.tar.xz
nixpkgs-06cd4df3b1dbd404f0008029c4c1195f5855a65e.tar.zst
nixpkgs-06cd4df3b1dbd404f0008029c4c1195f5855a65e.zip
goffice_0_8: finally fix
Diffstat (limited to 'pkgs/development/libraries/goffice')
-rw-r--r--pkgs/development/libraries/goffice/default.nix3
-rw-r--r--pkgs/development/libraries/goffice/pcre_info.patch13
2 files changed, 16 insertions, 0 deletions
diff --git a/pkgs/development/libraries/goffice/default.nix b/pkgs/development/libraries/goffice/default.nix
index 1eaa1baf86d..14da5f3468b 100644
--- a/pkgs/development/libraries/goffice/default.nix
+++ b/pkgs/development/libraries/goffice/default.nix
@@ -10,6 +10,9 @@ stdenv.mkDerivation rec {
     sha256 = "165070beb67b84580afe80a8a100b674a81d553ab791acd72ac0c655f4fadb15";
   };
 
+  # fix linking error: undefined reference to pcre_info
+  patches = [ ./pcre_info.patch ]; # inspired by https://bugs.php.net/bug.php?id=60986
+
   buildInputs = [
     pkgconfig libglade bzip2 libart intltool gettext
     gconf libgnomeui pcre
diff --git a/pkgs/development/libraries/goffice/pcre_info.patch b/pkgs/development/libraries/goffice/pcre_info.patch
new file mode 100644
index 00000000000..cd4ef3c9fed
--- /dev/null
+++ b/pkgs/development/libraries/goffice/pcre_info.patch
@@ -0,0 +1,13 @@
+diff --git a/goffice/utils/regutf8.c b/goffice/utils/regutf8.c
+index bc4aae4..3adb696 100644
+--- a/goffice/utils/regutf8.c
++++ b/goffice/utils/regutf8.c
+@@ -155,7 +155,7 @@ go_regcomp (GORegexp *gor, const char *pat, int cflags)
+ 		default: return GO_REG_BADPAT;
+ 		}
+ 	} else {
+-		gor->re_nsub = pcre_info (r, NULL, NULL);
++		gor->re_nsub = pcre_fullinfo (r, NULL, NULL, NULL);
+ 		gor->nosub = (cflags & GO_REG_NOSUB) != 0;
+ 		return 0;
+ 	}