diff options
author | Remi Collet <remi@remirepo.net> | 2018-02-14 07:27:22 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2018-02-14 07:27:22 +0100 |
commit | 2eccccb428deb34a46851bf8bbe1120c88aeb0b2 (patch) | |
tree | 91d004fa1ed5de579b272fbf45a7c758bb2bfbe5 | |
parent | 7c4f7c0dccd1cb41035dc6ec5695583b53d9d054 (diff) |
update to 7.2.3RC1
adapt systzdata, fixheader and ldap_r patches
-rw-r--r-- | failed.txt | 29 | ||||
-rw-r--r-- | php-5.6.3-ldap_r.patch | 17 | ||||
-rw-r--r-- | php-7.2.3-fixheader.patch (renamed from php-7.2.2-fixheader.patch) | 8 | ||||
-rw-r--r-- | php-7.2.3-ldap_r.patch | 19 | ||||
-rw-r--r-- | php-7.2.3-systzdata-v16.patch (renamed from php-7.2.0-systzdata-v15.patch) | 31 | ||||
-rw-r--r-- | php.spec | 14 |
6 files changed, 71 insertions, 47 deletions
@@ -1,17 +1,34 @@ ===== 7.2.2 (2018-02-01) $ grep -r 'Tests failed' /var/lib/mock/scl72*/build.log -/var/lib/mock/scl72el6x/build.log:Tests failed : 0 -/var/lib/mock/scl72el7x/build.log:Tests failed : 0 -/var/lib/mock/scl70fc24x/build.log:Tests failed : 0 -/var/lib/mock/scl70fc25x/build.log:Tests failed : 0 -/var/lib/mock/scl70fc26x/build.log:Tests failed : 0 -/var/lib/mock/scl70fc27x/build.log:Tests failed : 0 +/var/lib/mock/scl72el6x/build.log:Tests failed : 2 +/var/lib/mock/scl72el7x/build.log:Tests failed : 2 +/var/lib/mock/scl70fc24x/build.log:Tests failed : 2 +/var/lib/mock/scl70fc25x/build.log:Tests failed : 2 +/var/lib/mock/scl70fc26x/build.log:Tests failed : 2 +/var/lib/mock/scl70fc27x/build.log:Tests failed : 2 +el6x, el7x, fc24x, fc25x, fc26x, fc27x: + 5 Test serialization of DateTimeZone objects [ext/date/tests/DateTimeZone_serialize_type_1.phpt] + 5 Bug #66985 (Some timezones are no longer valid in PHP 5.5.10) [ext/date/tests/bug66985.phpt] (1) proc_open give erratic test results :( (2) test issue (fixed upstream) (3) known issue (5) need investigation + + +TEST FAILURE: ../ext/date/tests/bug66985.diff -- +144+ [timezone] => -60:00 +144- [timezone] => +01:00 +149+ [timezone] => +150:0^@ +149- [timezone] => -02:30 +-- ../ext/date/tests/bug66985.diff result ends. +TEST FAILURE: ../ext/date/tests/DateTimeZone_serialize_type_1.diff -- +005+ string(6) "-60:00" +005- string(6) "+01:00" +012+ string(6) "-60:00" +012- string(6) "+01:00" + diff --git a/php-5.6.3-ldap_r.patch b/php-5.6.3-ldap_r.patch deleted file mode 100644 index b335488..0000000 --- a/php-5.6.3-ldap_r.patch +++ /dev/null @@ -1,17 +0,0 @@ - -Use -lldap_r by default. - ---- php-5.4.8/ext/ldap/config.m4.ldap_r -+++ php-5.4.8/ext/ldap/config.m4 -@@ -117,7 +117,10 @@ if test "$PHP_LDAP" != "no"; then - LDAP_PTHREAD= - fi - -- if test -f $LDAP_LIBDIR/liblber.a || test -f $LDAP_LIBDIR/liblber.$SHLIB_SUFFIX_NAME; then -+ if test -f $LDAP_LIBDIR/libldap_r.$SHLIB_SUFFIX_NAME; then -+ PHP_ADD_LIBRARY_WITH_PATH(lber, $LDAP_LIBDIR, LDAP_SHARED_LIBADD) -+ PHP_ADD_LIBRARY_WITH_PATH(ldap_r, $LDAP_LIBDIR, LDAP_SHARED_LIBADD) -+ elif test -f $LDAP_LIBDIR/liblber.a || test -f $LDAP_LIBDIR/liblber.$SHLIB_SUFFIX_NAME; then - PHP_ADD_LIBRARY_WITH_PATH(lber, $LDAP_LIBDIR, LDAP_SHARED_LIBADD) - PHP_ADD_LIBRARY_WITH_PATH(ldap, $LDAP_LIBDIR, LDAP_SHARED_LIBADD) - diff --git a/php-7.2.2-fixheader.patch b/php-7.2.3-fixheader.patch index dc2a080..076eead 100644 --- a/php-7.2.2-fixheader.patch +++ b/php-7.2.3-fixheader.patch @@ -1,8 +1,8 @@ -diff -up php-7.2.2RC1/configure.ac.fixheader php-7.2.2RC1/configure.ac ---- php-7.2.2RC1/configure.ac.fixheader 2018-01-16 09:14:15.231218443 +0100 -+++ php-7.2.2RC1/configure.ac 2018-01-16 09:17:21.740382942 +0100 +diff -up php-7.2.3RC1/configure.ac.fixheader php-7.2.3RC1/configure.ac +--- php-7.2.3RC1/configure.ac.fixheader 2018-02-14 06:09:37.792429866 +0100 ++++ php-7.2.3RC1/configure.ac 2018-02-14 06:10:33.755701362 +0100 @@ -1272,7 +1272,7 @@ EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PR - PHP_BUILD_DATE=`date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y-%m-%d` + PHP_BUILD_DATE=`date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y-%m-%d` AC_DEFINE_UNQUOTED(PHP_BUILD_DATE,"$PHP_BUILD_DATE",[PHP build date]) -PHP_UNAME=`uname -a | xargs` diff --git a/php-7.2.3-ldap_r.patch b/php-7.2.3-ldap_r.patch new file mode 100644 index 0000000..5e947cf --- /dev/null +++ b/php-7.2.3-ldap_r.patch @@ -0,0 +1,19 @@ + +Use -lldap_r by default. + +diff -up php-7.2.3RC1/ext/ldap/config.m4.ldap_r php-7.2.3RC1/ext/ldap/config.m4 +--- php-7.2.3RC1/ext/ldap/config.m4.ldap_r 2018-02-14 06:05:11.553142812 +0100 ++++ php-7.2.3RC1/ext/ldap/config.m4 2018-02-14 06:07:31.179816122 +0100 +@@ -119,7 +119,11 @@ if test "$PHP_LDAP" != "no"; then + + MACHINE_INCLUDES=$($CC -dumpmachine) + +- if test -f $LDAP_LIBDIR/liblber.a || test -f $LDAP_LIBDIR/liblber.$SHLIB_SUFFIX_NAME || test -f $LDAP_LIBDIR/$MACHINE_INCLUDES/liblber.a || test -f $LDAP_LIBDIR/$MACHINE_INCLUDES/liblber.$SHLIB_SUFFIX_NAME; then ++ if test -f $LDAP_LIBDIR/libldap_r.$SHLIB_SUFFIX_NAME; then ++ PHP_ADD_LIBRARY_WITH_PATH(lber, $LDAP_LIBDIR, LDAP_SHARED_LIBADD) ++ PHP_ADD_LIBRARY_WITH_PATH(ldap_r, $LDAP_LIBDIR, LDAP_SHARED_LIBADD) ++ ++ elif test -f $LDAP_LIBDIR/liblber.a || test -f $LDAP_LIBDIR/liblber.$SHLIB_SUFFIX_NAME || test -f $LDAP_LIBDIR/$MACHINE_INCLUDES/liblber.a || test -f $LDAP_LIBDIR/$MACHINE_INCLUDES/liblber.$SHLIB_SUFFIX_NAME; then + PHP_ADD_LIBRARY_WITH_PATH(lber, $LDAP_LIBDIR, LDAP_SHARED_LIBADD) + PHP_ADD_LIBRARY_WITH_PATH(ldap, $LDAP_LIBDIR, LDAP_SHARED_LIBADD) + diff --git a/php-7.2.0-systzdata-v15.patch b/php-7.2.3-systzdata-v16.patch index 97fd734..e488beb 100644 --- a/php-7.2.0-systzdata-v15.patch +++ b/php-7.2.3-systzdata-v16.patch @@ -5,6 +5,7 @@ Add support for use of the system timezone database, rather than embedding a copy. Discussed upstream but was not desired. History: +r16: adapt for timelib 2017.06 (in 7.2.3RC1) r15: adapt for timelib 2017.05beta7 (in 7.2.0RC1) r14: improve check for valid tz file r13: adapt for upstream changes to use PHP allocator @@ -26,9 +27,9 @@ r3: fix a crash if /usr/share/zoneinfo doesn't exist (Raphael Geissert) r2: add filesystem trawl to set up name alias index r1: initial revision -diff -up ./ext/date/lib/parse_tz.c.systzdata ./ext/date/lib/parse_tz.c ---- ./ext/date/lib/parse_tz.c.systzdata 2017-08-22 09:40:38.000000000 +0200 -+++ ./ext/date/lib/parse_tz.c 2017-08-22 12:16:00.370298079 +0200 +diff -up php-7.2.3RC1/ext/date/lib/parse_tz.c.systzdata php-7.2.3RC1/ext/date/lib/parse_tz.c +--- php-7.2.3RC1/ext/date/lib/parse_tz.c.systzdata 2018-02-13 20:18:34.000000000 +0100 ++++ php-7.2.3RC1/ext/date/lib/parse_tz.c 2018-02-14 06:14:23.484804852 +0100 @@ -25,8 +25,21 @@ #include "timelib.h" #include "timelib_private.h" @@ -266,7 +267,7 @@ diff -up ./ext/date/lib/parse_tz.c.systzdata ./ext/date/lib/parse_tz.c + } + + for (l = li[hash]; l; l = l->next) { -+ if (strcasecmp(l->name, name) == 0) ++ if (timelib_strcasecmp(l->name, name) == 0) + return l; + } + @@ -290,7 +291,7 @@ diff -up ./ext/date/lib/parse_tz.c.systzdata ./ext/date/lib/parse_tz.c +{ + const timelib_tzdb_index_entry *alpha = first, *beta = second; + -+ return strcasecmp(alpha->id, beta->id); ++ return timelib_strcasecmp(alpha->id, beta->id); +} + + @@ -493,8 +494,8 @@ diff -up ./ext/date/lib/parse_tz.c.systzdata ./ext/date/lib/parse_tz.c +static int inmem_seek_to_tz_position(const unsigned char **tzf, char *timezone, const timelib_tzdb *tzdb) { int left = 0, right = tzdb->index_size - 1; - #ifdef HAVE_SETLOCALE -@@ -419,9 +859,48 @@ static int seek_to_tz_position(const uns + +@@ -400,9 +840,48 @@ static int seek_to_tz_position(const uns return 0; } @@ -542,8 +543,8 @@ diff -up ./ext/date/lib/parse_tz.c.systzdata ./ext/date/lib/parse_tz.c +#endif } - const timelib_tzdb_index_entry *timelib_timezone_identifiers_list(timelib_tzdb *tzdb, int *count) -@@ -433,7 +912,30 @@ const timelib_tzdb_index_entry *timelib_ + const timelib_tzdb_index_entry *timelib_timezone_identifiers_list(const timelib_tzdb *tzdb, int *count) +@@ -414,7 +893,30 @@ const timelib_tzdb_index_entry *timelib_ int timelib_timezone_id_is_valid(char *timezone, const timelib_tzdb *tzdb) { const unsigned char *tzf; @@ -575,7 +576,7 @@ diff -up ./ext/date/lib/parse_tz.c.systzdata ./ext/date/lib/parse_tz.c } static int skip_64bit_preamble(const unsigned char **tzf, timelib_tzinfo *tz) -@@ -475,12 +977,14 @@ static timelib_tzinfo* timelib_tzinfo_ct +@@ -456,12 +958,14 @@ static timelib_tzinfo* timelib_tzinfo_ct timelib_tzinfo *timelib_parse_tzfile(char *timezone, const timelib_tzdb *tzdb, int *error_code) { const unsigned char *tzf; @@ -591,7 +592,7 @@ diff -up ./ext/date/lib/parse_tz.c.systzdata ./ext/date/lib/parse_tz.c tmp = timelib_tzinfo_ctor(timezone); version = read_preamble(&tzf, tmp, &type); -@@ -503,6 +1007,29 @@ timelib_tzinfo *timelib_parse_tzfile(cha +@@ -484,6 +988,29 @@ timelib_tzinfo *timelib_parse_tzfile(cha timelib_tzinfo_dtor(tmp); return NULL; } @@ -621,7 +622,7 @@ diff -up ./ext/date/lib/parse_tz.c.systzdata ./ext/date/lib/parse_tz.c if (version == 2 || version == 3) { if (!skip_64bit_preamble(&tzf, tmp)) { /* 64 bit preamble is not in place */ -@@ -520,6 +1047,9 @@ timelib_tzinfo *timelib_parse_tzfile(cha +@@ -501,6 +1028,9 @@ timelib_tzinfo *timelib_parse_tzfile(cha } else { set_default_location_and_comments(&tzf, tmp); } @@ -631,9 +632,9 @@ diff -up ./ext/date/lib/parse_tz.c.systzdata ./ext/date/lib/parse_tz.c } else { *error_code = TIMELIB_ERROR_NO_SUCH_TIMEZONE; tmp = NULL; -diff -up ./ext/date/lib/timelib.m4.systzdata ./ext/date/lib/timelib.m4 ---- ./ext/date/lib/timelib.m4.systzdata 2017-08-22 09:40:38.000000000 +0200 -+++ ./ext/date/lib/timelib.m4 2017-08-22 11:32:29.357799927 +0200 +diff -up php-7.2.3RC1/ext/date/lib/timelib.m4.systzdata php-7.2.3RC1/ext/date/lib/timelib.m4 +--- php-7.2.3RC1/ext/date/lib/timelib.m4.systzdata 2018-02-13 20:18:34.000000000 +0100 ++++ php-7.2.3RC1/ext/date/lib/timelib.m4 2018-02-14 06:11:54.273089963 +0100 @@ -81,3 +81,16 @@ io.h dnl Check for strtoll, atoll @@ -124,8 +124,8 @@ %global db_devel libdb-devel %endif -%global upver 7.2.2 -#global rcver RC1 +%global upver 7.2.3 +%global rcver RC1 Summary: PHP scripting language for creating dynamic web sites Name: %{?scl_prefix}php @@ -168,13 +168,13 @@ Patch9: php-7.0.7-curl.patch # Functional changes Patch40: php-7.1.3-dlopen.patch -Patch42: php-7.2.0-systzdata-v15.patch +Patch42: php-7.2.3-systzdata-v16.patch # See http://bugs.php.net/53436 Patch43: php-5.4.0-phpize.patch # Use -lldap_r for OpenLDAP -Patch45: php-5.6.3-ldap_r.patch +Patch45: php-7.2.3-ldap_r.patch # Make php_config.h constant across builds -Patch46: php-7.2.2-fixheader.patch +Patch46: php-7.2.3-fixheader.patch # drop "Configure command" from phpinfo output Patch47: php-5.6.3-phpinfo.patch @@ -1838,6 +1838,10 @@ fi %changelog +* Wed Feb 14 2018 Remi Collet <remi@remirepo.net> - 7.2.3~RC1-1 +- update to 7.2.3RC1 +- adapt systzdata, fixheader and ldap_r patches + * Tue Jan 30 2018 Remi Collet <remi@remirepo.net> - 7.2.2-1 - Update to 7.2.2 - http://www.php.net/releases/7_2_2.php |