Le Wed, May 22, 2024 at 02:28:08PM +0200, Landry Breuil a écrit :
> Le Wed, May 22, 2024 at 12:43:20PM +0100, Stuart Henderson a écrit :
> > I intend to drop php/7.4 and php/8.0 soon (both are out of security
> > support). The following ports/subpackages are setup to use 7.4 at the
> > moment, if anyone's interested in them could you take a look at updating
> > or patching to support 8.1+ please?
> > 
> > misc/gpsd,-php (is anyone using the php part? does it already work?)
> 
> i've had a quick look at this one,
> https://gitlab.com/gpsd/gpsd/-/issues/231 seems to say it should work
> with php 8.1 using
> https://gitlab.com/neonkingfr/gpsd/-/commit/cedd5b49d38ccdb60786a1657528a92681bb0d12
> 
> all that to say the port itself can be safely updated to 8.1, because i
> doubt anyone actually uses the php file :)
> wont be able to test shortly as i dont have my usb gps handy..
> 
> > www/racktables (still active upstream, looks like it has php8+ fixes)
> 
> will have a look at this one, since i wanted to test netbox, might
> aswell try racktables..

i've been able to run the racktables installed on php 8.1 with the
attached diff. I gave up trying to apply
https://github.com/RackTables/racktables/pull/285 the same way for php
8.2 because one of the commits patches test files which arent present in
the original distfile, and patch -f still returns an error code, so that
would require using directly github via DIST_TUPLE (can do that to pull
master which includes the PR for php 8.0).

Landry
Index: Makefile
===================================================================
RCS file: /cvs/ports/www/racktables/Makefile,v
diff -u -r1.30 Makefile
--- Makefile    27 Sep 2023 19:13:05 -0000      1.30
+++ Makefile    22 May 2024 13:14:48 -0000
@@ -1,8 +1,8 @@
 COMMENT=       web-based rack/IP management
 
 DISTNAME=      RackTables-0.22.0
-MODPHP_VERSION=        7.4
 PKGNAME=       ${DISTNAME:L}
+REVISION=      0
 CATEGORIES=    www
 
 HOMEPAGE=      https://www.racktables.org/
@@ -11,6 +11,12 @@
 PERMIT_PACKAGE=        Yes
 
 SITES=         ${SITE_SOURCEFORGE:=racktables/}
+# php 8.0 https://github.com/RackTables/racktables/pull/280
+# php 8.1 https://github.com/RackTables/racktables/pull/282
+SITES.p=       https://github.com/RackTables/racktables/commit/
+PATCHFILES.p=  
racktables-pr280{3530ddc00e51d7476162a5d4a1f6eba4ff40fd7f}.patch \
+               racktables-pr282{118269b607bd957fa27d0296823d7e435e6900b9}.patch
+PATCH_DIST_STRIP =     -p1
 
 MODULES=       lang/php
 
Index: distinfo
===================================================================
RCS file: /cvs/ports/www/racktables/distinfo,v
diff -u -r1.16 distinfo
--- distinfo    2 Jul 2022 13:35:50 -0000       1.16
+++ distinfo    22 May 2024 13:14:48 -0000
@@ -1,2 +1,6 @@
 SHA256 (RackTables-0.22.0.tar.gz) = 
SSRn65F6/cl/NpRACxcbJ13gydYVMa0igleJ4M9PUWk=
+SHA256 (racktables-pr280.patch) = qjGcDkNWUweBh2pTJ2+BrvGFjfLNIHY+pzNtFnaN7l8=
+SHA256 (racktables-pr282.patch) = qs3UdvVMEQ5U4HmynCjGtfAikT9xfDfvaIgLTjuba3g=
 SIZE (RackTables-0.22.0.tar.gz) = 1002878
+SIZE (racktables-pr280.patch) = 1587
+SIZE (racktables-pr282.patch) = 4420

Reply via email to