pkgsrc-Changes archive

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

CVS commit: pkgsrc/www/davical



Module Name:    pkgsrc
Committed By:   hauke
Date:           Thu Sep 15 12:59:16 UTC 2022

Modified Files:
        pkgsrc/www/davical: Makefile distinfo
Added Files:
        pkgsrc/www/davical/patches: patch-inc_ui_principal-edit.php

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

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


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 pkgsrc/www/davical/Makefile
cvs rdiff -u -r1.22 -r1.23 pkgsrc/www/davical/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/www/davical/patches/patch-inc_ui_principal-edit.php

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/www/davical/Makefile
diff -u pkgsrc/www/davical/Makefile:1.50 pkgsrc/www/davical/Makefile:1.51
--- pkgsrc/www/davical/Makefile:1.50    Tue Jun 28 11:37:03 2022
+++ pkgsrc/www/davical/Makefile Thu Sep 15 12:59:15 2022
@@ -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}

Index: pkgsrc/www/davical/distinfo
diff -u pkgsrc/www/davical/distinfo:1.22 pkgsrc/www/davical/distinfo:1.23
--- pkgsrc/www/davical/distinfo:1.22    Mon Jun 27 06:50:07 2022
+++ pkgsrc/www/davical/distinfo Thu Sep 15 12:59:15 2022
@@ -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-ab) = 7ae06c595f54d3a959db48
 SHA1 (patch-ac) = 357abb2ad470121f3f30d19a4602692c77661872
 SHA1 (patch-ad) = ecbac45e18ed6cea2915caadfb4dca1a2ce32667
 SHA1 (patch-ae) = cb753f0490ef3e5c5d8ff67b8d0aec7c4fe7d384
+SHA1 (patch-inc_ui_principal-edit.php) = 57d69d52d036d942f043299dd9f66ea8ab40bf96

Added files:

Index: pkgsrc/www/davical/patches/patch-inc_ui_principal-edit.php
diff -u /dev/null pkgsrc/www/davical/patches/patch-inc_ui_principal-edit.php:1.1
--- /dev/null   Thu Sep 15 12:59:16 2022
+++ pkgsrc/www/davical/patches/patch-inc_ui_principal-edit.php  Thu Sep 15 12:59:16 2022
@@ -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