]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
5 years agolibinput: update to 1.14.0
Oleksandr Kravchuk [Thu, 8 Aug 2019 17:45:25 +0000 (19:45 +0200)] 
libinput: update to 1.14.0

(From OE-Core rev: 52b3d0a8a623723e946dcf490861a75e6f77e54e)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython-nose: remove the python 2.x version of the recipe
Alexander Kanavin [Thu, 8 Aug 2019 16:11:50 +0000 (18:11 +0200)] 
python-nose: remove the python 2.x version of the recipe

With removal of python 2.x numpy, nothing needs it anymore.

(From OE-Core rev: 9f07b2836405d86e869780f8f1ae00843eadc409)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython-scons: remove the python 2.x version of the recipe
Alexander Kanavin [Thu, 8 Aug 2019 16:11:49 +0000 (18:11 +0200)] 
python-scons: remove the python 2.x version of the recipe

Nothing in oe-core or meta-oe is using it (scons.bbclass is set
to use 3.x version).

(From OE-Core rev: cd2205677fd167be51dc92436fe8f3a5aa440851)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython-numpy: remove the python 2.x version of the recipe
Alexander Kanavin [Thu, 8 Aug 2019 16:11:47 +0000 (18:11 +0200)] 
python-numpy: remove the python 2.x version of the recipe

The 1.17.0 release of NumPy no longer supports Python 2.x.

(From OE-Core rev: 4e9659f24e2f699effadcbe378b6a746d77ccdbd)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomaintainers.inc: give python recipes to Oleksandr Kravchuk
Alexander Kanavin [Thu, 8 Aug 2019 16:11:46 +0000 (18:11 +0200)] 
maintainers.inc: give python recipes to Oleksandr Kravchuk

Derek Straka has been inactive for about a year; Oleksandr
has been the de facto maintainer meanwhile.

(From OE-Core rev: 90edb9c2e2d5b68ee6923167d96aa957fab97b8b)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agodpkg: Provide update-alternative for start-stop-daemon
Jason Wessel [Thu, 8 Aug 2019 20:24:00 +0000 (13:24 -0700)] 
dpkg: Provide update-alternative for start-stop-daemon

When using DISTRO_FEATURE usrmerge, busybox and something that
requires dpkg-start-stop there is a conflict which prints the
following error.

===

ERROR: core-image-minimal-1.0-r1 do_rootfs: Postinstall scriptlets of ['busybox'] have failed. If the intention is to defer them to first boot,
then please place them into pkg_postinst_ontarget_${PN} ().
Deferring to first boot via 'exit 1' is no longer supported.
Details of the failure are in /build/tmp-glibc/work/intel_x86_64-linux/core-image-minimal/1.0-r1/temp/log.do_rootfs.
ERROR: core-image-minimal-1.0-r1 do_rootfs: Function failed: do_rootfs

===

Looking at the log file, it shows the problem:

update-alternatives: Error: not linking /build/tmp-glibc/work/intel_x86_64-linux/core-image-minimal/1.0-r1/rootfs/usr/sbin/start-stop-daemon to /usr/bin/busybox.nosuid since /build/tmp-glibc/work/intel_x86_64-linux/core-image-minimal/1.0-r1/rootfs/usr/sbin/start-stop-daemon exists and is not a link

===

The solution is to add an update-alternative to start-stop-daemon for dpkg.

(From OE-Core rev: e6d51c9472dab6cbec313ba51f9e8b9271f02eb8)

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agowic: Make disk partition size consistently computed
Jason Wessel [Thu, 8 Aug 2019 20:23:59 +0000 (13:23 -0700)] 
wic: Make disk partition size consistently computed

When using different root directories with a wks file wic is using the
value from the original ROOTFS_SIZE which is not correct.  Example:

Number  Start   End     Size    File system  Name       Flags
 1      20.5kB  318MB   318MB   fat16        otaefi     legacy_boot, msftdata
 2      318MB   636MB   318MB   ext4         otaboot
 3      636MB   1709MB  1074MB  ext4         otaroot
 4      1709MB  2027MB  318MB   ext4         otaboot_b
 5      2027MB  3101MB  1074MB  ext4         otaroot_b
 6      3101MB  5249MB  2147MB  ext4         fluxdata

The partitions 1, 2, and 3 incorrectly inherit the size, instead of using
a computed size.  With the patch applied it is working properly:

Number  Start   End     Size    File system  Name       Flags
 1      20.5kB  14.5MB  14.5MB  fat16        otaefi     legacy_boot, msftdata
 2      14.5MB  65.3MB  50.8MB  ext4         otaboot
 3      65.3MB  1139MB  1074MB  ext4         otaroot
 4      1139MB  1190MB  50.8MB  ext4         otaboot_b
 5      1190MB  2264MB  1074MB  ext4         otaroot_b
 6      2264MB  4411MB  2147MB  ext4         fluxdata

As for the removal of the bb.warn, if the size is not specified, it is
not something to warn the end user about.  Some of my default images
make use of the head room + a computed directory size or while generating
images.

(From OE-Core rev: 8e48b4d6c4d0ed213089a7449fea63aa0656e786)

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agowic: Add partition type for msdos partition tables
Jason Wessel [Thu, 8 Aug 2019 20:23:58 +0000 (13:23 -0700)] 
wic: Add partition type for msdos partition tables

In order to create a msdos partition table disk image that can auto
expand after the image is copied to an SD card, wic needs the ability
to have a primary partition as the last entry.  The desired use case
is to be able to create an A/B update partition image scheme with a
/var volume that can be auto expanded to the remainder of the SD card
at run time.

The typical .wks file will look similar to the following:

bootloader --ptable msdos
part / --source rawcopy --sourceparams="file=u-boot.imx" \
   --ondisk mmcblk --no-table --align 1 --size 1
part /boot --source bootimg-partition \
   --ondisk mmcblk --fstype=vfat --label boot --active --align 4 --size 16
part / --source rawcopy --sourceparams="file=imx6_boot.otaimg" \
   --ondisk mmcblk --fstype=ext4 --label otaboot --align 4 --type logical
part / --source rawcopy --sourceparams="file=imx6.otaimg" \
   --ondisk mmcblk --fstype=ext4 --label otaroot --align 4 --type logical
part / --source rawcopy --sourceparams="file=imx6_boot.otaimg" \
   --ondisk mmcblk --fstype=ext4 --label otaboot_b --align 4 --type logical
part / --source rawcopy --sourceparams="file=imx6.otaimg" \
   --ondisk mmcblk --fstype=ext4 --label otaroot_b --align 4 --type logical
part /var --source rawcopy --sourceparams="file=imx6_var.otaimg" \
    --ondisk mmcblk --fstype=ext4 --label fluxdata --align 4

Without the patch applied, wic will generate an SD card image that looks like:

Disk boot.img: 890940s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start    End      Size     Type      File system  Flags
 1      2056s    48001s   45946s   primary   fat16        lba
 2      48008s   132467s  84460s   primary   ext4
 3      132472s  454467s  321996s  primary   ext4
 4      454471s  890939s  436469s  extended               lba
 5      454472s  538931s  84460s   logical   ext4
 6      538936s  860931s  321996s  logical   ext4
 7      860936s  890939s  30004s   logical   ext4         boot

With the patch applied a primary partition can be created at the end
of the image which can be expanded to fill the free space on the media
where the image has been copied, which looks like:

Disk boot.img: 890940s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start    End      Size     Type      File system  Flags
 1      2056s    48001s   45946s   primary   fat16        lba
 2      48007s   860931s  812925s  extended               lba
 5      48008s   132467s  84460s   logical   ext4
 6      132472s  454467s  321996s  logical   ext4
 7      454472s  538931s  84460s   logical   ext4
 8      538936s  860931s  321996s  logical   ext4
 3      860936s  890939s  30004s   primary   ext4         boot

(From OE-Core rev: 56add7cc547e0113cdf980579d1421b14cc233e5)

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoimage_types_wic.bbclass: Copy the .wks and .env files to deploy image dir
Jason Wessel [Thu, 8 Aug 2019 20:23:57 +0000 (13:23 -0700)] 
image_types_wic.bbclass: Copy the .wks and .env files to deploy image dir

When using a .wks.in file, the only place that the generated .wks file
exists in the tmp/work area.  A copy should be left behind in the
deploy directory so that you can easily run the wic tool to
re-generate or modify a new image without running bitbake.  Custom
.wks.in files can reference any number of bitbake variables, so it is
important to save the result.

below is an example of using the generated .wks file in the deploy
area.  The full name of my generated .wks file was
core-image-minimal-ostree-uboot-ab.wks, but since you usually only
have a single .wks file per image you can use a wild card like:

  cd tmp*/deploy/images/*
  wic create --vars . -e core-image-minimal -s -m core-image-minimal-*.wks

(From OE-Core rev: 42293d75404486e20db9f7a80d0d1756887b576d)

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosstatesig: Fix leftover splitting issue from siggen change
Richard Purdie [Thu, 8 Aug 2019 21:46:05 +0000 (22:46 +0100)] 
sstatesig: Fix leftover splitting issue from siggen change

(From OE-Core rev: 8b76048da99ec3be7d763b7ccc81f767c7015bc7)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agorunqemu: Add support to handle EnrollDefaultKeys PK/KEK1 certificate
Ricardo Neri [Mon, 5 Aug 2019 22:18:23 +0000 (18:18 -0400)] 
runqemu: Add support to handle EnrollDefaultKeys PK/KEK1 certificate

The EnrollDefaultKeys.efi application (distributed in ovmf-shell-image)
expects the hypervisor to provide a Platform Key and first Key Exchange
Key certificate.

For QEMU, this is done by adding an OEM string in the Type 11 SMBIOS
table. The string contains the EnrollDefaultKeys application GUID followed
by the certificate string. For now, the string is passed in the command
line until QEMU understands OEM strings from regular files (please see
https://bugs.launchpad.net/qemu/+bug/1826200).

If runqemu detects it is given an OVMF binary with support for Secure Boot
(i.e., ovmf.secboot* binaries), extract the certificate string from the
OvmfPkKek1.pem certificate and modify the command-line parameters to
provide the key. Such certificate is created when building OVMF with
support for Secure Boot.

Cc: Ross Burton <ross.burton@intel.com>
Cc: Patrick Ohly <patrick.ohly@intel.com>
(From OE-Core rev: 5e47316ae62f7632fb62bc3b8093ac42f9e3541c)

Signed-off-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoovmf: Generate test Platform key and first Key Exchange Key
Ricardo Neri [Tue, 30 Jul 2019 22:28:29 +0000 (18:28 -0400)] 
ovmf: Generate test Platform key and first Key Exchange Key

Commit from EDK2 be9470b3c91f ("OvmfPkg/EnrollDefaultKeys: enroll
PK/KEK1 from the Type 11 SMBIOS table") mandates that a Platform Key
and first Key Exchange Key certificate is provided to the
EnrollDefaultKeys application.

Previously, the application was using a hard-coded certificate
from Red Hat embedded in the application.

Create a certificate that can QEMU can subsequently pass to
EnrollDefaultKeys when running qemu-shell-image.

Cc: Ross Burton <ross.burton@intel.com>
Cc: Patrick Ohly <patrick.ohly@intel.com>
Cc: Alexander Kanavin <alex.kanavin@gmail.com>
(From OE-Core rev: daaf9d7bd8c3586609ab0eccf49af38dbdb0b02e)

Signed-off-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoovmf: Use HOSTTOOLS' python3
Ricardo Neri [Tue, 30 Jul 2019 21:20:54 +0000 (17:20 -0400)] 
ovmf: Use HOSTTOOLS' python3

Use the variable PYTHON_COMMAND to let know EDK2 base tools that python3
in the host shall be used.

In order build successfully, the host must have installed the
python3-distutils package or equivalent.

Based on an original patch by Ross Burton.

Cc: Ross Burton <ross.burton@intel.com>
Cc: Patrick Ohly <patrick.ohly@intel.com>
(From OE-Core rev: 435d1f8ffe9df86367316d25cb6def2ea2041642)

Signed-off-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoovmf: Set PV
Ricardo Neri [Tue, 30 Jul 2019 18:26:33 +0000 (14:26 -0400)] 
ovmf: Set PV

Now that EDK2 has been tagging stable releases, we can also set PV
and drop UPSTREAM_VERSION_UNKNOWN.

Cc: Ross Burton <ross.burton@intel.com>
Cc: Patrick Ohly <patrick.ohly@intel.com>
(From OE-Core rev: b9851d612be842d35ebd78f5f21158beaaed8e64)

Signed-off-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoovmf: Update to version edk2-stable201905
Ricardo Neri [Mon, 29 Jul 2019 23:59:15 +0000 (19:59 -0400)] 
ovmf: Update to version edk2-stable201905

Fixes [YOCTO #13438]

Update OVMF to edk2-stable201905. Since the last update, several things
have changed. Many of the patches we were carrying have now been taken
upstream in EDK2 or become obsolete. See below for details.

Also, as of commit 0c1ffb9504c3("CryptoPkg: Adding OpenSSL as one
submodule of EDKII repo"), openssl is not embedded into EDK2 using a
patching script but a git submodule. Then, use the gitsm bitbabke fetcher
and drop the extra SRC_URI from openssl when building with secureboot
enabled. Also remove all related variables.

OVMF switched to BSD+Patent license as detailed in
https://bugzilla.tianocore.org/show_bug.cgi?id=1373. Hence, update
LIC_FILES_CHKSUM accordingly to reflect this change.

Patches are updated as follows:

Drop 0001-ia32-Dont-use-pie.patch as it is implemented in upstream EDK2
in commits are 11d0cd23dd1b ("BaseTools/tools_def IA32: drop -no-pie linker
option for GCC49" and c25d3905523a ("BaseTools/tools_def IA32: disable PIE
code generation explicitly") for the applicable GCC versions.

Rebase 0003-BaseTools-makefile-adjust-to-build-in-under-bitbake.patch
to edk2-stable201905.

Drop VfrCompile-increase-path-length-limit.patch as it has been taken
upstream in EDK2 in commit ba78032bc8c9f("BaseTools/VfrCompile: Remove the
MAX_PATH limitation").

Rebase no-stack-protector-all-archs.patch to keep behavior on not using
stack protector on all archs.

Drop 0001-BaseTools-header.makefile-add-Wno-stringop-truncatio.patch,
0002-BaseTools-header.makefile-add-Wno-restrict.patch, and
0003-BaseTools-header.makefile-revert-gcc-8-Wno-xxx-optio.patch. These
patches have been taken in upstream EDK2 in commits 9222154ae7b3("BaseTools
/header.makefile: add "-Wno-restrict"), 1d212a83df0e("BaseTools/
header.makefile: add "-Wno-stringop-truncation"), and 777f4aa083e9
("BaseTools/header.makefile: revert gcc-8 '-Wno-xxx' options on OSX"),
respectively.

Also, drop 0004-BaseTools-GenVtf-silence-false-stringop-overflow-war.patch.
GenVtf has been removed from EDK2 in commit 64ab2c82e8f6("BaseTools:
Remove GenVtf"). Also, this patch had been taken in EDK2 upstream in
commit 9de306701312("BaseTools/GenVtf: silence false 'stringop-overflow'
warning with memcpy()").

Drop patch 0007-OvmfPkg-EnrollDefaultKeys-application-for-enrolling-.patch
as it also has been taken by EDK2.

Patches 0002-ovmf-update-path-to-native-BaseTools.patch and
0004-ovmf-enable-long-path-file.patch did not need any update.

Lastly, add a needed dependency on bc.

Cc: Ross Burton <ross.burton@intel.com>
Cc: Patrick Ohly <patrick.ohly@intel.com>
(From OE-Core rev: 1f64ecf92fa77b682b18efe72fb6b27ff64ee052)

Signed-off-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython3-mako: 1.0.14 -> 1.1.0
Zheng Ruoqin [Thu, 8 Aug 2019 10:47:46 +0000 (18:47 +0800)] 
python3-mako: 1.0.14 -> 1.1.0

Upgrade python3-mako from 1.0.14 to 1.1.0.

(From OE-Core rev: cdde0265b196def4633ece64d798e576362e7b61)

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocmake: 3.14.5 -> 3.15.1
Pascal Bach [Thu, 8 Aug 2019 07:00:40 +0000 (09:00 +0200)] 
cmake: 3.14.5 -> 3.15.1

The patches were refreshed with devtool.

I rebuilt all cmake recipes from poky and meta-oe without issue.

(From OE-Core rev: 022d642b0c8f464b451c543db50bb93012bce607)

Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoman-db:upgrade 2.8.5 -> 2.8.6.1
Zang Ruochen [Thu, 8 Aug 2019 05:55:50 +0000 (13:55 +0800)] 
man-db:upgrade 2.8.5 -> 2.8.6.1

(From OE-Core rev: a99791672e41b8fbf1dedbcf8ca7088509875067)

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogrub/grub-efi: fix conflict for aach64
Changqing Li [Thu, 8 Aug 2019 05:51:22 +0000 (13:51 +0800)] 
grub/grub-efi: fix conflict for aach64

MACHINE = qemuarm64
IMAGE_INSTALL_append = ' grub grub-efi'

do_rootfs failed with error:
file /usr/lib64/grub/arm64-efi/acpi.module conflicts between attempted installs of grub-2.02-r0.aarch64 and grub-efi-2.02-r0.aarch64
file /usr/lib64/grub/arm64-efi/adler32.module conflicts between attempted installs of grub-2.02-r0.aarch64 and grub-efi-2.02-r0.aarch64
...
file /usr/lib64/grub/arm64-efi/zfsinfo.module conflicts between attempted installs of grub-2.02-r0.aarch64 and grub-efi-2.02-r0.aarch64

For arm64, grub and grub-efi both compiled GRUBD2 with platform
arm64-efi, arm64 only support platform efi. So both packages have
almost same folder and content /usr/lib64/grub/arm64-efi/*

if Machine set to qemux86_64, do_rootfs will not have this problem,
since for grub, it compiled with platform i386-pc, for grub-efi,
compiled with platform x86-64-efi.

>From commit:
commit 4e9bb03238af48c70075037a77094a8c1bddf284
Author: Hongxu Jia <hongxu.jia@windriver.com>
Date:   Wed Jan 17 03:25:58 2018 -0500

    grub/grub-efi: fix conflict

    While installing grub and grub-efi, there are conflict files
    in ${sysconfdir} ${datadir} ${bindir} ${sbindir}.

    - Since all of the conflicted files are tools which is
      common for grub and grub-efi, we split them (except
      grub-editenv) to grub-common in grub.

common tools for grub and grub-efi are installed into grub-common,
for aarch64, also shipped libdir into this common packages.
in this way, for qemuarm64, package grub is empty, and package grub-efi
use lib in package grub-common

(From OE-Core rev: 933286bdcb9008b75007abedf30cc1b4b6e2f0d0)

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agodeb: allow custom dpkg command
Tim Blechmann [Thu, 8 Aug 2019 04:58:33 +0000 (12:58 +0800)] 
deb: allow custom dpkg command

trying to reduce the turnaround times for local builds, i'm trying to
find a way to inject `-Zgzip -z1` into the dkpg-deb command line.

attached patch introduces a `DPKG_BUILDCMD` variable for this purpose.
(i'm not very familiar with the whole bitbake infrastructure, so i'm
wondering: do i have to add it to the `vardeps` of do_package_deb?)

tia,
tim

>From 62d4930d307d5d07844889001e8a1c3111b72b98 Mon Sep 17 00:00:00 2001
From: Tim Blechmann <tim@klingt.org>
Date: Thu, 8 Aug 2019 06:48:54 +0200
Subject: [PATCH] package_deb: allow dpkg-deb to be customized via
 DPKG_BUILDCMD

the command line to invoke `dpkg-deb` is hardcoded. there are certain use
cases where we want to tweak how debian packages are compiled: e.g. the
default uses xz compression, which is rather CPU intensive. for local
builds one might want to pass `-Zgzip -z1` to favor speed over compression
ratio.

we therefore introduce a `DPKG_BUILDCMD` variable which allows downstream
code to customize how dpkg-deb is executed

(From OE-Core rev: 4e00ceaf38f2ae338e3b192c3485aaa963f54b99)

Signed-off-by: Tim Blechmann <tim@klingt.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomusl: Update to master tip
Khem Raj [Thu, 8 Aug 2019 00:59:13 +0000 (17:59 -0700)] 
musl: Update to master tip

Fix for RISC-V build regression

64bit time syscall plumbing

Changes are here [1]

[1] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=0ce49d0a301b4142741b32773492af90f66ed3ca..d0b547dfb5f7678cab6bc39dd736ed6454357ca4

(From OE-Core rev: 34196d2913027d1fc8c080ea0c392a387e70a162)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: knotty: Fix for the Second Keyboard Interrupt
Robert Yang [Wed, 7 Aug 2019 09:50:49 +0000 (17:50 +0800)] 
bitbake: knotty: Fix for the Second Keyboard Interrupt

Fixed:
$ rm -fr tmp-glibc/cache/default-glibc/qemux86/x86_64/bb_cache.dat* ; bitbake -p
Press the first Ctrl-C when the parsing process is at about 50%:

Keyboard Interrupt, closing down...

Then presss the second Ctrl-C:

  File "/path/to/bitbake/bitbake/lib/bb/ui/knotty.py", line 619, in main
    event = eventHandler.waitEvent(0.25)
  File "/path/to/bitbake/lib/bb/server/process.py", line 591, in waitEvent
    self.eventQueueNotify.wait(delay)
  File "/usr/lib/python3.5/threading.py", line 549, in wait
    signaled = self._cond.wait(timeout)
  File "/usr/lib/python3.5/threading.py", line 297, in wait
    gotit = waiter.acquire(True, timeout)
KeyboardInterrupt

Capture the second KeyboardInterrupt during stateShutdown is running can fix
the problem. There may be still tracebacks for the third KeyboardInterrupt, but
I'm leaning to not fix it since we aimed for supporting 2 KeyboardInterrupts
only.

(Bitbake rev: 8c26b451f22193ef1c544e2017cc84515566c1b8)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: cooker: Cleanup the queue before call process.join()
Robert Yang [Wed, 7 Aug 2019 09:50:48 +0000 (17:50 +0800)] 
bitbake: cooker: Cleanup the queue before call process.join()

Fixed:
$ rm -fr tmp-glibc/cache/default-glibc/qemux86/x86_64/bb_cache.dat* ; bitbake -p
Press *one* Ctrl-C when the parsing process is at about 50%, then the processes
are not exited:

Keyboard Interrupt, closing down...

Timeout while waiting for a reply from the bitbake server

It hangs at process.join(), according to:

https://docs.python.org/3.7/library/multiprocessing.html

Cleanup the queue before call process.join() can fix the problem.

(Bitbake rev: 3eddfadd19b2ce4c061861abf0c340e3825b41ff)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolocal.conf.sample: do not add sdl to nativesdk qemu config
Alexander Kanavin [Tue, 30 Jul 2019 13:59:58 +0000 (15:59 +0200)] 
local.conf.sample: do not add sdl to nativesdk qemu config

This is unnecessary as the recipe itself already does it:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/qemu/qemu_4.0.0.bb?id=1a4e4fb6b0a9d54641bd4193e95311d1f822a9ca#n21

(From meta-yocto rev: ada58683641b8a15e8b2e44060437a9c67d532e1)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibx11: replace libtool patch with upstreamed patch
Ross Burton [Tue, 6 Aug 2019 22:07:56 +0000 (23:07 +0100)] 
libx11: replace libtool patch with upstreamed patch

After iterating with upstream, this is the patch that landed.

(From OE-Core rev: 30a2af80f5f8c8ddf0f619e4f50451b02baa22dd)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogpgme:upgrade 1.13.0 -> 1.13.1
Yuan Chao [Wed, 7 Aug 2019 06:37:06 +0000 (14:37 +0800)] 
gpgme:upgrade 1.13.0 -> 1.13.1

Refresh the following patch:
0007-python-Add-variables-to-tests.patch

(From OE-Core rev: 6cc148f8e7453ef4413ec44099a4899a4b435da2)

Signed-off-by: Yuan Chao <yuanc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobluez5: correct the python3 runtime dependency
Alexander Kanavin [Wed, 7 Aug 2019 10:29:39 +0000 (12:29 +0200)] 
bluez5: correct the python3 runtime dependency

(From OE-Core rev: 62aeba48401cba34b9cc6dc5ee14685a1a29c5d3)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoofono: correct the python3 runtime dependency
Alexander Kanavin [Wed, 7 Aug 2019 10:29:38 +0000 (12:29 +0200)] 
ofono: correct the python3 runtime dependency

(From OE-Core rev: 7f8583cc95f11cf10fb2325a1c4e23b041551581)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoattr: add a missing perl runtime dependency
Alexander Kanavin [Wed, 7 Aug 2019 10:29:37 +0000 (12:29 +0200)] 
attr: add a missing perl runtime dependency

/usr/lib/attr/ptest/test/sort-getfattr-output is a perl script.

(From OE-Core rev: 5843be17fe2ce3d206d7f8338b8d82a09cfe33fd)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoapt: add a missing perl runtime dependency
Alexander Kanavin [Wed, 7 Aug 2019 10:29:36 +0000 (12:29 +0200)] 
apt: add a missing perl runtime dependency

/usr/lib/dpkg/methods/apt/setup is a perl script.

(From OE-Core rev: a96de885e122bd31e3382d6ecf6f665680e9db71)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoelfutils: use PRIVATE_LIBS for the ptest package
Alexander Kanavin [Wed, 7 Aug 2019 10:29:35 +0000 (12:29 +0200)] 
elfutils: use PRIVATE_LIBS for the ptest package

EXCLUDE_PACKAGES_FROM_SHLIBS is too broad: it suppresses both generation
of required and provided shlibs. We need to suppress only the provided shlibs
(to avoid clashes with the main package providing the same shlibs),
and run the required shlib dependencies generator as usual.

(From OE-Core rev: 7d342fd04266bedc12706c111c5b83d952566bca)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agostress-ng: add a patch to remove unneeded bash dependency
Alexander Kanavin [Wed, 7 Aug 2019 10:29:34 +0000 (12:29 +0200)] 
stress-ng: add a patch to remove unneeded bash dependency

(From OE-Core rev: ea052d11b9ebe113ca392e092c2dd530573ac294)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibx11-compose-data: upgrade 1.6.7 -> 1.6.8
Yi Zhao [Wed, 7 Aug 2019 07:52:27 +0000 (15:52 +0800)] 
libx11-compose-data: upgrade 1.6.7 -> 1.6.8

Refresh the patch to fix the do_patch QA warning.

(From OE-Core rev: 72e6919bab390494103472401a563199ab339e85)

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibglu:upgrade 9.0.0 -> 9.0.1
Zang Ruochen [Wed, 7 Aug 2019 07:42:09 +0000 (15:42 +0800)] 
libglu:upgrade 9.0.0 -> 9.0.1

(From OE-Core rev: 3afee08c2cdb8cda75714d7460d1c67e75f0862c)

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoinetutils: Fix abort on invalid files
Ricardo Ribalda Delgado [Wed, 7 Aug 2019 07:17:44 +0000 (09:17 +0200)] 
inetutils: Fix abort on invalid files

When the code is compiled with  "-fstack-protector-strong
-D_FORTIFY_SOURCE=2", everytime ftpfd is asked for a non existent file,
it crashes with the following error:

*** buffer overflow detected ***:
Aborted

This seems to be a bug/feature of gcc. A bug has been open on their
bugzilla, and also inetutils have been posted with the proposed patch.

Without this patch, pxelinux fails to boot because it keeps asking the
server for the pxelinux.cfg/00-01-02-03-04 and never jumps to /default.

(From OE-Core rev: 0c3a1251a8aec86f3e877130f926a928e5ca2030)

Signed-off-by: Ricardo Ribalda Delgado <ricardo@ribalda.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibgudev:upgrade 232 -> 233
Zang Ruochen [Wed, 7 Aug 2019 05:49:49 +0000 (13:49 +0800)] 
libgudev:upgrade 232 -> 233

(From OE-Core rev: 466bc8f05eac59a58575fd10518ee7de44ba50d1)

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython-scons:upgrade 3.0.5 -> 3.1.0
Zang Ruochen [Wed, 7 Aug 2019 05:31:41 +0000 (13:31 +0800)] 
python-scons:upgrade 3.0.5 -> 3.1.0

(From OE-Core rev: 322ff31d811bd8142af93574b10c91c611df93bd)

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython3-pbr:upgrade 5.4.1 -> 5.4.2
Yuan Chao [Wed, 7 Aug 2019 05:19:56 +0000 (13:19 +0800)] 
python3-pbr:upgrade 5.4.1 -> 5.4.2

(From OE-Core rev: 83ffc20637abd275bc3037935d629f5a716b4614)

Signed-off-by: Yuan Chao <yuanc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomesa,llvm,meson: Update llvm to 8.0.1 plus define and use LLVM version globally
Khem Raj [Wed, 31 Jul 2019 17:48:20 +0000 (10:48 -0700)] 
mesa,llvm,meson: Update llvm to 8.0.1 plus define and use LLVM version globally

- Add missing dependency on libedit
- Define LLVMVERSION on the same lines as GCCVERSION and other tools
- Use LLVMVERSION in mesa and meson.bbclass to get llvm version instead of
  hardcoding it
- Use llvm patches unmodified from meta-clang, helps in keeping them in
  sync
- Define PREFERRED_VERSION for llvm, llvm-native, nativesdk-llvm

(From OE-Core rev: 3c08b638348abd543fc92baf56c28ca16ae6aac6)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogrub: add grub-native
Hongxu Jia [Wed, 7 Aug 2019 07:45:45 +0000 (15:45 +0800)] 
grub: add grub-native

Not only grub-efi-native, but also add grub-native to provide
grub utilities on host

(From OE-Core rev: 67dfa11f2d2fb5242814e133346e72515bfc0aca)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogenericx86-64.conf/genericx86.conf: add QB_SYSTEM_NAME
Changqing Li [Tue, 6 Aug 2019 02:25:14 +0000 (10:25 +0800)] 
genericx86-64.conf/genericx86.conf: add QB_SYSTEM_NAME

QB_SYSTEM_NAME set in qemuboot-x86.inc will be removed,
so set QB_SYSTEM_NAME in these two configuration files.

(From meta-yocto rev: 6748c925817da0e7ae2a84d1214e3595515962b5)

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agowaffle: upgrade 1.5.2 -> 1.6.0
Ross Burton [Tue, 6 Aug 2019 11:44:36 +0000 (12:44 +0100)] 
waffle: upgrade 1.5.2 -> 1.6.0

Switch to Meson instead of CMake.

Add PACKAGECONFIG for surfaceless-egl.

Inherit bash-completion for the new wlinfo completion script.

(From OE-Core rev: 96decf673992b1cd1eebac45a5cd534eef27ebd7)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogzip: update ptest package dependencies
Trevor Gamblin [Tue, 6 Aug 2019 19:16:59 +0000 (15:16 -0400)] 
gzip: update ptest package dependencies

gzip-ptest skips the following tests on core-image-sato builds:

- zgrep-context
- zdiff
- zgrep-signal

The same tests pass on core-image-sato-sdk builds. This is due to
the use of busybox tool variants on core-image-sato (zgrep-context,
zdiff) and the absence of the perl and perl-ptest packages
(zgrep-signal). This patch adds the dependencies needed for all
three tests.

(From OE-Core rev: c2559ab9b41b823b23dc675745bbaefd45362a08)

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopseudo: Fix openat() with a symlink pointing to a directory
Jason Wessel [Mon, 5 Aug 2019 16:32:37 +0000 (09:32 -0700)] 
pseudo: Fix openat() with a symlink pointing to a directory

While working with ostree disk generation in conjunction with wic, I
found a problem with pseudo where it tried to resolve a symlink when
it shouldn't, based on openat() flags. A C program has been
constructed to test pseudo to show that it is working properly with
the correct behavior around openat().

 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <dirent.h>
 #include <unistd.h>
 #include <fcntl.h>

int main()
{
    /*
     * Tested with: gcc -Wall -o app app.c ; echo "no pseudo" ;
     * ./app ; echo "pseudo"; pseudo ./app
     */
    system("rm -rf tdir tlink");
    system("mkdir tdir");
    system("ln -s tdir tlink");
    DIR *dir = opendir(".");
    int dfd = dirfd(dir);

    int target_dfd = openat (dfd, "tlink", O_RDONLY | O_NONBLOCK |
                             O_DIRECTORY | O_CLOEXEC | O_NOFOLLOW);
    if (target_dfd == -1) {
        printf("Test 1 good\n");
    } else {
        printf("Test 1 failed\n");
        close(target_dfd);
    }
    target_dfd = openat (dfd, "tlink", O_RDONLY | O_NONBLOCK |
                         O_DIRECTORY | O_CLOEXEC);
    if (target_dfd == -1) {
        printf("Test 2 failed\n");
    } else {
        printf("Test 2 good\n");
        close(target_dfd);
    }
    /* Test 3 make sure the owner of the link is root  */
    struct stat sbuf;
    if (!lstat("tlink", &sbuf) && sbuf.st_uid == 0) {
        printf("Test 3 good\n");
    } else {
        printf("Test 3 failed\n");
    }
    /* Test 4 tests open with the "rb" flag, owner should not change */
    int ofd = openat(dfd,"./tlink", O_RDONLY|O_CLOEXEC);
    if (ofd >= 0) {
        if (fstat(ofd, &sbuf) != 0)
            printf("ERROR in fstat test 4\n");
        else if (sbuf.st_uid == 0)
            printf("Test 4 good\n");
        close(ofd);
    } else {
        printf("Test 4 failed with openat()\n");
    }
    /* Test pseudo db to see the fstat() above did not delete the DB entry */
    if (!lstat("tlink", &sbuf) && sbuf.st_uid == 0)
        printf("Test 5 good\n");
    else
        printf("Test 5 failed... tlink is owned by %i and not 0\n", sbuf.st_uid);
    return 0;
}

int main()
{
    /* Tested with: gcc -Wall -o app app.c ; echo "no pseudo" ; ./app ; echo "pseudo"; pseudo ./app */
    system("rm -rf tdir tlink");
    system("mkdir tdir");
    system("ln -s tdir tlink");
    DIR *dir = opendir(".");
    int dfd = dirfd(dir);

    int target_dfd = openat (dfd, "tlink", O_RDONLY | O_NONBLOCK | O_DIRECTORY | O_CLOEXEC | O_NOFOLLOW);
    if (target_dfd == -1) {
        printf("This is right\n");
    } else {
        printf("This is broken\n");
    }
    return 0;
}

Many thanks to Peter Seebach for fixing the problem in the pseudo code
to use the same logic which was already there for the
AT_SYMLINK_NOFOLLOW.

Also updated is the license MD5 checksum since the master branch of
pseudo has had the SPDX data updated.

(From OE-Core rev: a98ea4be5ce19ff380ca500ba1ef3da490ec4556)

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosqlite3: Fix zlib determinism problem
Jason Wessel [Tue, 6 Aug 2019 21:16:08 +0000 (14:16 -0700)] 
sqlite3: Fix zlib determinism problem

sqlite3-native in particular was finding zlib from the host if zlib-devel
was installed. This could lead to races where pseudo-native may or may not
fail to build.

We don't need/use compressed page support with sqlite so disable the dependency
(it doesn't have a configure option so use a autoconf cache variable).

The target binaries were not previously building with zlib, so we will
leave the default being zlib turned off, while the host binaries were
building with it "occasionally", but not for anything at runtime.

(From OE-Core rev: 0af2c6af0d5c060666f7ee6f2ef428c1a414cb86)

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobzip2: set the autoconf package version to the recipe version
Andreas Obergschwandtner [Mon, 5 Aug 2019 14:35:55 +0000 (16:35 +0200)] 
bzip2: set the autoconf package version to the recipe version

This is done to require only a single version change if bzip2
is updated and fixes also setting package version 1.0.6 for
bzip2 1.0.8.

(From OE-Core rev: beb4fb0b0e89ce6b80645322ee435a6b4909b652)

Signed-off-by: Andreas Obergschwandtner <andreas.obergschwandtner@skidata.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agonettle:upgrade 3.4.1 -> 3.5.1
Yuan Chao [Tue, 6 Aug 2019 05:05:56 +0000 (13:05 +0800)] 
nettle:upgrade 3.4.1 -> 3.5.1

nettle-stdint.h was no longer use.
Remove nettle/nettle-stdint.h in do_install_append() of .bb file.

Changelog in ChangeLog file as follows:

2019-01-06  Niels Möller  <nisse@lysator.liu.se>

        * nettle-types.h: Don't use nettle-stdint.h, include <stdint.h>
        directly.
        * nettle-write.h: Likewise.
        * configure.ac: Delete use of AX_CREATE_STDINT_H.
        * aclocal.m4 (AX_CREATE_STDINT_H): Delete.
        * Makefile.in (INSTALL_HEADERS, distclean-here): Delete mention of
        nettle-stdint.h.

(From OE-Core rev: a44e40675e151eb079d7d9e87e734ca5cfb923b5)

Signed-off-by: Yuan Chao <yuanc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoqemuboot-x86: move QB_SYSTEM_NAME to corresponding conf
Changqing Li [Tue, 6 Aug 2019 02:18:48 +0000 (10:18 +0800)] 
qemuboot-x86: move QB_SYSTEM_NAME to corresponding conf

Configrations:
MACHINE: qemux86-64
require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "x86"

Reproduce steps:
bitbake lib32-core-image-minimal
runqemu qemux86-64 nographic lib32-core-image-minimal

Errors:
qemu cannot bootup since:
Booting from ROM...
This kernel requires an x86-64 CPU, but only detected an i686 CPU.
Unable to boot - please use a kernel appropriate for your CPU.
QEMU: Terminated

For lib32 image, override has x86, so the qemubin set to qemu-system-i386,
fix by move QB_SYSTEM_NAME to corresponding conf, don't use the override

(From OE-Core rev: ffaf86f175b2e6caa3a0067f7b3725930b053715)

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoxserver-xorg: refresh build path removal patch
Ross Burton [Tue, 6 Aug 2019 10:30:51 +0000 (11:30 +0100)] 
xserver-xorg: refresh build path removal patch

The patch has iterated, so update to the latest revision.

(From OE-Core rev: 042e8e8a7181bb3ca830185c38f9287f62c68fe6)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoell: update to 0.21
Oleksandr Kravchuk [Mon, 5 Aug 2019 12:36:00 +0000 (14:36 +0200)] 
ell: update to 0.21

Changelog:
- Fix issue with resetting DHCP lease on client stop.
- Add support for GPIO helper functionality.

(From OE-Core rev: ca881bcad40e461e93a71f05b65967e7906cf2e1)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglibc-package.inc: Add linux-libc-headers-dev to glibc-dev
Mark Hatle [Tue, 6 Aug 2019 02:05:37 +0000 (22:05 -0400)] 
glibc-package.inc: Add linux-libc-headers-dev to glibc-dev

Without linux-libc-headers-dev being added to the libc6-dev as a RDEPENDS,
the system may fail to install the necessary libc headers.

This can happen when NO_RECOMMENDATIONS = "1" is defined.

During the 'testsdk' this results in failures that look like:

    fatal error: linux/errno.h: No such file or directory
    # include <linux/errno.h>
              ^~~~~~~~~~~~~~~

This also matches the behavior of musl, which does not suffer from this
problem.

(From OE-Core rev: ad31c908c8267166ce6cce9d5085ef2ac099a6c5)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosystemd-boot: Add option to specify cross objcopy and use it
Khem Raj [Tue, 6 Aug 2019 06:45:47 +0000 (23:45 -0700)] 
systemd-boot: Add option to specify cross objcopy and use it

This is needed when build host != x86 box

(From OE-Core rev: 5096f535561d2fd608d622abec5bc2ddb79d49b7)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosyslinux: Override hardcoded toolnames in Makefile
Khem Raj [Tue, 6 Aug 2019 06:45:46 +0000 (23:45 -0700)] 
syslinux: Override hardcoded toolnames in Makefile

makefile assumes native toolnames e.g. ar, as, nm etc.
which causes build fails on non-x86 build hosts

objcopy: Unable to recognise the format of the input file `libcom32.elf'

(From OE-Core rev: ee9afb34fb95409148734fda1eea1fe8f81983fd)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agovirglrender: Fix endianness check on musl
Khem Raj [Tue, 6 Aug 2019 06:45:45 +0000 (23:45 -0700)] 
virglrender: Fix endianness check on musl

Seen to fail on musl/mips, this fixes the check to be linux specific
which means it can detect the endianness for musl correctly

(From OE-Core rev: c9559685ebcfb0303fc072c99b3d518427fc5a82)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglibc: Update to glibc 2.30
Khem Raj [Sun, 4 Aug 2019 15:14:46 +0000 (08:14 -0700)] 
glibc: Update to glibc 2.30

- Drop backported patches
- Move common pieces between cross-localedef and glibc into a common file
- Move latest checksums to glibc-common.inc and remove duplicates from glibc recipe
- Detailed release notes [1]

[1] https://sourceware.org/ml/libc-alpha/2019-08/msg00029.html

(From OE-Core rev: fe75808dca4bb56ac703d18ebbad4004678f69da)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogstreamer: Add fix for glibc 2.30
Richard Purdie [Tue, 6 Aug 2019 21:38:42 +0000 (22:38 +0100)] 
gstreamer: Add fix for glibc 2.30

Fix a header overlap/redefinition issue with glibc 2.30.

(From OE-Core rev: 11422465e187b096d06c0eaf0a66dbac5b9e8710)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoopensbi: handle deploy task under sstate
Ming Liu [Sun, 4 Aug 2019 13:03:06 +0000 (21:03 +0800)] 
opensbi: handle deploy task under sstate

Inherit deploy bbclass and install files to DEPLOYDIR rather than in
DEPLOY_DIR_IMAGE.

(From OE-Core rev: f03ab9b21c2aeeae0bd020ee94ec9bb1d903500d)

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolicense_image.bbclass: drop invalid comments
Ming Liu [Sun, 4 Aug 2019 12:37:55 +0000 (20:37 +0800)] 
license_image.bbclass: drop invalid comments

These comments are not valid any more, drop them.

(From OE-Core rev: 39f5a3030a97bdf567ee11091dd4e95ef04585d7)

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomaintainers.inc: assign acpica to Ross
Alexander Kanavin [Mon, 5 Aug 2019 12:13:13 +0000 (14:13 +0200)] 
maintainers.inc: assign acpica to Ross

Fathi has as well been inactive for a long time.

(From OE-Core rev: 29ac3e98fdfb7d0d3bb3884b97a0ba5255826904)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoqemu: fix patch Upstream-Status
Ross Burton [Mon, 5 Aug 2019 10:59:19 +0000 (11:59 +0100)] 
qemu: fix patch Upstream-Status

(From OE-Core rev: ee31907d25bc89dcb6566368aae651920564980c)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoharfbuzz: upgrade 2.4.0 -> 2.5.3
Anuj Mittal [Mon, 5 Aug 2019 03:32:18 +0000 (11:32 +0800)] 
harfbuzz: upgrade 2.4.0 -> 2.5.3

License-Update: Copyright years added, and point to correct source file.

For changes in this version, see:
https://github.com/harfbuzz/harfbuzz/blob/2.5.3/NEWS

(From OE-Core rev: bdb10b5daf07d66c1d73137c789884a933ca65dc)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopango: upgrade 1.42.4 -> 1.44.3
Anuj Mittal [Mon, 5 Aug 2019 03:32:17 +0000 (11:32 +0800)] 
pango: upgrade 1.42.4 -> 1.44.3

* For changes, see:
https://github.com/GNOME/pango/blob/master/NEWS

* Remove upstreamed patch, rename docs and introspection meson
options and add PACKAGECONFIG for tests.

(From OE-Core rev: e7fcd745977a86926f83edeaaf31efad70002da8)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agowebkitgtk: Fix compile failures with clang
Khem Raj [Mon, 5 Aug 2019 19:34:31 +0000 (12:34 -0700)] 
webkitgtk: Fix compile failures with clang

Backport upstream patch to address build regression with clang

Fixes
webkitgtk-2.24.3/Source/bmalloc/bmalloc/AvailableMemory.cpp:120:31: error: implicit instantiation of undefined template 'std::__1::array<char, 256>'
        std::array<char, 256> statmBuffer;
                              ^

(From OE-Core rev: 94a1c0a15e57844feddad5607fb8643f7c956953)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogroff: Fix math.h inclusion from system headers issue
Khem Raj [Mon, 5 Aug 2019 19:34:29 +0000 (12:34 -0700)] 
groff: Fix math.h inclusion from system headers issue

groff has system headers overrides in its sourcecode which it
generates as fallbacks but in some cases when a system header includes
math.h via include <> directive it lands in the override header and
causes compile issues, seen with clang+libc++, this patch makes sure
that right defines are available before including it

(From OE-Core rev: e9beba2a33b46d31bfdd926211d22ebf2abb6c90)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibedit: fix upstream verison check
Alexander Kanavin [Mon, 5 Aug 2019 11:35:22 +0000 (13:35 +0200)] 
libedit: fix upstream verison check

The default works fine; not sure why the line was added.

(From OE-Core rev: 66bb9fd36128bb5ce12c7a5e224cfcd69dc2cd06)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibx11-diet: remove
Ross Burton [Fri, 2 Aug 2019 20:44:06 +0000 (21:44 +0100)] 
libx11-diet: remove

This doesn't appear to be used anymore, as saving a few hundred k at the expense
of only using ASCII is quite the compromise in the modern world.

(From OE-Core rev: 1a502765db2093e573c9e3ecd6c1bc7621476963)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosstatesig: Updates to match bitbake siggen changes
Richard Purdie [Mon, 29 Jul 2019 16:28:04 +0000 (17:28 +0100)] 
sstatesig: Updates to match bitbake siggen changes

Update the metadata to correspond to the bitbake siggen task specification
format change. This standardises on "<fn>:<task>" everywhere rather than
the "." delimiter that was being used in some places.

This is an API breaking change but means we now have a consistent format
being used throughout the codebase without compatibility APIs.

(From OE-Core rev: 23db236a054ee7a989cdbbcb42ad5c6eefd4a6ae)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosstate/sstatesig: Update to new form of BB_HASHCHECK_FUNCTION
Richard Purdie [Mon, 29 Jul 2019 14:45:19 +0000 (15:45 +0100)] 
sstate/sstatesig: Update to new form of BB_HASHCHECK_FUNCTION

Bitbake has updated to a cleaned up form of BB_HASHCHECK_FUNCTION,
adapt to this cleanup. This is an API breaking change.

(From OE-Core rev: a4d413d8d809132b0e0a5dd673a36e2bd0e0be4c)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosstatesig: Update to handle BB_HASHSERVE
Richard Purdie [Wed, 24 Jul 2019 08:14:25 +0000 (09:14 +0100)] 
sstatesig: Update to handle BB_HASHSERVE

Update the code to handle BB_HASHSERV, an autostarted bitbake internal hash
equivalency server suited to local developer usage.

(From OE-Core rev: 9b3d7b0b0ff27281391c2b8f2511d312d6995ed6)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosstatesig: Adpat to recent bitbake hash equiv runqueue changes
Richard Purdie [Tue, 23 Jul 2019 20:58:24 +0000 (21:58 +0100)] 
sstatesig: Adpat to recent bitbake hash equiv runqueue changes

Upstream bitbake now hanes preserving the unihash data itself, drop
this usage of persist_data which was extremely problematic due to
concurrent task access issues, particulary on loaded systems.

(From OE-Core rev: 034d91c2c94b201797a7830b0af6141132f9bad1)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosstatesig: Add debug for incorrect hash server settings
Richard Purdie [Mon, 22 Jul 2019 16:37:13 +0000 (17:37 +0100)] 
sstatesig: Add debug for incorrect hash server settings

If the hash server settings are incorrect, show the user useful
error messages instead of tracebacks.

(From OE-Core rev: 2df5d95b9b63e30ddaa7c72a4173b9a05b3f15f9)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosstatesig: Move unihash siggen code to bitbake
Richard Purdie [Mon, 29 Jul 2019 13:22:03 +0000 (14:22 +0100)] 
sstatesig: Move unihash siggen code to bitbake

This code is closely tied with the hash server in bitbake and also means
we can't relibably test the hashserv runqueue functionality without OE
metadata. Moving this to bitbake as a MixIn class makes most sense
and encourages code collaboration and reuse as well as enabling easier
and more accurate testing of the APIs.

(From OE-Core rev: a2a9c6092d4dde706ed071b08a972d1d87184295)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosanity: update for new bb.build.exec_func() behaviour
Ross Burton [Tue, 6 Aug 2019 10:16:32 +0000 (11:16 +0100)] 
sanity: update for new bb.build.exec_func() behaviour

The pythonexception argument is no more, and passing True is the new behavior.

[ YOCTO #13468 ]

(From OE-Core rev: b7a34d2b8d684e5b98f5c286de67dc1b5d8df853)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoclasses/lib: Remove bb.build.FuncFailed
Richard Purdie [Wed, 31 Jul 2019 14:59:59 +0000 (15:59 +0100)] 
classes/lib: Remove bb.build.FuncFailed

Whilst seemingly a good idea, this exception doesn't really serve any purpose
that bb.fatal() doesn't cover. Wrapping exceptions within exceptions isn't
pythonic.

Its not used in many places, lets clean up those and remove usage of it
entirely. It may ultimately be dropped form bitbake entirely.

(From OE-Core rev: efe87ce4b2154c6f1c591ed9d8f770c229b044ad)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosanity.conf: Require bitbake 1.43.1
Richard Purdie [Fri, 2 Aug 2019 15:21:24 +0000 (16:21 +0100)] 
sanity.conf: Require bitbake 1.43.1

We depend on a number of bitbake API changes, bump the min bitbake
version requirement.

(From OE-Core rev: 908cdd669b083b172f7cd53dd020629affee360c)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: bitbake: Bump version to 1.43.1 for API changes
Richard Purdie [Fri, 2 Aug 2019 15:20:29 +0000 (16:20 +0100)] 
bitbake: bitbake: Bump version to 1.43.1 for API changes

(Bitbake rev: f43778c2d19e70d4befd483b06aaf247fc65c799)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: tests/runqueue: Add hashserv+runqueue test
Richard Purdie [Fri, 2 Aug 2019 14:32:27 +0000 (15:32 +0100)] 
bitbake: tests/runqueue: Add hashserv+runqueue test

Add a test which tests the runqueue adaptations for hash equivalency.

(Bitbake rev: 477321d0780df177c1582db119c2bb6795912fc6)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: build/utils: Drop bb.build.FuncFailed
Richard Purdie [Wed, 31 Jul 2019 14:55:51 +0000 (15:55 +0100)] 
bitbake: build/utils: Drop bb.build.FuncFailed

Its hard to see what this exception adds in the current codebase. The logfile
attribute is effectively ignored, the exception doesn't serve a defined
purpose and mostly seems to be worked around.

Remove it entirely. If this does cause output problems, we'll figure
out better ways to address those.

(Bitbake rev: cfeffb602dd5319f071cd6bcf84139ec77f2d170)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: siggen: Clean up task reference formats
Richard Purdie [Mon, 29 Jul 2019 16:28:20 +0000 (17:28 +0100)] 
bitbake: siggen: Clean up task reference formats

Currently siggen uses the format "<filename>.<taskname>" for referencing tasks
whilst runqueue uses "<filename>:<taskname>". This converts to use ":" as the
separator everywhere.

This is an API breaking change since the cache is affected, as are siginfo files
and any custom signature handlers such as those in OE-Core.

Ultimately this will let us clean up and the accessor functions from runqueue,
removing all the ".rsplit(".", 1)[0]" type code currently all over the place.
Once a standard is used everwhere we can update the code over time to be more
optimal.

(Bitbake rev: 07e539e1c566ca3434901e1a00335cb76c69d496)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: runqueue: Clean up BB_HASHCHECK_FUNCTION API
Richard Purdie [Mon, 29 Jul 2019 14:46:03 +0000 (15:46 +0100)] 
bitbake: runqueue: Clean up BB_HASHCHECK_FUNCTION API

This function uses an old API which uses offsets into lists as a communication
mechanism. Update the API to use "tid" which is used universally in runqueue now.

We can also add kwargs support to the funciton definition to drop some of the
backwards compaiblility hoops we had to jump though with different function
argument combinations.

(Bitbake rev: dc23550047e5078da491ce9a6f30989cb5260df6)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: hashserv: Switch from threads to multiprocessing
Richard Purdie [Wed, 31 Jul 2019 09:49:39 +0000 (10:49 +0100)] 
bitbake: hashserv: Switch from threads to multiprocessing

There were hard to debug lockups when trying to use threading to start
hashserv as a thread. Switch to multiprocessing which doesn't show the
same locking problems.

(Bitbake rev: be23d887c8e244f1ef961298fbc9214d0fd0968a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: hashserv: Use separate threads for answering requests and handling them
Richard Purdie [Wed, 24 Jul 2019 13:14:50 +0000 (14:14 +0100)] 
bitbake: hashserv: Use separate threads for answering requests and handling them

Experience with the prserv shows that having two threads, one accepting
and queueing connections and one handling the requests leads to much
more reliable behaviour than having everything in a single thread.

(Bitbake rev: a03d60671a53d9ff70e07cc42fe35f6f8776dac2)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: prserv: Use a memory journal
Richard Purdie [Wed, 24 Jul 2019 13:12:05 +0000 (14:12 +0100)] 
bitbake: prserv: Use a memory journal

We've seen PR Server timeouts on the autobuilder, this is likely from the
journal being blocked on disk IO generated by the build.

Since we're running with synchronous off, we may as well put the journal
into memory and avoid any IO related stalls.

(Bitbake rev: ee3fc6030e653f3244b065fc89aafd2a7c36ae04)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: hashserv: Turn off sqlite synchronous mode
Richard Purdie [Wed, 24 Jul 2019 13:08:30 +0000 (14:08 +0100)] 
bitbake: hashserv: Turn off sqlite synchronous mode

We're seeing performance problems with hashserv running on a normal build
system. The cause seems to be the large amounts of file IO that builds involve
blocking writes to the database. Since sqlite blocks on the sync calls, this
causes a significant problem.

Since if we lose power we have bigger problems, run with synchronous=off
to avoid locking and put the jounral into memory to avoid any write issues
there too.

This took writes from 120s down to negligible in my tests, which means
hashserv then responds promptly to requests.

(Bitbake rev: 7ae56a4d4fcf66e1da1581c70f75e30bfdf3ed83)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: cooker/hashserv: Allow autostarting of a local hash server using BB_HASHSERVE
Richard Purdie [Wed, 24 Jul 2019 08:13:55 +0000 (09:13 +0100)] 
bitbake: cooker/hashserv: Allow autostarting of a local hash server using BB_HASHSERVE

Its useful, particularly in the local developer model of usage, for
bitbake to start and stop a hash equivalence server on local port,
rather than relying on one being started by the user before the build.

The new BB_HASHSERVE variable supports this.

The database handling is moved internally into the hashserv code so that
different threads/processes can be used for the server without errors.

(Bitbake rev: a4fa8f1bd88995ae60e10430316fbed63d478587)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: runqueue: Improve determinism
Richard Purdie [Mon, 5 Aug 2019 22:31:25 +0000 (23:31 +0100)] 
bitbake: runqueue: Improve determinism

Whilst this isn't strictly necessary, its helpful if the log output is
consistent and its also helpful if bugs either appear or don't appear
for a specific configuration. Ensuring the various iterations we make
are deterministic (sorted) helps with this.

(Bitbake rev: 6a901bb904a97ca90d88be2c6901d3d32346282f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: runqueue: Enable dynamic task adjustment to hash equivalency
Richard Purdie [Tue, 23 Jul 2019 21:51:15 +0000 (22:51 +0100)] 
bitbake: runqueue: Enable dynamic task adjustment to hash equivalency

There is a compelling usecase for tasks being able to notify runqueue
that their "unihash" has changed. When this is recieved, the hashes of
all subsequent tasks should be recomputed and their new hashes checked
against existing setscene validity. Any newly available setscene tasks
should then be executed.

Making this work effectively needs several pieces. An event is added
which the cooker listen for. If a new hash becomes available it can
send an event to notify of this.

When such an event is seen, hash recomputations are made. A setscene
task can't be run until all the tasks it "covers" are stopped. The
notion of "holdoff" tasks is therefore added, these are removed from
the buildable list with the assumption that some setscene task will
run and cover them.

The workers need to be notified when taskhashes change to update their
own internal siggen data stores. A new worker command is added to do this
which will affect all newly spawned worker processes from that worker.

An example workflow which tests this code is:

Configuration:
BB_SIGNATURE_HANDLER = "OEEquivHash"
SSTATE_HASHEQUIV_SERVER = "http://localhost:8686"

$ bitbake-hashserv &
$ bitbake automake-native
$ bitbake autoconf-native automake-native -c clean
$ bitbake m4-native -c install -f
$ bitbake automake-native

with the test being whether automake-native is installed from sstate.

(Bitbake rev: 1f630fdf0260db08541d3ca9f25f852931c19905)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: siggen: Convert to use self.unitaskhashes
Richard Purdie [Mon, 29 Jul 2019 13:28:08 +0000 (14:28 +0100)] 
bitbake: siggen: Convert to use self.unitaskhashes

Rather than metadata driven sqlite databases for communication, use
bitbake's unitaskhashes variable instead.

(Bitbake rev: a0d941c787cf3ef030d190903279d311bc05d752)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: siggen: Add new unitaskhashes data variable which is cached
Richard Purdie [Tue, 23 Jul 2019 21:44:29 +0000 (22:44 +0100)] 
bitbake: siggen: Add new unitaskhashes data variable which is cached

We need to preserve unihash task hashes between runs. Use the new SimpleCache
class to create such a class within the signature generator which is loaded
at init time and saved when builds complete. The default is unpopulated but
metadata sig handlers can populate this cache.

(Bitbake rev: 1f326f2c29c2664a5daaeeb0c1fd332630efbdba)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: runqueue: Improve scenequeue processing logic
Richard Purdie [Tue, 23 Jul 2019 21:41:10 +0000 (22:41 +0100)] 
bitbake: runqueue: Improve scenequeue processing logic

Rather than a special copy of the data structure which we change, compute
the logic using set operations from other data we have. This means
we can add tasks back into the scenequeue without having to worry about
reversing operations on this variable with all the potential bugs that
might involve.

(Bitbake rev: b707d0cbc25fa336a1e95ff588f1ea37eee063eb)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: cache: Add SimpleCache class
Richard Purdie [Tue, 23 Jul 2019 20:50:20 +0000 (21:50 +0100)] 
bitbake: cache: Add SimpleCache class

This adds a simple version of the MultiProcessCache which can be used to
save and load cache data, useful for a new usecase we have in
sigdata/runqueue.

(Bitbake rev: 19a6e35600ae6d2d1bcecca6e68ab8c37674774e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: siggen: Import unihash code from OE-Core
Richard Purdie [Mon, 29 Jul 2019 13:22:23 +0000 (14:22 +0100)] 
bitbake: siggen: Import unihash code from OE-Core

This code is closely tied with the hash server in bitbake and also means
we can't relibably test the hashserv runqueue functionality without OE
metadata. Moving this to bitbake as a MixIn class makes most sense
and encourages code collaboration and reuse as well as enabling easier
and more accurate testing of the APIs.

(Bitbake rev: 7bb79099a6c1b463d6ae9226c4cab5e76a965675)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: hashserv: SQL Optimizations
Joshua Watt [Tue, 23 Jul 2019 14:16:37 +0000 (09:16 -0500)] 
bitbake: hashserv: SQL Optimizations

Implements a number of optimizations to the SQL used in the hash
equivalence server:

 1) Two indexes are created for the two methods (method, taskhash and
    method outhash) by which rows are found in order to speed up the
    lookup
 2) An extra SELECT to lookup the just inserted row was removed. This
    SELECT is unnecessary since all of the information about the newly
    inserted row is already available.
 3) A uniqueness constraint was added to the table. This should allow
    the server to be multithreaded in the future since duplicate inserts
    can be detected (and ignored). This change requires bumping the
    database version to '2', since a uniqueness constraint can't be
    added to an existing table.
 4) Some comments are added to clarify the trick SELECT statement used
    when inserting new equivalent hashes

(Bitbake rev: 7aec8632e67b4f0ab7b72692c40a42f6926608c3)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosstate: Reduce race windows
Richard Purdie [Sat, 3 Aug 2019 10:49:23 +0000 (11:49 +0100)] 
sstate: Reduce race windows

When we write to the sstate directory we try to do so atomically so
consumers either see one version or another but never an imcomplete file.
Unfortunately this is reliant on filesystem support and with some NFS
configurations a replaced file would be lost from memory even if users held
open descriptors.

It makes sense to try and avoid replacing existing files where we can.

(From OE-Core rev: 18cdc087fd5da30e2b31f3d4e81b153cd36ca844)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibx11: update to 1.6.8
Ross Burton [Fri, 2 Aug 2019 20:37:19 +0000 (21:37 +0100)] 
libx11: update to 1.6.8

Fix the build when the host doesn't have libc.a installed by reverting an
upstream commit, and cherry-pick a build fix from master.

Drop a redundant sed, the expression it removes doesn't exist anymore.

Move most patches to libx11.inc so that they're applied to both libx11 and libx11-diet.

(From OE-Core rev: 8bb48ac237315e83837973ecd1488060ec170588)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoxserver-xorg: update to 1.20.5
Oleksandr Kravchuk [Fri, 2 Aug 2019 20:37:18 +0000 (21:37 +0100)] 
xserver-xorg: update to 1.20.5

(From OE-Core rev: b40277355b4ecf041061b3db0d4d890c7033e96f)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoxorgproto: update to 2019.1
Oleksandr Kravchuk [Fri, 2 Aug 2019 20:37:17 +0000 (21:37 +0100)] 
xorgproto: update to 2019.1

(From OE-Core rev: 2ec1b978e0d02884e6553d3495daf9cf914d267b)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoxserver-xorg: remove embedded build path in the source
Ross Burton [Fri, 2 Aug 2019 20:37:16 +0000 (21:37 +0100)] 
xserver-xorg: remove embedded build path in the source

The generated source file sdksyms.c has a comment with the absolute build path,
which means xserver-xorg-src contains this build path.  This is both potential
build information leakage and a source of unreproducibility, so remove the
comment.

(From OE-Core rev: 2086e0f08d920de15ab4065fb43c2281b1dcc57a)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibxx86dga: remove obsolete client libary
Ross Burton [Fri, 2 Aug 2019 20:37:15 +0000 (21:37 +0100)] 
libxx86dga: remove obsolete client libary

No modern drivers nor applications use DGA, so remove the client library.

(From OE-Core rev: 2d7e485fcfbc0dc3d76339baf02f50c3c9e22a91)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoxdpyinfo: don't depend on DGA
Ross Burton [Fri, 2 Aug 2019 20:37:14 +0000 (21:37 +0100)] 
xdpyinfo: don't depend on DGA

DGA (Direct Graphics Access) is an obsolete extension that neither modern X
drivers nor applications support.  We'll remove the client library, so remove
the optional dependency on DGA in xdpyinfo.

(From OE-Core rev: b00b1bb1f9394c05268fa10bf0114dc9defc70df)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>