Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Apr 2021 15:57:40 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 255330] net-mgmt/observium: make install fails if APACHEMOD is not set
Message-ID:  <bug-255330-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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.=



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