<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>7369</bug_id>
          
          <creation_ts>2015-02-25 17:42:20 +0000</creation_ts>
          <short_desc>glibc: log.do_configure shows error in prompted configurations</short_desc>
          <delta_ts>2015-03-24 19:32:32 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>1.8</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>1.8</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Benjamin Esquivel">benjamin.esquivel</reporter>
          <assigned_to name="Benjamin Esquivel">benjamin.esquivel</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>raj.khem</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>49060</commentid>
    <comment_count>0</comment_count>
      <attachid>2422</attachid>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2015-02-25 17:42:20 +0000</bug_when>
    <thetext>Created attachment 2422
configure error samples

the do_configure process of glibc generates a log with some errors described like this sample:

  Functions for producing backtraces (EGLIBC_BACKTRACE) [N/y/?]
  Error in reading or end of file.

More errors like this are found at the log.do_configure file. Another sample of these Errors is found within the attachment.

This issue is contained just at the logging part of it because the configured options are exactly as specified at the run.do_configure script. Also the rest of the configure process carries on after these errors are shown and the command exits with no error as well.

Another thing to point out is that if run.do_configure is run via devshell then it asks at the terminal for user input at these options while if run via &apos;bitbake -c configure glibc&apos; it just shows these errors.

This bug is to find a more well-designed mechanism for doing this configure process.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49381</commentid>
    <comment_count>1</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2015-03-11 21:36:50 +0000</bug_when>
    <thetext>More info about this, if you run the configuration manually like:

        $ bitbake -c configure glibc
        $ bitbake -c devshell glibc
        &lt;devshell&gt;/temp $ ./run.do_configure

it comes to a point where it starts asking for user input on some
variables. Like this:

        IPv6 Advanced Sockets API support (RFC3542) (EGLIBC_ADVANCED_INET6)
[Y/n/?]

But if you instead run: 

        $ bitbake -c configure glibc
        $ bitbake -c devshell glibc
        &lt;devshell&gt;/temp $ cat log.do_configure

you will see some occurrences like:
        IPv6 Advanced Sockets API support (RFC3542) (EGLIBC_ADVANCED_INET6)
[Y/n/?]
        Error in reading or end of file.

I haven&apos;t found this displayed Error to be tied to any functional error
yet, it finishes fine and everything configures as expected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49382</commentid>
    <comment_count>2</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2015-03-11 21:38:53 +0000</bug_when>
    <thetext>If this error is only cosmetic I may pass on fixing this bug, I&apos;m in the process of finding it out.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49509</commentid>
    <comment_count>3</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2015-03-18 05:20:29 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; If this error is only cosmetic I may pass on fixing this bug, I&apos;m in the
&gt; process of finding it out.

For glibc kconfig patch that we have we have three options implemented
defconfig, config and menuconfig
config is what we use and it calls conf program with --oldaskconfig 
option which is suppose to behave as expected waiting for inputs from line oriented program

Try something like below, that should fix the issue

diff --git a/meta/recipes-core/glibc/glibc_2.21.bb b/meta/recipes-core/glibc/glibc_2.21.bb
index 615297b..f57e3f9 100644
--- a/meta/recipes-core/glibc/glibc_2.21.bb
+++ b/meta/recipes-core/glibc/glibc_2.21.bb
@@ -111,7 +111,7 @@ do_configure () {
         fi
         (cd ${S} &amp;&amp; gnu-configize) || die &quot;failure in running gnu-configize&quot;
         find ${S} -name &quot;configure&quot; | xargs touch
-        CPPFLAGS=&quot;&quot; oe_runconf
+        yes &apos;&apos; | CPPFLAGS=&quot;&quot; oe_runconf
 }</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49556</commentid>
    <comment_count>4</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2015-03-18 20:29:51 +0000</bug_when>
    <thetext>thanks for your pointer, I already sent a patch of it and CC&apos;ed you.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>2422</attachid>
            <date>2015-02-25 17:42:20 +0000</date>
            <delta_ts>2015-02-25 17:42:20 +0000</delta_ts>
            <desc>configure error samples</desc>
            <filename>do_configure_error_sample.log</filename>
            <type>text/x-log</type>
            <size>332</size>
            <attacher name="Benjamin Esquivel">benjamin.esquivel</attacher>
            
              <data encoding="base64">LS0tLS0tLS0tLS0tLS0tLS0tLQpGdW5jdGlvbnMgZm9yIHByb2R1Y2luZyBiYWNrdHJhY2VzIChF
R0xJQkNfQkFDS1RSQUNFKSBbTi95Lz9dCkVycm9yIGluIHJlYWRpbmcgb3IgZW5kIG9mIGZpbGUu
CgpVc2UgZXh0ZW5zaXZlIGlubGluZSBjb2RlIChFR0xJQkNfQklHX01BQ1JPUykgW04veS8/XQpF
cnJvciBpbiByZWFkaW5nIG9yIGVuZCBvZiBmaWxlLgoKQlNELXNwZWNpZmljIGZ1bmN0aW9ucywg
YW5kIHRoZWlyIGNvbXBhdGliaWxpdHkgc3R1YnMgKEVHTElCQ19CU0QpIFtOL3kvP10KRXJyb3Ig
aW4gcmVhZGluZyBvciBlbmQgb2YgZmlsZS4KLS0tLS0tLS0tLS0tLS0tLS0tLQo=
</data>

          </attachment>
      

    </bug>

</bugzilla>