From owner-freebsd-ports@freebsd.org Sun Jan 27 17:56:47 2019 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9B1FF14B6764 for ; Sun, 27 Jan 2019 17:56:47 +0000 (UTC) (envelope-from lars@e.0x20.net) Received: from mail.0x20.net (mail.0x20.net [46.251.251.56]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "0x20.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0EF2E74E41 for ; Sun, 27 Jan 2019 17:56:47 +0000 (UTC) (envelope-from lars@e.0x20.net) Received: from e.0x20.net (mail.0x20.net [46.251.251.56]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.0x20.net (Postfix) with ESMTPS id E01CAA718E; Sun, 27 Jan 2019 18:55:22 +0100 (CET) Received: (from lars@localhost) by e.0x20.net (8.15.2/8.15.2/Submit) id x0RHtMRW067838; Sun, 27 Jan 2019 18:55:22 +0100 (CET) (envelope-from lars) Date: Sun, 27 Jan 2019 18:55:22 +0100 From: Lars Engels To: Stefan Bethke Cc: FreeBSD Ports Subject: Re: net-mgmt/icingaweb2 fails to build with PHP 7.3 Message-ID: <20190127175521.GL1267@e.0x20.net> References: <8D035901-29E6-45D9-B8C7-6B4E26CB96C7@lassitu.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8D035901-29E6-45D9-B8C7-6B4E26CB96C7@lassitu.de> X-Editor: VIM - Vi IMproved 8.0 User-Agent: Mutt/1.11.1 (2018-12-01) X-Rspamd-Queue-Id: 0EF2E74E41 X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [3.35 / 15.00]; ARC_NA(0.00)[]; MX_INVALID(0.50)[cached]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.93)[0.933,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[0x20.net]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.37)[0.367,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_SPAM_LONG(0.44)[0.443,0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[lars.engels@0x20.net,lars@e.0x20.net]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:31400, ipnet:46.251.251.0/24, country:DE]; FROM_NEQ_ENVFROM(0.00)[lars.engels@0x20.net,lars@e.0x20.net]; IP_SCORE(-0.09)[ip: (-1.08), ipnet: 46.251.251.0/24(-0.54), asn: 31400(1.17), country: DE(-0.01)]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jan 2019 17:56:47 -0000 On Sun, Jan 27, 2019 at 02:45:45PM +0100, Stefan Bethke wrote: > It appears that (older?) versions of icingaweb2 do not work correctly with PHP 7.3. From my poudriere build log: > > ===> Staging for icingaweb2-2.6.2_1 > > ===> Generating temporary packing list > > /bin/mkdir -p /wrkdirs/usr/ports/net-mgmt/icingaweb2/work/stage/usr/local/share/examples/icingaweb2/bash_completion.d/ > > install -m 0644 /wrkdirs/usr/ports/net-mgmt/icingaweb2/work/icingaweb2-2.6.2/etc/bash_completion.d/icingacli /wrkdirs/usr/ports/net-mgmt/icingaweb2/work/stage/usr/local/share/examples/icingaweb2/bash_completion.d > > (cd /wrkdirs/usr/ports/net-mgmt/icingaweb2/work/icingaweb2-2.6.2 && /bin/rm -f -r .mailmap changelog.py icingaweb2.spec bin/license_writer.py packages test) > > (/usr/bin/find /wrkdirs/usr/ports/net-mgmt/icingaweb2/work/icingaweb2-2.6.2 -name "*.bak" -delete) > > /bin/mkdir -p /wrkdirs/usr/ports/net-mgmt/icingaweb2/work/stage/usr/local/www/icingaweb2 > > (cd /wrkdirs/usr/ports/net-mgmt/icingaweb2/work/icingaweb2-2.6.2 && /bin/sh -c '(/usr/bin/find -Ed $1 $3 | /usr/bin/cpio -dumpl $2 >/dev/null 2>&1) && /usr/bin/find -Ed $1 $3 \( -type d -exec /bin/sh -c '\''cd '\''$2'\'' && chmod 755 "$@"'\'' . {} + -o -type f -exec /bin/sh -c '\''cd '\''$2'\'' && chmod 0644 "$@"'\'' . {} + \)' COPYTREE_SHARE . /wrkdirs/usr/ports/net-mgmt/icingaweb2/work/stage/usr/local/www/icingaweb2) > > /bin/chmod 755 /wrkdirs/usr/ports/net-mgmt/icingaweb2/work/stage/usr/local/www/icingaweb2/bin/icingacli > > install -l rs /wrkdirs/usr/ports/net-mgmt/icingaweb2/work/stage/usr/local/www/icingaweb2/bin/icingacli /wrkdirs/usr/ports/net-mgmt/icingaweb2/work/stage/usr/local/bin/icingacli > > /bin/mkdir -p /wrkdirs/usr/ports/net-mgmt/icingaweb2/work/stage/usr/local/etc/icingaweb2 > > /bin/mkdir -p /wrkdirs/usr/ports/net-mgmt/icingaweb2/work/stage/usr/local/share/examples/icingaweb2/apache > > (cd /wrkdirs/usr/ports/net-mgmt/icingaweb2/work/stage/usr/local/www/icingaweb2 && ICINGAWEB_CONFIGDIR=/nonexistent ./bin/icingacli setup config webserver apache --path=/icingaweb2 --root=/usr/local/www/icingaweb2/public --config=/usr/local/etc/icingaweb2 --file=/wrkdirs/usr/ports/net-mgmt/icingaweb2/work/stage/usr/local/share/examples/icingaweb2/apache/icingaweb2.conf) > > > > Fatal error: Uncaught ErrorException: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /wrkdirs/usr/ports/net-mgmt/icingaweb2/work/stage/usr/local/www/icingaweb2/library/Icinga/Application/Modules/Module.php:689 > > Stack trace: > > #0 /wrkdirs/usr/ports/net-mgmt/icingaweb2/work/stage/usr/local/www/icingaweb2/library/Icinga/Application/ClassLoader.php(303): Icinga\Application\ApplicationBootstrap->Icinga\Application\{closure}(2, '"continue" targ...', '/wrkdirs/usr/po...', 689, Array) > > #1 /wrkdirs/usr/ports/net-mgmt/icingaweb2/work/stage/usr/local/www/icingaweb2/library/Icinga/Application/ClassLoader.php(303): require() > > #2 [internal function]: Icinga\Application\ClassLoader->loadClass('Icinga\\Applicat...') > > #3 /wrkdirs/usr/ports/net-mgmt/icingaweb2/work/stage/usr/local/www/icingaweb2/library/Icinga/Application/Modules/Manager.php(227): spl_autoload_call('Icinga\\Applicat...') > > #4 /wrkdirs/usr/ports/net-mgmt/icingaweb2/work/stage/usr/local/www/icingaweb2/library/Icinga/Application/Application in /wrkdirs/usr/ports/net-mgmt/icingaweb2/work/stage/usr/local/www/icingaweb2/library/Icinga/Application/Modules/Module.php on line 689 > > *** Error code 255 > > > > Stop. > > make: stopped in /usr/ports/net-mgmt/icingaweb2 > > I’ve also found this Debian issue: > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=914457 > > Are you working on a fix? Otherwise, I might give porting the Debian change as a local patch. > Hi Stefan, thanks for reporting this. I can work on this in a couple of days. If you could work on a patch before, I won't be mad at you. :) Lars