]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
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>
5 years agosite: musl has working memcmp()
André Draszik [Fri, 10 Jan 2020 16:52:48 +0000 (16:52 +0000)]
site: musl has working memcmp()

I.e. a memcmp() that is 8bit clean (like glibc).

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

I.e. a chown() that works when given -1 as uid / gid

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobusybox: Update inittab
Khem Raj [Fri, 10 Jan 2020 17:29:38 +0000 (09:29 -0800)]
busybox: Update inittab

Add stdin/stdout/stderr symlinks in case when not using hotplug
Disable ctrl+alt+del, not used much
Mount swap if defined

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoperl: improve reproducibility
Ross Burton [Fri, 10 Jan 2020 17:24:21 +0000 (17:24 +0000)]
perl: improve reproducibility

Occasionally the reproducibility selftest fails because perl-pod differs,
specifically that the perltoc.pod file was sometimes missing modules.

Debugging revealed that there are missing dependencies so there is a build race:
building perltoc.pod from an clean build tree results in no modules being listed
at all.

A bug has been filed at https://github.com/arsv/perl-cross/issues/86 to solve
this properly, but for now we can just delete perltoc.pod after make has
finished and re-generate it.

[ YOCTO #13726 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agorunqemu: Add network bridge support
Joshua Watt [Wed, 8 Jan 2020 19:48:07 +0000 (13:48 -0600)]
runqemu: Add network bridge support

Qemu supports attaching the virtual machine to an existing network
bridge interface via the qemu-bridge-helper program (as long as the
system is correctly configured to give the user permissions). Add
support for runqemu to do this also via the "bridge=<INTERFACE>"
argument. Note that for this to work correctly, the host
qemu-bridge-helper must be used, not the one that might have been built
by qemu-native. In order for qemu to correctly find this program, a
qemu-oe-bridge-helper program has been added to qemu-helper-native, and
runqemu will use this helper as the bridge helper. The helper will look
for the host qemu-bridge-helper first by looking in the
QEMU_BRIDGE_HELPER environment variable, then by search common paths
where the helper is installed.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocups: fix crossscripts
Diego Rondini [Wed, 8 Jan 2020 16:48:55 +0000 (17:48 +0100)]
cups: fix crossscripts

Fix crossscripts to report the correct "serverbin" value.
While the packaged "cups-config --serverbin" reported
"/usr/libexec/cups" the crossscripts version reported
"/usr/lib/cups", causing packaging issues when building for example
cups-filters.
Also fix FILES_${PN} to use ${libexecdir}; previously it was working
just because "${libexecdir}/*" was part of the default values in
bitbake.conf.

Signed-off-by: Diego Rondini <diego.rondini@kynetics.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoopensbi: Use -ffreestanding compiler options
Khem Raj [Wed, 8 Jan 2020 16:42:54 +0000 (08:42 -0800)]
opensbi: Use -ffreestanding compiler options

This usually helps compiler to not use built-in optimizations
for string functions and mem* functions unnecessarily, since OE's
compiler is hosted for linux cross compile, this also means we instruct
it rightly for building a baremetal application

Refresh the patches to apply without fuzz
Fixes linking errors e.g.

platform/qemu/virt/lib/libplatsbi.a(sbi_string.o): in function `sbi_memset':
| /mnt/b/yoe/build/tmp/work/riscv64-yoe-linux/opensbi/0.5-r0/git/lib/sbi/sbi_string.c:102: undefined reference to `memset'
| collect2: error: ld returned 1 exit status

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoRevert "tclibc-musl: Add -D__USE_TIME_BITS64 to c/c++ flags"
Khem Raj [Tue, 7 Jan 2020 16:46:39 +0000 (08:46 -0800)]
Revert "tclibc-musl: Add -D__USE_TIME_BITS64 to c/c++ flags"

This reverts commit 194bd4136459e7a38510830b2fb0938d892ece45.

 __USE_TIME_BITS64 is already added by musl headers internally now [1]

 [1] https://git.musl-libc.org/cgit/musl/commit/include/alltypes.h.in?id=f12bd8e05c8bb2c3e2b91d635887ec424ef8fbd9

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoalsa-plugins: 1.1.9 -> 1.2.1
Tanu Kaskinen [Mon, 6 Jan 2020 09:18:06 +0000 (11:18 +0200)]
alsa-plugins: 1.1.9 -> 1.2.1

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoalsa-utils: 1.1.9 -> 1.2.1
Tanu Kaskinen [Mon, 6 Jan 2020 09:18:05 +0000 (11:18 +0200)]
alsa-utils: 1.1.9 -> 1.2.1

I moved the ALLOW_EMPTY line next to the line that sets FILES to "".
That makes it easier to see that the package is not only allowed to be
empty, but forced to be empty.

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoalsa-topology-conf: new recipe, version 1.2.1
Tanu Kaskinen [Mon, 6 Jan 2020 09:18:04 +0000 (11:18 +0200)]
alsa-topology-conf: new recipe, version 1.2.1

The topology configuration files were moved from the alsa-lib repository
to a new alsa-topology-conf repository. The move was accompanied by
a license change from LGPL2.1 to BSD-3-Clause.

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoalsa-ucm-conf: new recipe, version 1.2.1.2
Tanu Kaskinen [Mon, 6 Jan 2020 09:18:03 +0000 (11:18 +0200)]
alsa-ucm-conf: new recipe, version 1.2.1.2

The UCM configuration files were moved from the alsa-lib repository to a
new alsa-ucm-conf repository. The move was accompanied by a license
change from LGPL2.1 to BSD-3-Clause.

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoalsa-lib: 1.1.9 -> 1.2.1.2
Tanu Kaskinen [Mon, 6 Jan 2020 09:18:02 +0000 (11:18 +0200)]
alsa-lib: 1.1.9 -> 1.2.1.2

Changelogs:
https://alsa-project.org/wiki/Changes_v1.1.9_v1.2.1
https://alsa-project.org/wiki/Changes_v1.2.1_v1.2.1.1
https://alsa-project.org/wiki/Changes_v1.2.1.1_v1.2.1.2

This upgrade brings support for the new "UCM2" configuration format.
Another big change is that the UCM and topology configuration files were
moved to separate repositories, so those are removed from alsa-lib and
will need to be packaged separately.

The topology API was moved from libasound to a separate libatopology
library. This seems like a recipe for regressions for applications that
used to use libasound for the topology stuff, but I don't think there
are many applications in existence that use the topology API. I hope the
upstream knows what they are doing.

Patches added:

0001-configure.ac-remove-an-unnecessary-libtool-fix.patch
This fixes a failure during configure.

0001-ucm-Use-strncmp-to-avoid-access-out-of-boundary.patch
0002-ucm-return-always-at-least-NULL-if-no-list-is-availa.patch
Backports. I don't know if these are regression fixes, but since the UCM
code was heavily worked on in this upgrade, it seems likely that these
patches fix regressions.

0003-namehint-correct-the-args-check.patch
0004-namehint-improve-the-previous-patch-check-the-return.patch
Backports. A change in alsa-plugins caused a regression in the pulse
plugin, but that was actually due to a bug in alsa-lib, which is fixed
by these patches.

0005-ucm-Do-not-fail-to-parse-configs-on-cards-with-an-em.patch
Backport. Fixes a regression with some Intel hardware.

0001-Fix-alsa-sound-.h-for-external-programs.patch
0001-uapi-Move-typedefs-from-uapi-to-sound.patch
Backports. These fix build failures in alsa-tools.

I removed alsa-doc from PACKAGES, because no files were assigned to it.

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoovmf: update to 201911
Alexander Kanavin [Wed, 18 Dec 2019 17:30:22 +0000 (18:30 +0100)]
ovmf: update to 201911

Remove unused patch.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
5 years agopopulate_sdk_ext.bbclass: No longer needed to clean away conf/sanity_info
Peter Kjellerstedt [Tue, 7 Jan 2020 22:10:43 +0000 (23:10 +0100)]
populate_sdk_ext.bbclass: No longer needed to clean away conf/sanity_info

Since the sanity_info file has moved from the conf directory to the
cache directory, there is no longer any need to clean it away
explicitly in clean_esdk_builddir() since the whole cache directory is
already cleaned away anyway.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosanity.bbclass: Move sanity_info from conf to cache
Peter Kjellerstedt [Tue, 7 Jan 2020 22:10:42 +0000 (23:10 +0100)]
sanity.bbclass: Move sanity_info from conf to cache

Since this file is written during recipe parsing, having it in the
${BUILDDIR}/conf directory, which is covered by an inotify watcher,
will trigger a re-parse the next time bitbake is run and the resident
bitbake server is enabled. This causes the sanity_info file to be
updated again, which triggers a new parse the next time bitbake is run
ad infinitum. Moving it to ${BUILDDIR}/cache should avoid this.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agozip: Add patch fixing zipnote segfault
Jate Sujjavanich [Tue, 7 Jan 2020 03:36:10 +0000 (22:36 -0500)]
zip: Add patch fixing zipnote segfault

This patch has been applied in several Linux distributions

Signed-off-by: Jate Sujjavanich <jatedev@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agospeexdsp: 1.2rc3 -> 1.2.0
Tanu Kaskinen [Tue, 7 Jan 2020 07:20:14 +0000 (09:20 +0200)]
speexdsp: 1.2rc3 -> 1.2.0

Removed backported patch
0001-Don-t-rely-on-HAVE_STDINT_H-et-al.-being-defined.patch

Enabling NEON on aarch64 doesn't break the build any more.

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoenchant: Replace with enchant2 from meta-oe
Adrian Bunk [Tue, 7 Jan 2020 11:26:15 +0000 (13:26 +0200)]
enchant: Replace with enchant2 from meta-oe

webkitgtk does now support the new version.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa: archiver: Tidy up test case descriptions
Paul Barker [Tue, 7 Jan 2020 11:27:34 +0000 (11:27 +0000)]
oeqa: archiver: Tidy up test case descriptions

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoarchiver.bbclass: Add new mirror archiver mode
Paul Barker [Tue, 7 Jan 2020 11:27:33 +0000 (11:27 +0000)]
archiver.bbclass: Add new mirror archiver mode

We define a new method of populating a source mirror using the archiver
bbclass instead of simply copying the contents of the downloads
directory. This allows the archiver features such as copyleft license
filtering and recipe type filtering to be used when preparing a source
mirror.

This new archiver mode is selected by setting `ARCHIVE_MODE[src]` to
'mirror'.

The source mirror mode can either be 'split' (default) or 'combined',
controlled by `ARCHIVER_MODE[mirror]`. Additionally, sources can be
excluded as needed by setting `ARCHIVER_MIRROR_EXCLUDE` to a list of
URI prefixes. These options are described in more detail in the new
entries in the header of archiver.bbclass.

New oeqa selftest cases are added to cover the mirror archiver mode.

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoopenssh: Allow clock_nanosleep/clock_gettime64/clock_nanosleep_time64 syscall
Khem Raj [Wed, 8 Jan 2020 01:51:57 +0000 (17:51 -0800)]
openssh: Allow clock_nanosleep/clock_gettime64/clock_nanosleep_time64 syscall

Fixes connection denials with these syscalls being there on upcoming glibc 2.31 release

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomaintainers.inc: cleanup entries
Yi Zhao [Wed, 8 Jan 2020 06:51:17 +0000 (14:51 +0800)]
maintainers.inc: cleanup entries

Cleanup the following entries because these recipes have been removed
from oe-core:
  cve-check-tool
  gcc-cross-initial
  gcc-crosssdk-initial
  gcc-source-8.3.0
  gccmakedep
  gnome-themes-standard
  gtk+
  gtk-icon-utils-native
  libnewt-python
  mkfontdir
  python3-file-utils

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agowic: Add --include-path argument
Paul Barker [Wed, 8 Jan 2020 11:25:46 +0000 (11:25 +0000)]
wic: Add --include-path argument

This option adds the contents of the given path to a partition built
with the rootfs source plugin. The path is relative to the directory in
which wic is running not the rootfs itself so use of an absolute path
is recommended. This option is most useful when multiple copies of the
rootfs are added to an image and it is required to add extra content to
only one of these copies. This option only has an effect with the
rootfs source plugin.

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agowic: Preserve intermediate files
Paul Barker [Wed, 8 Jan 2020 11:25:45 +0000 (11:25 +0000)]
wic: Preserve intermediate files

When debugging issues or trying to add new features in wic it's useful
to examine the intermediate files created by the tool such as images of
the individual partitions. Previously these files were created in a
subdirectory of IMGDEPLOYDIR and, deleted by wic itself and then the
working subdirectory completely removed at the end of IMAGE_CMD_wic.
Instead we should work in a staging directory named build-wic and leave
behind intermediate files for analysis if necessary.

This has the added benefit of allowing individual partition images to
be preserved by adding commands to IMAGE_CMD_wic_append() in an image
recipe if needed. This is useful where an update system requires exact
sized and pre-formatted partition images for deployment.

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooe-pkgdata-browser: Make the window 1200x900 by default
Peter Kjellerstedt [Wed, 8 Jan 2020 03:44:55 +0000 (04:44 +0100)]
oe-pkgdata-browser: Make the window 1200x900 by default

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooe-pkgdata-browser: Select a matching package when a recipe is selected
Peter Kjellerstedt [Wed, 8 Jan 2020 03:44:54 +0000 (04:44 +0100)]
oe-pkgdata-browser: Select a matching package when a recipe is selected

When a recipe is selected, automatically select the package that
matches the recipe name (if it exists), otherwise select the first
package.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooe-pkgdata-browser: Avoid an extra space for dependencies without version
Peter Kjellerstedt [Wed, 8 Jan 2020 03:44:53 +0000 (04:44 +0100)]
oe-pkgdata-browser: Avoid an extra space for dependencies without version

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooe-pkgdata-browser: Show file sizes in a human readable format
Peter Kjellerstedt [Wed, 8 Jan 2020 03:44:52 +0000 (04:44 +0100)]
oe-pkgdata-browser: Show file sizes in a human readable format

Just like the package sizes already are shown.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooe-pkgdata-browser: Correct the prefix for kilo to "k"
Peter Kjellerstedt [Wed, 8 Jan 2020 03:44:51 +0000 (04:44 +0100)]
oe-pkgdata-browser: Correct the prefix for kilo to "k"

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooe-pkgdata-browser: Clean the package view properly
Peter Kjellerstedt [Wed, 8 Jan 2020 03:44:50 +0000 (04:44 +0100)]
oe-pkgdata-browser: Clean the package view properly

Not all widgets were hidden when no package was selected.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooe-pkgdata-browser: Rename from pkgdataui.py
Peter Kjellerstedt [Wed, 8 Jan 2020 03:44:49 +0000 (04:44 +0100)]
oe-pkgdata-browser: Rename from pkgdataui.py

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibmodule-build-perl: fix ptests
Alexander Kanavin [Wed, 8 Jan 2020 13:27:59 +0000 (14:27 +0100)]
libmodule-build-perl: fix ptests

Particularly remove a broken detection of skipped tests
(which was marking tests that actually passed), and install
additional artefacts needed for testing.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoperl: install typemap and other extutils metadata as part of perl-core
Alexander Kanavin [Wed, 8 Jan 2020 13:27:58 +0000 (14:27 +0100)]
perl: install typemap and other extutils metadata as part of perl-core

Modules actually make use of these files, so they belong in perl-core
other than perl-doc (the immediate failure was ptests for
libmodule-build-perl failing).

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoperl: package Config.pm from arch directory into the main perl package
Alexander Kanavin [Wed, 8 Jan 2020 13:27:57 +0000 (14:27 +0100)]
perl: package Config.pm from arch directory into the main perl package

Otherwise, some modules such as libmodule-build-perl fail to work
properly.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agokbd: fix failing ptests
Alexander Kanavin [Wed, 8 Jan 2020 13:27:56 +0000 (14:27 +0100)]
kbd: fix failing ptests

Some assumptions about where data files are needs to be adjusted.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogawk: fix failing ptests
Alexander Kanavin [Wed, 8 Jan 2020 13:27:55 +0000 (14:27 +0100)]
gawk: fix failing ptests

They were failing due to incorrect locale being used.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogettext: additional ptest fixing
Alexander Kanavin [Wed, 8 Jan 2020 13:27:54 +0000 (14:27 +0100)]
gettext: additional ptest fixing

In previous testing some tests were skipped due to missing autotools;
when autotools are present on target, additional failures are exposed.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogzip: do not pull in perl-ptest for gzip-ptest
Alexander Kanavin [Wed, 8 Jan 2020 13:27:53 +0000 (14:27 +0100)]
gzip: do not pull in perl-ptest for gzip-ptest

This significantly adds to the ptest execution time and isn't
needed, as all tests pass anyway.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoptest-packagelists.inc: add a couple of missed ptests
Alexander Kanavin [Wed, 8 Jan 2020 13:27:52 +0000 (14:27 +0100)]
ptest-packagelists.inc: add a couple of missed ptests

Also remove mdadm-ptest as it is already included in the slow list.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoptest: report ptests that couldn't be run at all
Alexander Kanavin [Wed, 8 Jan 2020 13:27:51 +0000 (14:27 +0100)]
ptest: report ptests that couldn't be run at all

Currently if a ptest does not produce PASS or FAIL, but simply
errors out, this is not caught or reported; I think some ptests
may have silently regressed due to this.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agostaging.bbclass: correctly exclude ptest directories
Alexander Kanavin [Wed, 8 Jan 2020 13:27:50 +0000 (14:27 +0100)]
staging.bbclass: correctly exclude ptest directories

They were not excluded when multilib variants were being built.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agodummy-sdk-package.inc: do multilib expanesion for RREPLACES as well
Alexander Kanavin [Wed, 8 Jan 2020 13:27:49 +0000 (14:27 +0100)]
dummy-sdk-package.inc: do multilib expanesion for RREPLACES as well

Otherwise, multilib packages such as lib64-perl aren't properly replaced:
Error:
 Problem: package target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target conflicts with lib64-perl provided by lib64-perl-5.30.1-r0.x86_64
  - package target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target conflicts with lib64-perl-module-strict provided by lib64-perl-5.30.1-r0.x86_64
  - package target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target conflicts with lib64-perl-module-warnings provided by lib64-perl-5.30.1-r0.x86_64
  - package target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target conflicts with lib64-perl-module-vars provided by lib64-perl-5.30.1-r0.x86_64

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolib/oe/package_manager.py: put the sdk_provides_dummy_target upfront
Alexander Kanavin [Wed, 8 Jan 2020 13:27:48 +0000 (14:27 +0100)]
lib/oe/package_manager.py: put the sdk_provides_dummy_target upfront

Otherwise, the package utilizing this architecure does not get
properly prioritized by rpm/dnf. This isn't seen single-lib builds
(as the architecture ends up upfront anyway), but is triggered in
multulib where the architecture may end up in the middle of the list
due to multilib expansion/trimming duplicates.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemtap: remove the unneeded patch
Alexander Kanavin [Wed, 8 Jan 2020 13:27:47 +0000 (14:27 +0100)]
systemtap: remove the unneeded patch

As the problem is now fixed with a backported patch to
gettext itself, the patch is no longer needed.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agovirglrenderer: update to 0.8.1
Alexander Kanavin [Wed, 8 Jan 2020 13:27:46 +0000 (14:27 +0100)]
virglrenderer: update to 0.8.1

Switch over to meson build system, add a patch
to avoid target python3 dependency.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoresolvconf: update to 1.82
Alexander Kanavin [Wed, 8 Jan 2020 13:27:41 +0000 (14:27 +0100)]
resolvconf: update to 1.82

Switch to git, as using debian snapshots makes automated upgrades impossible.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agou-boot-fw-utils: Drop as replaced
Richard Purdie [Fri, 3 Jan 2020 14:55:12 +0000 (14:55 +0000)]
u-boot-fw-utils: Drop as replaced

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibubootenv: Add libubootenv which replaces u-boot-fw-utils
Stefano Babic [Fri, 3 Jan 2020 12:33:22 +0000 (13:33 +0100)]
libubootenv: Add libubootenv which replaces u-boot-fw-utils

libubootenv is a replacement for u-boot-fw-utils. It is
hardware-independent and provides fw_printenv and fw_setenv tools that
are full compatible with the ones provided by U-Boot. A library is
provided to access the environment from an own application.
License is LGPL-2.1 and this allow to link the library to proprietary
code. The user of the tools should install the configuration file
"fw_env.config", as he is already used to with u-boot-fw-utils. The
configuration file is compatible with u-boot-fw-utils.
A full discussion about issues on current u-boot-fw-utils can be read on
U-Boot's ML at:

http://u-boot.10912.n7.nabble.com/SWUpdate-U-Boot-environment-library-dependency-tt340530.html#none

Signed-off-by: Stefano Babic <sbabic@denx.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agorunqemu: add virtio block device
Maxim Uvarov [Sat, 4 Jan 2020 20:08:57 +0000 (23:08 +0300)]
runqemu: add virtio block device

Implement new QB_DRIVE_TYPE="/dev/vdb" which falls back
to virtio block device emulated by qemu.
That is needed to support following qemu command line:
-drive id=disk0,file=%s,if=none,format=%s \
  -device virtio-blk-device,drive=disk0'

Real use case is arm64 emulation with qemu with atf+optee+uboot,
so that uboot driver sees this disk and able to load from it.

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoglib: set missing cross property
Ross Burton [Mon, 6 Jan 2020 12:47:26 +0000 (12:47 +0000)]
glib: set missing cross property

GLib 2.60 onwards checks for /proc/self/cmdline instead of assuming that
it exists on Linux (because Cygwin also has it).  As this is a runtime
test it doesn't execute in cross builds so defaults to false, but under
Linux this should be true.

Restore the previous behaviour and silence the warning by setting the
cross property appropriately.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosstate: Avoid races over rewritten siginfo files
Richard Purdie [Mon, 6 Jan 2020 10:08:46 +0000 (10:08 +0000)]
sstate: Avoid races over rewritten siginfo files

Try and avoid errors like:

Exception: bb.process.ExecutionError: Execution of 'build/tmp/work/x86_64-linux/libxslt-native/1.1.34-r0/temp/run.sstate_unpack_package.12343' failed with exit code 1:
touch: setting times of 'build/sstate_devtool/80/4d/sstate:libxslt-native::1.1.34:r0::3:804d33f3f8d032b01ae92207669dd0a8f95a84917d563d122a77df19e786d73c_populate_lic.tgz.siginfo': Stale file handle
WARNING: exit code 1 from a shell command.

by not overwriting existing files.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoscripts/gen-lockedsig-cache: Only look at new format sstate objects
Richard Purdie [Mon, 6 Jan 2020 13:14:17 +0000 (13:14 +0000)]
scripts/gen-lockedsig-cache: Only look at new format sstate objects

We can have sstate directories which are mixtures of old and new layout entries.
Only use the new format ones since these are the only ones bitbake itself will
look at.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosstate: Handle sstate filenames longer than 255 characters
Richard Purdie [Sun, 5 Jan 2020 14:49:03 +0000 (14:49 +0000)]
sstate: Handle sstate filenames longer than 255 characters

Many filesystems can't cope with filenames longer that 255 characters.
Add code to detect this and truncate non-essential elements of the filename
to stay within the limit.

[YOCTO #13268]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>