>Number: 5304
>Category: config
>Synopsis: Improper use of "$AWK" in shadow makefile.
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: apache
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Sat Nov 13 22:20:01 PST 1999
>Last-Modified:
>Originator: [EMAIL PROTECTED]
>Organization:
apache
>Release: 1.3.9
>Environment:
uname -a
OS/390 MVS3 02.00 01 9672
>Description:
=========================================================================
===== As the comment a few lines previously explains, we must use "awk"
===== here, not "$AWK".
=====
===== install-programs is a valuable target to expose for quick build-test
===== cycles.
=========================================================================
diff -bru orig/apache_1.3.9/configure apache_1.3.9/configure
--- orig/apache_1.3.9/configure Sat Aug 14 02:29:05 1999
+++ apache_1.3.9/configure Sat Nov 13 22:42:30 1999
@@ -562,9 +562,9 @@
else
echo "SHADOW=." >> Makefile
fi
- echo "GNUTRIPLE=\`$aux/GuessOS | sed -e 's:/:-:g' | $AWK '{
printf(\"%s\",\$\$1); }'\`" >> Makefile
+ echo "GNUTRIPLE=\`$aux/GuessOS | sed -e 's:/:-:g' | awk '{
printf(\"%s\",\$\$1); }'\`" >> Makefile
echo "" >> Makefile
- echo "all build install install-quiet clean distclean:" >>
Makefile
+ echo "all build install install-quiet install-programs clean
distclean:" >> Makefile
echo " @cd \$(SHADOW); \$(MAKE) -f Makefile.\$(GNUTRIPLE)
\$(MFLAGS) \$@" >> Makefile
echo "" >> Makefile
fi
>How-To-Repeat:
Run "configure -shadow" on two systems with different paths to "awk",
then run "make" on each. One will fail with "file not found: /usr/bin/nawk",
or the like.
>Fix:
Patch above.
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <[EMAIL PROTECTED]> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or ]
["Re: general/1098:"). If the subject doesn't match this ]
[pattern, your message will be misfiled and ignored. The ]
["apbugs" address is not added to the Cc line of messages from ]
[the database automatically because of the potential for mail ]
[loops. If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request from a ]
[developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]