]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
6 years agolibnss-nis: Limit parse skip only for target recipe on musl
Khem Raj [Wed, 4 Jul 2018 03:51:45 +0000 (20:51 -0700)]
libnss-nis: Limit parse skip only for target recipe on musl

on the host side we are glibc based therefore some native and nativesdk
recipes might need this package even when we target musl based systems

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agolibxml2: fix CVE-2017-8872
Hongxu Jia [Wed, 4 Jul 2018 01:39:14 +0000 (09:39 +0800)]
libxml2: fix CVE-2017-8872

The htmlParseTryOrFinish function in HTMLparser.c in libxml2 2.9.4
allows attackers to cause a denial of service (buffer over-read) or
information disclosure.

https://bugzilla.gnome.org/show_bug.cgi?id=775200

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agokernel-fitimage: add support for ext2.gz initramfs files
Chunrong Guo [Tue, 3 Jul 2018 03:01:39 +0000 (11:01 +0800)]
kernel-fitimage: add support for ext2.gz initramfs files

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agonfs-utils: 2.1.1 -> 2.3.1
Robert Yang [Tue, 26 Jun 2018 07:59:00 +0000 (15:59 +0800)]
nfs-utils: 2.1.1 -> 2.3.1

* Removed 001-configure-Allow-to-explicitly-disable-nfsidmap.patch,
  the nfsidmap is enabled when --enable-nfsv4, so I added a
  PACKAGECONFIG[nfsv4], and default is no since keyutils is not in oe-core by
  default.

* Removed 0001-include-stdint.h-for-UINT16_MAX-definition.patch and
  nfs-utils-1.2.3-sm-notify-res_init.patch since they are already in the
  source.

* Taken two patches from git://git.alpinelinux.org/aports to fix build
  with musl, and the nfs-utils-musl-res_querydomain.patch is for musl only.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agooe.types.boolean: treat None as False
Binghua Guan [Sat, 30 Jun 2018 09:53:34 +0000 (17:53 +0800)]
oe.types.boolean: treat None as False

It is better to return False for None. E.g. checking an undefined
variable returned d.getVar().

Signed-off-by: Binghua Guan <freebendy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopython3-dbus: update to latest stable version of 1.2.8
Derek Straka [Sat, 30 Jun 2018 09:11:01 +0000 (05:11 -0400)]
python3-dbus: update to latest stable version of 1.2.8

Remove the PACKAGECONFIG for documentation as it now requires python3-sphinx which is not
provided in any existing recipe.

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agobmap-tools: Add python3-fcntl dependency
Alex Kiernan [Sun, 1 Jul 2018 10:42:46 +0000 (10:42 +0000)]
bmap-tools: Add python3-fcntl dependency

Add missing python3-fcntl dependency

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopython: update to version 2.7.15
Derek Straka [Sat, 30 Jun 2018 11:37:35 +0000 (07:37 -0400)]
python: update to version 2.7.15

Update to the latest stable version

License-Update: Copyright year updated to include 2018

Remove the alignment patch that is included upstream

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopython-numpy: update to 1.14.5
Derek Straka [Sat, 30 Jun 2018 09:52:04 +0000 (05:52 -0400)]
python-numpy: update to 1.14.5

Update to the latest stable release

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopython3-pip: update to version 10.0.1
Derek Straka [Sat, 30 Jun 2018 09:37:20 +0000 (05:37 -0400)]
python3-pip: update to version 10.0.1

License-Update: Update checksum for whitespace (CRLF) changes

Update to the latest stable version

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopython3-git: update to 2.1.10
Derek Straka [Sat, 30 Jun 2018 09:27:03 +0000 (05:27 -0400)]
python3-git: update to 2.1.10

python3-git was updated to the latest stable version

Tested on qemux86-64 using core-image-minimal

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agomesa: add lost Upstream-Status tag
Ross Burton [Wed, 4 Jul 2018 09:21:50 +0000 (10:21 +0100)]
mesa: add lost Upstream-Status tag

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoelfutils: clean up patches
Ross Burton [Wed, 4 Jul 2018 09:15:12 +0000 (10:15 +0100)]
elfutils: clean up patches

In the upgrade a large number of Upstream-Status tags were dropped, so add them
back.  I'm taking the stand that copying a patch Debian is carrying doesn't
count as a backport.

Remove two Debian-specific patches (one for Hurd, one for kfreebsd) so
we're not carrying useless patches.

Remove two patches that are no longer applied.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agobusybox: Add patch to ignore -c on umount command
Fabio Berton [Tue, 3 Jul 2018 19:26:00 +0000 (16:26 -0300)]
busybox: Add patch to ignore -c on umount command

Fix error when umounting filesystem on shutdown with a systemd distro.

See more datails here: [https://github.com/systemd/systemd/issues/7786]

(From OE-Core rev: ae23367c85d1a6c84c25736ac3c9a059acbc8dbe)

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoutil-linux: alternatify fstrim
Rasmus Villemoes [Mon, 2 Jul 2018 13:28:06 +0000 (15:28 +0200)]
util-linux: alternatify fstrim

I hit

update-alternatives: Error: not linking [...]/rootfs/sbin/fstrim to /bin/busybox.nosuid since [...]/rootfs/sbin/fstrim exists and is not a link

The solution seems to be to tell the alternatives system that util-linux
can also provide fstrim.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogo: Update 1.10.2 -> 1.10.3
Otavio Salvador [Tue, 3 Jul 2018 12:34:34 +0000 (09:34 -0300)]
go: Update 1.10.2 -> 1.10.3

go1.10.3 (released 2018/06/05) includes fixes to the go command, and
the crypto/tls, crypto/x509, and strings packages. In particular, it
adds minimal support to the go command for the vgo transition.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogo: Update 1.9.6 -> 1.9.7
Otavio Salvador [Tue, 3 Jul 2018 12:34:33 +0000 (09:34 -0300)]
go: Update 1.9.6 -> 1.9.7

go1.9.7 (released 2018/06/05) includes fixes to the go command, and
the crypto/x509, and strings packages. In particular, it adds minimal
support to the go command for the vgo transition.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agorpm: Avoid leaking temporary scriplet files
Olof Johansson [Tue, 3 Jul 2018 12:00:08 +0000 (14:00 +0200)]
rpm: Avoid leaking temporary scriplet files

RPM writes each package scriptlet (post-/preinstall) to
/var/tmp/rpm-tmp.XXXXXX --- a lot of files potentially gets created.
When debugging is enabled, these temporary scriptlet files aren't
cleaned up at all and after a while this results in the filesystem
resources are eaten up (like running out of available inodes).

Normally, the temporary files would have been written to the tmp
directory of the target sysroot (which we can easily clean up), but in
this tree, you can't necessarily run the scriptlets.

Fixes [YOCTO #12792]

Signed-off-by: Olof Johansson <olofjn@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agofstests: remove
Ross Burton [Tue, 3 Jul 2018 13:29:47 +0000 (14:29 +0100)]
fstests: remove

These tests are very old and there are better benchmarking systems available
now.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoccache: 3.3.5 -> 3.4.2
Robert Yang [Tue, 3 Jul 2018 04:11:57 +0000 (12:11 +0800)]
ccache: 3.3.5 -> 3.4.2

* The license file is changed to LICENSE.adoc, it is still GPLv3+.
* Removed Revert-Create-man-page-in-the-make-install-from-git-.patch, it was
  used for fixing a build failure of no asciidoc, but now there is no such a
  failure, so remove it.
* Refreshed 0002-dev.mk.in-fix-file-name-too-long.patch

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoe2fsprogs: 1.43.8 -> 1.44.2
Robert Yang [Tue, 3 Jul 2018 04:11:54 +0000 (12:11 +0800)]
e2fsprogs: 1.43.8 -> 1.44.2

- Rebased Revert-mke2fs-enable-the-metadata_csum-and-64bit-fea.patch
- Removed backport patch 0001-libext2fs-fix-build-failure-in-swapfs.c-on-big-endia.patch
- The LIC_FILES_CHKSUM changed because it updated the address, others are the same

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoautomake: 1.15.1 -> 1.16.1
Robert Yang [Tue, 3 Jul 2018 04:11:53 +0000 (12:11 +0800)]
automake: 1.15.1 -> 1.16.1

* Refreshed the following patches:
  - 0001-automake-Add-default-libtool_tag-to-cppasm.patch
  - automake-replace-w-option-in-shebangs-with-modern-use-warnings.patch
  - buildtest.patch
  - new_rt_path_for_test-driver.patch
  - performance.patch
  - python-libdir.patch

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomesa: enable surfaceless platform
Ross Burton [Tue, 3 Jul 2018 13:27:21 +0000 (14:27 +0100)]
mesa: enable surfaceless platform

This platform is enabled by default but as we override the platform list doesn't
get enabled.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibdrm: port to Meson
Ross Burton [Tue, 3 Jul 2018 13:04:12 +0000 (14:04 +0100)]
libdrm: port to Meson

Drop the patch to install tests as the Meson build allows this.

Drop the patch to disable cunit as this predates recipe-specific-sysroots and
isn't required anymore.

As Meson always builds the test suite (instead of building before running it),
add a patch to fix compilation with musl.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomeson: validate cpu_family
Ross Burton [Tue, 3 Jul 2018 13:04:11 +0000 (14:04 +0100)]
meson: validate cpu_family

Meson has a defined list of known CPU families but these are not currently
validated, so mistakes in cross files or new architectures are not noticed.

Backport a patch from upstream which warns on unknown architectures, but tweak
it to fatally error instead.  When we upgrade to Meson 0.47 the first half of
this patch can be dropped.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomeson: map architecture to correct values in cross file
Ross Burton [Tue, 3 Jul 2018 13:04:10 +0000 (14:04 +0100)]
meson: map architecture to correct values in cross file

The cross file specifies the host/target cpu_family, which should be one of a
defined set of values[1] but if it isn't Meson won't complain and instead
recipes may behave unexpectedly.

[1] http://mesonbuild.com/Reference-tables.html#cpu-families

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomeson: various class improvements
Ross Burton [Tue, 3 Jul 2018 13:04:09 +0000 (14:04 +0100)]
meson: various class improvements

- Ensure that the PACKAGECONFIG arguments are always in EXTRA_OEMESON

- Log the arguments that are being passed in do_configure.

- Do verbose builds so the compile logs are useful for debugging build problems

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosend-error-report: Fix test for name > 50 chars
Richard Purdie [Wed, 4 Jul 2018 09:40:46 +0000 (10:40 +0100)]
send-error-report: Fix test for name > 50 chars

A name > 50 chars causes a 500 internal server error and should be warned
to the user but the code to do so currently doesn't work. Fix the logic.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosend-error-report: Fix dubious error reporting
Richard Purdie [Wed, 4 Jul 2018 09:35:47 +0000 (10:35 +0100)]
send-error-report: Fix dubious error reporting

Currently this code prints things like:

ERROR: OK

which is unhelpful at best. After this change it would print:

ERROR: HTTP Error 500

which at least gives us something to work on.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomultilib: Tweak previous cross-canadian multilib fix
Richard Purdie [Tue, 3 Jul 2018 22:59:19 +0000 (23:59 +0100)]
multilib: Tweak previous cross-canadian multilib fix

As well as setting RECIPE_SYSROOT we also need to set STAGING_DIR_HOST/TARGET.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agostaging: Always use the default sysroot for allarch recipes
Richard Purdie [Tue, 3 Jul 2018 11:06:37 +0000 (12:06 +0100)]
staging: Always use the default sysroot for allarch recipes

Without this, recipes can't find allarch data files like autoconf-archive.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobind: update to ESV version 9.11.3
Armin Kuster [Sun, 1 Jul 2018 22:52:01 +0000 (15:52 -0700)]
bind: update to ESV version 9.11.3

LIC_FILES_CHKSUM changed do to updated year

removed:
dont-test-on-host.patch, no longer implemented
drop use-python3-and-fix-install-lib-path.patch, they added the ability to pass in lib dir loctions
drop bind-confgen-build-unix.o-once.patch, fix included in update

Refresh other patches:
add python3 flag for PACKAGECONFIG to pull in python
add new config option --with-eddsa=no (needs openssl support not released)

Python support is disaled by default now.

Acked-by: Martin Hundebøll <mnhu@prevas.dk>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodhcp: update 4.4.1
Armin Kuster [Sun, 1 Jul 2018 22:53:20 +0000 (15:53 -0700)]
dhcp: update 4.4.1

include several CVE fixes.
CVE: CVE-2018-5733
CVE: CVE-2018-5732

LIC_CHKSUM_FILE updated to SPFX format

https://kb.isc.org/article/AA-01571

remove several patches now included in update.
Shared libarary support is now enabled in configure+lt, use it
and revert to autotools-brokensep
Refresh patches

Aligns support with bind 9.11.x

Add libxml2 support to configure.ac+lt

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agokernel-devicetree: Corrected normalize_dtb
Paulo Neves [Mon, 2 Jul 2018 15:03:44 +0000 (17:03 +0200)]
kernel-devicetree: Corrected normalize_dtb

The normalize_dtb function was buggy because
it only converted from .dts suffix to .dtb
suffix if the user passed a full source path to
KERNEL_DEVICETREE containing the /dts/ path.
The problem is that if the user did that there
would be a warning.

On the othet hand if user just set the variable
KERNEL_DEVICETREE="file.dts" the bbclass translation
to the respective .dtb target did not occur and
make would fail saying it has no rule to make target
file.dts

This patch decouples the logic of having /dts/ in the
path from the target translation.

Signed-off-by: Paulo Neves <ptsneves@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agowebkitgtk: 2.20.2 -> 2.20.3
Kai Kang [Mon, 2 Jul 2018 01:15:34 +0000 (09:15 +0800)]
webkitgtk: 2.20.2 -> 2.20.3

Upgrade webkitgtk from 2.20.2 to 2.20.3.
* update context of 0001-WebKitMacros-Append-to-I-and-not-to-isystem.patch
* remove detect-atomics-during-configure.patch that webkitgtk 2.20.3
  contains the commit of better solution, see
  https://bugs.webkit.org/show_bug.cgi?id=161900#c9

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoghostscript: fix CVE-2018-10194
Hongxu Jia [Mon, 2 Jul 2018 08:18:38 +0000 (16:18 +0800)]
ghostscript: fix CVE-2018-10194

https://nvd.nist.gov/vuln/detail/CVE-2018-10194

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoncurses: 6.1 -> 6.1+20180630
Hongxu Jia [Mon, 2 Jul 2018 05:57:13 +0000 (13:57 +0800)]
ncurses: 6.1 -> 6.1+20180630

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agolibgcrypt: 1.8.2 -> 1.8.3
Hongxu Jia [Mon, 2 Jul 2018 05:57:12 +0000 (13:57 +0800)]
libgcrypt: 1.8.2 -> 1.8.3

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agohelp2man-native: 1.47.5 -> 1.47.6
Hongxu Jia [Mon, 2 Jul 2018 05:57:11 +0000 (13:57 +0800)]
help2man-native: 1.47.5 -> 1.47.6

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoman-pages: 4.14 -> 4.16
Hongxu Jia [Mon, 2 Jul 2018 05:57:10 +0000 (13:57 +0800)]
man-pages: 4.14 -> 4.16

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoelfutils: 0.170 -> 0.172
Hongxu Jia [Mon, 2 Jul 2018 05:57:09 +0000 (13:57 +0800)]
elfutils: 0.170 -> 0.172

- Update debian 0.170 patches and rebase them for 0.172;

- Drop 0001-Use-fallthrough-attribute.patch which was
  accepted by upstream;

- Drop 0001-Ensure-that-packed-structs-follow-the-gcc-memory-lay.patch
  which was backported from upstream;

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoman-db: 2.8.2 -> 2.8.3
Hongxu Jia [Mon, 2 Jul 2018 05:57:08 +0000 (13:57 +0800)]
man-db: 2.8.2 -> 2.8.3

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agogpgme: 1.10.0 -> 1.11.1
Hongxu Jia [Mon, 2 Jul 2018 05:57:07 +0000 (13:57 +0800)]
gpgme: 1.10.0 -> 1.11.1

License-Update: copyright years updated 2001-2017 -> 2001-2018

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agognupg: 2.2.5 -> 2.2.8
Hongxu Jia [Mon, 2 Jul 2018 05:57:06 +0000 (13:57 +0800)]
gnupg: 2.2.5 -> 2.2.8

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agorecipetool: add 'edit' subcommand
Christopher Larson [Thu, 21 Jun 2018 21:09:34 +0000 (02:09 +0500)]
recipetool: add 'edit' subcommand

This edits the recipe and any bbappends for the specified target.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agokernel-fitimage: Make DTB key insertion optional
Alex Kiernan [Wed, 20 Jun 2018 04:23:19 +0000 (04:23 +0000)]
kernel-fitimage: Make DTB key insertion optional

If UBOOT_DTB_BINARY is empty, then don't try inserting the U-Boot
signing keys into the DTB. In this configuration the keys are expected
to be already present in U-Boot's DTB.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agonspr: Add RISC-V support
Alistair Francis [Thu, 21 Jun 2018 21:26:48 +0000 (14:26 -0700)]
nspr: Add RISC-V support

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoqemu: Add RISC-V support
Alistair Francis [Thu, 21 Jun 2018 21:26:47 +0000 (14:26 -0700)]
qemu: Add RISC-V support

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agooe.path: add which_wild function
Christopher Larson [Thu, 21 Jun 2018 21:08:19 +0000 (02:08 +0500)]
oe.path: add which_wild function

This is a function much like shutil.which or bb.utils.which, retaining
shutil.which-like function semantics, bb.utils.which's support for
returning available candidates for signatures, and most importantly,
supports wildcards, returning only the first occurrance of each found
pathname in the search path.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agomultilib: Fix issues with some cross-canadian toolchain sysroots
Richard Purdie [Mon, 2 Jul 2018 16:03:21 +0000 (17:03 +0100)]
multilib: Fix issues with some cross-canadian toolchain sysroots

MACHINE = "qemumips64"
MULTILIBS = "multilib:lib64 multilib:lib32"
DEFAULTTUNE = "mips64-n32"
DEFAULTTUNE_virtclass-multilib-lib64 = "mips64"
DEFAULTTUNE_virtclass-multilib-lib32 = "mips32r2"

bitbake core-image-minimal -c populate_sdk

Results in gcc-cross-canadian-mips failing to build due to the use
of an incorrect sysroot, fix this. All nativesdk pieces should be in
the same sysroot (unprefixed).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agostaging: Improve fixup processing code
Richard Purdie [Mon, 2 Jul 2018 12:43:50 +0000 (12:43 +0000)]
staging: Improve fixup processing code

With the fixes to other parts of multilib, it was found that the fixup code's
assumptions about the recipe sysroot were incorrect. We need to use the value
calculated earlier in the function.

It turns out there is a rather neat way to do this which cleans up the code
as an added bonus.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolib/oe/sstatesig: Fix task mappings from multilib<->non-multilib contexts
Richard Purdie [Mon, 2 Jul 2018 09:05:17 +0000 (09:05 +0000)]
lib/oe/sstatesig: Fix task mappings from multilib<->non-multilib contexts

If we're in a multilib context already and want a non-multilib context
this function returned incorrect values.

Try and retain optimisations for the common case not needing to request
a datastore but allow the different multilib/non-multilib combinations
to work too.

This fixes bugs where rootfs generation of a multilib image would
write into incorrect locations, or be unable to find sstate manifest
files due to incorrect data stores being used to expand data.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoclasses/utils: Improve all_multilib_tune_values
Richard Purdie [Mon, 2 Jul 2018 08:59:34 +0000 (08:59 +0000)]
classes/utils: Improve all_multilib_tune_values

Currently there is duplication in the code, we can clean this up
by extending the multilib variants list.

This code also currently fails its its called from an existing multilib
context since its assumes the data store passed in is the non-multilib
case. When building an image, say lib32-core-image-sato, this leads to
incorrect PATH values.

To fix this, we also request a data store for the "" variant allowing
this corner case to be fixed and for the function to correctly return
values for each multilib even when a multilib is already selected.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agostaging/image: Fix multilib recipe sysroot issues
Richard Purdie [Fri, 29 Jun 2018 16:33:26 +0000 (16:33 +0000)]
staging/image: Fix multilib recipe sysroot issues

Currently if you enable multilib, then build an image, the multilib
recipe sysroot is build in the wrong WORKDIR. If you then clean and
rebuild the image you see "file exists" errors.

This patch ensures the real WORKDIR is used consistently and then
cleans/rebuilds also work correctly.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolib/oe/utils: Improve get_multilib_datastore
Richard Purdie [Mon, 2 Jul 2018 09:03:12 +0000 (09:03 +0000)]
lib/oe/utils: Improve get_multilib_datastore

Currently this function assumes that no multilib is applied and that
we're applying a multilib. This means if we're in multilib context
and want the non-multilib context we can't obtain it (and no other
function exists for this either).

Improve the function to allow this to be requested.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooe-selftest: Add bitbake-layer create-layer test
Joshua Watt [Sat, 30 Jun 2018 16:16:37 +0000 (11:16 -0500)]
oe-selftest: Add bitbake-layer create-layer test

Adds a test that creates a layer, adds it to bblayers.conf, then ensure
that it appears properly in bitbake-layers show-layers.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopostinst-intercepts: do not execute any variant of delay_to_first_boot
Joe Slater [Thu, 21 Jun 2018 18:22:17 +0000 (11:22 -0700)]
postinst-intercepts: do not execute any variant of delay_to_first_boot

As of commit 2c5c6e3ff we create multilib variants of intercept
hooks but we did not account for delay_to_first_boot variants.
This was covered up until commit a335e7867, but will now cause
an error.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolicense: Fix and extend recommendations for license packages.
Alp Özmert [Fri, 29 Jun 2018 15:41:02 +0000 (17:41 +0200)]
license: Fix and extend recommendations for license packages.

Changed package recommendations so that the license package of a
recipe is recommended for all packages of a recipe instead of for one
package given by the recipe name.

Pre-patch behaviour results in a missing recommendation when a recipe
does not have a package with the same name.

Signed-off-by: Alp Özmert <info@ib-oezmert.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agorecipes-kernel/linux: Enable NUMA Kconfig from MACHINE_FEATURES
Alistair Francis [Fri, 25 May 2018 15:56:36 +0000 (08:56 -0700)]
recipes-kernel/linux: Enable NUMA Kconfig from MACHINE_FEATURES

If the user has set numa in their MACHINE_FEATURES we should enable
NUMA support in the kernel config.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Acked-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython*-setuptools: update to 39.2.0
Derek Straka [Fri, 29 Jun 2018 21:26:04 +0000 (17:26 -0400)]
python*-setuptools: update to 39.2.0

Update the python{3}-setuptools to the latest stable version

Tested on the qemu with core-image-minimal

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomesa: Upgrade 18.1.2 -> 18.1.3
Otavio Salvador [Fri, 29 Jun 2018 21:01:41 +0000 (18:01 -0300)]
mesa: Upgrade 18.1.2 -> 18.1.3

This upgrades mesa to the 18.1.3 stable release.

The changes can be found at:

https://www.mesa3d.org/relnotes/18.1.3.html

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/runtime: Add testcases for kernel sample
Hongzhi.Song [Fri, 29 Jun 2018 06:16:20 +0000 (02:16 -0400)]
oeqa/runtime: Add testcases for kernel sample

We are going to let runtime test support kernel tests. Now we just add
kernel self-contained sample tests. And we plan to add overall kernel
tests in the future.

This patch is just add kernel samples test which contains about 13 tests
enabled by kernel-sample.scc. So it needs statement,
KERNEL_FEATURES_append += " features/kernel-sample/kernel-sample.scc" in
local.conf.

Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-yocto: Enable kernel-sample features for runtime tests
Hongzhi.Song [Fri, 29 Jun 2018 06:16:19 +0000 (02:16 -0400)]
linux-yocto: Enable kernel-sample features for runtime tests

Enable kernel-sample features by default with the machine of qemu.

Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoxtrans: Fix multilib .pc file conflict
Richard Purdie [Fri, 29 Jun 2018 08:02:16 +0000 (08:02 +0000)]
xtrans: Fix multilib .pc file conflict

Error: Transaction check error:
  file /usr/share/pkgconfig/xtrans.pc from install of lib32-xtrans-dev-1:1.3.5-r0.core2_32 conflicts with file from package xtrans-dev-1:1.3.5-r0.core2_64

[YOCTO #12511]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython3: fix file conflict when multilib enabled
Zhang Xiao [Mon, 12 Mar 2018 09:12:58 +0000 (02:12 -0700)]
python3: fix file conflict when multilib enabled

Config file python3.5m-config conflicts between 32 and 64 bit packages.
Use update-alternatives to add base_libdir as suffix to avoid it.

[YOCTO #12511]

Signed-off-by: Zhang Xiao <xiao.zhang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoinitrdscripts/init-live.sh: fix mounts w/ spaces fail to move to real rootfs
Arsalan H. Awan [Thu, 28 Jun 2018 14:16:36 +0000 (19:16 +0500)]
initrdscripts/init-live.sh: fix mounts w/ spaces fail to move to real rootfs

When there are spaces in the mount points of devices e.g.:

 a partition mounted at "/run/media/My Root Partition-sda1",

the initrd fails to move such mount points over to the
corresponding directories at /media under the real root filesystem,
and the mount points would appear at the same location as they were
mounted on when detected by initrd, for example:
 here: "/run/media/My Root Partition-sda1"
 instead of here: "/media/My Root Partition-sda1"

This causes issues such as:

  * The disks/partitions cannot be formated with any filesystem
    using e.g. mkfs.ext4 or mke2fs in general. When tried to do so
    by making sure the device is not mounted, it failed with
    errors such as:

    > /dev/sda1 is apparently in use by the system; will not make a
      filesystem here!
    > /dev/sda1: Device or resource busy while setting up superblock

  * The read/write operations become extremely slow. e.g. Under testing,
    it took approx. 2 hours just to copy 700 MB of data to the partition,
    and it took more than 40 minutes to delete that data from it.
    Same operations took under 5 minutes on a partition that had no
    spaces in its mount point (or that was successfully moved to real
    root by initrd and appeared under /media instead of /run/media).

This commit fixes such issues by quoting the arguments of failing mount
move commands and by parsing OCT or HEX encoded special characters
such as spaces to ASCII charecters in the mount points as kernel
populates the procfs like so.

Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake-bblayers/create: Fix layer name generation
Joshua Watt [Thu, 28 Jun 2018 17:53:41 +0000 (12:53 -0500)]
bitbake-bblayers/create: Fix layer name generation

The path to where the layer was being created was taken verbatim as the
name of the layer when generating the layer.conf and README files from
templates. This causes problems in the layer.conf file because it would
result in strangely named variables like

 BBFILE_PATTERN_../my-layer = "..."

Instead of blindly taking the path, use the name of the last component
of the path as the layer name.

Additionally, rework the template files to use python format strings
with named parameters so that the same argument doesn't have to be
repeated multiple times.

[YOCTO #12808]

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibsdl2: fix build race
Ross Burton [Thu, 28 Jun 2018 17:47:45 +0000 (18:47 +0100)]
libsdl2: fix build race

There's an occasional build race from headers being generated in parallel with
other files which include the headers being compiled.  Solve this by adding more
dependencies.

[ YOCTO #12815 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibsoup: fix CVE-2018-12910
Ross Burton [Thu, 28 Jun 2018 17:37:54 +0000 (18:37 +0100)]
libsoup: fix CVE-2018-12910

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoopenssl: disable ccache usage
Ross Burton [Thu, 28 Jun 2018 14:44:09 +0000 (15:44 +0100)]
openssl: disable ccache usage

ccache and openssl don't get on:

| make[1]: Entering directory '/home/prj/yocto/build/tmp/work/core2-64-poky-linux/openssl/1.0.2o-r0/openssl-1.0.2o/crypto'
| ccache: invalid option -- 'D'

Disable the use of ccache in the openssl recipe until someone root-causes this.

[ YOCTO #12810 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agowic: isoimage-isohybrid: debloat image of redundant rootfs
Ioan-Adrian Ratiu [Thu, 28 Jun 2018 13:58:33 +0000 (16:58 +0300)]
wic: isoimage-isohybrid: debloat image of redundant rootfs

There's no reason to have that rootfs.img filesystem in the image:
it's not used for anything because both the EFI and legacy boot paths
use the /initrd which contains the same contents as the rootfs.img,
only compressed. It was probably forgotten in there :)

My iso went down from 224 to 94 mb.

Tested using UEFI/legacy boots on CD-roms, usb dongle and qemu VM's.

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agowic: isoimage-isohybrid: fix UEFI spec breakage
Ioan-Adrian Ratiu [Thu, 28 Jun 2018 13:58:32 +0000 (16:58 +0300)]
wic: isoimage-isohybrid: fix UEFI spec breakage

It's really good that OE supports multiple EFI_PROVIDERs and that
commit 9a1709278de87 ("wic: isoimage-isohybrid: use grub-efi from
deploy dir") makes re-use of the grub-efi built image, but we should
still respect the standard otherwise the ISO will not boot, so install
grub images as boot[x64|ia32].efi not ${PN}-boot[x64|ia32].efi.

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agokmscube: Update to master from 2018-06-17
Daniel Díaz [Thu, 28 Jun 2018 13:56:28 +0000 (08:56 -0500)]
kmscube: Update to master from 2018-06-17

Changes from 0d8de4ce:
  c2d4ba8 drm-legacy: fix poll for flip event, actually exit on user input
  56c3917 formats: use weston's egl config matching logic, centralize format
  aac3788 Rework default modifier handling
  4f7cec0 Use weak functions to handle lack of gbm modifiers
  98f31bf cube-tex: make use of modifiers
  063ce5c gbm: fix fallback for drivers that don't support modifiers
  9dcce71 add MSAA

Also refresh gbm_bo_map/_unmap patch.

Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomesa: Fix parallel make race
Richard Purdie [Thu, 28 Jun 2018 13:39:35 +0000 (13:39 +0000)]
mesa: Fix parallel make race

Builds keep failing with a race over the generated header file, fix it!

[YOCTO #12828]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agognu-efi: update to 3.0.8
Yi Zhao [Thu, 28 Jun 2018 07:39:49 +0000 (15:39 +0800)]
gnu-efi: update to 3.0.8

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodebianutils: update to 4.8.6
Yi Zhao [Thu, 28 Jun 2018 07:39:48 +0000 (15:39 +0800)]
debianutils: update to 4.8.6

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibbsd: update to 0.9.1
Yi Zhao [Thu, 28 Jun 2018 07:39:47 +0000 (15:39 +0800)]
libbsd: update to 0.9.1

License-Update: update COPYING file format

Drop 0001-Replace-__BEGIN_DECLS-and-__END_DECLS.patch and
0002-Remove-funopen.patch since they are already fixed upstream.

Backport 0001-flopen-Add-missing-fcntl.h-include.patch to fix build with
musl.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agofile: update to 5.33
Yi Zhao [Thu, 28 Jun 2018 07:39:46 +0000 (15:39 +0800)]
file: update to 5.33

Drop 0001-Add-P-prompt-into-Usage-info.patch since it is already fixed
upstream.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake.conf: Allow BBINCLUDED to be unset
Richard Purdie [Thu, 28 Jun 2018 11:25:12 +0000 (12:25 +0100)]
bitbake.conf: Allow BBINCLUDED to be unset

For some reason the layer index is expanding HOSTTOOLS before BBINCLUDED is
set so recent changes break it. This adds in a simple workaround to stop it b
reaking allowing the index to function correctly again.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomaintainers.inc: recipes cleanup
Yi Zhao [Thu, 28 Jun 2018 02:52:27 +0000 (10:52 +0800)]
maintainers.inc: recipes cleanup

Cleanup the recipes which had been removed from oe-core.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake.conf: handle cmake -dev files packaging with default rules
Andre McCurdy [Tue, 26 Jun 2018 19:48:11 +0000 (12:48 -0700)]
bitbake.conf: handle cmake -dev files packaging with default rules

Move packaging rules for cmake -dev files from cmake.bbclass into
bitbake.conf to handle recipes (e.g. harfbuzz 1.8.1) which build with
autotools but also install cmake -dev files.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglib: remove unnecessary dependency to DISTRO_FEATURES
Samuli Piippo [Tue, 26 Jun 2018 07:59:51 +0000 (10:59 +0300)]
glib: remove unnecessary dependency to DISTRO_FEATURES

Since DISTRO_FEATURES was expanded in the comments, it created
task dependency to the full content of DISTRO_FEATURES, instead
of just the x11 used below. This prevented reuse of sstate-cache
when unrelated feature flags were changed.

Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoarch-armv7a.inc: default to Thumb2 instruction set for armv7a and above
Andre McCurdy [Fri, 18 May 2018 22:50:40 +0000 (15:50 -0700)]
arch-armv7a.inc: default to Thumb2 instruction set for armv7a and above

Although there may still be specific cases which can benefit from the
ARM instruction set, the Thumb2 instruction set is generally a better
default for armv7a class CPUs. Distros such as Debian and Fedora have
been targeting Thumb2 by default for some time.

Note that setting ARM_INSTRUCTION_SET has no effect unless
TUNE_FEATURES contains "thumb" (which is controlled by the "t" suffix
in DEFAULTTUNE, e.g. armv7vehf-neon -vs- armv7vethf-neon, etc) so out
of tree machine configs may need to update their DEFAULTTUNE to take
advantage of this change.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoinsane.bbclass: Don't let warnings make previous errors non-fatal
Olof Johansson [Mon, 25 Jun 2018 11:34:46 +0000 (13:34 +0200)]
insane.bbclass: Don't let warnings make previous errors non-fatal

package_qa_handle_error() returns True on non-fatal issues and False on
fatal issues. But the current usage has been to do

  sane = package_qa_handle_error(...)

which would always reset sanity status to be that of the last issue
identified. This change the assignments to use the &= operator instead:

  sane &= package_qa_handle_error(...)

As far as I can tell, this is not a real problem in practice, because
warnings of different levels (WARN_QA, ERROR_QA) does not seem to have
been mixed in a way that triggered this issue.

Signed-off-by: Olof Johansson <olofjn@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoinsane.bbclass: Make missing license file fatal
Olof Johansson [Mon, 25 Jun 2018 11:34:45 +0000 (13:34 +0200)]
insane.bbclass: Make missing license file fatal

If a license file referenced from LIC_FILES_CHKSUM doesn't exist,
insane.bbclass would output an error message, but would continue the
build. This change makes this error fatal (as I suspect has been the
intention).

Signed-off-by: Olof Johansson <olofjn@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglibc: fix CVE-2018-11237
Zheng Ruoqin [Tue, 26 Jun 2018 05:44:17 +0000 (13:44 +0800)]
glibc: fix CVE-2018-11237

glibc: fix CVE-2018-11237

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogcc-8: define GLIBC_DYNAMIC_LINKER relative to SYSTEMLIBS_DIR on riscv
Ricardo Salveti [Tue, 26 Jun 2018 01:01:05 +0000 (22:01 -0300)]
gcc-8: define GLIBC_DYNAMIC_LINKER relative to SYSTEMLIBS_DIR on riscv

Refresh 0014-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch
to also define GLIBC_DYNAMIC_LINKER relative to SYSTEMLIBS_DIR on riscv.

Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomaintainers: assign systemtap to Victor Kanensky
Ross Burton [Tue, 26 Jun 2018 11:44:30 +0000 (12:44 +0100)]
maintainers: assign systemtap to Victor Kanensky

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agokernel: Set SOURCE_DATE_EPOCH to kernel git timestamp if not set
Alex Kiernan [Tue, 26 Jun 2018 12:08:56 +0000 (12:08 +0000)]
kernel: Set SOURCE_DATE_EPOCH to kernel git timestamp if not set

If SOURCE_DATE_EPOCH is unset (in addition to the existing "0" behaviour)
parse out the top most commit timestamp from the kernel tree to use as the
timestamp.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoimage: Set COREBASE as the git directory for timestamp
Alex Kiernan [Tue, 26 Jun 2018 12:08:55 +0000 (12:08 +0000)]
image: Set COREBASE as the git directory for timestamp

When REPRODUCIBLE_TIMESTAMP_ROOTFS is unset and we want to parse one
from git, use COREBASE as the base for the git command so we have a
known repository which we're using. Without this the build may fail
if the current directory is not part of a git repository.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodb: drop legacy ARM specific SWP based mutex optimisation
Andre McCurdy [Tue, 26 Jun 2018 20:24:55 +0000 (13:24 -0700)]
db: drop legacy ARM specific SWP based mutex optimisation

Although the ARM SWP instruction may exist for ARMv6 and above, it's
not guaranteed to work, especially on SMP systems where it's use may
lead to instability at runtime, etc:

  https://community.arm.com/processors/b/blog/posts/locks-swps-and-two-smoking-barriers

Keeping the optimisation for architecture levels which pre-date SMP
(ie <= ARMv5) may be safe, however other distros (Buildroot, Debian,
Fedora, etc) are not doing so and mutex contention is likely to be
less of an issue on uniprocessor systems anyway, so the benefits of
this micro optimisations are not clear. Since OE uses ARMv5 qemu as
a proxy for testing all 32bit ARM architecture levels, it's desirable
to keep the ARMv5 builds aligned with later ARM architecture levels
wherever possible.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomdadm: fix one more issue when building with gcc8
Martin Jansa [Fri, 22 Jun 2018 00:27:56 +0000 (00:27 +0000)]
mdadm: fix one more issue when building with gcc8

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosystemd: escape paths passed to shell
Damien Riegel [Fri, 22 Jun 2018 18:43:02 +0000 (14:43 -0400)]
systemd: escape paths passed to shell

Systemd mount configuration file must have a name that match the mount
point directory they control. So for instance, if a mount file contains

    [Mount]
    ...
    Where=/mnt/my-data

The file must be named `mnt-my\x2ddata.mount`, or systemd will refuse to
honour it.

If this config file contains an [Install] section, it will silently fail
because the unit file is not escaped properly when systemctl is called.
To fix that, make sure paths are escaped through `shlex.quote`.

Signed-off-by: Damien Riegel <damien.riegel@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoutil-linux: Enable unshare utility
Otavio Salvador [Fri, 22 Jun 2018 18:29:31 +0000 (15:29 -0300)]
util-linux: Enable unshare utility

It allows to run program with some namespaces unshared from parent.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agonss: update to 3.37.1
Armin Kuster [Mon, 25 Jun 2018 02:33:33 +0000 (19:33 -0700)]
nss: update to 3.37.1

remove Fix-compilation-for-X32.patch as a solution simular is included in update.

notable changes:
The TLS 1.3 implementation was updated to Draft 28.
The CA certificates list was updated to version 2.24.

refresh patches
fix 32 bit build error nss bug: https://bugzilla.mozilla.org/show_bug.cgi?format=default&id=1459739

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agofindutils: Refresh patches with devtool
Khem Raj [Sun, 24 Jun 2018 19:09:06 +0000 (12:09 -0700)]
findutils: Refresh patches with devtool

We get fuzz warnings when applying these patches and devtool
reports it

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoupdate-rc.d: Add nativesdk
Zheng Ruoqin [Sat, 23 Jun 2018 19:52:59 +0000 (03:52 +0800)]
update-rc.d: Add nativesdk

Add nativesdk for update-rc.d.

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocreaterepo-c: Add nativesdk
Zheng Ruoqin [Sat, 23 Jun 2018 19:52:58 +0000 (03:52 +0800)]
createrepo-c: Add nativesdk

Add nativesdk for createrepo-c.

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibnewt-python: Add nativesdk
Zheng Ruoqin [Sat, 23 Jun 2018 19:52:56 +0000 (03:52 +0800)]
libnewt-python: Add nativesdk

Add nativesdk for libnewt-python.

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibnewt: Add nativesdk
Zheng Ruoqin [Sat, 23 Jun 2018 19:52:55 +0000 (03:52 +0800)]
libnewt: Add nativesdk

Add nativesdk for libnewt.

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>