]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
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>
8 years agoclasses/populate_sdk_ext: set default for SDK_INCLUDE_PKGDATA
Paul Eggleton [Fri, 22 Jul 2016 12:38:07 +0000 (00:38 +1200)]
classes/populate_sdk_ext: set default for SDK_INCLUDE_PKGDATA

We don't absolutely need this - it doesn't change the default
behaviour, but it seems to me we have a convention to set default values
so we should add one here.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/selftest/signing: check that we have GPG in setup
Ross Burton [Thu, 21 Jul 2016 17:15:47 +0000 (18:15 +0100)]
oeqa/selftest/signing: check that we have GPG in setup

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa/selftest/signing: use a temporary directory for GPG home
Ross Burton [Thu, 21 Jul 2016 15:28:45 +0000 (16:28 +0100)]
oeqa/selftest/signing: use a temporary directory for GPG home

Instead of using a directory in the layer as the GPG home and carefully deleting
the right files from it, use tempfile to create a temporary directory which will
be cleaned up for us.

Also change the public/secret key variables to be absolute paths as they're
always used as absolute paths.

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agokdump: don't set default values for KDUMP_CMDLINE and KDUMP_KIMAGE
Roy Li [Fri, 22 Jul 2016 06:45:10 +0000 (14:45 +0800)]
kdump: don't set default values for KDUMP_CMDLINE and KDUMP_KIMAGE

Do not set default values of KDUMP_CMDLINE and KDUMP_KIMAGE, and leave
them set by configure file since they are different for different
architectures. Take KDUMP_KIMAGE kdump kernel image for example:

    x86 is bzImage
    mips64 is vmlinux
    ppc is uImage
    arm is zImage

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoharfbuzz: upgrade to 1.3.0
Maxin B. John [Fri, 22 Jul 2016 06:09:28 +0000 (09:09 +0300)]
harfbuzz: upgrade to 1.3.0

1.2.7 -> 1.3.0

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobluez5: upgrade to 5.41
Maxin B. John [Fri, 22 Jul 2016 06:09:27 +0000 (09:09 +0300)]
bluez5: upgrade to 5.41

5.40 -> 5.41

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agodhcp: remove dhclient-script bash dependency
Andre McCurdy [Fri, 22 Jul 2016 03:11:04 +0000 (20:11 -0700)]
dhcp: remove dhclient-script bash dependency

Take the dash compatible IPv6 link-local address test from the Debian
version of dhclient-script.

Note that although "echo -e" in the OE version of dhclient-script is
technically bash specific too, it is supported by Busybox echo when
Busybox is configured with CONFIG_FEATURE_FANCY_ECHO enabled (which
is the default in the OE Busybox defconfig) therefore leave as-is.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agonet-tools: lib/inet6.c:INET6_rresolve() - various fixes
Shan Hai [Fri, 22 Jul 2016 02:21:19 +0000 (22:21 -0400)]
net-tools: lib/inet6.c:INET6_rresolve() - various fixes

Integrate the commit from https://github.com/ecki/net-tools/commit/a70c568b907d23ec2cf7defc81be50c351968f12
to fix a bug which causes the 'netstat -a' to print "[UNKNOWN]" in case of
DNS problem instead of IPv6 address.

Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogcc: Don't use vectorized builtins when Neon is not there
Khem Raj [Fri, 22 Jul 2016 01:17:20 +0000 (18:17 -0700)]
gcc: Don't use vectorized builtins when Neon is not there

Fixes [YOCTO #9991]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosysprof: fix floating dependency on polkit
Maxin B. John [Fri, 22 Jul 2016 06:26:33 +0000 (09:26 +0300)]
sysprof: fix floating dependency on polkit

Fix the floating dependency on polkit by providing a PACKAGECONFIG
option. Then, package the newly created files appropriately.

[YOCTO #9987]

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agokernel.bbclass: explicitly set workdir in do_bundle_initramfs
André Draszik [Thu, 21 Jul 2016 11:09:23 +0000 (12:09 +0100)]
kernel.bbclass: explicitly set workdir in do_bundle_initramfs

bitbake rev 67a7b8b02 "build: don't use $B as the default cwd for
functions" (included in current bitbake master) breaks the assumption
that do_bundle_initramfs runs inside the build directory.

This causes kernel_do_compile() as called from within
do_bundle_initramfs() to fail, as the former is not being executed
from the correct directory anymore. (Note that kernel_do_compile()
as called from bitbake directly doesn't suffer from that problem,
as it inherits the workdir from base_do_compile() in that case.)

Set workdir explicitly.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agokernel-uimage.bbclass: indeed update var KERNEL_IMAGETYPE_FOR_MAKE
Kai Kang [Thu, 21 Jul 2016 08:52:58 +0000 (16:52 +0800)]
kernel-uimage.bbclass: indeed update var KERNEL_IMAGETYPE_FOR_MAKE

The replace() method of the python string class doesn't replace
in-place, then the var KERNEL_IMAGETYPE_FOR_MAKE doesn't be updated as
design.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agomusl: don't compile in mips16e mode
André Draszik [Thu, 21 Jul 2016 03:19:48 +0000 (04:19 +0100)]
musl: don't compile in mips16e mode

musl contains hand-written assembly which is not compatible with
the MIPS16e mode.

Signed-off-by: André Draszik <adraszik@tycoint.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolib/oe/path: Fix tar invocation with --no-recursion
Clemens Lang [Fri, 15 Jul 2016 16:26:26 +0000 (18:26 +0200)]
lib/oe/path: Fix tar invocation with --no-recursion

tar's --no-recursion flag only applies to files mentioned after the
flag, which made it a no-op in this invocation of tar, because it was at
the end of the command line.

This is simple to verify with GNU tar 1.29:

| $ mkdir foo
| $ mkdir foo/dir
| $ touch foo/dir/file
| $ tar -cf - foo --no-recursion | tar t
| foo/
| foo/dir/
| foo/dir/file
| $ tar -cf - --no-recursion foo | tar t
| foo/

Modify the code so that it actually does what the comment says by moving
the flag in front of the --files-from argument.

Signed-off-by: Clemens Lang <clemens.lang@bmw-carit.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogcc: Fix libgcc unresolved symbols with PIE on musl
Khem Raj [Wed, 20 Jul 2016 00:46:56 +0000 (17:46 -0700)]
gcc: Fix libgcc unresolved symbols with PIE on musl

Fixes

[YOCTO #9772]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowebkitgtk: Do not use gold with clang
Khem Raj [Tue, 19 Jul 2016 18:07:07 +0000 (11:07 -0700)]
webkitgtk: Do not use gold with clang

clang cross compiler fails to detect gold linker from
cross-binutils, instead it defaults to ld.gold from build
host, lets disable using gold when clang is active to avoid
this issue

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoinsane: only check ${S} exists if we had sources to fetch
Ross Burton [Thu, 21 Jul 2016 19:29:27 +0000 (20:29 +0100)]
insane: only check ${S} exists if we had sources to fetch

Only check that ${S} actually exists if there was something in ${SRC_URI} to
fetch, the argument being that if SRC_URI is empty the the recipe won't be using
${S} at all.

In general recipes that have no sources can remove the unpack task, but
expecting all recipes to do this relatively advanced operation isn't realistic.

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolib/oe/gpg_sign: fix output in error paths
Ross Burton [Thu, 21 Jul 2016 14:59:40 +0000 (15:59 +0100)]
lib/oe/gpg_sign: fix output in error paths

oe.utils.getstatusoutput() is a wrapper for subprocess.getstatusoutput() which
uses Universal Newlines, so the output is a str() not bytes().

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopython-smartpm: add support to check signatures
mingli.yu@windriver.com [Wed, 20 Jul 2016 08:51:34 +0000 (16:51 +0800)]
python-smartpm: add support to check signatures

RPMv5 has removed support for _RPMVSF_NOSIGNATURES,
the flag can be replaced with a flags set:
"RPMVSF_NODSAHEADER|RPMVSF_NORSAHEADER|RPMVSF_NODSA
RPMVSF_NORSA"

Signed-off-by: Haiqing Bai <Haiqing.Bai@windriver.com>
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoopenssh: conditional compile DES code.
mingli.yu@windriver.com [Tue, 19 Jul 2016 07:13:09 +0000 (15:13 +0800)]
openssh: conditional compile DES code.

After openssl disabled DES, openssh fails to build
for some DES codes are not wrapped in conditional
compile statement "#ifndef OPENSSL_NO_DES" and "#endif".

Signed-off-by: Haiqing Bai <Haiqing.Bai@windriver.com>
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopackagefeed-stability.bbclass: copy all packages of a recipe
Robert Yang [Mon, 18 Jul 2016 03:32:49 +0000 (20:32 -0700)]
packagefeed-stability.bbclass: copy all packages of a recipe

A recipes can generate several rpms such as a.rpm, a-dev.rpm, a-dbg.rpm,
when update one of them in the repo, we'd better update all of them,
otherwise, there might be a-dev.r0.1.rpm and a-dbg.r0.3.rpm in the repo,
which looks strange.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopackagefeed-stability.bbclass: minor fixes
Robert Yang [Mon, 18 Jul 2016 03:32:48 +0000 (20:32 -0700)]
packagefeed-stability.bbclass: minor fixes

* fix for python3
  iteritems() -> items()

* Return immediately for native and cross.
* Remove the usage of __BBDELTASKS, there is no such var in bitbake.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopackagefeed-stability: add class to help reduce package feed churn
Paul Eggleton [Mon, 18 Jul 2016 03:32:47 +0000 (20:32 -0700)]
packagefeed-stability: add class to help reduce package feed churn

When a dependency causes a recipe to effectively be rebuilt, its output
may in fact not change; but new packages (with an increased PR value, if
using the PR server) will be generated nonetheless. There's no practical
way for us to predict whether or not this is going to be the case based
solely on the inputs, but we can compare the package output and see if
that is materially different and based upon that decide to replace the
old package with the new one.

This class effectively intercepts packages as they are written out by
do_package_write_*, causing them to be written into a different
directory where we can compare them to whatever older packages might
be in the "real" package feed directory, and avoid copying the new
package to the feed if it has not materially changed. We use
build-compare to do the package comparison.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopackage_deb.bbclass/package_ipk.bbclass: sort RPROVIDES
Robert Yang [Mon, 18 Jul 2016 03:32:46 +0000 (20:32 -0700)]
package_deb.bbclass/package_ipk.bbclass: sort RPROVIDES

The dict.fromkeys() creates a dict without order, there might be a
problem when build the same recipe again, for example:

- First build of make:
  Provides: es-translation, make-locale
- Second build of acl:
  Provides: make-locale, es-translation

They are exactly the same Provides, but tools like "diff" doesn't think
so. Sort RPROVIDES will fix the problem.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobuild-compare: improve deb and ipk checking
Robert Yang [Mon, 18 Jul 2016 03:32:45 +0000 (20:32 -0700)]
build-compare: improve deb and ipk checking

* The deb and ipk's depends version string is like:
  Depends: libc6 (>= 2.24)
  Update trim_release_old and trim_release_new to match the bracket in
  the end ")".

* The deb's data tarball now is .tar.xz, and ipk's is .tar.gz.

* Update adjust_controlfile() to make ituse trim_release_old and
  trim_release_new.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobuild-compare: fix checking for named pipe and others
Robert Yang [Mon, 18 Jul 2016 03:32:44 +0000 (20:32 -0700)]
build-compare: fix checking for named pipe and others

* Fixed checking for named pipe
* Return at once when archives are the same
* Fix for type "directory"

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobuild-compare: make pkg-diff.sh 75% faster
Robert Yang [Mon, 18 Jul 2016 03:32:43 +0000 (20:32 -0700)]
build-compare: make pkg-diff.sh 75% faster

The rpm tool is a heavy process, pkg-diff.sh ran 16 (or 17 for kernel)
"rpm -qp" times when the pkgs are identical, now we only run
"rpm -qp --qf <all we need>" twice (one is for old pkg, and one is for
new), save the results to spec_old and spec_new, then use sed command to
get what we need later, this can make it 75% faster when the pkgs are
identical. Here is the rough data on my host Ubuntu 14.04.4, 32 cores
CPU and 128G mem:
* When the pkgs are identical:
  - Before the patch: 1s
  - After the patch: 0.26s
  I compare the whole spec firstly, and return 0 if they are the same,
  or go on checking one by one if not, without this, it would be 0.46s,
  the gain is great when there are lot of packages, usually, we have
  more than 10,000 rpms to compare.

* When the pkgs are different:
  That depends on where is the different, if the different is at the
  comparing rpmtags stage:
  - Before the patch: 0.26s
  - After the patch: 0.29s
  Increased 0.03s, but if the different is happend later than comparing
  rpmtags, it will save time.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobuild-compare: remove space at head
Robert Yang [Mon, 18 Jul 2016 03:32:42 +0000 (20:32 -0700)]
build-compare: remove space at head

The command like:
rpm -qp --nodigest --nosignature --qf '<foo> [%{REQUIRENAME}\n]\n'
                                            ^^space

The space will be printed, and will impact the check result, so remove it.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agorpm: make --nosignature work
Robert Yang [Mon, 18 Jul 2016 03:32:41 +0000 (20:32 -0700)]
rpm: make --nosignature work

OE-core uses rpm's --nosignature, but it never worked:
self._invoke_smart('config --set rpm-check-signatures=false')

Now fix it with:
* Define SUPPORT_NOSIGNATURES to 1 in system.h
* !QVA_ISSET(qva->qva_flags, SIGNATURE) -> QVA_ISSET(qva->qva_flags, SIGNATURE),
  otherwise, when use --nosignature would read database and verify
  signature, this is not expected.

This can fix some race issues, for example, when more than one process
are querying rpm file with "rpm -qp --nosignature", they may hang up
because of race issues (the processes are trying to get RW/RD lock on
the database, but they shouldn't read the database at all since -qp and
--nosignature are used).

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopackage_deb.bbclass: fix Python 3 error
Matt Madison [Wed, 20 Jul 2016 12:16:36 +0000 (05:16 -0700)]
package_deb.bbclass: fix Python 3 error

Don't modify an OrderedDict while walking its keys.

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopiglit: Add build fix patch
Jussi Kukkonen [Tue, 19 Jul 2016 12:16:35 +0000 (15:16 +0300)]
piglit: Add build fix patch

Fixes [YOCTO #9851] (fingers crossed).

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoavahi: fix resource temporarily unavailable issue
Kai Kang [Wed, 20 Jul 2016 09:17:37 +0000 (17:17 +0800)]
avahi: fix resource temporarily unavailable issue

It sometimes fails to run avahi with error: "Could not receive return value
from daemon process". It has same root cause with
https://github.com/lxc/lxc/issues/25.

Backport patch to fix this issue.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopulseaudio: fix floating dependency on webrtc-audio-processing
Tanu Kaskinen [Wed, 20 Jul 2016 22:09:58 +0000 (01:09 +0300)]
pulseaudio: fix floating dependency on webrtc-audio-processing

The webrtc-audio-processing library isn't yet packaged for
OpenEmbedded, but let's add a packageconfig entry for it anyway to
avoid problems in the future.

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopulseaudio: 8.0 -> 9.0
Tanu Kaskinen [Wed, 20 Jul 2016 00:20:22 +0000 (03:20 +0300)]
pulseaudio: 8.0 -> 9.0

Release notes:
https://www.freedesktop.org/wiki/Software/PulseAudio/Notes/9.0/

Rebased 0001-client-conf-Add-allow-autospawn-for-root.patch.

Removed 0001-Revert-module-switch-on-port-available-Route-to-pref.patch,
because the issues that were caused by the reverted commit have been
fixed.

The patch set that fixes the initial selection of HDMI profiles
(YOCTO#8448) is replaced with updated patches cherry-picked from
upstream.

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibsndfile1: 1.0.26 -> 1.0.27
Tanu Kaskinen [Wed, 20 Jul 2016 00:20:21 +0000 (03:20 +0300)]
libsndfile1: 1.0.26 -> 1.0.27

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoclasses/populate_sdk_ext: show progress when preparing build system
Paul Eggleton [Mon, 18 Jul 2016 10:17:03 +0000 (22:17 +1200)]
classes/populate_sdk_ext: show progress when preparing build system

During the extensible SDK installation process the final step is to
prepare the internal copy of the build system. This can take some time,
especially if you have SDK_EXT_TYPE set to "minimal" (downloading
sstate artifacts) and SDK_INCLUDE_PKGDATA set to "1" (restoring
pkgdata for world). To make this a bit less painful, use BitBake's new
quiet mode to display status during this operation so you have some idea
of how it's progressing; instead of redirecting the output to
preparing_build_system.log we grab the last console log and append it
instead.

One result of this change is that you get the errors printed on the
console during normal output rather than this going to the
preparing_build_system.log file first. In OE-Core revision
227d2cbf9e0b8c35fa6644e3d72e0699db9607fa, we changed to always print the
contents of preparing_build_system.log on failure, but now at least the
error contents of that log is duplicated. Besides, I intentionally
didn't print out the contents of that log during normal usage because
it's quite verbose - the bug that we were attempting to fix was about
not getting this information when seeing failures in the automated
tests, thus I've moved printing the log to the test handling code
instead.

Part of the implementation for [YOCTO #9613].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolayer.conf: bump version for uclibc removal and LSB update
Ross Burton [Mon, 25 Jul 2016 20:20:07 +0000 (21:20 +0100)]
layer.conf: bump version for uclibc removal and LSB update

As of oe-core layer version 9, uclibc has been removed and LSB approximates
version 5 (which means that Qt 3 isn't required for LSB conformance).

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agouclibc: remove
Ross Burton [Wed, 13 Jul 2016 10:24:16 +0000 (11:24 +0100)]
uclibc: remove

uclibc is showing its age now and upstarts like musl are approximately the same
size but with far more features and active maintainers.  Remove uclibc from
oe-core and use endorse musl as the lighter alternative to full-fat glibc.

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoLSB: 4.1.0 -> 5.0
Dengke Du [Wed, 20 Jul 2016 08:32:35 +0000 (04:32 -0400)]
LSB: 4.1.0 -> 5.0

According to the LSB 5.0 Release Notes, FHS Released, Qt3 removed
and evoloved its module strategy which you can access from the
site:
https://wiki.linuxfoundation.org/en/ReleaseNotes50

So we make two changes to comply with the LSB 5.0:
1. Remove the lsb-test-qt3-azov-*.rpm test package and delete the
   test session.
2. Update the test packages.

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosystemd_boot: Enable module to test systemd bootloader
Jose Perez Carranza [Mon, 4 Jul 2016 21:15:07 +0000 (16:15 -0500)]
systemd_boot: Enable module to test systemd bootloader

 Module systemd_boot created wtih a class "Systemdboot"
 and a test case "test_efi_systemdboot_images_can_be_built"
 to test new systemd bootloader.

 [YOCTO #9706]

Signed-off-by: Jose Perez Carranza <jose.perez.carranza@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowebkitgtk: Switch the ARMv7 build to Thumb2 and enable back the JSC JIT.
Carlos Alberto Lopez Perez [Mon, 18 Jul 2016 21:19:56 +0000 (23:19 +0200)]
webkitgtk: Switch the ARMv7 build to Thumb2 and enable back the JSC JIT.

* The JSC JIT is broken on ARMv7 without Thumb2.

[YOCTO #9474]

Signed-off-by: Carlos Alberto Lopez Perez <clopez@igalia.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoquota: make compile pass when disable rpc
Kai Kang [Tue, 19 Jul 2016 07:39:20 +0000 (15:39 +0800)]
quota: make compile pass when disable rpc

When 'rpc' is not in PACKAGECONFIG, option '--disable-rpc' is passed to
configure and then compile fails. Backport patches to make quota build
successfully.

Update fcntl.patch that part of the patches are added by
0002-Allow-building-on-systems-that-do-not-have-rpc-heade.patch.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoweston-init: De-couple framebuffer console from Weston for systemd startup
Tom Hochstein [Mon, 18 Jul 2016 14:43:04 +0000 (09:43 -0500)]
weston-init: De-couple framebuffer console from Weston for systemd startup

The framebuffer console was using the same I/O as Weston. We fix this
by having openvt switch to the new VT when starting weston-launch, same
as is already done for the sysvinit case.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoweston-init: Fix weston-start to handle 0 or 1 args
Tom Hochstein [Mon, 18 Jul 2016 14:43:05 +0000 (09:43 -0500)]
weston-init: Fix weston-start to handle 0 or 1 args

The parser incorrectly treated anything less than 2 args as an error.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoweston-init: Fix weston-start to allow weston args without openvt args
Tom Hochstein [Mon, 18 Jul 2016 14:43:06 +0000 (09:43 -0500)]
weston-init: Fix weston-start to allow weston args without openvt args

The parser didn't properly handle commands of the form
weston-start -- <weston-options>.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoccache: 3.2.4 -> 3.2.5
Robert Yang [Mon, 25 Jul 2016 08:16:31 +0000 (01:16 -0700)]
ccache: 3.2.4 -> 3.2.5

Add Revert-Create-man-page-in-the-make-install-from-git-.patch to
disable asciidoc since we don't have it.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogettext-minimal-native: 0.19.4 -> 0.19.8.1
Robert Yang [Mon, 25 Jul 2016 08:16:30 +0000 (01:16 -0700)]
gettext-minimal-native: 0.19.4 -> 0.19.8.1

How to upgrade gettext-minimal-native:
  - Build gettext-native
  - Copy gettext-runtime/po/Makefile.in.in, build-aux/config.rpath and
    gettext-runtime/po/remove-potcdate.sin from gettext-native.
  - Update COPYING when needed (usually update the year), do not copy
    the whole COPYING file from gettext-native.
  - Go to gettext-native's ${S}/gettext-runtime/m4:
    > Remove lt*.m4 and libtool.m4
    > copy lib-ld.m4 lib-link.m4 lib-prefix.m4 from ${S}/gettext-runtime/gnulib-m4/
    > tar czvf /path/to/aclocal.tgz *.m4

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogettext: 0.19.6 -> 0.19.8.1
Robert Yang [Mon, 25 Jul 2016 08:16:29 +0000 (01:16 -0700)]
gettext: 0.19.6 -> 0.19.8.1

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoslang: 2.2.4 -> 2.3.0
Robert Yang [Mon, 25 Jul 2016 08:16:28 +0000 (01:16 -0700)]
slang: 2.2.4 -> 2.3.0

* Removed:
  change-char-type-to-signed-char-in-macros.patch
  sprintf-bug-concerning-8-bit-characters.patch
  They are already in the source.

* Updated:
  fix-check-pcre.patch
  fix-check-pcre.patch
  slang-fix-the-iconv-existence-checking.patch

* Use SECURITY_NO_PIE_CFLAGS for SECURITY_CFLAGS, it can't be built with
  "-pie -fpie":
  tmp/sysroots/qemux86-64/usr/lib64/../lib64/Scrt1.o: In function `_start':
  /usr/src/debug/glibc/2.24-r0/git/csu/../sysdeps/x86_64/start.S:104: undefined reference to `main'
  /tmp/ccMFTA8A.o: In function `smg_char_at':
  /usr/src/debug/slang/2.3.0-r0/slang-2.3.0/modules/slsmg-module.c:134: undefined reference to `SLsmg_char_at'
  /tmp/ccMFTA8A.o: In function `smg_resume_smg':

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agognu-efi: 3.0.3 -> 3.0.4
Robert Yang [Mon, 25 Jul 2016 08:16:27 +0000 (01:16 -0700)]
gnu-efi: 3.0.3 -> 3.0.4

* Remove gnu-efi-Make-setjmp.S-portable-to-ARM.patch since it is already
  in the source.

* Updated LIC_FILES_CHKSUM
  - The following files are gone:
    lib/arm/div64.S
    lib/arm/lib1funcs.S
  - Updated md5sum for other files, they add the following words, which are
    still GPLv2+:
    Redistribution and use in source and binary forms, with or without
    modification, are permitted provided that the following conditions
    are met:
    1. Redistributions of source code must retain the above copyright
       notice and this list of conditions, without modification.
    2. The name of the author may not be used to endorse or promote products
       derived from this software without specific prior written permission.

    Alternatively, this software may be distributed under the terms of the
    GNU General Public License as published by the Free Software Foundation;
    either version 2 of the License, or (at your option) any later version.

* Remove -mfpmath=sse from TUNE_CCARGS since gnu-efi doesn't support sse to fix the
  problem:
  rtdata.c:1:0: error: SSE instruction set disabled, using 387 arithmetics [-Werror]

* gnu-efi's Makefile treats prefix as toolchain prefix, so don't export it,
  otherwise there would be errors:
  /bin/sh: /usrgcc: No such file or directory

* Add aarch64-initplat.c-fix-const-qualifier.patch to fix build on aarch64:
  initplat.c:44:35: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoguile: 2.0.11 -> 2.0.12
Robert Yang [Mon, 25 Jul 2016 08:16:26 +0000 (01:16 -0700)]
guile: 2.0.11 -> 2.0.12

* Remove these patches which already in the source:
  - libguile-VM-ASM_MUL-for-ARM-Add-earlyclobber.patch
  - remove_strcase_l_funcs.patch
  - 0001-libguile-Check-for-strtol_l-during-configure.patch

* Update 0002-Recognize-nios2-as-compilation-target.patch

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogit: 2.8.4 -> 2.9.2
Robert Yang [Mon, 25 Jul 2016 08:16:25 +0000 (01:16 -0700)]
git: 2.8.4 -> 2.9.2

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto-dev: Ensure we don't reparse the recipe when its not being used (take 2)
Richard Purdie [Fri, 22 Jul 2016 15:22:12 +0000 (16:22 +0100)]
linux-yocto-dev: Ensure we don't reparse the recipe when its not being used (take 2)

The use of the ${AUTOREV} variable means bitbake would always re-parse the
recipe. This isn't desirable when its disabled so undo the always parsing
flag in this case.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoRevert "linux-yocto-dev: Handle performance regression"
Richard Purdie [Fri, 22 Jul 2016 15:21:25 +0000 (16:21 +0100)]
Revert "linux-yocto-dev: Handle performance regression"

This recipe no longer functions after this change, revert it.

This reverts commit 3e0137113e894eb8b23cd43721c7ba26ff234c8f.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolib/oeqa/decorators: handle broken links when creating new symlink
Ross Burton [Fri, 22 Jul 2016 14:03:30 +0000 (15:03 +0100)]
lib/oeqa/decorators: handle broken links when creating new symlink

When checking if a link exists before creating it, use os.path.lexists() as
otherwise os.path.exists() on a broken link will return False.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agositeinfo: Add mechanism to extend siteinfo information from BSP layer
Richard Purdie [Fri, 22 Jul 2016 14:25:43 +0000 (15:25 +0100)]
siteinfo: Add mechanism to extend siteinfo information from BSP layer

In order to add a new architecture or sub-architecture to OE, you currently
need to tweak the table in siteinfo.bbclass. This adds a mechanism so this
can be done from a BSP layer. It needs a function definition which needs
a class file but can then be done with something like:

def rp_testfunc2(archinfo, osinfo, targetinfo, d):
    archinfo['testarch'] = "little-endian bit-32"
    osinfo['testos'] = "common-linux"
    targetinfo['mymach-linux'] = "mymach-linux-common"

    return archinfo, osinfo, targetinfo

SITEINFO_EXTRA_DATAFUNCS = "rp_testfunc2"

[YOCTO #8554]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoinsane: Add mechanism to extend QA machine information from BSP layer
Richard Purdie [Fri, 22 Jul 2016 14:25:00 +0000 (15:25 +0100)]
insane: Add mechanism to extend QA machine information from BSP layer

In order to add a new architecture or sub-architecture to OE, you currently
need to tweak the table in insane.bbclass. This adds a mechanism so this
can be done from a BSP layer. It needs a function definition which needs
a class file but can then be done with something like:

def my_testfunc(machdata, d):
    machdata["testmachine"] = {
                        "test64":       ( 8,     0,    0,          False,         32),
                        "testel":     ( 8,     0,    0,          True,          32),
                      }
    return machdata

PACKAGEQA_EXTRA_MACHDEFFUNCS = "my_testfunc"

[YOCTO #8554]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoboost: fix CVE-2012-2677
Kai Kang [Mon, 18 Jul 2016 09:06:36 +0000 (17:06 +0800)]
boost: fix CVE-2012-2677

Backport patch to fix CVE-2012-2677 for boost from:

https://svn.boost.org/trac/boost/changeset/78326

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopackage_manager.py: Avoid installing an empty package list
Mark Hatle [Tue, 19 Jul 2016 07:42:32 +0000 (15:42 +0800)]
package_manager.py: Avoid installing an empty package list

It is possible in an attempt only install, that everything listed is not
available to be installed.  This will have the effect of clearing the
package list.  However, we only check for an empty package list at
the beginning of the function.  We need to also check before running the
install, otherwise we can fail due to 'error: no package(s) given".

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoglibc: Update to 2.24 after hard-freeze
Khem Raj [Tue, 19 Jul 2016 04:43:07 +0000 (21:43 -0700)]
glibc: Update to 2.24 after hard-freeze

Drop upstreamed patch

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: rawcopy: make source filenames unique
Ed Bartosh [Thu, 30 Jun 2016 16:29:18 +0000 (19:29 +0300)]
wic: rawcopy: make source filenames unique

Rawcopy plugin copies source files to build folder before using them
to assemble result image. After assembling the image wic renames
source files to <image>.p<partition number>. If the same source file
is used in multiple partitions wic breaks trying to rename file that
doesn't exist.

Added <line number> suffix to the files when copying them to the
build dir. This should make filename unique even if the same source
file is used for multiple partitions.

[YOCTO #9826]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuildhistory-diff: reduce PKGR noise
Ed Bartosh [Fri, 8 Jul 2016 14:35:20 +0000 (17:35 +0300)]
buildhistory-diff: reduce PKGR noise

When using PR service the buildhistory-diff output contains a lot of
PKGR changes: In practice the mass of PKGR updates hide other important
changes as they often account for 80% of all changes.

Skipped incremental and decremental changes of PKGR versions to reduce
amount of the script output. All changes are still included in the
output if script is run with -a/--report-all command line option.

[YOCTO #9755]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosystemd: allow add users to groups in rootfs postprocess
Stephano Cetola [Thu, 14 Jul 2016 18:12:40 +0000 (11:12 -0700)]
systemd: allow add users to groups in rootfs postprocess

Currently the functionality checks for the "u" and "g" flags to create users and
groups, but not the "m" flag to add users to groups. This change first checks to
be sure that the users and groups are created, creates them if necessary, then
adds the user to the group.

Signed-off-by: Stephano Cetola <stephano.cetola@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoinitrdscripts/init-install*: Select install target instead of looping through
California Sullivan [Wed, 13 Jul 2016 00:41:58 +0000 (17:41 -0700)]
initrdscripts/init-install*: Select install target instead of looping through

Its not immediately apparent that more than one install target could be
available. With this change we list the available devices up front then
prompt the user for which one to use, reducing confusion.

Fixes [YOCTO #9919].

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/controllers: Add test target for Systemd-boot
Jose Perez Carranza [Wed, 13 Jul 2016 19:01:57 +0000 (14:01 -0500)]
oeqa/controllers: Add test target for Systemd-boot

A new test target is neede to test Systemd-boot similar
to gummiboot. Created a copy of GummibootTarget class
and named as SystemdbootTarget, at this point the
gummibootTarget will remain until documentation is
updated with new systed information.

Signed-off-by: Jose Perez Carranza <jose.perez.carranza@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooetest.py: Fix problem when there is more than one json file for package extraction
Mariano Lopez [Wed, 13 Jul 2016 11:47:09 +0000 (11:47 +0000)]
oetest.py: Fix problem when there is more than one json file for package extraction

This allow to have more than one test to have json file in order
to install packages in the DUT without using a package manager.

[YOCTO #9926]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooe-selftest: print errors when failed to find test
Robert Yang [Tue, 12 Jul 2016 12:04:01 +0000 (05:04 -0700)]
oe-selftest: print errors when failed to find test

For example:
$ oe-selftest --run-tests-by name hello world
2016-07-12 00:33:28,678 - selftest - ERROR - Failed to find test: hello
2016-07-12 00:33:28,679 - selftest - ERROR - Failed to find test: world

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolib/oeqa/utils/commands.py: Move updateEnv() from runexported.py
Mariano Lopez [Thu, 7 Jul 2016 14:48:55 +0000 (14:48 +0000)]
lib/oeqa/utils/commands.py: Move updateEnv() from runexported.py

updateEnv() can be used in other places so move the
function to utils/commands.py

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agointltool: remove broken XML::Parser detection
Ross Burton [Tue, 19 Jul 2016 11:04:12 +0000 (12:04 +0100)]
intltool: remove broken XML::Parser detection

intltool.m4 has a chunk of code that runs during configure which probes for a
perl binary and verifies that it has the XML::Parser module.  However in builds
using intltool-native the perl binary that it finds is likely to not be the one
that the intltool scripts will be using as the scripts hardcode nativeperl yet
the m4 fragment searches for "perl" in $PATH.  If the host perl doesn't have
XML::Parser the configure will fail, despite the fact that the scripts will
work.

Solve this by taking an old patch from the upstream bug system to simply remove
the check in intltool.m4 as it's generally useless, and remove existing patches
that almost but not quite solved this issue.

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agointltool: merge .bb and .inc
Ross Burton [Tue, 19 Jul 2016 10:42:25 +0000 (11:42 +0100)]
intltool: merge .bb and .inc

There's no use in having these split, so merge them together for clarity.

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa/recipetool: update recipe test to pass SHA
Ross Burton [Mon, 18 Jul 2016 20:43:35 +0000 (21:43 +0100)]
oeqa/recipetool: update recipe test to pass SHA

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa/devtool: update recipe test as libmatchbox changed
Ross Burton [Mon, 18 Jul 2016 20:43:12 +0000 (21:43 +0100)]
oeqa/devtool: update recipe test as libmatchbox changed

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoxf86-input-libinput: Upgrade 0.16.0 -> 0.19.0
Jussi Kukkonen [Fri, 15 Jul 2016 08:28:14 +0000 (11:28 +0300)]
xf86-input-libinput: Upgrade 0.16.0 -> 0.19.0

Note that the xorg configuration file for input-libinput now sorts
lower than it used to (90 -> 60).

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
8 years agoxf86-input-evdev: Upgrade 2.10.2 -> 2.10.3
Jussi Kukkonen [Fri, 15 Jul 2016 08:22:12 +0000 (11:22 +0300)]
xf86-input-evdev: Upgrade 2.10.2 -> 2.10.3

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
8 years agoxkeyboard-config: Upgrade 2.17 -> 2.18
Jussi Kukkonen [Fri, 15 Jul 2016 08:18:37 +0000 (11:18 +0300)]
xkeyboard-config: Upgrade 2.17 -> 2.18

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
8 years agolibxfixes: Upgrade 5.0.1 -> 5.0.2
Jussi Kukkonen [Fri, 15 Jul 2016 08:10:50 +0000 (11:10 +0300)]
libxfixes: Upgrade 5.0.1 -> 5.0.2

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
8 years agoweston: Upgrade 1.10.0 -> 1.11.0
Jussi Kukkonen [Fri, 15 Jul 2016 08:07:31 +0000 (11:07 +0300)]
weston: Upgrade 1.10.0 -> 1.11.0

Remove now unnecessary patch, rebase others.
Add musl build fix patch.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
8 years agowayland: Upgrade 1.10.0 -> 1.11.0
Jussi Kukkonen [Fri, 15 Jul 2016 07:31:42 +0000 (10:31 +0300)]
wayland: Upgrade 1.10.0 -> 1.11.0

Add a musl build fix patch.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
8 years agowayland-protocols: Upgrade 1.3 -> 1.4
Jussi Kukkonen [Fri, 15 Jul 2016 07:29:33 +0000 (10:29 +0300)]
wayland-protocols: Upgrade 1.3 -> 1.4

Remove backported patch.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>