[Bug 271662] net-mgmt/icingaweb2: missing php{xx}-fileinfo dependency (for mime_content_type)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 26 May 2023 22:06:17 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271662 Bug ID: 271662 Summary: net-mgmt/icingaweb2: missing php{xx}-fileinfo dependency (for mime_content_type) Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: joneum@FreeBSD.org Reporter: riccardo@torrini.org Flags: maintainer-feedback?(joneum@FreeBSD.org) Assignee: joneum@FreeBSD.org [error] 53158#100708: *1007107 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function Icinga\Web\Controller\mime_content_type() in /usr/local/www/icingaweb2/library/Icinga/Web/Controller/StaticController.php:82 php function "mime_content_type()" is included into sysutils/php{xx}-fileinfo how to reproduce: # php -r 'echo mime_content_type("/etc/motd.template") . "\n";' PHP Fatal error: Uncaught Error: Call to undefined function mime_content_type() in Command line code:1 Stack trace: #0 {main} thrown in Command line code on line 1 how to fix: # pkg install php81-fileinfo # php -r 'echo mime_content_type("/etc/motd.template") . "\n";' text/plain proposed fix (add "fileinfo" on line 20 of Makefile, between dom and gd): --- /usr/ports/net-mgmt/icingaweb2/Makefile.orig 2023-05-13 18:40:19.077005000 +0200 +++ /usr/ports/net-mgmt/icingaweb2/Makefile 2023-05-27 00:01:28.321871000 +0200 @@ -16,9 +16,9 @@ icinga-php-thirdparty${PHP_PKGNAMESUFFIX}>=0.11.0:net-mgmt/icinga-php-thirdparty@${PHP_FLAVOR} \ icingaweb2-module-incubator${PHP_PKGNAMESUFFIX}>=0.18.0:net-mgmt/icingaweb2-module-incubator@${PHP_FLAVOR} USES= php:build,web,flavors shebangfix -USE_PHP= bcmath bitset ctype curl dom gd gettext iconv ldap \ +USE_PHP= bcmath bitset ctype curl dom fileinfo gd gettext iconv ldap \ mbstring mcrypt memcache memcached opcache pdo \ pdo_sqlite posix session simplexml soap sockets sqlite3 xml \ zlib -- You are receiving this mail because: You are the assignee for the bug.