packages: php-gtk2/php-gtk2.spec - do not autoload extension; rel 2

glen glen at pld-linux.org
Fri Aug 20 12:10:56 CEST 2010


Author: glen                         Date: Fri Aug 20 10:10:56 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- do not autoload extension; rel 2

---- Files affected:
packages/php-gtk2:
   php-gtk2.spec (1.53 -> 1.54) 

---- Diffs:

================================================================
Index: packages/php-gtk2/php-gtk2.spec
diff -u packages/php-gtk2/php-gtk2.spec:1.53 packages/php-gtk2/php-gtk2.spec:1.54
--- packages/php-gtk2/php-gtk2.spec:1.53	Thu Jun  3 18:38:21 2010
+++ packages/php-gtk2/php-gtk2.spec	Fri Aug 20 12:10:50 2010
@@ -1,13 +1,13 @@
 # $Revision$, $Date$
 # NOTE:
 #  - fails to build on Ac: http://bugs.php.net/bug.php?id=41720
-#
+#  - make NOT fail if $DISPLAY not present, or we can't autoload package
 %define		modname	gtk2
 Summary:	PHP language bindings for GTK+ toolkit
 Summary(pl.UTF-8):	Moduł PHP z wiązaniami do GTK+
 Name:		php-gtk2
 Version:	2.0.2
-Release:	1
+Release:	2
 License:	GPL
 Group:		Libraries
 #Source0:	http://gtk.php.net/distributions/php-gtk-%{version}.tar.gz
@@ -70,9 +70,14 @@
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
 install -p modules/php_gtk2.so $RPM_BUILD_ROOT%{php_extensiondir}/%{modname}.so
+# NOTE:
+# - makes php unusable if loaded automatically and $DISPLAY not present:
+# $ php -r
+# PHP Fatal error:  php-gtk: Could not open display in Unknown on line 0
 cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
 ; Enable %{modname} extension module
-extension=%{modname}.so
+; DO NOT load automatically, as it requires DISPLAY being present
+;extension=%{modname}.so
 EOF
 
 %clean
@@ -90,6 +95,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.54  2010/08/20 10:10:50  glen
+- do not autoload extension; rel 2
+
 Revision 1.53  2010/06/03 16:38:21  glen
 - drop object.patch, seems bogus and no info what it is supposed to do
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/php-gtk2/php-gtk2.spec?r1=1.53&r2=1.54&f=u



More information about the pld-cvs-commit mailing list