httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@decus.org (Rodent of Unusual Size)
Subject [PATCH] broken modules/Makefile (one more time..)
Date Thu, 03 Apr 1997 01:27:18 GMT
>From the fingers of "Roy T. Fielding" flowed the following:
>
>awk isn't portable either.  The following patch will do the same,
>but without as much uglyness.  I also tested it with additional
>module directories (which made the @echo linking ... bogus).

    I'm afraid this *doesn't* work on OSF/1.  make has trouble either
    creating or walking its graph if there isn't an action for the
    object(s) dependent upon modules/last-built - it builds it correctly,
    and then tries to build it again from the src/ directory - and none
    of the include files are in the right place, et cetera.  This only
    happens for the first modules/ entity listed in Configuration, which
    I find particularly mystifying.

    Please try the patch below, which fixes this for me and should avoid
    the bogus echo.

    #ken    :-)}

Index: Configure
===================================================================
RCS file: /usr/users/coar/myApache/repository/apache/src/Configure,v
retrieving revision 1.86
diff -c -r1.86 Configure
*** 1.86	1997/04/01 05:04:24
--- Configure	1997/04/03 01:14:12
***************
*** 571,577 ****
  cat Makefile.config >> Makefile
  sed -e "s#@@Configuration@@#$file#" "$makefile_tmpl" >>Makefile
  awk >>Makefile <$tmpfile \
!    '($3 ~ /modules\//) { printf "%s: modules/last-built\n\n", $3, $3}'
  cat Makefile.config ../support/Makefile.tmpl > ../support/Makefile
  
  cat << EOF > modules/Makefile
--- 571,577 ----
  cat Makefile.config >> Makefile
  sed -e "s#@@Configuration@@#$file#" "$makefile_tmpl" >>Makefile
  awk >>Makefile <$tmpfile \
!    '($3 ~ /modules\//) { printf "%s: modules/last-built ; @cat /dev/null\n\n", $3, $3}'
  cat Makefile.config ../support/Makefile.tmpl > ../support/Makefile
  
  cat << EOF > modules/Makefile

Mime
View raw message