]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
8 years agocreate-pull-request: set subject automatically for cover latter
Robert Yang [Tue, 19 Apr 2016 02:16:03 +0000 (19:16 -0700)]
create-pull-request: set subject automatically for cover latter

Set cover letter's subject automatically as the patch's subject when
there is only one patch.

[YOCTO #9410]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agocreate-pull-request: read remote from env var CPR_CONTRIB_REMOTE
Robert Yang [Mon, 18 Apr 2016 09:33:15 +0000 (02:33 -0700)]
create-pull-request: read remote from env var CPR_CONTRIB_REMOTE

So that we don't have specify "-u <contrib>" everytime, and
CPR_CONTRIB_REMOTE can be overrided by -u.

[YOCTO #9409]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agocreate-pull-request: add option -a to auto push
Robert Yang [Wed, 20 Apr 2016 00:30:03 +0000 (17:30 -0700)]
create-pull-request: add option -a to auto push

Before this patch, we need two steps to create PULL:
* Step 1, create branch:
  $ git push <contrib> <local_branch>:<remote_branch>
* Step 2, create PULL:
  $ create-pull-request -u <contrib> -l <local_branch> -b <remote_branch> -r <local_branch>~<n>

We can see that the args used in step 1 are in step 2, so we can use
"create-pull-request -a" or set CPR_CONTRIB_AUTO_PUSH in to create the
branch to simplify the steps.

[YOCTO #9408]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agocronie: upgrade to 1.5.1
Alejandro Hernandez [Tue, 2 Aug 2016 15:08:36 +0000 (15:08 +0000)]
cronie: upgrade to 1.5.1

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoAsciidoc: add it
Dengke Du [Wed, 27 Jul 2016 05:02:02 +0000 (01:02 -0400)]
Asciidoc: add it

In order to enable perf man pages for basic 'help' functionality,
it needs to produce man pages for perf, which depends on the xmlto
and asciidoc tools.
So add the asciidoc recipe to help produce man pages for perf and
other commands.

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoaugeas: remove from oe-core
Ross Burton [Tue, 2 Aug 2016 13:05:11 +0000 (14:05 +0100)]
augeas: remove from oe-core

Nothing in oe-core uses this, so it's been moved to meta-oe.

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agotcl: 8.6.5 -> 8.6.6
Robert Yang [Tue, 2 Aug 2016 08:51:29 +0000 (01:51 -0700)]
tcl: 8.6.5 -> 8.6.6

Updated no_packages.patch.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agostrace: 4.12 -> 4.13
Robert Yang [Tue, 2 Aug 2016 08:51:28 +0000 (01:51 -0700)]
strace: 4.12 -> 4.13

Updated Makefile-ptest.patch

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibcap-ng: 0.7.7 -> 0.7.8
Robert Yang [Tue, 2 Aug 2016 08:51:27 +0000 (01:51 -0700)]
libcap-ng: 0.7.7 -> 0.7.8

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogrub2.inc: run autogen.sh before configure
mingli.yu@windriver.com [Tue, 2 Aug 2016 06:38:10 +0000 (14:38 +0800)]
grub2.inc: run autogen.sh before configure

* When adding new source files from upstream the autogen.sh
  script needs to be run
* Rework grub2-remove-sparc64-setup-from-x86-builds.patch
  to remove the grub-setup helper program grub-sparc64-setup
  in Makefile.util.def instead of the previous Makefile.util.am
  to avoid the update for Makefile.util.am in do_patch phase is
  overwritten by the autogen.sh in do_configure phase

Signed-off-by: Catalin Enache <catalin.enache@windriver.com>
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa/utils/sshcontrol.py: Allows to copy symlinks to target
Mariano Lopez [Tue, 26 Jul 2016 09:38:57 +0000 (09:38 +0000)]
oeqa/utils/sshcontrol.py: Allows to copy symlinks to target

Currently when copying a symlink to the target it will fail
throwing an exception. This will recreate symlinks from the
system performing the tests to the device under tests.

[YOCTO #9932]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa/oetest.py: Allow to export packages using symlinks
Mariano Lopez [Tue, 26 Jul 2016 09:38:56 +0000 (09:38 +0000)]
oeqa/oetest.py: Allow to export packages using symlinks

Currently packages that contains symlinks can't be extracted
and exported. This allows to export extracted such packages.

A nice side effect is improved readability.

[YOCTO #9932]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooetest.py: Remove check for __init__.py
Mariano Lopez [Thu, 21 Jul 2016 16:34:39 +0000 (16:34 +0000)]
oetest.py: Remove check for __init__.py

When using "auto" in TEST_SUITES there is a check
for __init__.py in the <layer>/lib/oeqa/runtime/
directory in all the layers in BBLAYERS.

This check was needed because the way that python 2
import the modules, now that bitbake uses python 3
there is no need these __init__.py files, moreover
these files won't allow to import tests from other
layers.

This patch removes the check.

[YOCTO #9996]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooetest.py: Add command line parameter support for tag in testexport
Mariano Lopez [Mon, 4 Jul 2016 12:23:16 +0000 (12:23 +0000)]
oetest.py: Add command line parameter support for tag in testexport

This allows to use a command line argument to change the
tag used to filter test instead of rebuilding the tests.

[YOCTO #8532]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobitbake.conf: set READELF for cross compilation
Jeremy Puhlman [Mon, 1 Aug 2016 16:02:55 +0000 (09:02 -0700)]
bitbake.conf: set READELF for cross compilation

In the case of using an external toolchain that supports multilib
compilation with a single binary, TARGET_PREFIX is the same for both main
and multilib abis. Without READELF exported, python3 assumes it is
either the readelf for ${BUILD_SYS}-readelf. Exporting cross readelf
fixes the build issue.

checking LDLIBRARY... libpython$(LDVERSION).so
checking for i586-montavistamllib32-linux-ranlib...
x86_64-montavista-linux-ranlib
checking for i586-montavistamllib32-linux-ar...
x86_64-montavista-linux-ar
checking for i586-montavistamllib32-linux-readelf... no
checking for readelf... readelf
configure: WARNING: using cross tools not prefixed with host triplet

Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoFix random python backtrace in mutlilib handling code.
Jeremy Puhlman [Mon, 1 Aug 2016 16:02:54 +0000 (09:02 -0700)]
Fix random python backtrace in mutlilib handling code.

newval is not defined in all cases. Set to None and check if it is set.

  File
"/local/foo/builds/x86/layers/openembedded-core/meta/classes/multilib_global.bbclass",
line 90, in preferred_ml_updates(d=<bb.data_smart.DataSmart object at
0xf6fd528c>):
                 if not d.getVar(newname, False):
    >                d.setVar(newname, localdata.expand(newval))
             # Avoid future variable key expansion
UnboundLocalError: local variable 'newval' referenced before assignment

Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoselftest/runtime-test.py: Add test for testexport SDK feature
Mariano Lopez [Mon, 1 Aug 2016 08:16:33 +0000 (08:16 +0000)]
selftest/runtime-test.py: Add test for testexport SDK feature

This adds test_testexport_sdk() to test the SDK feature
of testexport in the CI in order to avoid breaking it.

[YOCTO #9765]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agodhcp: dhcrelay.service cannot start successfully
Dai Caiyun [Fri, 22 Apr 2016 09:18:31 +0000 (12:18 +0300)]
dhcp: dhcrelay.service cannot start successfully

Modify dhcrelay.service to avoid it start failed.

Signed-off-by: Dai Caiyun <daicy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agometa: add more missing patch tags
Ross Burton [Mon, 1 Aug 2016 15:43:48 +0000 (16:43 +0100)]
meta: add more missing patch tags

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agocml1: fix tasks after default [dirs] changed
Ross Burton [Thu, 28 Jul 2016 19:37:04 +0000 (20:37 +0100)]
cml1: fix tasks after default [dirs] changed

These tasks relied upon [dirs] being ${B} by default.  As the functions are not
simple, add back [dirs] so they work again.

[ YOCTO #10027 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobitbake.conf/toolchain-scripts.bbclass: Remove debug prefix mappings in SDK
Jacob Kroon [Thu, 28 Jul 2016 10:56:06 +0000 (12:56 +0200)]
bitbake.conf/toolchain-scripts.bbclass: Remove debug prefix mappings in SDK

CFLAGS/CXXFLAGS in the SDK environment script adds debug-prefix mappings
that include staging area/work directories. Remove them since the SDK
shouldn't be aware of them.

Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopseudo: update git recipe to include xattr perf fix
Joshua Lock [Mon, 1 Aug 2016 11:00:27 +0000 (12:00 +0100)]
pseudo: update git recipe to include xattr perf fix

Update the SRCREV to 2 commits beyond the 1.8.1 tag (to the current
HEAD) in order to include a fix for the xattr performance regression
[YOCTO #9929].

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopseudo: backport patch to fix xattr performance
Joshua Lock [Mon, 1 Aug 2016 11:00:26 +0000 (12:00 +0100)]
pseudo: backport patch to fix xattr performance

In the 1.8 series of pseudo extended attribute handling was reworked
to be a property of inodes, not paths, and as a product fixed extended
attribute semantics on hardlinks. Unfortunately this rework introduced
a slow path around file deletion.

Add a patch for use by the pseudo 1.8.1 recipe which backports a fix
for this regression from the master branch of pseudo.

[YOCTO #9929]

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agomesa: Fix build when cross compiling with clang
Khem Raj [Sat, 30 Jul 2016 04:50:46 +0000 (21:50 -0700)]
mesa: Fix build when cross compiling with clang

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogstreamer1.0-plugins-bad: Backport GstGLMemoryEGL implementation
Khem Raj [Sat, 30 Jul 2016 00:58:16 +0000 (17:58 -0700)]
gstreamer1.0-plugins-bad: Backport GstGLMemoryEGL implementation

Backports fix for
https://bugzilla.gnome.org/show_bug.cgi?id=760916

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogdb: Cache gnu gettext config vars for musl builds
Khem Raj [Fri, 29 Jul 2016 22:28:01 +0000 (15:28 -0700)]
gdb: Cache gnu gettext config vars for musl builds

intl is used in gdb as well and we run the configure for
it when running do compile. So we need to insert these
caching of variables to extra oe_make

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoffmpeg: Upgrade to 3.1.1
Khem Raj [Fri, 29 Jul 2016 22:28:00 +0000 (15:28 -0700)]
ffmpeg: Upgrade to 3.1.1

Fix build on mips64 while on it.
It was failing for mips64 with 3.1 too

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoapt: Upgrade to 1.2.12
Aníbal Limón [Fri, 29 Jul 2016 19:53:01 +0000 (14:53 -0500)]
apt: Upgrade to 1.2.12

Test was made building core-image-sato with package_deb on qemux86 and
qemuarm then run for two of them testimage and install packages with
apt-get using PACKAGE_FEED_URI's configuration.

Now apt support drop priviligies for install packages using a sandbox
with _apt user, the useradd class was inherit and configured to install
_apt user and group.

Rebased patches:

- 0001-Revert-always-run-dpkg-configure-a-at-the-end-of-our.patch
        - 0001-fix-the-gcc-version-check.patch
- 0001-remove-Wsuggest-attribute-from-CFLAGS.patch
- disable-test.patch
- no-curl.patch

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogroff_1.18.1.4: fix narrowing conversion error
Hongxu Jia [Fri, 29 Jul 2016 07:47:41 +0000 (03:47 -0400)]
groff_1.18.1.4: fix narrowing conversion error

While gcc6 used, build old groff (for anti-GPLv3 reasons) failed:
.....
|groff-1.18.1.4/src/devices/grolbp/charset.h:69:1: error: narrowing
conversion of '130' from 'int' to 'char' inside { } [-Wnarrowing]
......

In upstream git://git.savannah.gnu.org/groff.git,
the following commit fix the issue, but the license is GPLV3,
we could not backport it to the old groff which license is GPLV2.
...
commit d180038ae0da19655bc2760ae2043efa0550a76c
Author: Werner LEMBERG <wl@gnu.org>
Date:   Wed Apr 16 21:11:07 2003 +0000
    * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
...

We use another different way to fix the issue.

[YOCTO #9896]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopython-pexpect: Upgrade to 4.2.0
Alejandro Hernandez [Thu, 28 Jul 2016 18:00:42 +0000 (18:00 +0000)]
python-pexpect: Upgrade to 4.2.0

LICENCE checksum changed, although license didnt change,
it says PEXPECT license instead of ISC, but its still ISC.

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoglew: upgrade to 2.0.0
Maxin B. John [Fri, 29 Jul 2016 13:28:46 +0000 (16:28 +0300)]
glew: upgrade to 2.0.0

1.13.0 -> 2.0.0

v2:
        Fix installed-vs-shipped QA error for multilib build

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoapmd: use snapshot.debian.org for SRC_URI
Maxin B. John [Fri, 29 Jul 2016 13:28:45 +0000 (16:28 +0300)]
apmd: use snapshot.debian.org for SRC_URI

Using ${DEBIAN_MIRROR} for SRC_URI doesn't work very well as that will
only contain releases that are currently in Debian.

So, move all of SRC_URI to the .bb so it can use snapshot.debian.org
instead, and set UPSTREAM_CHECK_URI to ${DEBIAN_MIRROR} so upstream
release checking continues to work.

v2:
        use ${BPN} instead of ${PN} in SRC_URI for multilib builds

[YOCTO #10040]

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto/4.1: qemuppc and qemumips build fixes
Bruce Ashfield [Fri, 29 Jul 2016 14:06:59 +0000 (10:06 -0400)]
linux-yocto/4.1: qemuppc and qemumips build fixes

The v4.1.28 -stable update broke the build for some ppc and mips
platforms. We fix the errors by backporting a missing commit for
ppc:

  powerpc/tm: Abort syscalls in active transactions

And by reverting a commit for mips (rather than backporting more
changes to -mm):

  Revert "MIPS: Reserve nosave data for hibernation"

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto/4.1: bug fixes and configuration changes
Bruce Ashfield [Wed, 27 Jul 2016 16:57:06 +0000 (12:57 -0400)]
linux-yocto/4.1: bug fixes and configuration changes

Integrating the following two commits:

  44af90071620 4.1.28 Fix bad backport of 8f182270dfec "mm/swap.c: flush lru pvecs on compound page arrival"
  99c37e1500a6 i2c: ismt: Add Intel DNV PCI ID

And the following two meta-data changes:

  afbc6bd00e6f bsp/axxiaarm64: Enable Axxia NCR and PEI drivers
  6a2047c00450 common-pc: enforce 32 bit

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto/4.1: bump to v4.1.28
Bruce Ashfield [Wed, 27 Jul 2016 16:57:05 +0000 (12:57 -0400)]
linux-yocto/4.1: bump to v4.1.28

Updating the 4.1 kernel to the korg -stable release

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agofoomatic-filters: Security fixes CVE-2015-8327
Armin Kuster [Sun, 31 Jul 2016 15:30:18 +0000 (08:30 -0700)]
foomatic-filters: Security fixes CVE-2015-8327

CVE-2015-8327 cups-filters: foomatic-rip did not consider the back tick as an illegal shell escape character

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agofoomatic-filters: Security fix CVE-2015-8560
Armin Kuster [Sun, 31 Jul 2016 15:30:17 +0000 (08:30 -0700)]
foomatic-filters: Security fix CVE-2015-8560

CVE-2015-8560 cups-filters: foomatic-rip did not consider semicolon as illegal shell escape character

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoat: use snapshot.debian.org for SRC_URI
Maxin B. John [Thu, 28 Jul 2016 15:24:10 +0000 (18:24 +0300)]
at: use snapshot.debian.org for SRC_URI

Using ${DEBIAN_MIRROR} for SRC_URI doesn't work very well as that will
only contain releases that are currently in Debian. So, move all of
SRC_URI to use snapshot.debian.org instead, and set UPSTREAM_CHECK_URI
to ${DEBIAN_MIRROR} so upstream release checking continues to work

[YOCTO #10005]

Signed-off-by: Maxin B. John <maxin.john@intel.com>
8 years agomailx: use snapshot.debian.org for SRC_URI
Maxin B. John [Thu, 28 Jul 2016 13:11:40 +0000 (16:11 +0300)]
mailx: use snapshot.debian.org for SRC_URI

Using ${DEBIAN_MIRROR} for SRC_URI doesn't work very well as that will
only contain releases that are currently in Debian.

So, move all of SRC_URI to the .bb so it can use snapshot.debian.org
instead, and set UPSTREAM_CHECK_URI to ${DEBIAN_MIRROR} so upstream
release checking continues to work.

[YOCTO #10040]

Signed-off-by: Maxin B. John <maxin.john@intel.com>
8 years agolibaio: use snapshot.debian.org for SRC_URI
Maxin B. John [Thu, 28 Jul 2016 13:02:55 +0000 (16:02 +0300)]
libaio: use snapshot.debian.org for SRC_URI

Using ${DEBIAN_MIRROR} for SRC_URI doesn't work very well as that will
only contain releases that are currently in Debian.

So, move all of SRC_URI to the .bb so it can use snapshot.debian.org
instead, and set UPSTREAM_CHECK_URI to ${DEBIAN_MIRROR} so upstream
release checking continues to work.

[YOCTO #10040]

Signed-off-by: Maxin B. John <maxin.john@intel.com>
8 years agoblktool: use snapshot.debian.org for SRC_URI
Maxin B. John [Thu, 28 Jul 2016 12:55:43 +0000 (15:55 +0300)]
blktool: use snapshot.debian.org for SRC_URI

Using ${DEBIAN_MIRROR} for SRC_URI doesn't work very well as that will
only contain releases that are currently in Debian.

So, move all of SRC_URI to the .bb so it can use snapshot.debian.org
instead, and set UPSTREAM_CHECK_URI to ${DEBIAN_MIRROR} so upstream
release checking continues to work.

[YOCTO #10040]

Signed-off-by: Maxin B. John <maxin.john@intel.com>
8 years agoserf: use snapshot.debian.org for SRC_URI
Maxin B. John [Thu, 28 Jul 2016 12:15:13 +0000 (15:15 +0300)]
serf: use snapshot.debian.org for SRC_URI

Using ${DEBIAN_MIRROR} for SRC_URI doesn't work very well as that will
only contain releases that are currently in Debian. So, move all of SRC_URI
to the .bb so it can use snapshot.debian.org instead, and set
UPSTREAM_CHECK_URI to ${DEBIAN_MIRROR} so upstream release checking continues
to work.

[YOCTO #10040]

Signed-off-by: Maxin B. John <maxin.john@intel.com>
8 years agolinuxdoc-tools: use snapshot.debian.org for SRC_URI
Maxin B. John [Thu, 28 Jul 2016 12:46:51 +0000 (15:46 +0300)]
linuxdoc-tools: use snapshot.debian.org for SRC_URI

Using ${DEBIAN_MIRROR} for SRC_URI doesn't work very well as that will
only contain releases that are currently in Debian. So, move all of SRC_URI
to the .bb so it can use snapshot.debian.org instead, and set
UPSTREAM_CHECK_URI to ${DEBIAN_MIRROR} so upstream release checking continues
to work.

[YOCTO #10040]

Signed-off-by: Maxin B. John <maxin.john@intel.com>
8 years agodocbook-xml-dtd4: use snapshot.debian.org for SRC_URI
Maxin B. John [Thu, 28 Jul 2016 12:36:19 +0000 (15:36 +0300)]
docbook-xml-dtd4: use snapshot.debian.org for SRC_URI

Using ${DEBIAN_MIRROR} for SRC_URI doesn't work very well as that will
only contain releases that are currently in Debian. So, move all of SRC_URI
to the .bb so it can use snapshot.debian.org instead, and set
UPSTREAM_CHECK_URI to ${DEBIAN_MIRROR} so upstream release checking continues
to work.

[YOCTO #10040]

Signed-off-by: Maxin B. John <maxin.john@intel.com>
8 years agonetbase: use snapshot.debian.org for SRC_URI
Maxin B. John [Thu, 28 Jul 2016 12:24:21 +0000 (15:24 +0300)]
netbase: use snapshot.debian.org for SRC_URI

Using ${DEBIAN_MIRROR} for SRC_URI doesn't work very well as that will
only contain releases that are currently in Debian. So, move all of SRC_URI
to the .bb so it can use snapshot.debian.org instead, and set
UPSTREAM_CHECK_URI to ${DEBIAN_MIRROR} so upstream release checking continues
to work.

[YOCTO #10040]

Signed-off-by: Maxin B. John <maxin.john@intel.com>
8 years agoossp-uuid: use snapshot.debian.org for SRC_URI
Maxin B. John [Thu, 28 Jul 2016 12:03:44 +0000 (15:03 +0300)]
ossp-uuid: use snapshot.debian.org for SRC_URI

Using ${DEBIAN_MIRROR} for SRC_URI doesn't work very well as that will
only contain releases that are currently in Debian. So, move all of SRC_URI
to the .bb so it can use snapshot.debian.org instead, and set
UPSTREAM_CHECK_URI to ${DEBIAN_MIRROR} so upstream release checking continues
to work.

[YOCTO #10040]

Signed-off-by: Maxin B. John <maxin.john@intel.com>
8 years agolinux-yocto/4.4: update to -r19
Bruce Ashfield [Thu, 28 Jul 2016 16:17:52 +0000 (12:17 -0400)]
linux-yocto/4.4: update to -r19

It was pointed out that the 4.4 version of -rt was lagging. I had done
the work some time ago, but didn't complete the testing effort.

I've now built and booted this on x86 and built it for ARM.

Two branches are available: standard/preempt-rt/base and standard/preempt-rt/rebase.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoreadline: don't install readline C examples
André Draszik [Thu, 28 Jul 2016 11:56:54 +0000 (12:56 +0100)]
readline: don't install readline C examples

They are unlikely to be of any use in the target file system.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agouseradd-staticids.bbclass: trigger reparsing when table files change
Patrick Ohly [Thu, 28 Jul 2016 09:43:02 +0000 (11:43 +0200)]
useradd-staticids.bbclass: trigger reparsing when table files change

This addresses (among others) the following problem:
- USERADD_ERROR_DYNAMIC=error causes a recipe to get skipped
  because a static ID entry is missing
- the entry gets added to the file
- using the recipe still fails with the same error as before
  because the recipe gets loaded from the cache instead
  of re-parsing it with the new table content

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa/utils/commands.py: Command class improve validations/decoding in output
Aníbal Limón [Wed, 27 Jul 2016 22:40:42 +0000 (17:40 -0500)]
oeqa/utils/commands.py: Command class improve validations/decoding in output

When run a command sometimes the output isn't provided so validate
before trying to encode to utf-8, also some output like BIOS/EFI
contains characters that can't be codified into utf-8 for this reason
set errors='replace'.

[YOCTO #10019]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa/runtime/syslog: test_syslog_logger Don't try to use logread when systemd is...
Aníbal Limón [Wed, 27 Jul 2016 22:40:41 +0000 (17:40 -0500)]
oeqa/runtime/syslog: test_syslog_logger Don't try to use logread when systemd is enabled

Busybox logread uses shmmem circular buffer to retrive [1] syslog messages
when systemd is enabled this shmem circular buffer isn't enabled because
systemd journald doesn't provide it.

[1] https://git.busybox.net/busybox/tree/sysklogd/logread.c?id=accd9eeb719916da974584b33b1aeced5f3bb346#n121

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoclasses/testimage: When image is systemd, enable debug log level
Aníbal Limón [Wed, 27 Jul 2016 22:40:40 +0000 (17:40 -0500)]
classes/testimage: When image is systemd, enable debug log level

In order to get more information about systemd boot process to
be able to debug random failures due to high I/O.

[YOCTO #9299]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobusybox-syslog.default: When systemd is enabled don't use circular buffer
Aníbal Limón [Wed, 27 Jul 2016 22:40:39 +0000 (17:40 -0500)]
busybox-syslog.default: When systemd is enabled don't use circular buffer

Busybox syslog uses a shmmem circular buffer [1][2] when launch with -C option
when systemd (is enabled) takes the control of syslog messages and then forward
the messages to busybox syslog daemon, systemd journald don't usage of shmmem
circular buffer.

If -C is specified busybox-syslog never be able to read the forwarded
messages from systemd journald and don't wrote it to /var/log/messages.

This file is only installed when systemd is enabled [3].

[1] https://git.busybox.net/busybox/tree/sysklogd/syslogd.c?h=1_24_stable#n464
[2] https://git.busybox.net/busybox/tree/sysklogd/logread.c?h=1_24_stable#n82
[3] http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-core/busybox/busybox.inc#n295

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa/runtime/syslog.py: Improve test_syslog_logger
Aníbal Limón [Wed, 27 Jul 2016 22:40:38 +0000 (17:40 -0500)]
oeqa/runtime/syslog.py: Improve test_syslog_logger

Instead of make all the testing in a shell one liner, divide the
test into 3 operations to be able to know in what part is failing.

Parts,
- Log message to syslog
- Review if message exist in /var/log/messages
- Review if message exist using logread

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoxorg-xserver: upgrade xserver version from 1.18.3 to 1.18.4
Edwin Plauchu [Wed, 27 Jul 2016 21:54:53 +0000 (16:54 -0500)]
xorg-xserver: upgrade xserver version from 1.18.3 to 1.18.4

From version 1.18.3 to 1.18.4 modesetting driver has suffered several changes.
One of this changes allow mouse works as expected with xf86-video-modesetting
driver when system startup upon beaglebone.

[YOCTO #9828]

Signed-off-by: Edwin Plauchu <edwin.plauchu.camacho@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agotcf-agent: update to 1.4_neon_bugfix branch
Tim Orling [Wed, 27 Jul 2016 16:53:45 +0000 (09:53 -0700)]
tcf-agent: update to 1.4_neon_bugfix branch

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopython-git: Upgrade python-git and python3-git to 2.0.7
Alejandro Hernandez [Wed, 27 Jul 2016 21:53:01 +0000 (21:53 +0000)]
python-git: Upgrade python-git and python3-git to 2.0.7

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopython-numpy: upgrade to 1.11.1
Upgrade Helper [Wed, 27 Jul 2016 21:52:57 +0000 (21:52 +0000)]
python-numpy: upgrade to 1.11.1

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolinux-yocto/4.4: mousedev and printk configuation streamlining
Bruce Ashfield [Wed, 27 Jul 2016 16:57:08 +0000 (12:57 -0400)]
linux-yocto/4.4: mousedev and printk configuation streamlining

Integrating two changes to the 4.4 kernel:

mousedev: fix warning err caused by __cpu_to_le16p()

    mousedev: fix warning err caused by __cpu_to_le16p()

    following warning msg is found when compiling the kernel for qemumips:
    .../drivers/input/mousedev.c:749:15: warning: passing argument 1 of
    '__cpu_to_le16p' from incompatible pointer type [-Wincompatible-pointer-types]

    convert the function's parameter to (__u16 *) to fix this warning.

Signed-off-by: Zhenbo Gao <zhenbo.gao@windriver.com>
printk.scc: don't include kernel-debug.scc

    There is no need to include kernel-debug.scc into printk.scc as
    options from printk.cfg don't depend on CONFIG_DEBUG* options from
    kernel-debug.cfg

    Moreover, enabling CONFIG_DEBUG* options makes kernel much bigger,
    increases build time and consumed a lot of additional disk space.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolinux-yocto/4.4: lx-dialog and mei bug fixes
Bruce Ashfield [Wed, 27 Jul 2016 16:57:07 +0000 (12:57 -0400)]
linux-yocto/4.4: lx-dialog and mei bug fixes

Integrating the following changes, that resolve issues with previous
functionality merges:

  ddab24299940 mei: drop wr_msg from the mei_dev structure
  26e282c0686e lx-dialog: fix merge issues

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolinux-yocto/4.4: bump to v4.4.15
Bruce Ashfield [Wed, 27 Jul 2016 16:57:04 +0000 (12:57 -0400)]
linux-yocto/4.4: bump to v4.4.15

Updating the 4.4 kernel to take the korg -stable release.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosystemd-boot: use lnr instead of ln --relative
Jackie Huang [Wed, 27 Jul 2016 02:42:29 +0000 (22:42 -0400)]
systemd-boot: use lnr instead of ln --relative

Use lnr instead of "ln --relative" as systemd does
to avoid needing coreutils 8.16.

The patch is from systemd recipe and is rebased
so it can be applied for systemd-boot.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogstreamer1.0-plugins-bad: add missing wayland-native dependency
Ross Burton [Wed, 27 Jul 2016 16:32:21 +0000 (17:32 +0100)]
gstreamer1.0-plugins-bad: add missing wayland-native dependency

The wayland support requires wayland-scanner, so add a dependency on
wayland-native.

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoselftest/runtime-test.py: Add test for import test from other layers
Mariano Lopez [Mon, 13 Jun 2016 12:49:55 +0000 (12:49 +0000)]
selftest/runtime-test.py: Add test for import test from other layers

There are some features in testimage/testexport that are not tested;
this might lead to break some of these features without notice.

This adds a new test in order to test two features of testimage:
  - Import test from other layers.
  - Install/Unistall in the DUT without a package manager.

[YOCTO #9764]
[YOCTO #9766]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agocmake: upgrade to 3.6.1
Maxin B. John [Wed, 27 Jul 2016 13:02:57 +0000 (16:02 +0300)]
cmake: upgrade to 3.6.1

3.5.2 -> 3.6.1

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibassuan: upgrade to 2.4.3
Maxin B. John [Wed, 27 Jul 2016 13:02:56 +0000 (16:02 +0300)]
libassuan: upgrade to 2.4.3

2.4.2 -> 2.4.3

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibgpg-error: upgrade to 1.24
Maxin B. John [Wed, 27 Jul 2016 13:02:55 +0000 (16:02 +0300)]
libgpg-error: upgrade to 1.24

1.23 -> 1.24

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agodropbear: upgrade to 2016.74
Maxin B. John [Wed, 27 Jul 2016 13:02:53 +0000 (16:02 +0300)]
dropbear: upgrade to 2016.74

2016.73 -> 2016.74

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowayland-protocols: upgrade to 1.5
Maxin B. John [Wed, 27 Jul 2016 13:02:52 +0000 (16:02 +0300)]
wayland-protocols: upgrade to 1.5

1.4 -> 1.5

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibtasn1: upgrade to 4.9
Maxin B. John [Wed, 27 Jul 2016 13:02:51 +0000 (16:02 +0300)]
libtasn1: upgrade to 4.9

4.8 -> 4.9

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibsolv: upgrade to 0.6.23
Maxin B. John [Wed, 27 Jul 2016 13:02:50 +0000 (16:02 +0300)]
libsolv: upgrade to 0.6.23

0.6.22 -> 0.6.23

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoconnman: upgrade to 1.33
Maxin B. John [Wed, 27 Jul 2016 13:02:49 +0000 (16:02 +0300)]
connman: upgrade to 1.33

1.32 -> 1.33

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoupdate-rc.d: Correct trivial typo in DESCRIPTION line.
Robert P. J. Day [Wed, 27 Jul 2016 11:40:21 +0000 (07:40 -0400)]
update-rc.d: Correct trivial typo in DESCRIPTION line.

"utilities" -> "utility"

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobinutils: Cache gettext api version 1 and 2 support
Khem Raj [Wed, 27 Jul 2016 09:38:08 +0000 (02:38 -0700)]
binutils: Cache gettext api version 1 and 2 support

Problem described here

https://lists.gnu.org/archive/html/bug-gettext/2015-11/msg00012.html

gettext does not detect the gettext support in libc
correctly if the libc is not glibc. Musl does support
the gettext version 1 and 2 of APIs

http://www.openwall.com/lists/musl/2015/04/16/3

tests in gettext.m4 however fail since it pokes at glibc
internal symbols to determine the gettext APIs
musl's implementaitons are done differenty so the
tests fail and hence it does not enable  the libc
implementation. Since we install the header from
libc it confuses the compilation and results in errors
like

libbfd.so: undefined reference to `libintl_dgettext'

see
http://savannah.gnu.org/bugs/?46436

binutils need these variables in make env since
binutils build system runs configure in the sub directories
during make step, so we need to pass these flags
in compile step in addition to configure step

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agomenu-cache: remove spurious dependency on intltool
Ross Burton [Wed, 27 Jul 2016 12:29:14 +0000 (13:29 +0100)]
menu-cache: remove spurious dependency on intltool

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosysprof: clean up FILES
Ross Burton [Tue, 26 Jul 2016 19:19:15 +0000 (20:19 +0100)]
sysprof: clean up FILES

This recipe ships unversioned libraries so fiddle the intermediate variables
instead of rewriting FILES directly.

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agotune-mips-24k: add QEMU_EXTRAOPTIONS for DSP and MIPS16e cores
André Draszik [Tue, 26 Jul 2016 15:49:00 +0000 (16:49 +0100)]
tune-mips-24k: add QEMU_EXTRAOPTIONS for DSP and MIPS16e cores

The core emulated by default by qemu-mips(el) just crashes with
illegal instruction when encountering DSP and/or MIPS16e
instructions - we have to specify a CPU that supports the extra
instructions.

This is an issue when generating a rootfs and e.g. running some
of the package postinstall scriptlets.

The patch to qemu to add 24KEc as a CPU has been accepted
upstream, so let's use that CPU here as well as needed.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoqemu: add patch to add mips 24KEc CPU definition
André Draszik [Tue, 26 Jul 2016 15:48:59 +0000 (16:48 +0100)]
qemu: add patch to add mips 24KEc CPU definition

This patch has been accepted upstream:
http://lists.nongnu.org/archive/html/qemu-devel/2016-07/msg05778.html

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobash: add patch to build w/ -Wformat-security
André Draszik [Tue, 26 Jul 2016 15:26:30 +0000 (16:26 +0100)]
bash: add patch to build w/ -Wformat-security

Signed-off-by: André Draszik <adraszik@tycoint.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agouncovered: list uncovered python modules
Ed Bartosh [Tue, 26 Jul 2016 09:18:14 +0000 (12:18 +0300)]
uncovered: list uncovered python modules

This bash script prints list of modules uncovered by oe-selftest
or any other test that produces coverage report.

It expects coverage report on its stdin and a directory to look
for python modules as a command line parameter, e.g.
    coverage report --rcfile=build/.coveragerc | ./scripts/contrib/uncovered bitbake/
should print list of uncovered python modules from bitbake/
directory tree to stdout.

[YOCTO #9809]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoscreen: add back the patch for parallel build
Jackie Huang [Tue, 26 Jul 2016 06:49:51 +0000 (02:49 -0400)]
screen: add back the patch for parallel build

The patch 0001-fix-for-multijob-build.patch was removed by:
"d437921 screen: upgrade to 4.4.0"

But in fact the fixes is not all in the version 4.4.0, we
still get errors in parallel builds:

| ../screen-4.4.0/screen.h:48:18: fatal error: comm.h: No such file or directory

So rebase the patch and add it back.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoavahi-ui: use PACKAGECONFIG for gtk features
Jackie Huang [Tue, 26 Jul 2016 01:54:57 +0000 (21:54 -0400)]
avahi-ui: use PACKAGECONFIG for gtk features

The commit "054ea20 avahi-ui: Build with Gtk+3"
enabled gtk3 and disabled gtk2, which causes failure on
some package depends on gtk2, like gnome-disk-utility
in meta-openembedded/meta-gnome:

| checking for GTK2... yes
| checking for AVAHI_UI... no
| configure: error: Package requirements (avahi-ui >= 0.6.25) were not met:
|
| No package 'avahi-ui' found

The gtk2 and gtk3 feature for avahi-ui is not exclusive, so change
to use PACKAGECONFIG for them so we can easily enable/disable one
of them or both of them as needed.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoRevert "lttng-tools: filter random filename of ptest output"
Nathan Lynch [Fri, 22 Jul 2016 20:53:46 +0000 (15:53 -0500)]
Revert "lttng-tools: filter random filename of ptest output"

This reverts commit 29a8c45be2862be02afe2ebbc5c026a42f351990.

A few things wrong with this change:

1. It patches a patch (runtest-2.4.0.patch).
2. It introduces deviations from the desired ptest output format.
3. It discards PASS: lines from the test output; I *want* to see those.
4. The upstream status of "pending" is incorrect; I do not see this
   patch on the lttng-dev mailing list (not that it would apply anyway).

Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooe-selftest: simplifying log filenames
Benjamin Esquivel [Thu, 21 Jul 2016 12:02:06 +0000 (12:02 +0000)]
oe-selftest: simplifying log filenames

avoiding characters like ':' and making a clearer separation of the
fields that compose the filename. Changing from:

oe-selftest-2016-07-20_16:05:27.log

to:

oe-selftest-20160720-160527.log

Signed-off-by: Benjamin Esquivel <benjamin.esquivel@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooe-selftest: export test results via xmlrunner
Benjamin Esquivel [Thu, 21 Jul 2016 12:02:05 +0000 (12:02 +0000)]
oe-selftest: export test results via xmlrunner

if available, use the xmlrunner for exporting the test results to a
dir named the same than the log where the text results are stored.
this means creating a dir with the name of the log (without the .log)
and dumping there the xml files that indicate the results of each of
the tests.

if xmlrunner is not available then it will behave the same as before,
no xml exports.

[YOCTO#9682]

Signed-off-by: Benjamin Esquivel <benjamin.esquivel@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooe-selftest: recipetool: add tests for git URL mangling
Paul Eggleton [Tue, 26 Jul 2016 02:57:50 +0000 (14:57 +1200)]
oe-selftest: recipetool: add tests for git URL mangling

Add three tests to verify that the git URL mangling is working the way
it's supposed to. This should prevent us regressing on this again in
future.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agorecipetool: create: fix greedy regex that broke support for github tarballs
Paul Eggleton [Tue, 26 Jul 2016 02:57:49 +0000 (14:57 +1200)]
recipetool: create: fix greedy regex that broke support for github tarballs

The regex here needs to be anchored to the end or it'll match longer
URLs, which was exactly what I was trying to avoid. This regression was
introduced in OE-Core revision 7998dc3597657229507e5c140fceef1e485ac402.

Fixes [YOCTO #10023].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agouseradd.bbclass: Fix delete user/group when more than one item
Mariano Lopez [Mon, 25 Jul 2016 13:31:25 +0000 (13:31 +0000)]
useradd.bbclass: Fix delete user/group when more than one item

Currently when a recipe adds more than one user/group, the
cleansstate task will delete only the first user/group. This
will solve this behavior and delete all users/groups.

[YOCTO #9943]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agodpkg: use snapshot.debian.org for SRC_URI
Ross Burton [Mon, 25 Jul 2016 23:14:11 +0000 (00:14 +0100)]
dpkg: use snapshot.debian.org for SRC_URI

Using ${DEBIAN_MIRROR} for SRC_URI doesn't work very well as that will only
contain releases that are currently in Debian, so currently doesn't contain
1.18.7 as unstable has moved on to 1.18.9.

So, move all of SRC_URI to the .bb so it can use snapshot.debian.org instead,
and set UPSTREAM_CHECK_URI to ${DEBIAN_MIRROR} so upstream release checking
continues to work.

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobabeltrace: remove unnecessary SRCREV
Nathan Lynch [Fri, 22 Jul 2016 17:50:43 +0000 (12:50 -0500)]
babeltrace: remove unnecessary SRCREV

Since this recipe doesn't use a SCM the SRCREV is unneeded (and
inaccurate).

Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agort-tests: rationalise compiler flags
Ross Burton [Mon, 25 Jul 2016 20:03:38 +0000 (21:03 +0100)]
rt-tests: rationalise compiler flags

This recipe uses some convoluted methods to ensure the build is using the right
flags but they don't appear to be needed anymore.

No need to prepend HOST_CC_ARCH/TOOLCHAIN_OPTIONS via CFLAGS as the Makefile
picks up CC from the environment and that includes these options.

No need to append the default CFLAGS as their special options are actually in
CPPFLAGS.

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agorecipetool: record unknown license files
Paul Eggleton [Mon, 25 Jul 2016 08:47:18 +0000 (20:47 +1200)]
recipetool: record unknown license files

Add a comment to the recipe listing license files that were found but
not able to be identified, so that the user can find and examine them
by hand fairly easily.

Fixes [YOCTO #9882].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolib/oe/recipeutils: fix patch_recipe*() with empty input
Paul Eggleton [Mon, 25 Jul 2016 08:47:17 +0000 (20:47 +1200)]
lib/oe/recipeutils: fix patch_recipe*() with empty input

If you supplied an empty file to patch_recipe() (or an empty list to
patch_recipe_lines()) then the result was IndexError because the code
checking to see if it needed to add an extra line of padding didn't
check to see if there were in fact any lines before trying to access the
last line.

Fixes [YOCTO #9972].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoclasses/buildhistory: ensure eSDK sstate lists sorted secondarily by name
Paul Eggleton [Fri, 22 Jul 2016 12:38:14 +0000 (00:38 +1200)]
classes/buildhistory: ensure eSDK sstate lists sorted secondarily by name

I got fed up with seeing items dance around in sstate-package-sizes.txt
in the buildhistory git repo simply because they have the same size.
Let's sort the list first by size and then also by name to ensure items
with the same size are deterministically sorted.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoclasses/buildhistory: add additional variables for eSDK
Paul Eggleton [Fri, 22 Jul 2016 12:38:13 +0000 (00:38 +1200)]
classes/buildhistory: add additional variables for eSDK

Add SDK_INCLUDE_PKGDATA and SDK_INCLUDE_TOOLCHAIN to the variables that
we put into sdk-info.txt

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoclasses/populate_sdk_ext: add gdb to full extensible SDK
Paul Eggleton [Fri, 22 Jul 2016 12:38:12 +0000 (00:38 +1200)]
classes/populate_sdk_ext: add gdb to full extensible SDK

If SDK_EXT_TYPE is set to "full" then we really ought to be shipping
everything that is expected to be in the SDK, and that includes gdb
(it's already referred to by the environment setup script if nothing
else). This is implemented by using the SDK_INCLUDE_TOOLCHAIN
functionality I just added, since the only material thing that adds on
top of a full SDK is gdb and we should always have the rest of it in a
full SDK anyway.

Fixes [YOCTO #9850].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoclasses/populate_sdk_ext: filter sstate within the extensible SDK
Paul Eggleton [Mon, 25 Jul 2016 08:41:39 +0000 (20:41 +1200)]
classes/populate_sdk_ext: filter sstate within the extensible SDK

Use the new oe-check-sstate to filter the sstate artifacts shipped with
the extensible SDK by effectively running bitbake within the produced
eSDK and and getting it to tell us which tasks it will restore from
sstate. This has several benefits:

1) We drop the *-initial artifacts from the minimal + toolchain eSDK.
   This still leaves us with a reasonably large SDK for this
   configuration, however it does pave the way for future reductions
   since we are actually filtering by what will be expected to be there
   on install rather than hoping that whatever cuts we make will match.

2) We verify bitbake's basic operation within the eSDK, i.e. that
   we haven't messed up the configuration

3) We verify that the sstate artifacts we expect to be present are
   present (at least in the sstate cache for the build producing the
   eSDK). Outside deletion of sstate artifacts has been a problem up to
   now, and this should at least catch that earlier i.e. during the
   build rather than when someone tries to install the eSDK.

This does add a couple of minutes to the do_populate_sdk_ext time, but
it seems like the most appropriate way to handle this.

Should mostly address [YOCTO #9083] and [YOCTO #9626].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoscripts: add oe-check-sstate script
Paul Eggleton [Fri, 22 Jul 2016 12:38:10 +0000 (00:38 +1200)]
scripts: add oe-check-sstate script

Add a script to check which sstate artifacts would be installed by
building a given target - by default this is done with a separate
TMPDIR to ensure we get the "from scratch" result. The script produces a
list of tasks that will be restored from the sstate cache. This can also
be combined with BB_SETSCENE_ENFORCE* to check if sstate artifacts are
available.

The implementation is a little crude - we're running bitbake -n and
looking at the output. In future when we have the ability to execute
tasks from tinfoil-based scripts we can look at rewriting that part of
it to use that instead.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoclasses/populate_sdk_ext: allow including toolchain in eSDK on install
Paul Eggleton [Fri, 22 Jul 2016 12:38:09 +0000 (00:38 +1200)]
classes/populate_sdk_ext: allow including toolchain in eSDK on install

If we're to completely replace the standard SDK with the extensible SDK,
we need to be able to provide the standard toolchain on install without
doing anything other than installing it, so that you can install the SDK
and then point your IDE at it. This is particularly applicable to the
minimal SDK which normally installs nothing by default.

NOTE: enabling this option currently adds ~280MB to the size of the
minimal eSDK installer. If we need to reduce this further we would have
to look at adjusting the dependencies and/or the sstate_depvalid()
function in sstate.bbclass which eliminates dependencies, or look at
reducing the size of the artifacts themselves.

Implements [YOCTO #9751].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agometa-extsdk-toolchain: add meta-recipe to install toolchain into eSDK
Paul Eggleton [Fri, 22 Jul 2016 12:38:08 +0000 (00:38 +1200)]
meta-extsdk-toolchain: add meta-recipe to install toolchain into eSDK

Add a meta-recipe to bring the toolchain into the extensible SDK. This
was modelled on meta-ide-support but some adjustments were needed to the
dependency validation function in sstate.bbclass to ensure that all of
the toolchain gets installed into the sysroot. With this, after
installing a minimal eSDK you only need to run the following after
sourcing the environment setup script to get the toolchain:

  devtool sdk-install meta-extsdk-toolchain

Addresses [YOCTO #9257].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>