<?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>11779</bug_id>
          
          <creation_ts>2017-07-11 06:56:59 +0000</creation_ts>
          <short_desc>autotools.bbclass breaks builds with nested autotools subprojects</short_desc>
          <delta_ts>2017-08-25 16:40: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>2.1.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Krzysztof Nowicki">krissn</reporter>
          <assigned_to name="Krzysztof Nowicki">krissn</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>74914</commentid>
    <comment_count>0</comment_count>
    <who name="Krzysztof Nowicki">krissn</who>
    <bug_when>2017-07-11 06:56:59 +0000</bug_when>
    <thetext>When creating a recipe for texlive I have noticed that this project is a distribution of several other subprojects, each of them having its own autotools tree. All of them are connected by the top-level autotools scripts.

When trying to build texlive with yocto/bitbake the configure script runs and completes successfully, however a subsequent run of &apos;make&apos; will just go through some directories and finish quickly stating that it has nothing to do. No files are being compiled.

After some investigation I have found out that the autotools.bbclass tries to forcefully recreate the autotools scripts using autoreconf. The problem is that in order to do this it deletes all &apos;configure&apos; scripts from directories, where it finds an accompanying &apos;configure.ac&apos; or &apos;configure.in&apos; file. It then performs executes &apos;autoreconf&apos;, however only in the root directory. This effectively means that all autotools subprojects are broken.

As a workaround I have deleted all &apos;configure.in&apos; and &apos;configure.ac&apos; files before executing &apos;do_configure&apos; from autotools.bbclass to prevent it from rebuilding the autotools scripts and texlive compiled successfully.

I think autotools.bbclass should be consistent in what it does. Either it should only delete the top-level &apos;configure&apos; script or it should recursively recreate all autotools subprojects. Eventually it could also offer some means of configuration via a variable so that the recipe can prepare a list of subprojects where &apos;autoreconf&apos; should be run.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74916</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-07-11 08:57:21 +0000</bug_when>
    <thetext>My understanding is that correctly nested configures will all be regenerated by autoreconf: gettext has five nested configures for example.

ie from gettext do_configure log:

autoreconf: Entering directory `.&apos;
...
autoreconf: configure.ac: adding subdirectory gettext-runtime to autoreconf
...
autoreconf: configure.ac: adding subdirectory libasprintf to autoreconf

If the texlive do_configure script doesn&apos;t have this then it doesn&apos;t do nested configures properly.  Can you check the configure log?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76131</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2017-08-24 15:17:21 +0000</bug_when>
    <thetext>This works for recipes like gettext so we&apos;re not aware of any bug. If you are able to provide more information you can reopen but we don&apos;t see any issue right now.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>