Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 675872 - net-analyzer/nagios-core-4.4.3 USE="apache2 web": cgi files installed into /usr/sbin
Summary: net-analyzer/nagios-core-4.4.3 USE="apache2 web": cgi files installed into /u...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michael Orlitzky
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-19 19:50 UTC by Tomáš Mózes
Modified: 2019-01-19 21:26 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomáš Mózes 2019-01-19 19:50:28 UTC
Caused by upstream change:
https://github.com/NagiosEnterprises/nagioscore/commit/37da6f39c897c2d97508db1f05550b98f2edcda6

The cgis are now in /usr/sbin:
/usr/sbin/archivejson.cgi
/usr/sbin/avail.cgi
/usr/sbin/cmd.cgi
/usr/sbin/config.cgi
/usr/sbin/extinfo.cgi
/usr/sbin/histogram.cgi
...

However apache expects them in /usr/lib/nagios/cgi-bin:
# cat /etc/apache2/modules.d/99_nagios4.conf 
<IfDefine NAGIOS>

  ScriptAlias /nagios/cgi-bin/ /usr/lib/nagios/cgi-bin/
  <Directory "/usr/lib/nagios/cgi-bin/">

Possible solution:
--- /usr/portage/net-analyzer/nagios-core/nagios-core-4.4.3.ebuild      2019-01-19 00:09:38.000000000 +0000
+++ nagios-core-4.4.3.ebuild    2019-01-19 19:43:04.666612792 +0000
@@ -96,7 +96,7 @@
        econf ${myconf} \
                --prefix=/usr \
                --bindir=/usr/sbin \
-               --sbindir=/usr/$(get_libdir)/nagios/cgi-bin \
+               --with-cgibindir=/usr/$(get_libdir)/nagios/cgi-bin \
                --datadir=/usr/share/nagios/htdocs \
                --localstatedir=/var/nagios \
                --sysconfdir=/etc/nagios \
Comment 1 Larry the Git Cow gentoo-dev 2019-01-19 21:07:29 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd61e5bb9a7561bec1725ad24a45279d1ac75f02

commit cd61e5bb9a7561bec1725ad24a45279d1ac75f02
Author:     Michael Orlitzky <mjo@gentoo.org>
AuthorDate: 2019-01-19 20:40:07 +0000
Commit:     Michael Orlitzky <mjo@gentoo.org>
CommitDate: 2019-01-19 21:06:18 +0000

    net-analyzer/nagios-core: new revision to fix CGI install path.
    
    Upstream commit 37da6f39c8 fixes an old bug in the build system, where
    CGIDIR was set to @sbindir@ (rather than to @cgibindir@), and HTMLDIR
    was set to @datarootdir@ (rather than to @webdir@). Now that the bug
    is fixed, the ebuild has been revisioned to use the right configure flags:
    we pass --with-cgibindir the old argument of --sbindir, and --with-webdir
    the old argument of --datadir.
    
    Thanks to Tomáš Mózes for the report and the fix.
    
    Closes: https://bugs.gentoo.org/675872
    Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
    Package-Manager: Portage-2.3.51, Repoman-2.3.11

 .../{nagios-core-4.4.3.ebuild => nagios-core-4.4.3-r1.ebuild}       | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Comment 2 Tomáš Mózes 2019-01-19 21:26:27 UTC
Thank you