Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 678054

Summary: net-analyzer/nagios-core-4.4.3-r1: physical_html_path set at /usr/share
Product: Gentoo Linux Reporter: Tomáš Mózes <hydrapolic>
Component: Current packagesAssignee: Michael Orlitzky <mjo>
Status: RESOLVED WONTFIX    
Severity: normal CC: sysadmin
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Tomáš Mózes 2019-02-15 09:48:21 UTC
# PHYSICAL HTML PATH
# This is the path where the HTML files for Nagios reside.  This
# value is used to locate the logo images needed by the statusmap
# and statuswrl CGIs.

physical_html_path=/usr/share

I'm not sure this is right, I think it was /usr/share/nagios/htdocs before. However, it seems to work, confused...
Comment 1 Tomáš Mózes 2019-02-15 09:48:55 UTC
net-analyzer/nagios-core-4.4.3-r1::gentoo was built with the following:
USE="apache2 web -classicui -lighttpd -perl -vim-syntax" ABI_X86="(64)"
Comment 2 Michael Orlitzky gentoo-dev 2019-02-15 16:18:12 UTC
There is a lot of confusion about this stuff in the build system. You're right that physical_html_path used to be set to "/usr/share/nagios/htdocs", because it gets set to @datadir by default and we used to pass "--datadir=/usr/share/nagios/htdocs" to the configure script.

But, note that with version 4.4.3, the Makefile sets

  HTMLDIR=@webdir@

instead of

  HTMLDIR=@datadir@

which was the value in version 4.4.2. I'm almost certain that the previous value of "--with-datadir" was to fix that path, and not physical_html_path. In any case, HTMLDIR is where the stuff is actually installed. If anything, I would think that physical_html_path and HTMLDIR should agree -- which means that both should be @webdir from now on. 

But yeah, I tested after changing that path and saw that the web interface worked. I'm not sure when/how the physical_html_path comes into play.
Comment 3 Michael Orlitzky gentoo-dev 2019-11-05 17:50:13 UTC
Is there anything else you want me to do here? Until upstream reorganizes this stuff again, I'm inclined to leave it the way it is (confusing, but working).
Comment 4 Tomáš Mózes 2019-11-06 03:26:11 UTC
Seems like it doesn't cause any trouble, it's just surprising. Closing for now.