Bug 8890 - bitbake -b dpkg fails
Summary: bitbake -b dpkg fails
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 2.0
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.1 M3
Assignee: Richard Purdie
QA Contact: Bogdan Alexandru Voiculescu
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-01-06 19:45 UTC by Paul Eggleton
Modified: 2016-02-15 15:04 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Eggleton 2016-01-06 19:45:01 UTC
bitbake -b doesn't take care of dependencies, but if we ensure dpkg'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'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 ['endian-little', 'common-linux', 'common-glibc', 'bit-64', 'x86_64-linux', 'common']
| DEBUG: Executing shell function autotools_preconfigure
| DEBUG: Shell function autotools_preconfigure finished
| DEBUG: Executing python function autotools_copy_aclocals
| DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc', 'bit-64', 'x86_64-linux', 'common']
| 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 <-- HERE in m/\${ <-- 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 <-- HERE in m/\${ <-- 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 <http://gnu.org/licenses/gpl-2.0.html>
| 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 <tromey@redhat.com>
|        and Alexandre Duret-Lutz <adl@gnu.org>.
| AUTOV is 1
| NOTE: Executing ACLOCAL="aclocal --system-acdir=/home/paul/poky/poky/build/tmp/work/core2-64-poky-linux/dpkg/1.18.2-r0/build/aclocal-copy/" 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 `.'
| 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 'AM_GNU_GETTEXT_VERSION' not found in library
| configure.ac:18: warning: macro 'AM_GNU_GETTEXT' 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?
Comment 2 Bogdan Alexandru Voiculescu 2016-02-15 15:04:56 UTC
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        = "1.29.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
TARGET_SYS        = "i586-poky-linux"
MACHINE           = "qemux86"
DISTRO            = "poky"
DISTRO_VERSION    = "2.0+snapshot-20160215"
TUNE_FEATURES     = "m32 i586"
TARGET_FPU        = ""
meta
meta-yocto
meta-yocto-bsp    = "master:36b43b233c841b3c09fc17e04686b4b758780963"

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't a build dependency? [build-deps]
WARNING: QA Issue: dpkg rdepends on libbz2, but it isn't a build dependency? [build-deps]
WARNING: QA Issue: dpkg rdepends on run-postinsts, but it isn't a build dependency? [build-deps]
WARNING: QA Issue: dpkg rdepends on glibc, but it isn't a build dependency? [build-deps]
WARNING: QA Issue: dpkg rdepends on zlib, but it isn't a build dependency? [build-deps]
WARNING: QA Issue: dpkg rdepends on perl, but it isn't a build dependency? [build-deps]
WARNING: QA Issue: dpkg rdepends on xz, but it isn't a build dependency? [build-deps]
WARNING: QA Issue: dpkg rdepends on update-alternatives-opkg, but it isn't a build dependency? [build-deps]
NOTE: Tasks Summary: Attempted 13 tasks of which 0 didn't need to be rerun and all succeeded.