packages: php/php.spec - fix timezone setup in php.ini - there's nothing to...

Pawel Golaszewski blues w pld-linux.org
Czw, 26 Sie 2010, 19:25:12 CEST


On Thu, 26 Aug 2010, glen wrote:
> Author: glen                         Date: Thu Aug 26 17:08:31 2010 GMT
> Module: packages                      Tag: HEAD
> ---- Log message:
> - fix timezone setup in php.ini
> - there's nothing to ldconfig
> 
> ---- Files affected:
> packages/php:
>    php.spec (1.892 -> 1.893) 
> 
> ---- Diffs:
> 
> ================================================================
> Index: packages/php/php.spec
> diff -u packages/php/php.spec:1.892 packages/php/php.spec:1.893
> --- packages/php/php.spec:1.892	Thu Aug 26 19:00:17 2010
> +++ packages/php/php.spec	Thu Aug 26 19:08:25 2010
> @@ -449,7 +449,6 @@
>  Summary(uk.UTF-8):	Бібліотеки спільного використання для PHP
>  Group:		Libraries
>  Requires(post):	sed >= 4.0
> -Requires(post):	/sbin/ldconfig
>  # because of dlclose() bugs in glibc <= 2.3.4 causing SEGVs on exit
>  Requires:	glibc >= 6:2.3.5
>  Requires:	php-dirs
> @@ -2350,18 +2349,15 @@
>  fi
>  
>  %post common
> -/sbin/ldconfig
>  # PHP 5.3 requires timezone being setup, try setup it from tzdata
>  if [ -f /etc/sysconfig/timezone ]; then
>  	TIMEZONE=
>  	. /etc/sysconfig/timezone
>  	if [ "$TIMEZONE" ]; then
> -		%{__sed} -i -e "s,^;date.timezone = .*,date.timezone = $TIMEZONE," /etc/php/php.ini
> +		%{__sed} -i -e "s,^;date.timezone\s*=.*,date.timezone = $TIMEZONE," /etc/php/php.ini

no.
It will break existing configurations...

Example file:
[...]
;date.timezone = dupa
date.timezone = GMT
;date.timezone = dupa
[...]


Do this only when option is not set.


-- 
pozdr.  Paweł Gołaszewski          jid:blues<at>jabber<dot>gda<dot>pl
--------------------------------------------------------------------------
If you think of MS-DOS as mono, and Windows as stereo, then Linux is Dolby
Pro-Logic Surround Sound with Bass Boost and all the music is free.


Więcej informacji o liście dyskusyjnej pld-devel-pl