Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

DO NOT REPLY [Bug 15679] New: - configure broken if layout begins on first line of config.layout

From: <bugzilla(at)apache.org>
Date: Fri Dec 27 2002 - 02:35:01 EST


DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15679>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15679

configure broken if layout begins on first line of config.layout

           Summary: configure broken if layout begins on first line of
                    config.layout
           Product: Apache httpd-2.0
           Version: 2.0.43
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Build
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: sk@sethwklein.net

The configure script is broken if the selected layout begins on the first line of config.layout.

To reproduce:

cd httpd-2.0.43
mv config.layout config.layout.orig
sed -n '13,34p' config.layout.orig | tee config.layout ./configure
# the result is an exceedingly unobvious error from the APR sub configure
# script which complains about "--bindir: NONE/bin"
sed -n '12,34p' config.layout.orig | tee config.layout ./configure
# works

This is with GNU Sed 4.0.4 which is relevent because the problem is with the sed program that configure uses to parse config.layout.

The following patch (which i will also attach, if the system lets me) fixes the problem for me.

  • acinclude.m4.orig 2002-12-27 01:26:56.000000000 -0500 +++ acinclude.m4 2002-12-27 01:27:28.000000000 -0500 @@ -275,7 +275,7 @@ fi pldconf=./config.pld changequote({,}) - sed -e "1,/[ ]*<[lL]ayout[ ]*$2[ ]*>[ ]*/d" \ + sed -e "0,/[ ]*<[lL]ayout[ ]*$2[ ]*>[ ]*/d" \ -e '/[ ]*<\/Layout>[ ]*/,$d' \ -e "s/^[ ]*//g" \ -e "s/:[ ]*/=\'/g" \

I am tempted to indulge in a rant about the wisdom of using configure args instead of weird config files in this situation but this bug report is hardly the place.

Do you need help?X

I will however indulge in a suggestion. Something like: if [ ! -s "$pldconf" ];then

    echo "*** Error: unable to find layout \"$LAYOUT\""     exit 1
fi
at the logical place would give a much clearer error message.



To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org For additional commands, e-mail: bugs-help@httpd.apache.org Received on Fri Dec 27 07:33:37 2002

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 16:44:14 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library