]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
9 years agopTest-strace fails fixed dengke/pTest-strace-fail-fixed
Dengke Du [Tue, 23 Feb 2016 06:03:38 +0000 (01:03 -0500)] 
pTest-strace fails fixed

When run the strace ptest on the target, the test files located in the "/usr/lib/strace/ptest/tests",
but the run-test script use the path "srcdir = ../../strace-*/tests"to find the necessary files, so it
can't find the necessary files, it fails. So change the variable srcdir, replace the strace-* to ptest
when do the do_install_ptest() function using the following:
sed -i -e '/^src/s/strace.*[1-9]/ptest/' ${D}/${PTEST_PATH}/${TESTDIR}/Makefile

Signed-off-by: Dengke Du <dengke.du@windriver.com>
9 years agobitbake: data_smart: Drop default expand=False to getVarFlag [API change]
Richard Purdie [Tue, 2 Feb 2016 23:55:37 +0000 (23:55 +0000)] 
bitbake: data_smart: Drop default expand=False to getVarFlag [API change]

At some point in the future, getVarFlag should expand by default. To
get there from the current position, we need a period of time where the
expand parameter is mandatory.

This patch starts that process. Clear errors will result from any code
which doesn't provide this. Layers can be fixed with an expression
like:

sed -e 's:\(\.getVarFlag([^,()]*, [^,()]*\)):\1, False):g' -i `grep -ril getVar *`

(Bitbake rev: aa3faebdf6af66ab34f74d328b2113de0b08c7ee)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: data_smart: Drop default expand=False to getVar [API change]
Richard Purdie [Tue, 2 Feb 2016 23:55:40 +0000 (23:55 +0000)] 
bitbake: data_smart: Drop default expand=False to getVar [API change]

At some point in the future, getVar should expand by default. To get
there from the current position, we need a period of time where the
expand parameter is mandatory.

This patch starts that process. Clear errors will result from any code
which doesn't provide this. Layers can be fixed with an expression
like:

sed -e 's:\(\.getVar([^,()]*\)):\1, False):g' -i `grep -ril getVar *`

(Bitbake rev: fab717d303df0bcef737661f6917f275f35215a4)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: SignatureGeneratorBasic: make checksum cache file configurable
Markus Lehtonen [Tue, 26 Jan 2016 13:34:32 +0000 (15:34 +0200)] 
bitbake: SignatureGeneratorBasic: make checksum cache file configurable

Define a new bitbake configuration variable BB_HASH_CHECKSUM_CACHE_FILE
that can be used to define the cache file to use for file checksum
cache.

(Bitbake rev: a965b390d6240e279c190b92b17c0573e9bd604c)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: MultiProcessCache: make cache filename configurable
Markus Lehtonen [Tue, 26 Jan 2016 13:34:31 +0000 (15:34 +0200)] 
bitbake: MultiProcessCache: make cache filename configurable

If no cache file name is given a default from class variable is used,
like before.

(Bitbake rev: 2602a312818f564961de7dfa63c429d45ff9e5ac)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: FileChecksumCache: add get_checksums() method
Markus Lehtonen [Tue, 26 Jan 2016 13:34:30 +0000 (15:34 +0200)] 
bitbake: FileChecksumCache: add get_checksums() method

Move the local file checksum functionality from bb.fetch2 into
bb.checksum module.

(Bitbake rev: 4f60933283f377d68f191db849dac6c1dc7a0aed)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: bb/runqueue: save task file dependency cache onto disk
Markus Lehtonen [Tue, 26 Jan 2016 13:34:29 +0000 (15:34 +0200)] 
bitbake: bb/runqueue: save task file dependency cache onto disk

Before this patch the usage of cache was quite useless as the file
checksums were not actually cached on disk but re-calculated every time.
This patch utilises the new writeout_file_checksum_cache() method of the
SignatureGenerator class to do the job.

(Bitbake rev: 5ac9cbf405841ed3f65e6f99a3cee032567fb182)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: SignatureGenerator: add method for saving the file checksum cache
Markus Lehtonen [Tue, 26 Jan 2016 13:34:28 +0000 (15:34 +0200)] 
bitbake: SignatureGenerator: add method for saving the file checksum cache

Extend the API in order to be able to write out the file checksum cache
onto disk. SignatureGeneratorBasic class now implements a method that
update the fetcher local files checksum cache with the task file
dependency checksums.

(Bitbake rev: ecdabd321d48fa367b89ebffc00aa525b6eaa95c)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: bb/cache: drop some unused arguments
Markus Lehtonen [Tue, 26 Jan 2016 13:34:27 +0000 (15:34 +0200)] 
bitbake: bb/cache: drop some unused arguments

Drop unused 'd' argument from the cache save methods, simplifying the
API.

(Bitbake rev: 81bc1f20662c39ee8db1da45b1e8c7eb64abacf3)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: Allow Hob to run images on a custom simulator, other than qemu
Mirela Rabulea [Tue, 19 Jan 2016 14:31:38 +0000 (16:31 +0200)] 
bitbake: Allow Hob to run images on a custom simulator, other than qemu

The current behavior of Hob is that there is a "Run Image" button which becomes visible only for qemu images.

My suggested change is:
- if an image is selected and it is qemu-compatible, let the "Run image" button be named "Run qemu image"
- if an image is selected and it is not qemu-compatible, let the same button show up with the name "Run custom image", and besides that, an option shows-up to allow the selection of the custom script (by default it points out to runqemu script) to be used for launching this custom image

Note: in case there is more than one toggled image (qemu runnable or deployable), when the user clicks the "Run custom image" button, a dialog will be presented, allowing to choose between any of the existing images.

[YOCTO #8940]

(Bitbake rev: cc4cfc2370297b8feb2dc39d4262e73adf06c09a)

Signed-off-by: Mirela Rabulea <mirela.rabulea@nxp.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogma500-gfx-check: Fixes infinite calling to modprobe gma500_gfx
Alejandro Hernandez [Tue, 16 Feb 2016 03:07:29 +0000 (03:07 +0000)] 
gma500-gfx-check: Fixes infinite calling to modprobe gma500_gfx

The previous script caused an infinite call to modprobe gma500_gfx on certain
situations, this fixes a typo and uses a new flag to avoid the infinite loop

(From meta-yocto rev: 9a341596fd0cdf892e125b2eead7b5e334a590b4)

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopulseaudio: 6.0 -> 8.0
Tanu Kaskinen [Wed, 17 Feb 2016 16:56:16 +0000 (18:56 +0200)] 
pulseaudio: 6.0 -> 8.0

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

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

7.0 added support for soxr resamplers, but neither oe-core nor meta-oe
have libsoxr packaged. The default resampler is still speexdsp based,
so most people wouldn't be using the soxr resamplers anyway. If
someone cares enough to package soxr, then we can enable the feature.

Bash completions moved in 7.0 from /etc to the standard location under
/usr/share/bash-completion. We now use the bash-completion class to
package the completion files.

The private library libpulsecore moved from /usr/lib to
/usr/lib/pulseaudio.

The new routing features advertised in the 8.0 release notes are
reverted for now, because they caused regressions. I'll remove the
revert once a proper fix is available.

Removed two patches, because they are included in the new release.

Rebased three patches.

Updated Upstream-Status tags to reflect the current situation.

(From OE-Core rev: 10351d2e7ab27d0f0311c491b70d0f0056a8f76b)

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoalsa-plugins: 1.0.29 -> 1.1.0
Tanu Kaskinen [Wed, 17 Feb 2016 16:56:15 +0000 (18:56 +0200)] 
alsa-plugins: 1.0.29 -> 1.1.0

Changelog: http://alsa-project.org/main/index.php/Changes_v1.0.29_v1.1.0

The licensing of the libsamplerate plugin was relaxed a bit: if the
licensee has a commercial license for libsamplerate, the plugin can be
used under the terms of LGPL instead of GPL.

Both old patches are included in the new release, so dropped them.

Added a new patch to fix building against libspeexdsp 1.2rc3.

(From OE-Core rev: 2106108f83001cadc0188612b3e51de0c678d3c0)

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoalsa-utils: 1.0.29 -> 1.1.0
Tanu Kaskinen [Wed, 17 Feb 2016 16:56:14 +0000 (18:56 +0200)] 
alsa-utils: 1.0.29 -> 1.1.0

Changelog: http://alsa-project.org/main/index.php/Changes_v1.0.29_v1.1.0

This release introduces two new tools:
 - alsatplg for converting topology data from text representation to a
   binary format consumed by the kernel
 - alsabat; "bat" stands for "basic audio tester"

Backported a patch from upstream that renames bat to alsabat.

Rebased patch "0001-alsactl-don-t-let-systemd-unit-restore-the-volume-wh.patch".

Dropped patches "alsa-utils-aplay-interrupt-signal-handling.patch" and
"assume-storing-is-success-if-not-sound-card-device.patch", because
the issues have been fixed upstream.

(From OE-Core rev: 0b10c468cee39520bb8f7330222fb177ceff249d)

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoalsa-tools: 1.0.29 -> 1.1.0
Tanu Kaskinen [Wed, 17 Feb 2016 16:56:13 +0000 (18:56 +0200)] 
alsa-tools: 1.0.29 -> 1.1.0

Changelog: http://alsa-project.org/main/index.php/Changes_v1.0.29_v1.1.0

There are almost no changes in the new version: just one invalid macro
was removed from the cspctl man page.

Rebased patches "autotools.patch" and "makefile_no_gtk.patch".

(From OE-Core rev: b072baa03ec7e41bc4f9a05702c1b65150ebff49)

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoavahi: update to version 0.6.32
Maxin B. John [Wed, 17 Feb 2016 14:00:19 +0000 (16:00 +0200)] 
avahi: update to version 0.6.32

0.6.31 -> 0.6.32

a. Switched to the new repository hosted in github.
b. Removed the following Upstreamed/Backported patches
   1. 0001-Don-t-log-warnings-about-invalid-packets-Fixes-lathi.patch
   2. 0001-avahi-fix-avahi-status-command-error-prompt.patch
   3. avahi_fix_install_issue.patch
   4. fix_for_automake_1.12.x.patch
   5. out-of-tree.patch
   6. reuseport-check.patch
c. Added UPSTREAM_CHECK_URI

[YOCTO #7553]

(From OE-Core rev: 5ba7df63c4f0ac56f8513f9aecdbf3b12a121cd1)

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agono-static-libs.inc: Add libcap-native
Richard Purdie [Wed, 17 Feb 2016 13:34:17 +0000 (13:34 +0000)] 
no-static-libs.inc: Add libcap-native

We need to disable static flags for libcap-native as well.

(From OE-Core rev: b1fa25a238d118f433759102b13896094394ceeb)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibsdl2: Fix build with static libraries disabled
Richard Purdie [Wed, 17 Feb 2016 13:33:40 +0000 (13:33 +0000)] 
libsdl2: Fix build with static libraries disabled

libsdl2 was using foo.o in Makefile dependencies but if libtool is
being used then those are the statically linked intermediate files.
 When static libraries are globally disabled they won't be generated by
libtool so the build fails.

Instead, use the libtool intermediate wrapper .lo files so the build
succeeds.

(From OE-Core rev: 3f935a6e9155e81165e26e94fd6c8504b272441e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agouboot-inc: Backport patch to fix Beaglebone Black bootloader
Erkka Kääriä [Wed, 17 Feb 2016 11:54:34 +0000 (13:54 +0200)] 
uboot-inc: Backport patch to fix Beaglebone Black bootloader

Beaglebone Black boot started failing after upstream patch 755324c432f, and was
fixed in 7205442e6. Unfortunately, the u-boot upgrade from 2015.10 to 2016.01
only includes the former patch. The latter patch is backported to fix this.

(From OE-Core rev: 68d02c54342c8146ec89dfeadedd733cb59fc7d8)

Signed-off-by: Erkka Kääriä <erkka.kaaria@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobusybox: drop patches that are not valid anymore
Maxin B. John [Wed, 17 Feb 2016 11:01:11 +0000 (13:01 +0200)] 
busybox: drop patches that are not valid anymore

1. Removed following patches
        a) busybox-appletlib-dependency.patch
         - Kbuild rules handles that dependency
        b) get_header_tar.patch
         - tar applet uses a different code path to handle that scenario now.

2. Updated the upstream-status of fail_on_no_media.patch as Denied.

(From OE-Core rev: 48f5c2962a4121ba6172b535c90eaa16e8afa538)

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopcmciautils: Update SRC_URI
Richard Purdie [Wed, 17 Feb 2016 10:22:21 +0000 (10:22 +0000)] 
pcmciautils: Update SRC_URI

Switch to use KERNELORG_MIRROR.
Use .xz tarball instead of bz2 as not all kernel mirrors carry .bz2 now.

This resolves various checkuri issues on the autobuilder infrastructure.

(From OE-Core rev: b2725bf1b2dbe69617801850659fcae7be0587b5)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodebianutils: Upgrade 4.5.1 -> 4.7
Richard Purdie [Wed, 17 Feb 2016 10:12:51 +0000 (10:12 +0000)] 
debianutils: Upgrade 4.5.1 -> 4.7

Tarball now uses the standard ${BPN}-${PV} so drop custom S setting.

(From OE-Core rev: 4c05c5e2d9fce43b815a8fd6a8bb256d94e54732)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobusybox: Add musl config for _git recipe
Maxin B. John [Wed, 17 Feb 2016 10:11:07 +0000 (12:11 +0200)] 
busybox: Add musl config for _git recipe

busybox_git recipe also requires musl specific configuration

(From OE-Core rev: 2f551835cb9414597eed1f1ae94632aa516488f9)

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodebianutils: Fix SRC_URI to use debian snapshot
Richard Purdie [Wed, 17 Feb 2016 10:09:30 +0000 (10:09 +0000)] 
debianutils: Fix SRC_URI to use debian snapshot

This allows checkuri to pass since the old version is no longer in the
debian pool.

(From OE-Core rev: 96bc993b15cf2329c440b0af10a0c92609b448d5)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agonfs-utils: bugfix: adjust name of statd service unit
Ulrich Ölmann [Wed, 17 Feb 2016 09:30:36 +0000 (10:30 +0100)] 
nfs-utils: bugfix: adjust name of statd service unit

Upstream nfs-utils use 'rpc-statd.service' and Yocto introduced
'nfs-statd.service' instead but forgot to update the mount.nfs helper
'start-statd' accordingly.

(From OE-Core rev: cda5b219d62fece0e67ee766290e73a6636bd652)

Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agomusl: Upgrade to 1.1.13+
Khem Raj [Wed, 17 Feb 2016 08:45:15 +0000 (08:45 +0000)] 
musl: Upgrade to 1.1.13+

Rich Felker (3):
      fix assumption in fputs that fwrite returning 0 implies an error
      fix unlikely corner cases in getopt's message printing
      in crypt-sha*, reject excessive rounds as error rather than clamping

(From OE-Core rev: d22e9cd34c714a6946ef194e36b61d352b26e326)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodpkg: Update to 1.18.4
Marek Vasut [Wed, 17 Feb 2016 00:29:02 +0000 (01:29 +0100)] 
dpkg: Update to 1.18.4

Update dpkg version to 1.18.4 . This adds nios2 architecture support
among other fixes. One patch was updated so it would apply to 1.18.4.

(From OE-Core rev: 27b265641d5c13040268ac70b70bfe84fb092763)

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoglew: upgrade to 1.13.0.
Ross Burton [Tue, 16 Feb 2016 20:56:09 +0000 (20:56 +0000)] 
glew: upgrade to 1.13.0.

(From OE-Core rev: b15496ac48748f50a258720c2f35e985faee39e9)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoglew: rewrite to use upstream build system
Ross Burton [Tue, 16 Feb 2016 20:56:08 +0000 (20:56 +0000)] 
glew: rewrite to use upstream build system

Instead of patching in a whole new build system using autotools, use the
makefile-based system in upstream with careful variable assignments so that it
cross-compiles correctly.  One small patch was required to stop an unavoidable
strip.

Upstream does have a cmake-based build but it's not used or supported by the
maintainer, and is quite buggy (for example: doesn't version the libraries,
fails to link to required libraries).

(From OE-Core rev: c77d0dfa18b2467f8856571837e7007f8fcd9b20)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosocat: Fix build with musl
Khem Raj [Tue, 16 Feb 2016 21:14:10 +0000 (21:14 +0000)] 
socat: Fix build with musl

NETDB_INTERNAL is a glibc define

(From OE-Core rev: eb513884519804b3b8d600eeb7aadf3ec54e0345)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobinutils: Fix useless rpaths QA warning
Khem Raj [Tue, 16 Feb 2016 21:14:09 +0000 (21:14 +0000)] 
binutils: Fix useless rpaths QA warning

elfedit and readelf contains /usr/lib in elf header
this patch deletes them from binaries, ideally it
should be fixed in libtool and Makery of binutils

mips target binutils dont build gold so remove
them from ALTERNATIVES list

depend on own version of chrpath native, so builds on
build OS like Centos can work, the verison of chrpath
on centos is old enough to not support dealing with
multi-arch ELF files.

(From OE-Core rev: 9043202f4e705932a3847f2f7635fca06fe5a916)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage/populate_sdk: seprate variables to fix dependency
Chen Qi [Wed, 17 Feb 2016 05:21:22 +0000 (13:21 +0800)] 
image/populate_sdk: seprate variables to fix dependency

Previously, do_rootfs depends on variables like SDK_OS, SDK_OUTPUT, etc.
And changing variables like POPULATE_SDK_POST_HOST_COMMAND doesn't cause
do_populate_sdk to rerun.

This patch separates variables so that do_rootfs and do_populate_sdk could
correctly depend on their related variables.

[YOCTO #8670]

(From OE-Core rev: 590cf4be70f1355622d3a94d76b4cc6d525d4a34)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc: Backport nios2 r31 fix
Marek Vasut [Wed, 17 Feb 2016 00:29:36 +0000 (01:29 +0100)] 
gcc: Backport nios2 r31 fix

Backport a fix from GCC mainline, which fixes libpcre 8.38 and expat 2.1.0
build on nios2. The example of the fixed error follows:

| ./nios2-poky-linux-libtool --silent --mode=compile nios2-poky-linux-gcc  -mel -mhw-div  -mhw-mul  --sysroot=/mnt/work/Yocto/build-nios2/tmp/sysroots/10m50 -I../expat-2.1.0/lib -I. -O2 -pipe -g -feliminate-unused-debug-types -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions  -DHAVE_EXPAT_CONFIG_H -o lib/xmltok.lo -c ../expat-2.1.0/lib/xmltok.c
| {standard input}: Assembler messages:
| {standard input}:4988: Error: r31 cannot be used with jmp; use ret instead
| {standard input}:9703: Error: r31 cannot be used with jmp; use ret instead
| {standard input}:20068: Error: r31 cannot be used with jmp; use ret instead
| {standard input}:24020: Error: r31 cannot be used with jmp; use ret instead
| Makefile:196: recipe for target 'lib/xmltok.lo' failed
| make: *** [lib/xmltok.lo] Error 1
| WARNING: exit code 1 from a shell command.

(From OE-Core rev: 24b0f08ae4fbaf285d494ab53a3b168a6dd17b20)

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosqlite3: update 3.10.2 -> 3.11.0
Andre McCurdy [Wed, 17 Feb 2016 02:49:44 +0000 (18:49 -0800)] 
sqlite3: update 3.10.2 -> 3.11.0

  http://www.sqlite.org/releaselog/3_11_0.html

(From OE-Core rev: f92465c02ea6aef59f5e65a9eb70ebc6a5c92617)

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoinsane: wrap autotools checks in inherits_class(autotools) checks
Ross Burton [Tue, 16 Feb 2016 16:27:20 +0000 (16:27 +0000)] 
insane: wrap autotools checks in inherits_class(autotools) checks

There's no point doing the autotools sanity checks if a recipe didn't inherit
autotools, so check the inherits before doing the checks.

Also pass -F (fixed strings) and -q (quiet) to grep.

(From OE-Core rev: 75ae572427d9cd3f0b3e9e7d4d0e7a93a4f04690)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocmake: don't inherit autotools
Ross Burton [Tue, 16 Feb 2016 16:27:19 +0000 (16:27 +0000)] 
cmake: don't inherit autotools

autotools was inherited for some functions some time ago, but now all it's using
it for explicitly is autotools_do_install(), which is basically just "make
install".  Invoke that directly and we can remove the inherit autotools.

(From OE-Core rev: 1cbc0400621c23243d96dedf4a226a732f5c87c9)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/selftest/bbtests: Test bitbake --setscene-only option
Daniel Istrate [Tue, 16 Feb 2016 15:40:32 +0000 (17:40 +0200)] 
oeqa/selftest/bbtests: Test bitbake --setscene-only option

Bitbake option to restore from sstate only within a build
(i.e. execute no real tasks, only setscene)

fix for [YOCTO #8876]

(From OE-Core rev: 3821aee0129b87a859b3a540b82745fdae184721)

Signed-off-by: Daniel Istrate <daniel.alexandrux.istrate@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoglew: don't put our CFLAGS into the pkgconfig file
Ross Burton [Tue, 16 Feb 2016 15:19:27 +0000 (15:19 +0000)] 
glew: don't put our CFLAGS into the pkgconfig file

The pkgconfig file doesn't need to know what CFLAGS we're using to build with.

(From OE-Core rev: 50e14c5db88bd523b8b4112476d88b230811393d)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodbus: update large file patch
Ross Burton [Mon, 15 Feb 2016 12:24:20 +0000 (12:24 +0000)] 
dbus: update large file patch

Upstream has accepted this patch, so update the header and revise the patch to
reflect the form that was merged.

(From OE-Core rev: 17cdfcb742f989af9af821d4a4517e7068ae5ad9)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocoreutils: fix problem with acl for 6.9 version
Chen Qi [Tue, 16 Feb 2016 07:06:05 +0000 (15:06 +0800)] 
coreutils: fix problem with acl for 6.9 version

If 'acl' is not in DISTRO_FEATURES, building coreutils 6.9 would sometimes
fail. The problem could be reproduced by executing the following command.

`bitbake acl && bitbake coreutils -c configure && bitbake acl -c cleansstate
&& bitbake coreutils -c compile'

Fix this problem by setting the correct value for the 'acl' PACKAGECONFIG.

[YOCTO #8906]

(From OE-Core rev: a9004ff3f8de83d22d9159a9f103e2773e927a0b)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc-4.9/5.3: Ignore -fdebug-prefix-map in producer string
Hongxu Jia [Tue, 16 Feb 2016 09:14:54 +0000 (04:14 -0500)] 
gcc-4.9/5.3: Ignore -fdebug-prefix-map in producer string

Backport from upstream master. The discussion detail:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69821

Compile without this fix:
objdump -g packages-split/lib32-glibc-dev/usr/lib/gcrt1.o
...
|    <5f>   DW_AT_producer    : (indirect string, offset: 0x1b): GNU C99 5.3.0
-m32-march=core2 -mtune=core2 -msse3 -mfpmath=sse -mpreferred-stack-boundary=4
-g -O2 -std=gnu99 -fgnu89-inline -fdebug-prefix-map=/buildarea/raid0/hjia/buil
d-20160127-yocto-buildpath-2/tmp/sysroots/lib32-qemux86-64=
-feliminate-unused-debug-types -fmerge-all-constants -frounding-math
-ftls-model=initial-exec
...

Compile with this fix:
objdump -g packages-split/lib32-glibc-dev/usr/lib/gcrt1.o
...
|    <5f>   DW_AT_producer    : (indirect string, offset: 0xa1): GNU C99 5.3.0
-m32 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -mpreferred-stack-boundary=4
-g -O2 -std=gnu99 -fgnu89-inline -feliminate-unused-debug-types -fmerge-all-constants
-frounding-math -ftls-model=initial-exec
...

[YOCTO #7058]

(From OE-Core rev: a0d444a2e3e1b6b095f30b7fe1c9cfd8bce5a845)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake.conf: use target path as compile dir in debugging info
Hongxu Jia [Tue, 16 Feb 2016 09:14:55 +0000 (04:14 -0500)] 
bitbake.conf: use target path as compile dir in debugging info

In debugging information, it uses target paths rather than
build ones as compile dir.
...
 -fdebug-prefix-map=old=new
   When compiling files in directory old, record debugging
   information describing them as in new instead.
...

Compile without this fix:
objdump -g git/test.o
...
 The Directory Table (offset 0x1b):
|  1     /buildarea/raid0/hjia/build-20160119-yocto-buildpath/tmp/sysroots/x86_64-linux/usr/lib/
i686-pokymllib32-linux.lib32-gcc-cross-initial-i686/gcc/i686-pokymllib32-linux/5.3.0/include
|  2     /buildarea/raid0/hjia/build-20160119-yocto-buildpath/tmp/sysroots/lib32-qemux86-64/usr/include/bits
|  3     /buildarea/raid0/hjia/build-20160119-yocto-buildpath/tmp/sysroots/lib32-qemux86-64/usr/include
...

Compile with this fix:
objdump -g git/test.o
...
 The Directory Table (offset 0x1b):
|  1     /usr/lib/i686-pokymllib32-linux.lib32-gcc-cross-initial-i686/gcc/i686-pokymllib32-linux/
5.3.0/include
|  2     /usr/include/bits
|  3     /usr/include
...

[YOCTO #7058]

(From OE-Core rev: 0fe42caad8f7c142741a28b09458f4e2fdf289ff)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoglibc: Security fix CVE-2015-7547
Armin Kuster [Wed, 17 Feb 2016 19:02:14 +0000 (11:02 -0800)] 
glibc: Security fix CVE-2015-7547

CVE-2015-7547: getaddrinfo() stack-based buffer overflow

(From OE-Core rev: 3f454361fc323119c2850aeb239171e40d085161)

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoglibc: CVE-2015-8776
Armin Kuster [Sat, 23 Jan 2016 04:25:19 +0000 (20:25 -0800)] 
glibc: CVE-2015-8776

it was found that out-of-range time values passed to the strftime function may
cause it to crash, leading to a denial of service, or potentially disclosure
information.

(From OE-Core rev: cf747f0bbcd53af41a7f3981ac65c2b6b6e668f8)

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoglibc: CVE-2015-9761
Armin Kuster [Sat, 23 Jan 2016 04:23:04 +0000 (20:23 -0800)] 
glibc: CVE-2015-9761

A stack overflow vulnerability was found in nan* functions that could cause
applications which process long strings with the nan function to crash or,
potentially, execute arbitrary code.

(From OE-Core rev: 2859c809ac59789d0e631b5386bdf78a5d5c4f4c)

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoglibc: CVE-2015-8779
Armin Kuster [Sat, 23 Jan 2016 04:19:24 +0000 (20:19 -0800)] 
glibc: CVE-2015-8779

A stack overflow vulnerability in the catopen function was found, causing
applications which pass long strings to the catopen function to crash or,
potentially execute arbitrary code.

(From OE-Core rev: e0f71f123147bf4f48cc90c7f26a50164ed4115e)

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoglibc: CVE-2015-8777.patch
Armin Kuster [Sat, 23 Jan 2016 04:13:00 +0000 (20:13 -0800)] 
glibc: CVE-2015-8777.patch

The process_envvars function in elf/rtld.c in the GNU C Library (aka glibc or
libc6) before 2.23 allows local users to bypass a pointer-guarding protection
mechanism via a zero value of the LD_POINTER_GUARD environment variable.

(From OE-Core rev: bc51411d2edda908cbef733066d78a986dfec0c0)

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/parselogs: Whitelist dmi firmware failure message in 4.4 kernels
Richard Purdie [Tue, 16 Feb 2016 23:53:38 +0000 (23:53 +0000)] 
oeqa/parselogs: Whitelist dmi firmware failure message in 4.4 kernels

(From OE-Core rev: 31af4a37c429bb1db8bfc64242b2963220f9a0e1)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorng-tools: Fix underquoted m4 and libgcrypt floating dependency
Richard Purdie [Tue, 16 Feb 2016 23:49:52 +0000 (23:49 +0000)] 
rng-tools: Fix underquoted m4 and libgcrypt floating dependency

The underquoted m4 caused build failures if libgcrypt wasn't present. The floating
dependency on libgcrypt was just plain incorrect, particularly given the incorrect
libgcrypt RDEPENDS. Change to use PACKAGECONFIG an default to on.

(From OE-Core rev: 17b3044d7508a921916da4979ff8bfbab1e206ce)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolib/qa.py: raise ValueError if file isn't an ELF
Ross Burton [Mon, 15 Feb 2016 17:48:25 +0000 (17:48 +0000)] 
lib/qa.py: raise ValueError if file isn't an ELF

Instead of raising a generic Exception that can't be handled specifically, raise
a ValueError.  Also update the callers so any unexpected exceptions are not
ignored.

Also, rename isBigEngian() to isBigEndian().

(From OE-Core rev: c136652f9c0b35aafa393e63567daf029ae03929)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolib/oe/qa: ELFFile: check that a path is a file before opening it
Ross Burton [Mon, 8 Feb 2016 20:35:40 +0000 (20:35 +0000)] 
lib/oe/qa: ELFFile: check that a path is a file before opening it

When opening an ELF file check that a filename points to a normal file before
attempting to open it, as if the file turns out to be something more exotic like
a FIFO it could hang forever.

(From OE-Core rev: 4b3576bc30d8f8cdcde25189def8b059fc92b27c)

(From OE-Core rev: d3af2058e2753516b9aaf7f6d71162363eea11d4)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorng-tools: fix the build with musl
Christopher Larson [Tue, 16 Feb 2016 03:07:26 +0000 (20:07 -0700)] 
rng-tools: fix the build with musl

musl doesn't provide argp, so we need argp-standalone, as we do for uclibc.
Rather than passing in -largp via the recipe, patch the configure script to
provide an argument for the libargp usage and check for it when needed, and
use PACKAGECONFIG. The initial patch to check for libargp and use it if
available came from Gentoo. The patches are kept separate despite the second
modifying what the first does, in order to keep the history/origin clear.

(From OE-Core rev: 94ecc846f9b33fcec039936643c49728eedfefb7)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: bb.ui.knotty: prefix task messages with recipe/task
Christopher Larson [Fri, 12 Feb 2016 00:13:36 +0000 (17:13 -0700)] 
bitbake: bb.ui.knotty: prefix task messages with recipe/task

An example prefix: `perl-5.22.1-r0 do_compile:`

(Bitbake rev: 792b759e59e31d2e43d525a6e50d866b4f51f072)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: Move bb.{debug,note,..} into their own logging domain
Christopher Larson [Fri, 12 Feb 2016 00:13:23 +0000 (17:13 -0700)] 
bitbake: Move bb.{debug,note,..} into their own logging domain

This lets us filter and use -l to show messages from that source specifically.

(Bitbake rev: 7946927156dec33364418988eb921ddb273660eb)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolayer.conf: Add gstreamer1.0-meta-base to SIGGEN_EXCLUDERECIPES_ABISAFE
Richard Purdie [Mon, 15 Feb 2016 17:50:28 +0000 (17:50 +0000)] 
layer.conf: Add gstreamer1.0-meta-base to SIGGEN_EXCLUDERECIPES_ABISAFE

This recipe and its packages are by design like a packagegroup and
can be safely depended not to change names upon despite it being machine
specific.

(From OE-Core rev: e3d879c5c222bc27b2e78cdb097aab9820f2c68b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosstate: Add ca-certificates-native to postinst recipes list
Ming Liu [Fri, 13 Nov 2015 13:00:17 +0000 (14:00 +0100)] 
sstate: Add ca-certificates-native to postinst recipes list

(From OE-Core rev: a6426479f6348524a904ba28c16c1e3c8793cb08)

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agonss: define RPATH variable for nss-native
Markus Lehtonen [Mon, 15 Feb 2016 15:01:49 +0000 (17:01 +0200)] 
nss: define RPATH variable for nss-native

Otherwise the nss libs do not get any RPATH/RUNPATH. Consequently, the
.so dependencies of nss libs are always searched from the base lib
directories of the host (i.e. /lib/ and /usr/lib). This causes problems
with nss-native where the .so's should be searched from the base lib
directories of the sysroot instead of the host file system.

This particular problem has probably been unnoticed as most users are
likely to have nss libraries installed on their host system. In this
case everything most likely work as expected.

[YOCTO #9041]

(From OE-Core rev: f78664219503cc176ca1c10a4397ca8a2883eb71)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoRevert "lsbinitscripts: fix the path for mountpoint"
Richard Tollerton [Mon, 15 Feb 2016 11:19:43 +0000 (13:19 +0200)] 
Revert "lsbinitscripts: fix the path for mountpoint"

This reverts commit e1a3c6e218779e2237c494e58209c06b871c47c4.

util-linux upstream, busybox, and sysvinit all install mountpoint by
default to /bin. Arch Linux, Debian, and Ubuntu (at least) all appear to
install mountpount to /bin. AFAIK only Fedora and possibly other Red Hat
derived distributions install it to /usr/bin.

(From OE-Core rev: 497f9720a7bdc97ae147f3c6e351fba29029a7dd)

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Reviewed-by: Ken Sharp <ken.sharp@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibunwind: Fix build on ppc
Khem Raj [Mon, 15 Feb 2016 09:47:33 +0000 (09:47 +0000)] 
libunwind: Fix build on ppc

gcc driver is fixed to pass correct options to linker to do secure plt
linking when enabled. however this option --secure-plt is not supported
by gold linker which is now passed by default from gcc driver. Hence
the build fails when using gold. Therefore when we use gold then we do
not use secure plt

(From OE-Core rev: 1fcb1b91fae0646baf243d686fc6a52b97a53005)

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>
9 years agodbus-glib: 0.104 -> 0.106
Maciej Borzecki [Mon, 15 Feb 2016 07:57:31 +0000 (08:57 +0100)] 
dbus-glib: 0.104 -> 0.106

(From OE-Core rev: 355c15fd8cf93ce2db3f2edc6e76c075dd62f7e8)

Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoconf/no-static-libs: add explicit rule for libical
Ross Burton [Mon, 15 Feb 2016 17:09:26 +0000 (17:09 +0000)] 
conf/no-static-libs: add explicit rule for libical

cmake doesn't have a standard for disabling static libraries so libical needs an
explicit statement.

(From OE-Core rev: 1a14bc0cc7f1a56833cca7baf12ed5a979854a7b)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoruntime/systemd: Fix for boot time string parse error
Benjamin Esquivel [Mon, 1 Feb 2016 15:53:15 +0000 (13:53 -0200)] 
runtime/systemd: Fix for boot time string parse error

boot time string can change its format of the output of the amount of time
it took to boot. It is required to handle graceful fail of the parsing
errors that it provokes

[YOCTO #8889]

(From OE-Core rev: d17f5079594cd74014f29054f9ad4f38c7ef03d8)

Signed-off-by: Benjamin Esquivel <benjamin.esquivel@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosecurity_flags: Add SECURITY_CFLAGS to TARGET_CC_ARCH for binutils
Khem Raj [Mon, 15 Feb 2016 16:57:14 +0000 (16:57 +0000)] 
security_flags: Add SECURITY_CFLAGS to TARGET_CC_ARCH for binutils

libtool decides to
filter out -fstack-protector-strong on its own and its documented here

https://www.gnu.org/software/libtool/manual/html_node/Stripped-link-flags.html

this causes linking errors when linking libbfd.so since objects (.o) are
compiled using -fstack-protector-strong so they are expecting to link
with libssp but the option goes missing in linker flags.

With this patch the security flags are hoisted upto CC itself and
libtool thankfully does not touch CC.

Adding to CC also means that we can now remove it from LDFLAGS since
when gcc driver is used to do linking then we have LD = CC and this
option makes to linker cmdline

Since CC is used without CFLAGS in configure tests, some tests fail
complaining that -Olevel is not used while using _FORTIFY_SOURCE
therefore added SELECTED_OPTIMIZATION to TARGET_CC_ARCH as well

(From OE-Core rev: 9349f28531619a4ff15c382dacc460d61e3ec7af)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobinutils: Use tip of 2.26 branch
Khem Raj [Sun, 14 Feb 2016 20:52:51 +0000 (20:52 +0000)] 
binutils: Use tip of 2.26 branch

Until 2.26.1 is released there are few fixes which are needed especially
when using -fpie, here are changes that are part of this version bump

H.J. Lu (7):
      Add a testcase for PR ld/18591
      Store estimated distances in compressed_size
      Remove duplicated marker for 2.26 in gas/NEWS
      Add -mrelax-relocations= to x86 assembler
      Mask off the least significant bit in GOT offset
      Enable -Bsymbolic and -Bsymbolic-functions to PIE
      Fix a typo in objcopy manual

John David Anglin (1):
      Fix /usr/bin/ld: final link failed: File truncated error on hppa

(From OE-Core rev: 3685a1246110d84bffffa6d03a3c2ec0417cb4a3)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuildhistory.bbclass: remove out-dated information on request
Patrick Ohly [Fri, 12 Feb 2016 08:37:15 +0000 (09:37 +0100)] 
buildhistory.bbclass: remove out-dated information on request

buildhistory.bbclass by design is incremental: each build adds or
updates information. Information is never removed.

Sometimes it can be useful to reduce the information only to those
recipes that were build during a specific bitbake invocation, for
example when the invocation does a full world build.

This is now possible by setting BUILDHISTORY_RESET as explained in the
modified class. The comment on the variable also mentions the caveats
associated with using this mode.

In this mode, buildhistory.bbclass first moves all existing
information into a temporary directory called "old" inside the build
history directory. There the information is used for the "version
going backwards" QA check. Then when the build is complete and before
(potentially) committing to git, the temporary directory gets deleted.

Because information that has not changed during the build will be
reconstructed during full world rebuilds, a git log will then only
show real updates, additions and removals.

(From OE-Core rev: 51f4eb5bfcd25f7160e50314f433cad126aa3e9a)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoRemove obsolete references to exmap
Randy MacLeod [Tue, 9 Feb 2016 02:46:50 +0000 (21:46 -0500)] 
Remove obsolete references to exmap

Exmap was a useful tool but it appears to be unsupported.
Remove it from the sample local.conf and remove the
commented lines from the profile tools packagegroup.

(From meta-yocto rev: 4c71076dc70fc9fd2c3c6183fe6e5c1724cf6682)

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: knotty: Set exit failure code on runQueueTaskFailed events
Richard Purdie [Sun, 14 Feb 2016 23:09:49 +0000 (23:09 +0000)] 
bitbake: knotty: Set exit failure code on runQueueTaskFailed events

If the worker segfaults, we may never see a TaskFailed event from it, only
a runQueueTaskFailed event. In this case, return_value isn't getting set
leading to an incorrect exit code from bitbake. Fix by setting return_value
in both places.

(Bitbake rev: e5dd50e0d95d532fe31dde61f8c6b1a7a72321e9)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: taskdata: Fix traceback issue with missing provider
Richard Purdie [Sun, 14 Feb 2016 10:14:22 +0000 (10:14 +0000)] 
bitbake: taskdata: Fix traceback issue with missing provider

If there is a missing provider and we're using "-k" mode alongside "-w",
we could get a traceback since there was no provider. Add tests to avoid this.

(Bitbake rev: 90a4805e4e770a433b4394ea99792731e9a4b546)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake: cooker: Improve cache handling
Richard Purdie [Sun, 14 Feb 2016 09:11:24 +0000 (09:11 +0000)] 
bitbake: cooker: Improve cache handling

We're seeing issues where the self test, which uses tinfoil doesn't
notice the changed contents of include files. The issue is
cached_statements in the parser being reused when the files have changed.

Whilst looking at this, I realised there were some other issues:

* We need to also invalidate the mtime cache when cooker restarts
* We should pass full filenames to the file invalidation code
* We should process cached_statements as part of inotify invalidation

With these fixes, the caching is more reliable for memory resident
bitbake too. It does raise some questions about cache validation and
lifecycles and indicates bitbake does need more work in the area,
preferably with the removal of the globals. This at least highlights
and works around some of the current issues.

(Bitbake rev: 3f507ff8bc467fba936cf3f31bb8ea8e02f168e8)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopoky: Disable static libs by default
Richard Purdie [Sun, 14 Feb 2016 14:32:13 +0000 (14:32 +0000)] 
poky: Disable static libs by default

Static libraries are old technology. We've left them around since in
previous tests, they only added around 5% to the overall build time.

With new and interesting uses of OE, they're becoming more problematic.
For example, sstate becomes much larger with static libs enabled which
increases the size of eSDK and increases the time taken for sstate
operations. Since the static libs contain all the debugging symbols,
they're also pretty huge.

Therefore use the common include which enables this from OE-Core.

(From meta-yocto rev: a67da388fd9afd8c4b6084b972349da05b9a433e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake.conf: Remove unhelpful default value for EXTRA_OEMAKE
Mike Crowe [Tue, 2 Feb 2016 14:49:47 +0000 (14:49 +0000)] 
bitbake.conf: Remove unhelpful default value for EXTRA_OEMAKE

Setting EXTRA_OEMAKE to "-e MAKEFLAGS=" by default is a historical
accident and many classes (e.g. autotools.bbclass, module.bbclass) and
recipes have to override this default in order to work with sensible
build systems.

Now that openssl and pciutils have been fixed to set EXTRA_OEMAKE
explicitly it is possible to set EXTRA_OEMAKE = "".

(From OE-Core rev: aeb653861a0ec39ea7a014c0622980edcbf653fa)

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoapmd: fix build with static libraries disabled
Ross Burton [Mon, 15 Feb 2016 15:56:33 +0000 (15:56 +0000)] 
apmd: fix build with static libraries disabled

apmd was using foo.o in Makefile dependencies but if libtool is being used then
those are the statically linked intermediate files.  When static libraries are
globally disabled they won't be generated by libtool-cross so the build fails.
Instead, use the libtool intermediate wrapper .lo files so the build succeeds.

(From OE-Core rev: a3dbd98970683c410edee5e15e5fe72643953adf)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa: Update to handle domain specific references in build logs
Richard Purdie [Mon, 15 Feb 2016 15:46:46 +0000 (15:46 +0000)] 
oeqa: Update to handle domain specific references in build logs

With the addition of the task name to recipe output, the sanity tests
need updates where they are looking for specific messages.

(From OE-Core rev: 0f2ef4304e6a6f18b4ed13f59000b4a1daa35f6b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibpng12: Handle no static libs
Richard Purdie [Mon, 15 Feb 2016 15:45:47 +0000 (15:45 +0000)] 
libpng12: Handle no static libs

(From OE-Core rev: d8e2dc4c26b6ad19421be9b365c24f71262992a9)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoed_0.5: Handle --disable-static option
Richard Purdie [Mon, 15 Feb 2016 15:45:16 +0000 (15:45 +0000)] 
ed_0.5: Handle --disable-static option

Also clean up use of immediate expansion as there are cleaner mechanisms now.

(From OE-Core rev: 8d85e73b7279591190272536add909827144c623)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoconf/distro/include: Add no-static-libs.inc
Richard Purdie [Sun, 14 Feb 2016 14:28:48 +0000 (14:28 +0000)] 
conf/distro/include: Add no-static-libs.inc

Static libraries are old technology. We've left them around since in
previous tests, they only added around 5% to the overall build time.

With new and interesting uses of OE, they're becoming more problematic.
For example, sstate becomes much larger with static libs enabled which
increases the size of eSDK and increases the time taken for sstate
operations. Since the static libs contain all the debugging symbols,
they're also pretty huge.

This patch adds a common include file which allows the user or distro
to disable the static libraries in the majority of cases.

There are some libs where we do need the static lib, a good example
being pseudo-native which uses sqlite3-native static libs. These are
left enabled by the include file, as are recipes where --disable-static
doesn't work, or isn't supported. This list can likely be reduced over
time as individual corner cases are addressed.

Maintaining this list in a common location is more desireable than
everyone doing it themselves. Poky will switch to using this, OE-Core
will need to discuss that as its default.

(From OE-Core rev: 773c9e18071d71454473dd81aff911104a2e9bc6)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/buildhistory: fix for python function parsing change
Paul Eggleton [Sun, 14 Feb 2016 20:13:03 +0000 (09:13 +1300)] 
classes/buildhistory: fix for python function parsing change

Variable expressions are no longer expanded in python functions as of
BitBake commit 8bf33a8e92c0e188fa392030025756196c96fcbb, so we've now
got to do this explicitly here.

(From OE-Core rev: 60fd4ff61a4ad240a89d48553002901c10e93178)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agovalgrind: Fix build with musl
Khem Raj [Sun, 14 Feb 2016 20:52:50 +0000 (20:52 +0000)] 
valgrind: Fix build with musl

(From OE-Core rev: 0ec5ac9453e037f3999f4fa57750f87270bb78d9)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorpm: Fix build with musl
Khem Raj [Sun, 14 Feb 2016 20:52:49 +0000 (20:52 +0000)] 
rpm: Fix build with musl

(From OE-Core rev: d0fc6e8593b951163d48665f41d6ef1eb74b8926)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogstreamer1.0-meta-base: Mark as machine specific due to COMBINED_FEATURES
Richard Purdie [Sun, 14 Feb 2016 23:03:33 +0000 (23:03 +0000)] 
gstreamer1.0-meta-base: Mark as machine specific due to COMBINED_FEATURES

http://git.openembedded.org/openembedded-core/commit/?id=948165dce7475b815a344fd3c3d58165e6865d48
makes gstreamer1.0-plugins-base-alsa depend on COMBINED_FEATURES.

This is an allarch recipe so this only works if all your machines
have the same MACHINE_FEATURES.

The recipe therefore needs to become machine specific.

(From OE-Core rev: 442095c3b6014f795833c36f08249eacef6fbcf3)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogdb-cross-canadian: Add missing virtual/* DEPENDS
Richard Purdie [Sun, 14 Feb 2016 23:36:05 +0000 (23:36 +0000)] 
gdb-cross-canadian: Add missing virtual/* DEPENDS

cross-canadian does INHIBIT_DEFAULT_DEPS so we need to add the various virtual/*
toolchain pieces we rely on manually.

(From OE-Core rev: 737ce94aeb7e26a41cf286097904c1234c42b477)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoe2fsprogs: Update to upstream version of a patch
Richard Purdie [Sun, 14 Feb 2016 14:34:20 +0000 (14:34 +0000)] 
e2fsprogs: Update to upstream version of a patch

Switch to the upstream version of the xattr patch.

(From OE-Core rev: 631217cc3cb15a7ec4f3cdf6e8d1ff67de2a72b3)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogdb: Rationalise PACKAGECONFIG
Richard Purdie [Sun, 14 Feb 2016 14:33:23 +0000 (14:33 +0000)] 
gdb: Rationalise PACKAGECONFIG

Having two separate PACKAGECONFIG defaults and settings in two separate
files is confusing. Move all to the common inc file.

(From OE-Core rev: 9e6743e01467ffb08d62b7415fa7af79c09939e0)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoinsane: Add --disable-static to UNKNOWN_CONFIGURE_WHITELIST
Richard Purdie [Sun, 14 Feb 2016 14:30:40 +0000 (14:30 +0000)] 
insane: Add --disable-static to UNKNOWN_CONFIGURE_WHITELIST

With the addition of a common class passing in this option, add it to
the list of standard "unknown" configure options which are known about.
Its not interesting/productive to go and update every recipe to handle
this flag.

(From OE-Core rev: f879f452dc69989aa227b8dc60b7cb0354203575)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto: Work around PAT issue on qemux86
Richard Purdie [Sun, 14 Feb 2016 09:25:34 +0000 (09:25 +0000)] 
linux-yocto: Work around PAT issue on qemux86

We have an issue with PAT handling on older processes with limited PAT bits,
see the patch description for the full problem. This replaces the runqemu
workaround with a kernel patch until we can get the kernel trees sorted
out and discuss a proper fix with upstream. It should be safe everywhere
so is applied unconditionally.

(From OE-Core rev: e00f0794a535c8e68ae1c87c8b01dd65645d570b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibgcrypt: update 1.6.4 -> 1.6.5
Andre McCurdy [Sat, 13 Feb 2016 06:12:53 +0000 (22:12 -0800)] 
libgcrypt: update 1.6.4 -> 1.6.5

Noteworthy changes in version 1.6.5 (2016-02-09) [C20/A0/R5]
------------------------------------------------

 * Mitigate side-channel attack on ECDH with Weierstrass curves
   [CVE-2015-7511].  See http://www.cs.tau.ac.IL/~tromer/ecdh/ for
   details.

 * Fix build problem on Solaris.

(From OE-Core rev: 1146a4bb3af167c75bdea3e75e6f1e80b45cc721)

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agomusl: Upgrade to tip of tree
Andre McCurdy [Sat, 13 Feb 2016 01:04:10 +0000 (17:04 -0800)] 
musl: Upgrade to tip of tree

Includes misc minor bugs fixes:

  0ed932f do not define static_assert macro for pre-C11 compilers
  692b16d add declarations for utmpname/utmpxname to appropriate headers
  500c688 fix return value for fread/fwrite when size argument is 0
  416d1c7 fix line-buffered flush omission for odd usage of putc-family functions
  5a6e8d0 fix failed write reporting by fwrite in line-buffered mode
  869a9df remove workaround for broken mips assemblers

The addition of utmpname/utmpxname prototypes fixes a change
introduced in the previous git snapshot version which broke lxc.

(From OE-Core rev: 837c092ba1a2ff95733707a01550152feea5b1aa)

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooe-selftest: don't use specific tasks
Ed Bartosh [Sat, 13 Feb 2016 09:02:21 +0000 (11:02 +0200)] 
oe-selftest: don't use specific tasks

Image should be build usual way, i.e. using bitbake <image>.
Specifying do_mage_complete and do_rootfs_wicenv tasks should not
be needed anymore as those tasks should be run by bitbake for
every image.

Removed specifying do_mage_complete and do_rootfs_wicenv tasks
from bitbake calls.

(From OE-Core rev: d8d7bd1b41eb846f18378a2581ff172cb2cc52b8)

(From OE-Core rev: 00cd291605ff5f001979b350d95670e33012fdc9)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooe-selftest: pylinted wic tests
Ed Bartosh [Sat, 13 Feb 2016 09:02:20 +0000 (11:02 +0200)] 
oe-selftest: pylinted wic tests

Fixed the following pylint warnings:
  C: 45, 0: Line too long (91/80) (line-too-long)
  C:105, 0: Wrong continued indentation.
                            ignore_status=True).status)
                            ^         | (bad-continuation)
  W: 83, 8: Redefining built-in 'vars' (redefined-builtin)
  W:175, 8: Redefining built-in 'vars' (redefined-builtin)
  W: 27, 0: Unused import sys (unused-import)

(From OE-Core rev: ecb5320e766d0fa031c269d6d9b2a24c81c7aa7e)

(From OE-Core rev: c47af4a772883c86559673ba9b9f774f0ff0d54c)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic-image-minimal: use uuid for root partition
Ed Bartosh [Sat, 13 Feb 2016 09:02:19 +0000 (11:02 +0200)] 
wic-image-minimal: use uuid for root partition

Used --uuid option to generate PARTUUID for root partion and
gpt partition type. As this image is used in runtime testing
under qemu it makes sense to ensure that this way of specifying
root partition works.

Added dependency to gptfdisk-native to wic-image-minimal recipe to
be able to create gpt partition table.

(From OE-Core rev: ba82867bfda54e86e1de5dc4a6ad7246254cf5c3)

(From OE-Core rev: 767d814b2e125e20839f204e17512ebe2aec8b95)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: fix processing of --use-uuid
Ed Bartosh [Sat, 13 Feb 2016 09:02:18 +0000 (11:02 +0200)] 
wic: fix processing of --use-uuid

Processing of this option was lost during recent change of
wks parsting. It was discovered during the work on booting
wic images under qemu. Now, when -use-uuid is fixed it's
possible to specify root partition by partition uuid.
This will be done in the following commit.

(From OE-Core rev: b4882e0b84d7fd4c85ee95386e94722485eafc2b)

(From OE-Core rev: 73e9e3f150bf2de9b27c2ccc73e3dee334ee73fe)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooe-selftest: add new wic testcase
Ed Bartosh [Sat, 13 Feb 2016 09:02:17 +0000 (11:02 +0200)] 
oe-selftest: add new wic testcase

Added test_qemu testcase to boot wic-image-minimal and test
that 2 partitions mentioned in .wks are mounted.

[YOCTO #8499]

(From OE-Core rev: 6fb015d0847fe7d259d654d4a99bf4c328f810ab)

(From OE-Core rev: be360c24649391235fd9547a8f2c1251b12e9c81)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic-image-minimal: update .wks to boot by qemu
Ed Bartosh [Sat, 13 Feb 2016 09:02:16 +0000 (11:02 +0200)] 
wic-image-minimal: update .wks to boot by qemu

With below list of changes wic-image-minimal can be boot by qemu:
    - Changed device name sda -> vda.
    - Added root=/dev/vda2 to the kernel command line.
    - Changed mount point for core partition to /mnt to have it
      mounted on boot time.

(From OE-Core rev: f085274711f561f97a2c89f40bb0e89094973054)

(From OE-Core rev: 4c8d44a1be344c603bcdcb1911f609ac67e6be66)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic-image-minimal: change IMAGE_FSTYPES
Ed Bartosh [Sat, 13 Feb 2016 09:02:15 +0000 (11:02 +0200)] 
wic-image-minimal: change IMAGE_FSTYPES

Replaced wic.bz2 -> wic in the recipe.
Replaced wic.bz2 -> wic in oe-selftest test case.

wic-image-minimal is going to be booted in qemu and tested.
As runqemu doesn't support compressed images this recipe needs
to produce raw wic image.

(From OE-Core rev: 3ce91db94f4b921566dce0dc6f91a422009be06b)

(From OE-Core rev: 69d8dfe4fc1fec440e33b1bb6cef62e20f1f5c28)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/targetcontrol: support wic image type
Ed Bartosh [Sat, 13 Feb 2016 09:02:14 +0000 (11:02 +0200)] 
oeqa/targetcontrol: support wic image type

Added 'wic' to the list image types supported by targetcontrol.

This is a preparation for booting and testing wic images
with oe-selftest.

[YOCTO #8498]

(From OE-Core rev: 7dda053fbd1ea1354b7720cfa691470ba88ef5b9)

(From OE-Core rev: 4b84328d3cd0d87ad146f034b58f68a5158313d7)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/targetcontrol: make ssh control optional
Ed Bartosh [Sat, 13 Feb 2016 09:02:13 +0000 (11:02 +0200)] 
oeqa/targetcontrol: make ssh control optional

Added new parameter 'ssh' to targetcontrol 'start' method
to be able to test images without running ssh server.

[YOCTO #8498]

(From OE-Core rev: 1c3c66aadd43092bc19242b0651ee810cc31fe7c)

(From OE-Core rev: 67ccf7413b2ac9f516dbdaa6a39d4cec38a6c94d)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoqemurunner: add parameter to method 'start'
Ed Bartosh [Sat, 13 Feb 2016 09:02:12 +0000 (11:02 +0200)] 
qemurunner: add parameter to method 'start'

QemuRunner requires pair of ip addresses provided through kernel
commandline for method 'start' to work. These ip addresses are
used to connect to the image using ssh and run tests there.
However, this functionality should not be mandatory as testing
doesn't always require ssh connection. Some tests can be run using
serial console.

Added new parameter 'get_ip' to QemuRunner.start to make it possible
to skip getting pair of ip addresses from kernel command line. This
should allow oe-selftest to test images without modifying kernel
command line.

[YOCTO #8498]

(From OE-Core rev: 3f8b734ebb81d035849288091bb0b97b9c4fba34)

(From OE-Core rev: 4c90daaeb946f1adf58b2f71f1af8eb7f5906474)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooe-selftest: remove unused parameter
Ed Bartosh [Sat, 13 Feb 2016 09:02:11 +0000 (11:02 +0200)] 
oe-selftest: remove unused parameter

Removed unused parameter 'test' from runqemu function.

(From OE-Core rev: c688b3bcbb57099fa72a9728bc708b109802f7fc)

(From OE-Core rev: a7af1eb28fab515180c0fa01a003ac7b2ce0cff4)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorunqemu: support path/to/<image>-<machine>.wic
Ed Bartosh [Sat, 13 Feb 2016 09:02:10 +0000 (11:02 +0200)] 
runqemu: support path/to/<image>-<machine>.wic

Supported providing wic image path to runqemu:
  runquemu path/to/<image>-<machine>.wic

[YOCTO #8691]

(From OE-Core rev: 58a3bfb1e4b493200820cdf0bf3fc79e31e792de)

(From OE-Core rev: e6150971ea4eea49b802a12aea5ab733e894c92d)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorunqemu: don't set KERNEL for wic images
Ed Bartosh [Sat, 13 Feb 2016 09:02:09 +0000 (11:02 +0200)] 
runqemu: don't set KERNEL for wic images

Wic images should be boot as is, without pointing qemu to the kernel
binary. Current code doesn't use kernel, but sets KERNEL variable and
shows kernel path in the console output. This can confuse users.

Changed runqemu and runqemu-internal code to avoid setting KERNEL
variable and show kernel path.

(From OE-Core rev: 474caa7ed5ff05caa5d49d270b283882fa616ed1)

(From OE-Core rev: 35e776e00cce25f2c9c45500612fb66022ec4739)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>