]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
5 years agogroff: upgrade 1.22.3 -> 1.22.4
Hongxu Jia [Sun, 12 May 2019 08:16:28 +0000 (16:16 +0800)]
groff: upgrade 1.22.3 -> 1.22.4

- Drop groff-1.22.2-correct-man.local-install-path.patch and
  0001-Unset-need_charset_alias-when-building-for-musl.patch

- Inherit bbclass pkgcnofig to fix `undefined macro: AC_DEFINE'
  ...
  | configure:20010: error: possibly undefined macro: AC_DEFINE
  ...

- Use autotools-brokensep to replace autotools to workaround failure
  caused by out of tree
  ...
  | rm -f lib/alloca.h-t lib/alloca.h && \
  | { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
  |   cat ../groff-1.22.4/lib/alloca.in.h; \
  | } > lib/alloca.h-t && \
  | mv -f lib/alloca.h-t lib/alloca.h
  | /bin/sh: line 4: lib/alloca.h-t: No such file or directory
  | Makefile:10407: recipe for target 'lib/alloca.h' failed
  ...

- Add `--without-doc' to not use target groff to generate doc at build time,
  since upstream commit [cfe916e Support of configure option to build the
  documentation.]

- Remove groff depends groff-native, and add DEPENDS bison-native

- Add 0001-fix-shebang-for-taget.patch

- Add 0001-support-musl.patch

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosubversion: upgrade 1.11.1 -> 1.12.0
Hongxu Jia [Sun, 12 May 2019 08:16:27 +0000 (16:16 +0800)]
subversion: upgrade 1.11.1 -> 1.12.0

- Backport a patch to fix build failure while APR 1.7.0
...
checking for apr_int64_t Python/C API format string...
configure: error: failed to recognize APR_INT64_T_FMT on this platform
...

- Rebase disable_macos.patch and serfmacro.patch

License-update: no change, declare two new added file
* in build/ac-macros/ax_boost_base.m4
* in build/ac-macros/ax_boost_unit_test_framework.m4

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogpgme: upgrade 1.12.0 -> 1.13.0
Hongxu Jia [Sun, 12 May 2019 08:16:26 +0000 (16:16 +0800)]
gpgme: upgrade 1.12.0 -> 1.13.0

- Revert gpgrt-config support which oe-core does not support it

- Rebase 0002-gpgme-lang-python-gpg-error-config-should-not-be-use.patch
  and 0001-pkgconfig.patch

- Tweak LANGUAGES, since upstream auto check the version of python rather
  than specify option
  [ff6ff61 python: Auto-check for all installed python versions.]

License-update: SPDX identifiers site and formats
[8d91c0f Add SPDX identifiers to most source files]
"s/LGPL-2.1+/LGPL-2.1-or-later/"
"s#https://www.gnu.org/licenses#https://gnu.org/licenses#"

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoncurses: fix incorrect UPSTREAM_CHECK_GITTAGREGEX
Hongxu Jia [Sun, 12 May 2019 08:16:25 +0000 (16:16 +0800)]
ncurses: fix incorrect UPSTREAM_CHECK_GITTAGREGEX

The upstream git tag has a `upstream/' prefix, such as:
>>> import re
>>> pattern = "upstream/(?P<pver>\d+(\.\d+)+(\+\d+)*)"
>>> string = "upstream/6.1+20181013"
>>> result = re.match(pattern, string)
>>> result['pver']
'6.1+20181013'

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobash: upgrade 4.4.18 -> 5.0
Hongxu Jia [Sun, 12 May 2019 08:16:24 +0000 (16:16 +0800)]
bash: upgrade 4.4.18 -> 5.0

- Rebase build-tests.patch and execute_cmd.patch to 5.0

- Drop 0001-help-fix-printf-format-security-warning.patch
  and pathexp-dep.patch, upstream has fixed them in commit
  [d233b48 bash-5.0 distribution sources and documentation]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoman-db: upgrade 2.8.4 -> 2.8.5
Hongxu Jia [Sun, 12 May 2019 08:16:23 +0000 (16:16 +0800)]
man-db: upgrade 2.8.4 -> 2.8.5

Upstream shipped a systemd service in the following commit
[bc52248 Ship a systemd timer for daily DB maintenance]
Backward compatible, disable it by default

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoman-pages: upgrade 4.16 -> 5.01
Hongxu Jia [Sun, 12 May 2019 08:16:22 +0000 (16:16 +0800)]
man-pages: upgrade 4.16 -> 5.01

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoapr: upgrade 1.6.5 -> 1.7.0
Hongxu Jia [Sun, 12 May 2019 08:16:21 +0000 (16:16 +0800)]
apr: upgrade 1.6.5 -> 1.7.0

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobase-passwd: Add kvm group
Jacob Kroon [Mon, 4 Feb 2019 03:11:53 +0000 (04:11 +0100)]
base-passwd: Add kvm group

Although base-passwd in OE is somewhat outdated, upgrading
to a newer version is not going to solve eudev warnings about
missing groups during boot; input/shutdown/kvm are still not
listed in groups.master. The reason for this is that
Debian uses systemd, which will automatically create
missing groups(systemd-sysusers). In a sysvinit+eudev
configuration you instead get a warning printed to
the console:

  udevd[<pid>]: specified group 'kvm' unknown

Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoglib-2.0: add missing locales for the tests
Ross Burton [Fri, 10 May 2019 10:59:39 +0000 (11:59 +0100)]
glib-2.0: add missing locales for the tests

Some tests are either failing or skipping due to missing locales.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoglib-2.0: fix locale handling
Ross Burton [Fri, 10 May 2019 09:58:27 +0000 (10:58 +0100)]
glib-2.0: fix locale handling

A bug upstream resulted in broken locale handling with the new glibc we have, so
the test suite was failing.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agorun-postinsts: Fix full execution of scripts at first boot
Alejandro Enedino Hernandez Samaniego [Wed, 8 May 2019 19:04:01 +0000 (12:04 -0700)]
run-postinsts: Fix full execution of scripts at first boot

run-postinsts runs a given set of scripts during the first boot of the
device, when one of these scripts prints something to stdout (isnt
daemonized correctly), since stdout is not available at that time,
the script execution immediately returns with an error (exit_group()),
this error causes the script to terminate all threads within the process,
causing undesired behavior since the script might still had to execute
some other code.

Replace eval built-in with (), since () executes in a subshell,
even if one of the scripts exits, all threads of that process will only
be within that session, this ensures other scripts meant to be run are
still run afterwards.

[YOCTO #13266]

Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoprocps: update legacy sysctl.conf to fix rp_filter sysctl issue
Michael Scott [Thu, 9 May 2019 18:06:41 +0000 (11:06 -0700)]
procps: update legacy sysctl.conf to fix rp_filter sysctl issue

The sysctl.conf file for procps is very outdated:
https://git.openembedded.org/openembedded-core/commit/?id=8a9b9a323f4363e27138077e3e3dce8139a36708
(circa 2014)

The origin of this file is hard to determine and due to it's age
is causing a routing issue when both wifi and ethernet are enabled.
This manifested during an update from thud -> warrior due to the
following:
- upstream change in NetworkManager during 1.16 cycle removes the
  dynamic setting of rp_filter sysctl when more than one interface
  is enabled:
  https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=b1082aa9a711deb96652e5b2fcaefcf399d127b8
- open-embedded updated to NetworkManager 1.16 in March 2019:
  https://git.openembedded.org/meta-openembedded/commit/meta-networking/recipes-connectivity/networkmanager?id=5509328af9e4fab267251456f4d6e7bd51df779a
- setting in legacy sysctl.conf sets rp_filter to 1 which blocks
  packets with different inbound and outbound addresses.

Documentation of rp_filter setting from kernel.org:

rp_filter - INTEGER
0 - No source validation.
1 - Strict mode as defined in RFC3704 Strict Reverse Path
    Each incoming packet is tested against the FIB and if the interface
    is not the best reverse path the packet check will fail.
    By default failed packets are discarded.
2 - Loose mode as defined in RFC3704 Loose Reverse Path
    Each incoming packet's source address is also tested against the FIB
    and if the source address is not reachable via any interface
    the packet check will fail.

This patch updates the sysctl.conf file to current which doesn't set
the rp_filter mode explicity (2 is the default).

NOTE: The kernel/pid_max=10000 setting has been commented out as this
may not be desired by default.

Signed-off-by: Michael Scott <mike@foundries.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa/selftest: Automate manual pybootchart tests
Richard Purdie [Tue, 30 Apr 2019 14:46:59 +0000 (07:46 -0700)]
oeqa/selftest: Automate manual pybootchart tests

Automate the current manual pybootchart tests. This includes a check
for the cairo dependency, skipping the test if appropriate.

Based on original patch from Armin Kuster <akuster808@gmail.com>

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoopenssh: recommend rng-tools with sshd
Mikko Rapeli [Thu, 9 May 2019 07:22:44 +0000 (10:22 +0300)]
openssh: recommend rng-tools with sshd

Since openssl 1.1.1 and openssh which uses it, sshd
startup is delayed. The delays range from few seconds
to minutes and even to hours. The delays are visible
in host keys generation and when sshd process is started
in response to incoming TCP connection but is failing
to provide SSH version string and clients or tests time out.

In all cases traces show that sshd is waiting for getentropy()
system call to return from Linux kernel, which returns only
after kernel side random number pool is initialized. The pool
is initialized via various entropy source which may be
missing on embedded development boards or via rngd from
rng-tools package from userspace. HW random number generation
and kernel support help but rngd is till needed to feed that data
back to the Linux kernel.

Example from an NXP imx8 board shows that kernel random number pool
initialization can take over 400 seconds without rngd,
and with rngd it is initialized at around 4 seconds after boot.
The completion of initialization is visible in kernel dmesg with line
"random: crng init done".

More details are available from:

 * https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=912087
 * https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=897572
 * https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=43838a23a05fbd13e47d750d3dfd77001536dd33
 * http://www.man7.org/linux/man-pages/man2/getrandom.2.html

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Cc: Mark Hatle <mark.hatle@windriver.com>
Cc: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Cc: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolttng-modules: upgrade 2.10.8 -> 2.10.9
Adrian Bunk [Tue, 7 May 2019 13:11:51 +0000 (16:11 +0300)]
lttng-modules: upgrade 2.10.8 -> 2.10.9

Remove the backported patches.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobitbake.conf: set NO_RECOMMENDATIONS with weak assignment
Kai Kang [Thu, 9 May 2019 03:04:04 +0000 (23:04 -0400)]
bitbake.conf: set NO_RECOMMENDATIONS with weak assignment

Set NO_RECOMMENDATIONS with weak assignment then it could be set a
default value somewhere else.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoccache: upgrade 3.6 -> 3.7.1
Adrian Bunk [Thu, 9 May 2019 10:52:23 +0000 (13:52 +0300)]
ccache: upgrade 3.6 -> 3.7.1

Remove backported patches.
Switch to new download location.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoweston-init: Add support for non-root start
Breno Leitao [Thu, 9 May 2019 10:03:24 +0000 (11:03 +0100)]
weston-init: Add support for non-root start

This commit adds support for two variables (WESTON_USER and WESTON_TTY) that
would be passed to weston_launch. It allows starting weston as a non-root user.

Signed-off-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoweston-init: Fix tab indentation
Breno Leitao [Thu, 9 May 2019 10:03:23 +0000 (11:03 +0100)]
weston-init: Fix tab indentation

This patch simply fixes space and tab mixes. It converts space to tabs. This is
being done since I am going to change the code in the next commit and I do not
want to change more lines than it is required, thus, I am creating a commit
just to fix indentation, so I can create a cleaner patch later.

Signed-off-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemd: Bump up SRCREV to systemd-stable top to include the fix for shutdown now...
He Zhe [Thu, 9 May 2019 09:54:57 +0000 (17:54 +0800)]
systemd: Bump up SRCREV to systemd-stable top to include the fix for shutdown now hang

"shutdown now" makes systemd hang at the following line.
[  OK  ] Stopped Session c1 of user root.

It's already been fixed by 03cb25525423 ("socket-util: make sure flush_accept() doesn't hang on unexpected EOPNOTSUPP")

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogcc-9: Add recipes for gcc 9.1 release
Khem Raj [Tue, 7 May 2019 21:03:38 +0000 (14:03 -0700)]
gcc-9: Add recipes for gcc 9.1 release

Add maintainer entry for gcc-source-9.1.0

Delete entry for gcc-source-7.3.0

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibgfortan: Package target gcc include directory to fix
Khem Raj [Thu, 9 May 2019 18:03:51 +0000 (11:03 -0700)]
libgfortan: Package target gcc include directory to fix

ERROR: libgfortran-9.1.0-r0 do_package: QA Issue: libgfortran:
Files/directories were installed but not shipped in any package:
  /usr/lib/gcc/x86_64-poky-linux/9.1.0/include
  /usr/lib/gcc/x86_64-poky-linux/9.1.0/include/ISO_Fortran_binding.h

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agotcmode-default: Add PREFERRED_VERSION for libgfortran
Richard Purdie [Thu, 9 May 2019 20:17:23 +0000 (21:17 +0100)]
tcmode-default: Add PREFERRED_VERSION for libgfortran

With the addition of gcc 9 recipes it highlighted there is no PREFERRED_VERSION
set for libgfortran and it should match the rest of gcc. Add this missing
PREFERRED_VERSION line to avoid mixing gcc versions in inadvisable ways.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa/concurrenttest: Patch subunit module to handle classSetup failures
Richard Purdie [Thu, 9 May 2019 13:35:03 +0000 (14:35 +0100)]
oeqa/concurrenttest: Patch subunit module to handle classSetup failures

Currently setupClass errors were not being mapped back to the failing tests
and they were hence being marked as UNKNOWN and the test statistics were
inaccurate.

This is because whilst the errors were being encoded into the test results
stream, the decoder doesn't cope with an error outside a testStart event.

We patch in an addError handler to the outsideTest parser so that this
does get handled in a way similar to the non-concurrent case.

It would be nice if we didn't have to do this but there doesn't seem
to be any other way to fix this other than forking subunit.

We also make a minor change so another of our changes can cope with
tests without a start time.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa/runner: Fix subunit setupClass/setupModule failure handling
Richard Purdie [Thu, 9 May 2019 13:33:37 +0000 (14:33 +0100)]
oeqa/runner: Fix subunit setupClass/setupModule failure handling

The string format for subunit setupClass/setupModule failures is slightly
different, tweak the regex to correctly handle both cases.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoicu: Added armeb support.
Lei Maohui [Thu, 18 Apr 2019 05:53:07 +0000 (13:53 +0800)]
icu: Added armeb support.

Make icu support arm32 BE.

Upstream-Status: Pending

Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemd: move "machines" symlinks to systemd-container
Matthias Schiffer [Fri, 3 May 2019 14:27:33 +0000 (16:27 +0200)]
systemd: move "machines" symlinks to systemd-container

Move symlinks to the machines.target and var-lib-machines.mount units to
the systemd-container package, where the pointed at units are located as
well.

This avoids an implicit dependency of the systemd package on
systemd-container, which prevented the use of systemd without installing
systemd-container.

Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemd: Use PACKAGECONFIG definition to depend on libnss-myhostname
Peter Kjellerstedt [Fri, 12 Apr 2019 16:14:47 +0000 (18:14 +0200)]
systemd: Use PACKAGECONFIG definition to depend on libnss-myhostname

Rather than adding the dependency on libnss-myhostname to
RDEPENDS_${PN} if the myhostname PACKAGECONFIG is set, add the runtime
dependency to myhostname's PACKAGECONFIG definition.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoshadow: Backport last change reproducibility
Alex Kiernan [Wed, 8 May 2019 22:00:21 +0000 (23:00 +0100)]
shadow: Backport last change reproducibility

The third field in the /etc/shadow file (sp_lstchg) contains the date of
the last password change expressed as the number of days since Jan 1,
1970.

Backport the upstream changes to honour SOURCE_DATE_EPOCH for build
reproducibility.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agouboot-sign: Fix u-boot-nodtb symlinks
Ying-Chun Liu (PaulLiu) [Wed, 8 May 2019 10:53:25 +0000 (18:53 +0800)]
uboot-sign: Fix u-boot-nodtb symlinks

When using u-boot-nodtb, the symlink didn't install correctly to the
${DEPLOYDIR}. This commit fixes this bug.

Signed-off-by: Ying-Chun Liu (PaulLiu) <paulliu@debian.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopatch: add minver and maxver parameters
Ross Burton [Wed, 8 May 2019 10:40:24 +0000 (11:40 +0100)]
patch: add minver and maxver parameters

Add minver/maxver parameters to limit patch application by comparing PV.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogdb: Fix aarch64 build with musl
Paul Barker [Wed, 8 May 2019 11:58:35 +0000 (11:58 +0000)]
gdb: Fix aarch64 build with musl

Signed-off-by: Paul Barker <paul@betafive.co.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoperl: update to 5.28.2
Alexander Kanavin [Wed, 8 May 2019 13:54:58 +0000 (15:54 +0200)]
perl: update to 5.28.2

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomeson: update to 0.50.1
Alexander Kanavin [Wed, 8 May 2019 13:54:57 +0000 (15:54 +0200)]
meson: update to 0.50.1

None of the backported patches actually made it into this release.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa/sdk: use bash to execute SDK test commands
Mikko Rapeli [Wed, 8 May 2019 13:26:08 +0000 (16:26 +0300)]
oeqa/sdk: use bash to execute SDK test commands

The commands only work with with bash. If /bin/sh is
dash like in Debian, the command execution fails with
errors like:

Standard Output: /bin/sh: 5: export: --sysroot: bad variable name

and all SDK tests fail.

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemd: Restore mask and preset targets, fix instance creation
Alex Kiernan [Wed, 8 May 2019 15:57:28 +0000 (16:57 +0100)]
systemd: Restore mask and preset targets, fix instance creation

Ensure that anyone who sets SYSTEMD_AUTO_ENABLE_${PN} = "mask" (or
"preset") retains the previous behaviour. In addition fix "enable" so it
can (again) create instance units out of templates.

Remove over-zealous quoting of SYSTEMD_SERVICE_ESCAPED as it's already
safely escaped (and can be multiple arguments).

Reported-by: Paul Barker <paul@betafive.co.uk>
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemd-systemctl: Restore support for enable command
Alex Kiernan [Wed, 8 May 2019 15:57:27 +0000 (16:57 +0100)]
systemd-systemctl: Restore support for enable command

Refactor so that SystemdUnit is its own class, then add support for the
enable command. This restores the ability of systemd.bbclass to create
instances using syntax such as:

  SYSTEMD_SERVICE_${PN} = "serial-getty@ttyAMA0.service"

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemd: Default to non-stateless images
Alex Kiernan [Wed, 8 May 2019 15:57:26 +0000 (16:57 +0100)]
systemd: Default to non-stateless images

When creating images, for anything other than the explicitly stateless
case, touch /etc/machine-id so that the images can be booted without an
initramfs and with `ro` set on the kernel command line, otherwise system
refuses to start:

  [    7.222134] systemd[1]: No hostname configured.
  [    7.227266] systemd[1]: Set hostname to <localhost>.
  [    7.232622] systemd[1]: System cannot boot: Missing /etc/machine-id and /etc is mounted read-only.
  [    7.241750] systemd[1]: Booting up is supported only when:
  [    7.247362] systemd[1]: 1) /etc/machine-id exists and is populated.
  [    7.253752] systemd[1]: 2) /etc/machine-id exists and is empty.
  [    7.259757] systemd[1]: 3) /etc/machine-id is missing and /etc is writable.

If IMAGE_FEATURES includes `stateless-rootfs` then systemctl-native is
not run on the image leaving the image for population at runtime by
systemd.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosysstat: inherit upstream-version-is-even
Adrian Bunk [Wed, 8 May 2019 20:01:33 +0000 (23:01 +0300)]
sysstat: inherit upstream-version-is-even

Currently a development version is being used.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa/core/runner: Handle unexpectedSucesses
Richard Purdie [Wed, 8 May 2019 15:20:19 +0000 (16:20 +0100)]
oeqa/core/runner: Handle unexpectedSucesses

Instead of showing:
RESULTS - ptest.PtestRunnerTest.test_ptestrunner - Testcase 1600: UNKNOWN (32.30s)

map unexpectedSuccesses to PASSED and improve the way they're displayed. We
expect/allow ptest runner to fail but if it passes we should handle it correctly.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agometa/lib+scripts: Convert to SPDX license headers
Richard Purdie [Wed, 8 May 2019 17:22:19 +0000 (18:22 +0100)]
meta/lib+scripts: Convert to SPDX license headers

This adds SPDX license headers in place of the wide assortment of things
currently in our script headers. We default to GPL-2.0-only except for the
oeqa code where it was clearly submitted and marked as MIT on the most part
or some scripts which had the "or later" GPL versioning.

The patch also drops other obsolete bits of file headers where they were
encoountered such as editor modelines, obsolete maintainer information or
the phrase "All rights reserved" which is now obsolete and not required in
copyright headers (in this case its actually confusing for licensing as all
rights were not reserved).

More work is needed for OE-Core but this takes care of the bulk of the scripts
and meta/lib directories.

The top level LICENSE files are tweaked to match the new structure and the
SPDX naming.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooeqa: Drop OETestID
Richard Purdie [Wed, 8 May 2019 15:56:32 +0000 (16:56 +0100)]
oeqa: Drop OETestID

These IDs refer to testopia which we're no longer using. We would now use the test
names to definitively reference tests and the IDs can be dropped, along with their
supporting code.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocoreutils: Fix patch upstream status field
Richard Purdie [Wed, 8 May 2019 22:35:18 +0000 (23:35 +0100)]
coreutils: Fix patch upstream status field

Should be Backport, not Backported

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agotarget-sdk-provides-dummy: resolve sstate conflict
Kai Kang [Wed, 8 May 2019 09:24:44 +0000 (05:24 -0400)]
target-sdk-provides-dummy: resolve sstate conflict

It exists a situation that there is a common config file includes
multilib.conf but variable MULTILIBS is not set by default:

  require conf/multilib.conf
  MULTILIBS ?= ""

When build target-sdk-provides-dummy in a build project, it fails with
following steps:

1 $ echo 'MACHINE = "qemux86"' >>conf/local.conf
  $ bitbake target-sdk-provides-dummy
2 $ cat <<EOF >>conf/local.conf
    MACHINE = "qemux86-64"
    MULTILIBS = "multilib:lib32"
    DEFAULTTUNE_virtclass-multilib-lib32 = "i586"
    EOF
  $ bitbake target-sdk-provides-dummy
  $ bitbake lib32-target-sdk-provides-dummy

It fails to build lib32-target-sdk-provides-dummy with error messages:

| ERROR: target-sdk-provides-dummy-1.0-r0 do_packagedata: The recipe target-sdk-provides-dummy
|  is trying to install files into a shared area when those files already exist. Those files
|  and their manifest location are:
|   .../tmp/pkgdata/qemux86-64/lib32-target-sdk-provides-dummy
|     (matched in manifest-qemux86_64-lib32-target-sdk-provides-dummy.packagedata)
|   .../tmp/pkgdata/qemux86-64/runtime/lib32-target-sdk-provides-dummy
|     (matched in manifest-qemux86_64-lib32-target-sdk-provides-dummy.packagedata)
|   ... snip ...
| Please verify which recipe should provide the above files.

Add related directories to SSTATE_DUPWHITELIST to avoid the failures.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython3: fix do_install fail for parallel buiild
Changqing Li [Wed, 8 May 2019 10:05:27 +0000 (18:05 +0800)]
python3: fix do_install fail for parallel buiild

When using make -j with the 'install' target, it's possible for altbininstall
(which normally creates BINDIR) and libainstall (which doesn't, though it
installs python-config there) to race, resulting in a failure due to
attempting to install python-config into a nonexistent BINDIR. Ensure it also
exists in the libainstall target.

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemd: Backport patch to fix build with gcc9
Khem Raj [Tue, 7 May 2019 23:53:39 +0000 (16:53 -0700)]
systemd: Backport patch to fix build with gcc9

Do not disable the warning as error for overflow, which was a workaround
until the real fix came in.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobitbake.conf: use https instead of http
Oleksandr Kravchuk [Tue, 7 May 2019 21:12:52 +0000 (23:12 +0200)]
bitbake.conf: use https instead of http

Use HTTPS instead of HTTP whenever one is available.

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agowpa-supplicant: update to 2.8
Oleksandr Kravchuk [Tue, 7 May 2019 21:01:33 +0000 (23:01 +0200)]
wpa-supplicant: update to 2.8

License checksums were changed due to modified copyright years.

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomsmtp: update to 1.8.4
Oleksandr Kravchuk [Tue, 7 May 2019 20:55:50 +0000 (22:55 +0200)]
msmtp: update to 1.8.4

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomtools: update to 4.0.23
Oleksandr Kravchuk [Tue, 7 May 2019 20:49:33 +0000 (22:49 +0200)]
mtools: update to 4.0.23

Removed patches were mainstreamed.

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocoreutils: update to 8.31
Oleksandr Kravchuk [Tue, 7 May 2019 16:29:33 +0000 (18:29 +0200)]
coreutils: update to 8.31

ls.c license checksum changed due to modified copyright year.

musl fix was backported from RHEL5 and is musl specific as the patched
file is autogenerated during configure phase.

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agokmscube: update to latest revision
Oleksandr Kravchuk [Tue, 7 May 2019 16:17:57 +0000 (18:17 +0200)]
kmscube: update to latest revision

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosqlite3: update to 3.28.0
Oleksandr Kravchuk [Tue, 7 May 2019 16:11:09 +0000 (18:11 +0200)]
sqlite3: update to 3.28.0

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibxcb: remove workaround patch for a bug that was fixed in gcc 5 in 2015
Adrian Bunk [Tue, 7 May 2019 13:11:50 +0000 (16:11 +0300)]
libxcb: remove workaround patch for a bug that was fixed in gcc 5 in 2015

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocogl: remove -Werror=maybe-uninitialized workaround
Adrian Bunk [Tue, 7 May 2019 13:11:49 +0000 (16:11 +0300)]
cogl: remove -Werror=maybe-uninitialized workaround

This should now also be covered by the
   DEBUG_OPTIMIZATION_append = " -Wno-error=maybe-uninitialized"

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocogl: upgrade 1.22.2 -> 1.22.4
Adrian Bunk [Tue, 7 May 2019 13:11:48 +0000 (16:11 +0300)]
cogl: upgrade 1.22.2 -> 1.22.4

Remove backported patch.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agommc-utils: update to the latest upstream code
Adrian Bunk [Tue, 7 May 2019 13:11:46 +0000 (16:11 +0300)]
mmc-utils: update to the latest upstream code

mmc-utils doesn't do releases, add the git revision to PV.
Remove patch for an issue now fixed upstream.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoresulttool: Add option to dump all ptest logs
Joshua Watt [Wed, 8 May 2019 16:16:23 +0000 (11:16 -0500)]
resulttool: Add option to dump all ptest logs

Adds an option to dump all the ptest logs to individual files in a
specified directory. If multiple test runs are present, the
'--prepend-run' argument will create separate directories for each test
run under the target directory and put the logs there to prevent each
test run from clobbering the others.

[YOCTO #13331]

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agobison: upgrade 3.0.4 -> 3.1
Adrian Bunk [Tue, 7 May 2019 13:11:44 +0000 (16:11 +0300)]
bison: upgrade 3.0.4 -> 3.1

Remove patches applied upstream.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosocat: upgrade 1.7.3.2 -> 1.7.3.3
Adrian Bunk [Tue, 7 May 2019 13:11:43 +0000 (16:11 +0300)]
socat: upgrade 1.7.3.2 -> 1.7.3.3

Remove patches for issues fixed upstream.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogrub: Use -Wno-error instead of doing this on a per-warning basis
Adrian Bunk [Tue, 7 May 2019 13:11:41 +0000 (16:11 +0300)]
grub: Use -Wno-error instead of doing this on a per-warning basis

In practice the warnings were disabled individually instead of fixes added,
so just make all warnings non-fatal to achieve the same.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agognu-efi: Remove support patch for gcc < 4.7
Adrian Bunk [Tue, 7 May 2019 13:11:40 +0000 (16:11 +0300)]
gnu-efi: Remove support patch for gcc < 4.7

No host platform that is still supported uses such an old gcc.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoscripts/pybootchart/draw: Fix some bounding problems
Richard Purdie [Wed, 8 May 2019 10:50:14 +0000 (11:50 +0100)]
scripts/pybootchart/draw: Fix some bounding problems

The chart size extents were being incorrectly reported, not accounting for the
width of the legend. Set a minimum width to account for that (its fixed size).

Also stop printing the chart background off the bottom of the chart extents.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoscripts/pybootchart/draw: Clarify some variable names
Richard Purdie [Wed, 8 May 2019 10:49:49 +0000 (11:49 +0100)]
scripts/pybootchart/draw: Clarify some variable names

This tweaks some intermediate variable names to make it clearer what
is being done.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoscripts/pybootchart: Port to python3
Richard Purdie [Wed, 8 May 2019 10:48:35 +0000 (11:48 +0100)]
scripts/pybootchart: Port to python3

This updates the pybootchart code (used for viewing build timing profiles)
to use python3. The bulk of the changes are to use gi instead of pygtk, i.e.
port from gtk+2 to gtk+3.

The main change is to make the bootchart widget inherit gtk.Scrollable
and change the way the scrollbars are implemented to match the new method
upstream. The drawing code used cairo already so can remain unchanged,

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoscripts/pybootchart: Fix mixed indentation
Richard Purdie [Wed, 8 May 2019 10:06:38 +0000 (11:06 +0100)]
scripts/pybootchart: Fix mixed indentation

The script had a toxic mix of tabs and spaces, fix this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoopenssh/systemd/python/qemu: Fix patch Upstream-Status
Richard Purdie [Wed, 8 May 2019 09:38:23 +0000 (10:38 +0100)]
openssh/systemd/python/qemu: Fix patch Upstream-Status

Fix some missing or corrupted patch Upstream-Status values.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoacpica: use update-alternatives for acpidump
Hongxu Jia [Mon, 6 May 2019 02:37:27 +0000 (10:37 +0800)]
acpica: use update-alternatives for acpidump

acpidump is both provided by acpica and pmtools, so use
update-alternatives to fix conflicts:
...
|Error: Transaction check error:
|  file /usr/bin/acpidump conflicts between attempted installs of
pmtools-20130209+git0+3ebe0e54c5-r0.i586 and acpica-20190405-r0.i586
...

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosquashfs-tools: set CVE_PRODUCT
Chen Qi [Tue, 7 May 2019 06:55:04 +0000 (14:55 +0800)]
squashfs-tools: set CVE_PRODUCT

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoflac: also add flac to CVE_PRODUCT
Chen Qi [Tue, 7 May 2019 06:55:03 +0000 (14:55 +0800)]
flac: also add flac to CVE_PRODUCT

flac uses both 'flac' and 'libflac' as cve product.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agosystemd: Add -Wno-error=format-overflow to fix build with gcc9
Khem Raj [Tue, 7 May 2019 01:18:50 +0000 (18:18 -0700)]
systemd: Add -Wno-error=format-overflow to fix build with gcc9

gcc9 throws additional warnings about format string overflow

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogcc-target: Do not set --with-sysroot and gxx-include-dir paths
Khem Raj [Mon, 6 May 2019 17:51:36 +0000 (10:51 -0700)]
gcc-target: Do not set --with-sysroot and gxx-include-dir paths

These options are not needed on target infact since the defaults would
be good enough for compiler to find the relevant headers and libraries
from compiler runtime

with gcc9 it starts to strip the sysroot from gxx-include-dir which
means it tries to look for gxx headers in localdir

ignoring nonexistent directory "usr/include/c++/9.0.1"
ignoring nonexistent directory "usr/include/c++/9.0.1/arm-yoe-linux-gnueabi"
ignoring nonexistent directory "usr/include/c++/9.0.1/backward"

instead of sysroot

Removing these options make it behave normal

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocml1.bbclass: fix undefined behavior
Stefan Müller-Klieser [Mon, 6 May 2019 08:29:13 +0000 (10:29 +0200)]
cml1.bbclass: fix undefined behavior

Whenever cml1 do_configure is used with a defconfig, oldconfig waits for
input. This silently fails on recent kconfig projects with:
"Error in reading or end of file."
We cannot use a more up to date kconfig target such as olddefconfig,
because busybox does not support it.

Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agodistutils: Run python from the PATH in the -native case as well
Douglas Royds [Mon, 6 May 2019 06:47:25 +0000 (18:47 +1200)]
distutils: Run python from the PATH in the -native case as well

The python distutils generate a python wrapper script for each package,
containing shebang lines pointing to the python executable.
In our case, this is a fully-qualified path to python-native in the
recipe-sysroot-native.

Ubuntu 18.04 restricts the useful length of the shebang line to 125
characters, and Ubuntu 16.04 restricts it to 77. In both cases, the
staged python script fails to run due to the length of the path to
the python-native executable.

Replace the shebang line with nativepython or nativepython3 as appropriate.
The nativepython symlink is installed by the python-native recipe:

    #!/usr/bin/env nativepython

We were already doing this for on-target distutils components.
This change applies the sed-line to -native distutils components as well.
In this way, -native clients of these components can invoke the wrapper scripts
directly, without themselves needing to inherit pythonnative.

This works around a known setuptools issue:
https://github.com/pypa/setuptools/issues/494
Even once this issue has been resolved upstream,
we will still need to replace `python` with `nativepython`

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agorecipetool: fix unbound variable when fixed SRCREV can't be found
Alex Kiernan [Sun, 5 May 2019 05:24:27 +0000 (06:24 +0100)]
recipetool: fix unbound variable when fixed SRCREV can't be found

If attempting to find a fixed SRCREV fails because the directory doesn't exit,
avoid failing with:

  Traceback (most recent call last):
    File "/home/vagrant/poky/scripts/recipetool", line 121, in <module>
      ret = main()
    File "/home/vagrant/poky/scripts/recipetool", line 110, in main
      ret = args.func(args)
    File "/home/vagrant/poky/scripts/lib/recipetool/create.py", line 707, in create_recipe
      srcrev = stdout.rstrip()
  UnboundLocalError: local variable 'stdout' referenced before assignment

Fixes: 000480c42797 ("recipetool / devtool: set a fixed SRCREV by default when fetching from git")
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogo: Exclude vcs files when installing deps
Alex Kiernan [Sun, 5 May 2019 05:23:32 +0000 (06:23 +0100)]
go: Exclude vcs files when installing deps

Because our clones use the host git, on (say) Ubuntu 18.04, the local
git directories acquire perl scripts such as fsmonitor-watchman.sample.
During packaging, this leads to failures:

  ERROR: go-hsperfdata-1.0.3+gitAUTOINC+b58598ac84-r0 do_package_qa: QA Issue: /usr/lib/go/pkg/dep/sources/https---github.com-nsf-termbox--go/.git/hooks/fsmonitor-watchman.sample contained in package go-hsperfdata-staticdev requires /usr/bin/perl, but no providers found in RDEPENDS_go-hsperfdata-staticdev? [file-rdeps]
  ERROR: go-hsperfdata-1.0.3+gitAUTOINC+b58598ac84-r0 do_package_qa: QA run found fatal errors. Please consider fixing them.
  ERROR: go-hsperfdata-1.0.3+gitAUTOINC+b58598ac84-r0 do_package_qa:
  ERROR: go-hsperfdata-1.0.3+gitAUTOINC+b58598ac84-r0 do_package_qa: Function failed: do_package_qa

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopython3: Add ntpath.py to python core
Alex Kiernan [Sun, 5 May 2019 05:23:13 +0000 (06:23 +0100)]
python3: Add ntpath.py to python core

The newer python3 recipe no longer includes ntpath.py in core, leading
to failures in pkg_resources:

  Traceback (most recent call last):
    File "/usr/bin/bmaptool", line 6, in <module>
      from pkg_resources import load_entry_point
    File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 42, in <module>
      import ntpath
  ModuleNotFoundError: No module named 'ntpath'

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopatchelf: Upgrade 0.9 -> 0.10
Alex Kiernan [Sun, 5 May 2019 05:22:44 +0000 (06:22 +0100)]
patchelf: Upgrade 0.9 -> 0.10

Drop patches merged (or redone differently) upstream

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agocpio/tar/native.bbclass: move rmt to sbindir and add a prefix to avoid native clashing
Hongxu Jia [Sun, 5 May 2019 10:04:24 +0000 (18:04 +0800)]
cpio/tar/native.bbclass: move rmt to sbindir and add a prefix to avoid native clashing

The rmt in cpio-native and tar-native is clashing, since
tar-native has set var-NATIVE_PACKAGE_PATH_SUFFIX, we move rmt
to sbindir, and add suffix NATIVE_PACKAGE_PATH_SUFFIX to sbindir
could avoid the clashing.

And in Ubuntu, rmt is in sbindir
$ which rmt
/usr/sbin/rmt

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoghostscript: set CVE_PRODUCT
Chen Qi [Sun, 5 May 2019 06:12:32 +0000 (14:12 +0800)]
ghostscript: set CVE_PRODUCT

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agofile: Stop adding -std=c99 to CFLAGS
Adrian Bunk [Sun, 5 May 2019 20:18:13 +0000 (23:18 +0300)]
file: Stop adding -std=c99 to CFLAGS

Upstream now adds this automatically when required.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibxcrypt: Stop adding -std=gnu99 to CPPFLAGS
Adrian Bunk [Sun, 5 May 2019 20:18:12 +0000 (23:18 +0300)]
libxcrypt: Stop adding -std=gnu99 to CPPFLAGS

Upstream now adds this automatically when required.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agonss: cleanup recipe to match OE style
Armin Kuster [Mon, 6 May 2019 02:19:54 +0000 (19:19 -0700)]
nss: cleanup recipe to match OE style

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agogtk-icon-cache: clean up DEPENDS
Ross Burton [Fri, 29 Mar 2019 13:29:01 +0000 (13:29 +0000)]
gtk-icon-cache: clean up DEPENDS

Use gtk+3-native instead gtk-icon-utils-native as that recipe no longer exists
and is provided by gtk+3-native for compatibility.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolicense_image: Use new oe.path.copyhardlink() helper
Paul Barker [Fri, 3 May 2019 11:54:48 +0000 (11:54 +0000)]
license_image: Use new oe.path.copyhardlink() helper

This change allows us to support the placement of WORKDIR and DEPLOY_DIR
on different devices.

Signed-off-by: Paul Barker <paul@betafive.co.uk>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agooe.path: Add copyhardlink() helper function
Paul Barker [Fri, 3 May 2019 11:54:47 +0000 (11:54 +0000)]
oe.path: Add copyhardlink() helper function

This function creates hard links if possible, falling back to copying
the file if the destination is on a different volume to the source.

The docstring for copyhardlinktree() is also updated to make the
difference between the two functions a little clearer.

Signed-off-by: Paul Barker <paul@betafive.co.uk>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agomdadm: Disable Werror
Khem Raj [Fri, 3 May 2019 06:29:26 +0000 (23:29 -0700)]
mdadm: Disable Werror

Werror spews more warnings with gcc9, like other distros (
debian/fedora) disable Warnings as errors

Fixes

super-intel.c:696:9: error: taking address of packed member of 'struct imsm_super' may result in an unaligned pointer value [-Werror=address-of-packed-member]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agowic: add global debug option
Ross Burton [Tue, 30 Apr 2019 13:57:31 +0000 (14:57 +0100)]
wic: add global debug option

Add a global --debug option to assist debugging.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agowic: change expand behaviour to match docs
Ross Burton [Tue, 30 Apr 2019 13:57:18 +0000 (14:57 +0100)]
wic: change expand behaviour to match docs

The documentation says that --expand takes a comma-separated list of
partition:size pairs, but the code was splitting on hyphens.

Hyphens are not a transitional separator for a list of items, so change the code
to reflect the documentation.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoell: add recipe
Oleksandr Kravchuk [Wed, 24 Apr 2019 05:16:20 +0000 (07:16 +0200)]
ell: add recipe

ELL has originally been part of meta-openembedded, but newer versions
of some of the oe-core components depend on it, e.g. ofono.

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agopackagegroup-core-full-cmdline: remove zlib
Ross Burton [Tue, 30 Apr 2019 09:51:48 +0000 (10:51 +0100)]
packagegroup-core-full-cmdline: remove zlib

zlib is just a library so there's no point in it being part of a 'full
commandline experience' packagegroup.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agolibsolv: update to 0.7.4
Oleksandr Kravchuk [Mon, 1 Apr 2019 22:47:15 +0000 (00:47 +0200)]
libsolv: update to 0.7.4

Removed patch has been upstreammed.

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoxorg-lib: drop native overrides for REQUIRED_DISTRO_FEATURES
Alexander Kanavin [Wed, 27 Mar 2019 17:16:27 +0000 (18:16 +0100)]
xorg-lib: drop native overrides for REQUIRED_DISTRO_FEATURES

x11 is actually always present in native DISTRO_FEATURES, and
so it's fine to require it in all cases.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agom4: update patch status
Ross Burton [Wed, 27 Mar 2019 17:06:47 +0000 (17:06 +0000)]
m4: update patch status

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoinitrdscripts: merge multiple "mkdir" calls
Max Kellermann [Thu, 7 Mar 2019 13:04:01 +0000 (14:04 +0100)]
initrdscripts: merge multiple "mkdir" calls

Reduce overhead.

Signed-off-by: Max Kellermann <max.kellermann@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agouseradd-staticids: print exception after parse_args() error
Max Kellermann [Thu, 7 Mar 2019 13:04:00 +0000 (14:04 +0100)]
useradd-staticids: print exception after parse_args() error

Without this, the user has no idea what went wrong.

Signed-off-by: Max Kellermann <max.kellermann@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agouboot-sign: Fix build when UBOOT_DTB_BINARY is empty
Alex Kiernan [Wed, 17 Apr 2019 18:31:16 +0000 (18:31 +0000)]
uboot-sign: Fix build when UBOOT_DTB_BINARY is empty

When UBOOT_DTB_BINARY is empty and because the code now changes
directory into ${B}, the test for the existence becomes `[ -f ]` which
succeeds and subsequently the install fails.

Reorder the code so it's clear that UBOOT_DTB_BINARY empty is an
expected configuration and then quote UBOOT_DTB_BINARY everywhere so
no one trips over this again.

Fixes: bacb59079eb6 ("uboot-sign: add support for different u-boot configurations")
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoopkg: fix ptest packaging when OPKGLIBDIR == libdir
Martin Jansa [Thu, 2 May 2019 13:52:22 +0000 (13:52 +0000)]
opkg: fix ptest packaging when OPKGLIBDIR == libdir

there is small issue with ptest packaging in cases where
OPKGLIBDIR is set to /usr/lib.

Then all ptest files get packaged in libopkg instead of opkg-ptest and correct QA error is triggered:
ERROR: QA Issue: /usr/lib/opkg/ptest/tests/opkgcl.py contained in package libopkg requires /usr/bin/python3, but no providers found in RDEPENDS_libopkg? [file-rdeps]

  # $FILES_libopkg
  #   set /jenkins/mjansa/build-webos-master/oe-core/meta/recipes-devtools/opkg/opkg_0.4.0.bb:62
  #     "${libdir}/*.so.* ${OPKGLIBDIR}/opkg/"
  FILES_libopkg="/usr/lib/*.so.* /usr/lib/opkg/"

  # $FILES_opkg-ptest [2 operations]
  #   set /jenkins/mjansa/build-webos-master/oe-core/meta/classes/ptest.bbclass:9
  #     "${PTEST_PATH}"
  #   rename from FILES_${PN}-ptest data.py:117 [expandKeys]
  #     "${PTEST_PATH}"
  # pre-expansion value:
  #   "${PTEST_PATH}"
  FILES_opkg-ptest="/usr/lib/opkg/ptest"

  # $PACKAGES [4 operations]
  #   set /jenkins/mjansa/build-webos-master/oe-core/meta/conf/bitbake.conf:292
  #     "${PN}-src ${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN}"
  #   set /jenkins/mjansa/build-webos-master/oe-core/meta/conf/documentation.conf:314
  #     [doc] "The list of packages to be created from the recipe."
  #   prepend /jenkins/mjansa/build-webos-master/oe-core/meta/classes/ptest.bbclass:20
  #     "${@bb.utils.contains('PTEST_ENABLED', '1', '${PN}-ptest', '', d)}"
  #   prepend /jenkins/mjansa/build-webos-master/oe-core/meta/recipes-devtools/opkg/opkg_0.4.0.bb:60
  #     "libopkg"
  # pre-expansion value:
  #   "libopkg ${@bb.utils.contains('PTEST_ENABLED', '1', '${PN}-ptest', '', d)} ${PN}-src ${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN}"
  PACKAGES="libopkg opkg-ptest opkg-src opkg-dbg opkg-staticdev opkg-dev opkg-doc opkg-locale  opkg"

The easiest fix should be to reorder PACKAGES (the _prepends) so that ${PN}-ptest is prepended later -> ends before libopkg).

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 years agoimage: call systemctl preset-all for images
Alex Kiernan [Thu, 2 May 2019 21:09:44 +0000 (22:09 +0100)]
image: call systemctl preset-all for images

Rather than rely on systemd's default invocation of preset-all at
runtime, we pre-populate the symlink tree as part of of the image. This
is done late so any overrides of presets during rootfs construction
should already have happened.

Whilst we don't strictly need this for the read-write root case, it
avoids boot time churn; for read-only root we have to do it here.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>