]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
11 years agosyslinux: add ability to compile with nativesdk
Hongxu Jia [Tue, 3 Dec 2013 10:27:05 +0000 (18:27 +0800)]
syslinux: add ability to compile with nativesdk

For regenerating and ISO or EFI boot image the nativesdk needs mtools
and syslinux.

[YOCTO #5623]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agomtools: add ability to compile with nativesdk
Hongxu Jia [Tue, 3 Dec 2013 10:27:04 +0000 (18:27 +0800)]
mtools: add ability to compile with nativesdk

For regenerating and ISO or EFI boot image the nativesdk needs mtools.

[YOCTO #5623]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agonspr: Update to 4.10.2
Saul Wold [Tue, 3 Dec 2013 23:09:27 +0000 (15:09 -0800)]
nspr: Update to 4.10.2

Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agolibxkbcommon: Update to 0.3.2
Saul Wold [Tue, 3 Dec 2013 23:08:41 +0000 (15:08 -0800)]
libxkbcommon: Update to 0.3.2

Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agofile: Update to 5.16
Saul Wold [Tue, 3 Dec 2013 23:07:47 +0000 (15:07 -0800)]
file: Update to 5.16

Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoacl: Update to 2.2.52
Saul Wold [Mon, 2 Dec 2013 21:38:35 +0000 (13:38 -0800)]
acl: Update to 2.2.52

Need to add configure.ac since it was not delivered in the tarball

Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agolicense.bbclass: fix copying license directories failed
Hongxu Jia [Wed, 20 Nov 2013 10:35:39 +0000 (18:35 +0800)]
license.bbclass: fix copying license directories failed

For each recipe, it populated license files to ${LICENSE_DIRECTORY}/${PN},
such as kernel's license dir was ${LICENSE_DIRECTORY}/kernel-3.10.17-yocto-standard;

In do_rootfs task, it copied license directories from ${LICENSE_DIRECTORY}/
${pkg}, and ${pkg} was listed in ${INSTALLED_PKGS};

We got ${INSTALLED_PKGS} by rpm query, such as the kernel were 'kernel-*',
but the kernel's PN was linux-yocto, so searching ${LICENSE_DIRECTORY}/
kernel-* failed.

Copied license directories from ${LICENSE_DIRECTORY}/${PN} fixed this issue.

[YOCTO #5572]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoperf: Disable warnings as errors for kernels 3.1+
Konrad Scherer [Thu, 7 Nov 2013 18:36:26 +0000 (13:36 -0500)]
perf: Disable warnings as errors for kernels 3.1+

Turns out the sed command has not been working as intended since
kernel 3.1 due to the trailing space. Adding the WERROR=0 environment
variable is the correct way to disable warnings as errors.

Signed-off-by: Konrad Scherer <Konrad.Scherer@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agonfs-utils: explicitly rdepend on bash
Chen Qi [Thu, 21 Nov 2013 07:26:54 +0000 (01:26 -0600)]
nfs-utils: explicitly rdepend on bash

Scripts in nfs-utils need bash as their interpreter, so if nfs-utils
doesn't explicitly rdepend on bash, we would experience build failures
if we add nfs-utils to glibc-small images.

Add bash to RDEPENDS to solve this problem.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agonfs-utils: separate package as Debain style
Zhang Xiao [Thu, 21 Nov 2013 08:07:24 +0000 (16:07 +0800)]
nfs-utils: separate package as Debain style

Move binaries used for both nfs client and server into client
package. Add an init script for client package and move
necessary progress from server's init script to this one. Make
client package more powerful and let server package depends on
client one, as Debain does.

Signed-off-by: Zhang Xiao <xiao.zhang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoshadow: remove reference to locale env files from login and su
Qiang Chen [Fri, 22 Nov 2013 04:59:46 +0000 (12:59 +0800)]
shadow: remove reference to locale env files from login and su

/etc/default/locale missing message appears when login
and running su <user>

qemu0 login[4189]: pam_env(login:session): Unable to open env file: /etc/default/locale: No such file or directory
qemu0 login[4189]: pam_unix(login:session): session opened for user root by LOGIN(uid=0)

qemu0 su[999]: pam_env(su:session): Unable to open env file: /etc/default/locale: No such file or directory
qemu0 su[999]: pam_unix(su:session): session opened for user root by root(uid=0)

This commit remove reference from pam.d/login and pam.d/su
to /etc/default/locale env file to avoid the error messages
as RHEL, fedora does.

Signed-off-by: Qiang Chen <qiang.chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoqemu: add bash and python to qemu's RDEPENDS
Hongxu Jia [Thu, 21 Nov 2013 13:11:01 +0000 (21:11 +0800)]
qemu: add bash and python to qemu's RDEPENDS

| Note: adding Smart RPM DB channel
|
| Note: to be installed:  qemu@x86_64 run-postinsts@x86_64 kernel-modules@qemux86_64 packagegroup-core-boot@qemux86_64
| Loading cache...
| Updating cache...               ######################################## [100%]
|
| Computing transaction...error: Can't install qemu-1.5.0-r0.0@x86_64: no package provides /usr/bin/python
|
| Saving cache...
|
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_rootfs (log file is located at tmp/work/qemux86_64-wrs-linux/wrlinux-image-glibc-small/1.0-r1/temp/do_rootfs/log.do_rootfs.21373)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agolibidn: enable TLD
Roy Li [Thu, 21 Nov 2013 06:36:32 +0000 (14:36 +0800)]
libidn: enable TLD

enable TLD, and other releases always enable it

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agogrub: add explicit dependency on bison-native
Jackie Huang [Tue, 19 Nov 2013 09:35:24 +0000 (17:35 +0800)]
grub: add explicit dependency on bison-native

grub requires bison and it will fail to configure on
the host without bison installed, add the dependency
to fix it.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoboot-directdisk: add the support of vmdk
yanjun.zhu [Tue, 19 Nov 2013 08:48:31 +0000 (16:48 +0800)]
boot-directdisk: add the support of vmdk

add the support of vmdk.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agolinux-yocto/*: restore branch designations
Bruce Ashfield [Fri, 6 Dec 2013 05:11:03 +0000 (05:11 +0000)]
linux-yocto/*: restore branch designations

The fetcher now confirms that a given SRCREV exists on the branch specified
in the SRC_URI. The linux-yocto recipes used to do this themselves, but that
functionality was removed to allow builds when only the SRCREV was set and
to be similar to other recipes.

Now that the fetcher checks this value, and other recipes must also have
SRCREV + branch information, this extra information can be put back into
the recipes.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopython-imaging: fix compilation with Freetype 2.5.1
Ross Burton [Fri, 6 Dec 2013 10:47:37 +0000 (10:47 +0000)]
python-imaging: fix compilation with Freetype 2.5.1

Take a patch from the Pillow "friendly fork" to fix compilation with Freetype
2.5.1.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopython: Add missing RDEPENDS for python-unittest
Mike Looijmans [Fri, 6 Dec 2013 06:46:51 +0000 (07:46 +0100)]
python: Add missing RDEPENDS for python-unittest

After installing python-unittest, the following errors occur when executing
"import unittest" from a python commandline:
ImportError: No module named StringIO
ImportError: No module named pprint
ImportError: No module named difflib
ImportError: No module named pprint
ImportError: No module named fnmatch

Fix this by adding the missing dependencies to the generator script and run
the generator.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotcl: fix tclConfig.sh to point to the correct private headers
Saul Wold [Thu, 5 Dec 2013 16:26:20 +0000 (08:26 -0800)]
tcl: fix tclConfig.sh to point to the correct private headers

When building expect with rm_work enabled, it was not finding the correct private
header files because they were removed from the WORKDIR, this fixes the tclConfig.sh
to point to the sysroot private area instead.

This also fixes the -L directory to point to STAGING_LIBDIR instead if INCDIR!

[YOCTO #5620]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agomx/lttng-*: Fix git branch references
Richard Purdie [Thu, 5 Dec 2013 16:24:48 +0000 (16:24 +0000)]
mx/lttng-*: Fix git branch references

Ensure the right branches are set in SRC_URI to match the revisions
used. This resolves certain fetch failures.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agofstests: update to git master
Ross Burton [Thu, 5 Dec 2013 16:18:47 +0000 (16:18 +0000)]
fstests: update to git master

Upstream git has a fix for broken compilation against Freetype 2.5.1.

It also integrates the link patch we had, and installs into $bindir.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agomatchbox-keyboard: Use the branchname the revision is on
Richard Purdie [Thu, 5 Dec 2013 15:18:42 +0000 (15:18 +0000)]
matchbox-keyboard: Use the branchname the revision is on

This avoids certain fetcher failures and network accesses.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoprelink: Set the branch name correctly for the revision we're using
Richard Purdie [Thu, 5 Dec 2013 13:48:22 +0000 (13:48 +0000)]
prelink: Set the branch name correctly for the revision we're using

The revision specified is on the cross_prelink branch so mark the
url accordingly else the fetch can fail in the no network case.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agocogl-1.0: explicitly disable cairo
Andreas Oberritter [Thu, 17 Oct 2013 11:31:28 +0000 (13:31 +0200)]
cogl-1.0: explicitly disable cairo

- Cairo was auto-detected, but not listed as a dependency.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolib/oeqa/runtime: output more logging from systemd when services have failed
Ross Burton [Thu, 5 Dec 2013 12:56:01 +0000 (12:56 +0000)]
lib/oeqa/runtime: output more logging from systemd when services have failed

If some services have failed to start, get the status of them and some of their
log to help debug the problem.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolib/oeqa/runtime: print connman status if connman failed to start
Ross Burton [Thu, 5 Dec 2013 12:56:00 +0000 (12:56 +0000)]
lib/oeqa/runtime: print connman status if connman failed to start

If connman isn't running and we're running under systemd, use systemctl to get
the state according to systemd and the end of the connman log.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agonativesdk-packagegroup-sdk-host: Added nativesdk-smartpm
David Nyström [Thu, 5 Dec 2013 11:35:43 +0000 (12:35 +0100)]
nativesdk-packagegroup-sdk-host: Added nativesdk-smartpm

This will allow offline creation of a rootfs, using only
the RPM package repository and a toolchain tarball.

Ref: https://github.com/nysan/rootfs-sandbox

Signed-off-by: David Nyström <david.nystrom@enea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoclasses/buildhistory: fix reading of package-specific values from pkgdata
Paul Eggleton [Thu, 5 Dec 2013 11:11:47 +0000 (11:11 +0000)]
classes/buildhistory: fix reading of package-specific values from pkgdata

When writing out variable values to pkgdata, if the value has been set
in the datastore with an override for the package, we use the package
name override in the pkgdata key as well; however the recently added
code to read pkgdata in buildhistory.bbclass was just using the override
where we normally expect to have it. However, if a recipe overrides one
of the values that is normally set for the recipe on a per-package basis
(e.g. the external-sourcery-toolchain recipe sets PKGV this way) then
this led to KeyErrors. Re-write the pkgdata loading code to always strip
off the package name override if it is present.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogmae: remove GMAE toolchain and packagegroups
Ross Burton [Wed, 4 Dec 2013 16:09:56 +0000 (16:09 +0000)]
gmae: remove GMAE toolchain and packagegroups

GMAE (GNOME Mobile And Embedded) doesn't really exist anymore and these packages
were a subset of it anyway.  Remove as they don't give the user anything useful
now that you can generate a SDK from an arbitrary image.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoupdate-rc.d: process symlinks recursively
Christopher Larson [Wed, 27 Nov 2013 18:07:01 +0000 (11:07 -0700)]
update-rc.d: process symlinks recursively

When processing startup scripts which use update-alternatives, we need to keep
resolving the symlink recursively until we hit a real file, due to the
alternatives indirection. This fixes the ability to run certain postinsts at
do_rootfs time, which is needed for good read-only-rootfs support.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopulseaudio: fix RDEPENDS traversal for consolekit
Christopher Larson [Wed, 27 Nov 2013 18:07:07 +0000 (11:07 -0700)]
pulseaudio: fix RDEPENDS traversal for consolekit

Include the console-kit module in PACKSGES explicitly so bitbake can map to
the RDEPENDS we define for it in this recipe, and thereby ensure that when
adding the console-kit module to an image, we also get the necessary
consolekit package produced.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoinit-live.sh: remove the '-c /dev/console' for switch_root
Chen Qi [Thu, 5 Dec 2013 09:11:17 +0000 (17:11 +0800)]
init-live.sh: remove the '-c /dev/console' for switch_root

The '-c DEV' option is specific to the switch_root provided by busybox.
switch_root from util-linux doesn't recognize this option. As a result,
if we we this init-live.sh script together with util-linux, we would get
a kernel panic when executing switch_root.

Besides, this option doesn't seem to have any useful effect as far as I
can see. Removing it doesn't affect the behaviours of our live images.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibav: Update to v0.8.9
Andrei Gherzan [Thu, 5 Dec 2013 09:01:41 +0000 (11:01 +0200)]
libav: Update to v0.8.9

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agorpm: Fixed Q&A Errors in netivesdk-rpm
David Nyström [Wed, 4 Dec 2013 15:18:15 +0000 (16:18 +0100)]
rpm: Fixed Q&A Errors in netivesdk-rpm

ERROR: QA Issue: nativesdk-rpm: Files/directories were installed but not shipped
  /opt/poky/1.5+snapshot/sysroots/x86_64-pokysdk-linux/usr/lib/rpm/bin/rpmcmp.real
  /opt/poky/1.5+snapshot/sysroots/x86_64-pokysdk-linux/usr/lib/rpm/bin/rpmrepo.real
  /opt/poky/1.5+snapshot/sysroots/x86_64-pokysdk-linux/usr/lib/rpm/bin/rpmdigest.real
  /opt/poky/1.5+snapshot/sysroots/x86_64-pokysdk-linux/usr/lib/rpm/bin/rpmspecdump.real
  /opt/poky/1.5+snapshot/sysroots/x86_64-pokysdk-linux/usr/lib/rpm/bin/rpmcache.real
  /opt/poky/1.5+snapshot/sysroots/x86_64-pokysdk-linux/usr/lib/rpm/bin/debugedit.real
  /opt/poky/1.5+snapshot/sysroots/x86_64-pokysdk-linux/usr/lib/rpm/bin/rpmdeps-oecore.real
  /opt/poky/1.5+snapshot/sysroots/x86_64-pokysdk-linux/usr/lib/rpm/bin/rpmdeps.real
ERROR: QA run found fatal errors. Please consider fixing them.

Signed-off-by: David Nyström <david.nystrom@enea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agofreetype: upgrade to 2.5.1
Ross Burton [Wed, 4 Dec 2013 15:38:01 +0000 (15:38 +0000)]
freetype: upgrade to 2.5.1

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoxserver: remove unrecognised options
Ross Burton [Wed, 4 Dec 2013 15:35:42 +0000 (15:35 +0000)]
xserver: remove unrecognised options

--disable-xorgcfg was removed in 2008.

--with-fontdir was renamed to --with-fontrootdir in 2009 and the default value
is good.

--disable-xf86misc was removed in 2008.

--disable-acfb, -ccfb and -mcfb should have been --disable-afb, -cfb, -mfb, and
were removed in 2008.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopixman: upgrade to 0.32.4
Ross Burton [Wed, 4 Dec 2013 15:35:41 +0000 (15:35 +0000)]
pixman: upgrade to 0.32.4

Drop the generic C implementation of pixman_blt patch, upstream refuses to
accept generic implementations as the policy is that the caller provides generic
paths, and this patch was only used in conjunction with a matching patch in
xserver-xorg which we don't carry anymore.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibxft: fix Freetype header inclusion
Ross Burton [Wed, 4 Dec 2013 15:35:39 +0000 (15:35 +0000)]
libxft: fix Freetype header inclusion

Freetype 2.5.1 changes the location of the header files but as directly
including the files isn't recommended they don't see this as a problem.  Change
libxft to use the recommended macros instead of direct inclusion, to fix the
compilation.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopango: upgrade to 1.36.1
Ross Burton [Wed, 4 Dec 2013 15:35:38 +0000 (15:35 +0000)]
pango: upgrade to 1.36.1

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibarchive: add SUMMARY and fix HOMEPAGE
Paul Eggleton [Wed, 4 Dec 2013 16:40:29 +0000 (16:40 +0000)]
libarchive: add SUMMARY and fix HOMEPAGE

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoopenssh: remove unrecognised configure option
Paul Eggleton [Wed, 4 Dec 2013 16:40:27 +0000 (16:40 +0000)]
openssh: remove unrecognised configure option

ssh-rand-helper was removed in OpenSSH 6.0 according to the upstream
changelog, so the configure option to enable/disable it was removed.

Fixes the following warning:
WARNING: QA Issue: openssh: configure was passed unrecognised options: --with-rand-helper

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogpgme: remove pth handling
Paul Eggleton [Wed, 4 Dec 2013 16:40:26 +0000 (16:40 +0000)]
gpgme: remove pth handling

pth support was removed from gpgpme in 1.3.2 according to the upstream
changelog, so drop all mention of it from the recipe.

Fixes the configure warning:
WARNING: QA Issue: gpgme: configure was passed unrecognised options: --without-pth-test --with-pth

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoicecc-create-env-native: Drop FILESPATH, document PATCHTOOL
Martin Jansa [Wed, 4 Dec 2013 17:33:18 +0000 (18:33 +0100)]
icecc-create-env-native: Drop FILESPATH, document PATCHTOOL

* moving icecc-create-env to BPN allows to drop FILESPATH
* document PATCHTOOL, because it's not easy to guess why it's needed

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agocpan-base: Add vardepvalue to get_perl_version function
Martin Jansa [Wed, 4 Dec 2013 17:32:43 +0000 (18:32 +0100)]
cpan-base: Add vardepvalue to get_perl_version function

* without this bitbake -S perf shows following error:
  ERROR: Bitbake's cached basehash does not match the one we just generated
    (/OE/oe-core/meta/recipes-kernel/perf/perf.bb.do_package)!
  if you run it twice, once without perl in sysroot and once with perl
  already built

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoicecc.bbclass: Fix whitespace, improve comment
Martin Jansa [Wed, 4 Dec 2013 22:10:30 +0000 (23:10 +0100)]
icecc.bbclass: Fix whitespace, improve comment

* Add leading space in big documentation block at the top
* Drop trailing spaces in code
* Update documentation to mention 'bb.utils.which' instead of 'which'

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake.conf/native.bbclass: Use FC instead of F77 for fortran
Richard Purdie [Thu, 5 Dec 2013 00:49:12 +0000 (00:49 +0000)]
bitbake.conf/native.bbclass: Use FC instead of F77 for fortran

gcc tooling appears to be standardising around the FC variable naming.
This patch changes the F77 namespace to FC instead and use the default
gfortran compiler. If anyone needs the F77 variables or tools, those
can still be made on a case by case basis.

Also updates local.conf.sample.extended accordingly.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogcc: Allow fortran to build successfully in 4.8
Richard Purdie [Thu, 5 Dec 2013 00:48:30 +0000 (00:48 +0000)]
gcc: Allow fortran to build successfully in 4.8

gcc 4.8 fortran presents some challenges:

* libquadmath headers need to be in the libexec include dir. It turns out
  to be easiest just to manually do this.
* libgfortran configure needs libquadmath to be compiled. This means
  a separate recipe is needed (the alternative is gross hacks)
* the libtool uses to link libgfortran doesn't have our improved rpath
  handling and puts bogus RPATHS into the libraries. We can avoid this
  by tweaking libtool with sed.

This patch resolves those issues. Any user of fortran does need to DEPEND
on libgfortran in order to trigger it to build but this shouldn't be a major
issue.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolib/oeqa/selftest: add tests for PR service
Corneliu Stoicescu [Wed, 4 Dec 2013 13:16:01 +0000 (15:16 +0200)]
lib/oeqa/selftest: add tests for PR service

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolib/oeqa/selftest: buildoptions: small fixes for some tests
Stefan Stanacar [Wed, 4 Dec 2013 13:13:52 +0000 (15:13 +0200)]
lib/oeqa/selftest: buildoptions: small fixes for some tests

While harmless, we should overwrite the config not append to it,
and use m4 as target, otherwise the WARN check will
build an entire image and we are not interested in that.
Also add an output check for the WARN_QA test.

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoclasses/recipes: More optimal DISTRO_FEATURES references
Richard Purdie [Wed, 4 Dec 2013 13:09:11 +0000 (13:09 +0000)]
classes/recipes: More optimal DISTRO_FEATURES references

Using the contains function results in more optimal sstate checksums
resulting in better cache reuse as we as more consistent code.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoeglibc-options: Rewrite so it benefits from bitbake's contains handling
Richard Purdie [Wed, 4 Dec 2013 13:07:25 +0000 (13:07 +0000)]
eglibc-options: Rewrite so it benefits from bitbake's contains handling

Having eglibc rebuild every time DISTRO_FEATURES changes is suboptimal.
This rewrite takes advantage of bitbake's understanding of the contains
function so this doesn't happen. The code is marginally uglier but is
worth the benefit in fewer libc rebuilds.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolib/oeqa/selftest/base, scripts/oe-selftest: fix wrong remove path and do a complete...
Stefan Stanacar [Wed, 4 Dec 2013 11:42:58 +0000 (13:42 +0200)]
lib/oeqa/selftest/base, scripts/oe-selftest: fix wrong remove path and do a complete cleanup at the end

The script should clean-up all the .inc files that might
have been created by tests regardless of the outcome or if
the script is interrupted. (currently the
last test will leave a conf/selftest.inc around, even
if it's not included anywhere)
Also fix delete_recipeinc to actually delete what's supposed to.

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqt4: fixed dependency on icu
Enrico Scholz [Wed, 4 Dec 2013 11:18:13 +0000 (12:18 +0100)]
qt4: fixed dependency on icu

Commit 46dcec6fd455584d9b5d0d7ff1e5b36fbe5a2d62 added 'icu' to DEPENDS
in qt4-x11 only, but enabled icu globally in qt4.inc.

This breaks build of qt4-embedded because this recipe does not have
such a DEPENDS but uses qt4.inc:

| icu.cpp:42:28: fatal error: unicode/utypes.h: No such file or directory
|  #include <unicode/utypes.h>
|                             ^
| compilation terminated.
| make: *** [icu.o] Error 1

Patch moves the 'icu' dependency into qt4.inc.

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Cc: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogstreamer1.0-plugins-bad: add PACKAGECONFIG for librsvg
Ross Burton [Wed, 4 Dec 2013 11:00:15 +0000 (11:00 +0000)]
gstreamer1.0-plugins-bad: add PACKAGECONFIG for librsvg

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogstreamer1.0-plugins-bad: respect directfb DISTRO_FEATURE
Ross Burton [Wed, 4 Dec 2013 11:00:14 +0000 (11:00 +0000)]
gstreamer1.0-plugins-bad: respect directfb DISTRO_FEATURE

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosecurity_flags: Add entry for openssl
Saul Wold [Tue, 3 Dec 2013 22:51:45 +0000 (14:51 -0800)]
security_flags: Add entry for openssl

It seems we might be stumbling over an obscure linkage issues possibly
similar to http://marc.info/?l=openssl-dev&m=130132183118768&w=2

This issue appears for x86-64 systems with the PIE related compiler flags.

libcrypto.a(cryptlib.o): relocation R_X86_64_PC32 against symbol
`OPENSSL_showfatal' can not be used when making a shared object; recompile with -fPIC

The error suggests recompiling with -fPIC, but it is already compiled that
way.

Disable the PIE flags makes it work for now, I have posted to openssl ML

[YOCTO #5515]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoattr: Add patch tracking details
Nathan Rossi [Wed, 4 Dec 2013 04:50:46 +0000 (14:50 +1000)]
attr: Add patch tracking details

Add author tracking information to the attr patch added by commit
b28f12a272a9e2f0c3084a58b91605acb05f58f8.

Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogst-plugins-good: Fix configure option
Richard Purdie [Wed, 4 Dec 2013 10:42:39 +0000 (10:42 +0000)]
gst-plugins-good: Fix configure option

Resolve the warning:

WARNING: QA Issue: gst-plugins-good: configure was passed unrecognised options: --without-check

(the option is no longer present)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoleafpad: Fix configure flags
Richard Purdie [Wed, 4 Dec 2013 10:41:59 +0000 (10:41 +0000)]
leafpad: Fix configure flags

Remove the now unused gtktest configure flag and add one for the emacs option
so we're deterministic. Resolves the warning:

WARNING: QA Issue: leafpad: configure was passed unrecognised options: --disable-gtktest

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibxkbfile: Remove obsolete configure option
Richard Purdie [Wed, 4 Dec 2013 10:41:13 +0000 (10:41 +0000)]
libxkbfile: Remove obsolete configure option

Resolves the QA error:

WARNING: QA Issue: libxkbfile: configure was passed unrecognised options: --without-xcb

(there is no such configure option any more)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoptest: ensure do_install_ptest_base task runs in fakeroot context
Ross Burton [Tue, 3 Dec 2013 17:21:57 +0000 (17:21 +0000)]
ptest: ensure do_install_ptest_base task runs in fakeroot context

As this task is installing files into $D it needs to run inside pseudo so that
special permissions and owners are preserved.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopopulate_sdk: verify executable or dynamically linked library
yzhu1 [Tue, 26 Nov 2013 08:38:28 +0000 (08:38 +0000)]
populate_sdk: verify executable or dynamically linked library

When toolchain directory is changed to execute mode, some non-executable
files or empty files are sorted. This will result in some errors. Thus when
sorting executable files or dynamically linked library, additional conditions
are to exclude non-executable files or empty files.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqemu: handle CLOEXEC/NONBLOCK if unavailable on host
Christopher Larson [Mon, 25 Nov 2013 20:05:13 +0000 (20:05 +0000)]
qemu: handle CLOEXEC/NONBLOCK if unavailable on host

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agocairo: add/use packageconfig for valgrind support
Christopher Larson [Mon, 25 Nov 2013 21:05:45 +0000 (21:05 +0000)]
cairo: add/use packageconfig for valgrind support

It was currently autodetecting.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopython, python-native: fix PARALLEL_MAKEINST failure
Christopher Larson [Mon, 25 Nov 2013 17:25:24 +0000 (17:25 +0000)]
python, python-native: fix PARALLEL_MAKEINST failure

When using make -j with the 'install' target, it's possible for altbininstall
(which normally creates BINDIR) and libainstall (which doesn't, though it
installs python-config there) to race, resulting in a failure due to
attempting to install python-config into a nonexistent BINDIR. Ensure it also
exists in the libainstall target.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoquota: apply patch to obey tcp-wrappers config
Christopher Larson [Mon, 25 Nov 2013 16:56:31 +0000 (16:56 +0000)]
quota: apply patch to obey tcp-wrappers config

Without this, the tcpwrappers argument wasn't obeyed, and as such the build
wasn't as deterministic as we'd prefer.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosubversion: fix build problem when sysroot contains '-D' or '-I'
Chen Qi [Sat, 16 Nov 2013 03:19:55 +0000 (03:19 +0000)]
subversion: fix build problem when sysroot contains '-D' or '-I'

If sysroot contains '-D' or '-I' characters, the SVN_NEON_INCLUDES and
the corresponding CFLAGS will not get the correct value.

This will cause build failures.

This patch fixes the above problem.

[YOCTO #5458]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoimage-mklibs: ensure sysroot is correctly set when calling gcc
Nicolas Dechesne [Fri, 22 Nov 2013 22:39:43 +0000 (22:39 +0000)]
image-mklibs: ensure sysroot is correctly set when calling gcc

[YOCTO #2519]

When getting gcc from sstate, it is possible to get a gcc with a bogus
sysroot configuration, as discussed in [1] or in [YOCTO #2519].

mklibs script will eventually call gcc, so we need to make sure that it
provides gcc with the right sysroot location.

[1] http://lists.openembedded.org/pipermail/openembedded-core/2013-September/084159.html

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoDon't set DESCRIPTION to the same value as SUMMARY
Paul Eggleton [Mon, 25 Nov 2013 18:50:47 +0000 (18:50 +0000)]
Don't set DESCRIPTION to the same value as SUMMARY

Setting DESCRIPTION to the same value as SUMMARY doesn't do anything,
since the value of DESCRIPTION will be derived from SUMMARY if not
specified.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agodropbear: set SUMMARY instead of DESCRIPTION
Paul Eggleton [Mon, 25 Nov 2013 18:31:08 +0000 (18:31 +0000)]
dropbear: set SUMMARY instead of DESCRIPTION

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoeee-acpi-scripts: tidy up recipe
Paul Eggleton [Mon, 25 Nov 2013 18:28:58 +0000 (18:28 +0000)]
eee-acpi-scripts: tidy up recipe

* Set SUMMARY instead of DESCRIPTION
* Move packaging variables to the end
* Fix spacing in LICENSE assignment
* Fix indenting

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoalsa-utils-alsaconf: tidy up path setting
Paul Eggleton [Mon, 11 Nov 2013 12:31:30 +0000 (12:31 +0000)]
alsa-utils-alsaconf: tidy up path setting

* Set FILESEXTRAPATHS instead of FILESPATH
* Don't set THISDIR, it's already set by base.bbclass

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosquashfs-tools: set SUMMARY instead of DESCRIPTION
Paul Eggleton [Mon, 25 Nov 2013 18:22:23 +0000 (18:22 +0000)]
squashfs-tools: set SUMMARY instead of DESCRIPTION

Also tidy up value a little bit.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosquashfs-tools: drop FILESPATHPKG
Paul Eggleton [Fri, 24 May 2013 14:34:52 +0000 (14:34 +0000)]
squashfs-tools: drop FILESPATHPKG

Drop FILESPATHPKG setting since it seems to be superfluous.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolib/oeqa: targetcontrol.py: add abstraction for running tests on different targets
Stefan Stanacar [Tue, 26 Nov 2013 09:18:21 +0000 (11:18 +0200)]
lib/oeqa: targetcontrol.py: add abstraction for running tests on different targets

Add a new module which abstracts the target object used by testimage.bbclass

The purpose of this module is to move the deployment of a target from testimage.bbclass,
basically abstracting different implementations of how we setup a target and how it runs commands.
It allows to select one implementation or another by setting TEST_TARGET (currently to: "qemu" and "simpleremote").

QemuTarget is used to start a qemu instance (as it's currently done in testimage.bbclass)
SimpleRemoteTarget is meant for a remote machine (by setting TEST_TARGET_IP) that's already up and running
with network and ssh.
Simply put, it opens the door for running the tests on different types of targets by adding new classes
(maybe qemu-nfsroot or remote-special etc.). One could also override BaseTarget which currently uses
the existing SSHControl module and add a serial implementation.

[ YOCTO #5554 ]

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotestimage: use the new targetcontrol.py module for running tests
Stefan Stanacar [Tue, 26 Nov 2013 09:18:22 +0000 (11:18 +0200)]
testimage: use the new targetcontrol.py module for running tests

This patch makes the necessary changes for using the targetcontrol.py module
so that one can run the same tests on a qemu instance or a remote machine
based on the value of TEST_TARGET variable: "qemu" or "simpleremote".
The default value is "qemu" which starts a qemu instance and it's the
with what we currently have.

With "simpleremote", the remote machine must be up with network and ssh
and you need to set TEST_TARGET_IP with the IP address of the remote machine
(it can still be a qemu instance that was manually started).

Basically testimage.bbclass now does something along the lines of:
 - load tests -> deploy (prepare) / start target -> run tests.
There were a couple of changes necessary for tests and
also some cleanups/renames that were needed to adjust this change. (use
ip everywhere when refering to target and server_ip when refering to host/build machine)
Also two unnecessary and unsed methods were dropped from sshcontrol.

[ YOCTO #5554 ]

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agokmod: avoid parallel-tests
Tudor Florea [Thu, 28 Nov 2013 12:48:05 +0000 (13:48 +0100)]
kmod: avoid parallel-tests

buildtest-TESTS and runtest-TESTS targets are required by ptest.
In order to have those targets in automake 1.13.4, serial-tests
should be specified since parallel test is assumed by default
and serial-tests is optional.

Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopython: do not replace ccache in the middle of a path
Yue Tao [Thu, 28 Nov 2013 08:34:48 +0000 (16:34 +0800)]
python: do not replace ccache in the middle of a path

Python recipe did a sed s/ccache/$(CCACHE) on the Makefile, which
replaces all "ccache" including ones that consist of a full path.
This leads to build error when building in a project path with
"ccache" in its name. Fix it by only replacing "ccache " with
"$(CCACHE) ".

Signed-off-by: Lei Liu <lei.liu2@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolib/oeqa: use the new manifest file for determining if a package is installed
Stefan Stanacar [Thu, 28 Nov 2013 13:27:00 +0000 (15:27 +0200)]
lib/oeqa: use the new manifest file for determining if a package is installed

Use the new manifest file instead of ${WORKDIR}/installed_pkgs.txt for determining
if an image has a certain package, because installed_pkgs.txt goes away with rm_work
enabled.
We can't use the IMAGE_MANIFEST var for the file path because that relies on IMAGE_NAME which
changes at every run (because of date), so we use the link which points to the last
one built.

[ YOCTO #5072 ]

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolib/oeqa/selftest: add test modules for expected bitbake output and bitbake-layers
Corneliu Stoicescu [Wed, 27 Nov 2013 17:08:53 +0000 (19:08 +0200)]
lib/oeqa/selftest: add test modules for expected bitbake output and bitbake-layers

Tests for bitbake-layers and expected output for some bitbake options.

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolib/oeqa/selftest: buildoptions.py: add simple image build tests
Alexandru Palalau [Wed, 27 Nov 2013 17:08:52 +0000 (19:08 +0200)]
lib/oeqa/selftest: buildoptions.py: add simple image build tests

Build images and tests different build options like RM_OLD_IMAGE
and for WARN_QA/ERROR_QA behaviour.

Signed-off-by: Alexandru Palalau <alexandrux.palalau@intel.com>
Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agometa-selftest: create a new test layer to be used by oe-selftest script
Corneliu Stoicescu [Wed, 27 Nov 2013 17:08:51 +0000 (19:08 +0200)]
meta-selftest: create a new test layer to be used by oe-selftest script

Everything in this layer is meant to be used by tests called by
scripts/oe-selftest. These are helper recipes/appends to test various bitbake
options or scripts.
Currently most of these files here only have "include test_recipe.inc" which
is the file tests will actually use.

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoscripts/oe-selftest: script to run builds as unittest against bitbake or various...
Stefan Stanacar [Wed, 27 Nov 2013 17:08:50 +0000 (19:08 +0200)]
scripts/oe-selftest: script to run builds as unittest against bitbake or various scripts

The purpose of oe-selftest is to run unittest modules added from meta/lib/oeqa/selftest,
which are tests against bitbake tools.

Right now the script it's useful for simple tests like:
  - "bitbake --someoption, change some metadata, bitbake X, check something" type scenarios (PR service, error output, etc)
  - or "bitbake-layers <...>" type scripts and yocto-bsp tools.

This commit also adds some helper modules that the tests will use and a base class.
Also, most of the tests will have a dependency on a meta-selftest layer
which contains specially modified recipes/bbappends/include files for the purpose of the tests.
The tests themselves will usually write to ".inc" files from the layer or in conf/selftest.inc
(which is added as an include in local.conf at the start and removed at the end)

It's a simple matter or sourcing the enviroment, adding the meta-selftest layer to bblayers.conf
and running: oe-selftest to get some results. It would finish faster if at least a core-image-minimal
was built before.

[ YOCTO #4740 ]

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoclasses/buildhistory: do git garbage collection after committing
Paul Eggleton [Mon, 2 Dec 2013 18:50:51 +0000 (18:50 +0000)]
classes/buildhistory: do git garbage collection after committing

We don't normally perform any operations (such as "git pull") that
trigger "git gc --auto", thus garbage collection never happens which
means performance of accessing the repository degrades noticeably over
time. Add an explicit "git gc --auto" to clean things up when needed.

Thanks to Elijah Newren and Ross Burton for suggesting this.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoclasses/buildhistory: reduce parsing time
Paul Eggleton [Mon, 2 Dec 2013 18:50:50 +0000 (18:50 +0000)]
classes/buildhistory: reduce parsing time

Disable several python functions if not parsing within the worker
context. This avoids executing expensive operations while parsing
recipes (which is unnecessary).

(Thanks to Richard Purdie for pointing out the issue and suggesting the
workaround.)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoclasses/buildhistory: improve collection of package info
Paul Eggleton [Mon, 2 Dec 2013 18:50:49 +0000 (18:50 +0000)]
classes/buildhistory: improve collection of package info

Use a function added to SSTATEPOSTINSTFUNCS and read the necessary
information out of pkgdata, instead of using a function executed
during do_package that reads the data directly. This has two benefits:

* The package info collection will now work when the package content is
  restored from shared state

* Adding/removing the inherit of buildhistory will no longer change the
  do_package signatures and force re-execution of that function for
  every recipe.

Fixes [YOCTO #5358]

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoclasses/buildhistory: add additional variables to image information
Paul Eggleton [Mon, 2 Dec 2013 18:50:48 +0000 (18:50 +0000)]
classes/buildhistory: add additional variables to image information

Add PACKAGE_EXCLUDE and NO_RECOMMENDATIONS to the info we track for
images, since these can change what ends up in the image.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoclasses/buildhistory: drop cruft from old SRCREV tracking implementation
Paul Eggleton [Mon, 2 Dec 2013 18:50:47 +0000 (18:50 +0000)]
classes/buildhistory: drop cruft from old SRCREV tracking implementation

This should have been removed when the implementation was rewritten in
OE-Core commit 2179db89436d719635f858c87d1e098696bead2a. The collected
values weren't being used anywhere since then.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoclasses/package: write PE and PKGE out to pkgdata
Paul Eggleton [Mon, 2 Dec 2013 18:50:46 +0000 (18:50 +0000)]
classes/package: write PE and PKGE out to pkgdata

These are important parts of the version for every package, so we should
include them in PKGDATA just as we include PV/PR/PKGV/PKGR.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoclasses/package: record PKGSIZE as total file size in pkgdata
Paul Eggleton [Mon, 2 Dec 2013 18:50:45 +0000 (18:50 +0000)]
classes/package: record PKGSIZE as total file size in pkgdata

We were using "du -sk" to collect the total size of all files in each
package for writing out to PKGSIZE in each pkgdata file; however this
reports the total space used on disk not the total size of all files,
which means it is dependent on the block size and filesystem being used
for TMPDIR on the build host. Instead, take the total of the size
reported by lstat() for each packaged file, which we are already
collecting for FILES_INFO in any case.

Note: this changes PKGSIZE to be reported in bytes instead of kilobytes
since this is what lstat reports, but this is really what we should be
storing anyway so that we have the precision if we need it.

Fixes [YOCTO #5334]

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoclasses/package: fix FILES_INFO serialisation in pkgdata
Paul Eggleton [Mon, 2 Dec 2013 18:50:44 +0000 (18:50 +0000)]
classes/package: fix FILES_INFO serialisation in pkgdata

The FILES_INFO entry in each pkgdata file stores the list of files for
each package. Make the following improvements to how this is stored:
* Store paths as they would be seen on the target rather than
  erroneously including the full path to PKGDEST (which is specific to
  the build host the package was built on)
* For simplicity when loading the data, store complete paths for each
  entry instead of trying to break off the first part and use it as the
  dict key
* Record sizes for each file (as needed by Toaster)
* Serialise the value explicitly using json rather than just passing it
  through str().

Fixes [YOCTO #5443].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobabeltrace: correct PV variable
Cristiana Voicu [Mon, 2 Dec 2013 09:12:05 +0000 (11:12 +0200)]
babeltrace: correct PV variable

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoclasses/icecc: fix typos in header comments
Paul Eggleton [Mon, 2 Dec 2013 19:17:48 +0000 (19:17 +0000)]
classes/icecc: fix typos in header comments

Looking at the code, it should be ICECC_USER_PACKAGE_BL and not
ICECC_PACKAGE_BL here, and also fix "localy" -> "locally".

Thanks to Scott Rifenbark for pointing this out.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-dummy: catch up with image.bbclass changes
Koen Kooi [Mon, 2 Dec 2013 12:04:37 +0000 (13:04 +0100)]
linux-dummy: catch up with image.bbclass changes

image.bbclass now depends on virtual/kernel:do_deploy, so add a task for that.

This fixes errors like this:

ERROR: Task do_build in /build/linaro/build/meta-linaro/meta-linaro/recipes-linaro/images/linaro-image-lng.bb depends upon non-existent task do_deploy in /build/linaro/build/openembedded-core/meta/recipes-kernel/linux/linux-dummy.bb

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agooe-init-build-env-memres: Add auto port functionality
Jason Wessel [Mon, 25 Nov 2013 21:21:29 +0000 (15:21 -0600)]
oe-init-build-env-memres: Add auto port functionality

In order to run multiple bitbake memory resident servers on the same
machine they must each use different ports.

This patch works in conjuction with bitbake to make the auto port
selection and lazy server startup the default.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agooe-init-build-env: Allow startup with and without memres
Jason Wessel [Mon, 25 Nov 2013 21:21:28 +0000 (15:21 -0600)]
oe-init-build-env: Allow startup with and without memres

Use the bitbake --status-only and the fact that bitbake.lock will
contain the host name and port to determine when to activate or
shutdown the stay resident bitbake server.

This allows a end developer to cleanly switch between the two ways to
use bitbake as well as enter the memres bitbake server from multiple
shells without starting the server if it is already running.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogcc-cross-canadian: Fix fortran build
Richard Purdie [Tue, 10 Sep 2013 11:20:29 +0000 (11:20 +0000)]
gcc-cross-canadian: Fix fortran build

When fortran was enabled, builds were failing due to a extra files.
For now we can remove these and avoid the build failure.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoeglibc-initial.inc: Drop duplicate include
Richard Purdie [Fri, 29 Nov 2013 17:53:18 +0000 (17:53 +0000)]
eglibc-initial.inc: Drop duplicate include

There is little point in including the file twice so lets not. The
main recipe already included it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqt4-x11-free: depend on ICU
Ross Burton [Fri, 29 Nov 2013 13:51:05 +0000 (13:51 +0000)]
qt4-x11-free: depend on ICU

ICU presence is auto-detected at configure time and until recently (e68850 and
d61230) was pulled into most builds through harfbuzz and beecrypt.  Now it's
floating and this leads to build failures.

As in all likelihood the majority of people were building this with ICU enabled,
add an explicit dependency.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosqlite3: Fix configure option warning
Richard Purdie [Fri, 29 Nov 2013 14:36:09 +0000 (14:36 +0000)]
sqlite3: Fix configure option warning

WARNING: QA Issue: sqlite3: configure was passed unrecognised options: --disable-tcl

There is no tcl option or support now so remove the option.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>