]> git.pld-linux.org Git - packages/php.git/commitdiff
setup timezone in %posttrans, not %post auto/th/php56-5.6.26-2
authorElan Ruusamäe <glen@delfi.ee>
Tue, 4 Oct 2016 12:38:32 +0000 (15:38 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Tue, 4 Oct 2016 12:40:39 +0000 (15:40 +0300)
this ensures that php.ini timezone is actually set if php and tzdata
pacakge are installed in same transaction

php.spec

index 5f8bb3a46f3ff051506f0f7505c77701bbf8ac91..2a1e72cbc54d78067b55cf42616739d87c5691ae 100644 (file)
--- a/php.spec
+++ b/php.spec
@@ -149,7 +149,7 @@ ERROR: You need to select at least one Apache SAPI to build shared modules.
 %undefine      with_filter
 %endif
 
-%define                rel     1
+%define                rel     2
 %define                orgname php
 %define                ver_suffix 56
 %define                php_suffix %{!?with_default_php:%{ver_suffix}}
@@ -2818,7 +2818,7 @@ fi
 %post  embedded -p /sbin/ldconfig
 %postun        embedded -p /sbin/ldconfig
 
-%post common
+%posttrans common
 # PHP 5.3 requires timezone being setup, try setup it from tzdata
 if ! grep -q '^date.timezone[[:space:]]*=' %{_sysconfdir}/php.ini && [ -f /etc/sysconfig/timezone ]; then
        TIMEZONE=
@@ -2828,7 +2828,6 @@ if ! grep -q '^date.timezone[[:space:]]*=' %{_sysconfdir}/php.ini && [ -f /etc/s
        fi
 fi
 
-%posttrans common
 # minimizing apache restarts logics. we restart webserver:
 #
 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
This page took 0.060256 seconds and 4 git commands to generate.