From owner-freebsd-ports-bugs@freebsd.org Thu Apr 22 15:57:41 2021 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5FF0A5F7874 for ; Thu, 22 Apr 2021 15:57:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4FR2BF1xDzz4XgF for ; Thu, 22 Apr 2021 15:57:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 4270A5F7C86; Thu, 22 Apr 2021 15:57:41 +0000 (UTC) Delivered-To: ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 423A85F7C0B for ; Thu, 22 Apr 2021 15:57:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FR2BF1KpQz4Xcg for ; Thu, 22 Apr 2021 15:57:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 171411CCDC for ; Thu, 22 Apr 2021 15:57:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 13MFvftR016701 for ; Thu, 22 Apr 2021 15:57:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 13MFvf2D016700 for ports-bugs@FreeBSD.org; Thu, 22 Apr 2021 15:57:41 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 255330] net-mgmt/observium: make install fails if APACHEMOD is not set Date: Thu, 22 Apr 2021 15:57:40 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: x0r+freebsd@x0r.fr X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: feld@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Apr 2021 15:57:41 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255330 Bug ID: 255330 Summary: net-mgmt/observium: make install fails if APACHEMOD is not set Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: feld@FreeBSD.org Reporter: x0r+freebsd@x0r.fr Flags: maintainer-feedback?(feld@FreeBSD.org) Assignee: feld@FreeBSD.org Created attachment 224357 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D224357&action= =3Dedit Patch proposal for fixing the issue I was trying to install net-mgmt/observium version 0.19.8_1 from ports, with APACHEMOD disabled as I am running an nginx-based setup. However, in that c= ase, make install fails with the following output: =3D=3D=3D> Installing for observium-php74-0.19.8_1 =3D=3D=3D> Checking if observium-php74 is already installed =3D=3D=3D> Registering installation for observium-php74-0.19.8_1 pkg-static: Unable to access file /usr/ports/net-mgmt/observium/work-php74/stage/Includes/observium.conf.samp= le:No such file or directory pkg-static: Fail to apply keyword 'sample' *** Error code 1 Stop.=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 make[1]: stopped in /usr/ports/net-mgmt/observium *** Error code 1 Stop. make: stopped in /usr/ports/net-mgmt/observium=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 The port also tries to install observium.conf.sample into ${STAGEDIR}/${PREFIX}/${APACHEETCDIR}/Includes, even though this file only makes sense for Apache setups. In my case, ${APACHEETCDIR} is unset and the sample file would be installed in /usr/local/Includes. The problem can be fixed by surrounding the installation of Apache-specific files with .if ${PORT_OPTIONS:MAPACHEMOD} ... .endif. I have attached a patch that fixes the build in this particular case. --=20 You are receiving this mail because: You are the assignee for the bug.=