]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
6 years agogcc: Fix specs generation for ARC
Alexey Brodkin [Thu, 20 Sep 2018 20:42:32 +0000 (23:42 +0300)]
gcc: Fix specs generation for ARC

GCC's built-in spec for LD is missing a space after
"--eh-frame-hdr" thus with the next option merged together they
are not understood by LD and so LD fails.

Back-port from upstream GCC, see:
https://github.com/gcc-mirror/gcc/commit/892142379c6b99fe8c3ebdfe0b79e2a435228c1d

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoglibc: fix Segmentation fault in gethostid.c
Mingli Yu [Fri, 21 Sep 2018 03:43:10 +0000 (11:43 +0800)]
glibc: fix Segmentation fault in gethostid.c

Linux gethostid: Check for NULL value from gethostbyname_r [BZ #23679]

A NULL value can happen with certain gethostbyname_r failures.

Before this patch, there is a Segmentation fault
as below:
 # /mybuild/hostid
 Segmentation fault
 # gdb /mybuild/hostid
 GNU gdb (GDB) 8.2
 Copyright (C) 2018 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.
 Type "show copying" and "show warranty" for details.
 This GDB was configured as "x86_64-wrs-linux".
 Type "show configuration" for configuration details.
 For bug reporting instructions, please see:
 <http://www.gnu.org/software/gdb/bugs/>.
 Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

 For help, type "help".
 Type "apropos word" to search for commands related to "word"...
 Reading symbols from /mybuild/hostid...done.
 (gdb) r
 Starting program: /mybuild/hostid

 Program received signal SIGSEGV, Segmentation fault.
 0x00007ffff7f0330e in gethostid () at ../sysdeps/unix/sysv/linux/gethostid.c:125
 125   memcpy (&in, hp->h_addr,
 (gdb) bt
 #0  0x00007ffff7f0330e in gethostid () at ../sysdeps/unix/sysv/linux/gethostid.c:125
 #1  0x0000555555555159 in main ()

 # cat /mybuild/hostid.c
 #include <stdio.h>
 #include <unistd.h>

 int
 main(int argc, char *argv[])
 {
    long hostid;
    hostid = gethostid();
    printf("the hostid is %ld\n", hostid);

 }

Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agositeinfo.bbclass: Add LatticeMico32 architecture site info
Nathan Rossi [Fri, 21 Sep 2018 06:27:31 +0000 (06:27 +0000)]
siteinfo.bbclass: Add LatticeMico32 architecture site info

Add the basic architecture site info targets for the LatticeMico32
architecture. This architecture does not target Linux.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoqemu-targets.inc: Mark 'lm32' as softmmu only architecture
Nathan Rossi [Fri, 21 Sep 2018 06:27:31 +0000 (06:27 +0000)]
qemu-targets.inc: Mark 'lm32' as softmmu only architecture

The lm32 architecture does not support linux-user within QEMU as it is
not a Linux supported target.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agolib/oe/elf.py: Add LatticeMico32 architecture definition
Nathan Rossi [Fri, 21 Sep 2018 06:27:31 +0000 (06:27 +0000)]
lib/oe/elf.py: Add LatticeMico32 architecture definition

Add the ELF definition for the LaticeMico32 architecture. This
architecture is 'elf' OS only as it does not target Linux.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agolibgloss_3.0.0.bb: Ensure ${D}${libdir} exists installing content
Nathan Rossi [Fri, 21 Sep 2018 06:24:32 +0000 (06:24 +0000)]
libgloss_3.0.0.bb: Ensure ${D}${libdir} exists installing content

Some targets do not populate any content into libdir, so make sure it is
created before attempting to move files/directories into it.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agogcc: Disable libitm for ARC
Alexey Brodkin [Thu, 20 Sep 2018 20:42:30 +0000 (23:42 +0300)]
gcc: Disable libitm for ARC

The libitm is not supported on ARC, so disable it

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoicu: Add ARC support
Alexey Brodkin [Thu, 20 Sep 2018 20:42:29 +0000 (23:42 +0300)]
icu: Add ARC support

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agonspr: Add ARC support
Antoine Tenart [Thu, 20 Sep 2018 20:42:27 +0000 (23:42 +0300)]
nspr: Add ARC support

[Alexey: Rebased on top of other patches like RiscV, NIOS2 etc]

Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoopenssl: Add support for ARC
Alexey Brodkin [Thu, 20 Sep 2018 20:42:26 +0000 (23:42 +0300)]
openssl: Add support for ARC

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agokernel-arch.bbclass: Add ARC to kernel arch map
Alexey Brodkin [Thu, 20 Sep 2018 20:42:25 +0000 (23:42 +0300)]
kernel-arch.bbclass: Add ARC to kernel arch map

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agositeinfo: Define data for ARC
Alexey Brodkin [Thu, 20 Sep 2018 20:42:24 +0000 (23:42 +0300)]
siteinfo: Define data for ARC

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agop11-kit: Add PACKAGECONFIG for trust paths
Alex Kiernan [Thu, 20 Sep 2018 15:06:06 +0000 (15:06 +0000)]
p11-kit: Add PACKAGECONFIG for trust paths

Add trust-paths PACKAGECONFIG item which enables support for default
trust-paths in /etc/ssl/certs/ca-certificates.crt

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agop11-kit: Upgrade from 0.22.1 -> 0.23.14
Alex Kiernan [Thu, 20 Sep 2018 15:06:05 +0000 (15:06 +0000)]
p11-kit: Upgrade from 0.22.1 -> 0.23.14

p11-kit is no longer doing odd/even for development/stable releases, so
drop the custom UPSTREAM_CHECK_GITTAGREGEX.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agolibsolv: make rpm optional
Max Kellermann [Thu, 20 Sep 2018 13:16:23 +0000 (15:16 +0200)]
libsolv: make rpm optional

Signed-off-by: Max Kellermann <max.kellermann@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoclutter: simplify SRC_URI
Ross Burton [Fri, 21 Sep 2018 09:56:56 +0000 (10:56 +0100)]
clutter: simplify SRC_URI

The Clutter class's ability to switch between tarballs and git isn't really
useful, so remove it.  If it comes back, it should use the devupstream class.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agomobile-broadband-provider: fix SRC_URI
Anuj Mittal [Fri, 21 Sep 2018 00:41:51 +0000 (08:41 +0800)]
mobile-broadband-provider: fix SRC_URI

Fixes build for older versions of git which don't follow redirects
properly if the .git suffix is missing.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agomesa: enable virgl driver for qemux86/qemux86-64
Ming Liu [Wed, 19 Sep 2018 03:26:41 +0000 (05:26 +0200)]
mesa: enable virgl driver for qemux86/qemux86-64

virgl driver should be enabled for qemux86/qemux86-64 machines, or else
it will cause runtime issue due to virtio_gpu driver missing.

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopseudo: update to latest HEAD
Ross Burton [Thu, 20 Sep 2018 21:18:13 +0000 (22:18 +0100)]
pseudo: update to latest HEAD

This incorporates two fixes for large inodes, which hopefully solves some of the
rare mysterious behaviour.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoxserver-xorg: rewrite xorg-server.m4 patch
Ross Burton [Thu, 20 Sep 2018 19:19:05 +0000 (20:19 +0100)]
xserver-xorg: rewrite xorg-server.m4 patch

Instead of having a patch that upstream won't accept, rewrite it in a
upstreamable way and <gasp> submit it upstream.

The fundamental problem is that pkg-config --variable=sdkdir will return the
value of sdkdir literally, whereas --cflags will return -I${sdkdir} *but* will
do sysroot relocation magic on the path so it is usable.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoxserver-xorg: remove obsolete patch
Ross Burton [Thu, 20 Sep 2018 16:13:46 +0000 (17:13 +0100)]
xserver-xorg: remove obsolete patch

This patch is forcing input to use SIGIO, despite the fact that since 2015
xserver has used an input thread.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopython3: remove specal handling of sqite3-tests
Ross Burton [Fri, 14 Sep 2018 11:28:21 +0000 (12:28 +0100)]
python3: remove specal handling of sqite3-tests

This package doesn't exist anymore so the manifest tool doesn't need to handle
it specially.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopython3: consolidate tests
Ross Burton [Fri, 14 Sep 2018 11:27:46 +0000 (12:27 +0100)]
python3: consolidate tests

Currently the bulk of the tests in python3-tests, some more in
python3-sqlite3-tests, and others in their parent module (such as
python3-ctypes).  This is pointless space usage if we're not planning on running
the tests, so consolidate all the tests into python3-tests.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopython3: respect package order in manifest
Ross Burton [Fri, 14 Sep 2018 11:09:34 +0000 (12:09 +0100)]
python3: respect package order in manifest

Don't sort the manifest when using it to generate packaging rules, so ordering
can be used to have complex packaging rules.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopython3: don't sort the manifest in create_manifest
Ross Burton [Fri, 14 Sep 2018 11:08:10 +0000 (12:08 +0100)]
python3: don't sort the manifest in create_manifest

Instead of sorting the entire manifest when it is updated, use OrderedDict to
preserve the order of fields.  This means that packages can be ordered in the
manifest to allow non-trivial FILES assignments (such as a package that picks up
pieces of other packages)

The manifest has been regenerated with the new stable ordering, and
distutils-staticdev moved above distutils so the packaging rules work as
expected.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopython: consolidate tests
Andrew Geissler [Wed, 19 Sep 2018 16:22:29 +0000 (09:22 -0700)]
python: consolidate tests

Currently the bulk of the tests in python-tests, some more in
python-sqlite3-tests, and others in their parent module (such as
python-ctypes).  This is pointless space usage if we're not planning on
running the tests, so consolidate all the tests into python-tests.

This is a backport of the same changes done by Ross Burton for python3

Changes since v1:
- Rebase

Signed-off-by: Andrew Geissler <geissonator@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopython: respect package order in manifest
Andrew Geissler [Wed, 19 Sep 2018 16:22:28 +0000 (09:22 -0700)]
python: respect package order in manifest

Don't sort the manifest when using it to generate packaging rules, so
ordering can be used to have complex packaging rules.

This is a backport of the same changes done by Ross Burton for python3

Changes since v1:
- Rebase

Signed-off-by: Andrew Geissler <geissonator@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopython: don't sort the manifest in create_manifest
Andrew Geissler [Wed, 19 Sep 2018 16:22:27 +0000 (09:22 -0700)]
python: don't sort the manifest in create_manifest

Instead of sorting the entire manifest when it is updated, use
OrderedDict to preserve the order of fields.This means that
packages can be ordered in the manifest to allow non-trivial
FILES assignments (such as a package that picks up pieces of
other packages)

The manifest has been regenerated with the new stable ordering, and
distutils-staticdev moved above distutils so the packaging rules work as
expected.

This is a backport of the same changes done by Ross Burton for python3

Changes since v1:
- Moved distutils-staticdev above distutils so packaging rules work
as expected.
Changes since v2:
- Rebase

Signed-off-by: Andrew Geissler <geissonator@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agodistutils{, 3}.bbclass: improve error messages
Jens Rehsack [Wed, 19 Sep 2018 09:24:13 +0000 (11:24 +0200)]
distutils{, 3}.bbclass: improve error messages

For non-python developers it's difficult to identify where start
searching in case of errors. Fixing and marking the string to
grep for might help finding some root causes of issues slightly
quicker.

Signed-off-by: Jens Rehsack <sno@netbsd.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agogpgme: Inherit from distutils-common-base
Alex Kiernan [Mon, 17 Sep 2018 17:33:00 +0000 (17:33 +0000)]
gpgme: Inherit from distutils-common-base

Inherit from distutils-common-base and pythonnative/python3native to
avoid runtime dependency on Python, whilst still fixing clang builds.

Fixes: 8bfb54edc6fa ("gpgme: Inherit distutils3-base")
Suggested-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agosystemd: Add util-linux-fsck to RDEPENDS
Alex Kiernan [Mon, 17 Sep 2018 17:31:36 +0000 (17:31 +0000)]
systemd: Add util-linux-fsck to RDEPENDS

systemd-fsck expects util-linux-fsck passing a number of options that
busybox fsck doesn't interpret. It then continues silently when run, so
disks end up not having fsck run at all.

Move util-linux-fsck from RRECOMMENDS to RDEPENDS to ensure we have the
fsck which systemd expects.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopackage_manager: use normalized path when doing the filtered copy
Max Krummenacher [Sat, 15 Sep 2018 20:01:00 +0000 (22:01 +0200)]
package_manager: use normalized path when doing the filtered copy

The linking/copying of the package files failes if the deploy dir is set
in a non normalized way e.g. like this DEPLOY_DIR = "${TOPDIR}/../deploy"

Then the simple string replacement which is used to calculated the link
destination from the link source fails, as the link source is normalized
but the deploydir prefix is not.

Normalizing deploydir fixes this.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agocmake: Upgrade 3.12.1 -> 3.12.2
Otavio Salvador [Sun, 16 Sep 2018 21:16:24 +0000 (18:16 -0300)]
cmake: Upgrade 3.12.1 -> 3.12.2

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agolibarchive: Update 3.3.2 -> 3.3.3
Otavio Salvador [Sun, 16 Sep 2018 21:16:23 +0000 (18:16 -0300)]
libarchive: Update 3.3.2 -> 3.3.3

This upgrades to 3.3.3 release and drop the backported patches when
doing the recipe update.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agolinux-firmware: Bump revision to 44d4fca
Otavio Salvador [Sun, 16 Sep 2018 21:16:22 +0000 (18:16 -0300)]
linux-firmware: Bump revision to 44d4fca

44d4fca Merge https://github.com/pmachata/linux-firmware
253a573 brcm: update firmware for bcm43362 sdio
3cee728 Mellanox: Add new mlxsw_spectrum firmware 13.1703.4
ccab6c7 rtl_bt: Add firmware and configuration files for the Bluetooth part of RTL8822CU
75d2b12 Mellanox: Add new mlxsw_spectrum firmware 13.1703.4
85c5d90 nvidia: switch GP10[2467] to newer scrubber/ACR firmware (from GP108)

License-Update: new firmware files additions
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoltp: add a patch for source code to fix issue about fcntl
Hongzhi.Song [Sun, 16 Sep 2018 03:57:25 +0000 (23:57 -0400)]
ltp: add a patch for source code to fix issue about fcntl

The testcases of fcntl fail on 32-bit arch

To cope with glibc commit:
  06ab719d30b0 ("Fix Linux fcntl OFD locks for non-LFS architectures
  (BZ#20251)")
Make OFD command use fcntl64() syscall on 32-bit.

Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agolibgloss_3.0.0.bb: Consolidate rmdir with -p
Nathan Rossi [Fri, 14 Sep 2018 11:10:07 +0000 (11:10 +0000)]
libgloss_3.0.0.bb: Consolidate rmdir with -p

Consolidate the rmdir of multiple directories with the use of -p to
delete the leaf empty directory and any empty ancestor directories.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoreproducible: Consistent debug logging
Douglas Royds [Fri, 14 Sep 2018 02:58:17 +0000 (14:58 +1200)]
reproducible: Consistent debug logging

Log both the source of the source_date_epoch and the resulting
source_date_epoch in all cases.

Also, now that we are determining the source_date_epoch successfully for both
yocto and non-yocto kernels, remove the inherits_class('kernel') exception.
We will log a failure to find a source_date_epoch for kernels as well.

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoreproducible: Don't enforce existence of ${S} dir
Douglas Royds [Fri, 14 Sep 2018 02:58:16 +0000 (14:58 +1200)]
reproducible: Don't enforce existence of ${S} dir

Unnecessary.

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoreproducible: Find the git repo in WORKDIR/git or S first
Douglas Royds [Fri, 14 Sep 2018 02:58:15 +0000 (14:58 +1200)]
reproducible: Find the git repo in WORKDIR/git or S first

Change the search regime for find_git_folder():

1. WORKDIR/git: This is the default git fetcher unpack path
2. ${S}
3. Go looking for .git/ under the WORKDIR as a last resort.

linux-yocto:
We had an existing (silent) defect. The linux-yocto recipes all specify
two git SRC_URIs, one for the kernel source itself, the other for the
kmeta data (config fragments and friends). find_git_folder() was finding
the git checkout for the kmeta data, but due to a typo in the git log -1
--pretty=%ct line, we were (silently) reading the source_date_epoch from
the ${S} directory = STAGING_KERNEL_DIR, which is empty. If your
build/ happened to be inside a git checkout, git would walk up the
directory tree, and silently read the commit timestamp from this other
git checkout. The correct path to read the git commit timestamp from is
the "gitpath", being that found by find_git_folder(), though this
function was incorrectly finding the kmeta data checkout, not the kernel
source tree.

Non-kernel git recipes:
The default git fetcher clones and checks out the sources at
WORKDIR/git/ regardless of the setting of S (unless subpath or
destsuffix is set). find_git_folder() now looks for the
WORKDIR/git/.git/ directory first.

Non-yocto linux kernels:
Kernel recipes that don't inherit kernel-yocto should always set
S = ${WORKDIR}/git, so that when base_do_unpack_append() in
kernel.bbclass moves the checkout down to the STAGING_KERNEL_DIR and
symlinks it as WORKDIR/git, the build can still work by following the
symlink. We were previously failing to follow the symlink in the
os.walk(), but we now look first for WORKDIR/git/.git/, and find it due
to the symlink.

If none of the above mechanisms work for finding the git checkout,
perhaps there was a subpath or destsuffix specified in the SRC_URI.
We go looking for the git checkout under the WORKDIR as a last resort.

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoreproducible: Rename ambiguous "path" var to sourcedir or workdir as appropriate
Douglas Royds [Fri, 14 Sep 2018 02:58:14 +0000 (14:58 +1200)]
reproducible: Rename ambiguous "path" var to sourcedir or workdir as appropriate

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoreproducible: Refactor: get_source_date_epoch_from_youngest_file()
Douglas Royds [Fri, 14 Sep 2018 02:58:13 +0000 (14:58 +1200)]
reproducible: Refactor: get_source_date_epoch_from_youngest_file()

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoreproducible: Tidy class description
Douglas Royds [Fri, 14 Sep 2018 02:58:12 +0000 (14:58 +1200)]
reproducible: Tidy class description

Tidy whitespace, delete commented-out lines

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agofribidi: use Meson instead of autotools
Ross Burton [Thu, 13 Sep 2018 23:28:39 +0000 (00:28 +0100)]
fribidi: use Meson instead of autotools

Upstream is moving to Meson, so backport a patch to use that instead of
autotools.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agofribidi: rename directory to match recipe
Ross Burton [Thu, 13 Sep 2018 23:05:25 +0000 (00:05 +0100)]
fribidi: rename directory to match recipe

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agowayland-protocols: update to 1.16
Oleksandr Kravchuk [Wed, 19 Sep 2018 13:02:15 +0000 (15:02 +0200)]
wayland-protocols: update to 1.16

Updated package to v1.16 to match the currently used Wayland version.

Signed-off-by: Oleksandr Kravchuk <oleksandr.kravchuk@pelagicore.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agodropbear: remove localoptions.h in source searching
Andrej Valek [Wed, 19 Sep 2018 13:02:52 +0000 (15:02 +0200)]
dropbear: remove localoptions.h in source searching

- localoptions.h is automatically searched in build directory

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agodbus-test: fix ptest failed problem when multilib is enabled
Changqing Li [Thu, 20 Sep 2018 02:16:27 +0000 (10:16 +0800)]
dbus-test: fix ptest failed problem when multilib is enabled

Fix some failed info like:
| ./test/test-bus: relocation error: ./test/test-bus: symbol
| _dbus_threads_init_debug, version LIBDBUS_PRIVATE_1.10.10 not defined
| in file libdbus-1.so.3 with link time reference
| FAIL: test/test-bus

In run-ptest, LD_LIBRARY_PATH is set to /usr/lib, but when multilib
is enabled, /usr/lib64 will be used. fix by replace with correct path.

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agogstreamer1.0-plugins-bad: remove rtmpdump from DEPENDS
Florian Wickert [Thu, 20 Sep 2018 08:02:42 +0000 (10:02 +0200)]
gstreamer1.0-plugins-bad: remove rtmpdump from DEPENDS

rtmpdump is not a build dependency for gstreamer1.0-plugins-bad even if
rtmp is enabled. This wouldn't compile anyway due to the
openssl/openssl10 incompatibility because rtmpdump requires openssl10.

Signed-off-by: Florian Wickert <fw@javox-solutions.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoxserver-xorg: remove redundant patch
Ross Burton [Thu, 20 Sep 2018 11:34:15 +0000 (12:34 +0100)]
xserver-xorg: remove redundant patch

Upstream doesn't assume a monotonic clock isn't available anymore, so we can
remove this patch.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agomusl: Add aliases for glibc provided libraries
Khem Raj [Thu, 20 Sep 2018 03:52:42 +0000 (20:52 -0700)]
musl: Add aliases for glibc provided libraries

This is a step towards running pebuilt applications for glibc  on musl
There are many realworld applications which are not always built from
source, especially provided by third party

Package the glibc symlinks into new package musl-glibc-compat

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agolinuxloader.bbclass: Refactor to have seprate functions for musl/glibc loader
Khem Raj [Thu, 20 Sep 2018 03:52:41 +0000 (20:52 -0700)]
linuxloader.bbclass: Refactor to have seprate functions for musl/glibc loader

this makes it possible to use this for musl where we are trying to
create a glibc compat package

Add missing aarch64 loader definition for glibc function

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoyocto-uninative: Add aarch64 uninative tarball checksum
Richard Purdie [Wed, 19 Sep 2018 15:23:31 +0000 (08:23 -0700)]
yocto-uninative: Add aarch64 uninative tarball checksum

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agouninative: Add support for aarch64 hosts
Richard Purdie [Wed, 19 Sep 2018 12:31:07 +0000 (05:31 -0700)]
uninative: Add support for aarch64 hosts

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomtools: Fix build with clang
Khem Raj [Wed, 19 Sep 2018 18:55:41 +0000 (11:55 -0700)]
mtools: Fix build with clang

Identify with __clang__ to undefine UNUSED

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoghostscript: upgrade to 9.25
Jagadeesh Krishnanjanappa [Mon, 17 Sep 2018 16:44:50 +0000 (22:14 +0530)]
ghostscript: upgrade to 9.25

Removed below patches, as v9.25 source already has those
changes/security fixes:

0001-Bug-699665-memory-corruption-in-aesdecode.patch
0001-pdfwrite-Guard-against-trying-to-output-an-infinite-.patch
0002-Bug-699656-Handle-LockDistillerParams-not-being-a-bo.patch
0003-Fix-Bug-699660-shading_param-incomplete-type-checkin.patch
0004-Hide-the-.shfill-operator.patch
0005-Bug-699657-properly-apply-file-permissions-to-.tempf.patch
remove-direct-symlink.patch

Re-worked ghostscript-9.21-native-fix-disable-system-libtiff.patch
and ghostscript-9.21-prevent_recompiling.patch
to fix warnings in do_patch task of ghostscript v9.25 recipe.

Highlights of ghostscript v9.25 release:
---------------------------------------
- This release fixes problems with argument handling, some unintended results
  of the security fixes to the SAFER file access restrictions
  (specifically accessing ICC profile files), and some additional security
  issues over the recent 9.24 release.

- Note: The ps2epsi utility does not, and cannot call Ghostscript with
  the -dSAFER command line option. It should never be called with input
  from untrusted sources.

- Security issues have been the primary focus of this release, including
  solving several (well publicised) real and potential exploits.

- As well as Ghostscript itself, jbig2dec has had a significant amount of work
  improving its robustness in the face of out specification files.

- IMPORTANT: We are in the process of forking LittleCMS. LCMS2 is not thread
  safe, and cannot be made thread safe without breaking the ABI.
  Our fork will be thread safe, and include performance enhancements
  (these changes have all be been offered and rejected upstream). We will
  maintain compatibility between Ghostscript and LCMS2 for a time, but not in
  perpetuity. Our fork will be available as its own package separately from
  Ghostscript (and MuPDF).

- The usual round of bug fixes, compatibility changes, and incremental
  improvements.

Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agounzip: add nativesdk support
Andrej Valek [Tue, 18 Sep 2018 07:14:32 +0000 (09:14 +0200)]
unzip: add nativesdk support

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agogdb: gdbserver: update ctrl-c handling
Zhixiong Chi [Wed, 19 Sep 2018 02:26:35 +0000 (19:26 -0700)]
gdb: gdbserver: update ctrl-c handling

A) gdbserver sends SIGINT not to the process, but to the process
group (-signal_pid). But the attached process is not always a
process group leader. If not, "kill (-signal_pid, SIGINT)" returns
error and fails to interrupt the attached process. We cannot interrupt
the process attached with gdbserver who is not a process group leader.

This problem was created by the gdb upstream commit 78708b7c8c
The commit fixed the following case B) bug.
B) We cannot interrupt the process attached with gdbserver whose
main thread exits (pthread_exit()).

Now this patch can solve both A) and B).

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agocurl: CVE-2018-14618
Zhixiong Chi [Tue, 18 Sep 2018 08:46:17 +0000 (01:46 -0700)]
curl: CVE-2018-14618

Backport the CVE patch from the upstream
https://github.com/curl/curl/commit/57d299a499155d4b327e341c6024e293b0418243.patch
https://curl.haxx.se/docs/CVE-2018-14618.html
https://nvd.nist.gov/vuln/detail/CVE-2018-14618

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoopenssl10: fix compile error for debian-mips64
Changqing Li [Wed, 19 Sep 2018 08:26:46 +0000 (16:26 +0800)]
openssl10: fix compile error for debian-mips64

Current configuration for debian-mips64 is not correct,
'SIXTY_FOUR_BIT_LONG' need to be specified. otherwise,
it will cause other recipe like crda compile failed since
use default THIRTY_TWO_BIT mode.

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agognupg: patch gnupg-native to allow path relocation
Ross Burton [Wed, 19 Sep 2018 13:44:40 +0000 (14:44 +0100)]
gnupg: patch gnupg-native to allow path relocation

GnuPG hard-codes $bindir etc and uses them to find the helper binaries, such as
gpg-agent.  This breaks if gnupg-native is reused from sstate for a different
build directory and GPG signing of packages is required.

Patch in getenv() checks for gnupg-native when returning the hardcoded paths,
and create a wrapper script which overrides GNUPG_BINDIR. There are more paths
that can be overridden, but this one is sufficient to make GnuPG work.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agomaintainers.inc: Update package owners
Maxin B. John [Tue, 18 Sep 2018 08:53:03 +0000 (11:53 +0300)]
maintainers.inc: Update package owners

update Intel owners

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agodummy-sdk-package.inc: work around MACHINE_ARCH SSTATE_MANMACH
Martin Jansa [Mon, 17 Sep 2018 05:48:43 +0000 (05:48 +0000)]
dummy-sdk-package.inc: work around MACHINE_ARCH SSTATE_MANMACH

* since following change:
  allarch: only enable allarch when multilib is not used
  the sstate-diff-machines.sh reports different signature for target-sdk-provides-dummy
  when multilib is enabled

 === Comparing signatures for task do_populate_sysroot.sigdata between qemux86 and qemux86copy ===
ERROR: lib32-target-sdk-provides-dummy different signature for task do_populate_sysroot.sigdata between qemux86 and qemux86copy
basehash changed from b0a44b2c7003b6b4aa3a023d9cb9fe82 to 3a59fa25ddb6a95aff079d477ebf3457
Variable SSTATE_MANMACH value changed from 'qemux86' to 'qemux86copy'

ERROR: target-sdk-provides-dummy different signature for task do_populate_sysroot.sigdata between qemux86 and qemux86copy
basehash changed from 9e44f1deb3d15886ee96db1a3332764c to 6b417d08a5113c9b06d13b3681f5ab4f
Variable SSTATE_MANMACH value changed from 'qemux86' to 'qemux86copy'

It's using:
inherit allarch

python() {
    # Put the package somewhere separate to ensure it's never used except
    # when we want it
    # (note that we have to do this in anonymous python here to avoid
    # allarch.bbclass disabling itself)
    d.setVar('PACKAGE_ARCH', '${DUMMYARCH}')
}

and DUMMYARCH = "sdk-provides-dummy-target"

The difference as shown with bitbake -e before and after reverting allarch.bbclass commit:

before revert:
   $SSTATE_MANMACH [2 operations]
     set? oe-core/meta/classes/sstate.bbclass:61
       "${SSTATE_PKGARCH}"
     set sstate.bbclass:100 [__anon_111_oe_core_meta_classes_sstate_bbclass]
       "machineName"
   pre-expansion value:
     "machineName"
SSTATE_MANMACH="machineName"

   $SSTATE_PKGARCH
     set oe-core/meta/classes/sstate.bbclass:11
       "${PACKAGE_ARCH}"
SSTATE_PKGARCH="sdk-provides-dummy-target"

   $PACKAGE_ARCH [3 operations]
     set oe-core/meta/conf/bitbake.conf:150
       [_defaultval] "${TUNE_PKGARCH}"
     set oe-core/meta/conf/documentation.conf:304
       [doc] "The architecture of the resulting package or packages."
     set dummy-sdk-package.inc:12 [__anon_12_oe_core_meta_recipes_core_meta_dummy_sdk_package_inc]
       "${DUMMYARCH}"
   pre-expansion value:
     "${DUMMYARCH}"
PACKAGE_ARCH="sdk-provides-dummy-target"

after revert:
   $SSTATE_MANMACH
     set? oe-core/meta/classes/sstate.bbclass:61
       "${SSTATE_PKGARCH}"
SSTATE_MANMACH="allarch"

   $SSTATE_PKGARCH [2 operations]
     set oe-core/meta/classes/sstate.bbclass:11
       "${PACKAGE_ARCH}"
     set sstate.bbclass:98 [__anon_111__oe_core_meta_classes_sstate_bbclass]
       "allarch"
   pre-expansion value:
     "allarch"
SSTATE_PKGARCH="allarch"

   $PACKAGE_ARCH [4 operations]
     set oe-core/meta/conf/bitbake.conf:150
       [_defaultval] "${TUNE_PKGARCH}"
     set oe-core/meta/conf/documentation.conf:304
       [doc] "The architecture of the resulting package or packages."
     set oe-core/meta/classes/allarch.bbclass:5
       "all"
     set dummy-sdk-package.inc:12 [__anon_12_oe_core_meta_recipes_core_meta_dummy_sdk_package_inc]
       "${DUMMYARCH}"
   pre-expansion value:
     "${DUMMYARCH}"
PACKAGE_ARCH="sdk-provides-dummy-target"

the relevant part of the anonymous python in sstate.bbclass:

    elif bb.data.inherits_class('allarch', d) and d.getVar("PACKAGE_ARCH") == "all":
        d.setVar('SSTATE_PKGARCH', "allarch")
    else:
        d.setVar('SSTATE_MANMACH', d.expand("${PACKAGE_ARCH}"))

So with allarch.bbclass change, the PACKAGE_ARCH isn't set to "all" because multilib is enabled,
but that causes sstate.bbclass to set SSTATE_MANMACH to MACHINE instead of SSTATE_PKGARCH
allarch, where it got MACHINE is still a bit of mystery to me.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocoreutils: update printenv's ALTERNATIVE_LINK_NAME
Martin Jansa [Mon, 17 Sep 2018 05:48:42 +0000 (05:48 +0000)]
coreutils: update printenv's ALTERNATIVE_LINK_NAME

* use base_bindir like busybox does to prevent conflicting u-a configs

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglibc: fix build with -O
Martin Jansa [Wed, 19 Sep 2018 11:26:30 +0000 (11:26 +0000)]
glibc: fix build with -O

* tested for qemuarm, qemux86 with -O, -O0, -Os, with gcc
* to build with -O0 I had to remove restriction from systemtap first

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoinitramfs-framework/udev: call settle before kill
Anuj Mittal [Wed, 19 Sep 2018 08:08:46 +0000 (16:08 +0800)]
initramfs-framework/udev: call settle before kill

When mount command is executed in rootfs module of initrd, eudev creates
a loop0 device node, applies rules and adds a inotify watch to it. Right
after this step, we execute finish which first tries to kill any running
udevd daemon before doing a switch_root.

In some cases, it is possible that switch_root is executed before
inotify_add_watch was actually processed which would lead to errors like:

| inotify_add_watch(6, /dev/loop0, 10) failed: No such file or directory

Make sure that we process all the events in queue before actually trying
to kill udevd to prevent this race.

Fixes [YOCTO #12861]

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoisoimage-isohybrid: don't include cpio in cpio image
Ioan-Adrian Ratiu [Tue, 18 Sep 2018 16:17:52 +0000 (19:17 +0300)]
isoimage-isohybrid: don't include cpio in cpio image

Because the find | cpio processes execute in parallel connected via
the pipe, and the cpio outputs in the same dir find searches for
source files, the cpio will be included in itself partially, depending
on how fast the build machine creates the cpio file before cpio
gobbles it up.

This bloats the ISO image, though compression reduces the .iso file size,
once the kernel decompresses the cpio image and boots it live, it uses
up to double the RAM memory.

Fix this by creating the initrd.cpio file directly inside cr_workdir.

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibressl: remove recipe
Hongxu Jia [Wed, 19 Sep 2018 11:59:30 +0000 (19:59 +0800)]
libressl: remove recipe

Since openssh support oepnssl 1.1.x, there is no reason
to keep libressl.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoopenssh: upgrade 7.8p1 -> 7.8p1+git to support openssl 1.1.x
Hongxu Jia [Wed, 19 Sep 2018 11:59:29 +0000 (19:59 +0800)]
openssh: upgrade 7.8p1 -> 7.8p1+git to support openssl 1.1.x

- Convert from tarball to git repository which support
  openssl 1.1.x

- There is no specific minor version that contains the
  openssl fix (it was merged to master a few days agao),
  rename recipe version to `7.8p1+git'

- Fix regression test binaries missing
  In commit `1f7aaf7 openssh: build regression test binaries', it build
  regression test binaries, since upstream add two binaries in commits
  `c59aca8 Create control sockets in clean temp directories' and
  `1acc058 Disable tests where fs perms are incorrect', we should update
  do_compile_ptest.

  [ptest log]
  |/usr/lib/openssh/ptest/regress/test-exec.sh: line 330: /usr/lib/openssh/
  ptest/regress/mkdtemp: No such file or directory
  [ptest log]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoxf86-video-fbdev: update to 0.5.0
Armin Kuster [Fri, 14 Sep 2018 16:04:04 +0000 (09:04 -0700)]
xf86-video-fbdev: update to 0.5.0

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoxserver-xf86-config: 1.20 qemumips fix
Armin Kuster [Fri, 14 Sep 2018 19:02:42 +0000 (12:02 -0700)]
xserver-xf86-config: 1.20 qemumips fix

When updating to xorg-xserver 1.20+, mips64 would not work correctly and
cause the xorg test to fail.

Changing the DefaultDepth fixed that.

[Yocto # 12845]

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoxserver-xorg: upgrade 1.19.6 -> 1.20.1
Armin Kuster [Fri, 14 Sep 2018 16:04:03 +0000 (09:04 -0700)]
xserver-xorg: upgrade 1.19.6 -> 1.20.1

removed included patch

Refresh 0001-configure.ac-Fix-check-for-CLOCK_MONOTONIC
Remove 0001-config-fix-NULL-value-detection-for-ID_INPUT-being-u.patch

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoopenssl: update to 1.1.1 final
Alexander Kanavin [Fri, 14 Sep 2018 16:18:00 +0000 (18:18 +0200)]
openssl: update to 1.1.1 final

This is the new LTS release with support for TLS 1.3.

Release announcement:
https://www.openssl.org/blog/blog/2018/09/11/release111/

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoudev-extraconf: Add systemd-mount to udev-extraconf/mount.sh
Hongzhi.Song [Tue, 17 Apr 2018 07:03:43 +0000 (03:03 -0400)]
udev-extraconf: Add systemd-mount to udev-extraconf/mount.sh

Udev-extraconf works correctly with sysvinit in the aspect of automounting
block devices. But it has a serious problem in case of systemd. Block devices
automounted by udev is unaccessible to host space(out of udevd's private
namespace). For example, we cannot format those block devices.

e.g.
    root@qemux86:~# mkfs.ext4 /dev/sda1
    mke2fs 1.43.8 (1-Jan-2018)
    /dev/sda1 contains a ext4 file system
    last mounted on Tue Apr  3 06:22:41 2018
    Proceed anyway? (y,N) y
    /dev/sda1 is apparently in use by the system; will not make a filesystem here!

Other distributions has no such problem, because they use a series of rules to
manager block devices. Different types of block devices match different rules.
But udev-extraconf just use one rule, automount.rules, which results in this
problem.

The 'systemd-mount' command is recommended by the systemd community to solve such
problems.

This patch makes use of 'systemd-mount' to solve the above problem.

[YOCTO #12644]

(From OE-Core rev: a0b3389c5afc23f622f793cbad8b4135093e6f08)

Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomusl: Add MAX_HANDLE_SZ
Khem Raj [Thu, 13 Sep 2018 14:04:26 +0000 (07:04 -0700)]
musl: Add MAX_HANDLE_SZ

(From OE-Core rev: d24bafa872cd1915ca23468bb37be98518347e02)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomusl: Wire-up name_to_handle_at and name_to_handle_at syscalls
Khem Raj [Thu, 13 Sep 2018 01:05:31 +0000 (18:05 -0700)]
musl: Wire-up name_to_handle_at and name_to_handle_at syscalls

(From OE-Core rev: c70bb5a24e8923a34adb9c7b8298ae12702e3f27)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/selftest/recipetool: fix non-determinism in cmake test
Ross Burton [Thu, 13 Sep 2018 11:30:39 +0000 (12:30 +0100)]
oeqa/selftest/recipetool: fix non-determinism in cmake test

The Navit recipe can depend on fribidi which is now part of oe-core.  Since the
pkgconfig lookup is based on pkgdata the results can change depending on what
has been built, which leads to occasional failures.

Build gtk+ before the test to ensure that the pkgdata is populated with more of
the dependencies, and add fribidi to the generated DEPENDS checklist.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/selftest/runtime_test: Ensure we build/use gnupg-native
Richard Purdie [Thu, 13 Sep 2018 13:12:11 +0000 (14:12 +0100)]
oeqa/selftest/runtime_test: Ensure we build/use gnupg-native

Without this, we see errors if gpg is missing from the host system
for "oe-selftest -r runtime_test.TestImage.test_testimage_dnf".

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agokexec-tools: Depend on sysinit.target rather than basic.target
Andrew Bresticker [Wed, 12 Sep 2018 17:44:15 +0000 (10:44 -0700)]
kexec-tools: Depend on sysinit.target rather than basic.target

kdump.service only needs filesystems to be up, for which sysinit.target
is sufficeint. basic.target pulls in networking and other services which
are unnecessary for kdump. This is also useful for when kdump.service is
used as the boot target (e.g. for the kdump kernel) and only a minimal
system needs to be brought up.

Signed-off-by: Andrew Bresticker <abrestic@waymo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agokexec-tools: Install systemd service
Andrew Bresticker [Wed, 12 Sep 2018 17:44:14 +0000 (10:44 -0700)]
kexec-tools: Install systemd service

Set SYSTEMD_PACKAGES and SYSTEMD_SERVICE so that kdump.service actually
gets installed.

Signed-off-by: Andrew Bresticker <abrestic@waymo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoapr-util: fix ptest fail problem
Changqing Li [Thu, 13 Sep 2018 05:45:46 +0000 (13:45 +0800)]
apr-util: fix ptest fail problem

Test suite test_dbm failed after gdbm upgrtade to 13.1,
from 13.1, return value of some function are changed.

* gdbm_fetch, gdbm_firstkey, and gdbm_nextkey behavior

If the requested key was not found, these functions return datum with
dptr pointing to NULL and set gdbm_errno to GDBM_ITEM_NOT_FOUND (in
prior releases, gdbm_errno was set to GDBM_NO_ERROR),

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoinsane: Recognise BPF as a valid EM_MACHINE type
Khem Raj [Thu, 13 Sep 2018 04:12:09 +0000 (21:12 -0700)]
insane: Recognise BPF as a valid EM_MACHINE type

BPF Linux ELF objects are generated with kernel-selftests with
>= 4.18 kernel and when clang is enabled which packages BPF objects
into packages, therefore recongnise this as a valid ELF target

Add a selftest for BPF

Do not flag BPF objects in target, since they pretty much will be ok for
most of kernels architectures we care do support BPF

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoinitramfs-framework: Don't use 'tr'
Andrew Bresticker [Wed, 12 Sep 2018 17:25:26 +0000 (10:25 -0700)]
initramfs-framework: Don't use 'tr'

tr is available in busybox, but not in toybox. Just use sed instead.

Signed-off-by: Andrew Bresticker <abrestic@waymo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoperf: do not pull in any perl dependencies unless scripting is requested
Dima Zavin [Wed, 12 Sep 2018 17:30:25 +0000 (10:30 -0700)]
perf: do not pull in any perl dependencies unless scripting is requested

Signed-off-by: Dima Zavin <dmitriyz@waymo.com>
Signed-off-by: Andrew Bresticker <abrestic@waymo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-libc-headers: Don't do useless configuration
Alexey Brodkin [Wed, 12 Sep 2018 17:04:45 +0000 (20:04 +0300)]
linux-libc-headers: Don't do useless configuration

There's no point in configuring Linux kernel before
headers installation.

Moreover in come cases it might lead to problems on kernels
starting from 4.17 with architecture or platfrom sets
CROSS_COMPILE variable automatically, see [1].

Also note Buildroot doesn't do that kind of configuration as
well, see [2].

And while at it convert empty do_compile to noexec as well.

[1] https://lkml.org/lkml/2018/9/12/486
[2] https://git.buildroot.org/buildroot/tree/package/linux-headers/linux-headers.mk#n106

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-libc-headers: Include linux/stddef.h in linux/swab.h
Khem Raj [Thu, 13 Sep 2018 01:05:30 +0000 (18:05 -0700)]
linux-libc-headers: Include linux/stddef.h in linux/swab.h

This helps compiling bpf tests using non-glibc C libraries e.g. musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocoreutils: add alternative target for nice
Jens Rehsack [Thu, 13 Sep 2018 09:25:00 +0000 (11:25 +0200)]
coreutils: add alternative target for nice

Avoid coreutils conflicts with nice from other recipes, like
busybox - even if that's not enabled by default.
In situations, where coreutils is a dependency for -dev images
and small busybox nice is available always, it avoids extra
effort for coreutils for those users.

Signed-off-by: Jens Rehsack <sno@netbsd.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agotune-core2: use n270 instead of core2duo
Anuj Mittal [Thu, 13 Sep 2018 07:25:47 +0000 (15:25 +0800)]
tune-core2: use n270 instead of core2duo

Fixes warnings in builds using core2-32 tune:

warning: TCG doesn't support requested feature: CPUID.80000001H:EDX.syscall [bit 11]
warning: TCG doesn't support requested feature: CPUID.80000001H:EDX.lm [bit 29]

when executing postinsts using qemu-i386.

i386 target doesn't enable CPUID_EXT2_SYSCALL and CPUID_EXT2_LM [1]
while cpu choice of core2duo that we use for core2-32 TUNE does [2].
Use n270 cpu instead to use with qemu which supports SSSE3 and doesn't
have these bits enabled [3].

[1] https://github.com/qemu/qemu/blob/master/target/i386/cpu.c#L739
[2] https://github.com/qemu/qemu/blob/master/target/i386/cpu.c#L1439
[3] https://github.com/qemu/qemu/blob/master/target/i386/cpu.c#L1603

Fixes [YOCTO #12916]

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython3: fix openssl 1.1.1 changes
Ross Burton [Thu, 13 Sep 2018 09:02:31 +0000 (10:02 +0100)]
python3: fix openssl 1.1.1 changes

Due to human error an older revision of the SSL patch was merged.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython3: don't hard-code version in python-config
Ross Burton [Tue, 11 Sep 2018 16:32:21 +0000 (17:32 +0100)]
python3: don't hard-code version in python-config

Use variables instead of hard-coding to remove another variation between
releases.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopython3: add PACKAGECONFIG for bluetooth
Ross Burton [Tue, 11 Sep 2018 15:41:48 +0000 (16:41 +0100)]
python3: add PACKAGECONFIG for bluetooth

Instead of forcibly disabling Bluetooth (support for Bluetooth sockets in the
socket module), add a PACKAGECONFIG.  The default remains disabled for
consistency.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopython: we use system ffi so no need to autoreconf in-tree libffi
Ross Burton [Tue, 11 Sep 2018 15:25:54 +0000 (16:25 +0100)]
python: we use system ffi so no need to autoreconf in-tree libffi

For target Python we use the libffi that we build, so we don't need to
autoreconf the in-tree libffi.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopython3: remove redundant assignments
Ross Burton [Tue, 11 Sep 2018 15:22:13 +0000 (16:22 +0100)]
python3: remove redundant assignments

_PYTHON_PROJECT_BASE and _PYTHON_PROJECT_SRC appear to be set in setup.py from
the source directory and build directory correctly, so this is redundant.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopython3: split common assignments into a dedicated python3.inc
Ross Burton [Tue, 11 Sep 2018 11:52:38 +0000 (12:52 +0100)]
python3: split common assignments into a dedicated python3.inc

Instead of including the Py2 python.inc and having to undo some of the
assignments, create a new python3.inc to hold the common configuration.

Over time we can move more from the recipes into this file to unify the target
and native recipes.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopython3{,-native}: backport openssl 1.1.1 compatibility changes
Anuj Mittal [Wed, 12 Sep 2018 10:16:04 +0000 (18:16 +0800)]
python3{,-native}: backport openssl 1.1.1 compatibility changes

Backport changes from 3.7/3.6 to fix failing python3 ssl test suite.

Fixes [YOCTO #12919]

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
6 years agopython3{,native}: update to 3.5.6
Anuj Mittal [Wed, 12 Sep 2018 09:44:11 +0000 (17:44 +0800)]
python3{,native}: update to 3.5.6

Includes changes:

76aa2c0a9a bpo-33216: Clarify the documentation for CALL_FUNCTION_* (#8338)
1b141b9553 Doc: Backport language switcher (bpo-33700, bpo-31045) (#8048)
f381cfe07d [3.5] bpo-33001: Prevent buffer overrun in os.symlink (GH-5989) (#5991)
937ac1fe06 [3.5] bpo-32981: Fix catastrophic backtracking vulns (GH-5955) (#6034)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
6 years agoltp: fix mmap15 failed on qemumips64
Dengke Du [Wed, 12 Sep 2018 08:55:56 +0000 (16:55 +0800)]
ltp: fix mmap15 failed on qemumips64

Actually, this is not a bug, mmap15 only run on 64bit system.
On qemumips64, mmap15 return EINVAL, x86-64 and arm64 return
ENOMEM. This is because mips system check the addr that passed
to the syscall mmap15:

    https://github.com/torvalds/linux/blob/master/arch/mips/mm/mmap.c#L71

If the addr larger than (TASK_SIZE - page_size), mips think it is invalid.

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agowic: Introduce the --use-label partition parameter
Kevin Hao [Wed, 12 Sep 2018 00:44:46 +0000 (08:44 +0800)]
wic: Introduce the --use-label partition parameter

We can use this parameter to make the wic use the label to name a
partition in /etc/fstab.

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosocat: Cache shift value for CRDLY, TABDLY and CSIZE
Khem Raj [Tue, 11 Sep 2018 19:18:33 +0000 (12:18 -0700)]
socat: Cache shift value for CRDLY, TABDLY and CSIZE

Match it to definitions in
arch/<ARCH>/include/uapi/asm/termbits.h

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoeudev: set configure option --with-rootlibexecdir
Kai Kang [Tue, 11 Sep 2018 23:25:24 +0000 (19:25 -0400)]
eudev: set configure option --with-rootlibexecdir

Set configure option '--with-rootlibexecdir' for eudev to fix udev.pc file conflict:

| file /usr/share/pkgconfig/udev.pc conflicts between attempted installs of eudev-dev-3.2.5-r0.core2_64 and lib32-eudev-dev-3.2.5-r0.x86

It alway sets 'udevdir' in udev.pc with value '/lib/udev' that systemd
does the same thing.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>