]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
8 years agocoreutils: fix for native and nativesdk
Dengke Du [Tue, 26 Apr 2016 05:59:19 +0000 (22:59 -0700)]
coreutils: fix for native and nativesdk

The do_install_append is used for moving/renaming for ALTERNATIVE, but
it breaks native, for example there is no ln, but ln.coreutils, that
makes coreutils-native don't work. This patch fixes the problem.

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooe-buildenv-internal: add BBPATH_EXTRA to BB_ENV_EXTRAWHITE_OE
Robert Yang [Mon, 25 Apr 2016 08:47:43 +0000 (01:47 -0700)]
oe-buildenv-internal: add BBPATH_EXTRA to BB_ENV_EXTRAWHITE_OE

So that user can easily make their own conf files such as conf/site.conf
work. For example, poky's default BBPATH in bblayers.conf is:
BBPATH = "${TOPDIR}"
Will change it to:
BBPATH_EXTRA ??= ""
BBPATH = "${BBPATH_EXTRA}${TOPDIR}"

When user sets BBPATH_EXTRA in env to their own dir which contains
conf/site.conf, it will work.

Note, BBPATH_EXTRA must end with ":", we can't set BBPATH as
"${BBPATH_EXTRA}:${TOPDIR}" since the sanity would fail when
BBPATH_EXTRA is null.

[YOCTO #7837]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agognu-efi: set COMPATIBLE_HOST_armv4 to null
Robert Yang [Thu, 21 Apr 2016 06:16:47 +0000 (23:16 -0700)]
gnu-efi: set COMPATIBLE_HOST_armv4 to null

It doesn't build with armv4:
lib1funcs.S: Assembler messages:
Assembler messages:
gnu-efi-3.0.3/lib/arm/lib1funcs.S:140: Error: selected processor does not support `clz r3,r1' in ARM mode
gnu-efi-3.0.3/lib/arm/div64.S:95: Error: selected processor does not support `clz r2,r4' in ARM mode
gnu-efi-3.0.3/lib/arm/lib1funcs.S:140: Error: selected processor does not support `clz r2,r0' in ARM mode
[snip]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocogl-1.0: set COMPATIBLE_HOST_armv4 to null
Robert Yang [Thu, 21 Apr 2016 06:16:47 +0000 (23:16 -0700)]
cogl-1.0: set COMPATIBLE_HOST_armv4 to null

It doesn't build with armv4:
cogl-texture-deprecated.c  -fPIC -DPIC -o deprecated/.libs/cogl-texture-deprecated.o
{standard input}: Assembler messages:
{standard input}:831: Error: selected processor does not support `clz r3,r0' in ARM mode
make[4]: *** [deprecated/cogl-fixed.lo] Error 1
[snip]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoopenssh: change URI to http:
Ross Burton [Mon, 16 May 2016 09:42:24 +0000 (10:42 +0100)]
openssh: change URI to http:

The OpenBSD FTP server isn't accepting connections from wget, which breaks
fetches.  Luckily they also have a HTTP server on the same host.

[ YOCTO #9628 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoperl: use PACKAGESPLITFUNCS instead of populate_packages_prepend
Guojian Zhou [Mon, 16 May 2016 08:53:38 +0000 (16:53 +0800)]
perl: use PACKAGESPLITFUNCS instead of populate_packages_prepend

This is cleaner and leads to more accurate profiles.

Signed-off-by: Guojian Zhou <guojian.zhou@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibsolv: upgrade to 0.6.20
Maxin B. John [Mon, 16 May 2016 12:15:29 +0000 (15:15 +0300)]
libsolv: upgrade to 0.6.20

0.6.19 -> 0.6.20

Added the following patch to fix build with musl:
        0001-Add-fallback-fopencookie-implementation.patch

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibproxy: update to version 0.4.13
Maxin B. John [Mon, 16 May 2016 12:15:28 +0000 (15:15 +0300)]
libproxy: update to version 0.4.13

1. libproxy moved from google-code to github
2. Remove upstreamed patch:
        a) 0001-test-Include-sys-select.h-for-select.patch

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoxproto: Upgrade 7.0.28 -> 7.0.29
Jussi Kukkonen [Mon, 16 May 2016 13:22:47 +0000 (16:22 +0300)]
xproto: Upgrade 7.0.28 -> 7.0.29

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoexpat: Upgrade 2.1.0 -> 2.1.1
Jussi Kukkonen [Mon, 16 May 2016 13:22:46 +0000 (16:22 +0300)]
expat: Upgrade 2.1.0 -> 2.1.1

* Remove backported CVE patch
* Update autotools patch
* Update SRC_URI to match current archive type

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibsoup-2.4: Upgrade 2.52.2 -> 2.54.1
Jussi Kukkonen [Mon, 16 May 2016 13:22:45 +0000 (16:22 +0300)]
libsoup-2.4: Upgrade 2.52.2 -> 2.54.1

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agojson-glib: Upgrade 1.0.4 -> 1.2.0
Jussi Kukkonen [Mon, 16 May 2016 13:22:44 +0000 (16:22 +0300)]
json-glib: Upgrade 1.0.4 -> 1.2.0

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoinputproto: Upgrade 2.3.1 -> 2.3.2
Jussi Kukkonen [Mon, 16 May 2016 13:22:43 +0000 (16:22 +0300)]
inputproto: Upgrade 2.3.1 -> 2.3.2

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogsettings-desktop-schemas: Upgrade 3.19.3 -> 3.20.0
Jussi Kukkonen [Mon, 16 May 2016 13:22:42 +0000 (16:22 +0300)]
gsettings-desktop-schemas: Upgrade 3.19.3 -> 3.20.0

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogdk-pixbuf: Upgrade 2.32.3 -> 2.34.0
Jussi Kukkonen [Mon, 16 May 2016 13:22:41 +0000 (16:22 +0300)]
gdk-pixbuf: Upgrade 2.32.3 -> 2.34.0

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopango: Upgrade 1.38.1 -> 1.40.1
Jussi Kukkonen [Mon, 16 May 2016 13:22:40 +0000 (16:22 +0300)]
pango: Upgrade 1.38.1 -> 1.40.1

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoglib-networking: Upgrade 2.46.1 -> 2.48.2
Jussi Kukkonen [Mon, 16 May 2016 13:22:39 +0000 (16:22 +0300)]
glib-networking: Upgrade 2.46.1 -> 2.48.2

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosstate: Ensure we sort the value used for SSTATETASKS for determinism
Richard Purdie [Mon, 16 May 2016 21:53:25 +0000 (22:53 +0100)]
sstate: Ensure we sort the value used for SSTATETASKS for determinism

This avoids 'basehash changed' errors with python 3 but could break
build determinism in general.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoclasses/oeqa: Update for print statements and file() -> open() for python3 uninative-1.0
Richard Purdie [Mon, 16 May 2016 07:29:52 +0000 (08:29 +0100)]
classes/oeqa: Update for print statements and file() -> open() for python3

Found some more syntax cleanups needed for python3.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa: Print function python3 fixes
Richard Purdie [Sun, 15 May 2016 09:23:25 +0000 (10:23 +0100)]
oeqa: Print function python3 fixes

Use print functions for comptibility with python3.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agotcmode-default: Bump glibc,gdb
Khem Raj [Fri, 13 May 2016 16:46:52 +0000 (09:46 -0700)]
tcmode-default: Bump glibc,gdb

glibc 2.24, gdb 7.11

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosecurity_flags: Enable security flags on leafpad, ltp and libuser.
Aníbal Limón [Fri, 13 May 2016 19:49:28 +0000 (14:49 -0500)]
security_flags: Enable security flags on leafpad, ltp and libuser.

Now we have patches that solves the security formatting issues into
those packages.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoleafpad: Fix security formating issues.
Aníbal Limón [Fri, 13 May 2016 19:49:27 +0000 (14:49 -0500)]
leafpad: Fix security formating issues.

[YOCTO #9546]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibuser: Fix security string formatting issues.
Aníbal Limón [Fri, 13 May 2016 19:49:26 +0000 (14:49 -0500)]
libuser: Fix security string formatting issues.

[YOCTO #9547]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoltp: Fixes security string printf on testcases/network/nfsv4/acl/acl1.c
Aníbal Limón [Fri, 13 May 2016 19:49:24 +0000 (14:49 -0500)]
ltp: Fixes security string printf on testcases/network/nfsv4/acl/acl1.c

[YOCTO #9548]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto/4.4: gcc6 build fixes (powerpc and mips)
Bruce Ashfield [Fri, 13 May 2016 16:46:53 +0000 (09:46 -0700)]
linux-yocto/4.4: gcc6 build fixes (powerpc and mips)

Khem provided fixes to fix gcc6 build issues, these are safe for
all gcc versions, so we integrate them directly.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoglibc-initial.inc: fix py3 SyntaxError in cfgscript print()
Tim Orling [Sat, 14 May 2016 08:28:42 +0000 (09:28 +0100)]
glibc-initial.inc: fix py3 SyntaxError in cfgscript print()

Update so this works with python3.

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoautotools.bbclass: fix py3 SyntaxError in cfgscript print()
Tim Orling [Sat, 14 May 2016 08:28:39 +0000 (09:28 +0100)]
autotools.bbclass: fix py3 SyntaxError in cfgscript print()

Update so this works with python3.

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/decorators: Use wraps consistently
Richard Purdie [Sat, 14 May 2016 08:26:52 +0000 (09:26 +0100)]
oeqa/decorators: Use wraps consistently

We want the decorator to leave the function names of the test unchanged. Some
decorators are already using wraps for this but not all. Fix this to be consistent
allowing inspection of the test to give the wanted values.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoselftest: add bmap test
Ed Bartosh [Mon, 2 May 2016 12:22:34 +0000 (15:22 +0300)]
selftest: add bmap test

Added test_bmap to imagefeatures tests.
It tests if bmap file is generated for the images and
if the image is sparse.

[YOCTO #9414]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoimage types: add bmap generation option
Alexander D. Kanevskiy [Mon, 2 May 2016 12:22:33 +0000 (15:22 +0300)]
image types: add bmap generation option

bmap image conversion type allows to create block map files
for sparse images. Bmap file can be used together with bmap-tools
for efficiently flash images to raw devices (hdd or usb drive)

[YOCTO #9414]

Signed-off-by: Alexander D. Kanevskiy <kad@kad.name>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobmap-tools: initial commit, version 3.2
Ed Bartosh [Mon, 2 May 2016 12:22:32 +0000 (15:22 +0300)]
bmap-tools: initial commit, version 3.2

Bmap-tools - tools to generate block map (AKA bmap) and flash images
using bmap. Bmaptool is a generic tool for creating the block map
(bmap) for a file and copying files using the block map.

The idea is that large file containing unused blocks, like raw system
image files, can be copied or flashed a lot faster with bmaptool than
with traditional tools like "dd" or "cp".

[YOCTO #9414]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoimage_types: add support for zip compression
Patrick Ohly [Fri, 6 May 2016 14:58:44 +0000 (17:58 +0300)]
image_types: add support for zip compression

Support for the other compression format is not always readily
available on all OSes. Using zip instead of, say, xz is less
efficient, but perhaps more user-friendly for users on such OSes.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: use next builtin instead of .next method
Ed Bartosh [Wed, 4 May 2016 13:06:27 +0000 (16:06 +0300)]
wic: use next builtin instead of .next method

Generators in Python 3 don't have .next method. It's recommended
to use 'next' builtin instead. As it also present in Python >= 2.6
it should make wic code compatible with both Python 2 and Python 3.

[YOCTO #9412]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: don't encode unicode strings
Ed Bartosh [Wed, 4 May 2016 13:06:26 +0000 (16:06 +0300)]
wic: don't encode unicode strings

Removed check for unicode type as it doesn't work in Python 3.
This check is not needed for wic as all its output seem to be
strings. This allows to run code under both pythons.

[YOCTO #9412]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: decode output of subprocess.communicate
Ed Bartosh [Wed, 4 May 2016 13:06:25 +0000 (16:06 +0300)]
wic: decode output of subprocess.communicate

stdeout and stderr content returned by communicate API has different
types in Python 3(bytes) and Python 2(string). Decoding it to 'utf-8'
makes it unicode on both pythons.

Decoded stdout and stderr output to utf-8 to make the code
working under both Python 2 and Python 3.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: use // operator instead of /
Ed Bartosh [Wed, 4 May 2016 13:06:24 +0000 (16:06 +0300)]
wic: use // operator instead of /

Division operator works differently in Python 3. It results in
float unlike in Python 2, where it results in int.
Explicitly used "floor division" operator instead of 'division'
operator. This should make the code to result in integer under
both pythons.

[YOCTO #9412]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: use find_executable in favor of bb.utils.which
Ed Bartosh [Wed, 4 May 2016 13:06:23 +0000 (16:06 +0300)]
wic: use find_executable in favor of bb.utils.which

As bitbake is not ported to Python 3 yet it's better to
avoid using its APIs as much as possible to be able to
test wic under Python 3 at least partially.

Used distutils.spawn.find_executable API in favor of
bb.utils.which to get path of the command to run.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: don't use L suffix for integers
Ed Bartosh [Wed, 4 May 2016 13:06:22 +0000 (16:06 +0300)]
wic: don't use L suffix for integers

This suffix is not supported by Python 3. Wic code works
without it on Python 2 too, so it's safe to remove it.

[YOCTO #9412]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: refactor pluginbase
Ed Bartosh [Wed, 4 May 2016 13:06:21 +0000 (16:06 +0300)]
wic: refactor pluginbase

Wic plugin machinery implemented using metaclasses.

Reimplemented plugin machinery using this advice from
https://wiki.python.org/moin/PortingToPy3k/BilingualQuickRef
Syntax for creating instances with different metaclasses is very
different between Python 2 and 3. Use the ability to call type instances
as a way to portably create such instances.

Now it should work under both Python 2 and Python 3.

[YOCTO #9412]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: remove unused functions
Ed Bartosh [Wed, 4 May 2016 13:06:20 +0000 (16:06 +0300)]
wic: remove unused functions

Removed 'raw', 'ask', 'choice' and 'pause' functions from
msger.py as they're not used in wic code and some of them
use raw_input, which is not present in Python 3.

[YOCTO #9412]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: use new syntax of 'except' statement
Ed Bartosh [Wed, 4 May 2016 13:06:19 +0000 (16:06 +0300)]
wic: use new syntax of 'except' statement

New syntax 'except Exception as err' is supported by Python >= 2.7.
Old syntax 'except Exception, err' is not supported by Python 3.

Used new syntax to be able to run wic on Python 3.

[YOCTO #9412]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: remove with_statement imports
Ed Bartosh [Wed, 4 May 2016 13:06:18 +0000 (16:06 +0300)]
wic: remove with_statement imports

'with' statement is not used in baseimager.py
It's supported by Python 2.7, which is included into all target
distros. Other wic modules use this statement.

Removed useless 'from __future__ import with_statement' from
wic code.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: don't inherit classes from object
Ed Bartosh [Wed, 4 May 2016 13:06:17 +0000 (16:06 +0300)]
wic: don't inherit classes from object

All classes in Python3 are new style classes and don't need
to be inherited from object. Wic code works fine without
this inheritance even with Python2, so it's harmless to
remove it.

[YOCTO #9412]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: don't use dict.keys and dict.has_key
Ed Bartosh [Wed, 4 May 2016 13:06:16 +0000 (16:06 +0300)]
wic: don't use dict.keys and dict.has_key

Replaced calls of dict.keys and dict.has_key methods with the
'key in dict' statement. 'key in dict' is more pythonic, faster
and readable. dict.has_key doesn't exist in Python 3.

[YOCTO #9412]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: use items instead of iteritems
Ed Bartosh [Wed, 4 May 2016 13:06:15 +0000 (16:06 +0300)]
wic: use items instead of iteritems

Dictionary method 'iteritems' doesn't exist in Python 3.
Replaced 'iteritems' with 'items' to be able to run the
code under both Python 3 and Python 2.

[YOCTO #9412]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: replace print statements with print function
Ed Bartosh [Wed, 4 May 2016 13:06:14 +0000 (16:06 +0300)]
wic: replace print statements with print function

Print statements have been replaced with print function in
Python 3. Replaced them in wic code to be able to run it
under both Python 2 and Python 3.

[YOCTO #9412]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocombo-layer: avoid too long command lines in update with history
Patrick Ohly [Fri, 13 May 2016 16:56:57 +0000 (18:56 +0200)]
combo-layer: avoid too long command lines in update with history

As suspected, invoking "git archive" with all intended files as
parameters can run into command line length limitations. Splitting up
the parameters into multiple invocations (xargs-style) works and was
tested after encountering the situation in practice.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocombo-layer: fix default "update" mode
Patrick Ohly [Fri, 13 May 2016 16:56:56 +0000 (18:56 +0200)]
combo-layer: fix default "update" mode

When the "history" option is not set in the combo-layer.conf, the
intended default was to use the traditional method. Passing "True" as
default when querying the config was unintentional.

Also remove some left-over debugging code.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython-native: Point to expat in native sysroot and add missing dep on expat-native
Khem Raj [Thu, 28 Apr 2016 06:38:50 +0000 (06:38 +0000)]
python-native: Point to expat in native sysroot and add missing dep on expat-native

This fixes inconsistency where expat dependency is
then depending upon build host having it or not having it

Fixes errors like
WARNING: renaming "pyexpat" since importing it failed: build/lib.linux-x86_64-2.7/pyexpat.so: undefined symbol: XML_SetCommentHandler

also reported here
https://dev.openwrt.org/ticket/20087

This work due to the fact that we use -isystem pointing to native sysroot
so the search order of native includedir is moved after buildhosts system
includdirs. Moment we replace it with -I, build falls apart

This also fixes the error

Caught exception: <type 'exceptions.ImportError'> ImportError('No module named _elementtree',)

where gobject-introspection-native fails to find _elementtree
which is only compiled if expat is available

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agofeature-arm-vfp.inc: fix overzealous ARMPKGSFX_FPU modification
André Draszik [Thu, 12 May 2016 15:17:51 +0000 (16:17 +0100)]
feature-arm-vfp.inc: fix overzealous ARMPKGSFX_FPU modification

Since commit 972b4fc (feature-arm-neon.inc: restore vfpv3-d16 support)
we're replacing _all_ dashes (-) in ARMPKGSFX_FPU, which is causing
problems for all legitimate uses of the dash as TUNE_PKGARCH doesn't
have the right value anymore:

E.g. on raspberrypi2:

ERROR:  OE-core's config sanity checker detected a potential misconfiguration.
    Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
    Following is the list of potential problems / advisories:

    Error, the PACKAGE_ARCHS variable (all any noarch armv5hf-vfp armv5thf-vfp
armv5ehf-vfp armv5tehf-vfp armv6hf-vfp armv6thf-vfp armv7ahf-vfp
armv7at2hf-vfp armv7vehf-vfp armv7vet2hf-vfp armv7vehf-neon armv7vet2hf-neon
armv7vehf-neon-vfpv4 armv7vet2hf-neon-vfpv4 cortexa7hf-vfp cortexa7hf-neon
cortexa7hf-neon-vfpv4 cortexa7t2hf-vfp cortexa7t2hf-neon
cortexa7t2hf-neon-vfpv4 raspberrypi3) for DEFAULTTUNE (cortexa7thf-neon-vfpv4)
does not contain TUNE_PKGARCH (cortexa7hf-neonvfpv4).

Fix this by being more explicit about what we're modifying.

Reported-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogdb: Upgrade to 7.11
Khem Raj [Sun, 1 May 2016 01:41:57 +0000 (18:41 -0700)]
gdb: Upgrade to 7.11

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoglibc: Add recipes for 2.24 release
Khem Raj [Sat, 16 Apr 2016 18:08:24 +0000 (11:08 -0700)]
glibc: Add recipes for 2.24 release

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogcc 4.9: backport gperf fixes
Dan McGregor [Tue, 10 May 2016 16:04:46 +0000 (10:04 -0600)]
gcc 4.9: backport gperf fixes

From: Daniel McGregor <daniel.mcgregor@vecima.com>

gperf was being used in a way that generated files don't conform to
the language standard. Backport the fix from upstream.

This is required to build these GCC versions when the host compiler
is GCC 6.

Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoopenjade-native: work around bug exposed by GCC 6
Dan McGregor [Tue, 10 May 2016 16:04:47 +0000 (10:04 -0600)]
openjade-native: work around bug exposed by GCC 6

From: Daniel McGregor <daniel.mcgregor@vecima.com>

Simply turn off the optimzation that is causing this breakage. I had
originally used -fno-lifetime-dse, but -fno-tree-dse works at least
going back as far as gcc 4.8.

This isn't a real fix, but it allows openjade to work enough to complete
a build.

Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogcc-5.3: backport gperf fixes
Dan McGregor [Tue, 10 May 2016 16:03:41 +0000 (10:03 -0600)]
gcc-5.3: backport gperf fixes

From: Daniel McGregor <daniel.mcgregor@vecima.com>

gperf was being used in a way that generated files don't conform to
the language standard. Backport the fix from upstream.

This is required to build these GCC versions when the host compiler
is GCC 6.

Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoreport-error: Replace the build directory path in the error text
Michael Wood [Thu, 12 May 2016 13:31:58 +0000 (14:31 +0100)]
report-error: Replace the build directory path in the error text

Replace the TOPDIR in the output error file so that the error report once
submitted can then be more easily matched to find duplicate error
reports. This also reduces the need to manually redact any information that
might be in the error log path such as hostnames or home directories.

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agommc-utils: update to latest git version
Maxin B. John [Thu, 12 May 2016 13:16:53 +0000 (16:16 +0300)]
mmc-utils: update to latest git version

LIC_FILES_CHKSUM has changed due to modifications related to
field firmware update support. However, License remains the same.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoconnman: update to version 1.32
Maxin B. John [Thu, 12 May 2016 13:16:52 +0000 (16:16 +0300)]
connman: update to version 1.32

Removed following upstreamed/backported patches:
        a) 0001-Detect-backtrace-API-availability-before-using-it.patch
        b) 0001-iptables-Add-missing-function-item-of-xtables-to-mat.patch

Rearranged musl related patches.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopackage_manager.py: Add extract() method for RPM package manager
Mariano Lopez [Thu, 12 May 2016 11:28:14 +0000 (11:28 +0000)]
package_manager.py: Add extract() method for RPM package manager

This new method extract the content of RPM file to a tmpdir,
without actually installing the package.

[YOCTO #9569]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopackage_manager.py: Add extract() method for opkg and dpkg
Mariano Lopez [Thu, 12 May 2016 11:28:13 +0000 (11:28 +0000)]
package_manager.py: Add extract() method for opkg and dpkg

Sometimes it is needed to have the content of a package outside
the recipe context.  This new method extract the content of an
IPK/DEB file to a tmpdir, without actually installing the package.

A new OpkgDpkgPM class was added to share the code for opkg and dpkg.

There were need some changes to opkg_query() in order to use it
with apt-cache output. Also set default values to avoid UnboundLocalError

[YOCTO #9569]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopackage_manager.py: Move opkg_query() outside of Indexer class
Mariano Lopez [Thu, 12 May 2016 11:28:12 +0000 (11:28 +0000)]
package_manager.py: Move opkg_query() outside of Indexer class

When using the opkg and apt-get package managers the function
opkg_query() can be useful when query for package information.

This change moves the function outside the Indexer class so
the Indexer, OpkgPM, DpkgPM can benefit from it.

[YOCTO #9569]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopong-clock: obey CFLAGS, LDFLAGS
Christopher Larson [Thu, 5 May 2016 19:30:56 +0000 (12:30 -0700)]
pong-clock: obey CFLAGS, LDFLAGS

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoruby: obey LDFLAGS for the link of libruby
Christopher Larson [Thu, 5 May 2016 19:30:54 +0000 (12:30 -0700)]
ruby: obey LDFLAGS for the link of libruby

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopseudo: obey our LDFLAGS
Christopher Larson [Wed, 11 May 2016 16:25:27 +0000 (09:25 -0700)]
pseudo: obey our LDFLAGS

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoimage_types: adjust default level of XZ compression
Alexander D. Kanevskiy [Fri, 13 May 2016 11:11:45 +0000 (14:11 +0300)]
image_types: adjust default level of XZ compression

XZ extreme compression method usually uses a lot more CPU time with not
that often big saving on space. Same goes with -6 level of compression.
Compression level -3 usually the best balance for time/size, especially
on big images.

Signed-off-by: Alexander D. Kanevskiy <kad@kad.name>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocmake: enable verbose builds
Ross Burton [Thu, 12 May 2016 19:21:05 +0000 (20:21 +0100)]
cmake: enable verbose builds

To help debugging build problems pass VERBOSE=1 to make so that the makefiles
print their commands, just like we do with autotools.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogcc-runtime, libgcc: Symlink c++ header and startup files in target_triplet for SDK use
Khem Raj [Wed, 11 May 2016 17:35:45 +0000 (10:35 -0700)]
gcc-runtime, libgcc: Symlink c++ header and startup files in target_triplet for SDK use

We build SDKs such that gcc-cross-candian is built for only one
target *-*-linux and then use -muclibc or -mmusl to let it compile
code for other libc variants. This works fine when libc = glibc
however it does not work for c++ programs when libc != glibc since
there are c++ headers installed under ${includedir}/c++/${BINV}/${TARGET_SYS}
which is fine when gcc-runtime and gcc-cross-candian uses same --target options
gxx includedir searches in right triplet, but it fails with musl/uclibc
since gcc will look for glibc based triplet but gcc-runtime will install
them under musl/uclibc triplet.

This patch symlinks the musl/uclibc triplet to glibc triplet when libc != glibc

This fixes SDKs for musl/uclibc

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agompfr: Upgrade to 3.1.4
Khem Raj [Wed, 11 May 2016 17:35:44 +0000 (10:35 -0700)]
mpfr: Upgrade to 3.1.4

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoruby: Upgrade to 2.2.5
Khem Raj [Wed, 11 May 2016 17:35:43 +0000 (10:35 -0700)]
ruby: Upgrade to 2.2.5

This is latest in 2.2 series, helps with compile
using clang

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodistcc: Upgrade to 3.2
Khem Raj [Wed, 11 May 2016 17:35:42 +0000 (10:35 -0700)]
distcc: Upgrade to 3.2

Helps compiling with clang as a side effect

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomdadm: Fix build with clang
Khem Raj [Wed, 11 May 2016 17:35:41 +0000 (10:35 -0700)]
mdadm: Fix build with clang

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomusl: Create symlinks for stub libraries
Khem Raj [Wed, 11 May 2016 17:35:40 +0000 (10:35 -0700)]
musl: Create symlinks for stub libraries

Some libraries e.g. libm.so are needed to be
created so that SDKs built with distros which
disable static librararies can have the stubs
and since default linker script requires -lm
this helps in compiling applications with SDK

there are .a equivalents for these libraries
but they do not land in SDKs when static libs
are disabled distrowide

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake: Oldest kernel for nios2 is 3.19
Marek Vasut [Wed, 11 May 2016 17:35:39 +0000 (10:35 -0700)]
bitbake: Oldest kernel for nios2 is 3.19

The oldest kernel version for nios2 is 3.19.0, set it so, otherwise
qemu-nios2 -r ${OLDEST_KERNEL} fails with "FATAL: kernel too old"
message from glibc.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogdb: Disable binutils components
Khem Raj [Wed, 11 May 2016 17:35:37 +0000 (10:35 -0700)]
gdb: Disable binutils components

when building from git we also get the binutils
components since the tree for gdb and binutils is
same, this can then casue building binutils with
gdb as well and cause packaging conflicts, hence
disable the binutils pieces in configure itself

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibunwind: Add a confgure option for tests
Khem Raj [Wed, 11 May 2016 17:35:35 +0000 (10:35 -0700)]
libunwind: Add a confgure option for tests

Tests dont compile on musl due to its use
of {get|set}context APIs, adding this option
to disable tests helps it to compile

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogdb,strace: Fix builds on ppc/musl
Khem Raj [Wed, 11 May 2016 17:35:34 +0000 (10:35 -0700)]
gdb,strace: Fix builds on ppc/musl

ptrace namespace is polluted in glibc for ppc
which is highlighted with musl, these fixes
tries to undo it

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibgcc: Ensure that gcc configure options are passed to libgcc too
Khem Raj [Wed, 11 May 2016 17:35:33 +0000 (10:35 -0700)]
libgcc: Ensure that gcc configure options are passed to libgcc too

libgcc uses certain options from EXTRA_OECONF as well, curently we are
ignoring them, as a result we do not configure libgcc to match cross gcc
in some cases e.g. ppc/musl should have used 64bit long doubles but
it went for 128-ldbls which is default, works on glibc but not on musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibunwind: Upgrade to 1.2rc1+
Khem Raj [Wed, 11 May 2016 17:35:32 +0000 (10:35 -0700)]
libunwind: Upgrade to 1.2rc1+

This helps in compiling with gcc6
drop patches backported to 1.1
remove musl conditional patches, they should work
on glibc too now

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibgcc: Ensure that gcc configure options are passed to libgcc too
Khem Raj [Wed, 11 May 2016 17:35:31 +0000 (10:35 -0700)]
libgcc: Ensure that gcc configure options are passed to libgcc too

libgcc uses certain options from EXTRA_OECONF as well, curently we are
ignoring them, as a result we do not configure libgcc to match cross gcc
in some cases e.g. ppc/musl should have used 64bit long doubles but
it went for 128-ldbls which is default, works on glibc but not on musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomusl: Upgrade to tip of tree
Khem Raj [Wed, 11 May 2016 17:35:30 +0000 (10:35 -0700)]
musl: Upgrade to tip of tree

COPYRIGHT file was changed to clarfiy the MIT Licence
which resulted in checksum change, see

http://git.musl-libc.org/cgit/musl/commit/?id=f0a61399330bae42beeb27d6ecd05570b3382a60

below are changes in upgrade

Andrew Kelley (1):
      fix incorrect protocol name and number for egp

Bobby Bingham (1):
      add powerpc64 port

LeMay, Michael (1):
      fix redundant processing of --build flag in configure script

Petr Vaněk (1):
      remove dead store in res_msend

Rich Felker (10):
      fix undefined pointer comparison in stdio-internal __toread
      fix regression disabling use of pause instruction for x86 a_spin
      fix read past end of haystack buffer for short needles in memmem
      add support for mips and mips64 r6 isa
      add mips n32 port (ILP32 ABI for mips64)
      fix thread structure/dtv-pointer corruption on powerpc
      fix FILE buffer underflow in ungetwc
      update COPYRIGHT file to clarify that permissions apply for all files
      follow standard configure behavior for cross compile prefix
      fix spurious trailing whitespace in powerpc & powerpc64 bits/errno.h

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake.conf: Empty out BUILDSDK_CPPFLAGS
Khem Raj [Wed, 11 May 2016 17:35:28 +0000 (10:35 -0700)]
bitbake.conf: Empty out BUILDSDK_CPPFLAGS

The nativesdk sysroot is already being passed in
via --sysroot option, adding -isystem is redundant
and more so it causes build failures with gcc-6
since it messed with internal search order for system
includedirs

see
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/Q5SWCUUMWQ4EMS7CU2CBOZHV3WZYOOTT/

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibunwind: Upgrade to 1.2rc1+
Khem Raj [Wed, 11 May 2016 17:35:24 +0000 (10:35 -0700)]
libunwind: Upgrade to 1.2rc1+

This helps in compiling with gcc6
drop patches backported to 1.1
remove musl conditional patches, they should work
on glibc too now

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogrub_git: Upgrade to latest tip
Khem Raj [Wed, 11 May 2016 17:35:23 +0000 (10:35 -0700)]
grub_git: Upgrade to latest tip

Gets past the gcc6 issues seen on aarch64
| make[3]: *** [cmp.mod] Error 1
| build-grub-module-verifier: error: unsupported relocation 0x113.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoconf: bump minimum kernel to 3.2.0
Khem Raj [Wed, 11 May 2016 17:35:21 +0000 (10:35 -0700)]
conf: bump minimum kernel to 3.2.0

glibc 2.24 have raised the bar for minimum supported kernel
for more details see

http://repo.or.cz/glibc.git/commit/5b4ecd3f95695ef593e4474b4ab5a117291ba5fc

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibc-common.bbclass: Use sed instead of grep
Khem Raj [Wed, 11 May 2016 17:35:20 +0000 (10:35 -0700)]
libc-common.bbclass: Use sed instead of grep

Squash two install cmds into one
Replace grep with sed substitution logic, optimizes
away mv cmd

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobusybox/mdev: Ensure /sys is mounted before using it
Khem Raj [Wed, 11 May 2016 17:35:19 +0000 (10:35 -0700)]
busybox/mdev: Ensure /sys is mounted before using it

echo would fail if /sys is not mounted and boot would abort

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agovalgrind: Fix build with gcc6
Khem Raj [Wed, 11 May 2016 17:35:18 +0000 (10:35 -0700)]
valgrind: Fix build with gcc6

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogrub: Fix build with gcc-6
Khem Raj [Wed, 11 May 2016 17:35:17 +0000 (10:35 -0700)]
grub: Fix build with gcc-6

Backport patch which silences following

'../../grub-2.00/grub-core/'`gfxmenu/model.c
../../grub-2.00/grub-core/gettext/gettext.c:37:36: error: storage size of 'main_context' isn't known
 static struct grub_gettext_context main_context, secondary_context;
                                    ^~~~~~~~~~~~
make[3]: *** [gettext/gettext_module-gettext.o] Error 1

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobinutils: disable werror on native build
Dan McGregor [Wed, 11 May 2016 17:35:16 +0000 (10:35 -0700)]
binutils: disable werror on native build

It's disabled on cross builds, and it's needed for gcc 6

Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopkgconfig: Fix build with gcc-6 and upgrade to 0.29.1
Dan McGregor [Wed, 11 May 2016 17:35:15 +0000 (10:35 -0700)]
pkgconfig: Fix build with gcc-6 and upgrade to 0.29.1

glib patch is backported from glib-2.0 upstream
eventually we will throw it away once pkgconfig
moves to newer glib

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agonss: Upgrade to 3.23
Khem Raj [Wed, 11 May 2016 17:35:14 +0000 (10:35 -0700)]
nss: Upgrade to 3.23

Disable Werror on native builds. This helps
in building nss-native on build hosts which have
gcc < 4.9 eg. ubuntu 14.04

The real issue is that we use headers from native
staging sysroot and it has the updated glibc headers
which then ends up with errors e.g.

| In function 'memset',
|     inlined from 'sec_PKCS7Encrypt' at p7local.c:715:14:
| /usr/include/x86_64-linux-gnu/bits/string3.h:81:30: error: call to '__warn_memset_zero_len' declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters [-Werror]
|        __warn_memset_zero_len ();
|                               ^
| cc1: all warnings being treated as errors
| make[2]: *** [Linux3.4_x86_64_glibc_PTH_64_OPT.OBJ/p7local.o] Error 1

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomdadm: Fix gcc 6 warnings
Khem Raj [Wed, 11 May 2016 17:35:13 +0000 (10:35 -0700)]
mdadm: Fix gcc 6 warnings

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooprofile: Fix with gcc6
Khem Raj [Wed, 11 May 2016 17:35:12 +0000 (10:35 -0700)]
oprofile: Fix with gcc6

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowebkitgtk: Upgrade to 2.12.1
Khem Raj [Wed, 11 May 2016 17:35:11 +0000 (10:35 -0700)]
webkitgtk: Upgrade to 2.12.1

Fix build with gcc-6

Do not tinker with -isystem, this causes issues
where gcc does not find standard C++ headers since
the default search ordered for system headers is
changed and is not correct anymore. Errorr like

WebCore/editing/gtk/EditorGtk.cpp:27:
/mnt/oe/poky/build/tmp/sysroots/qemuarm/usr/include/c++/6.0.1/cstdlib:75:25: fatal error: stdlib.h: No such file or directory
 #include_next <stdlib.h>

It brings a patch to fix typename mismatch
for pow()

see
 https://bugs.webkit.org/show_bug.cgi?id=153071

Drop upstreamed patches
User -fPIC on aarch64 to fix
relocation truncated to fit: R_AARCH64_LD64_GOTPAGE_LO15 against symbol `__stack_chk_guard@@GLIBC_2.17' defined in .data.rel.ro section

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolzop: Fix build with gcc-6
Khem Raj [Wed, 11 May 2016 17:35:10 +0000 (10:35 -0700)]
lzop: Fix build with gcc-6

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoalsa-tools: Fix build with gcc6
Khem Raj [Wed, 11 May 2016 17:35:09 +0000 (10:35 -0700)]
alsa-tools: Fix build with gcc6

bb.utils.contains was spread over multiple lines
collapse it into single line, make it more readable

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorpm: Fix build with gcc6
Khem Raj [Wed, 11 May 2016 17:35:08 +0000 (10:35 -0700)]
rpm: Fix build with gcc6

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoelfutils: Upgrade to 0.166
Khem Raj [Wed, 11 May 2016 17:35:07 +0000 (10:35 -0700)]
elfutils: Upgrade to 0.166

Has many fixes for compiling it with gcc-6

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoglib-2.0: Ignore useless warning found with gcc-6
Khem Raj [Wed, 11 May 2016 17:35:06 +0000 (10:35 -0700)]
glib-2.0: Ignore useless warning found with gcc-6

../../glib-2.46.2/glib/gdate.c:2497:7: error: format not a string literal, format string not checked [-Werror=format-nonliteral]
       tmplen = strftime (tmpbuf, tmpbufsize, locale_format, &tm);
       ^~~~~~

| ../../../../../../../../workspace/sources/glib-2.0/glib/tests/gdatetime.c: In function 'test_strftime':
| ../../../../../../../../workspace/sources/glib-2.0/glib/tests/gdatetime.c:1338:3: error: '%c' yields only last 2 digits of year in some locales [-Werror=format-y2k]
|    "a%a A%A b%b B%B c%c C%C d%d e%e F%F g%g G%G h%h H%H I%I j%j m%m M%M " \

Additionally fix the problem seen where write() return code is ignored

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>