Subject: pkg/36211: Upgrade pear-Date 1.4.3 to 1.4.7
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Loic Hoguin <essen@dev-extend.eu>
List: pkgsrc-bugs
Date: 04/25/2007 10:30:00
>Number:         36211
>Category:       pkg
>Synopsis:       Upgrade pear-Date 1.4.3 to 1.4.7
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 25 10:30:00 +0000 2007
>Originator:     Loic Hoguin
>Release:        NetBSD 4.99.17 amd64
>Organization:
Dev:Extend 
>Environment:


System: NetBSD 4.99.17 (BLACKROSE) #9: Fri Apr 20 20:30:21 CEST 2007
	root@blackrose.dev-extend.eu:/usr/obj/sys/arch/amd64/compile/BLACKROSE



>Description:


I'm working on a package called Oreon for pkgsrc-wip that require at least pear-Date 1.4.7, so it would be nice if our pear-Date package could be updated rather than creating a new one in wip.


>How-To-Repeat:





>Fix:


Apply this patch:

--- pear-Date.patch begins here ---
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/time/pear-Date/Makefile,v
retrieving revision 1.8
diff -r1.8 Makefile
3c3
< DISTNAME=	Date-1.4.3
---
> DISTNAME=	Date-1.4.7
Index: PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/time/pear-Date/PLIST,v
retrieving revision 1.1.1.1
diff -r1.1.1.1 PLIST
1c1
< @comment $NetBSD: PLIST,v 1.1.1.1 2003/12/17 19:06:56 jdolecek Exp $
---
> @comment $NetBSD$
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/time/pear-Date/distinfo,v
retrieving revision 1.3
diff -r1.3 distinfo
3,5c3,5
< SHA1 (pear/Date-1.4.3.tgz) = 28b85922ae688dccfe07a1c23ce069a9a3404bb5
< RMD160 (pear/Date-1.4.3.tgz) = 238911a8446fff52140d8a08156fcaa0c8d7feee
< Size (pear/Date-1.4.3.tgz) = 42048 bytes
---
> SHA1 (pear/Date-1.4.7.tgz) = f5775798763ff1a8320c892bf7c4d2a27f49e342
> RMD160 (pear/Date-1.4.7.tgz) = 1e1bb2fb0a58e31f271945b98cbe8e282ef894b1
> Size (pear/Date-1.4.7.tgz) = 55754 bytes
--- pear-Date.patch ends here ---

Here is the changelog for the new versions:

1.4.7:
* Fix bug #8912: putenv() causes crashes in DateTimeZone::inDaylightTime() under windows
* Fix bug #9409: Date_Calc, fatal error using a non-array variable as an array
* Fix bug #9414: Date::addSeconds() fails to work properly with negative numbers
* Many cosmetics update
* Moved bug test files to tests/bugs/
* Removed unused files

1.4.6:
- Change license from PHP License to new BSD License
- Bug #5715 fypo, missing s in $GLOBALS

1.4.5:
Same code base as 1.4.4-beta
See 1.4.4 changelog for details

1.4.4:
- Establish the DATE_CALC_FORMAT constant
and use it as the default value for each
of the Date_Calc class' method's $format
parameter.
- Add beginOfMonthBySpan() and
endOfMonthBySpan() methods to Date_Calc.
- Use integers for the parameters in
Date_Calc instead of strings.
- Tweak Date_Calc::NWeekdayOfMonth() so it
can calculate the 'last' given weekday of
a month.
- #1640. Make sure all longname's are also
keys in $GLOBALS['_DATE_TIMEZONE_DATA']. Makes
Date_TimeZone work under more operating systems.
- #5420, missing CEST
- #3846, getYear, getMonth returns integer
- #2652, add %h and %i support (rob at wildlime dot com
- #5494, force dot as decimal separator
- #3022, allow to specify the weekday abbrevation length used in ::format()
- #4878, %s padding fix when < 10 ( aashley at optimiser dot com)
- #3059, use GLOBALS in date_span