]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
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>
8 years agomesa: Upgrade 11.2.2 -> 12.0.1
Jussi Kukkonen [Fri, 15 Jul 2016 07:13:31 +0000 (10:13 +0300)]
mesa: Upgrade 11.2.2 -> 12.0.1

Massive mesa upgrade (OpenGL 4.3, GLVND support, vulkan driver
for intel etc), although many new things are disabled by default.

License file change does not change the actual licenses.

piglit results (with piglit update on ML) on an old NUC with Intel
HD5000 for reference:
       pass:   33972
       fail:     306
      crash:       2
       skip:   30857
       warn:       7
      total:   65144

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
8 years agomesa-demos: Require X11 distro feature
Jussi Kukkonen [Mon, 18 Jul 2016 11:54:48 +0000 (14:54 +0300)]
mesa-demos: Require X11 distro feature

Mesa-demos theoretically does not require X11 (apart from xdemos/)
but reality is that every other binary requires glut. So:
 * 'non-glut' part of mesa-demos requires X11
 * current freeglut recipe also depends on X11

There is apparently wayland support in freeglut now: This recipe
should be modified when meta-oe freeglut recipe has that feature.

The change became necessary now because mesa no longer mistakenly
installs GL files when X11 is disabled (and mesa-demos configure
currently requires GL).

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
8 years agoimage: add do_image_qa task to run QA checks on the constructed image
Joshua Lock [Thu, 14 Jul 2016 13:36:32 +0000 (14:36 +0100)]
image: add do_image_qa task to run QA checks on the constructed image

This task runs all functions in IMAGE_QA_COMMANDS after the image
construction has completed in order to validate the resulting image.

Image sanity checks should either be Python functions which raise
bb.build.FuncFailed on failure or shell functions with return a
non-zero exit code.

Python functions may instead raise an oe.utils.ImageQAFailed
Exception which takes an extra argument, a description of the
failure.

   python image_check_python_ok () {
       if True:
           raise bb.build.FuncFailed('This check always fails')
       else:
           bb.note("Nothing to see here")
   }

   image_check_shell_ok () {
       if true
           exit 1
       else
           exit 0
       fi
   }

[YOCTO #9448]

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopython3: Security fix CVE-2016-5636
Armin Kuster [Sat, 16 Jul 2016 23:04:15 +0000 (16:04 -0700)]
python3: Security fix CVE-2016-5636

Affects python3 < 3.5.1
Base Score (4.4) Medium

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopython2: Security fix CVE-2016-5636
Armin Kuster [Sat, 16 Jul 2016 23:04:14 +0000 (16:04 -0700)]
python2: Security fix CVE-2016-5636

Affects python2 < 2.7.11
Base score (4.4) Medium

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobzip2: Security fix CVE-2016-3189
Armin Kuster [Sat, 16 Jul 2016 23:04:13 +0000 (16:04 -0700)]
bzip2: Security fix CVE-2016-3189

Affects bzip2 <= 1.0.6
CVSS v2 Base Score: 4.3 MEDIUM

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoopenssl: Security fix CVE-2016-2178
Armin Kuster [Sat, 16 Jul 2016 23:04:12 +0000 (16:04 -0700)]
openssl: Security fix CVE-2016-2178

affects  openssl <=  1.0.2h
CVSS v2 Base Score: 2.1 LOW

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoopenssl: Security fix CVE-2016-2177
Armin Kuster [Sat, 16 Jul 2016 23:04:11 +0000 (16:04 -0700)]
openssl: Security fix CVE-2016-2177

Affects openssl <= 1.0.2h
CVSS v2 Base Score: 7.5 HIGH

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoxmlto: only target requires coreutils
Robert Yang [Mon, 18 Jul 2016 03:05:52 +0000 (20:05 -0700)]
xmlto: only target requires coreutils

The coreutils added to RDEPENDS was for tail command which is everywhere
on the build host, so only add it to target. There was a side effect if
coreutils-native was build, when its commands install to sysroots, they
would be removed during rebuild, and cause other recipes fail to build:

/path/to/tmp/sysroots/x86_64-linux/usr/bin/mkdir -p lib/sys
make: /path/to/tmp/sysroots/x86_64-linux/usr/bin/mkdir: Command not found

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopiglit: Fix build on musl/arm
Khem Raj [Sat, 9 Jul 2016 08:00:54 +0000 (01:00 -0700)]
piglit: Fix build on musl/arm

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoxuser-account: remove GROUPADD_PARAM
Robert Yang [Mon, 11 Jul 2016 15:25:50 +0000 (08:25 -0700)]
xuser-account: remove GROUPADD_PARAM

The group shutdown had been provided by base-passwd, otherwise, it may cause
sysvinit failed to build:

$ bitbake xuser-account sysvinit && bitbake xuser-account sysvinit -ccleansstate && bitbake sysvinit
[snip]
| chown: invalid user: root.shutdown
[snip]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agorecipes-graphics: Added native and nativesdk support for some libraries
Felipe F. Tonello [Fri, 15 Jul 2016 16:36:32 +0000 (17:36 +0100)]
recipes-graphics: Added native and nativesdk support for some libraries

These libraries are used in some recipes outside oe-core, so we should add
this class support to avoid duplication and bbappends on other layers.

Signed-off-by: Felipe F. Tonello <eu@felipetonello.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agotcl: fix sed command in do_install
Robert Yang [Tue, 24 May 2016 02:34:18 +0000 (19:34 -0700)]
tcl: fix sed command in do_install

The -I= and -L= is used for cross compile, target doesn't need, and
binconfig.class can handle usr/bin/crossscripts/tclConfig.sh.

Fix do_configure error for the recipe which uses tclConfig.sh, for
example, postgresql.do_configure:
configure: error: header file <tcl.h> is required for Tcl

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooe-git-proxy: don't depend on syslinux
André Draszik [Fri, 15 Jul 2016 15:03:27 +0000 (16:03 +0100)]
oe-git-proxy: don't depend on syslinux

gethostip comes from syslinux. It seems odd to depend on a bootloader
to clone a git repository.

Switch to using getent from the c-library, which should be available
on every system.

We now also support the case where a hostname resolves to more than
one IP address.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosysstat: upgrade to 11.3.5
Chen Qi [Fri, 15 Jul 2016 01:49:38 +0000 (09:49 +0800)]
sysstat: upgrade to 11.3.5

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosudo: upgrade to 1.8.17p1
Chen Qi [Fri, 15 Jul 2016 01:49:37 +0000 (09:49 +0800)]
sudo: upgrade to 1.8.17p1

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agocups: upgrade to 2.1.4
Chen Qi [Fri, 15 Jul 2016 01:49:36 +0000 (09:49 +0800)]
cups: upgrade to 2.1.4

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobyacc: upgrade to 20160606
Chen Qi [Fri, 15 Jul 2016 01:49:35 +0000 (09:49 +0800)]
byacc: upgrade to 20160606

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoat: upgrade to 3.1.20
Chen Qi [Fri, 15 Jul 2016 01:49:34 +0000 (09:49 +0800)]
at: upgrade to 3.1.20

configure-fix-with-without-selinux.patch is removed as it has been merged.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibxsettings-client: Remove as unneeded
Jussi Kukkonen [Fri, 15 Jul 2016 12:20:05 +0000 (15:20 +0300)]
libxsettings-client: Remove as unneeded

xsettings-client is not meant to be a shared library and the only
user in oe-core (libmatchbox) now has an in-tree copy.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibmatchbox: Upgrade 1.11 -> 1.12
Jussi Kukkonen [Fri, 15 Jul 2016 12:20:04 +0000 (15:20 +0300)]
libmatchbox: Upgrade 1.11 -> 1.12

libmatchbox now has a in-tree xsettings-client.

* Use git SRC_URI like the other matchbox components.
* Remove upstreamed patch.
* Update license info (xsettings code is MIT).
* Stop depending on libxsettings-client

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agomatchbox-keyboard: Upgrade to 0.1.1
Jussi Kukkonen [Fri, 15 Jul 2016 12:20:03 +0000 (15:20 +0300)]
matchbox-keyboard: Upgrade to 0.1.1

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosato-screenshot: Upgrade 0.2 -> 0.3
Jussi Kukkonen [Fri, 15 Jul 2016 12:20:02 +0000 (15:20 +0300)]
sato-screenshot: Upgrade 0.2 -> 0.3

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agomatchbox-panel-2: Upgrade 2.10 -> 2.11
Jussi Kukkonen [Fri, 15 Jul 2016 12:20:01 +0000 (15:20 +0300)]
matchbox-panel-2: Upgrade 2.10 -> 2.11

New release finishes the port from buggy ScalingImage to
ScalingImage2.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibpng: update to 1.6.23
Maxin B. John [Fri, 15 Jul 2016 12:09:15 +0000 (15:09 +0300)]
libpng: update to 1.6.23

1.6.22 -> 1.6.23

License files changes are due to updates in Copyright date and Version

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolinux-firmware: update to revision cccb6a0da9
Maxin B. John [Fri, 15 Jul 2016 12:09:14 +0000 (15:09 +0300)]
linux-firmware: update to revision cccb6a0da9

Upgrade to revision cccb6a0da9

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agonss: Fix build on mips/clang
Khem Raj [Fri, 15 Jul 2016 10:03:25 +0000 (03:03 -0700)]
nss: Fix build on mips/clang

This issue is also reported here
https://trac.macports.org/ticket/51709
Patch is also from same ticket

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowic: oe-selftest: build bmap-tools-native
Ed Bartosh [Fri, 15 Jul 2016 06:53:47 +0000 (09:53 +0300)]
wic: oe-selftest: build bmap-tools-native

bmap-tools-native is required to generate .bmap file. Without it
wic fails with this error when run with --bmap option:
    Error: A native program bmaptool required to build
           the image was not found

Added bmap-tools-native to the list of requirements to build
in Wic.setUpLocal method.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agomusl: Fix mips regressions in 1.1.15
Khem Raj [Thu, 14 Jul 2016 15:15:17 +0000 (08:15 -0700)]
musl: Fix mips regressions in 1.1.15

Bobby Bingham (2):
      remove or1k version of sem.h
      remove obsolete gitignore rules

Rich Felker (4):
      remove obsolete and unused gethostbyaddr implementation
      fix asctime day/month names not to vary by locale
      fix regression in tcsetattr on all mips archs
      revert unrelated change that slipped into last commit

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobinutils: backport fix for TLSDESC relocations with no TLS segment on arch64
Ross Burton [Thu, 14 Jul 2016 18:59:47 +0000 (19:59 +0100)]
binutils: backport fix for TLSDESC relocations with no TLS segment on arch64

As exposed by WebKit on aarch64 hosts, which causes binutils to throw an
internal error.

[ YOCTO #9509 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoclasses/license.bbclass: don't set [dirs] and [cleandirs]
Ross Burton [Thu, 7 Jul 2016 13:34:18 +0000 (14:34 +0100)]
classes/license.bbclass: don't set [dirs] and [cleandirs]

There's no need to set these as the restore from sstate will create the
directories as required.

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoglibc: use the host locale archive in nativesdk builds
Ross Burton [Wed, 6 Jul 2016 09:54:29 +0000 (10:54 +0100)]
glibc: use the host locale archive in nativesdk builds

The nativesdk libc when used by buildtools has a hard requirement on supporting
a UTF-8 locale because Python 3 needs a UTF-8 locale.  However we currently only
ship the C locale, which means that Python attempts to lookup the user's locale
(for example, en_NZ.UTF-8) in the locale archive under it's prefix it fails and
falls back to C.  This the results in Python using ASCII instead of UTF-8 for
file encoding, and bitbake breaks.

Th obvious solution would be to ship all locales, but this would add
approximately 250MB to the size of the buildtools tarball (which is currently
around 30MB).  Generating a binary locale archive reduces this down to 100MB,
but this is still a drastic increase in footprint.  If we ship a subset of
locales in the tarball then there will be users whose locale isn't in the
tarball, and they'll have to change their locale to an "approved" one, which
isn't the best of messages to send to new users.

The alternative is to tell the nativesdk libc that the locale archive isn't
under it own prefix but is in fact at /usr/lib/locale/locale-archive, so the
buildtools libc uses the host locale archive. The locale archive format appears
to be at least fairly stable: our glibc 2.24 can read the locale archive
generated by glibc 2.17 (Centos 7).

[ YOCTO #9775 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoperl: fix CVE-2016-2381
Kai Kang [Thu, 14 Jul 2016 08:53:08 +0000 (16:53 +0800)]
perl: fix CVE-2016-2381

Backport patch to fix CVE-2016-2381 from perl upstream:

http://perl5.git.perl.org/perl.git/commitdiff/ae37b791a73a9e78dedb89fb2429d2628cf58076

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoopkg: upgrade to v0.3.3
Alejandro del Castillo [Wed, 13 Jul 2016 21:05:34 +0000 (16:05 -0500)]
opkg: upgrade to v0.3.3

Bug fix release to address two regressions:

*  Fix build breakage when using configure option --enable-sha256
*  Do not remove packages if removal operation is not valid due to
   installed dependents

Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agodevtool: add finish subcommand
Paul Eggleton [Wed, 13 Jul 2016 21:04:25 +0000 (09:04 +1200)]
devtool: add finish subcommand

Add a subcommand which will "finish" the work on a recipe. This is
effectively the same as update-recipe followed by reset, except that the
destination layer is required and it will do the right thing depending
on the situation - if the recipe file itself is in the workspace (e.g.
as a result of devtool add), the recipe file and any associated files
will be moved to the destination layer; or if the destination layer is
the one containing the original recipe, the recipe will be overwritten;
otherwise a bbappend will be created to apply the changes. In all cases
the layer path can be loosely specified - it could be a layer name, or
a partial path into a recipe. In the case of upgrades, devtool finish
will also take care of deleting the old recipe.

This avoids the user having to figure out the correct actions when
they're done - they just do "devtool finish recipename layername" and
it saves their work and then removes the recipe from the workspace.

Addresses [YOCTO #8594].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agodevtool: upgrade: record original recipe files
Paul Eggleton [Wed, 13 Jul 2016 21:04:24 +0000 (09:04 +1200)]
devtool: upgrade: record original recipe files

This provides us with the information we need to remove the original
version recipe and associated files when running "devtool finish" after
"devtool upgrade".

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>