pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/davical Newer PHP versions (8.1 here) want global ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/14701d85d98b
branches:  trunk
changeset: 385347:14701d85d98b
user:      hauke <hauke%pkgsrc.org@localhost>
date:      Thu Sep 15 12:59:15 2022 +0000

description:
Newer PHP versions (8.1 here) want global variables imported to
functions explicitly.

The patch fixes
<https://gitlab.com/davical-project/davical/-/issues/271>.

diffstat:

 www/davical/Makefile                                |   4 ++--
 www/davical/distinfo                                |   3 ++-
 www/davical/patches/patch-inc_ui_principal-edit.php |  15 +++++++++++++++
 3 files changed, 19 insertions(+), 3 deletions(-)

diffs (49 lines):

diff -r 7ae8b5979285 -r 14701d85d98b www/davical/Makefile
--- a/www/davical/Makefile      Thu Sep 15 11:53:05 2022 +0000
+++ b/www/davical/Makefile      Thu Sep 15 12:59:15 2022 +0000
@@ -1,10 +1,10 @@
-# $NetBSD: Makefile,v 1.50 2022/06/28 11:37:03 wiz Exp $
+# $NetBSD: Makefile,v 1.51 2022/09/15 12:59:15 hauke Exp $
 
 DAVICAL_VERSION=       1.1.10
 
 DISTNAME=      davical-${DAVICAL_VERSION}
 PKGNAME=       ${PHP_PKG_PREFIX}-davical-${DAVICAL_VERSION}
-PKGREVISION=   2
+PKGREVISION=   3
 CATEGORIES=    www
 # Remove DIST_SUBDIR on next update!
 DIST_SUBDIR=   davical-${DAVICAL_VERSION}
diff -r 7ae8b5979285 -r 14701d85d98b www/davical/distinfo
--- a/www/davical/distinfo      Thu Sep 15 11:53:05 2022 +0000
+++ b/www/davical/distinfo      Thu Sep 15 12:59:15 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.22 2022/06/27 06:50:07 nia Exp $
+$NetBSD: distinfo,v 1.23 2022/09/15 12:59:15 hauke Exp $
 
 BLAKE2s (davical-1.1.10/davical-1.1.10.tar.gz) = 160dcd270bb2c87c26dd3662f748caeec2f48d95124ff53ea87fc0637e1bd8dc
 SHA512 (davical-1.1.10/davical-1.1.10.tar.gz) = c46b75c2a9605ebb9db801b4cc28b4ea340992b0e59e8b2598e93ac22e64aacbed9da2e0485bc1c01291e03f444ed4c03095674570c66a4cc8939903f40e7bd4
@@ -8,3 +8,4 @@
 SHA1 (patch-ac) = 357abb2ad470121f3f30d19a4602692c77661872
 SHA1 (patch-ad) = ecbac45e18ed6cea2915caadfb4dca1a2ce32667
 SHA1 (patch-ae) = cb753f0490ef3e5c5d8ff67b8d0aec7c4fe7d384
+SHA1 (patch-inc_ui_principal-edit.php) = 57d69d52d036d942f043299dd9f66ea8ab40bf96
diff -r 7ae8b5979285 -r 14701d85d98b www/davical/patches/patch-inc_ui_principal-edit.php
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/davical/patches/patch-inc_ui_principal-edit.php       Thu Sep 15 12:59:15 2022 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-inc_ui_principal-edit.php,v 1.1 2022/09/15 12:59:16 hauke Exp $
+
+PHP 8.1 mandates globals be declared.
+Fixes <https://gitlab.com/davical-project/davical/-/issues/271>
+
+--- inc/ui/principal-edit.php.orig     2021-03-01 13:24:48.000000000 +0000
++++ inc/ui/principal-edit.php
+@@ -180,6 +180,7 @@ function handle_subaction( $subaction ) 
+ 
+ function principal_editor() {
+   global $c, $id, $can_write_principal, $session;
++  global $privilege_names;
+   $editor = new Editor(translate('Principal'), 'dav_principal');
+ 
+   $editor->SetLookup( 'date_format_type', "SELECT 'E', 'European' UNION SELECT 'U', 'US Format' UNION SELECT 'I', 'ISO Format'" );



Home | Main Index | Thread Index | Old Index