diff options
author | jdolecek <jdolecek@pkgsrc.org> | 2016-07-24 13:38:54 +0000 |
---|---|---|
committer | jdolecek <jdolecek@pkgsrc.org> | 2016-07-24 13:38:54 +0000 |
commit | 7b1be94a88a61bf099b595f002e49d785511fed8 (patch) | |
tree | 915c46b78e8b0b16f8951d6e484d334421d2e13b | |
parent | 127cca08cfa370246f265b03fbc98034ab5049e8 (diff) | |
download | pkgsrc-7b1be94a88a61bf099b595f002e49d785511fed8.tar.gz |
add patch for ext/recode/recode.c also for php55
-rw-r--r-- | lang/php55/distinfo | 3 | ||||
-rw-r--r-- | lang/php55/patches/patch-ext_recode_recode.c | 22 |
2 files changed, 24 insertions, 1 deletions
diff --git a/lang/php55/distinfo b/lang/php55/distinfo index 52ae043b32b..710ffc3914f 100644 --- a/lang/php55/distinfo +++ b/lang/php55/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.55 2016/07/24 02:15:15 taca Exp $ +$NetBSD: distinfo,v 1.56 2016/07/24 13:38:54 jdolecek Exp $ SHA1 (php-5.5.38.tar.bz2) = ac79d48510e4bfe8f376d009e3ecb5b734bbc3a1 RMD160 (php-5.5.38.tar.bz2) = 2f1f0ff08c963975c6a624ecc83432cf48be3b39 @@ -16,6 +16,7 @@ SHA1 (patch-ext_pdo__mysql_config.m4) = 3526e737da25129710218e7141d5a05ae0a51390 SHA1 (patch-ext_pdo_config.m4) = 26a4ad02e5c6b7a54c3c54a6d026a3ccfed62c59 SHA1 (patch-ext_phar_Makefile.frag) = f465bb5acd4bb87bb403baa98b61ac707800fd30 SHA1 (patch-ext_phar_phar_phar.php) = 011f2d68048dbc63f5efcab4e23062daa9e8e08c +SHA1 (patch-ext_recode_recode.c) = a97a1815d6a41410f68c289debbb9396128a2159 SHA1 (patch-ext_sqlite3_libsqlite_sqlite3.c) = b384b9daa466f2a8a3e6cfd4ea6cff81f9342941 SHA1 (patch-ext_standard_basic__functions.c) = f2a44998145306c2cb2d2f3822c0e7cc70c778b4 SHA1 (patch-ext_standard_php__dns.h) = 61028fffaae8d9e590cfed7dab0bcb53eb689f96 diff --git a/lang/php55/patches/patch-ext_recode_recode.c b/lang/php55/patches/patch-ext_recode_recode.c new file mode 100644 index 00000000000..598d7ec307b --- /dev/null +++ b/lang/php55/patches/patch-ext_recode_recode.c @@ -0,0 +1,22 @@ +$NetBSD: patch-ext_recode_recode.c,v 1.1 2016/07/24 13:38:54 jdolecek Exp $ + +program_name is expected variable, is required by recode 3.5 and recode 3.6 to actually work. + +The config.m4 test for it is broken at least for some platforms - it only tests if program without it compiles, but on Solaris and MacOS/Darwin at least it only fails when run. + +--- ext/recode/recode.c.orig 2016-07-24 13:07:47.000000000 +0000 ++++ ext/recode/recode.c +@@ -29,11 +29,8 @@ + + #if HAVE_LIBRECODE + +-/* For recode 3.5 */ +-#if HAVE_BROKEN_RECODE +-extern char *program_name; +-char *program_name = "php"; +-#endif ++extern const char *program_name; ++const char *program_name = "php"; + + #ifdef HAVE_STDBOOL_H + # include <stdbool.h> |