<?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>6241</bug_id>
          
          <creation_ts>2014-04-25 18:37:56 +0000</creation_ts>
          <short_desc>tcpdump fails at do_configure due to change in autotools.bbclass + brittleness in recipe.</short_desc>
          <delta_ts>2014-05-01 14:56:16 +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>BitBake</product>
          <component>bitbake</component>
          <version>1.7</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86_64</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Rob Calhoun">rcalhoun-bugzilla</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</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>43023</commentid>
    <comment_count>0</comment_count>
    <who name="Rob Calhoun">rcalhoun-bugzilla</who>
    <bug_when>2014-04-25 18:37:56 +0000</bug_when>
    <thetext>This case refers to tcpdump from openembedded layer meta-networking:

https://github.com/openembedded/meta-oe/tree/master/meta-networking/recipes-support/tcpdump

tcpdump builds fine under branch daisy.
tcpdump fails at do_configure under branch master with file not found error, as follows

/poky/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/tcpdump/master-4.3.0-r0$ more temp/log.do_configure
DEBUG: Executing python function sysroot_cleansstate
DEBUG: Python function sysroot_cleansstate finished
DEBUG: SITE files [&apos;endian-little&apos;, &apos;bit-32&apos;, &apos;arm-common&apos;, &apos;common-linux&apos;, &apos;common-glibc&apos;, &apos;arm-linux&apos;, &apos;arm-linux-gnueabi&apos;, &apos;common&apos;]
DEBUG: Executing shell function autotools_preconfigure
DEBUG: Shell function autotools_preconfigure finished
DEBUG: Executing python function autotools_copy_aclocals
WARNING: /yocto/scepter/poky/build/tmp/sstate-control/manifest-x86_64-xproto-native.populate_sysroot not found
WARNING: /yocto/scepter/poky/build/tmp/sstate-control/manifest-x86_64-xcb-proto-native.populate_sysroot not found
WARNING: /yocto/scepter/poky/build/tmp/sstate-control/manifest-x86_64-util-macros-native.populate_sysroot not found
DEBUG: Python function autotools_copy_aclocals finished
DEBUG: Executing shell function do_configure
sed: can&apos;t read ./configure.in: No such file or directory

----------

differences:

After sorting the environment variables (helpful: maybe we should always do this), the diffs in run.do_configures are: 

/poky/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/tcpdump/master-4.3.0-r0$ diff temp/run.do_configure ../4.3.0-r0/temp/run.do_configure
137c137
&lt; 		ACLOCAL=&quot;aclocal --system-acdir=/yocto/scepter/poky/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/tcpdump/4.3.0-r0/build/aclocal-copy/&quot;
---
&gt; 		ACLOCAL=&quot;aclocal --system-acdir=/yocto/scepter/poky/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/tcpdump/4.3.0-r0/tcpdump-4.3.0/aclocal-copy/&quot;
233c233
&lt; cd &apos;/yocto/scepter/poky/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/tcpdump/4.3.0-r0/build&apos;
---
&gt; cd &apos;/yocto/scepter/poky/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/tcpdump/4.3.0-r0/tcpdump-4.3.0&apos;


The new tcpdump/4.3.0-r0/build directory contains only aclocal-copy/, and was created in this commit:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/meta/classes/autotools.bbclass?id=69b6eaca3d9b635e8a61a0fdbd814b558e91901d

Reverting that change and rebuilding allows tcpdump to be built successfully. tcpdump_4.3.0.bb has a do_configure_prepend() and a do_configure_append() step, so the problem might be that tcpdump_4.3.0.bb is too brittle rather than anything wrong with autotools.bbclass. 

Please give me some feedback on that and I will try to fix tcpdump.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43083</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-05-01 14:56:16 +0000</bug_when>
    <thetext>This is a conscious change to the core to require separate build and source directories for autotools (or force the use of the autotools-brokensep class instead), so technically this is an issue for the meta-networking layer that we don&apos;t track in this Bugzilla; so I&apos;ll mark this as resolved/invalid. 

However, as it happens a fix for tcpdump is in meta-openembedded master-next, and should be merged to master (and daisy when that branch arrives) very soon.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>