From f08e95449ed0c28bae4efc48997c4b31b5792435 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Thu, 26 Aug 2010 17:08:25 +0000 Subject: [PATCH] - fix timezone setup in php.ini - there's nothing to ldconfig Changed files: php.spec -> 1.893 --- php.spec | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/php.spec b/php.spec index 11272e1..e794ea8 100644 --- a/php.spec +++ b/php.spec @@ -448,7 +448,6 @@ Summary(ru.UTF-8): Разделяемые библиотеки для PHP 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 @@ -2349,18 +2348,15 @@ if [ "$1" = "0" ]; then 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 fi fi -%postun common -p /sbin/ldconfig - %posttrans common # minimizing apache restarts logics. we restart webserver: # -- 2.44.0