[packages/glibc] restart httpd on glibc upgrade

glen glen at pld-linux.org
Mon Oct 12 09:05:16 CEST 2015


commit 11d95e417db2b70fe521b4820fe207c95b179762
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Oct 12 10:03:58 2015 +0300

    restart httpd on glibc upgrade
    
    otherwise httpd will die on next logrotate with:
    
    Syntax error on line 70 of /etc/httpd/apache.conf:
    Syntax error on line 1 of /etc/httpd/conf.d/70_mod_php.conf:
    Cannot load modules/libphp5.so into server: /lib/libresolv.so.2:
    symbol __h_errno, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference

 glibc.spec | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/glibc.spec b/glibc.spec
index 36a2d7b..369a722 100644
--- a/glibc.spec
+++ b/glibc.spec
@@ -41,7 +41,7 @@ Summary(tr.UTF-8):	GNU libc
 Summary(uk.UTF-8):	GNU libc версії
 Name:		glibc
 Version:	%{core_version}
-Release:	7
+Release:	8
 Epoch:		6
 License:	LGPL v2.1+
 Group:		Libraries
@@ -1309,6 +1309,11 @@ if [ "$1" != 1 ]; then
 	%service -q crond restart
 fi
 
+%triggerin -- apache-base
+if [ "$1" != 1 ]; then
+	%service -q httpd restart
+fi
+
 %ifarch %{x8664}
 # when upgrading from glibc < 6:2.19-3 copy locale-archive
 # from /usr/lib64/locale to /usr/lib/locale
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/glibc.git/commitdiff/11d95e417db2b70fe521b4820fe207c95b179762



More information about the pld-cvs-commit mailing list