[Nagiosplug-devel] [ nagiosplug-Patches-1262777 ] Fix subst.in for non-upgrades
SourceForge.net
noreply at sourceforge.net
Thu Aug 18 00:48:05 CEST 2005
Patches item #1262777, was opened at 2005-08-18 00:01
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1262777&group_id=29880
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Bugfix
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Phil Dibowitz (jaymzh)
Assigned to: Nobody/Anonymous (nobody)
Summary: Fix subst.in for non-upgrades
Initial Comment:
The following patch takes out the call to the which()
function, and the which() function itself in the
subst.in awk script.
This script attempts to determine if the libexec
directory exists, and if it doesn't, it changes the
"use lib" path to be relative instead of absolute.
The problem is that the path is _about_ to exist (after
"make install"), but doesn't yet exist... so on
upgrades, this works, but on fresh installs, you have
a "use lib" path that is relative and thus can't be
called from nrpe in any useful way.
While I see the theory of making things relative in the
event the absolute path doesn't exist, the absolute
path is about to exist, so making a decision on the
presence of something you know you are about to make is
quite silly.
This fixes it and allows us to build RPMs of
nagios-plugins in a chroot'd environment (like mach -
mach.sf.net).
This patch is against nagios-plugins-1.3.1.
Thanks,
Phil
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1262777&group_id=29880
More information about the Devel
mailing list