]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
4 years agocore-image-weston: Bump qemu memory to 512M
Khem Raj [Sun, 13 Sep 2020 21:52:44 +0000 (14:52 -0700)]
core-image-weston: Bump qemu memory to 512M

It needs openGL and launching two weston instances during weston ptest
needs > 256M ram to work

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agooeqa/weston: Fix tests to run with systemd
Khem Raj [Sun, 13 Sep 2020 21:52:43 +0000 (14:52 -0700)]
oeqa/weston: Fix tests to run with systemd

Currently, weston tests fail when using systemd, fix it by providing
transient unit file and inject it via systemd-run, which generates a
service file automatically and launches another weston instance to test
if it can launch a nested instance. Use systemctl stop to end the
service and cleanup, instead of brutal kill

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoweston-init: Select drm/fbdev backends for qemu machines
Khem Raj [Sun, 13 Sep 2020 21:52:42 +0000 (14:52 -0700)]
weston-init: Select drm/fbdev backends for qemu machines

qemux86/x86_64/aarch64 supports drm backend well, therefore enable it on
these qemu machines, other qemu machines should be defaulting to fbdev,
if its not qemu then leave it empty

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoweston-init: Do not use fbdev backend
Khem Raj [Sun, 13 Sep 2020 21:52:41 +0000 (14:52 -0700)]
weston-init: Do not use fbdev backend

This works ok with latest weston/kernel to use drm backend

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoweston-init: Enable RDP screen share
Khem Raj [Sat, 12 Sep 2020 21:04:05 +0000 (14:04 -0700)]
weston-init: Enable RDP screen share

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoweston: plane_add_prop() calls break musl atomic modesetting
Khem Raj [Sat, 12 Sep 2020 21:04:04 +0000 (14:04 -0700)]
weston: plane_add_prop() calls break musl atomic modesetting

This patch ensures, weston/drm backend works which ends up with blank
screen on musl based systems

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agodiffoscope: upgrade 158 -> 160
Pierre-Jean Texier [Sat, 12 Sep 2020 19:07:00 +0000 (21:07 +0200)]
diffoscope: upgrade 158 -> 160

This includes the following changes:

Version 159:

* Show "ordering differences only" in strings(1) output.
  (Closes: reproducible-builds/diffoscope#216)
* Don't alias output from "os.path.splitext" to variables that we do not end
  up using.
* Don't raise exceptions when cleaning up after a guestfs cleanup failure.
* Make "Command" subclass a new generic Operation class.

Version 160:

* Check that pgpdump is actually installed before attempting to run it.
  Thanks to Gianfranco Costamagna (locutusofborg). (Closes: #969753)
* Add some documentation for the EXTERNAL_TOOLS dictionary.
* Ensure we check FALLBACK_FILE_EXTENSION_SUFFIX, otherwise we run pgpdump
  against all files that are recognised by file(1) as "data".

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agocore-image-sato: qemumips use 512 mem
Armin Kuster [Sun, 13 Sep 2020 03:59:16 +0000 (20:59 -0700)]
core-image-sato: qemumips use 512 mem

Fixes:

WARNING: core-image-sato-sdk-1.0-r0 do_testimage: Couldn't login into serial console as root using blank password
WARNING: core-image-sato-sdk-1.0-r0 do_testimage: The output:
root
<<< run_serial(): command timed out after 60 seconds without output >>>

In another run, this error was seen:

Failed to reload daemon: Refusing to reload, not enough space available on /run/systemd. Currently, 14.3M are free, but a safety buffer of 16.0M is enforced.

With updates to systemd and Qemu we should revert: 499a31cf06 core-image-sato: don't use 512MB in qemumips

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agopopulate_sdk_ext: Do not assume local.conf will always exist
Khem Raj [Sun, 13 Sep 2020 07:44:00 +0000 (00:44 -0700)]
populate_sdk_ext: Do not assume local.conf will always exist

Some distros may not have local.conf, and use auto.conf or site.conf
alone to describe distro config metadata, therefore make code robust
to not fail eSDK builds for such setups

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agosysvinit: Remove ${B} assignment
Michael Gloff [Sat, 12 Sep 2020 22:39:17 +0000 (17:39 -0500)]
sysvinit: Remove ${B} assignment

The VERSION variable is not set unless the
top level Makefile is used as the version is
derived from the Changelog.
If VERSION is not set, none of the binaries built
in the sysvinit recipe will have a valid version
output.
Before:
INIT: version  booting
After:
INIT: version 2.96 booting

Using the top level Makefile does not cause any
additional builds to occur.

Signed-off-by: Michael Gloff <mgloff@emacinc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibubootenv: upgrade 0.3 -> 0.3.1
Pierre-Jean Texier [Sat, 12 Sep 2020 13:37:08 +0000 (15:37 +0200)]
libubootenv: upgrade 0.3 -> 0.3.1

This is a bugfix release which includes the following changes:

824551a Prepare 0.3.1
ca6aaa1 Fix file reading/writing when the environment is in EEPROM
a031dea Fix regression in UBI volume support
c91c150 Define SOVERSION to indicate API version

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agosystemd-serialgetty: Replace sed quoting using ' with " to allow var expansion
Geoff Parker [Sat, 12 Sep 2020 03:07:05 +0000 (20:07 -0700)]
systemd-serialgetty: Replace sed quoting using ' with " to allow var expansion

A recent commit added single quotes around the sed regex's. This prevented the
expansion of $default_baudrate in do_install(), and ended up with systemd's'
serial-getty@.service file having a literal $default_baudrate.

This broke the serial console getty service.

serial-getty@.service was getting a line which looked like this:

  ExecStart=-/sbin/agetty -8 -L %I $default_baudrate $TERM

Rather than:

  ExecStart=-/sbin/agetty -8 -L %I 115200 $TERM

Fixed by repacing the single quotes with double quotes in the sed expressions.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoinitramfs-framework: support kernel cmdline with double quotes
Christophe GUIBOUT [Thu, 10 Sep 2020 14:06:31 +0000 (14:06 +0000)]
initramfs-framework: support kernel cmdline with double quotes

It avoids init to crash when kernel cmdline contains a string with
spaces inside, like that:
dyndbg="file drivers/usb/core/hub.c +pltf"

Signed-off-by: Christophe Guibout <christophe.guibout@st.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agocve-update-db-native: use fetch task
Ross Burton [Thu, 10 Sep 2020 21:04:13 +0000 (22:04 +0100)]
cve-update-db-native: use fetch task

Instead of inventing a new task to fetch the CVE data, use the existing
fetch task.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agocve-update-db-native: add more logging when fetching
Ross Burton [Thu, 10 Sep 2020 21:04:12 +0000 (22:04 +0100)]
cve-update-db-native: add more logging when fetching

Add some debug logging when fetching the CVE data.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agocve-update-db-native: remove unused import
Ross Burton [Thu, 10 Sep 2020 21:04:11 +0000 (22:04 +0100)]
cve-update-db-native: remove unused import

This import isn't used anymore, so remove it.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoqemu: fix CVE-2020-14364
Ross Burton [Thu, 10 Sep 2020 21:04:10 +0000 (22:04 +0100)]
qemu: fix CVE-2020-14364

Backport a patch from upstream to fix CVE-2020-14364.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoat-spi2-core:upgrade 2.36.0 -> 2.36.1
zangrc [Fri, 11 Sep 2020 13:18:06 +0000 (21:18 +0800)]
at-spi2-core:upgrade 2.36.0 -> 2.36.1

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoncurses: remove config.cache
Ross Burton [Thu, 10 Sep 2020 20:53:54 +0000 (21:53 +0100)]
ncurses: remove config.cache

Instead of having a config.cache that overrides the system site files,
simply set the values in CACHED_CONFIGUREVARS. We can also drop the
mkstemp check as the configure.ac assumes it works, leaving just
nanosleep.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolicense_image.bbclass: Fix symlink to the image license manifest dir creation
Diego Sueiro [Fri, 11 Sep 2020 11:30:27 +0000 (12:30 +0100)]
license_image.bbclass: Fix symlink to the image license manifest dir creation

If IMAGE_LINK_NAME is empty don't try to create the symlink.

[YOCTO #14042]

Signed-off-by: Diego Sueiro <diego.sueiro@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agodhcpcd: 9.1.4 -> 9.2.0
Kai Kang [Fri, 11 Sep 2020 01:45:29 +0000 (09:45 +0800)]
dhcpcd: 9.1.4 -> 9.2.0

Upgrade dhcpcd from 9.1.4 to 9.2.0. And add systemd services files
dhcpcd.service and dhcpcd@.service from Fedora:

https://src.fedoraproject.org/rpms/dhcpcd/tree/master

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agocryptodev: bump 1 commit past 1.11 to fix 5.9-rc1+
Denys Dmytriyenko [Wed, 9 Sep 2020 21:47:43 +0000 (17:47 -0400)]
cryptodev: bump 1 commit past 1.11 to fix 5.9-rc1+

There's one commit on top of 1.11 release that fixes builds against kernel 5.9-rc1+.

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agobison: uprev from 3.7.1 to 3.7.2
Stacy Gaikovaia [Fri, 11 Sep 2020 13:32:13 +0000 (09:32 -0400)]
bison: uprev from 3.7.1 to 3.7.2

a0bc06b7 (tag: v3.7.2) version 3.7.2
5e33dfe5 build: disable syntax-check warning
2a4e9a35 gnulib: update
f7b642cf build: fix incorrect dependencies
3da17724 doc: updates
68e3e442 gnulib: update
e432619d tests: beware of sed portability issues
a1b7fef0 c: always use YYMALLOC/YYFREE
067e35a8 build: beware of POSIX mode
0522047c doc: history of api.prefix
3724b50e CI: intel moved the script for ICC
b801b7b6 fix: unterminated \-escape
b7aab2db fix: crash when redefining the EOF token
89e42ffb style: fix missing space before paren
6aae4a73 style: fix comments and more debug trace
7d4a4300 style: more uses of const
31d4ec28 bench: fix support for pure parser
0a5bfb4f portability: multiple typedefs
12d0b156 style: revert "avoid warnings with GCC 4.6"
cb7dcb01 maint: post-release administrivia

CVE: CVE-2020-24980 fixed by b801b7b6
CVE: CVE-2020-24979 fixed by b7aab2db

Signed-off-by: Stacy Gaikovaia <Stacy.Gaikovaia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agokernel-devsrc: account for HOSTCC and HOSTCXX
Bruce Ashfield [Thu, 10 Sep 2020 02:04:10 +0000 (22:04 -0400)]
kernel-devsrc: account for HOSTCC and HOSTCXX

Since commit 740d87766cb87f75c477 [kernel.bbclass: Configuration
for environment with HOSTCXX], both HOSTCC and HOSTCXX are pickedup
by the kernel build system as triggers to reconfigure if changed.

As with previous changes to devsrc, we replace the cross build
variant, with what will be on target, so operations such as
'make scripts prepare' won't trigger a reconfiguration.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolinuxloader.bbclass: Define riscv32 ldso for musl
Khem Raj [Thu, 10 Sep 2020 01:47:37 +0000 (18:47 -0700)]
linuxloader.bbclass: Define riscv32 ldso for musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibucontext: Recognise riscv32 architecture
Khem Raj [Thu, 10 Sep 2020 01:47:36 +0000 (18:47 -0700)]
libucontext: Recognise riscv32 architecture

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agomusl: Upgrade to latest master
Khem Raj [Thu, 10 Sep 2020 01:47:35 +0000 (18:47 -0700)]
musl: Upgrade to latest master

Accomodates rv32 port which is out of tree at the moment

details are [1]

[1] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=73cc775bee53300c7cf759f37580220b18ac13d3..ffac0c229986725c0d0f3c806bafa7e3ca409f3b

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agognupg: uprev 2.2.22 -> 2.2.23
Saul Wold [Thu, 10 Sep 2020 00:46:32 +0000 (17:46 -0700)]
gnupg: uprev 2.2.22 -> 2.2.23

This addresses CVE-2020-25125 and provides some other minor
updates and translations.

Updated commits for reference:
  e234d04c3 Werner Koch Release 2.2.23
  aeb8272ca Werner Koch gpg: Fix AEAD preference list overflow
  038314665 Werner Koch po: auto update
  1a4b0fd79 Yuri Chornoivan po: Update Ukrainian translation
  93d10403a Jakub Bogusz po: Update Polish translation
  a8a8105bc Werner Koch po: Add key-check.c to the list of translatable sources.
  cad9955ac Petr Pisar po: Update Czech translation.
  896c528ba Werner Koch gpg: Fix segv importing certain keys.
  0a9665187 NIIBE Yutaka scd: Fix a regression for OpenPGP card.
  bcae9cd4e Nagy Ferenc László po: Minor update to the Hungarian translation.
  d2fe2ffd7 Werner Koch sm: Fix a bug in the rfc2253 parser
  f799b3ddb Werner Koch Post release updates

Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoweston-init: Redefine weston service and add socket activation option
Khem Raj [Wed, 9 Sep 2020 16:27:04 +0000 (09:27 -0700)]
weston-init: Redefine weston service and add socket activation option

Currently, weston when autolauched with systemd ends up with seat0
related errors because its launched before seat0 is assigned.

Fixes
[05:16:09.357] logind: failed to get session seat
[05:16:09.358] logind: cannot setup systemd-logind helper (-61), using legacy fallback

The above error results in ptest failures in parselogs, even though
weston has started ok using fallback methods, these errors are still seen in logs

Also fixes weston ptests
RESULTS - weston.WestonTest.test_weston_can_initialize_new_wayland_compositor: PASSED (8.58s)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Marek Vasut <marex@denx.de>
Cc: Henning Heinold <henning@itconsulting-heinold.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agotune-cortexa*: Cleanups
Jon Mason [Wed, 9 Sep 2020 22:16:52 +0000 (18:16 -0400)]
tune-cortexa*: Cleanups

Make the existing ARMv8 Cortex-A tunings similar in the way the cascade
the settings.

Signed-off-by: Jon Mason <jon.mason@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agotune-cortexa57-cortexa53.inc: add CRC and set march
Jon Mason [Wed, 9 Sep 2020 22:16:51 +0000 (18:16 -0400)]
tune-cortexa57-cortexa53.inc: add CRC and set march

Add CRC to the default tuning of big.LITTLE Cortex-A57-A53.  This puts
it inline with all other ARMv8a tunings.  Also, reference
PACKAGE_EXTRA_ARCHS_tune-armv8a-crc instead of
PACKAGE_EXTRA_ARCHS_tune-aarch64, which sets the -march to armv8 and
enables the CRC.

Signed-off-by: Jon Mason <jon.mason@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agotune-cortexa55.inc: clean-up ARMv8.2a uses
Jon Mason [Wed, 9 Sep 2020 22:16:50 +0000 (18:16 -0400)]
tune-cortexa55.inc: clean-up ARMv8.2a uses

Remove 'crc', as that is implied by 8.2 (per GCC
https://gcc.gnu.org/onlinedocs/gcc/AArch64-Options.html#AArch64-Options).

Also, the PACKAGE_EXTRA_ARCHS should refer to the ARMv8.2a version, not
the more generic ARMv8 version.

Signed-off-by: Jon Mason <jon.mason@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agocortex-m0plus.inc: change file permissions
Jon Mason [Wed, 9 Sep 2020 22:16:49 +0000 (18:16 -0400)]
cortex-m0plus.inc: change file permissions

File is executable, and should be read/write.

Signed-off-by: Jon Mason <jon.mason@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agocve-check: avoid FileNotFoundError if no do_cve_check task has run
Chris Laplante [Wed, 9 Sep 2020 20:51:09 +0000 (16:51 -0400)]
cve-check: avoid FileNotFoundError if no do_cve_check task has run

For example, if you just run 'bitbake cve-update-db-native' in a clean
build system, |cve_tmp_file| won't exist yet.

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agocve-update-db-native: use context manager for cve_f
Chris Laplante [Wed, 9 Sep 2020 20:51:08 +0000 (16:51 -0400)]
cve-update-db-native: use context manager for cve_f

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agocve-check/cve-update-db-native: use lockfile to fix usage under multiconfig
Chris Laplante [Wed, 9 Sep 2020 20:51:07 +0000 (16:51 -0400)]
cve-check/cve-update-db-native: use lockfile to fix usage under multiconfig

Previously CVE_CHECK_DB_FILE / CVE_CHECK_DB_DIR was the same across
multiconfigs which led to a race condition wherein multiple
cve-update-db-native:do_populate_cve_db tasks could attempt to write to
the same sqlite database. This led to the following task failure:

    Error executing a python function in exec_python_func() autogenerated:

    The stack trace of python calls that resulted in this exception/failure was:
    File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
         0001:
     *** 0002:do_populate_cve_db(d)
         0003:
    File: '/mnt/data/agent/work/74f119cccb44f133/yocto/sources/poky/meta/recipes-core/meta/cve-update-db-native.bb', lineno: 103, function: do_populate_cve_db
         0099:        if year == date.today().year:
         0100:            cve_f.write('CVE database update : %s\n\n' % date.today())
         0101:
         0102:    cve_f.close()
     *** 0103:    conn.commit()
         0104:    conn.close()
         0105:}
         0106:
         0107:def initialize_db(c):
    Exception: sqlite3.OperationalError: disk I/O error

Use a lockfile to ensure multiple tasks don't step over each other.

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agocve-update-db-native: add progress handler
Chris Laplante [Wed, 9 Sep 2020 20:51:06 +0000 (16:51 -0400)]
cve-update-db-native: add progress handler

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoweston: upgrade 8.0.0 -> 9.0.0
Denys Dmytriyenko [Wed, 9 Sep 2020 02:21:56 +0000 (22:21 -0400)]
weston: upgrade 8.0.0 -> 9.0.0

Weston 9.0.0 is released! This release cycle has been pretty quiet,
with just a few new features:

- A new kiosk shell allows to display regular desktop apps in an
  always-fullscreen mode
- Improved testing infrastructure: the test harness has been
  redesigned, DRM tests are now supported, DRM and OpenGL tests are now
  enabled in our CI
- DRM panel orientation property support

As always, a number of bug fixes are included as well.
https://lists.freedesktop.org/archives/wayland-devel/2020-September/041595.html

Add a patch to fix building of tests/weston-test-fixture-compositor.c on musl.

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibxml2: Fix CVE-2020-24977
Ovidiu Panait [Wed, 9 Sep 2020 08:11:53 +0000 (11:11 +0300)]
libxml2: Fix CVE-2020-24977

GNOME project libxml2 v2.9.10 and earlier have a global Buffer Overflow
vulnerability in xmlEncodeEntitiesInternal at libxml2/entities.c. The issue has
been fixed in commit 8e7c20a1 (20910-GITv2.9.10-103-g8e7c20a1).

Reference:
https://gitlab.gnome.org/GNOME/libxml2/-/issues/178

Upstream patch:
https://gitlab.gnome.org/GNOME/libxml2/-/commit/50f06b3efb638efb0abd95dc62dca05ae67882c2

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agorecipes-graphics/xorg-xserver: Add patch to fix segfault when probe
Aníbal Limón [Tue, 8 Sep 2020 17:31:12 +0000 (12:31 -0500)]
recipes-graphics/xorg-xserver: Add patch to fix segfault when probe

Fix segfault on probing a non-PCI platform device on a system with PCI.

...
    at ../../xorg-server-1.20.9/os/log.c:1017
    at ../../xorg-server-1.20.9/os/osinit.c:156
    at ../../xorg-server-1.20.9/os/osinit.c:110
    at ../../../../xorg-server-1.20.9/hw/xfree86/common/xf86platformBus.c:292
    argv=argv@entry=0xffffca43c7c8) at ../../../../xorg-server-1.20.9/hw/xfree86/common/xf86Init.c:388
    at ../../xorg-server-1.20.9/dix/main.c:193
    init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=<optimized out>)
    at ../csu/libc-start.c:314
...

Backported from upstream rev e50c85f4e.

Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agocmake: whitelist CVE-2016-10642
Ross Burton [Tue, 8 Sep 2020 16:47:44 +0000 (17:47 +0100)]
cmake: whitelist CVE-2016-10642

This CVE is specific to the npm package that can install cmake, so isn't
relevant to our cmake recipe.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoharfbuzz: fix a build race around hb-version.h
Ross Burton [Tue, 8 Sep 2020 13:57:17 +0000 (14:57 +0100)]
harfbuzz: fix a build race around hb-version.h

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoharfbuzz: update patch status
Ross Burton [Tue, 8 Sep 2020 13:57:16 +0000 (14:57 +0100)]
harfbuzz: update patch status

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agocurl: add vendors to CVE_PRODUCT to exclude false positives
Ross Burton [Tue, 8 Sep 2020 12:23:24 +0000 (13:23 +0100)]
curl: add vendors to CVE_PRODUCT to exclude false positives

To avoid false positives (such as CVE-2010-0734, rubygems:curl), expand
the CVE_PRODUCT list to include all the vendors that have been used.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoell: update to 0.33
Oleksandr Kravchuk [Tue, 8 Sep 2020 06:57:23 +0000 (08:57 +0200)]
ell: update to 0.33

Changelog
- Fix issue with uintset and number of bytes copied.
- Fix issue with overflow in DHCP lease T2 computation.
- Fix issue with side channel leak in l_ecc_scalar_new.
- Fix issue with missing MSG_MORE in l_cipher_set_iv.
- Add support for DHCP v6 client implementation.

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agognutls: CVE-2020-24659
Zhixiong Chi [Tue, 8 Sep 2020 02:57:36 +0000 (19:57 -0700)]
gnutls: CVE-2020-24659

Backport the CVE patch from the usptream:
https://gitlab.com/gnutls/gnutls.git
commit 29ee67c205855e848a0a26e6d0e4f65b6b943e0a

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agooeqa/concurrencytest: Improve builddir path manipulations
Richard Purdie [Tue, 8 Sep 2020 08:59:54 +0000 (09:59 +0100)]
oeqa/concurrencytest: Improve builddir path manipulations

Its possible some patterns may cause problems with the current path
manipulations, make a small tweak to try and avoid potential pathname
overlap issues.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoselftest/signing: Ensure build path relocation is safe
Richard Purdie [Mon, 7 Sep 2020 15:29:52 +0000 (16:29 +0100)]
selftest/signing: Ensure build path relocation is safe

Similarly to 04ee0e8b95cd8ed890374e0007f976684206b630, ensure only full
build paths are replaced in the environment to avoid breaking buildtools.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agosystemd-serialgetty: Fix sed expression quoting
Rahul Kumar [Sun, 6 Sep 2020 17:31:28 +0000 (23:01 +0530)]
systemd-serialgetty: Fix sed expression quoting

Fix sed: -e expression #1, char 13: unterminated `s' command

Error Message:
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['pseudo-native', 'glibc', 'patch-native', 'quilt-native', 'gcc-cross-arm', 'gcc-runtime', 'linux-libc-headers', 'libgcc', 'flex-native', 'xz-native', 'libtool-native', 'automake-native', 'binutils-cross-arm', 'zlib-native', 'mpfr-native', 'texinfo-dummy-native', 'autoconf-native', 'libmpc-native', 'gnu-config-native', 'gmp-native', 'attr-native', 'm4-native', 'gettext-minimal-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_install
| sed: -e expression #1, char 13: unterminated `s' command
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/opt/Projects/poky/build/tmp/work/qemux86_64-poky-linux/systemd-serialgetty/1.0-r5/temp/run.do_install.11228' failed with exit code 1:
| sed: -e expression #1, char 13: unterminated `s' command
| WARNING: exit code 1 from a shell command.
|

To Fix this Issue using the strong (single quote) character in sed command.
It is recommend to use quotes. If we have meta-characters in the command, quotes are necessary.

Signed-off-by: Rahul Kumar <rahulk@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agooe-publish-sdk: add --keep-orig option
Adrian Freihofer [Mon, 7 Sep 2020 16:43:14 +0000 (18:43 +0200)]
oe-publish-sdk: add --keep-orig option

Support publishing the sdk-update as well as the sdk installer in one
go.

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agooe-publish-sdk: fix layers init via ssh
Adrian Freihofer [Mon, 7 Sep 2020 16:43:13 +0000 (18:43 +0200)]
oe-publish-sdk: fix layers init via ssh

Escaping does not work in my use case. It must be escaped for
python, ssh and shell as well as for different versions of echo.
Let's try it a little less elegant, but hopefully more reliable.

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoimage.bbclass: fix REPRODUCIBLE_TIMESTAMP_ROOTFS reference
Matt Madison [Mon, 7 Sep 2020 13:21:15 +0000 (06:21 -0700)]
image.bbclass: fix REPRODUCIBLE_TIMESTAMP_ROOTFS reference

Commit 97b439469a45a089431ca9c31893288c855045f4 added a fallback
mechanism for getting the rootfs timestamp. However, it uses curly
braces around the variable name, which causes bitbake resolve the
variable reference, rather than the shell, so the git timestamp
never gets used. Fix the reference to restore the intent of
making it a fallback for when there is no git timestamp to
retrieve.

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agorunqemu: Add a hook to allow it to renice
Richard Purdie [Sat, 5 Sep 2020 14:06:07 +0000 (15:06 +0100)]
runqemu: Add a hook to allow it to renice

We have an issue where qemu is being starved of resources on our autobuilders.
We can't raise its priority without special capacilties, therefore add a hook
which if present can allow this to happen using an executable
"~/runqemu-renice".

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolocal.conf.sample.extended: remove help2man reference
Ross Burton [Thu, 3 Sep 2020 13:02:27 +0000 (14:02 +0100)]
local.conf.sample.extended: remove help2man reference

help2man isn't part of the early build anymore, so there's no point in
referring to it here.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogo: Upgrade to 1.15 major release
Khem Raj [Fri, 4 Sep 2020 02:23:47 +0000 (19:23 -0700)]
go: Upgrade to 1.15 major release

1.15 is latest major release changelog is [1] and detailed blog is [2]

Drop hardcoding ldso patch in favor of setting it using GO_LDSO variable
which can be defined in terms of linuxloader defined by OE

Setting GOBUILDMODE to pie is no longer needed

[1] https://golang.org/doc/go1.15
[2] https://blog.golang.org/go1.15

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agohelp2man: rewrite recipe
Ross Burton [Fri, 4 Sep 2020 15:42:36 +0000 (16:42 +0100)]
help2man: rewrite recipe

This recipe was originally explicitly minimal because it was needed to
bootstrap autotools, but that isn't the case anymore.

Instead of being explicitly native, use BBCLASSEXTEND.

No need to explicitly depend on autoconf-native automake-native, because
the autotools class does that.

As this recipe isn't needed in early build anymore there's no need to
avoid reconfiguring.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agokea: bump to 1.7.10
Ross Burton [Thu, 3 Sep 2020 20:31:53 +0000 (21:31 +0100)]
kea: bump to 1.7.10

This is the latest release in the 1.7.x series so should be a safe
upgrade, and means we can drop a patch as the AC_TRY_RUN has an
optimistic fallback for cross-compiling now.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agokea: don't use PACKAGECONFIG inappropriately
Ross Burton [Thu, 3 Sep 2020 20:31:52 +0000 (21:31 +0100)]
kea: don't use PACKAGECONFIG inappropriately

The Kea recipe has PACKAGECONFIG options for boost, openssl, and
log4cplus. However, these are not optional but mandatory dependencies.

Remove the PACKAGECONFIGs and replace with explicit DEPENDS and
EXTRA_OECONF. Also the RDEPENDS in the PACKAGECONFIGs are redundant as
the library dependencies are generated correctly.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agokea: no need to depend on kea-native
Ross Burton [Thu, 3 Sep 2020 20:31:51 +0000 (21:31 +0100)]
kea: no need to depend on kea-native

kea-msg-compiler is only needed if you alter the messages and the
generated sources need to be rebuilt.  When this is the case, there are
better ways to build kea-msg-compiler that don't involve building all of
Kea.

Don't depend on kea-native, remove BBCLASSEXTEND=native, and the target
overrides.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoautoconf: consolidate DEPENDS
Ross Burton [Thu, 3 Sep 2020 14:39:25 +0000 (15:39 +0100)]
autoconf: consolidate DEPENDS

Depending on nativesdk- varients in a nativesdk build isn't correct, so
just collapse the DEPENDS down and let bitbake do the right thing (which
is leaving them as -native).

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoautoconf: consolidate SRC_URI
Ross Burton [Thu, 3 Sep 2020 14:39:24 +0000 (15:39 +0100)]
autoconf: consolidate SRC_URI

There's no point splitting SRC_URI between the .inc and the .bb when
there's just one recipe and the splitting appeared to be arbitrary.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoinsane: only load real files as ELF
Ross Burton [Thu, 3 Sep 2020 12:43:19 +0000 (13:43 +0100)]
insane: only load real files as ELF

The file path checks are passed an ELF object if the file is an ELF. It
doesn't make a lot of sense to load symlinks to ELFs as if they're in
the same package then the real file will be checked too.

This should speed up do_package_qa slightly as libraries won't be
scanned repeatedly.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agodebianutils: change SRC_URI to use snapshot.debian.org
Ross Burton [Thu, 3 Sep 2020 10:54:48 +0000 (11:54 +0100)]
debianutils: change SRC_URI to use snapshot.debian.org

The primary Debian archive only contains tarballs which are currently
shipped in a release, so it's easy for a tarball we need to disappear.
Instead, point at snapshot.debian.org to ensure the link remains valid.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogdk-pixbuf: add tests PACKAGECONFIG
Ross Burton [Thu, 3 Sep 2020 10:54:39 +0000 (11:54 +0100)]
gdk-pixbuf: add tests PACKAGECONFIG

Convert the installed-tests toggle from simply respecting PTEST_ENABLED
to a PACKAGECONFIG, so that it can be turned on/off in the usual manner.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agorpcbind: Use update-alternatives for rpcinfo
Khem Raj [Tue, 1 Sep 2020 22:32:27 +0000 (15:32 -0700)]
rpcbind: Use update-alternatives for rpcinfo

rpcinfo is also provided vy netkit in meta-networking

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoxserver-xorg: update 1.20.8 -> 1.20.9
Alexander Kanavin [Wed, 2 Sep 2020 21:13:29 +0000 (23:13 +0200)]
xserver-xorg: update 1.20.8 -> 1.20.9

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agomesa: update 20.1.5 -> 20.1.6
Alexander Kanavin [Wed, 2 Sep 2020 21:13:30 +0000 (23:13 +0200)]
mesa: update 20.1.5 -> 20.1.6

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibx11: update 1.6.11 -> 1.6.12
Alexander Kanavin [Wed, 2 Sep 2020 21:13:28 +0000 (23:13 +0200)]
libx11: update 1.6.11 -> 1.6.12

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agognupg: update 2.2.21 -> 2.2.22
Alexander Kanavin [Wed, 2 Sep 2020 21:13:27 +0000 (23:13 +0200)]
gnupg: update 2.2.21 -> 2.2.22

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibva-utils: fix upstream version check
Alexander Kanavin [Wed, 2 Sep 2020 21:13:26 +0000 (23:13 +0200)]
libva-utils: fix upstream version check

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agonasm: update 2.15.03 -> 2.15.05
Alexander Kanavin [Wed, 2 Sep 2020 21:13:25 +0000 (23:13 +0200)]
nasm: update 2.15.03 -> 2.15.05

Use autotools-brokensep as new version needs that.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agognu-config: update to latest revision
Alexander Kanavin [Wed, 2 Sep 2020 21:13:24 +0000 (23:13 +0200)]
gnu-config: update to latest revision

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agostress-ng: upgrade 0.11.18 -> 0.11.19
Alexander Kanavin [Wed, 2 Sep 2020 21:13:23 +0000 (23:13 +0200)]
stress-ng: upgrade 0.11.18 -> 0.11.19

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoresolvconf: upgrade 1.82 -> 1.83
Alexander Kanavin [Wed, 2 Sep 2020 21:13:22 +0000 (23:13 +0200)]
resolvconf: upgrade 1.82 -> 1.83

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agore2c: upgrade 2.0.2 -> 2.0.3
Alexander Kanavin [Wed, 2 Sep 2020 21:13:21 +0000 (23:13 +0200)]
re2c: upgrade 2.0.2 -> 2.0.3

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agopango: upgrade 1.46.0 -> 1.46.1
Alexander Kanavin [Wed, 2 Sep 2020 21:13:20 +0000 (23:13 +0200)]
pango: upgrade 1.46.0 -> 1.46.1

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agop11-kit: upgrade 0.23.20 -> 0.23.21
Alexander Kanavin [Wed, 2 Sep 2020 21:13:19 +0000 (23:13 +0200)]
p11-kit: upgrade 0.23.20 -> 0.23.21

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoninja: upgrade 1.10.0 -> 1.10.1
Alexander Kanavin [Wed, 2 Sep 2020 21:13:18 +0000 (23:13 +0200)]
ninja: upgrade 1.10.0 -> 1.10.1

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agomsmtp: upgrade 1.8.11 -> 1.8.12
Alexander Kanavin [Wed, 2 Sep 2020 21:13:17 +0000 (23:13 +0200)]
msmtp: upgrade 1.8.11 -> 1.8.12

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibuv: upgrade 1.38.1 -> 1.39.0
Alexander Kanavin [Wed, 2 Sep 2020 21:13:16 +0000 (23:13 +0200)]
libuv: upgrade 1.38.1 -> 1.39.0

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibrepo: upgrade 1.12.0 -> 1.12.1
Alexander Kanavin [Wed, 2 Sep 2020 21:13:15 +0000 (23:13 +0200)]
librepo: upgrade 1.12.0 -> 1.12.1

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibmpc: upgrade 1.1.0 -> 1.2.0
Alexander Kanavin [Wed, 2 Sep 2020 21:13:14 +0000 (23:13 +0200)]
libmpc: upgrade 1.1.0 -> 1.2.0

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoharfbuzz: upgrade 2.7.1 -> 2.7.2
Alexander Kanavin [Wed, 2 Sep 2020 21:13:13 +0000 (23:13 +0200)]
harfbuzz: upgrade 2.7.1 -> 2.7.2

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoenchant2: upgrade 2.2.8 -> 2.2.9
Alexander Kanavin [Wed, 2 Sep 2020 21:13:12 +0000 (23:13 +0200)]
enchant2: upgrade 2.2.8 -> 2.2.9

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agodebianutils: upgrade 4.11 -> 4.11.1
Alexander Kanavin [Wed, 2 Sep 2020 21:13:11 +0000 (23:13 +0200)]
debianutils: upgrade 4.11 -> 4.11.1

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibxcrypt: upgrade 4.4.16 -> 4.4.17
Alexander Kanavin [Wed, 2 Sep 2020 21:13:10 +0000 (23:13 +0200)]
libxcrypt: upgrade 4.4.16 -> 4.4.17

License-Update: adjusted file list
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agocmake: upgrade 3.18.1 -> 3.18.2
Alexander Kanavin [Wed, 2 Sep 2020 21:13:09 +0000 (23:13 +0200)]
cmake: upgrade 3.18.1 -> 3.18.2

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoglib-2.0: update 2.64.4 -> 2.64.5
Alexander Kanavin [Wed, 2 Sep 2020 21:13:08 +0000 (23:13 +0200)]
glib-2.0: update 2.64.4 -> 2.64.5

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agopackage.bbclass: hash equivalency and pr service
Mark Hatle [Wed, 2 Sep 2020 15:33:22 +0000 (10:33 -0500)]
package.bbclass: hash equivalency and pr service

When the PR service is enabled a number of small changes may happen
to variables.  In the do_package step a call to package_get_auto_pr
will end up setting PRAUTO and modifying PKGV (if AUTOINC is there).

PRAUTO is then used by EXTENDPRAUTO, which is then used to generate
PKGR.

Since this behavior typically happens BEFORE the BB_UNIHASH is
calculated for do_package, we need a way to defer the expansion
until after we have the unihash value.

Writing out the pkgdata files w/o AUTOPR and PKGV (AUTOINC) expanded
to placeholder values is the easiest way to deal with this.  All other
variables are expanded as expected.

In the next task, typically do_packagedata, we will then use the
UNIHASH from the do_package to get the PR (AUTOPR) as well as
generate the AUTOINC replacement value (now PRSERV_PV_AUTOINC).

The do_packagedata then translates the placeholders to the final values
when copying the data from pkgdata to pkgdata-pdata-input.

Also update the prservice test case.  With unihash, just changing the
do_package (via a _append) will not change the PR.  So write the date
to a specific file that is incorporated into the unihash to ensure it
is always different for the test.  Various assert messages were also
updated to make it easier to figure out where/why a problem occured.

Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agokernel-yocto: only replace leading -I in include paths
Yanfei Xu [Wed, 2 Sep 2020 14:33:04 +0000 (10:33 -0400)]
kernel-yocto: only replace leading -I in include paths

We just want to remove the first '-I' in $d, hence removing the
g' of sed avoid changing the real path which is include '-I'

We also add an anchor to the regex to only match -I at the start
of the path.

Signed-off-by: Yanfei Xu <yanfei.xu@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolinux-yocto/5.8: update to v5.8.5
Bruce Ashfield [Wed, 2 Sep 2020 14:33:03 +0000 (10:33 -0400)]
linux-yocto/5.8: update to v5.8.5

Updating linux-yocto/5.8 to the latest korg -stable release that comprises
the following commits:

    9ece50d8a470 Linux 5.8.5
    c05dea7c0f3f binfmt_flat: revert "binfmt_flat: don't offset the data start"
    44f639d5aeda io_uring: fix missing ->mm on exit
    3f4be7a7db9f netlink: fix state reallocation in policy export
    1c0be9a99c9c ethtool: Don't omit the netlink reply if no features were changed
    507d7ac63fad ethtool: Account for hw_features in netlink interface
    e53140320193 ethtool: Fix preserving of wanted feature bits in netlink interface
    da995e0a6dac net: ena: Make missed_tx stat incremental
    3942262b7499 tipc: fix uninit skb->data in tipc_nl_compat_dumpit()
    828fd2e892b0 tipc: call rcu_read_lock() in tipc_aead_encrypt_done()
    22f2be57784e net/smc: Prevent kernel-infoleak in __smc_diag_dump()
    df805b956877 net: sctp: Fix negotiation of the number of data streams.
    4c1fc05e5d6a net/sched: act_ct: Fix skb double-free in tcf_ct_handle_fragments() error flow
    351366ffef2c net: qrtr: fix usage of idr in port assignment to socket
    c4c76ec584a7 net: nexthop: don't allow empty NHA_GROUP
    a75f8a60c415 net: Fix potential wrong skb->protocol in skb_vlan_untag()
    3f13223bb0b1 gre6: Fix reception with IP6_TNL_F_RCV_DSCP_COPY

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolinux-libc-headers: kernel headers are installed in STAGING_KERNEL_BUILDDIR
Nicolas Dechesne [Wed, 2 Sep 2020 10:47:44 +0000 (12:47 +0200)]
linux-libc-headers: kernel headers are installed in STAGING_KERNEL_BUILDDIR

Since 'fido', kernel headers are installed in STAGING_KERNEL_BUILDDIR,
not STAGING_KERNEL_DIR. So this message in the linux-libc-headers
recipe is slightly misleading.

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoiputils: Adapt ${PN}-tftpd package dependency to PACKAGECONFIG
Richard Purdie [Wed, 2 Sep 2020 10:40:22 +0000 (11:40 +0100)]
iputils: Adapt ${PN}-tftpd package dependency to PACKAGECONFIG

This avoids failures when recipes try and use the iptuils package.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoiputils: upgrade s20190709 -> s20200821
Changhyeok Bae [Tue, 1 Sep 2020 22:53:23 +0000 (00:53 +0200)]
iputils: upgrade s20190709 -> s20200821

- libgcrypt is not required anymore because the md5 implementation was
  part of this project.
- ninfod patches are upstreamed and other patch is not required anymore.
- Add tftpd in PACKAGECONFIG

Signed-off-by: Changhyeok Bae <changhyeok.bae@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agojson-glib: Backport a build fix with clang
Khem Raj [Wed, 2 Sep 2020 06:43:02 +0000 (23:43 -0700)]
json-glib: Backport a build fix with clang

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoselftest/prservice: Improve test failure message
Richard Purdie [Tue, 1 Sep 2020 22:41:15 +0000 (23:41 +0100)]
selftest/prservice: Improve test failure message

When failing, give more information about why exactly a failure is
happening such as the PR values in question.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agodiffoscope: upgrade 156 -> 158
Joshua Watt [Tue, 1 Sep 2020 18:57:07 +0000 (13:57 -0500)]
diffoscope: upgrade 156 -> 158

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agobind: 9.11 remove
akuster [Tue, 1 Sep 2020 15:22:36 +0000 (08:22 -0700)]
bind: 9.11 remove

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agobind: Add 9.16.x
akuster [Tue, 1 Sep 2020 15:22:35 +0000 (08:22 -0700)]
bind: Add 9.16.x

Removed obsolete packageconfig options

License change to MPL-2.0
https://gitlab.isc.org/isc-projects/bind9/blob/master/LICENSE

Refreshed:
bind-ensure-searching-for-json-headers-searches-sysr.patch
0001-named-lwresd-V-and-start-log-hide-build-options.patch
bind-ensure-searching-for-json-headers-searches-sysr.patch

Drop obsolete patch: 0001-configure.in-remove-useless-L-use_openssl-lib.patch

RP: Dropped the multilib scripts handling as those scripts are no longer present
in this version.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agodhcp: remove from core
akuster [Tue, 1 Sep 2020 15:22:34 +0000 (08:22 -0700)]
dhcp: remove from core

update maintainers.inc too

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>