[packages/owncloud] do not enable strict mode, too many violations in PEAR code
glen
glen at pld-linux.org
Wed Jan 23 00:20:07 CET 2013
commit 178fd4186c71eb5a693cce80afd6e92d4e39114b
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Jan 23 01:19:28 2013 +0200
do not enable strict mode, too many violations in PEAR code
owncloud.spec | 2 ++
pear-not-strict.patch | 14 ++++++++++++++
2 files changed, 16 insertions(+)
---
diff --git a/owncloud.spec b/owncloud.spec
index 8dde74c..4f4748c 100644
--- a/owncloud.spec
+++ b/owncloud.spec
@@ -24,6 +24,7 @@ Source2: apache.conf
Source3: lighttpd.conf
Patch0: system-pear.patch
Patch1: system-config.patch
+Patch2: pear-not-strict.patch
URL: http://owncloud.org
BuildRequires: rpmbuild(macros) >= 1.268
Requires: getid3
@@ -73,6 +74,7 @@ ownCloud server on their devices.
%setup -q -n %{name}
%patch0 -p1
%patch1 -p1
+%patch2 -p1
# remove bundled 3rdparty libs
%{__rm} -r 3rdparty/{class.phpmailer.php,class.smtp.php,getid3,Archive,Console,Crypt_Blowfish,MDB2,MDB2.php,XML}
diff --git a/pear-not-strict.patch b/pear-not-strict.patch
new file mode 100644
index 0000000..c285fc8
--- /dev/null
+++ b/pear-not-strict.patch
@@ -0,0 +1,14 @@
+--- owncloud/lib/base.php~ 2013-01-21 22:47:28.000000000 +0200
++++ owncloud/lib/base.php 2013-01-23 01:16:31.774667432 +0200
+@@ -276,9 +276,10 @@
+
+ // set some stuff
+ //ob_start();
+- error_reporting(E_ALL | E_STRICT);
++ error_reporting(E_ALL);
+ if (defined('DEBUG') && DEBUG) {
+ ini_set('display_errors', 1);
++ error_reporting(E_ALL| E_STRICT);
+ }
+ self::$CLI=(php_sapi_name() == 'cli');
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/owncloud.git/commitdiff/178fd4186c71eb5a693cce80afd6e92d4e39114b
More information about the pld-cvs-commit
mailing list