]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
5 years agoepiphany: Add missing mime-xgd inherit
Richard Purdie [Sun, 19 Jan 2020 23:45:16 +0000 (23:45 +0000)]
epiphany: Add missing mime-xgd inherit

Resolves:
ARNING: epiphany-3.34.2-r0 do_package_qa: QA Issue: package contains desktop
file with key 'MimeType' but does not inhert mime-xdg: epiphany path
'/work/core2-32-poky-linux/epiphany/3.34.2-r0/packages-split/epiphany
/usr/share/applications/org.gnome.Epiphany.desktop' [mime-xdg]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agovim: Add missing mime-xgd inherit
Richard Purdie [Sun, 19 Jan 2020 23:46:30 +0000 (23:46 +0000)]
vim: Add missing mime-xgd inherit

Resolves:
WARNING: vim-8.2-r0 do_package_qa: QA Issue: package contains desktop
file with key 'MimeType' but does not inhert mime-xdg: vim path
'/work/core2-32-poky-linux/vim/8.2-r0/packages-split/vim/usr/share/applications/vim.desktop'

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agorootfs: Make BUILDNAME a weak default in reproducible_build_simple
Alex Kiernan [Sat, 18 Jan 2020 05:41:07 +0000 (05:41 +0000)]
rootfs: Make BUILDNAME a weak default in reproducible_build_simple

11e45082ad00 ("rootfs-postcommands.bbclass: improve binary
reproducibility") fixed binary reproducibility of /etc/version, but with
the move to reproducibilty in all builds, setting /etc/version to
anything other than the default fixed timestamp is tricky because
rootfs_reproducible() runs very late.

rootfs.py uses BUILDNAME if set for /etc/version, so introduce a weak
default for BUILDNAME of "REPRODUCIBLE_TIMESTAMP_ROOTFS", when enabling
reproducible builds hence allowing BUILDNAME to be overridden elsewhere.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoltp: Fix nm01 faliure
He Zhe [Sun, 19 Jan 2020 08:50:48 +0000 (16:50 +0800)]
ltp: Fix nm01 faliure

Backport a patch from upstream to fix the following runtime failure.

The latest nm v2.33.1 outputs symbols addresses without prefix zeros
for "nm -f posix", which causes the following error.
nm01 5 TFAIL: Got wrong format with -f bsd

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agonewlib: Enable building libstdc++ for newlib based toolchains
Alejandro Enedino Hernandez Samaniego [Sun, 19 Jan 2020 03:01:59 +0000 (19:01 -0800)]
newlib: Enable building libstdc++ for newlib based toolchains

Some baremetal applications might require support from libstdc++
On newlib based toolchains, libstdc++ can be built as a static
library that applications can then link against it.

Pass libsdtc++-(static)dev to LIBC_DEPENDENCIES allowing the
library to be present for cross compilation as well as on
sdk builds.

Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogcc-configure: Enable the use of different symbol versioning
Alejandro Enedino Hernandez Samaniego [Sun, 19 Jan 2020 03:01:47 +0000 (19:01 -0800)]
gcc-configure: Enable the use of different symbol versioning

While the gnu style for symbol versioning is the most usual,
--enable-symvers[=style] can be provided several values,
gnu, gnu-versioned-namespace, darwin, darwin-export, and sun,
depending on users needs.

Introduce the SYMVERS_CONF variable to allow the user to
configure the symbol versioning in shared libraries.

Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomachine_dict: Add i686 to the ELF machine dictionary
Alejandro Enedino Hernandez Samaniego [Sat, 18 Jan 2020 21:22:39 +0000 (13:22 -0800)]
machine_dict: Add i686 to the ELF machine dictionary

An error like the following is thrown when building
baremetal applications on some x86 architectures:

  (machine, osabi, abiversion, littleendian, bits) \
    = oe.elf.machine_dict(d)[target_os][target_arch]

Exception: KeyError: i686

Since the i686 (target_arch) key does not exist in the dictionary.

Add the key to fix the error.

Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoghostscript: Add powerpc64 LE specific objarch.h
Khem Raj [Sat, 18 Jan 2020 19:41:22 +0000 (11:41 -0800)]
ghostscript: Add powerpc64 LE specific objarch.h

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agotcf-agent: Add LCL_STOP_SERVICES for powerpc64 LE
Khem Raj [Sat, 18 Jan 2020 19:41:21 +0000 (11:41 -0800)]
tcf-agent: Add LCL_STOP_SERVICES for powerpc64 LE

This is same as PPC64 BE

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoopenssl: Add powerpc64 LE support
Khem Raj [Sat, 18 Jan 2020 19:41:20 +0000 (11:41 -0800)]
openssl: Add powerpc64 LE support

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogcc: Enable 32bit powerpcle at multi-arch for powerpc64le
Khem Raj [Sat, 18 Jan 2020 19:41:19 +0000 (11:41 -0800)]
gcc: Enable 32bit powerpcle at multi-arch for powerpc64le

Even though we do not expect any legacy ( 32bit ) for LE, linux-yocto
does enable the compat code, so enable 32bit support to get that going

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoclasses, conf, lib: Add support for powerpc64le
Khem Raj [Sat, 18 Jan 2020 19:41:18 +0000 (11:41 -0800)]
classes, conf, lib: Add support for powerpc64le

LE is default for modern powerpc64, power8+

PowerPC64 Little Endian Linux ABI specifies Power8 as the minimum ISA.
The basic ABI can run on earlier versions of the 64 bit PowerPC ISA,
but it was helpful to define a new, minimum instruction set for Linux
distribution releases during the switch to Little Endian.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibfm: Add mime and mime-xdg classes
Richard Purdie [Sat, 18 Jan 2020 17:39:38 +0000 (17:39 +0000)]
libfm: Add mime and mime-xdg classes

libfm installs mime types we want in our mime-database and it also uses desktop files
containing MimeType.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agowic: fix images build in parallel
Maxim Uvarov [Fri, 17 Jan 2020 21:46:12 +0000 (00:46 +0300)]
wic: fix images build in parallel

OE wic plugins create temporary file with the index of the line
tmp file name. This causes race in case several builds run in time.
If source_params['file'] is an absolute path, the cr_workdir prefix
is not applied by os.path.join(). So instead it writes to a ".1"
file next to the original image - this is outside the WORKDIR
and at risk of collision.

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Suggested-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Suggested-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopcmanfm: Inherit mime-xdg
Richard Purdie [Sat, 18 Jan 2020 23:17:26 +0000 (23:17 +0000)]
pcmanfm: Inherit mime-xdg

Inherit the new class to avoid warnings about desktop file.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogcr: add mime-xdg to inherit
Andreas Müller [Fri, 17 Jan 2020 21:29:08 +0000 (22:29 +0100)]
gcr: add mime-xdg to inherit

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoinsane.bbclass: Spawn warning for missing mime-xdg in inherit
Andreas Müller [Fri, 17 Jan 2020 21:29:07 +0000 (22:29 +0100)]
insane.bbclass: Spawn warning for missing mime-xdg in inherit

If a package signals that it can open mime-types but does not inharit mime-xdg,
a warning is created.

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomime-xdg.bbclass: initial add
Andreas Müller [Fri, 17 Jan 2020 21:29:06 +0000 (22:29 +0100)]
mime-xdg.bbclass: initial add

When opening files by file-browsers on fresh images, user has to choose the
application to open from the pool af ALL known applications even those not
designed to open the file selected. By inheriting this classs in recipes the
assosiations in /usr/share/applications/mimeinfo.cache are build by calling
update-desktop-database.

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogcr: add mime to inherit
Andreas Müller [Fri, 17 Jan 2020 21:29:05 +0000 (22:29 +0100)]
gcr: add mime to inherit

gcr installs mime types we want in our mime-database

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoshared-mime-info: add mime to inherit
Andreas Müller [Fri, 17 Jan 2020 21:29:04 +0000 (22:29 +0100)]
shared-mime-info: add mime to inherit

shared-mime-info-data: is the base for mime database

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoinsane.bbclass: introduce a warning for mime missing in inherit
Andreas Müller [Fri, 17 Jan 2020 21:29:03 +0000 (22:29 +0100)]
insane.bbclass: introduce a warning for mime missing in inherit

* looking through layers it looks that usage of mime.bbclass is somewhat
  orphaned
* now that update-mime-database is called once only at image creation time,
  costs of mime.bbclass are limited

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomime.bbclass: rework
Andreas Müller [Fri, 17 Jan 2020 21:29:02 +0000 (22:29 +0100)]
mime.bbclass: rework

* add a short descriptions of class' use case
* remove checks for update-mime-database - it can be considered available:
  * at build time by PACKAGE_WRITE_DEPS
  * at package upgrade by RDEPENDS chain
    pkg -> shared-mime-info-data -> shared-mime-info
* simplify (accelerate?) xml file extension detection
* run update-mime-database once only at image creation to avoid expensive
  redundant operations
* allow shared-mime-info to inherit mime.bbclass by avoiding circular
  dependencies

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoshared-mime-info: upgrade 1.10 -> 1.15
Andreas Müller [Fri, 17 Jan 2020 21:29:01 +0000 (22:29 +0100)]
shared-mime-info: upgrade 1.10 -> 1.15

* sources/development moved to freedesktop's gitlab
* patches do not apply any more due to major changes in Makefile.am
* give up bb/inc separation

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoitstool: extend to nativesdk
Andreas Müller [Fri, 17 Jan 2020 21:29:00 +0000 (22:29 +0100)]
itstool: extend to nativesdk

This was not done in meta-oe but shared-mime-info extends to nativesdk either.

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoitstool: add from meta-oe
Andreas Müller [Fri, 17 Jan 2020 21:28:59 +0000 (22:28 +0100)]
itstool: add from meta-oe

Recent versions of shared-mime-info depend on itstool

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoxf86-video-intel: bump to latest SRCREV
Ross Burton [Wed, 15 Jan 2020 14:13:05 +0000 (14:13 +0000)]
xf86-video-intel: bump to latest SRCREV

Drop the i686 build fix, this is integrated upstream now.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agonewlib: Upgrade newlib and libgloss to the yearly release 3.2.0
Alejandro Enedino Hernandez Samaniego [Wed, 15 Jan 2020 17:11:46 +0000 (09:11 -0800)]
newlib: Upgrade newlib and libgloss to the yearly release 3.2.0

A new yearly snapshot was taken on January 2nd of 2020, this bumps
newlib to 3.2.0.

 - Mentor Graphics added tcl license (amdgcn-* targets)
 - BSD-Clause-2 was added as well by Dinux (pru-* targets)

Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibubootenv: fix multilib build
Stefano Babic [Wed, 15 Jan 2020 16:09:00 +0000 (17:09 +0100)]
libubootenv: fix multilib build

In case of multilib, the do_package fails with:

ERROR: libubootenv-0.2-r0 do_package: QA Issue: libubootenv: Files/directories were installed but not shipped in any package:
  /usr/lib/libubootenv.so
  /usr/lib/libubootenv.so.0.2

Issue is fixed in libubootenv repo - this patch updates SRCREV to the
commit with the fix.

Signed-off-by: Stefano Babic <sbabic@denx.de>
Reported-by: ChenQi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agovim: update from 8.1.1518 to 8.2
Oleg Polyakov [Wed, 15 Jan 2020 19:38:05 +0000 (11:38 -0800)]
vim: update from 8.1.1518 to 8.2

vim-tiny: update from 8.1.1518 to 8.2
The date in the license was updated to 2020 and
a trailing space was removed from one line.

Signed-off-by: Oleg Polyakov <Oleg.Polyakov@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agofindutils: Upgrade to 4.7.0
Mingli Yu [Fri, 17 Jan 2020 08:33:07 +0000 (00:33 -0800)]
findutils: Upgrade to 4.7.0

* Upgrade to 4.7.0 since there are so many
  fixes in the new release such as below commit
  which used to fix Yocto Bug 13311
  5699fb7 xargs: use GNU_FINDUTILS_FD_LEAK_CHECK as for find

* Drop all patches as it is backported or
  useless in new release

* Licence-Update:
  - the link in the COPYING has been updated from
    http to https

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosysklogd: fix parallel build problem
Changqing Li [Fri, 17 Jan 2020 07:09:04 +0000 (15:09 +0800)]
sysklogd: fix parallel build problem

Parallel compile maybe failed with error:
error: ../lib/strlcat.o: No such file or directory
Makefile:619: recipe for target 'syslogd' failed

remove previous patch, and backport lastest fix
for this problem

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agofoomatic-filters: remove recipe
Diego Rondini [Fri, 17 Jan 2020 13:17:28 +0000 (13:17 +0000)]
foomatic-filters: remove recipe

Remove foomatic-filters recipe, as the project hasn't seen a release
since 2012 and is unmaintained.
Most of foomatic-filters code is part of cups-filters as foomatic-rip
(see [1] and [2]), which is in meta-oe since commit
a67aaaf00f4c818847f95c02340872a1a49a0f34.

[1] https://github.com/OpenPrinting/cups-filters/blob/release-1-26-2/NEWS#L2563
[2] https://lists.gt.net/gentoo/user/288187#288187

Signed-off-by: Diego Rondini <diego.rondini@kynetics.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython: remove Python 2 and all supporting classes
Ross Burton [Fri, 17 Jan 2020 14:16:32 +0000 (14:16 +0000)]
python: remove Python 2 and all supporting classes

Python 2 ceased being maintained on the 1st January 2020.  We've already
removed all users of it from oe-core so the final step is to move the
recipe and supporting classes to meta-python2.

The following are removed in this commit:
- python and python-native 2.7.17
- python-setuptools
- The classes pythonnative, pythondir, distutils, setuptools

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoglibc: Upgrade to 2.31
Khem Raj [Fri, 20 Dec 2019 23:40:20 +0000 (15:40 -0800)]
glibc: Upgrade to 2.31

License-Update: Prefer https to http for gnu.org and fsf.org URLs [1]

[1] https://sourceware.org/git/?p=glibc.git;a=commit;h=5a82c74822d3272df2f5929133680478c0cfb4bd

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoprelink: Deal with mips specific gnu-hash impelementation
Khem Raj [Tue, 14 Jan 2020 22:21:02 +0000 (14:21 -0800)]
prelink: Deal with mips specific gnu-hash impelementation

Signed-off-by: Khem Raj <raj.khem@gmail.com>
5 years agowebkitgtk: Disable gold for all mips
Khem Raj [Thu, 16 Jan 2020 06:28:19 +0000 (22:28 -0800)]
webkitgtk: Disable gold for all mips

If gnu hash is enabled for mips then we can not use gold linker since
gnu hash handling is only supported with good old BFD linker alone

Fixes
.gnu.hash is incompatible with the MIPS ABI

See gold/mips.cc in binutils for reference

Signed-off-by: Khem Raj <raj.khem@gmail.com>
5 years agomips: Enable gnu-hash-style on glibc
Khem Raj [Tue, 14 Jan 2020 16:24:39 +0000 (08:24 -0800)]
mips: Enable gnu-hash-style on glibc

latest glibc 2.31 [1] and binutils [2] has finally added the needed support for
gnu hash-style, which brings mips into same fold as other architectures

Fix check for MIPS specific section for gnu hash information

[1] https://sourceware.org/ml/libc-alpha/2019-06/msg00456.html
[2] https://sourceware.org/ml/binutils/2019-07/msg00098.html

Signed-off-by: Khem Raj <raj.khem@gmail.com>
5 years agosstatesig: Improve debug output if getpwuid() fails
Richard Purdie [Tue, 14 Jan 2020 21:05:10 +0000 (21:05 +0000)]
sstatesig: Improve debug output if getpwuid() fails

If getpwduid fails, we don't see which file it failed on which is key information
to aid debugging. Print this information when exceptions are raised.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosqlite: fix numerous CVEs
Ross Burton [Tue, 14 Jan 2020 16:05:52 +0000 (16:05 +0000)]
sqlite: fix numerous CVEs

Fix the following CVEs:

- CVE-2019-19244
- CVE-2019-19880
- CVE-2019-19923
- CVE-2019-19924
- CVE-2019-19925
- CVE-2019-19926
- CVE-2019-19959
- CVE-2019-20218

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agovalgrind: partially fix ptests
Alexander Kanavin [Tue, 14 Jan 2020 14:00:07 +0000 (15:00 +0100)]
valgrind: partially fix ptests

Unfortunately the ptests assume that $S=$B, and also require
the presence of original source code.

There are still some failures left which require additional investigation.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agostrace: fix failing ptests
Alexander Kanavin [Tue, 14 Jan 2020 14:00:06 +0000 (15:00 +0100)]
strace: fix failing ptests

1. They need to be run under regular user.
2. Some tests genuinely need more time than 30 seconds
3. The Makefile patch erroneously introduced a test-breaking change.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobash: exclude from ptests
Alexander Kanavin [Tue, 14 Jan 2020 14:00:05 +0000 (15:00 +0100)]
bash: exclude from ptests

Bash's test suite prints a ton of warnings like

warning: UNIX versions number signals and schedule processes differently.
warning: If output differing only in line numbers is produced, please
warning: do not consider this a test failure.

or

warning: please do not consider output differing only in the amount of
warning: white space to be an error.

and indeed some of the tests then fail. Rather than fight with this
non-determinism, let's exclude bash from ptesting.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoperl: fix failing ptests
Alexander Kanavin [Tue, 14 Jan 2020 14:00:04 +0000 (15:00 +0100)]
perl: fix failing ptests

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoiputils: resolve a name clash with latest libcap
Alexander Kanavin [Tue, 14 Jan 2020 14:00:03 +0000 (15:00 +0100)]
iputils: resolve a name clash with latest libcap

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibevent: disable ptests that require a DNS and an intenet connection
Alexander Kanavin [Tue, 14 Jan 2020 14:00:02 +0000 (15:00 +0100)]
libevent: disable ptests that require a DNS and an intenet connection

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoglib: disable a failing ptest
Alexander Kanavin [Tue, 14 Jan 2020 14:00:01 +0000 (15:00 +0100)]
glib: disable a failing ptest

The test needs resources that are built by glib using
hardcoded host tools, that was already disabled, so this
patch adds disabing the test that relies on those resources.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agodbus: fix failing ptest (by disabling as it needs X)
Alexander Kanavin [Tue, 14 Jan 2020 14:00:00 +0000 (15:00 +0100)]
dbus: fix failing ptest (by disabling as it needs X)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobusybox: fix failing ptests
Alexander Kanavin [Tue, 14 Jan 2020 13:59:59 +0000 (14:59 +0100)]
busybox: fix failing ptests

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoelfutils: upgrade 0.177 -> 0.178
Alexander Kanavin [Tue, 14 Jan 2020 13:59:57 +0000 (14:59 +0100)]
elfutils: upgrade 0.177 -> 0.178

Remove 0007-Fix-control-path-where-we-have-str-as-uninitialized-.patch
as issue fixed upstream.

Rebase other patches.

Adjust ptests, pass rate is now 100% again:

======================
All 206 tests passed
(6 tests were not run)
======================

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoifupdown: update 0.8.22 -> 0.8.35
Alexander Kanavin [Tue, 14 Jan 2020 13:59:56 +0000 (14:59 +0100)]
ifupdown: update 0.8.22 -> 0.8.35

Remove inet-6-.defn-fix-inverted-checks-for-loopback.patch as
it is difficult to rebase and not clear if still necessary.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoltp: update to 20190930
Alexander Kanavin [Tue, 14 Jan 2020 13:59:55 +0000 (14:59 +0100)]
ltp: update to 20190930

Drop a big pile of backports.

Add a patch to address absent string formatting error.

Additional fixing of builds with musl.

timers group has been merged upstream into syscalls.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopseudo: adjust for attr 2.4.48
Alexander Kanavin [Tue, 14 Jan 2020 13:59:54 +0000 (14:59 +0100)]
pseudo: adjust for attr 2.4.48

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoacl/attr: update to latest upstream releases
Alexander Kanavin [Tue, 14 Jan 2020 13:59:53 +0000 (14:59 +0100)]
acl/attr: update to latest upstream releases

The latest release use standard autotools, so drop all
the build system related hacks and patches.

Ptests have been rewritten, with 100% pass rate for both.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agorpm: fix with musl and latest elfutils.
Alexander Kanavin [Tue, 14 Jan 2020 13:59:49 +0000 (14:59 +0100)]
rpm: fix with musl and latest elfutils.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agorpm: switch to openssl from nss
Alexander Kanavin [Tue, 14 Jan 2020 13:59:48 +0000 (14:59 +0100)]
rpm: switch to openssl from nss

nss is a problematic library in many ways, but openssl
seems to work just fine.

rpm was the only user of nss in oe-core, which opens
the possibility of moving it out.

Add a backported patch to enable builds with latest openssl.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosite: Remove sctp related configs
Pau Espin Pedrol [Tue, 14 Jan 2020 13:57:13 +0000 (14:57 +0100)]
site: Remove sctp related configs

They are preventing autotools from checking netinet/sctp.h existence
successfuly which in turn makes configure.ac files with lines similar to
this to fail, even if DEPENDS="lksctp-tools" and netinet/sctp.h is
clearly available under recipe-sysroot/:
AC_CHECK_HEADERS(netinet/sctp.h,,AC_MSG_ERROR(netinet/sctp.h not found))

This is the case for new libosmo-netif versionsi (meta-telephony branch
laforge/nightly), which expects netinet/sctp.h to be available if default
flag --enable-libsctp is used.

Without this patch, do_configure will fail unless following line is used
in the recipe:
CACHED_CONFIGUREVARS += "${@bb.utils.contains('PACKAGECONFIG', 'libsctp', 'ac_cv_header_netinet_sctp_h=yes', '',d)}"

So removing ac_cv_header_netinet_sctp_h would be enough, but I couldn't
find any good information on why the other 2 variables were set in site
config files, hence no good reason to keep them.

Signed-off-by: Pau Espin Pedrol <pespin@sysmocom.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoperf: fix build for v5.5+
Bruce Ashfield [Mon, 13 Jan 2020 04:41:23 +0000 (23:41 -0500)]
perf: fix build for v5.5+

In kernel 5.5+ there are python3 scripts that explicitly use
/usr/bin/python3 as the interpreter. That will find the host
python and produce undefined results.

We add that interpreter path to our substitutions to ensure
that our sysroot variant is used.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolinux-yocto-dev: bump to v5-5-rcX
Bruce Ashfield [Mon, 13 Jan 2020 04:41:22 +0000 (23:41 -0500)]
linux-yocto-dev: bump to v5-5-rcX

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocurl: upgrade 7.67.0 -> 7.68.0
Pierre-Jean Texier [Sat, 11 Jan 2020 13:39:05 +0000 (14:39 +0100)]
curl: upgrade 7.67.0 -> 7.68.0

See full changelog https://curl.haxx.se/changes.html#7_68_0

The hash of the license is updated because the copyright year was
updated in COPYING file:

-Copyright (c) 1996 - 2019, Daniel Stenberg, <daniel@haxx.se>, and many
+Copyright (c) 1996 - 2020, Daniel Stenberg, <daniel@haxx.se>, and many

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agou-boot: Upgrade 2020.01-rc5 -> 2020.01
Alex Kiernan [Mon, 13 Jan 2020 07:01:01 +0000 (07:01 +0000)]
u-boot: Upgrade 2020.01-rc5 -> 2020.01

Also drop unreferenced (already merged) patches.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoqemuboot-mips: Enable cirrus VGA device
Khem Raj [Mon, 13 Jan 2020 03:30:23 +0000 (19:30 -0800)]
qemuboot-mips: Enable cirrus VGA device

This helps in booting weston images ( core-image-weston ) with fbdev
backend, without this westons initialization of fbdev backend fails
because it does not get correct frame buffer settings and exits
pre-maturely

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoglib-2.0: Fix hardcoded paths with dots in names
Alex Kiernan [Sun, 12 Jan 2020 16:39:47 +0000 (16:39 +0000)]
glib-2.0: Fix hardcoded paths with dots in names

b4087338be09 ("glib-2.0: Fix hardcoded paths in checksums") fixed
embedded paths in task hashes, but if these paths included dots then
these were flattened when COREBASE was computed. Fix this by resolving
our filenames before replacing the path segments with COREBASE.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogstreamer1.0: Enable debug in builds
Khem Raj [Tue, 14 Jan 2020 22:38:53 +0000 (14:38 -0800)]
gstreamer1.0: Enable debug in builds

Packages like gst-shark needs this option to be on

Fixes

| checking whether the GStreamer debugging system is enabled... no
| configure: error: Tracers require GStreamer debug support. Rebuild GStreamer core with --enable-gst-debu
g.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Carlos Rafael Giani <crg7475@mailbox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogstreamer1.0: set the name of the test suite for ptests
Alexander Kanavin [Tue, 14 Jan 2020 15:49:37 +0000 (16:49 +0100)]
gstreamer1.0: set the name of the test suite for ptests

Otherwise gnome-desktop-testing-runner starts testing everything
unrelated as well (e.g. glib).

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogstreamer1.0: decouple check and tests options
Alexander Kanavin [Tue, 14 Jan 2020 15:49:36 +0000 (16:49 +0100)]
gstreamer1.0: decouple check and tests options

Some plugins such as gstreamer1.0-plugins-base refuse to build if
check is not enabled (which was the case when ptests were disabled).

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogstreamer: Remove unused common files and patches
Carlos Rafael Giani [Sun, 12 Jan 2020 13:59:54 +0000 (14:59 +0100)]
gstreamer: Remove unused common files and patches

gst-plugins-package.inc gstreamer1.0-plugins.inc got replaced by
gstreamer1.0-plugins-packaging.inc and gstreamer1.0-plugins-common.inc,
respectively.

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogst-validate: Move recipe specific patch to dedicated subdirectory
Carlos Rafael Giani [Sun, 12 Jan 2020 13:59:53 +0000 (14:59 +0100)]
gst-validate: Move recipe specific patch to dedicated subdirectory

This does not belong in files/, since that subdirectory is where patches
that aren't recipe specific are located. This patch however is gst-validate
specific.

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogstreamer1.0-rtsp-server: Transition to meson based build
Carlos Rafael Giani [Sun, 12 Jan 2020 13:59:52 +0000 (14:59 +0100)]
gstreamer1.0-rtsp-server: Transition to meson based build

* 0001-meson-build-gir-even-when-cross-compiling-if-introsp.patch is a
  fix for GIR support in the meson.build file.

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogstreamer1.0-omx: Transition to meson based build
Carlos Rafael Giani [Sun, 12 Jan 2020 13:59:51 +0000 (14:59 +0100)]
gstreamer1.0-omx: Transition to meson based build

* Removed autotools/M4 specific bits from recipe.

* gettext, gtk-doc, and valgrind support is no longer present in gst-omx,
  and arguably never really was (because they were present in the "common"
  git submodule that is no longer being used in meson base builds).

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogstreamer1.0-vaapi: Transition to meson based builds
Carlos Rafael Giani [Sun, 12 Jan 2020 13:59:50 +0000 (14:59 +0100)]
gstreamer1.0-vaapi: Transition to meson based builds

* Removed autotools/M4 related patch
  0001-gst-vaapi-Makefile.am-Add-EGL_CFLAGS-to-libgstvaapi-.patch.

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogstreamer1.0-libav: Transition to meson based builds
Carlos Rafael Giani [Sun, 12 Jan 2020 13:59:49 +0000 (14:59 +0100)]
gstreamer1.0-libav: Transition to meson based builds

meson based builds exclusively rely on external FFmpeg builds. The internal
copy was added at a time when stable FFmpeg releases did not exist. They
do nowadays, so the internal copy is not needed anymore. As a result, large
portions of the recipe are unnecessary, since they set up the internal
copy. Same goes for the patches and the zlib/bzip2/xz dependendencies.

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogstreamer1.0-plugins-ugly: Transition to meson based builds
Carlos Rafael Giani [Sun, 12 Jan 2020 13:59:48 +0000 (14:59 +0100)]
gstreamer1.0-plugins-ugly: Transition to meson based builds

* Removed autotools/M4 related patch
  0001-introspection.m4-prefix-pkgconfig-paths-with-PKG_CON.patch.

* gettext handling now part of gstreamer1.0-plugins-common.inc.

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogstreamer1.0-plugins-bad: Transition to meson based builds
Carlos Rafael Giani [Sun, 12 Jan 2020 13:59:47 +0000 (14:59 +0100)]
gstreamer1.0-plugins-bad: Transition to meson based builds

* Removed autotools/M4 related patch
  0001-introspection.m4-prefix-pkgconfig-paths-with-PKG_CON.patch.

* configure-allow-to-disable-libssh2.patch got replaced by the
  -Dcurl-ssh2 option.

* 0001-meson-build-gir-even-when-cross-compiling-if-introsp.patch is a
  fix for GIR support in the meson.build file.

* New "closedcaption" packageconfigs added.

* Removed "flite" packageconfig since flite-alsa was removed from
  meta-openembedded due it being old and abandoned.

* gettext handling now part of gstreamer1.0-plugins-common.inc.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogstreamer1.0-plugins-good: Transition to meson based builds
Carlos Rafael Giani [Sun, 12 Jan 2020 13:59:46 +0000 (14:59 +0100)]
gstreamer1.0-plugins-good: Transition to meson based builds

* Removed autotools/M4 related patch
  0001-introspection.m4-prefix-pkgconfig-paths-with-PKG_CON.patch.

* gtk-doc support is handled here, not in gstreamer1.0-plugins-common.inc,
    since unlike with autotools, only some plugin set packages use gtk-doc.

* zlib is no longer optional, and glib anyway depends on zlib, therefore
    it gets added to the DEPENDS list.

* gettext handling now part of gstreamer1.0-plugins-common.inc.

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogstreamer1.0-plugins-base: Transition to meson based builds
Carlos Rafael Giani [Sun, 12 Jan 2020 13:59:45 +0000 (14:59 +0100)]
gstreamer1.0-plugins-base: Transition to meson based builds

* OpenGL packageconfigs now work differently. There are separate ones for
  OpenGL API/platform/window system selection. The meson.build script
  expects the selected ones as comma separated lists. For example, like
  "-Dgl_api=opengl,gles2". The variables OPENGL_APIS / OPENGL_PLATFORMS /
  OPENGL_WINSYS are whitespace-separated lists (which is the OE norm) of
  the respective packageconfigs. .bbappend files can then extend these
  lists with additional possible configs.
  "Possible" means that the target can support those packageconfigs. This
  does not immediately add them to the PACKAGECONFIG variable - this still
  has to be done manually. The get_opengl_cmdline_list() goes through these
  lists, and for each entry, checks if it is contained in the PACKAGECONFIG
  variable. If so, they get added to the comma separated lists that are
  passed to meson.
  For example, a Raspberry Pi layer could add "dispmanx" to OPENGL_WINSYS.

* The "ivorbis" packageconfig got renamed to "tremor", since that is the
  name of the OE recipe, and now also the name of the meson option.

* 0001-meson-build-gir-even-when-cross-compiling-if-introsp.patch and
  0002-meson-Add-variables-for-gir-files.patch are backported fixes for
  GIR support in the meson.build files.

* make-gio_unix_2_0-dependency-configurable.patch removed because it is
  no longer useful to have.

* link-with-libvchostif.patch removed because the flags it changed are
  no longer present in the meson.build scripts. If the related issue
  reappears, a similar patch can be applied again.

* 0003-riff-add-missing-include-directories-when-calling-in.patch removed
  since the entire gst riff library has been excluded from GObject
  introspection due to naming convention issues.

* Removed a number of autotool/M4 related patches and recipe lines.

* gtk-doc support is handled here, not in gstreamer1.0-plugins-common.inc,
  since unlike with autotools, only some plugin set packages use gtk-doc.

* zlib is no longer optional, and glib anyway depends on zlib, therefore
  it gets added to the DEPENDS list.

* gettext handling now part of gstreamer1.0-plugins-common.inc.

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogstreamer1.0: Transition to meson based builds
Carlos Rafael Giani [Sun, 12 Jan 2020 13:59:44 +0000 (14:59 +0100)]
gstreamer1.0: Transition to meson based builds

* Moved 0001-gst-gstpluginloader.c-when-env-var-is-set-do-not-fal.patch
  from files/ to gstreamer1.0/ since it is gstreamer1.0 recipe specific.

* Removed M4 specific patches:
  - 0001-introspection.m4-prefix-pkgconfig-paths-with-PKG_CON.patch
  - gtk-doc-tweaks.patch
  - add-a-target-to-compile-tests.patch

* Added patches:
  - 0001-meson-build-gir-even-when-cross-compiling-if-introsp.patch
    Backport for enabling GIR support in meson based cross compilation
  - 0002-meson-Add-valgrind-feature.patch
    Make valgrind support configurable to be able to control it through
    a "valgrind" packageconfig
  - 0003-meson-Add-option-for-installed-tests.patch
    Add support for installable tests and for generating .test and shell
    scripts which can be used with the gnome-desktop-testing suite runner

* PTest support:
  By default, GStreamer does not allow for installing tests, and requires
  meson to run its unit tests. The 0003 patch fixes this by installing
  the binaries themselves and by generating accompanying .test and shell
  scripts. The scripts set up the required environment files and then
  call the test binaries. The .test file list the shell scripts as
  Exec= command line.

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogstreamer: Add common .inc files for meson based recipes
Carlos Rafael Giani [Sun, 12 Jan 2020 13:59:43 +0000 (14:59 +0100)]
gstreamer: Add common .inc files for meson based recipes

* gstreamer1.0-plugins-common.inc
  The old gstreamer1.0-plugins.inc file, adapted for meson
* gstreamer1.0-plugins-packaging.inc
  The old gst-plugins-package.inc file, adapted for meson
* gstreamer1.0-ptest.inc
  Common code for meson based PTest support; autogenerates the run-ptest
  file and is designed to use the gnome-desktop-testing suite runner
  (which is why the .inc files inherits from ptest-gnome)

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogettext: fix typo in Upstream-Status
Ross Burton [Mon, 13 Jan 2020 12:39:24 +0000 (12:39 +0000)]
gettext: fix typo in Upstream-Status

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemd: add missing Upstream-Status
Ross Burton [Mon, 13 Jan 2020 12:39:23 +0000 (12:39 +0000)]
systemd: add missing Upstream-Status

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoscripts/oe-build-perf-report: Avoid buildstats warning
Richard Purdie [Sat, 11 Jan 2020 16:10:43 +0000 (16:10 +0000)]
scripts/oe-build-perf-report: Avoid buildstats warning

When a comparision branch is set we see warnings. If two branches are used,
look for buildstats information from both to avoid this kind of warning:

INFO: Parsing buildstats from 'refs/notes/buildstats/perf-centos7.yoctoproject.org/master-next/qemux86'
WARNING: Buildstats not found for perf-centos7.yoctoproject.org/master/qemux86/56808-g08220028e52992dcba667fc97bf3afe8be1949fb/0
WARNING: Buildstats not found for perf-centos7.yoctoproject.org/master/qemux86/56808-g08220028e52992dcba667fc97bf3afe8be1949fb/1
INFO: Buildstats were missing for some test runs, please run 'git fetch origin refs/notes/buildstats/perf-centos7.yoctoproject.org/master-next/qemux86:refs/notes/buildstats/perf-centos7.yoctoproject.org/master-next/qemux86' and try again

(the warning is due to stats being looked for in both branches, choose
the other branch and different warnings would be shown)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosstate: Improve move into place op and touch file
Richard Purdie [Thu, 12 Dec 2019 22:58:17 +0000 (22:58 +0000)]
sstate: Improve move into place op and touch file

Depending on the kernel and coreutils version, mv operations test for existence
of files and can potentially race. It also leads to the file always changing which
leads to potential problems if using and NFS share and there are other readers.

Using ln instead means we don't overwrite the file if it already exists meaning
other readers aren't disrupted and should work more reliably on NFS which is used
for sstate on the autobuilder.

Since we're not overwriting files, touch the file to show activity as would have
been done it it were reused from sstate.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agotoaster.bbclass: Correct pkgdatadir path in toaster_package_dumpdata()
Peter Kjellerstedt [Wed, 11 Dec 2019 01:06:09 +0000 (02:06 +0100)]
toaster.bbclass: Correct pkgdatadir path in toaster_package_dumpdata()

In commit 692b2046 (package: Fix race between do_package and
do_packagedata), the path used for do_packagedata[sstate-inputdirs]
was changed from "${PKGDESTWORK}" to "${WORKDIR}/pkgdata-pdata-input".
This commit adapts the path used for pkgdatadir in
toaster_package_dumpdata() accordingly to avoid setscene errors like:

  ERROR: libgcc-9.2.0-r0 do_packagedata_setscene: 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:toaster_package_dumpdata(d)
       0003:
  File: 'meta/classes/toaster.bbclass', lineno: 130, function:
  toaster_package_dumpdata
       0126:    lpkgdata = {}
       0127:    datadir = os.path.join(pkgdatadir, 'runtime')
       0128:
       0129:    # scan and send data for each generated package
   *** 0130:    for datafile in os.listdir(datadir):
       0131:        if not datafile.endswith('.packaged'):
       0132:            lpkgdata = _toaster_load_pkgdatafile(datadir,
       0133:            # Fire an event containing the pkg data
       0134:            bb.event.fire(bb.event.MetadataEvent(
  Exception: FileNotFoundError: [Errno 2] No such file or directory:
  'tmp/work/mips32r2el-nf-poky-linux/libgcc/9.2.0-r0/pkgdata/runtime'

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoglib-2.0: Fix hardcoded paths in checksums
Richard Purdie [Fri, 10 Jan 2020 17:56:16 +0000 (17:56 +0000)]
glib-2.0: Fix hardcoded paths in checksums

The expansion by this function, recently added by the meson site handling code
was causing hardcoded paths to become embedded in the tash hashes. Avoid this
(and hence avoid eSDK failures which exposed this).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agometa-extsdk-toolchain: Mark as nostamp
Richard Purdie [Wed, 8 Jan 2020 14:52:41 +0000 (14:52 +0000)]
meta-extsdk-toolchain: Mark as nostamp

This recipe needs to generate the latest hashes. With unihash we may not
rebuild as previous dependencies may be marked as equivalent.

eSDK which uses this is nostamp already, mark this task as nostamp also
for the same reason.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoglib: support target/os/libc-specific Meson cross files
Ross Burton [Wed, 8 Jan 2020 17:19:36 +0000 (17:19 +0000)]
glib: support target/os/libc-specific Meson cross files

Build systems have a common problem that some tests can only be done by
executing a piece of test code (compared to just compiling or linking test
code).  In a cross-compilation the execution of this code isn't possible and the
Meson solution to this is to allow 'cross properties' to be specified in the
cross files.

GLib has a number of these, for example determining the direction the stack
grows, whether /proc/self/cmdline exists, or the behaviour of snprintf().
Previously we'd passed values for these to the Glib build for target builds, but
this misses out nativesdk builds (which are also cross-compiled) and the fact
that some of these values are specific to the platform, some are specific to the
host OS, and some are specific to the libc implementation.

This problem has already been solved for autotools with the siteinfo class,
which turns the target platform/OS/libc variables into filenames (such as common
common-linux common-glibc).  We can look for these in FILESDIR and use them as
cross files.

Assuming that there are no problems with this appoach it can be moved into
meson.bbclass so that all Meson recipes can use it for their cross files.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoweston-init: Let weston run without pam on distros without pam
Khem Raj [Thu, 9 Jan 2020 18:37:53 +0000 (10:37 -0800)]
weston-init: Let weston run without pam on distros without pam

When pam is not part of distro, user specific XDG_* environment
variables are not available since PAMName=login is in-effective and as a
result weston can not start because it direly needs XDG_RUNTIME_DIR
defined, therefore launching weston directly in systemd service will not
work, therefore call the helper script weston-start, which is also used
with sysvinit

extend enabling fbdev backend fallback to all qemu machines

Reported-by: Marek Vasut <marex@denx.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosite: musl and glibc have working mktime()
André Draszik [Fri, 10 Jan 2020 16:53:02 +0000 (16:53 +0000)]
site: musl and glibc have working mktime()

This coreutils (gnulib) test tests for various bugs that only
exist in ancient versions.

It defaults to assuming buggy behaviour with its own implementation
when cross-compiling.

musl and recent glibc (2.29) are not affected.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosite: strtod() works in glibc / musl
André Draszik [Fri, 10 Jan 2020 16:53:01 +0000 (16:53 +0000)]
site: strtod() works in glibc / musl

autoconf has a test for strtod(), which assumes non-working
when cross-compiling, but it does work in both musl and
recent glibc.

coreutils (gnulib) does some additional tests on top of that,
but assumes working glibc when >= 2.8 when cross compiling.
It doesn't know about musl where the additional tests also
work, though.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosite: set nanosleep() behaviour for glibc / musl
André Draszik [Fri, 10 Jan 2020 16:53:00 +0000 (16:53 +0000)]
site: set nanosleep() behaviour for glibc / musl

As per coreutils' (gnulib's) autotools test, nanosleep()
misbehaves on glibc (2.29), and works fine on musl.

During cross-compile, recent coreutils assume brokenness
when compiling for linux, which pessimises musl.

Set the correct result for musl, and for coherency reasons,
also specify the result for glibc.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosite: on linux, link(2) doesn't follow symlinks
André Draszik [Fri, 10 Jan 2020 16:52:59 +0000 (16:52 +0000)]
site: on linux, link(2) doesn't follow symlinks

(but gnulib / coreutils assumes yes when cross-compiling)

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosite: on linux, pipes are fifos with max link count of 1
André Draszik [Fri, 10 Jan 2020 16:52:58 +0000 (16:52 +0000)]
site: on linux, pipes are fifos with max link count of 1

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosite: musl and glibc have working utimes()
André Draszik [Fri, 10 Jan 2020 16:52:57 +0000 (16:52 +0000)]
site: musl and glibc have working utimes()

This coreutils / gnulib autoconf test is for a broken glibc
implementation of utimes from 2003-07-12 to 2003-09-17.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosite: linux supports NULL in utime()
André Draszik [Fri, 10 Jan 2020 16:52:56 +0000 (16:52 +0000)]
site: linux supports NULL in utime()

to set the file to the current time

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosite: musl and glibc have working getgroups()
André Draszik [Fri, 10 Jan 2020 16:52:55 +0000 (16:52 +0000)]
site: musl and glibc have working getgroups()

recent coreutils (gnulib) assume yes when cross-compiling
for gnu (glibc), but don't know about musl.
For coherence, just set the result to yes for both.

Note that the old coreutils (from meta-gplv2) doesn't
assume anything and instead that recipe hard-codes to yes.
So behaviour with yocto when using meta-gplv2 is actually
better than when using the latest version (when using musl).

This patch rectifies this shortcoming.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosite: set getcwd() test result for abort()-bug for glibc / musl
André Draszik [Fri, 10 Jan 2020 16:52:54 +0000 (16:52 +0000)]
site: set getcwd() test result for abort()-bug for glibc / musl

This coreutils (gnulib) test checks for an abort() that existed
in glibc before 2.4.90-10 (in 2006) in certain conditions.

Neither libraries exhibit this problem today.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosite: set getcwd() behaviour for long paths for glibc / musl
André Draszik [Fri, 10 Jan 2020 16:52:53 +0000 (16:52 +0000)]
site: set getcwd() behaviour for long paths for glibc / musl

In glibc, getcwd() handles long file names properly, on
musl, getcwd() only works up to PATH_MAX directory depths.

Configuring the autotools (gnulib) test result here allows
coreutils to compile more optimised code for both platforms,
rather than being pessimistic and re-implementing everything
itself.

The difference in behaviour is because both do the kernel
getcwd syscall (which only supports up to PATH_MAX), but
glibc implements fallbacks for longer paths, while musl
doesn't.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosite: musl and glibc have glibc compatible getcwd()
André Draszik [Fri, 10 Jan 2020 16:52:52 +0000 (16:52 +0000)]
site: musl and glibc have glibc compatible getcwd()

I.e. allocate memory for the pointer returned when the first
argument is NULL.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosite: linux supports unlink() of executing program
André Draszik [Fri, 10 Jan 2020 16:52:51 +0000 (16:52 +0000)]
site: linux supports unlink() of executing program

I.e. shared text that is being executed.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosite: musl and glibc have glibc compatible calloc()
André Draszik [Fri, 10 Jan 2020 16:52:50 +0000 (16:52 +0000)]
site: musl and glibc have glibc compatible calloc()

calloc (N, S) returns non-NULL when N*S is zero,
and returns NULL when N*S overflows.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosite: musl and glibc have working mkstemp()
André Draszik [Fri, 10 Jan 2020 16:52:49 +0000 (16:52 +0000)]
site: musl and glibc have working mkstemp()

their mkstemp() passes all tests from the gnulib m4 macro
gl_FUNC_MKSTEMP.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>