Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 May 2023 22:06:17 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 271662] net-mgmt/icingaweb2: missing php{xx}-fileinfo dependency (for mime_content_type)
Message-ID:  <bug-271662-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271662

            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 Fa=
tal
error:  Uncaught Error: Call to undefined function
Icinga\Web\Controller\mime_content_type() in
/usr/local/www/icingaweb2/library/Icinga/Web/Controller/StaticController.ph=
p:82

php function "mime_content_type()" is included into sysutils/php{xx}-filein=
fo

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.3218710=
00
+0200
@@ -16,9 +16,9 @@
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
icinga-php-thirdparty${PHP_PKGNAMESUFFIX}>=3D0.11.0:net-mgmt/icinga-php-thi=
rdparty@${PHP_FLAVOR}
\
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
icingaweb2-module-incubator${PHP_PKGNAMESUFFIX}>=3D0.18.0:net-mgmt/icingawe=
b2-module-incubator@${PHP_FLAVOR}

 USES=3D          php:build,web,flavors shebangfix
-USE_PHP=3D       bcmath bitset ctype curl dom gd gettext iconv ldap \
+USE_PHP=3D       bcmath bitset ctype curl dom fileinfo gd gettext iconv ld=
ap \
                mbstring mcrypt memcache memcached opcache pdo \
                pdo_sqlite posix session simplexml soap sockets sqlite3 xml=
 \
                zlib

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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