]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
8 years agokernel-yocto.bbclass: ensure repatching when HEAD is checked out
Awais Belal [Tue, 14 Feb 2017 21:14:15 +0000 (16:14 -0500)]
kernel-yocto.bbclass: ensure repatching when HEAD is checked out

In some cases it is seen that kernel_checkout and validate_branches are
run again in simultaneous builds. During do_patch the kgit-s2q mechanism
looks for a sentinel file inside the .git directory, finds a fence post
and starts picking up patches after that.

This can create trouble as validate_branches checks out the HEAD of the
branch and so the patches should be reapplied rather than skipped due to
finding of the fence post.

We can call kgit-s2q --clean to remove the sentinel file when the
branches are checked out.

Signed-off-by: Awais Belal <awais_belal@mentor.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: direct: move creation of PartitionedImage to __init__
Ed Bartosh [Fri, 10 Feb 2017 14:44:03 +0000 (16:44 +0200)]
wic: direct: move creation of PartitionedImage to __init__

Moved creation of PartitionedImage object from DirectPlugin.create
method to init. It makes the code a bit more readable and logical.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: direct: move generation of part.realnum to PartitionedImage
Ed Bartosh [Fri, 10 Feb 2017 14:37:22 +0000 (16:37 +0200)]
wic: direct: move generation of part.realnum to PartitionedImage

Moved the code that generates real partition numbers from DirectPlugin
to PartitionedImage.

The idea is to have all code that works with partitions
in PartitionedImage class.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: direct: add PartitionedImage.prepare method
Ed Bartosh [Fri, 10 Feb 2017 14:23:59 +0000 (16:23 +0200)]
wic: direct: add PartitionedImage.prepare method

Moved code that calls prepare method of Partition objects
from DirectPlugin to PartitionedImage.prepare.

The idea is to have all code that works with partitions
in PartitionedImage class.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: direct: set bootloader.source in the __init__
Ed Bartosh [Fri, 10 Feb 2017 10:57:13 +0000 (12:57 +0200)]
wic: direct: set bootloader.source in the __init__

Moved setting of bootloader source from do_create method
to __init__ as it doesn't have anything to do with image
creation.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: direct: move UUID generation to PartitionedImage
Ed Bartosh [Fri, 10 Feb 2017 10:41:15 +0000 (12:41 +0200)]
wic: direct: move UUID generation to PartitionedImage

Moved code that generates partition UUIDs from DirectPlugin to
PartitionedImage class as it's more logical to have it there.
This allows the code to be reused by other imager plugins.

Got rid of having yet another list of partitions in PartitionedImage.
Reused the list passed from DirectPlugin.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: direct: add 'realnum' attribute to partition
Ed Bartosh [Fri, 10 Feb 2017 10:10:22 +0000 (12:10 +0200)]
wic: direct: add 'realnum' attribute to partition

Replaced call of _get_part_num method with an attribute.
This eliminates the need to call the method and loop over
partitions every time we need to know realnum for partition.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: direct: remove useless code
Ed Bartosh [Thu, 9 Feb 2017 18:45:20 +0000 (20:45 +0200)]
wic: direct: remove useless code

Removed catching CreatorError and raising it again.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: direct: don't catch ImagerError
Ed Bartosh [Thu, 9 Feb 2017 18:16:45 +0000 (20:16 +0200)]
wic: direct: don't catch ImagerError

Don't transform ImagerError exception into warning.
Let wic to catch it on the upper level.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: direct: remove set_bootimg_dir setter
Ed Bartosh [Thu, 9 Feb 2017 14:48:55 +0000 (16:48 +0200)]
wic: direct: remove set_bootimg_dir setter

Removed java-like setter set_bootimg_dir. It's more pythonic
to access public attributes directly.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: ksparser: set default disk to 'sda'
Ed Bartosh [Thu, 9 Feb 2017 14:37:57 +0000 (16:37 +0200)]
wic: ksparser: set default disk to 'sda'

Set default value of --ondisk to 'sda' to ensure
we always have disk name for the partition.

This is a first step of replacing --ondisk with
disk <name> attribute of .wks. This is better as
all partitions share the same disk.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: remove utils/oe/__init__.py
Ed Bartosh [Thu, 9 Feb 2017 14:32:40 +0000 (16:32 +0200)]
wic: remove utils/oe/__init__.py

This file and utils/oe folder are not needed anymore as
all modules were removed or moved out of this directory.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: move PartitionedImage class to direct.py
Ed Bartosh [Thu, 9 Feb 2017 14:28:54 +0000 (16:28 +0200)]
wic: move PartitionedImage class to direct.py

As PartitionedImage is only used in direct.py it makes sense
to move it there. It's easier to maintain (and refactor) it
this way.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agowic: move disk operations to PartitionImage class
Ed Bartosh [Thu, 9 Feb 2017 13:52:55 +0000 (15:52 +0200)]
wic: move disk operations to PartitionImage class

Disk operations were spread over DirectPlugin, DiskImage and Image
code making the code hard to understand.

Renamed Image class to PartitionedImage.
Removed DiskImage class.
Moved disk operations to PartitionedImage.

There was an implicit support for multiple disks: if different devices
were specified in .wks file (e.g. --ondisk sda and --ondisk sdb), wic
would theoretically generate multiple images. This is quite confusing
option and the code supporting it was broken for a long time. The same
effect (multiple output images) can be achieved in obvious and clear
way - by using multiple .wks files.

This functionality was removed. PartitionedImage works only with
one image. This makes the code less complex and easier to maintain.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
8 years agoselftest/wic: Add tests for --exclude-dir option.
Kristian Amlie [Mon, 6 Feb 2017 16:16:47 +0000 (17:16 +0100)]
selftest/wic: Add tests for --exclude-dir option.

Based partially on an earlier patch by Maciej Borzecki.

Note that because tools now reside in recipe specific sysroots, we
need to import the path from bitbake and apply it during the test.

Signed-off-by: Kristian Amlie <kristian.amlie@mender.io>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowic: Add --exclude-path option to rootfs source plugin.
Kristian Amlie [Mon, 6 Feb 2017 16:16:46 +0000 (17:16 +0100)]
wic: Add --exclude-path option to rootfs source plugin.

It will omit the given path from the resulting partition, and if the
given path ends in a slash, it will only delete the content, and keep
the directory.

Since mkfs only accepts whole directories as input, we need to copy
the rootfs directory to the workdir so that we can selectively delete
files from it.

Since we want to use the copyhardlinktree() function, we need to put
the generic oe lib in the module search path.

Signed-off-by: Kristian Amlie <kristian.amlie@mender.io>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowic: remove unused argument scripts_path
Ed Bartosh [Wed, 8 Feb 2017 18:51:33 +0000 (20:51 +0200)]
wic: remove unused argument scripts_path

There is no need to pass scripts_path from main wic module
down the stack as it's not used there.

Removed scripts_path argument from DirectPlugin class
and wic_create function.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowic: direct: remove unused import
Ed Bartosh [Wed, 8 Feb 2017 18:51:32 +0000 (20:51 +0200)]
wic: direct: remove unused import

Removed unused import of wic.errors module.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowic: direct: remove unused plugin attributes
Ed Bartosh [Wed, 8 Feb 2017 18:51:31 +0000 (20:51 +0200)]
wic: direct: remove unused plugin attributes

Removed unused _disks, _disk_format and _disk_names
attributes from DirectPlugin class.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowic: make sure layout_partitions is called once
Ed Bartosh [Wed, 8 Feb 2017 18:51:30 +0000 (20:51 +0200)]
wic: make sure layout_partitions is called once

Removed artificial _partitions_layed_out attribute and
unneeded call of layout_partitions method.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowic: use the same partition object in direct and partitionedfs
Ed Bartosh [Wed, 8 Feb 2017 18:51:29 +0000 (20:51 +0200)]
wic: use the same partition object in direct and partitionedfs

Partition attributes were copied to the dictionary in partitionedfs
code, which makes the code hard to follow.

Used partition object passed from direct.py module as is in
partitionedfs.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowic: direct: get rid of _get_parts getter
Ed Bartosh [Wed, 8 Feb 2017 18:51:28 +0000 (20:51 +0200)]
wic: direct: get rid of _get_parts getter

Replaced _get_parts getter with direct attribute
access to self.parts

Removed code that implicitly created partition
if there are no partitions mentioned in .wks file

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowic: partitionedfs: rename __create_partition and __add_disk
Ed Bartosh [Wed, 8 Feb 2017 18:51:27 +0000 (20:51 +0200)]
wic: partitionedfs: rename __create_partition and __add_disk

Renamed private methods with leading double underscores:
__create_partition -> _create_partition
__add_disk -> _add_disk

There is no point to have those names mangled, one underscore
is enough.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowic: partitionedfs: get rid of __add_partition
Ed Bartosh [Wed, 8 Feb 2017 18:51:26 +0000 (20:51 +0200)]
wic: partitionedfs: get rid of __add_partition

3 lines long private method __add_partition is called only
from add_partition method. Merged them together to increase
readability.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowic: partitionedfs: merged __format_disks and create
Ed Bartosh [Wed, 8 Feb 2017 18:51:25 +0000 (20:51 +0200)]
wic: partitionedfs: merged __format_disks and create

Private method __format_disks is called only from create
method making the code less readable. Merged the code
into one method.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agom4: use wildcard for selftest bbappend
Ross Burton [Fri, 10 Feb 2017 14:43:03 +0000 (14:43 +0000)]
m4: use wildcard for selftest bbappend

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobash: fix CVE-2016-9401
Li Zhou [Mon, 13 Feb 2017 02:53:24 +0000 (10:53 +0800)]
bash: fix CVE-2016-9401

popd in bash might allow local users to bypass the restricted shell
and cause a use-after-free via a crafted address.

Porting patch from <https://ftp.gnu.org/pub/gnu/bash/bash-4.4-patches/
bash44-006> to solve CVE-2016-9401.

Signed-off-by: Li Zhou <li.zhou@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibxslt: Add build fix (with ld-is-gold)
Jussi Kukkonen [Fri, 10 Feb 2017 14:04:38 +0000 (16:04 +0200)]
libxslt: Add build fix (with ld-is-gold)

Libraries must be linked with "-lm", otherwise gold fails to link
binaries with those libraries.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolighttpd: Upgrade 1.4.43 -> 1.4.45
Andrej Valek [Fri, 10 Feb 2017 12:42:29 +0000 (13:42 +0100)]
lighttpd: Upgrade 1.4.43 -> 1.4.45

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agom4: 1.4.17 -> 1.4.18
Robert Yang [Fri, 10 Feb 2017 03:23:15 +0000 (19:23 -0800)]
m4: 1.4.17 -> 1.4.18

Rebased remove-gets.patch.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agomklibs-native: 0.1.41 -> 0.1.43
Robert Yang [Fri, 10 Feb 2017 03:23:14 +0000 (19:23 -0800)]
mklibs-native: 0.1.41 -> 0.1.43

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agostrace: fix gawk's path
Robert Yang [Fri, 10 Feb 2017 03:23:13 +0000 (19:23 -0800)]
strace: fix gawk's path

Fixed:
strace-4.15: /usr/lib/strace/ptest/tests/caps-abbrev.awk contained in package strace-ptest requires /bin/gawk, but no providers found in RDEPENDS_strace-ptest? [file-rdeps]

The path should be /usr/bin/gawk as other scripts use in this package.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agostrace: 4.14 -> 4.15
Robert Yang [Fri, 10 Feb 2017 03:23:12 +0000 (19:23 -0800)]
strace: 4.14 -> 4.15

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowget: 1.18 -> 1.19
Robert Yang [Fri, 10 Feb 2017 03:23:11 +0000 (19:23 -0800)]
wget: 1.18 -> 1.19

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibpcre: 8.39 -> 8.40
Robert Yang [Fri, 10 Feb 2017 03:23:10 +0000 (19:23 -0800)]
libpcre: 8.39 -> 8.40

The LIC_FILES_CHKSUM is changed because the date is changed, here is
diff result:
< Copyright (c) 1997-2017 University of Cambridge

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agohdparm: 9.50 -> 9.51
Robert Yang [Fri, 10 Feb 2017 03:23:09 +0000 (19:23 -0800)]
hdparm: 9.50 -> 9.51

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agognu-efi: 3.0.4 -> 3.0.5
Robert Yang [Fri, 10 Feb 2017 03:23:08 +0000 (19:23 -0800)]
gnu-efi: 3.0.4 -> 3.0.5

* Remove aarch64-initplat.c-fix-const-qualifier.patch which is already
  in the source.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogit: 2.11.0 -> 2.11.1
Robert Yang [Fri, 10 Feb 2017 03:23:07 +0000 (19:23 -0800)]
git: 2.11.0 -> 2.11.1

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoe2fsprogs: 1.43.3 -> 1.43.4
Robert Yang [Fri, 10 Feb 2017 03:23:06 +0000 (19:23 -0800)]
e2fsprogs: 1.43.3 -> 1.43.4

* Rebased Revert-mke2fs-enable-the-metadata_csum-and-64bit-fea.patch.
* The mkfs.ext4dev is gone.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agousbutils: allow udev-hwdb to be optional
Gary Thomas [Fri, 10 Feb 2017 06:05:03 +0000 (07:05 +0100)]
usbutils: allow udev-hwdb to be optional

Use RRECOMMENDS for the udev hardware data base, to allow for this
to be suppressed if desired (saves many MB - useful for smaller systems)

Signed-off-by: Gary Thomas <gary@mlbassoc.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoperf: add PACKAGECONFIG for jvmti
Stefan Müller-Klieser [Thu, 9 Feb 2017 11:49:39 +0000 (12:49 +0100)]
perf: add PACKAGECONFIG for jvmti

Recent kernel build jvmti, java profiling agent, if a host jdk is
detected. The library will be packaged in -dev and throws a qa error.
Disable the jvmti build per default.

Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agodbus: remove pointless cd
Ross Burton [Thu, 9 Feb 2017 16:47:21 +0000 (16:47 +0000)]
dbus: remove pointless cd

There's no need to cd to the target directory when creating symlinks, so don't.

[ YOCTO #10985 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoelfutils: update homepage and upstream souce
Hongxu Jia [Wed, 8 Feb 2017 03:01:35 +0000 (22:01 -0500)]
elfutils: update homepage and upstream souce

In git://sourceware.org/git/elfutils.git:
----------------
commit 1700fd25e6caf26663af2bd994d1d99fab9df59f
Author: Mark Wielaard <mark@klomp.org>
Date:   Sat Dec 24 22:31:41 2016 +0100

    http://elfutils.org/ is now hosted at http://sourceware.org/elfutils/

    fedorahosted used to be our home, but we are now hosted at sourceware.

    Change the elfutils project home to http://elfutils.org/
    Point hosted services (email, release, git, bug tracker and web pages)
    to https://sourceware.org/elfutils/

    Move design notes from README to NOTES.
    Add URLs for home, releases, bugs, git and mailinglist to README.

    Make the --version output of all tools the same by using a common
    print_version function and update the publicly shown copyright holder
    to the elfutils developers.

Signed-off-by: Mark Wielaard <mark@klomp.org>
------------------

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
8 years agoelfutils: 0.166 -> 0.168
Hongxu Jia [Mon, 6 Feb 2017 09:34:46 +0000 (04:34 -0500)]
elfutils: 0.166 -> 0.168

- Backport patches from debian to 0.168 and add US tags.

- Rebase 0001-build-Provide-alternatives-for-glibc-assumptions-hel.patch to support libc musl

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
8 years agolibgpg-error: 1.25 -> 1.26
Hongxu Jia [Tue, 7 Feb 2017 04:30:46 +0000 (23:30 -0500)]
libgpg-error: 1.25 -> 1.26

- errorref.txt is part of the documentation so should be in PN-doc.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
8 years agogpgme: allow building -native variant
Alexander Kanavin [Mon, 13 Feb 2017 15:05:31 +0000 (17:05 +0200)]
gpgme: allow building -native variant

This is required by various pieces in the dnf stack

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogpgme: 1.6.0 -> 1.8.0
Hongxu Jia [Tue, 7 Feb 2017 03:29:07 +0000 (22:29 -0500)]
gpgme: 1.6.0 -> 1.8.0

- Drop gpgme.pc, it is duplicated with pkgconfig.patch

- Rebase pkgconfig.patch to 1.8.0

- Split cmake config to ${PN}-dev

- Update LIC_FILES_CHKSUM, because copytright year changed.

- The libgpgme-pthread is obsolete by upstream;

- Add package libgpgcpp;

TODO: Do not remove gpgme-pthread.pc from pkgconfig.patch,
      the upstream explains:
      git://git.gnupg.org/gpgme.git
      commit 09b64554328445e99a8cc78fc34ea49c2ea2e7f9
      ------------------------------
      libgpgme-pthread is removed but gpgme-config still supports
      --thread=pthread for compatibility with find scripts.
      ------------------------------

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
8 years agosecurity_flags: disable -pie for gpgme
Ross Burton [Mon, 13 Feb 2017 14:23:02 +0000 (14:23 +0000)]
security_flags: disable -pie for gpgme

Otherwise this fails to build the libraries:

relocation R_X86_64_PC32 against undefined hidden symbol `__init_array_start'
can not be used when making a shared object

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agognupg: 2.1.14 -> 2.1.18
Hongxu Jia [Tue, 7 Feb 2017 05:51:48 +0000 (00:51 -0500)]
gnupg: 2.1.14 -> 2.1.18

Update LIC_FILES_CHKSUM md5 checksum, because "http" has been
changed to "https".

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
8 years agorpcbind: 0.2.3 -> 0.2.4
Hongxu Jia [Tue, 7 Feb 2017 05:37:22 +0000 (00:37 -0500)]
rpcbind: 0.2.3 -> 0.2.4

Drop obsolete patch
- 0001-Avoid-use-of-glibc-sys-cdefs.h-header.patch

Drop backport patches:
- 0001-handle_reply-Don-t-use-the-xp_auth-pointer-directly.patch
- cve-2015-7236.patch

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
8 years agoman-pages: 4.08 -> 4.09
Hongxu Jia [Tue, 7 Feb 2017 05:05:55 +0000 (00:05 -0500)]
man-pages: 4.08 -> 4.09

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
8 years agolibgcrypt: 1.7.3 -> 1.7.6
Hongxu Jia [Tue, 7 Feb 2017 04:23:02 +0000 (23:23 -0500)]
libgcrypt: 1.7.3 -> 1.7.6

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
8 years agosocat: 1.7.3.1 -> 1.7.3.2
Hongxu Jia [Mon, 6 Feb 2017 08:57:03 +0000 (03:57 -0500)]
socat: 1.7.3.1 -> 1.7.3.2

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
8 years agopax-utils: 1.1.6 -> 1.2.2
Hongxu Jia [Mon, 6 Feb 2017 08:48:09 +0000 (03:48 -0500)]
pax-utils: 1.1.6 -> 1.2.2

Export GNULIB_OVERRIDES_WINT_T to fix compile failure
---------
1099 make[4]: *** [printf-args.o] Error 1
1100 make[4]: *** Waiting for unfinished jobs....
1101 In file included from ../../../pax-utils-1.2.2/autotools/gnulib/printf-args.h:41:0,
1102                  from ../../../pax-utils-1.2.2/autotools/gnulib/printf-parse.h:29,
1103                  from ../../../pax-utils-1.2.2/autotools/gnulib/printf-parse.c:36:
1104 ./wchar.h:476:6: error: #if with no expression
1105  # if
1106       ^
1107 make[4]: *** [printf-parse.o] Error 1
---------

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
8 years agowatchdog: Add RCONFLICTS to watchdog-keepalive and split RDEPENDS
Fabio Berton [Wed, 25 Jan 2017 11:22:05 +0000 (09:22 -0200)]
watchdog: Add RCONFLICTS to watchdog-keepalive and split RDEPENDS

watchdog-keepalive is a simplified version of the watchdog daemon
and can't be installed along with watchdog daemon, we need to
choose which daemon install.

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibcap: Add gperf-native to depends
Khem Raj [Wed, 8 Feb 2017 15:57:59 +0000 (07:57 -0800)]
libcap: Add gperf-native to depends

Fixes
|  gperf_case_strncmp (register const char *s1, register const char *s2, register size_t n)
|                                                                                 ^~~~~~
| ./_caps_output.gperf:96:53: error: unknown type name 'size_t'
|  __cap_hash_name (register const char *str, register size_t len)
|                                                      ^~~~~~
| ./_caps_output.gperf:200:55: error: unknown type name 'size_t'
|  __cap_lookup_name (register const char *str, register size_t len)
|                                                        ^~~~~~
| ./_caps_output.gperf:200:1: error: conflicting types for '__cap_lookup_name'
|  __cap_lookup_name (register const char *str, register size_t len)
|  ^~~~~~~~~~~~~~~~~
| ./_caps_output.gperf:33:29: note: previous declaration of '__cap_lookup_name' was here
|  const struct __cap_token_s *__cap_lookup_name(const char *, unsigned int);
|                              ^~~~~~~~~~~~~~~~~
| cap_text.c: In function 'cap_to_name':
| cap_text.c:291:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result]
|   asprintf(&tmp, "%u", cap);
|   ^~~~~~~~~~~~~~~~~~~~~~~~~
| make[1]: *** [Makefile:63: cap_text.o] Error 1

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolttng-tools: no need to delete libxml.m4
Ross Burton [Wed, 8 Feb 2017 14:44:29 +0000 (14:44 +0000)]
lttng-tools: no need to delete libxml.m4

The configure.ac uses pkg-config now and this macro doesn't exist in the tarball
anymore, so remove the deletion.

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosecurity_flags: enable string formatting check for console tools
Chen Qi [Wed, 8 Feb 2017 09:25:37 +0000 (17:25 +0800)]
security_flags: enable string formatting check for console tools

As we've fixed the string formatting issue in console-tools, we don't
need to override SECURITY_STRINGFORMAT for console-tools any more.

[YOCTO #9540]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoconsole-tools: fix string formatting issue
Chen Qi [Wed, 8 Feb 2017 09:25:36 +0000 (17:25 +0800)]
console-tools: fix string formatting issue

Fix string formatting issue in console-tools. Otherwise, when compiling with
'-Wformat -Wformat-security -Werror=format-security', we would have compilation
error.

[YOCTO #9540]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoltp: Fix containers/userns05 failure for lib32
He Zhe [Wed, 8 Feb 2017 02:58:46 +0000 (10:58 +0800)]
ltp: Fix containers/userns05 failure for lib32

Backport a patch to fix userns05 case:
<<<test_output>>>
user_namespace5 1 TFAIL : userns05.c:95: userns:parent should be not equal to cpid2
user_namespace5 1 TFAIL : userns05.c:95: userns:parent should be not equal to cpid2
user_namespace5 0 TINFO : Child process returned TPASS
user_namespace5 0 TINFO : Child process returned TPASS
user_namespace5 0 TINFO : Child process returned TFAIL
incrementing stop

Rename the previous patch to add a number prefix

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopython: Don't use getentropy on Linux
Andreas Oberritter [Tue, 7 Feb 2017 23:48:54 +0000 (00:48 +0100)]
python: Don't use getentropy on Linux

Backport a patch from 2.7 branch to fix a regression with glibc
2.24 causing "OSError: [Errno 38] Function not implemented" when
calling urandom() with older kernels.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopseudo: update to 1.8.2
Joshua Lock [Tue, 7 Feb 2017 15:53:00 +0000 (15:53 +0000)]
pseudo: update to 1.8.2

Update to the newly minted 1.8.2, dropping several patches we'd
backported since the last release.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosmartpm: if RPM transaction fails with an empty list of problems in attempt mode...
Herve Jourdain [Thu, 9 Jun 2016 07:41:31 +0000 (15:41 +0800)]
smartpm: if RPM transaction fails with an empty list of problems in attempt mode, ignore it!

Since commit be0cabf816a84c59e0e951b92a570121ed843822 on 2016/05/17, smartpm will retry the transaction if ts.run() returns with an empty list of problems, and we're in attempt mode.
But then, since all the packages are already installed, the transaction will fail with "package already installed" error.

In attempt mode, it's fine to not retry nor generate an error when the transaction fails for no reason linked to files/packages conflicts, so this patch fixes this behaviour.

Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoglibc: Update to 2.25 release
Khem Raj [Mon, 6 Feb 2017 19:38:04 +0000 (11:38 -0800)]
glibc: Update to 2.25 release

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopulseaudio: 9.0 -> 10.0
Tanu Kaskinen [Fri, 3 Feb 2017 07:06:35 +0000 (09:06 +0200)]
pulseaudio: 9.0 -> 10.0

Relase notes:
https://www.freedesktop.org/wiki/Software/PulseAudio/Notes/10.0/

The checksum of the LICENSE file changed due to some clarifications.
There were no changes to the actual licensing terms.

The LICENSE variable was not accurate, so I made changes to it.
Specifically:
 * there's no GPL code in PulseAudio so I dropped GPL from the list
 * the LGPL code allows using later versions of the license rather than
   limiting to just 2.1
 * there are some MIT and BSD licensed bits

I added more files to LIC_FILES_CHKSUM to have better coverage of all
the differently licensed code.

Dropped json-c and gdbm from DEPENDS. The new release doesn't use json-c
any more. gdbm isn't used when --with-database=simple is passed to
configure, so it should have been removed from DEPENDS a long time ago.

The new release dropped the Xen module, so the --without-xen configure
option isn't needed any more.

Added a comment for why --without-fftw is used.

Disabled the adrian echo canceller, because it has an unusual license,
and disabling the code was simpler than adding a new license to OE-Core.

Dropped upstreamed patches.

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoxz: upgrade to 5.2.3
Andreas Horsthemke [Sat, 4 Feb 2017 13:34:55 +0000 (14:34 +0100)]
xz: upgrade to 5.2.3

Signed-off-by: Andreas Horsthemke <andhorsthemke@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibepoxy: upgrade to 1.4.0
Ross Burton [Mon, 6 Feb 2017 23:26:34 +0000 (23:26 +0000)]
libepoxy: upgrade to 1.4.0

Drop the two patches that add the ability to disable GLX, this has been added
upstream.

Drop the Python3 patch as the code generator works with Py3 now.

(From OE-Core rev: 8ba197b3ae10a90ca988f0021597dfd20463c2d2)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoselftest: remove result file log awkward checking
Benjamin Esquivel [Sun, 12 Feb 2017 19:00:38 +0000 (19:00 +0000)]
selftest: remove result file log awkward checking

because of the way that the test cases are looked in the results,
the file logger is incompatible with extended implementations of the
unittest runner.

as the xml runner extends the unittest runner, it shares the id()
method which returns the full name of the test, not only the test
function name. With that, a single check of the full name reviews at
the same time the class name as well as the function name.

[YOCTO#11012]

Signed-off-by: Benjamin Esquivel <benjamin.esquivel@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobuild-perf-test-wrapper.sh: fix issues with non-existing path arguments
Markus Lehtonen [Fri, 27 Jan 2017 13:24:25 +0000 (15:24 +0200)]
build-perf-test-wrapper.sh: fix issues with non-existing path arguments

Without the '-s' option realpath will error out if the given path does
not exist.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooe-build-perf-test: drop --commit-results
Markus Lehtonen [Fri, 3 Feb 2017 17:58:54 +0000 (19:58 +0200)]
oe-build-perf-test: drop --commit-results

Drop support for committing results into Git repository. The
functionality was not directly related to testing and feels unnecessary
complication of the script. The functionality has been moved into a
separate oe-git-archive script.

[YOCTO #10582]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobuild-perf-test-wrapper.sh: use oe-git-archive
Markus Lehtonen [Fri, 3 Feb 2017 17:53:55 +0000 (19:53 +0200)]
build-perf-test-wrapper.sh: use oe-git-archive

Start to use the new helper script for archiving results data in Git.

[YOCTO #10582]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoscripts/oe-git-archive: support creating bare repositories
Markus Lehtonen [Fri, 3 Feb 2017 14:40:35 +0000 (16:40 +0200)]
scripts/oe-git-archive: support creating bare repositories

[YOCTO #10582]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa.utils.git: support bare repos
Markus Lehtonen [Fri, 3 Feb 2017 08:53:32 +0000 (10:53 +0200)]
oeqa.utils.git: support bare repos

[YOCTO #10582]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoscripts: Implement oe-git-archive
Markus Lehtonen [Thu, 2 Feb 2017 14:30:57 +0000 (16:30 +0200)]
scripts: Implement oe-git-archive

A helper script for committing data to git and pushing it upstream. The
motivation for the script stems from the need to archiving QA test
results in git, but it could be used elsewhere, of course. The script
needs to be run under an initialized build environment because it
utilizes bitbake configuration information.

[YOCTO #10582]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa.utils.git: add git_dir property
Markus Lehtonen [Thu, 2 Feb 2017 14:02:15 +0000 (16:02 +0200)]
oeqa.utils.git: add git_dir property

[YOCTO #10582]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa/buildperf: don't archive stdout/stderr of commands
Markus Lehtonen [Fri, 27 Jan 2017 14:54:53 +0000 (16:54 +0200)]
oeqa/buildperf: don't archive stdout/stderr of commands

Stop capturing output of the shell commands into <test>/commands.log.
Redirecting output into a file prevented the unittest framework from
capturing it, causing useless errors (with empty output) like:
oeqa.utils.CommandError: Command '['bitbake', 'core-image-sato']'
returned non-zero exit status 1 with output:

In general, the console output of commands is only interesting when
something fails. Also, dropping the commands.log file is a huge saving
in disk space, and thus, repository size when results are archived in
Git.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoclasses/license: Respect beginline and endline
Joshua Watt [Sat, 11 Feb 2017 03:35:37 +0000 (21:35 -0600)]
classes/license: Respect beginline and endline

Recipes have the option of specifying a 'beginline' and 'endline'
options in LIC_FILES_CHKSUM which will cause the license bbclass to
only extract those specific lines from the license file when generating
the license database.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoinsane.bbclass: print QA message correctly
Stephano Cetola [Fri, 10 Feb 2017 22:50:02 +0000 (14:50 -0800)]
insane.bbclass: print QA message correctly

Replace call to non-existent method "messages" with call to correct
QA logging method.

Fixes [YOCTO #11014]

introduced in OE-core revision 1dcb38ca9d6

Signed-off-by: Stephano Cetola <stephano.cetola@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopackage_deb.bbclass: Ignore file paths in RPROVIDES
Amarnath Valluri [Fri, 10 Feb 2017 13:42:17 +0000 (15:42 +0200)]
package_deb.bbclass: Ignore file paths in RPROVIDES

Unlike rpm, debian packaging does not allow file paths in 'Provides:' field.
When 'usrmerge' distro feature enabled bash/busybox packages adds '/bin/sh' to
it's RPROVIDES to satisfy build dependencies, this entry should be filtered out.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agotestimage.bbclass: Add check for empty test suite
Mariano Lopez [Thu, 9 Feb 2017 13:15:14 +0000 (13:15 +0000)]
testimage.bbclass: Add check for empty test suite

If for some reason (most likely incorrect TEST_SUITES var)
you end with an empty test suite, testimage will start the
target (qemu by default) and will run an empty suite, so
better have a check before starting the target.

[YOCTO #10979]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoimage.bbclass: Use 'populate_sdk_base' for non-linux targets
Nathan Rossi [Mon, 30 Jan 2017 07:39:12 +0000 (17:39 +1000)]
image.bbclass: Use 'populate_sdk_base' for non-linux targets

When 'populate_sdk_ext' was first introduced in commit bf81d6bb7f6 it
replaced the inheriting of 'populate_sdk_base'. For non-linux targets
building the extensible SDK caused build errors, and the image class was
changed to inherit 'populate_sdk' when targeting a non-linux SDK_OS (in
commmit e471ce3464d). However inheriting 'populate_sdk' instead of
'populate_sdk_base' causes the SDK to always be built, this is not
expected for the image class.

This change makes the image class inherit 'populate_sdk_base' in the
non-linux SDK_OS case so that it behaves the same as it is expected to
behave where 'bitbake <image> -c populate_sdk' must be executed to
generate the SDK deployables.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosanity.bbclass: Add which to SANITY_REQUIRED_UTILITIES.
Philip Balister [Wed, 8 Feb 2017 20:27:06 +0000 (15:27 -0500)]
sanity.bbclass: Add which to SANITY_REQUIRED_UTILITIES.

Using docker with the Fedora 23 container exposed an issue with
the rpm-native configure step. If which is not present the configure
script fork bombs. After much pain, I tracked this to which not being
present in the default container. Add a check for which so others
do not have to have this experience.

Signed-off-by: Philip Balister <philip@balister.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agouboot-extlinux-config.bbclass: add support for timeout & default
Dalon Westergreen [Tue, 7 Feb 2017 23:46:29 +0000 (15:46 -0800)]
uboot-extlinux-config.bbclass: add support for timeout & default

When multible targets are defined it is useful to allow for
a default target along with a timeout.  After timeout, the
default target will be selected.

Signed-off-by: Dalon Westergreen <dwesterg@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoclasses/copyleft_filter: include AGPL in default included list
Paul Eggleton [Tue, 7 Feb 2017 19:12:29 +0000 (08:12 +1300)]
classes/copyleft_filter: include AGPL in default included list

If we're including all GPL licenses then we should include AGPL in
the default COPYLEFT_LICENSE_INCLUDE since it has similar terms (and
currently we do have one AGPL-licensed recipe in OE-Core, namely db).

(Note that the default list isn't meant to be a guaranteed complete
safe list - seek legal advice based on what you're distributing if
unsure.)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agokernel.bbclass: Make symbol to vmlinuz.bin in boot directory
Andrea Adami [Wed, 25 Jan 2017 23:56:08 +0000 (00:56 +0100)]
kernel.bbclass: Make symbol to vmlinuz.bin in boot directory

The changes committed with 6e58f54be103814b6b8a85b236510633c49e6832 did only
consider the vmlinuz ELF kernel but some devices do reqire a raw vmlinuz.bin
(as for example gcw0 in meta-handheld booted by ubiboot).
Expand the above mentioned patch to consider this case.

Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agocve-check-tool: Use CA cert bundle in correct sysroot
Jussi Kukkonen [Thu, 9 Feb 2017 19:38:33 +0000 (21:38 +0200)]
cve-check-tool: Use CA cert bundle in correct sysroot

Native libcurl looks for CA certs in the wrong place by
default.
* Add patch that allows overriding the default CA certificate
  location. Patch is originally from meta-security-isafw.
* Use the new --cacert to set the correct CA bundle path

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agocve-check-tool: Fixes for recipe sysroots
Jussi Kukkonen [Thu, 9 Feb 2017 19:38:32 +0000 (21:38 +0200)]
cve-check-tool: Fixes for recipe sysroots

* Use --enable-relative-plugins so cve-check-tool looks for
  loadable modules relative to binary location instead of
  hard-coding a wrong sysroot location
* do_populate_cve_db() assumes that the binary cve-check-update is in
  the sysroot. Ensure that this is true by adding a task dependency

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agocve-check.bbclass: Fix dependencies
Jussi Kukkonen [Thu, 9 Feb 2017 19:38:31 +0000 (21:38 +0200)]
cve-check.bbclass: Fix dependencies

With recipe-specific sysroots the cve_check task must depend on
cve-check-tool-native:do_populate_sysroot to get the cve-check-tool
binary into the recipe sysroot.

A normal DEPENDS isn't used to avoid cyclic dependencies.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agotestimage: Implement custom target loading
Juro Bystricky [Mon, 6 Feb 2017 17:49:37 +0000 (09:49 -0800)]
testimage: Implement custom target loading

This patch implements custom target loading for testimage, currently
missing due to major changes to the test framework.
Custom targets can be defined in various meta-layers, so we
need an extra path information in order to find them.
Any other additional info is retrieved as usual via the variables
TEST_TARGET and TEST_SUITES

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/loader.py: Avoid error in TypeError exception
Juro Bystricky [Mon, 6 Feb 2017 17:27:22 +0000 (09:27 -0800)]
oeqa/loader.py: Avoid error in TypeError exception

Without this an exception would occur

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemu.py: add 'elf' as supported fstype
Juro Bystricky [Mon, 6 Feb 2017 18:05:15 +0000 (10:05 -0800)]
qemu.py: add 'elf' as supported fstype

Add 'elf' as also supported by OEQemuTarget.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibva: Update to new 01.org github location
Saul Wold [Tue, 7 Feb 2017 18:58:17 +0000 (10:58 -0800)]
libva: Update to new 01.org github location

Upstream has moved to use 01.org and github, Update the various URIs
that track info. S needs to be changed to WORKDIR/git as we are now a
git repo.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/core/runner.py: OEStreamLogger fix logging
Aníbal Limón [Thu, 9 Feb 2017 20:53:17 +0000 (14:53 -0600)]
oeqa/core/runner.py: OEStreamLogger fix logging

Change conditional to avoid losing stack traces when log
into the logger. The logic only needs to don't log empty lines.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoclasses: Drop now unneeded update_data calls
Richard Purdie [Thu, 9 Feb 2017 17:11:38 +0000 (17:11 +0000)]
classes: Drop now unneeded update_data calls

Now that the datastore works dynamically we don't need the update_data calls
so we can just remove them. They're not actually done anything at all for
a while.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agonss: Fix nss-native so the checksum doesn't change with BUILD_ARCH
Richard Purdie [Wed, 8 Feb 2017 21:29:43 +0000 (21:29 +0000)]
nss: Fix nss-native so the checksum doesn't change with BUILD_ARCH

Switching between 32 and 64 bit BUILD_ARCH shows:

$ bitbake-diffsigs tmp-sstatesamehash*/stamps/*/nss-native/3.27.1-r0.do_compile.sigdata.*
basehash changed from 944cc4554a823ba966aeda0ac3d33b79 to 2475db3659c248d81d0e4dadb3c1b4cd
Variable SITEINFO_BITS value changed from '32' to '64'

We shouldn't have this dependency and it would fail oe-selftest test_sstate_32_64_same_hash
if nss-native were included, therefore exclude it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosstate: Make absolute symlinks an error
Richard Purdie [Wed, 8 Feb 2017 16:17:09 +0000 (16:17 +0000)]
sstate: Make absolute symlinks an error

The current relocation code is broken, at least in the native case. Fixing it
would mean trying pass in new data on sstate tasks about the relative positioning
of symlinks compared to the sstate relocation paths. Whilst we could do this,
right now I'm favouring making this an error and fixing the small number of
problematic recipes we have in OE-Core (3).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoopenssl/fontconfig/bzip2: Use relative symlinks instead of absolute ones (using a...
Richard Purdie [Wed, 8 Feb 2017 16:10:50 +0000 (16:10 +0000)]
openssl/fontconfig/bzip2: Use relative symlinks instead of absolute ones (using a new class)

Absolute path symlinks are a bit of a pain for sstate and the native versions
of these recipes currently contain broken symlinks as a result. There are
only a small number of problematic recipes, at least in OE-Core, namely the
three here.

Rather than trying to make sstate handle this magically, which turns out to
be a harder problem than you'd first realise, simply make the symlinks relative
early in the process and avoid all the problems.

The alternative is adding new complexity to sstate which we could really
do without as without the complexity, you can't always tell where the
absolute symlink is relative to (due to prefixes used for native sstate).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolib/oe/path: Add replace_absolute_symlinks function
Richard Purdie [Wed, 8 Feb 2017 15:08:54 +0000 (15:08 +0000)]
lib/oe/path: Add replace_absolute_symlinks function

We need a function to walk a directory and replace absolute symlinks with
relative ones. Add such a function to the path module of lib/oe.

It does this relative to the directory being walked for files.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogcc-cross-initial: Remove unneeded temporary sysroot
Richard Purdie [Wed, 8 Feb 2017 15:00:50 +0000 (15:00 +0000)]
gcc-cross-initial: Remove unneeded temporary sysroot

We used to need to build gcc-cross-initial against a bare sysroot to avoid
contamination. With RSS, we no longer need to do this since the recipe sysroot
is already bare. We can therefore simply point at that and drop this code.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython3-native: Remove tests to save copying uneeded files around
Richard Purdie [Fri, 3 Feb 2017 12:06:06 +0000 (12:06 +0000)]
python3-native: Remove tests to save copying uneeded files around

Removing these nearly halves the python3-native disk footprint meaning
more optimal sysroot operations. We don't need these tests for anything.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>