<?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>8890</bug_id>
          
          <creation_ts>2016-01-06 19:45:01 +0000</creation_ts>
          <short_desc>bitbake -b dpkg fails</short_desc>
          <delta_ts>2016-02-15 15:04:56 +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.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.1 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          <qa_contact name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</qa_contact>
          <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>57598</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2016-01-06 19:45:01 +0000</bug_when>
    <thetext>bitbake -b doesn&apos;t take care of dependencies, but if we ensure dpkg&apos;s dependencies are built first it should work:

1) Run bitbake dpkg
2) Run bitbake -c cleansstate dpkg
3) Run bitbake -b dpkg

Unfortunately it doesn&apos;t:


-------------- snip --------------
ERROR: Function failed: do_configure (log file is located at /home/paul/poky/poky/build/tmp/work/core2-64-poky-linux/dpkg/1.18.2-r0/temp/log.do_configure.26715)
ERROR: Logfile of failure stored in: /home/paul/poky/poky/build/tmp/work/core2-64-poky-linux/dpkg/1.18.2-r0/temp/log.do_configure.26715
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: SITE files [&apos;endian-little&apos;, &apos;common-linux&apos;, &apos;common-glibc&apos;, &apos;bit-64&apos;, &apos;x86_64-linux&apos;, &apos;common&apos;]
| DEBUG: Executing shell function autotools_preconfigure
| DEBUG: Shell function autotools_preconfigure finished
| DEBUG: Executing python function autotools_copy_aclocals
| DEBUG: SITE files [&apos;endian-little&apos;, &apos;common-linux&apos;, &apos;common-glibc&apos;, &apos;bit-64&apos;, &apos;x86_64-linux&apos;, &apos;common&apos;]
| DEBUG: Python function autotools_copy_aclocals finished
| DEBUG: Executing shell function do_configure
| Unescaped left brace in regex is deprecated, passed through in regex; marked by &lt;-- HERE in m/\${ &lt;-- HERE ([^ \t=:+{}]+)}/ at /home/paul/poky/poky/build/tmp/sysroots/x86_64-linux/usr/bin/automake line 3936.
| Unescaped left brace in regex is deprecated, passed through in regex; marked by &lt;-- HERE in m/\${ &lt;-- HERE ([^ \t=:+{}]+)}/ at /home/paul/poky/poky/build/tmp/sysroots/x86_64-linux/usr/bin/automake line 3936.
| automake (GNU automake) 1.15
| Copyright (C) 2014 Free Software Foundation, Inc.
| License GPLv2+: GNU GPL version 2 or later &lt;http://gnu.org/licenses/gpl-2.0.html&gt;
| This is free software: you are free to change and redistribute it.
| There is NO WARRANTY, to the extent permitted by law.
| 
| Written by Tom Tromey &lt;tromey@redhat.com&gt;
|        and Alexandre Duret-Lutz &lt;adl@gnu.org&gt;.
| AUTOV is 1
| NOTE: Executing ACLOCAL=&quot;aclocal --system-acdir=/home/paul/poky/poky/build/tmp/work/core2-64-poky-linux/dpkg/1.18.2-r0/build/aclocal-copy/&quot; autoreconf --verbose --install --force --exclude=autopoint -I /home/paul/poky/poky/build/tmp/work/core2-64-poky-linux/dpkg/1.18.2-r0/dpkg-1.18.2/m4/
| autoreconf: Entering directory `.&apos;
| autoreconf: running: aclocal --system-acdir=/home/paul/poky/poky/build/tmp/work/core2-64-poky-linux/dpkg/1.18.2-r0/build/aclocal-copy/ -I /home/paul/poky/poky/build/tmp/work/core2-64-poky-linux/dpkg/1.18.2-r0/dpkg-1.18.2/m4/ -I /home/paul/poky/poky/build/tmp/work/core2-64-poky-linux/dpkg/1.18.2-r0/dpkg-1.18.2/m4/ --force -I m4
| configure.ac:17: warning: macro &apos;AM_GNU_GETTEXT_VERSION&apos; not found in library
| configure.ac:18: warning: macro &apos;AM_GNU_GETTEXT&apos; not found in library
| configure.ac:69: error: missing pkg-config macros
| /home/paul/poky/poky/build/tmp/work/core2-64-poky-linux/dpkg/1.18.2-r0/dpkg-1.18.2/m4/dpkg-libs.m4:76: DPKG_LIB_SELINUX is expanded from...
| configure.ac:69: the top level
| autom4te: m4 failed with exit status: 1
| aclocal: error: echo failed with exit status: 1
| autoreconf: aclocal failed with exit status: 1
| ERROR: autoreconf execution failed.
-------------- snip --------------

Does this have something to do with aclocal being keyed off task dependencies?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58986</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-02-14 11:43:21 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=2eba066ccbbdf672315f52018fa52565713f7b2a</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59013</commentid>
    <comment_count>2</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2016-02-15 15:04:56 +0000</bug_when>
    <thetext>Verified error is fixed. 
Still some QA issues are displayed: 

yocto@yocto-PowerEdge-R720:~/yocto/poky-test/8890/build$ bitbake -b dpkg
WARNING: Buildfile specified, dependencies will not be handled. If this is not what you want, do not use -b / --buildfile.

Build Configuration:
BB_VERSION        = &quot;1.29.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Ubuntu-14.04&quot;
TARGET_SYS        = &quot;i586-poky-linux&quot;
MACHINE           = &quot;qemux86&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;2.0+snapshot-20160215&quot;
TUNE_FEATURES     = &quot;m32 i586&quot;
TARGET_FPU        = &quot;&quot;
meta
meta-yocto
meta-yocto-bsp    = &quot;master:36b43b233c841b3c09fc17e04686b4b758780963&quot;

NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: autotools: Unable to find task dependencies, -b being used? Pulling in all m4 files
WARNING: QA Issue: update-alternatives-dpkg rdepends on glibc, but it isn&apos;t a build dependency? [build-deps]
WARNING: QA Issue: dpkg rdepends on libbz2, but it isn&apos;t a build dependency? [build-deps]
WARNING: QA Issue: dpkg rdepends on run-postinsts, but it isn&apos;t a build dependency? [build-deps]
WARNING: QA Issue: dpkg rdepends on glibc, but it isn&apos;t a build dependency? [build-deps]
WARNING: QA Issue: dpkg rdepends on zlib, but it isn&apos;t a build dependency? [build-deps]
WARNING: QA Issue: dpkg rdepends on perl, but it isn&apos;t a build dependency? [build-deps]
WARNING: QA Issue: dpkg rdepends on xz, but it isn&apos;t a build dependency? [build-deps]
WARNING: QA Issue: dpkg rdepends on update-alternatives-opkg, but it isn&apos;t a build dependency? [build-deps]
NOTE: Tasks Summary: Attempted 13 tasks of which 0 didn&apos;t need to be rerun and all succeeded.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>