Current upstream (https://github.com/lingej/pnp4nagios) is dead and only compatible with PHP 8.0. Just trying this fork: https://github.com/ConSol-Monitoring/pnp and it works with php 8.1 (probably 8.2 too according to the commits). Moreover there is https://github.com/pnp4nagios/pnp4nagios, but the latest commit failed to work for me (maybe just a minor glitch). The upstream has to change once PHP 8.0 is dropped from Gentoo.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6225bda18fdbfa4036f815feba794c26df6bf352 commit 6225bda18fdbfa4036f815feba794c26df6bf352 Author: Tomáš Mózes <hydrapolic@gmail.com> AuthorDate: 2023-09-18 10:25:13 +0000 Commit: Michael Orlitzky <mjo@gentoo.org> CommitDate: 2023-09-23 15:06:50 +0000 net-analyzer/pnp4nagios: change upstream for PHP 8.1+ compatibility @Consol-Monitoring / Sven Nierlein are well known contributors to the monitoring ecosystem. This fork is compatible with PHP 8.1. The next step will be to explore https://github.com/pnp4nagios/pnp4nagios which may become the unified upstream. Closes: https://bugs.gentoo.org/914270 Closes: https://github.com/gentoo/gentoo/pull/32897 Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com> Signed-off-by: Michael Orlitzky <mjo@gentoo.org> net-analyzer/pnp4nagios/Manifest | 1 + .../pnp4nagios/pnp4nagios-0.6.26_p20230918.ebuild | 112 +++++++++++++++++++++ 2 files changed, 113 insertions(+)