Guys, I think we missed one...

[email protected] wrote:
> Author: trawick
> Date: Wed Sep 23 20:31:44 2009
> New Revision: 818242
> 
> URL: http://svn.apache.org/viewvc?rev=818242&view=rev
> Log:
> Fix a make install DESTDIR problem handling the reference manual.
> The currently-unused rule for installing header files was also
> fixed.
> 
> This only affected our 2.3.1 beta release.
> 
> Submitted by: Paul Howarth <paul city-fan.org>
> Reviewed by: trawick
> 
> Modified:
>     httpd/mod_fcgid/trunk/CHANGES-FCGID
>     httpd/mod_fcgid/trunk/Makefile.apxs
> 
> Modified: httpd/mod_fcgid/trunk/CHANGES-FCGID
> URL: 
> http://svn.apache.org/viewvc/httpd/mod_fcgid/trunk/CHANGES-FCGID?rev=818242&r1=818241&r2=818242&view=diff
> ==============================================================================
> --- httpd/mod_fcgid/trunk/CHANGES-FCGID [utf8] (original)
> +++ httpd/mod_fcgid/trunk/CHANGES-FCGID [utf8] Wed Sep 23 20:31:44 2009
> @@ -1,6 +1,10 @@
>                                                           -*- coding: utf-8 
> -*-
>  Changes with mod_fcgid 2.3.2
>  
> +  *) Fix a make install DESTDIR problem handling the reference manual and
> +     potentially other files (specific to 2.3.1).
> +     [Paul Howarth <paul city-fan.org>]
> +
>    *) Fix a mod_fcgid 2.3.1 failure with <sys/mutex.h> when building for
>       httpd 2.0.x on some platforms.  [Paul Howarth <paul city-fan.org>]
>  
> 
> Modified: httpd/mod_fcgid/trunk/Makefile.apxs
> URL: 
> http://svn.apache.org/viewvc/httpd/mod_fcgid/trunk/Makefile.apxs?rev=818242&r1=818241&r2=818242&view=diff
> ==============================================================================
> --- httpd/mod_fcgid/trunk/Makefile.apxs (original)
> +++ httpd/mod_fcgid/trunk/Makefile.apxs Wed Sep 23 20:31:44 2009

Before these changes, below, Makefile.apxs offers up;

httpd_conffile=$(exp_sysconfdir)/$(progname).conf

which is used later in the makefile for;
        @awk -f $(fcgid_srcdir)/build/addloadexample.awk \
                -v MODULE=fcgid -v DSO=.so -v LIBPATH=$(rel_libexecdir) \
                -v EXAMPLECONF=$(rel_sysconfdir)/extra/httpd-fcgid.conf \
                $(httpd_conffile) > $(httpd_conffile).new && \
          ( mv $(httpd_conffile) $(httpd_conffile).bak && \
            mv $(httpd_conffile).new $(httpd_conffile) );

Won't this need to be changed also to?

httpd_conffile=$(DESTDIR)$(exp_sysconfdir)/$(progname).conf

I have a commit ready if you confirm.

> @@ -94,21 +94,21 @@
>  
>  install-manual:
>       @echo Installing online manual
> -     @test -d $(exp_manualdir) \
> -          || $(MKINSTALLDIRS) $(exp_manualdir)
> +     @test -d $(DESTDIR)$(exp_manualdir) \
> +          || $(MKINSTALLDIRS) $(DESTDIR)$(exp_manualdir)
>       @if test "x$(RSYNC)" != "x" && test -x $(RSYNC) ; then \
>         $(RSYNC) --exclude .svn -rlpt --numeric-ids \
> -             $(fcgid_srcdir)/docs/manual/ $(exp_manualdir)/; \
> +             $(fcgid_srcdir)/docs/manual/ $(DESTDIR)$(exp_manualdir)/; \
>       else \
> -       cp -rp $(fcgid_srcdir)/docs/manual/* $(exp_manualdir)/ && \
> -       find $(exp_manualdir) -name ".svn" -type d -print \
> +       cp -rp $(fcgid_srcdir)/docs/manual/* $(DESTDIR)$(exp_manualdir)/ && \
> +       find $(DESTDIR)$(exp_manualdir) -name ".svn" -type d -print \
>           | xargs rm -rf 2>/dev/null || true; \
>       fi
>  
>  install-include:
>       @echo Installing header files
> -     @$(MKINSTALLDIRS) $(exp_includedir) && \
> -       cp $(fcgid_srcdir)/include/mod_fcgid.h $(exp_includedir)/ && \
> -       chmod 0644 $(exp_includedir)/mod_fcgid.h
> +     @$(MKINSTALLDIRS) $(DESTDIR)$(exp_includedir) && \
> +       cp $(fcgid_srcdir)/include/mod_fcgid.h $(DESTDIR)$(exp_includedir)/ 
> && \
> +       chmod 0644 $(DESTDIR)$(exp_includedir)/mod_fcgid.h
>  
>  .PHONY: generate-dox generate-docs
> 
> 
> 
> 

Reply via email to