[Nagiosplug-devel] Re: [Nagiosplug-help] Trouble installing plugins - not templatedperhaps?

Dag Wieers dag at wieers.com
Wed Sep 3 06:32:08 CEST 2003


On Wed, 3 Sep 2003, Karl DeBisschop wrote:

> On Wed, 2003-09-03 at 08:59, Karl DeBisschop wrote:
> > On Wed, 2003-09-03 at 08:22, Dag Wieers wrote:
> 
> > >  + I had to disable INSTALL_OPTS for building as a user.
> > 
> > Should probably be pushed upstream as well. Wonder what you're seeing
> > that I did not, since I've alway built for RedHat.
> 
> Actually, I think the setting of AM_INSTALL_PROGRAM_FLAGS in the
> distibuted spec takes care of the issue.
> 
> 
> make \
>   AM_INSTALL_PROGRAM_FLAGS="" \
>   DESTDIR=${RPM_BUILD_ROOT} \
>   install
> 
> I see that you use %makeinstall - does that provide any real utility? (I
> should go and find a description of what rpm macros are OK in LSB,
> unless there's a clear benefit otherwise, we try and keep the
> distribution spec compatible with LSB).

%makeinstall adds the autotool variables prepended with the %{buildroot} 
so that eg. $(bindir) becoms %{buildroot}%{_bindir}. This makes sure that 
projects that don't supply a DESTDIR are still packaged correctly.

However in some cases people use these variables also to rewrite 
directories and scripts (in the install phase) which breaks everything of 
course ;) That's why it's important that the make-phase prepares 
everything and the makeinstall phase only moves things around.

Kind regards,
--   dag wieers,  dag at wieers.com,  http://dag.wieers.com/   --
[Any errors in spelling, tact or fact are transmission errors]





More information about the Devel mailing list