pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/php55 add patch for ext/recode/recode.c also for ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d7d879ceb59f
branches:  trunk
changeset: 350193:d7d879ceb59f
user:      jdolecek <jdolecek%pkgsrc.org@localhost>
date:      Sun Jul 24 13:38:54 2016 +0000

description:
add patch for ext/recode/recode.c also for php55

diffstat:

 lang/php55/distinfo                          |   3 ++-
 lang/php55/patches/patch-ext_recode_recode.c |  22 ++++++++++++++++++++++
 2 files changed, 24 insertions(+), 1 deletions(-)

diffs (43 lines):

diff -r af1f065d9549 -r d7d879ceb59f lang/php55/distinfo
--- a/lang/php55/distinfo       Sun Jul 24 13:29:56 2016 +0000
+++ b/lang/php55/distinfo       Sun Jul 24 13:38:54 2016 +0000
@@ -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_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 -r af1f065d9549 -r d7d879ceb59f lang/php55/patches/patch-ext_recode_recode.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/php55/patches/patch-ext_recode_recode.c      Sun Jul 24 13:38:54 2016 +0000
@@ -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>



Home | Main Index | Thread Index | Old Index