public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: jorton <jorton@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/php] private-php86: * Thu Jul 16 2009 Joe Orton <jorton@redhat.com> 5.3.0-4
Date: Fri, 27 Nov 2026 07:24:13 GMT	[thread overview]
Message-ID: <179576425391.1.16393538075702462446.rpms-php-5f68886a6304@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/php
            Branch : private-php86
            Commit : 5f68886a6304c06b219135b13832ba05bf65b2ce
            Author : jorton <jorton@fedoraproject.org>
            Date   : 2009-07-16T22:32:30+00:00
            Stats  : +33/-34 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/php/c/5f68886a6304c06b219135b13832ba05bf65b2ce?branch=private-php86

            Log:
            * Thu Jul 16 2009 Joe Orton <jorton@redhat.com> 5.3.0-4
- rediff systzdata patch

---
diff --git a/php-5.3.0-systzdata-v6.patch b/php-5.3.0-systzdata-v6.patch
index 687c0ec..02bf3db 100644
--- a/php-5.3.0-systzdata-v6.patch
+++ b/php-5.3.0-systzdata-v6.patch
@@ -16,30 +16,8 @@ r1: initial revision
 
 Index: ext/date/lib/timelib.m4
 ===================================================================
---- ext/date/lib/timelib.m4	(revision 284069)
-+++ ext/date/lib/timelib.m4	(working copy)
-@@ -78,3 +78,17 @@
- 
- dnl Check for strtoll, atoll
- AC_CHECK_FUNCS(strtoll atoll strftime)
-+
-+PHP_ARG_WITH(system-tzdata, for use of system timezone data,
-+[  --with-system-tzdata[=DIR]      to specify use of system timezone data],
-+no, no)
-+
-+if test "$PHP_SYSTEM_TZDATA" != "no"; then
-+   AC_DEFINE(HAVE_SYSTEM_TZDATA, 1, [Define if system timezone data is used])
-+
-+   if test "$PHP_SYSTEM_TZDATA" != "yes"; then
-+      AC_DEFINE_UNQUOTED(HAVE_SYSTEM_TZDATA_PREFIX, "$PHP_SYSTEM_TZDATA",
-+                         [Define for location of system timezone data])
-+   fi
-+fi
-+
-Index: ext/date/lib/parse_tz.c
-===================================================================
---- ext/date/lib/parse_tz.c	(revision 284069)
-+++ ext/date/lib/parse_tz.c	(working copy)
+--- php-5.3.0/ext/date/lib/parse_tz.c.systzdata
++++ php-5.3.0/ext/date/lib/parse_tz.c
 @@ -20,6 +20,16 @@
  
  #include "timelib.h"
@@ -57,7 +35,7 @@ Index: ext/date/lib/parse_tz.c
  #include <stdio.h>
  
  #ifdef HAVE_LOCALE_H
-@@ -31,8 +41,13 @@
+@@ -31,7 +41,12 @@
  #else
  #include <strings.h>
  #endif
@@ -65,12 +43,11 @@ Index: ext/date/lib/parse_tz.c
 +#ifndef HAVE_SYSTEM_TZDATA
  #include "timezonedb.h"
 +#endif
- 
-+#include <ctype.h>
 +
++#include <ctype.h>
+ 
  #if (defined(__APPLE__) || defined(__APPLE_CC__)) && (defined(__BIG_ENDIAN__) || defined(__LITTLE_ENDIAN__))
  # if defined(__LITTLE_ENDIAN__)
- #  undef WORDS_BIGENDIAN
 @@ -51,9 +66,14 @@
  
  static void read_preamble(const unsigned char **tzf, timelib_tzinfo *tz)
@@ -89,7 +66,7 @@ Index: ext/date/lib/parse_tz.c
  	/* read BC flag */
  	tz->bc = (**tzf == '\1');
  	*tzf += 1;
-@@ -253,8 +273,391 @@
+@@ -253,7 +273,390 @@ void timelib_dump_tzinfo(timelib_tzinfo 
  	}
  }
  
@@ -122,7 +99,7 @@ Index: ext/date/lib/parse_tz.c
 +#define LOCINFO_HASH_SIZE (1021)
 +
 +static uint32_t tz_hash(const char *str)
- {
++{
 +    const unsigned char *p = (const unsigned char *)str;
 +    uint32_t hash = 5381;
 +    int c;
@@ -478,11 +455,10 @@ Index: ext/date/lib/parse_tz.c
 +#endif
 +
 +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
- 	char *cur_locale = NULL, *tmp;
-@@ -292,36 +695,124 @@
+@@ -292,36 +695,124 @@ static int seek_to_tz_position(const uns
  	return 0;
  }
  
@@ -610,3 +586,23 @@ Index: ext/date/lib/parse_tz.c
  	} else {
  		tmp = NULL;
  	}
+--- php-5.3.0/ext/date/lib/timelib.m4.systzdata
++++ php-5.3.0/ext/date/lib/timelib.m4
+@@ -78,3 +78,17 @@ stdlib.h
+ 
+ dnl Check for strtoll, atoll
+ AC_CHECK_FUNCS(strtoll atoll strftime)
++
++PHP_ARG_WITH(system-tzdata, for use of system timezone data,
++[  --with-system-tzdata[=DIR]      to specify use of system timezone data],
++no, no)
++
++if test "$PHP_SYSTEM_TZDATA" != "no"; then
++   AC_DEFINE(HAVE_SYSTEM_TZDATA, 1, [Define if system timezone data is used])
++
++   if test "$PHP_SYSTEM_TZDATA" != "yes"; then
++      AC_DEFINE_UNQUOTED(HAVE_SYSTEM_TZDATA_PREFIX, "$PHP_SYSTEM_TZDATA",
++                         [Define for location of system timezone data])
++   fi
++fi
++

diff --git a/php.spec b/php.spec
index c68c5cc..63f60b2 100644
--- a/php.spec
+++ b/php.spec
@@ -13,7 +13,7 @@
 Summary: PHP scripting language for creating dynamic web sites
 Name: php
 Version: 5.3.0
-Release: 3%{?dist}
+Release: 4%{?dist}
 License: PHP
 Group: Development/Languages
 URL: http://www.php.net/
@@ -843,6 +843,9 @@ rm files.* macros.php
 %files enchant -f files.enchant
 
 %changelog
+* Thu Jul 16 2009 Joe Orton <jorton@redhat.com> 5.3.0-4
+- rediff systzdata patch
+
 * Thu Jul 16 2009 Joe Orton <jorton@redhat.com> 5.3.0-3
 - update to v6 of systzdata patch; various fixes
 

                 reply	other threads:[~2026-11-27  7:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179576425391.1.16393538075702462446.rpms-php-5f68886a6304@fedoraproject.org \
    --to=jorton@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox