Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jun 2022 05:28:48 GMT
From:      Dirk Meyer <dinoex@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 4c01200128fa - main - sysutils/racktables: fix warnings with PHP 8.0
Message-ID:  <202206260528.25Q5SmWk040136@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dinoex:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4c01200128fa6aaf6c866c01eaf98ac4fd505ba1

commit 4c01200128fa6aaf6c866c01eaf98ac4fd505ba1
Author:     Dirk Meyer <dinoex@FreeBSD.org>
AuthorDate: 2022-06-26 05:27:58 +0000
Commit:     Dirk Meyer <dinoex@FreeBSD.org>
CommitDate: 2022-06-26 05:27:58 +0000

    sysutils/racktables: fix warnings with PHP 8.0
---
 sysutils/racktables/Makefile                 |  1 +
 sysutils/racktables/files/patch-database.php | 29 ++++++++++++++++++++++++++++
 2 files changed, 30 insertions(+)

diff --git a/sysutils/racktables/Makefile b/sysutils/racktables/Makefile
index 9de900c87f84..3ca31e95f571 100644
--- a/sysutils/racktables/Makefile
+++ b/sysutils/racktables/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	racktables
 DISTVERSION=	0.22.0
+PORTREVISION=	1
 CATEGORIES?=	sysutils www
 MASTER_SITES=	SF/${PORTNAME}/
 PKGNAMESUFFIX=	${PHP_PKGNAMESUFFIX}
diff --git a/sysutils/racktables/files/patch-database.php b/sysutils/racktables/files/patch-database.php
new file mode 100644
index 000000000000..619ecd328870
--- /dev/null
+++ b/sysutils/racktables/files/patch-database.php
@@ -0,0 +1,29 @@
+--- wwwroot/inc/database.php.orig	2022-02-15 23:54:10 UTC
++++ wwwroot/inc/database.php
+@@ -4853,7 +4853,7 @@ function commitAddFile ($name, $type, $contents, $comm
+ 	}
+ }
+ 
+-function commitReplaceFile ($file_id = 0, $contents)
++function commitReplaceFile ($file_id, $contents)
+ {
+ 	global $dbxlink;
+ 	$query = $dbxlink->prepare('UPDATE File SET mtime = NOW(), contents = ?, size = LENGTH(contents), thumbnail = NULL WHERE id = ?');
+@@ -5565,7 +5565,7 @@ function makeVlanListWhere ($db_field_name, $vlan_list
+ 	return $ret;
+ }
+ 
+-function upd8021QPort ($instance = 'desired', $object_id, $port_name, $port, $before)
++function upd8021QPort ($instance, $object_id, $port_name, $port, $before)
+ {
+ 	global $tablemap_8021q;
+ 	if (!array_key_exists ($instance, $tablemap_8021q))
+@@ -5638,7 +5638,7 @@ function upd8021QPort ($instance = 'desired', $object_
+ 	return $changed ? 1 : 0;
+ }
+ 
+-function replace8021QPorts ($instance = 'desired', $object_id, $before, $changes)
++function replace8021QPorts ($instance, $object_id, $before, $changes)
+ {
+ 	$done = 0;
+ 	foreach ($changes as $pn => $port)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202206260528.25Q5SmWk040136>