]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
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>
11 years agoutil-linux: Remove obsolete configure options
Richard Purdie [Fri, 29 Nov 2013 14:35:38 +0000 (14:35 +0000)]
util-linux: Remove obsolete configure options

WARNING: QA Issue: util-linux-native: configure was passed unrecognised options: --enable-rdev --enable-init --enable-arch --with-fsprobe

Remove obsolete configure options to silence warning.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-yocto/3.10: -rt, ebtables and e1000 fixes
Bruce Ashfield [Tue, 26 Nov 2013 17:33:45 +0000 (12:33 -0500)]
linux-yocto/3.10: -rt, ebtables and e1000 fixes

Updating the 3.10 SRCREVs for the following fixes:

  f47ea28 bridge: enable EBTABLES
  a9ec82e e1000: prevent oops when adapter is being closed and reset simultaneously
  a4e1bd7 Revert "arm: add dummy swizzle for versatile with qemu"

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-yocto/3.4: update to v3.4.69
Bruce Ashfield [Tue, 26 Nov 2013 17:33:44 +0000 (12:33 -0500)]
linux-yocto/3.4: update to v3.4.69

Bumping the 3.4 kernel to the latest korg -stable release.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux/yocto-3.10: merge v3.10.19
Bruce Ashfield [Tue, 26 Nov 2013 17:33:43 +0000 (12:33 -0500)]
linux/yocto-3.10: merge v3.10.19

Updating the linux-yocto-3.10 SRCREVs to the latest korg -stable
release.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agowebkit/midori: block to build webkit on mips64 with libn32 ABI
Roy Li [Fri, 29 Nov 2013 06:11:00 +0000 (14:11 +0800)]
webkit/midori: block to build webkit on mips64 with libn32 ABI

To mips64 libn32, The HOST_SYS is mips64-*-linux-gnun32, the COMPATIBLE_HOST
is mips64.*-linux, the regular expression matching both will return true. so
append the ending position word into COMPATIBLE_HOST to make match failure

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoalsa-state: add status command
Li Wang [Fri, 29 Nov 2013 10:56:59 +0000 (18:56 +0800)]
alsa-state: add status command

Signed-off-by: Li Wang <li.wang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoapmd: add status command
Li Wang [Fri, 29 Nov 2013 10:56:34 +0000 (18:56 +0800)]
apmd: add status command

Signed-off-by: Li Wang <li.wang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoppp: add status command
Li Wang [Fri, 29 Nov 2013 10:55:53 +0000 (18:55 +0800)]
ppp: add status command

Signed-off-by: Li Wang <li.wang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobusybox: add busybox_git.bb recipe
Chen Qi [Fri, 29 Nov 2013 12:15:45 +0000 (20:15 +0800)]
busybox: add busybox_git.bb recipe

Add busybox_git.bb recipe so that it would be easier to hack with
busybox. Set DEFAULT_PREFERENCE to "-1" in the git recipe so that we
still use the busybox_1.21.1.bb recipe by default.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-firmware: Remove bash scripts from target package
Richard Purdie [Fri, 29 Nov 2013 13:24:28 +0000 (13:24 +0000)]
linux-firmware: Remove bash scripts from target package

The carl9170fw is unbuilt, needs specialise toolchains, cmake and so on
so we might as well delete it (and lose the bash dependnecy).

Equally, the top level bash dependency from the empty configure script is
pointless.

[YOCTO #5555]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agohdparm: make wiper appear before hdparm in PACKAGES
Chen Qi [Fri, 29 Nov 2013 12:48:12 +0000 (20:48 +0800)]
hdparm: make wiper appear before hdparm in PACKAGES

Make wiper appear before hdparm in PACKAGES so that wiper is packaged
correctly.

[YOCTO #5555]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibsdl: Clean up configure option QA warnings
Richard Purdie [Fri, 29 Nov 2013 13:09:46 +0000 (13:09 +0000)]
libsdl: Clean up configure option QA warnings

WARNING: QA Issue: nativesdk-libsdl: configure was passed unrecognised options: --disable-video-gem --disable-video-xbios --enable-dlopen --disable-debug --enable-endian

The gem and xbios options exist but their helptext is wrong and there
is no "video" in the name. This patch removes the now obsolete options
and corrects the names of the others to match reality.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoadt_installer: Fix missing autogen.sh error
Richard Purdie [Fri, 29 Nov 2013 13:08:58 +0000 (13:08 +0000)]
adt_installer: Fix missing autogen.sh error

With the transition from svn -> tarball release, this issue was
missed. Instead of using autogen.sh, we can call configure
directly.

[YOCTO #5606]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolsb: de-bash scripts to remove bash dependency
Chen Qi [Fri, 29 Nov 2013 12:48:13 +0000 (20:48 +0800)]
lsb: de-bash scripts to remove bash dependency

De-bash some script in lsb to make it not dependent on bash.

[YOCTO #5555]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoimage.bbclass: Depend on virtual/kernel:do_deploy
Richard Purdie [Fri, 29 Nov 2013 14:36:42 +0000 (14:36 +0000)]
image.bbclass: Depend on virtual/kernel:do_deploy

Now that none of the packagegroups depend on virtual/kernel, we have the problem
that MACHINE=qemumips bitbake core-image-minimal doesn't put a kernel
into the deploy directory. This breaks many common usecases and
user expectations.

To avoid this, add a dependency on the kernel deploy to image do_build tasks.
This should avoid any circular dependency issues but equally ensure users
have their expectations met.

[YOCTO #5581]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolocal.conf.sample: Fix typo
Yi Zhao [Thu, 28 Nov 2013 08:18:52 +0000 (16:18 +0800)]
local.conf.sample: Fix typo

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobase/gcc-common: Ensure umask setting is consistent for shared workdir
Richard Purdie [Fri, 29 Nov 2013 11:22:56 +0000 (11:22 +0000)]
base/gcc-common: Ensure umask setting is consistent for shared workdir

gcc has cross and target components with a shared workdir. The unpack umask
settings need to match for all of these. We need to use strings in each
case to ensure the sstate code matches them correctly.

This patch tweaks various things to ensure the change adding the unpack umask
change doesn't break the compiler builds.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosstatesig.py: Fix image regeneration issue
Richard Purdie [Wed, 27 Nov 2013 15:32:13 +0000 (15:32 +0000)]
sstatesig.py: Fix image regeneration issue

With the "ABI safe" recipes, we've been excluding those from signatures. This
is fine in the general case but in the specific case of image recipes it breaks.

A good test case is the interfaces file. Editting this causes init-ifupdown
to rebuild but not an image containing it (e.g. core-image-minimal).

We need to ensure the checksums are added to the image recipes and this change
does that.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobase.bbclass: Set umask 022 also for do_unpack task
Martin Jansa [Fri, 22 Nov 2013 21:19:03 +0000 (22:19 +0100)]
base.bbclass: Set umask 022 also for do_unpack task

* when git checkouts files from fetched clone it respects system umask
  and creates files with different permissions, if such files are copied
  to packages, resulting target images have also different permissions
  on them.
* we need reproducible builds across different builders with different
  system umask, so set 022 umask

[YOCTO #5590]

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoxinput-calibrator: add formfactor to RDEPENDS
Martin Jansa [Thu, 21 Nov 2013 21:23:07 +0000 (22:23 +0100)]
xinput-calibrator: add formfactor to RDEPENDS

* 30xinput_calibrate.sh is calling ". /etc/formfactor/config"
  breaking Xsession for images without formfactor

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agomodule-base: Fix misleading comment
Richard Purdie [Wed, 27 Nov 2013 13:45:42 +0000 (13:45 +0000)]
module-base: Fix misleading comment

The comment was originally written for module.bbclass and is now
slightly misleading. This updates it to match the current code.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoRevert "kernel: restore scripts in the sysroot"
Richard Purdie [Wed, 27 Nov 2013 13:44:59 +0000 (13:44 +0000)]
Revert "kernel: restore scripts in the sysroot"

This reverts commit 6a6735cb98d529c8c5376aedb5c951339f54fe96.

The module class already ensures the scripts are rebuilt correctly. Running
this at sstate installation time is problematic since it can require the
cross compiler. Adding such a dependency would cause issues of its own.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agorpcbind: Fix rpcbind restart failure when rpcbind is not running
Zhangle Yang [Wed, 27 Nov 2013 14:00:21 +0000 (22:00 +0800)]
rpcbind: Fix rpcbind restart failure when rpcbind is not running

"rpcbind restart" executes stop and then start function. However, if
rpcbind is not started, "exit 0" shall be run in stop function, so start
function will not be run at all. This patch changes "exit 0" to "return 0".

Signed-off-by: Zhangle Yang <zhangle.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoelfutils: fix the condition check before remove eu-objdump
Roy Li [Tue, 26 Nov 2013 05:17:09 +0000 (13:17 +0800)]
elfutils: fix the condition check before remove eu-objdump

"grep -q" does not write anything to standard output, the result is same as
a empty string, The second test becomes [!""] which is a fixed true value

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibav: install libraries to right directory when multilib is enabled
Nick D'Ademo [Tue, 26 Nov 2013 06:26:46 +0000 (17:26 +1100)]
libav: install libraries to right directory when multilib is enabled

Explicitly set libdir and shlibdir to ${libdir} in EXTRA_OECONF. Otherwise, default library path of ${prefix}/lib is used which is incorrect in a multilib build.

Signed-off-by: Nick D'Ademo <nickdademo@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoweston: upgrade to 1.3.1
Ross Burton [Tue, 26 Nov 2013 17:33:43 +0000 (17:33 +0000)]
weston: upgrade to 1.3.1

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agochrpath: Improve crazy code
Richard Purdie [Tue, 26 Nov 2013 22:14:47 +0000 (22:14 +0000)]
chrpath: Improve crazy code

The current code is a little bit overcomplicated, deficient and also
possibly broken.

Issues include:

a) Not maximally optisming rpaths (e.g. a lib in usr/lib might get an
   rpath of $ORIGIN/../../usr/lib)
b) The return in the middle of the for loop look suspiciously like
   it might break on some binaries
c) The depth function, loops of "../" prepending and so on can
   be replaced with a call to os.path.relpath

This patch cleans up the above issues.

Running binaries should result in less "../" resolutions which can't
hurt performance either.

[YOCTO #3989]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoicecc: Disable icecc for allarch recipes
Martin Jansa [Wed, 27 Nov 2013 01:53:39 +0000 (02:53 +0100)]
icecc: Disable icecc for allarch recipes

* Fix icecc.bbclass failing with:
  ERROR: recipe-name NULL prefix
  when it's used with empty TARGET_PREFIX.
* Allarch recipes cannot use compiler at all (even the local one)
  so there is no point of using icecc for them.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agocronie: fix init.d/crond status return value
Yue Tao [Wed, 27 Nov 2013 07:55:43 +0000 (15:55 +0800)]
cronie: fix init.d/crond status return value

Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotcf-agent: add init.d/tcf-agent status command
Li Wang [Wed, 27 Nov 2013 07:55:44 +0000 (15:55 +0800)]
tcf-agent: add init.d/tcf-agent status command

Signed-off-by: Li Wang <li.wang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agozlib: Add ptest
Tudor Florea [Wed, 27 Nov 2013 08:02:19 +0000 (09:02 +0100)]
zlib: Add ptest

Install zlib tests and run them as ptest

Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotcl: fix version string and make recipe multilib build compatible
Nick D'Ademo [Wed, 27 Nov 2013 10:20:01 +0000 (21:20 +1100)]
tcl: fix version string and make recipe multilib build compatible

Explicitly set libdir in EXTRA_OECONF so that the correct library folder is generated in a multilib build.

The version string (VER) has been changed to 8.6.1 and the library paths have been updated accordingly so that the related tk recipe can correctly detect tcl (this search is done using the tclConfig.sh script which contains the tcl version number).

Signed-off-by: Nick D'Ademo <nickdademo@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>