httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <trawi...@bellsouth.net>
Subject [PATCH] fix "make install" on Tru64
Date Mon, 13 Nov 2000 22:19:23 GMT
(Well, it fixes it up to the point where we get to the docs...  After
I get the docs installed hopefully it will finish.)

Problem:

With Tru64, make picks up a bad status from the child shell process
when it evaluates the "`echo ($static) | grep 'mod_so'` (see below),
causing make to bail out.

But that grep should always fail when "make install" runs in
modules/extra and unless we have mod_so it will fail when "make
install" runs in modules/standard.

The work-around is to explicitly ignore the exit status from the
grep.

But now even with GNU make we pick up a silly warning:

Linux:

make[3]: Entering directory `/home/trawick/apache/apache-2.0/src/modules/extra'
make[3]: [install-modules] Error 1 (ignored)

Tru64:

Making install in extra
*** Exit 1 (ignored)

Any better ideas?

One alternative is to leave the original rule alone but ignore the
exit status.  We still get the silly warning on Tru64 but not on a
system with GNU make.  However, this doesn't seem cool since it would
ignore important stuff (mkinstalldirs, libtool).

Index: build/special.mk
===================================================================
RCS file: /home/cvspublic/apache-2.0/src/build/special.mk,v
retrieving revision 1.7
diff -u -r1.7 special.mk
--- build/special.mk    2000/10/05 03:44:22     1.7
+++ build/special.mk    2000/11/13 22:05:34
@@ -61,8 +61,9 @@
 install_targets = install-modules

 install-modules:
+       -@has_mod_so=`echo $(static) | grep 'mod_so'`
        @shared='$(shared)'; \
-       if [ "x`echo $(static) | grep 'mod_so'`" != "x" ]; then \
+       if [ "x$(has_mod_so)" != "x" ]; then \
                $(MKINSTALLDIRS) $(libexecdir); \
                for i in $$shared; do \
                        $(SH_LIBTOOL) --mode=install cp $$i
$(libexecdir); \

-- 
Jeff Trawick | trawick@ibm.net | PGP public key at web site:
     http://www.geocities.com/SiliconValley/Park/9289/
          Born in Roswell... married an alien...

Mime
View raw message