scm/bb/tizen-distro.git
9 years agobitbake: toasterui: refactor log saving and save out-of-build errors
Alexandru DAMIAN [Thu, 24 Jul 2014 17:20:25 +0000 (18:20 +0100)]
bitbake: toasterui: refactor log saving and save out-of-build errors

We refactor log saving to go through only one code path.

All logs that happened outside the build (i.e. before build
starting) now will be logged to either toaster_ui.log if the
build command ran in interactive mode, or to the build request
errors if the command ran in managed mode.

This enables proper display of error logs in project page.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: build/data: Write out more complete python run files
Richard Purdie [Wed, 27 Aug 2014 13:24:52 +0000 (14:24 +0100)]
bitbake: build/data: Write out more complete python run files

Currently the output in the python task/function run files is rather
incomplete and effectively useless. This enhances the code to take
advantage of the bitbake's dependency tracking and extend the output to
include dependencies. This makes the files more usable for debugging
purposes. Since this only happens at python function execution time, the
overhead is minimal in the grand scheme of things.

(Bitbake rev: 02667e048c3e632f857c87177c0022eaf5481802)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: bitbake-worker: Extra profiling data dump
Richard Purdie [Wed, 27 Aug 2014 13:55:50 +0000 (14:55 +0100)]
bitbake: bitbake-worker: Extra profiling data dump

Currently we get no profiling oversight into either the main bitbake worker
process, or the overall parsing before task execution. This adds in extra
profiling hooks so we can truly capture all parts of bitbake's execution
into the profile data.

To do this we modify the 'magic' value passed to bitbake-worker to trigger
the profiling, before the configuration data is sent over to the worker.

(Bitbake rev: 446e490bf485b712e5cee733dab5805254cdcad0)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: utils: Improve profile log processing
Richard Purdie [Wed, 27 Aug 2014 13:56:25 +0000 (14:56 +0100)]
bitbake: utils: Improve profile log processing

This stream redirection of stdout is horrible. pstats takes a stream argument
so lets use that instead.

(Bitbake rev: 93d155f4766e27e7b004d13569aa03961fe89e3b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: fetch2/hg: Fix username/password handling
Richard Purdie [Wed, 27 Aug 2014 12:56:25 +0000 (13:56 +0100)]
bitbake: fetch2/hg: Fix username/password handling

We should only add user/password options if they're specified as in the
fetch case. Patch from Volker Vogelhuber <v.vogelhuber@digitalendoscopy.de>

(Bitbake rev: 303e6256947f4df4f283b75b7ccfdffa72864d67)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: runqueue: Fix setscene tasks not running
Richard Purdie [Wed, 27 Aug 2014 12:07:24 +0000 (13:07 +0100)]
bitbake: runqueue: Fix setscene tasks not running

Currently, if you have hard dependencies between setscene tasks (like avahi on
base-passwd through useradd.bbclass), other dependencies may not be installed
even if these exist in sstate. For example, avahi -> expat -> pigz-native
(and avahi -> base-passwd) yet if you cleansstate base-passwd:

bitbake gzip-native:do_clean avahi:do_clean expat:do_clean pigz-native:do_clean base-passwd:do_cleansstate
bitbake avahi | tee

you will currently see pigz-native being rebuilt even though it was in
sstate. The fix for this is to continue to iterate dependency chains
around hard blocked dependencies as per this patch.

After this patch is applied, you will see pigz-native installed from sstate.

(Bitbake rev: f787957a224e8c2682a19e5c4a4d9c86bdce52ba)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopopulate_sdk_base: Remap TOOLCHAIN_HOST_TASK variable
Richard Purdie [Thu, 28 Aug 2014 10:27:44 +0000 (11:27 +0100)]
populate_sdk_base: Remap TOOLCHAIN_HOST_TASK variable

Currently this variable isn't passed through the magic rename
mangling. This means that if you try adding "nativesdk-eglibc"
to an image directly, you can't since the package is renamed
by debian.bbclass and nothing sees the renaming.

This is annoying since I wanted to exactly that. This code
change passes it through the standard renaming function, the
tricky part is that we have to set PKGDATA_DIR to point to
the correct sysroot during the call. We create a copy of the
 datastore for the purposes of the call to do this.

(From OE-Core rev: d2fbc55d6863a767e69092bac686c02c3ec34650)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython3-distribute: fix interpreter
Robert Yang [Wed, 27 Aug 2014 15:57:14 +0000 (08:57 -0700)]
python3-distribute: fix interpreter

It should use "/usr/bin/env python3" rather than python.

(From OE-Core rev: 5cf12b20c08d927af8b1a4e2997d325a030c2269)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobootchart2: no bashism in bootchartd.in
Robert Yang [Wed, 27 Aug 2014 15:57:13 +0000 (08:57 -0700)]
bootchart2: no bashism in bootchartd.in

So use /bin/sh

(From OE-Core rev: bd96d929345e90d121f7a5d40fde382a4f83796b)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosed: add sed to RDEPENDS sed-ptest
Robert Yang [Wed, 27 Aug 2014 15:57:12 +0000 (08:57 -0700)]
sed: add sed to RDEPENDS sed-ptest

Its test scripts require /bin/sed.

(From OE-Core rev: f1a3f28c3f2aa9f16c138712fbfd671d731fd62e)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolsbtest: no bashism in LSB_Test.sh
Robert Yang [Wed, 27 Aug 2014 15:57:11 +0000 (08:57 -0700)]
lsbtest: no bashism in LSB_Test.sh

So use /bin/sh

(From OE-Core rev: 895ff60e5029e1b7f2f2c8b9a01eed900fe1fe00)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorun-ptest: fix bashism
Robert Yang [Wed, 27 Aug 2014 15:57:10 +0000 (08:57 -0700)]
run-ptest: fix bashism

These script use /bin/sh as the interpreter, but contains bashism:
    recipes-devtools/insserv/files/run-ptest
    recipes-devtools/quilt/quilt/run-ptest
    recipes-devtools/tcltk/tcl/run-ptest
    recipes-extended/gawk/gawk-4.1.1/run-ptest
    recipes-support/beecrypt/beecrypt/run-ptest

Fixed:
    "==" -> "=" (should be -eq when integer)
    "&>log" -> ">log 2>&1"

And quilt's test scripts requires bash, add bash to RDEPENDS_quilt-ptest

(From OE-Core rev: 70c6e0b84d3e17807cbea0677df2f0772a284130)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agovalgrind/oprofile/systemd: no bashism in run-ptest
Robert Yang [Wed, 27 Aug 2014 15:57:09 +0000 (08:57 -0700)]
valgrind/oprofile/systemd: no bashism in run-ptest

There is no bashism in the scripts, so use /bin/sh, and add /bin/sh
interpreter for systemd's run-ptest.

(From OE-Core rev: 62d455f89fb1d2c22cf987bdbb56a55e6d031ce0)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agometa: fix RDEPNEDS for the test related pkgs
Robert Yang [Wed, 27 Aug 2014 15:57:08 +0000 (08:57 -0700)]
meta: fix RDEPNEDS for the test related pkgs

Add bash, python or perl to the ptest pkgs to fix the RDEPENDS issues.

(From OE-Core rev: d081a85fc76e2b7a469c6c70175ecf7aed9de053)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoltp: fix RDEPENDS
Robert Yang [Wed, 27 Aug 2014 15:57:07 +0000 (08:57 -0700)]
ltp: fix RDEPENDS

Fixed:
/opt/ltp/testcases/bin/aio01 -> libaio
/opt/ltp/testcases/bin/*.sh -> bash
/opt/ltp/testcases/bin/*.py -> python
/opt/ltp/bin/*.awk -> awk

(From OE-Core rev: 92b554e2c023c14013625e4464df8fa7187e4524)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoethtool: upgrade to 3.15
Roxana Ciobanu [Wed, 27 Aug 2014 15:22:26 +0000 (18:22 +0300)]
ethtool: upgrade to 3.15

(From OE-Core rev: b983f74fe5147d09f1743eaff4c7808d0411c742)

Signed-off-by: Roxana Ciobanu <roxana.ciobanu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogstreamer1.0-plugins-bad: Add DEPENDS on jpeg
Carlos Rafael Giani [Wed, 27 Aug 2014 14:47:04 +0000 (16:47 +0200)]
gstreamer1.0-plugins-bad: Add DEPENDS on jpeg

libjpeg is automatically linked to if present. This cannot be turned off.
Adding DEPENDS on jpeg ensures that a proper dependency is established.

(From OE-Core rev: 4c13eced019eac49f047a620994c1b56af5d4951)

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogstreamer1.0-plugins-bad: Fix GL/GLES configuration
Carlos Rafael Giani [Wed, 27 Aug 2014 14:47:03 +0000 (16:47 +0200)]
gstreamer1.0-plugins-bad: Fix GL/GLES configuration

* Replace --disable/enable-gl with the individual EGL, GLES, GL switches
  (--disable-gl turns off GL support entirely)
* Put the default opengl packageconfig into its own variable to make it
  easier for distros and BSP layers to define what to use (GL, GLES,
  or neither)
* Add libglu as a dependency for desktop GL
* Patch configure.ac to ensure libraries are only searched and linked to
  if the corresponding API isn't disabled (this prevents cases where
  libgstgl is linked to GLU even though desktop GL is dis- and GLES
  enabled)

(From OE-Core rev: 7bf062f2e2b92c2401fa2386b6281aae023b21a8)

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogstreamer1.0-plugins-bad: Add DEPENDS on libpng
Carlos Rafael Giani [Wed, 27 Aug 2014 14:47:02 +0000 (16:47 +0200)]
gstreamer1.0-plugins-bad: Add DEPENDS on libpng

libpng is automatically linked to if present. This cannot be turned off.
Adding DEPENDS on libpng ensures that a proper dependency is established.

(From OE-Core rev: 413d5665cedd740125862e5eec5ca1f3b38b8363)

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogstreamer1.0-omx: Add DEPENDS on gstreamer1.0-plugins-bad
Carlos Rafael Giani [Wed, 27 Aug 2014 14:47:01 +0000 (16:47 +0200)]
gstreamer1.0-omx: Add DEPENDS on gstreamer1.0-plugins-bad

gst-omx links to libgstgl if it is present, and libgstgl is built by
gstreamer1.0-plugins-bad. Adding it as a DEPENDS ensures a proper
dependency is established.

(From OE-Core rev: a9790695e207ef989a691d97658d63b022144c7c)

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogstreamer1.0-plugins-bad: add opencv haar cascade XML files to package
Carlos Rafael Giani [Wed, 27 Aug 2014 16:42:27 +0000 (18:42 +0200)]
gstreamer1.0-plugins-bad: add opencv haar cascade XML files to package

(From OE-Core rev: fbd886eff693135bcd9fbe62cfd37f255798ca78)

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocpan.bbclass: matches more lines
Robert Yang [Thu, 28 Aug 2014 05:40:06 +0000 (22:40 -0700)]
cpan.bbclass: matches more lines

Fixed:
- There might be a space between "#!" and "/pat/to/usr/bin/perl", e.g.:
  "#! /usr/bin/perl", now also matches it.

- There might be the lines like the following in the body:
  eval 'exec /path/to/usr/bin/perl-native/perl -S $0 ${1+"$@"}'

  Now we only check "#! */path/to/usr/bin/perl" to make sure it is a
  perl script, but match and fix the lines in both header and body.

(From OE-Core rev: 0d2e2ac137465885a1d55103010ccfdec579f1ce)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoperl-native: fixed bad interpreter error
Robert Yang [Thu, 28 Aug 2014 05:40:05 +0000 (22:40 -0700)]
perl-native: fixed bad interpreter error

We may get the error on some hosts when build in deeper dir:
/bin/sh: /path/to/tmp/sysroots/i686-linux/usr/bin/perl-native/pod2man: /path/to/tmp/sysroots/i686-li:
bad interpreter: No such file or directory

Note the "i686-li", it should be "i686-linux", but is truncated by the
host.

We can use "/usr/bin/env nativeperl" as we have done in cpan.bbclass for
other recipe's perl script to fix the problem.

(From OE-Core rev: 83dec26849a120d0f1de64e63025354fa7108491)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopackagegroup-core-directfb: Set PACKAGE_ARCH to MACHINE_ARCH
Otavio Salvador [Wed, 27 Aug 2014 19:19:33 +0000 (16:19 -0300)]
packagegroup-core-directfb: Set PACKAGE_ARCH to MACHINE_ARCH

The contents change depends on the MACHINE_FEATURES so this is clearly
a machine specific package. Set it accordingly.

(From OE-Core rev: 347551fadfadeb7bde5948bbeca2a4f13ecaca41)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoofono: upgrade to 1.15
Cristian Iorga [Wed, 27 Aug 2014 18:10:04 +0000 (21:10 +0300)]
ofono: upgrade to 1.15

- Bug fixes;
Add support for Handsfree subscriber number feature;
Add support for Handsfree multiple DTMF characters;
Add support for PAP authentication.
- Added patch to revert tests to work with Python2.x.

(From OE-Core rev: 21f95b2db0f22dcb4d9cd59a90f291f72982f2a1)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobluez5: upgrade to 5.22
Cristian Iorga [Wed, 27 Aug 2014 18:10:03 +0000 (21:10 +0300)]
bluez5: upgrade to 5.22

Several fixes to HID over GATT (HoG) and for AVRCP.
Notable additions with the Linux kernel 3.17:
- BR/EDR whitelist support;
- Proper LE passive scanning support.

(From OE-Core rev: 4284b449a9a7a08935f99fecdd1de7c481d4a9b7)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoharfbuzz: upgrade to 0.9.35
Cristian Iorga [Wed, 27 Aug 2014 18:10:02 +0000 (21:10 +0300)]
harfbuzz: upgrade to 0.9.35

Bug fixes and minor changes/cleanups.

(From OE-Core rev: 08b4b19b15a2d561254750247f00b0e7a2459994)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoconnman: upgrade to 1.25
Cristian Iorga [Wed, 27 Aug 2014 18:10:01 +0000 (21:10 +0300)]
connman: upgrade to 1.25

build-libppp-plugin-without-versioning-info.patch
no longer needed, removed.
Changelog:
Fix issue with handling rebind timer for DHCPv6.
Fix issue with handling DHCP renew transaction.
Fix issue with user supplied proxy settings and DHCP.
Fix issue with extra status codes from captive portals.
Fix issue with service idle state reset on failure.
Fix issue with DNS label compression handling.
Add support for experimental P2P Peer service.

(From OE-Core rev: f53c5e7914ea37338817fcb7efbd42414045e07c)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopatchelf: Add patchelf recipe
Richard Purdie [Wed, 27 Aug 2014 14:50:22 +0000 (15:50 +0100)]
patchelf: Add patchelf recipe

This is useful since it allows us to edit the RPATH and interpreter fields
in ELF binaries. This is potentially particularly useful in improving the way
we can use the SDK and also potentially making native binaries more relocatable.

(From OE-Core rev: 003766fb2e50b11914ca06947ecfa039429b0815)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosstate: Add extra intercept functions
Richard Purdie [Wed, 27 Aug 2014 14:48:09 +0000 (15:48 +0100)]
sstate: Add extra intercept functions

In some cases we do either need to add extra sstate manipulation
functions, or change the existing modification functions. This patch
parametrises them to SSTATECREATEFUNCS and SSTATEPOSTUNPACKFUNCS and
abstracts the "hardcoded path" functions into separate functions using
these new variables.

We may use this new functionality to improve binary relocating using
patchelf for example, this at least lets us have the hooks to be able to
experiment.

(From OE-Core rev: 9d659c6f20fa4a141b491c62a3ef0dfb1f896d9c)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-dummy: bundle_initramfs should not be nostamp any more
Ming Liu [Wed, 27 Aug 2014 02:31:56 +0000 (10:31 +0800)]
linux-dummy: bundle_initramfs should not be nostamp any more

The same change has already been applied to kernel.bbclass in commit 55989cb5:
[ kernel.bbclass: Stop bundle_initramfs thwarting sstate cache and fix race ]

The dummy kernel should comply with it.

(From OE-Core rev: 0897fd6feb19b545af2ebc148a2f6f99341841a9)

Signed-off-by: Ming Liu <ming.liu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoqemu: add PACKAGECONFIG for numa
Jackie Huang [Wed, 27 Aug 2014 09:34:04 +0000 (05:34 -0400)]
qemu: add PACKAGECONFIG for numa

Add PACKAGECONFIG for numa to avoid build error:
backends/hostmem.c:21:20: fatal error: numaif.h: No such file or directory

Package numctl is from meta-oe.

(From OE-Core rev: 9661ce6ed5e01dd21360946c561b3c8a1ce9fc2c)

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibtiff: fix CVE-2013-1961
Muzaffar Mahmood [Mon, 25 Aug 2014 11:51:06 +0000 (16:51 +0500)]
libtiff: fix CVE-2013-1961

Integrate community fix for the issue CVE-2013-1961
and migrated to version 4.0.3.

Stack-based buffer overflow in the t2p_write_pdf_page function
in tiff2pdf in libtiff before 4.0.3 allows remote attackers to
cause a denial of service (application crash) via a crafted
image length and resolution in a TIFF image file.

(From OE-Core rev: f24e3456c60951d2985d7c23bdcc1f8c15d6c167)

Signed-off-by: Priyanka Shobhan <priyanka_shobhan@mentor.com>
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Muzaffar Mahmood <muzaffar_mahmood@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosystemd: Support building on uclibc
Khem Raj [Mon, 25 Aug 2014 23:45:04 +0000 (16:45 -0700)]
systemd: Support building on uclibc

include missing.h to get MAX_HANDLE_SZ which
is not defined in uclibc.

(From OE-Core rev: fa2a90ca632d10fe1a14098c3f4fcacc7cea6ac5)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agouclibc: Support systemd builds
Khem Raj [Mon, 25 Aug 2014 23:45:03 +0000 (16:45 -0700)]
uclibc: Support systemd builds

Systemd needs some extra defines e.g.
ADJ_NANO and IPTOS_CLASS_CS6

(From OE-Core rev: 7562021eef5b7585122c92db8b686808ebe7d85e)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agouclibc: Upgrade to tip of master
Khem Raj [Mon, 25 Aug 2014 23:45:02 +0000 (16:45 -0700)]
uclibc: Upgrade to tip of master

Adjust mips to cater for new mips32r2 defaulttune
Remove upstreamed patches

(From OE-Core rev: 8003ce0df3f6297391a709cc9720adffbd8fbd0f)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoopenssl: Re-add linux-uclibc tuple
Khem Raj [Mon, 25 Aug 2014 23:45:01 +0000 (16:45 -0700)]
openssl: Re-add linux-uclibc tuple

With last restructuring for musl, some of uclibc targets got ignored
fsl/ppc and ARM worked ok since they use special target triplets which
were already considered but other like mips, x86 and so on failed

(From OE-Core rev: 63ab0ce2103bcf3a42ce5812a22409779126e114)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoIBM power7 v2: Add new tune file for PPC power7
Armin Kuster [Tue, 26 Aug 2014 03:12:58 +0000 (20:12 -0700)]
IBM power7 v2: Add new tune file for PPC power7

v2: rename file

(From OE-Core rev: 14c773f61a6380f76b58ea0c1cca6e6010d581f8)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoIBM power6 v2: Add new tune file for PPC power6
Armin Kuster [Tue, 26 Aug 2014 03:12:57 +0000 (20:12 -0700)]
IBM power6 v2: Add new tune file for PPC power6

v2: rename file

(From OE-Core rev: b41be209514c2cb69359ee5e26f87beb078f01b2)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoIBM Power5 v2: Add new tune file for PPC power5 cpu
Armin Kuster [Tue, 26 Aug 2014 03:12:56 +0000 (20:12 -0700)]
IBM Power5 v2: Add new tune file for PPC power5 cpu

V2: rename file
(From OE-Core rev: fd46da6f37acbbac8a8b14d5991f75947688a9c2)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agonss: CVE-2014-1544
Li Wang [Tue, 26 Aug 2014 08:33:24 +0000 (16:33 +0800)]
nss: CVE-2014-1544

the patch comes from:
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2014-1544
https://hg.mozilla.org/projects/nss/rev/204f22c527f8

author  Robert Relyea <rrelyea@redhat.com>
https://bugzilla.mozilla.org/show_bug.cgi?id=963150
Bug 963150: Add nssCertificate_AddRef and nssCertificate_Destroy calls
to PK11_ImportCert to prevent nssTrustDomain_AddCertsToCache from
freeing the CERTCertificate associated with the NSSCertificate. r=wtc.

(From OE-Core rev: 7ef613c7f4b9e4ff153766f31dae81fc4810c0df)

Signed-off-by: Li Wang <li.wang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agologrotate: add packageconfigs
Fahad Usman [Tue, 26 Aug 2014 08:16:49 +0000 (13:16 +0500)]
logrotate: add packageconfigs

add packageconfigs for acl and selinux.

(From OE-Core rev: 885cec11c978975d5c51ded92882a3b00d5ccf8c)

Signed-off-by: Fahad Usman <fahad.usman@gmail.com>
Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agologrotate: obey our flags
Fahad Usman [Tue, 26 Aug 2014 08:16:48 +0000 (13:16 +0500)]
logrotate: obey our flags

Needed to quiet GNU_HASH warnings, and some minor fixes.

(From OE-Core rev: a46d3646a3e1781be4423b508ea63996b3cfca8a)

Signed-off-by: Fahad Usman <fahad.usman@gmail.com>
Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/sdk/buildsudoku.py: add setUpModule method to run only when gtk+ in installed.
Corneliu Stoicescu [Tue, 26 Aug 2014 10:05:44 +0000 (13:05 +0300)]
oeqa/sdk/buildsudoku.py: add setUpModule method to run only when gtk+ in installed.

Adding setUpModule in order to skip the module when gtk+ is not installed in the toolchain.

(From OE-Core rev: 97ac0fc33b9277825089ac36f9037d472d397b71)

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/oetest.py: enable sdk tests to use hasFeature and hasPackage methods.
Corneliu Stoicescu [Tue, 26 Aug 2014 10:05:43 +0000 (13:05 +0300)]
oeqa/oetest.py: enable sdk tests to use hasFeature and hasPackage methods.

In order to use the hasFeature and hasPackage methods, we need to make oeSDKTest extend oeTest and also set the test context (tc) attribute in the oeTest class when loading the tests.

(From OE-Core rev: 54436aeed5ac5e0da0779919f8524a0603e19c6a)

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/testimage.bbclass: add more fields to the sdk TestContext
Corneliu Stoicescu [Tue, 26 Aug 2014 10:05:42 +0000 (13:05 +0300)]
classes/testimage.bbclass: add more fields to the sdk TestContext

In order to use hasFeature and hasPackage methods in sdk test modules, we need specific fields to be set in the TestContext object.
Adding pkgmanifest, imagefeatures and distrofeatures to the TestContext.

(From OE-Core rev: cd342b399b2d78724032cdd7042968d3238cd548)

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/populate_sdk_base.bbclass: add a manifest for target sdk
Corneliu Stoicescu [Tue, 26 Aug 2014 10:05:41 +0000 (13:05 +0300)]
classes/populate_sdk_base.bbclass: add a manifest for target sdk

Similar to the way BSP images have rootfs a manifest, the toolchain now also has a manifest file created alongside the sdk image.

(From OE-Core rev: 3d42fd1f050a1382b15c3c4d59fd02d0ed7091b2)

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoqemux86-64: support X11 when QEMU is emulating a different GPU than vmware
Max Eliaser [Tue, 26 Aug 2014 17:34:13 +0000 (10:34 -0700)]
qemux86-64: support X11 when QEMU is emulating a different GPU than vmware

QEMU is capable of emulating four different VGA adapters: cirrus, std, vmware,
and QXL. By adding the cirrus and fbdev X.Org drivers to the qemux86-64 image,
the image can be made to launch an X server on when cirrus and std are chosen,
in addition to just vmware. (The build of QEMU in OE-Core appears to have QXL
disabled, meaning a driver for it is unnecessary.)

The runqemu script now allows the choice of emulated VGA adapter to be
specified manually, so it's important that qemux86-64 supports any configuration
the user might choose without requiring the image to be rebuilt.

(From OE-Core rev: 1216de77a7f23fa10e34aee1ebe27fcc6a6589c0)

Signed-off-by: Max Eliaser <max.eliaser@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoqemux86-64: xorg.conf: allow X.Org driver to be selected automatically.
Max Eliaser [Tue, 26 Aug 2014 17:34:12 +0000 (10:34 -0700)]
qemux86-64: xorg.conf: allow X.Org driver to be selected automatically.

A section specifying the driver to use is deleted from the image's xorg.conf,
allowing the X server to automatically select the most appropriate driver.
Testing shows that it does always pick the correct one.

(From OE-Core rev: 5dd70b1917bc60e4ea7bded8f348e46b4551dfb6)

Signed-off-by: Max Eliaser <max.eliaser@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoqemux86: support X11 when QEMU is emulating a different GPU than vmware
Max Eliaser [Tue, 26 Aug 2014 17:34:11 +0000 (10:34 -0700)]
qemux86: support X11 when QEMU is emulating a different GPU than vmware

QEMU is capable of emulating four different VGA adapters: cirrus, std, vmware,
and QXL. By adding the cirrus and fbdev X.Org drivers to the qemux86 image,
the image can be made to launch an X server on when cirrus and std are chosen,
in addition to just vmware. (The build of QEMU in OE-Core appears to have QXL
disabled, meaning a driver for it is unnecessary.)

The runqemu script now allows the choice of emulated VGA adapter to be
specified manually, so it's important that qemux86 supports any configuration
the user might choose without requiring the image to be rebuilt.

(From OE-Core rev: 9e4ca6739d65716fcb0a1b7d635749083da98c52)

Signed-off-by: Max Eliaser <max.eliaser@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoqemux86: xorg.conf: allow X.Org driver to be selected automatically.
Max Eliaser [Tue, 26 Aug 2014 17:34:10 +0000 (10:34 -0700)]
qemux86: xorg.conf: allow X.Org driver to be selected automatically.

A section specifying the driver to use is deleted from the image's xorg.conf,
allowing the X server to automatically select the most appropriate driver.
Testing shows that it does always pick the correct one.

(From OE-Core rev: 1354fdea6e04070fde4cb5a48ef824d0b22f0870)

Signed-off-by: Max Eliaser <max.eliaser@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoxorg-drivers: xf86-video-cirrus: add a recipe for the Cirrus Logic X.Org driver
Max Eliaser [Tue, 26 Aug 2014 17:34:09 +0000 (10:34 -0700)]
xorg-drivers: xf86-video-cirrus: add a recipe for the Cirrus Logic X.Org driver

This driver allows X.Org to use the Cirrus Logic family of VGA adapters. Since
QEMU can emulate a Cirrus VGA adapter, this driver will be of use for images
that are expected to run under QEMU, if QEMU's other VGA adapters are
unavailable.

(From OE-Core rev: d407734e3d25b66a0281cc287a3e929945dc52ed)

Signed-off-by: Max Eliaser <max.eliaser@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoarchiver.bbclass: add revision to git tarfile name
Joe Slater [Tue, 26 Aug 2014 17:29:31 +0000 (10:29 -0700)]
archiver.bbclass: add revision to git tarfile name

When archiving original source, insert the first 10
characters of srcrev, after stripping off any
AUTOINC+, into the filename for tarfiles created
from directories.

(From OE-Core rev: 36726049a6a452f85d7cc849d57ad6af05d6d3ea)

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agohicolor-icon-theme: Upgrade to 0.13
Roxana Ciobanu [Tue, 26 Aug 2014 16:08:24 +0000 (19:08 +0300)]
hicolor-icon-theme: Upgrade to 0.13

(From OE-Core rev: b6cc93f1008e2313eb9a17a11bfbc9980736878d)

Signed-off-by: Roxana Ciobanu <roxana.ciobanu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoxkeyboard-config: upgrade to 2.12
Roxana Ciobanu [Tue, 26 Aug 2014 16:04:39 +0000 (19:04 +0300)]
xkeyboard-config: upgrade to 2.12

(From OE-Core rev: a277a80f788082fa01d3794443e454d1a6a6c1da)

Signed-off-by: Roxana Ciobanu <roxana.ciobanu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoxf86-input-mouse: upgrade to 1.9.1
Roxana Ciobanu [Tue, 26 Aug 2014 15:59:22 +0000 (18:59 +0300)]
xf86-input-mouse: upgrade to 1.9.1

(From OE-Core rev: 67c8388f2c4b40d29273c55c8eebd85448e85de0)

Signed-off-by: Roxana Ciobanu <roxana.ciobanu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoxf86-input-synaptics: upgrade to 1.8.0
Ciobanu Roxana [Tue, 26 Aug 2014 15:54:45 +0000 (18:54 +0300)]
xf86-input-synaptics: upgrade to 1.8.0

    The two main changes in this release:
    - the eventcomm backend uses libevdev, we recommend libevdev 1.2 or newer
    - support for a secondary software button area for the Lenovo *40 series
    (T440, T540, X240, Helix, Yoga, ...).

(From OE-Core rev: a445d82fd4e7b3849a3708061368efb541f64e66)

Signed-off-by: Ciobanu Roxana <roxana.ciobanu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopsmisc: Update patch status
Paul Barker [Tue, 26 Aug 2014 12:07:47 +0000 (12:07 +0000)]
psmisc: Update patch status

The patch "Include <limits.h> for PATH_MAX" was accepted into the master branch
of psmisc by the maintainer. It should be included in the next release.

(From OE-Core rev: 2da97e3638e6fd7730df55963ad8392f7054c7dd)

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agonative/nativesdk: Clear MACHINEOVERRIDES
Khem Raj [Mon, 25 Aug 2014 19:01:17 +0000 (12:01 -0700)]
native/nativesdk: Clear MACHINEOVERRIDES

In cases where we override variables e.g PACKAGE_ARCH
conditionally and use a MACHINEOVERRIDE to qualify the
override like

PACKAGE_ARCH_<MACHINE> = "some target PACKAGE_ARCH"

This would also be effective if this recipe is
BBEXTENDED to native or nativesdk which is undesired
This particular issue will cause wrong sysroot to be
used for nativesdk case since PACKAGE_ARCH would have
been modified and eventually changing value of
STAGING_DIR_TARGET which we use as --sysroot option
to cross and cross-canadian built SDK gcc

(From OE-Core rev: 6907da7eb44dca812dbb9e214357ee96e9ff738a)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosanity: refactor mirrors checks to be more pythonic
Christopher Larson [Mon, 25 Aug 2014 22:57:44 +0000 (15:57 -0700)]
sanity: refactor mirrors checks to be more pythonic

- Use clearer variable names
- Use variable unpacking to reference elements by name rather than index
- Sacrifice a small amount of time (iterate over protocols twice per entry
  rather than once) for clarity: use readable generator expressions with any()
  rather than maintaining state.

(From OE-Core rev: 9d31e1e6ce07991fe360e67295311e62a55603af)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosanity: fix support for regex schemes in mirrors check
Christopher Larson [Mon, 25 Aug 2014 22:57:43 +0000 (15:57 -0700)]
sanity: fix support for regex schemes in mirrors check

(From OE-Core rev: c8afcb9cab9d610892db9c41b29685583f3b5773)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosanity: handle both \n and \\n in mirror vars
Christopher Larson [Mon, 25 Aug 2014 22:57:42 +0000 (15:57 -0700)]
sanity: handle both \n and \\n in mirror vars

(From OE-Core rev: 3e203e91afa48557eb754dd554944012f7f0c0a2)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoautogen-native: inherit pkgconfig to fix a build failure
Shrikant Bobade [Mon, 25 Aug 2014 08:08:49 +0000 (13:38 +0530)]
autogen-native: inherit pkgconfig to fix a build failure

This patch is to inherit pkgconfig to fix a build
failure.

(From OE-Core rev: 217aa4d9802609d2c3628c8751a27a5d25900898)

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Shrikant Bobade <Shrikant_Bobade@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibxml2: Explicitly enable zlib support
Otavio Salvador [Sun, 24 Aug 2014 19:39:15 +0000 (16:39 -0300)]
libxml2: Explicitly enable zlib support

The zlib support is a must if you are using RPM backend. So this
explicitly enable it and adds a comment in the recipe to avoid its
removal by mistake.

(From OE-Core rev: 7d056397ab9912316064db850aae05aacabc726c)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuildhistory: Restore parsing time optimalization
Martin Jansa [Sun, 24 Aug 2014 16:22:46 +0000 (18:22 +0200)]
buildhistory: Restore parsing time optimalization

* it was added in:
  http://git.openembedded.org/openembedded-core/commit/meta/classes/buildhistory.bbclass?id=540a2a30be21c3eca4323efbe91e7dcfc31a4c97
* then accidentally removed in:
  http://git.openembedded.org/openembedded-core/commit/meta/classes/buildhistory.bbclass?id=6db6c74f2876df7a183990426bb4262972966441

(From OE-Core rev: cbd868c34718e8fd2a41f5382da71ee959ea4e71)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: lib/bb/*.py: Typo fixes/grammar/comment fixes, nothing functional.
Robert P. J. Day [Wed, 20 Aug 2014 12:23:27 +0000 (08:23 -0400)]
bitbake: lib/bb/*.py: Typo fixes/grammar/comment fixes, nothing functional.

(Bitbake rev: 587b144ee409d444494d8d7f2d1c53ede8f7c953)

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: depexp: don't use undefined variable 'logging'
Olof Johansson [Thu, 21 Aug 2014 08:25:24 +0000 (10:25 +0200)]
bitbake: depexp: don't use undefined variable 'logging'

This fixes an issue when trying to use depexp without specifying a
recipe. Before change:

  $ bitbake -g -udepexp
  Traceback (most recent call last):
    File ".../bitbake/bin/bitbake", line 382, in <module>
      ret = main()
    File ".../bitbake/bin/bitbake", line 370, in main
      return ui_module.main(server_connection.connection, server_connection.events, configParams)
    File ".../bitbake/lib/bb/ui/depexp.py", line 201, in main
      logger.error(cmdline['msg'])
  NameError: global name 'logger' is not defined

After change:

  $ bitbake -g -udepexp
  Please specify a package name for dependency graph generation.

(Bitbake rev: 984ad90b2f1e29634dc79803a4a0404ab0534039)

Signed-off-by: Olof Johansson <olof.johansson@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake.conf: Drop unused MKTEMP* variables
Richard Purdie [Sun, 24 Aug 2014 09:08:33 +0000 (10:08 +0100)]
bitbake.conf: Drop unused MKTEMP* variables

(From OE-Core rev: 2bfe071d141117ddf41eade5404a0d27c349bbe8)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopackage: Disable runtime mapping of RPROVIDES/RCONFLICTS/RREPLACES
Richard Purdie [Tue, 19 Aug 2014 12:43:18 +0000 (13:43 +0100)]
package: Disable runtime mapping of RPROVIDES/RCONFLICTS/RREPLACES

It doesn't really make sense to run the remapping code on these
variables. If specific renaming is needed, it should be applied
manually. This means that the debian RPROVIDES of the original package
name can be preserved. There was also a bug report about this on the
OE-Core mailing list recently where someone else ran into this problem
too.

(From OE-Core rev: a0cd18ff5405b63b8296b8ef1fc2a488b906f576)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopackage: Don't remap names in packagegroup recipes
Richard Purdie [Tue, 19 Aug 2014 12:41:34 +0000 (13:41 +0100)]
package: Don't remap names in packagegroup recipes

For package groups, use the original package names and don't use the
remapped (e.g. debian) naming.

(From OE-Core rev: afde71e8784144f05cebb0bdeeff6b3184819362)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodebian: Set RPROVIDES to include the original packagename when renaming
Richard Purdie [Tue, 19 Aug 2014 12:40:36 +0000 (13:40 +0100)]
debian: Set RPROVIDES to include the original packagename when renaming

Currently its hard for a packagegroup recipe to depend on something who's name
can change unpredictably. We therefore add in RPROVIDES for the original
package name so that these are also available to use as dependencies.

(From OE-Core rev: 3409c4379559afbb1d1d29045582995147a33bbc)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosstatesig: Only squash dependencies for allarch packagegroups
Richard Purdie [Tue, 19 Aug 2014 12:38:34 +0000 (13:38 +0100)]
sstatesig: Only squash dependencies for allarch packagegroups

The idea of squashing packagegroup dependencies was to avoid allarch
packages rebuilding upon tune/arch changes. Now that the allarch class
inclusion is conditional, we can narrow down the packagegroup squashing
to be specifically applied to allarch recipes.

(From OE-Core rev: bd8018792155ae842952432900c8431feeaffe30)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopackagegroup: Move inherit packagegroup to after PACKAGE_ARCH
Richard Purdie [Tue, 19 Aug 2014 12:36:45 +0000 (13:36 +0100)]
packagegroup: Move inherit packagegroup to after PACKAGE_ARCH

This means these classes now avoid the allarch inherit entirely.

(From OE-Core rev: a56aed2e6e1b73bffd2bf82145fe48b82fde9292)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoallarch: Add warning about packagegroup
Richard Purdie [Tue, 19 Aug 2014 12:35:52 +0000 (13:35 +0100)]
allarch: Add warning about packagegroup

Since we want to start including this class conditionally, detect cases
where packagegroup files use the old ordering and inform the user they
need to update this.

(From OE-Core rev: 30aaada4b79fc1acad5fdaba98071b63c52b9e05)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopackagegroup: Make allarch inherit conditional
Richard Purdie [Tue, 19 Aug 2014 12:34:36 +0000 (13:34 +0100)]
packagegroup: Make allarch inherit conditional

Make the allarch inherit conditional on PACKAGE_ARCH being left as
all. The one downside to this approach is that recipes need to set
PACKAGE_ARCH *before* inheriting the class in order to avoid the inherit.

The advantage is that we could start to detect the use of the
allarch inherit in the sstatesig code for improved task checksums.

(From OE-Core rev: 9c826962ec8fa45c2b035427442b90a41517144e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: cooker: tweak CookerCollectFiles::find_bbfiles
Bernhard Reutner-Fischer [Fri, 22 Aug 2014 11:45:11 +0000 (13:45 +0200)]
bitbake: cooker: tweak CookerCollectFiles::find_bbfiles

since python-2.5 string.endswith() takes a tuple

(Bitbake rev: 86a67a1fd4244da9343dbf14deed1ad0d3003f32)

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoguile: workaround ice ssa corruption while DEBUG_BUILD
Hongxu Jia [Mon, 11 Aug 2014 02:23:46 +0000 (10:23 +0800)]
guile: workaround ice ssa corruption while DEBUG_BUILD

Add:
MACHINE = "qemux86-64"
DEBUG_BUILD = "1"
to local.conf and there was a ssa corruption to build guile:
..
Unable to coalesce ssa_names 48 and 3476 which are marked as MUST COALESCE.
sp_48(ab) and  sp_3476(ab)
guile-2.0.11/libguile/vm-engine.c: In function 'vm_debug_engine':
guile-2.0.11/libguile/vm.c:673:19: internal compiler error: SSA corruption
 #define VM_NAME   vm_debug_engine
                   ^
guile-2.0.11/libguile/vm-engine.c:39:1: note: in expansion of macro 'VM_NAME'
 VM_NAME (SCM vm, SCM program, SCM *argv, int nargs)
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
...

Tweak libguile/vm-i-system.c to check the value of nshuf to workaround it.
The tweak didn't change previous logic.

[YOCTO #6411]

(From OE-Core rev: 3470bbf4ae178479bd090d7191d6f0469f154b0d)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopuzzles: fix do_compile failed when DEBUG_BUILD
Hongxu Jia [Mon, 11 Aug 2014 04:39:53 +0000 (12:39 +0800)]
puzzles: fix do_compile failed when DEBUG_BUILD

There were compiling failure with option -g -O
...
././gtk.c: In function 'configure_area':
././gtk.c:397:2: error: 'cr' may be used uninitialized in this function [-Werror=maybe-uninitialized]
  cairo_set_source_rgb(cr,
  ^
././gtk.c:384:14: note: 'cr' was declared here
     cairo_t *cr;
              ^
././gtk.c: In function 'main':
././gtk.c:2911:6: error: 'error' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      fprintf(stderr, "%s: %s\n", pname, error);
      ^
cc1: all warnings being treated as errors
...

Initialized the pointers 'cr' and 'error' with NULL

[YOCTO #6410]

(From OE-Core rev: 2281180499cf3bec5c7e75cb596725dab190f72c)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agofixup
Richard Purdie [Sat, 23 Aug 2014 12:27:30 +0000 (13:27 +0100)]
fixup

(From OE-Core rev: 20992e8a00c585ab6b0611ca23ccd57e2b86b727)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobusybox : fix do_compile failed on qemumips when DEBUG_BUILD (ICE)
Hongxu Jia [Tue, 12 Aug 2014 12:10:16 +0000 (20:10 +0800)]
busybox : fix do_compile failed on qemumips when DEBUG_BUILD (ICE)

Build busybox on mips with -g -O, there is a ice failure:
...
shell/ash.c:8758:1: internal compiler error: in dwarf2out_var_location, at dwarf2out.c:21264
...
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
{standard input}: Assembler messages:
{standard input}: Warning: missing .end at end of assembly
{standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
...

The following line caused the ice failure on mips:
...
void evaltreenr(union node *, int) __attribute__ ((alias("evaltree"),__noreturn__));
...
So remove evaltreenr which was a alias of evaltree, and use evaltree
to instead.

[YOCTO #6625]

(From OE-Core rev: e9e2884a29e95703c5b1a2fffe5e6febfa77b5cd)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoopkg: Add runtime dep on gnupg if 'gpg' is in PACAKGECONFIG
Paul Barker [Fri, 8 Aug 2014 11:37:09 +0000 (11:37 +0000)]
opkg: Add runtime dep on gnupg if 'gpg' is in PACAKGECONFIG

The 'opkg-key' utility requires gpg to manage the list of trusted keys. The
ability to verify package signatures is not much use without the ability to add
keys to the trusted list...

(From OE-Core rev: ebd7dce320dfdbac449b60e23cfe41125b658319)

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogpgme: Add pkg-config file
Paul Barker [Fri, 8 Aug 2014 11:37:08 +0000 (11:37 +0000)]
gpgme: Add pkg-config file

A basic gpgme.pc file is installed with gpgme which should allow the library to
be found and used using pkg-config rather than gpgme-config.

(From OE-Core rev: 066eb8fbfd90f1a5af01a8f63adbe0cd2ae8cb5c)

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobind: refer ubuntu/redhat to add bind user/group
Hongxu Jia [Tue, 19 Aug 2014 10:04:42 +0000 (18:04 +0800)]
bind: refer ubuntu/redhat to add bind user/group

We refer what ubuntu/redhat did, gave bind a user/group

Here is the example in ubuntu 14.04:

$ ps -eo user,group,cmd | grep "named"
...
bind     bind     /usr/sbin/named -u bind
...

$vim bind9_1%3a9.9.5.dfsg-3_amd64.deb/postinst
...
    # lets give them a bind user/group in all cases.
    getent group bind >/dev/null 2>&1 || addgroup --system bind
    getent passwd bind >/dev/null 2>&1 ||
    adduser --system --home /var/cache/bind --no-create-home \
        --disabled-password --ingroup bind bind
...

(From OE-Core rev: e37841faf746895f41627130623196c0bebe0740)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoptest-runner: return 1 instead of zero if any test fails
Laszlo Papp [Fri, 22 Aug 2014 14:05:03 +0000 (15:05 +0100)]
ptest-runner: return 1 instead of zero if any test fails

It is better to know this information from the exit code rather than parsing
test specific outputs.

(From OE-Core rev: d6b1c9e7e29aaa8d71ccb485b7a88863a117a8b1)

Signed-off-by: Laszlo Papp <lpapp@kde.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoudev-cache: parametrize sysconf file paths
Richard Tollerton [Fri, 22 Aug 2014 21:30:54 +0000 (16:30 -0500)]
udev-cache: parametrize sysconf file paths

The udev-cache facility uses files that represent system states, to
ensure that the cache tarball is valid to apply. These paths were
hardcoded in several places; collect them into SYSCONF_CACHED and
SYSCONF_TMP.

(From OE-Core rev: f4fcb237da0d1013005e9a0bb2381cfeb4c5316c)

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoudev-cache: Don't ignore error messages from cache extract
Richard Tollerton [Fri, 22 Aug 2014 21:30:53 +0000 (16:30 -0500)]
udev-cache: Don't ignore error messages from cache extract

Previous changes should obviate all known spurious errors coming out of
tar. Since real extraction failures can and will occur, stop redirecting
stdout/stderr to /dev/null.

Take this opportunity to also remove an unnecessary subshell.

(From OE-Core rev: 09089962be353280201ba3899fd5ef9cc3c0ba32)

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoudev-cache: omit sockets and filesystems mounted under /dev
Richard Tollerton [Fri, 22 Aug 2014 21:30:52 +0000 (16:30 -0500)]
udev-cache: omit sockets and filesystems mounted under /dev

Archiving sockets causes tar to report an error and return a nonzero
exit status. Archiving a mounted filesystem is harmless, but may greatly
bloat the size of the cache tarball, and wastes time on boot.

To fix these issues, use `find` to only include the files we want, which
are the file types that udev will create (block/char devices and
symlinks) that are on the same filesystem as /dev.

While we're at it, remove a subshell by archiving /dev as an absolute
path. However, `tar` will complain about stripping the leading slash on
stderr. To inhibit this, `cut` out the leading slash.

An alternative solution is to use `tar --exclude`, but that is modestly
more brittle, since we'd need to explicitly list every socket and
filesystem to exclude. Note that `tar --one-file-system` is
GNU-specific, and tar implementations generally have nothing equivalent
to `find -type`.

If using busybox `find`, this change requires CONFIG_FEATURE_FIND_TYPE=y
and CONFIG_FEATURE_FIND_XDEV=y. If using busybox `tar`, this change
requires CONFIG_FEATURE_TAR_FROM=y.

(From OE-Core rev: e89df123e2ec516ae61763eab3c9e78e067e28d5)

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoudev-cache: strip timestamps on extract
Richard Tollerton [Fri, 22 Aug 2014 21:30:51 +0000 (16:30 -0500)]
udev-cache: strip timestamps on extract

Under normal udev operation, device nodes are obviously timestamped
based on the system time at current boot. However, when using
udev-cache, they are timestamped from a previous boot.

The existence of machines lacking RTCs makes this more than a cosmetic
issue: if the current time is set further on in the boot, so that the
system time is still 1970 by the time the cache is extracted, tar will
print a timestamp warning for every extracted file (potentially hundreds
of them).

To fix, use -m on extract.

If using busybox `tar`, this commit requires
CONFIG_FEATURE_TAR_NOPRESERVE_TIME=y.

(From OE-Core rev: b31f8f1f053cdfa9428e3f667c05e7e2c600061e)

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobusybox: enable `tar -m`
Richard Tollerton [Fri, 22 Aug 2014 21:30:50 +0000 (16:30 -0500)]
busybox: enable `tar -m`

CONFIG_FEATURE_TAR_NOPRESERVE_TIME=y is needed for the commit
"udev-cache: strip timestamps on extract". Enabling this flag increases
the size of busybox by 0 bytes on x86.

(From OE-Core rev: 11a772b3297ef36f3ebc4b67c9477022352d1c55)

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoudev-cache: choose a more descriptive cache filename
Richard Tollerton [Fri, 22 Aug 2014 21:30:49 +0000 (16:30 -0500)]
udev-cache: choose a more descriptive cache filename

"/etc/dev.tar.gz" doesn't adequately imply that udev-cache maintains it.
Instead, call it "/etc/udev-cache.tar.gz".

(From OE-Core rev: b33c678e2a5d42138a15b69802c5ddd109cb3b55)

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Ben Shelton <ben.shelton@ni.com>
Acked-by: Gratian Crisan <gratian.crisan@ni.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoudev-cache: Compress the cache
Richard Tollerton [Fri, 22 Aug 2014 21:30:48 +0000 (16:30 -0500)]
udev-cache: Compress the cache

$DEVCACHE is observed to be 100k uncompressed; compressing it reduces
its size to ~5k. But compress it outside of `tar` so that archival
operation takes as little time as possible, to minimize the risk of
devices being created/removed during execution.

(From OE-Core rev: 571df6ddba1caa6805f7c96cd592eea399c2aee2)

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoudev-cache: Update cache tarball atomically
Richard Tollerton [Fri, 22 Aug 2014 21:30:47 +0000 (16:30 -0500)]
udev-cache: Update cache tarball atomically

Overwriting the tarball in-place could cause a partial write, if the
system stops at an inopportune time. This is mitigated by first writing
to a temporary file, then moving that file on top of the final location.

(From OE-Core rev: 5dbf43fe32a1cf259f9379a7d2c008260eabf3ac)

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Ben Shelton <ben.shelton@ni.com>
Acked-by: Gratian Crisan <gratian.crisan@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/3.14: feature merges and configuration updates
Bruce Ashfield [Wed, 20 Aug 2014 16:21:32 +0000 (12:21 -0400)]
linux-yocto/3.14: feature merges and configuration updates

As part of LTSI efforts, the 3.14 kernel is receiving feature backports
from newer kernels.

With this change, we update the 3.14 SRCREVs to make the following
changes available:

 - full nohz backports (v3.16)
 - loopback NFS (v3.16)
 - numa updates (v3.16)
 - cgroups: vm_cgroup: basic infrastructure
 - cgroups: Resource controller for open files

And the following configuration change:

 - meta: features/ieee802154: add configuration fragment for IEEE 802.15.4
 - meta: features/bluetooth: add configuration fragment for Bluetooth support
 - meta: intel-common-standard: add ericson-3g to intel-common-standard.scc
 - cgroups: enable virtual memory resource controller
 - full nohz: Enable full dynticks system for nohz

(From OE-Core rev: fe2f51571f97e2cceae974f6a18782025e080c32)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/3.14: cgroups and hugetlb updates
Bruce Ashfield [Wed, 20 Aug 2014 16:21:31 +0000 (12:21 -0400)]
linux-yocto/3.14: cgroups and hugetlb updates

Update SRCREVs for the following feature ports:

    d61940e2aaee fs/hugetlbfs/inode.c: remove null test before kfree
    01a9d1b96a67 fs/hugetlbfs/inode.c: use static const for dentry_operations
    b58086c38038 fs/hugetlbfs/inode.c: add static to hugetlbfs_i_mmap_mutex_key
    182a45b35b74 fs/hugetlbfs/inode.c: complete conversion to pr_foo()
    a3c4b02bbb05 mm: hugetlb: fix copy_hugetlb_page_range()
    3757fbab4c89 hugetlb: rename hugepage_migration_support() to ..._supported()
    4d91ab2d26a0 mm, hugetlb: move the error handle logic out of normal code path
    49ea68f6eb8b hugetlb: add support for gigantic page allocation at runtime
    78dcff916fdf hugetlb: move helpers up in the file
    07b911e0a765 hugetlb: update_and_free_page(): don't clear PG_reserved bit
    d38ffe086659 hugetlb: add hstate_is_gigantic()
    46b2dd4acbaa hugetlb: prep_compound_gigantic_page(): drop __init marker
    8b4da9338c22 hugetlb: ensure hugepage access is denied if hugepages are not supported
    450e7d23d98c mm/hugetlb.c: add NULL check of return value of huge_pte_offset
    370cd4423fc4 mm, hugetlb: mark some bootstrap functions as __init
    31f0f8869bc9 mm, hugetlb: improve page-fault scalability
    f57f488c939b mm, hugetlb: use vma_resv_map() map types
    3263ee955d10 mm, hugetlb: remove resv_map_put
    92067ee5ebfd mm, hugetlb: fix race in region tracking
    30e1ab0b7502 mm, hugetlb: improve, cleanup resv_map parameters
    2d5919397a7b mm, hugetlb: unify region structure handling
    a36af1327d41 Fix [RFC] cgroups: Resource controller for open files.
    7dc531576e41 cgroups: Resource controller for open files.

(From OE-Core rev: 37fb3b84f701b88e95d6a3e2efccc46e8c01c1cf)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/3.14: fix common clock framework support in PCI glue layer
Bruce Ashfield [Wed, 20 Aug 2014 16:21:30 +0000 (12:21 -0400)]
linux-yocto/3.14: fix common clock framework support in PCI glue layer

The initial version of "spi/pxa2xx: Add common clock framework support in PCI glue layer"
enables the baytrail series of processors, but breaks some existing users of
the framework.

There's a new version of the patch out for review, so we revert the broken one and
udpate to the latest.

(From OE-Core rev: beae066d5af96e78d3bbaa52884922cb39bb48fd)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/3.14: KASLR and VDSO backports
Bruce Ashfield [Wed, 20 Aug 2014 16:21:29 +0000 (12:21 -0400)]
linux-yocto/3.14: KASLR and VDSO backports

Updating the 3.14 linux-yocto SRCREVs for feature backports:

   6cfe9c448741 x86, kaslr: boot-time selectable with hibernation
   881a5f5812fd x86, kaslr: fix module lock ordering problem
   121ec40d905d x86, kaslr: randomize module base load address
   6efd2d21273c x86, vdso: Add 32 bit VDSO time support for 64 bit kernel
   642441e17072 x86, vdso: Add 32 bit VDSO time support for 32 bit kernel
   1d8dd2e617d4 x86, vdso: Patch alternatives in the 32-bit VDSO
   353f3eadb16d x86, vdso: Introduce VVAR marco for vdso32
   5e6e6ec6eb5c x86, vdso: Cleanup __vdso_gettimeofday()
   91efa61ed6c2 x86, vdso: Replace VVAR(vsyscall_gtod_data) by gtod macro
   f9c259ee1b2f x86, vdso: __vdso_clock_gettime() cleanup
   63d9b1c4ec72 x86, vdso: Revamp vclock_gettime.c
   e3a8ed44c964 mm: Add new func _install_special_mapping() to mmap.c
   02a67e32e58d x86, vdso: Make vsyscall_gtod_data handling x86 generic
   d076cfb68504 x86, vdso, xen: Remove stray reference to FIX_VDSO
   949153696c99 x86_32, mm: Remove user bit from identity map PDE
   e5cf7dfec74d x86, vdso: Remove compat vdso support

(From OE-Core rev: 00dcb084682b7599f2a3e69dcb4978cbb38f5c58)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/3.14: update to v3.14.13
Bruce Ashfield [Wed, 20 Aug 2014 16:21:28 +0000 (12:21 -0400)]
linux-yocto/3.14: update to v3.14.13

Updating from 3.14.5 -> 3.14.13 to pick up the latest series of korg
stable updates.

(From OE-Core rev: bb1b6b7e580d5dfebf8aa424bff83f9ccadfba19)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/3.14: add ARM kprobes support
Bruce Ashfield [Wed, 20 Aug 2014 16:21:27 +0000 (12:21 -0400)]
linux-yocto/3.14: add ARM kprobes support

Adding the following commits to the 3.14 tree for ARM kprobe support:

   c1750e55eb75 ARM: add uprobes support
   33e8a1334afe ARM: Make arch_specific_insn a define for new arch_probes_insn structure
   b1d3feead083 ARM: Add an emulate flag to the kprobes/uprobes instruction decode functions
   84b5b70a01a2 ARM: Change the remaining shared kprobes/uprobes symbols to something generic
   624e5e9aab5a ARM: Rename the shared kprobes/uprobe return value enum
   7741eac39c2e ARM: Change more ARM kprobes symbol names to something more generic
   47f51bac6a2d ARM: Make the kprobes condition_check symbol names more generic
   3af2f454bb8e ARM: Remove use of struct kprobe from generic probes code
   a31964d3143a ARM: use a function table for determining instruction interpreter action
   6de77767abfc ARM: move generic thumb instruction parsing code to new files for use by other feature
   eb2db188b856 ARM: Move generic arm instruction parsing code to new files for sharing between features
   bbc0a43ff46e ARM: move shared uprobe/kprobe definitions into new include file
   f5f2896020e6 uprobes: allow ignoring of probe hits
   cb133db6bd60 ARM: Fix missing includes in kprobes sources

(From OE-Core rev: 835bb10d07d1a64119379e9837dd853dacfe79bc)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto: intel-common: Enable Industrial IO
Bruce Ashfield [Wed, 20 Aug 2014 16:21:26 +0000 (12:21 -0400)]
linux-yocto: intel-common: Enable Industrial IO

Updating the META branch SRCREV to import iio configuration settings.

(From OE-Core rev: bb8cada68e70b1246a76046a37ba57a3ca7aedde)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosanity.bbclass: check the format of MIRRORS
Robert Yang [Fri, 22 Aug 2014 08:31:27 +0000 (01:31 -0700)]
sanity.bbclass: check the format of MIRRORS

Check the format of MIRRORS, PREMIRRORS and SSTATE_MIRRORS:
* Each mirror shoudl contain two memebers.
* The local "file://" url must use absolute path (file:///).
* The protocol must in protocols list.

(From OE-Core rev: c8c213bb25b137cf70ba8ce9a45e60065d926735)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>