]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
6 years agodebianutils: update to 4.8.6
Yi Zhao [Thu, 28 Jun 2018 07:39:48 +0000 (15:39 +0800)]
debianutils: update to 4.8.6

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibbsd: update to 0.9.1
Yi Zhao [Thu, 28 Jun 2018 07:39:47 +0000 (15:39 +0800)]
libbsd: update to 0.9.1

License-Update: update COPYING file format

Drop 0001-Replace-__BEGIN_DECLS-and-__END_DECLS.patch and
0002-Remove-funopen.patch since they are already fixed upstream.

Backport 0001-flopen-Add-missing-fcntl.h-include.patch to fix build with
musl.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agofile: update to 5.33
Yi Zhao [Thu, 28 Jun 2018 07:39:46 +0000 (15:39 +0800)]
file: update to 5.33

Drop 0001-Add-P-prompt-into-Usage-info.patch since it is already fixed
upstream.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake.conf: Allow BBINCLUDED to be unset
Richard Purdie [Thu, 28 Jun 2018 11:25:12 +0000 (12:25 +0100)]
bitbake.conf: Allow BBINCLUDED to be unset

For some reason the layer index is expanding HOSTTOOLS before BBINCLUDED is
set so recent changes break it. This adds in a simple workaround to stop it b
reaking allowing the index to function correctly again.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomaintainers.inc: recipes cleanup
Yi Zhao [Thu, 28 Jun 2018 02:52:27 +0000 (10:52 +0800)]
maintainers.inc: recipes cleanup

Cleanup the recipes which had been removed from oe-core.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake.conf: handle cmake -dev files packaging with default rules
Andre McCurdy [Tue, 26 Jun 2018 19:48:11 +0000 (12:48 -0700)]
bitbake.conf: handle cmake -dev files packaging with default rules

Move packaging rules for cmake -dev files from cmake.bbclass into
bitbake.conf to handle recipes (e.g. harfbuzz 1.8.1) which build with
autotools but also install cmake -dev files.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglib: remove unnecessary dependency to DISTRO_FEATURES
Samuli Piippo [Tue, 26 Jun 2018 07:59:51 +0000 (10:59 +0300)]
glib: remove unnecessary dependency to DISTRO_FEATURES

Since DISTRO_FEATURES was expanded in the comments, it created
task dependency to the full content of DISTRO_FEATURES, instead
of just the x11 used below. This prevented reuse of sstate-cache
when unrelated feature flags were changed.

Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoarch-armv7a.inc: default to Thumb2 instruction set for armv7a and above
Andre McCurdy [Fri, 18 May 2018 22:50:40 +0000 (15:50 -0700)]
arch-armv7a.inc: default to Thumb2 instruction set for armv7a and above

Although there may still be specific cases which can benefit from the
ARM instruction set, the Thumb2 instruction set is generally a better
default for armv7a class CPUs. Distros such as Debian and Fedora have
been targeting Thumb2 by default for some time.

Note that setting ARM_INSTRUCTION_SET has no effect unless
TUNE_FEATURES contains "thumb" (which is controlled by the "t" suffix
in DEFAULTTUNE, e.g. armv7vehf-neon -vs- armv7vethf-neon, etc) so out
of tree machine configs may need to update their DEFAULTTUNE to take
advantage of this change.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoinsane.bbclass: Don't let warnings make previous errors non-fatal
Olof Johansson [Mon, 25 Jun 2018 11:34:46 +0000 (13:34 +0200)]
insane.bbclass: Don't let warnings make previous errors non-fatal

package_qa_handle_error() returns True on non-fatal issues and False on
fatal issues. But the current usage has been to do

  sane = package_qa_handle_error(...)

which would always reset sanity status to be that of the last issue
identified. This change the assignments to use the &= operator instead:

  sane &= package_qa_handle_error(...)

As far as I can tell, this is not a real problem in practice, because
warnings of different levels (WARN_QA, ERROR_QA) does not seem to have
been mixed in a way that triggered this issue.

Signed-off-by: Olof Johansson <olofjn@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoinsane.bbclass: Make missing license file fatal
Olof Johansson [Mon, 25 Jun 2018 11:34:45 +0000 (13:34 +0200)]
insane.bbclass: Make missing license file fatal

If a license file referenced from LIC_FILES_CHKSUM doesn't exist,
insane.bbclass would output an error message, but would continue the
build. This change makes this error fatal (as I suspect has been the
intention).

Signed-off-by: Olof Johansson <olofjn@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglibc: fix CVE-2018-11237
Zheng Ruoqin [Tue, 26 Jun 2018 05:44:17 +0000 (13:44 +0800)]
glibc: fix CVE-2018-11237

glibc: fix CVE-2018-11237

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogcc-8: define GLIBC_DYNAMIC_LINKER relative to SYSTEMLIBS_DIR on riscv
Ricardo Salveti [Tue, 26 Jun 2018 01:01:05 +0000 (22:01 -0300)]
gcc-8: define GLIBC_DYNAMIC_LINKER relative to SYSTEMLIBS_DIR on riscv

Refresh 0014-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch
to also define GLIBC_DYNAMIC_LINKER relative to SYSTEMLIBS_DIR on riscv.

Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomaintainers: assign systemtap to Victor Kanensky
Ross Burton [Tue, 26 Jun 2018 11:44:30 +0000 (12:44 +0100)]
maintainers: assign systemtap to Victor Kanensky

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agokernel: Set SOURCE_DATE_EPOCH to kernel git timestamp if not set
Alex Kiernan [Tue, 26 Jun 2018 12:08:56 +0000 (12:08 +0000)]
kernel: Set SOURCE_DATE_EPOCH to kernel git timestamp if not set

If SOURCE_DATE_EPOCH is unset (in addition to the existing "0" behaviour)
parse out the top most commit timestamp from the kernel tree to use as the
timestamp.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoimage: Set COREBASE as the git directory for timestamp
Alex Kiernan [Tue, 26 Jun 2018 12:08:55 +0000 (12:08 +0000)]
image: Set COREBASE as the git directory for timestamp

When REPRODUCIBLE_TIMESTAMP_ROOTFS is unset and we want to parse one
from git, use COREBASE as the base for the git command so we have a
known repository which we're using. Without this the build may fail
if the current directory is not part of a git repository.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodb: drop legacy ARM specific SWP based mutex optimisation
Andre McCurdy [Tue, 26 Jun 2018 20:24:55 +0000 (13:24 -0700)]
db: drop legacy ARM specific SWP based mutex optimisation

Although the ARM SWP instruction may exist for ARMv6 and above, it's
not guaranteed to work, especially on SMP systems where it's use may
lead to instability at runtime, etc:

  https://community.arm.com/processors/b/blog/posts/locks-swps-and-two-smoking-barriers

Keeping the optimisation for architecture levels which pre-date SMP
(ie <= ARMv5) may be safe, however other distros (Buildroot, Debian,
Fedora, etc) are not doing so and mutex contention is likely to be
less of an issue on uniprocessor systems anyway, so the benefits of
this micro optimisations are not clear. Since OE uses ARMv5 qemu as
a proxy for testing all 32bit ARM architecture levels, it's desirable
to keep the ARMv5 builds aligned with later ARM architecture levels
wherever possible.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomdadm: fix one more issue when building with gcc8
Martin Jansa [Fri, 22 Jun 2018 00:27:56 +0000 (00:27 +0000)]
mdadm: fix one more issue when building with gcc8

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosystemd: escape paths passed to shell
Damien Riegel [Fri, 22 Jun 2018 18:43:02 +0000 (14:43 -0400)]
systemd: escape paths passed to shell

Systemd mount configuration file must have a name that match the mount
point directory they control. So for instance, if a mount file contains

    [Mount]
    ...
    Where=/mnt/my-data

The file must be named `mnt-my\x2ddata.mount`, or systemd will refuse to
honour it.

If this config file contains an [Install] section, it will silently fail
because the unit file is not escaped properly when systemctl is called.
To fix that, make sure paths are escaped through `shlex.quote`.

Signed-off-by: Damien Riegel <damien.riegel@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoutil-linux: Enable unshare utility
Otavio Salvador [Fri, 22 Jun 2018 18:29:31 +0000 (15:29 -0300)]
util-linux: Enable unshare utility

It allows to run program with some namespaces unshared from parent.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agonss: update to 3.37.1
Armin Kuster [Mon, 25 Jun 2018 02:33:33 +0000 (19:33 -0700)]
nss: update to 3.37.1

remove Fix-compilation-for-X32.patch as a solution simular is included in update.

notable changes:
The TLS 1.3 implementation was updated to Draft 28.
The CA certificates list was updated to version 2.24.

refresh patches
fix 32 bit build error nss bug: https://bugzilla.mozilla.org/show_bug.cgi?format=default&id=1459739

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agofindutils: Refresh patches with devtool
Khem Raj [Sun, 24 Jun 2018 19:09:06 +0000 (12:09 -0700)]
findutils: Refresh patches with devtool

We get fuzz warnings when applying these patches and devtool
reports it

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoupdate-rc.d: Add nativesdk
Zheng Ruoqin [Sat, 23 Jun 2018 19:52:59 +0000 (03:52 +0800)]
update-rc.d: Add nativesdk

Add nativesdk for update-rc.d.

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocreaterepo-c: Add nativesdk
Zheng Ruoqin [Sat, 23 Jun 2018 19:52:58 +0000 (03:52 +0800)]
createrepo-c: Add nativesdk

Add nativesdk for createrepo-c.

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibnewt-python: Add nativesdk
Zheng Ruoqin [Sat, 23 Jun 2018 19:52:56 +0000 (03:52 +0800)]
libnewt-python: Add nativesdk

Add nativesdk for libnewt-python.

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibnewt: Add nativesdk
Zheng Ruoqin [Sat, 23 Jun 2018 19:52:55 +0000 (03:52 +0800)]
libnewt: Add nativesdk

Add nativesdk for libnewt.

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoslang: add nativesdk
Zheng Ruoqin [Sat, 23 Jun 2018 19:52:54 +0000 (03:52 +0800)]
slang: add nativesdk

Add nativesdk for slang.

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agorng-tools: start earlier in the boot process
Christopher Larson [Thu, 21 Jun 2018 21:08:06 +0000 (02:08 +0500)]
rng-tools: start earlier in the boot process

Entropy is needed earlier in the boot process in some cases, for example
connman can require it, and rgd doesn't require much, so move it earlier
in the boot process, 03 for sysvinit, and before sysinit for systemd.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agorng-tools: drop unnecessary INHIBIT_UPDATERCD_BBCLASS
Christopher Larson [Thu, 21 Jun 2018 21:08:05 +0000 (02:08 +0500)]
rng-tools: drop unnecessary INHIBIT_UPDATERCD_BBCLASS

This was added as the recipe didn't inherit systemd, but it does inherit
systemd now.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodmidecode: correct docdir
Christopher Larson [Thu, 21 Jun 2018 21:07:35 +0000 (02:07 +0500)]
dmidecode: correct docdir

Without this, the package clutters up the root of /usr/share/doc.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoovmf: set PARALLEL_MAKE for target as well
Christopher Larson [Thu, 21 Jun 2018 21:07:34 +0000 (02:07 +0500)]
ovmf: set PARALLEL_MAKE for target as well

This can fail for target, not just native.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoconsole-tools: add missing flex/bison deps
Christopher Larson [Thu, 21 Jun 2018 21:07:33 +0000 (02:07 +0500)]
console-tools: add missing flex/bison deps

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopcmciautils: depend on bison-native
Christopher Larson [Thu, 21 Jun 2018 21:07:32 +0000 (02:07 +0500)]
pcmciautils: depend on bison-native

pcmciautils needs yacc as well as lex.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooe.scriptutils.run_editor: ditch the error-prone argument quoting
Christopher Larson [Thu, 21 Jun 2018 21:07:31 +0000 (02:07 +0500)]
oe.scriptutils.run_editor: ditch the error-prone argument quoting

Rather than trying to construct a string by quoting the files in an
error-prone way, parse $EDITOR to pass a list to subprocess rather than
a string.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa: add Git mirror test
Ross Burton [Thu, 21 Jun 2018 16:15:28 +0000 (17:15 +0100)]
oeqa: add Git mirror test

Add an automated test to exercise that fetching a git: recipe...
1) works over git without mirrors
2) fails without git connectivity or mirrors
3) works without git connectivity but with a mirror

(2) is done by setting GIT_PROXY_COMMAND to 'false' which should break any git
network operations.

[ YOCTO #12805 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agocryptodev: Fix build errors with v4.17+
He Zhe [Thu, 21 Jun 2018 11:08:45 +0000 (04:08 -0700)]
cryptodev: Fix build errors with v4.17+

Backport from upstream to update internal syscall function usage.
https://github.com/cryptodev-linux/cryptodev-linux
f60aa08c63fc02780554a0a12180a478ca27d49f

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopiglit: upgrade to latest revision
Maxin B. John [Thu, 21 Jun 2018 09:23:25 +0000 (12:23 +0300)]
piglit: upgrade to latest revision

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoavahi: fix error at boot time for avahi-daemon.service
Chen Qi [Thu, 21 Jun 2018 06:00:23 +0000 (14:00 +0800)]
avahi: fix error at boot time for avahi-daemon.service

The following error messages appear now and then at boot time.

  avahi-daemon/chroot.c: open() failed: No such file or directory
  Failed to open /etc/resolv.conf: Invalid argument

The problem is about /etc/resolv.conf. In Yocto's systemd based
systems, it's a symlink to /etc/resolv-conf.systemd which in turn
is a symlink to /run/systemd/resolve/resolv.conf. The systemd-resolved
service handles creation of /run/systemd/resolve/resolv.conf file.

So if avahi-daemon is started before systemd-resolved, the error messages
appear.

Fix this problem by making avahi-daemon start after systemd-resolved.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoavahi: reorganize codes
Chen Qi [Thu, 21 Jun 2018 06:00:22 +0000 (14:00 +0800)]
avahi: reorganize codes

This patch does nothing but reorganizing codes.

avahi.inc is shared by avahi and avahi-ui recipes. Move common things
into it, and move uncommon things out of it.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agolibepoxy: upgrade 1.5.0 -> 1.5.2
Maxin B. John [Wed, 20 Jun 2018 14:07:21 +0000 (17:07 +0300)]
libepoxy: upgrade 1.5.0 -> 1.5.2

Remove upstreamed patch:
        no-tests.patch

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoofono: upgrade 1.23 -> 1.24
Maxin B. John [Wed, 20 Jun 2018 14:07:18 +0000 (17:07 +0300)]
ofono: upgrade 1.23 -> 1.24

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoiproute2: upgrade to release 4.17
Anders Roxell [Wed, 20 Jun 2018 07:16:57 +0000 (09:16 +0200)]
iproute2: upgrade to release 4.17

Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agonss: Fix build error for aarch64be.
Lei Maohui [Sun, 10 Jun 2018 22:23:35 +0000 (15:23 -0700)]
nss: Fix build error for aarch64be.

Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agomtd-utils: upgrade 2.0.1 -> 2.0.2
Denys Dmytriyenko [Mon, 21 May 2018 23:17:43 +0000 (19:17 -0400)]
mtd-utils: upgrade 2.0.1 -> 2.0.2

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agosystemd: remove the group 'lock'
Hannu Lounento [Fri, 25 May 2018 06:50:24 +0000 (06:50 +0000)]
systemd: remove the group 'lock'

The upstream commit 61f32bff6130a44d077886d38cff89ad161bf177 included in
the release v229 removed the use of the group:

    commit 61f32bff6130a44d077886d38cff89ad161bf177
    Author: Martin Pitt <martin.pitt@ubuntu.com>
    Date:   Mon Feb 1 12:09:34 2016 +0100

        tmpfiles: drop /run/lock/lockdev

        Hardly any software uses that any more, and better locking mechanisms like
        flock() have been available for many years.

        Also drop the corresponding "lock" group from sysusers.d/basic.conf.in, as
        nothing else is using this.

    [...]
    diff --git a/sysusers.d/basic.conf.in b/sysusers.d/basic.conf.in
    index 823d6cb20..b2dc5ebd4 100644
    --- a/sysusers.d/basic.conf.in
    +++ b/sysusers.d/basic.conf.in
    @@ -19,7 +19,6 @@ g wheel   -     -            -

     # Access to certain kernel and userspace facilities
     g kmem    -     -            -
    -g lock    -     -            -
     g tty     @TTY_GID@     -            -
     g utmp    -     -            -
    [...]

The upstream documentation doc/UIDS-GIDS.md says that basic.conf.in is "the
precise list of the currently defined groups":

    ## Special `systemd` GIDs

    `systemd` defines no special UIDs beyond what Linux already defines (see
    above). However, it does define some special group/GID assignments, which are
    primarily used for `systemd-udevd`'s device management. The precise list of the
    currently defined groups is found in this `sysusers.d` snippet:
    [basic.conf](https://raw.githubusercontent.com/systemd/systemd/master/sysusers.d/basic.conf.in)

    It's strongly recommended that downstream distributions include these groups in
    their default group databases.

Removing the creation of the group also avoids the need to define a GID
for it when using static ids.

Signed-off-by: Hannu Lounento <hannu.lounento@vaisala.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopackagegroup-full-cmdline: remove popt
Ross Burton [Mon, 18 Jun 2018 16:09:55 +0000 (17:09 +0100)]
packagegroup-full-cmdline: remove popt

popt is a library, so it makes no sense for this to be in a "command line"
packagegroup.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agolsbinitscripts: remove spurious build dependencies
Ross Burton [Mon, 18 Jun 2018 16:08:58 +0000 (17:08 +0100)]
lsbinitscripts: remove spurious build dependencies

A recipe that doesn't configure, doesn't compile, and just ships a single shell
script certainly does not need to build depend on popt and glib-2.0.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agominicom: change SRC_URI to use Debian mirrors
Ross Burton [Fri, 15 Jun 2018 14:43:07 +0000 (15:43 +0100)]
minicom: change SRC_URI to use Debian mirrors

Alioth is dead and the minicom project on Salsa (the replacement for Alioth)
doesn't actually have any files in, so just use the Debian mirror instead.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agomirrors: add Debian snapshot mirror for 2018
Ross Burton [Fri, 15 Jun 2018 14:36:02 +0000 (15:36 +0100)]
mirrors: add Debian snapshot mirror for 2018

Add a Debian snapshot mirror from 2018 (specifically, 10th March, the date 9.4
was released) to DEBIAN_MIRRORS.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoshadow: update SRC_URI now Alioth is down
Ross Burton [Fri, 15 Jun 2018 13:29:31 +0000 (14:29 +0100)]
shadow: update SRC_URI now Alioth is down

Alioth is dead so we can't use it for SRC_URI anymore.  There is a shadow
repository on GitHub which is the new upstream, but for some reason it is
missing the 4.2.1 tag and tarball that we use.  Also 4.2.1 was never uploaded
into Debian itself, so we can't use their mirror network either.

For now point SRC_URI at the Yocto Project source mirror and set
UPSTREAM_CHECK_URI so that we get nagged to upgrade to 4.6.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agochrpath: Alioth is dead, use DEBIAN_MIRROR
Ross Burton [Fri, 15 Jun 2018 13:07:41 +0000 (14:07 +0100)]
chrpath: Alioth is dead, use DEBIAN_MIRROR

The previous host of chrpath, Alioth, is dead.  chrpath hasn't yet moved to
Salsa, so download the tarball from the Debian mirrors.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoiso-codes: update to 3.79 and fix SRC_URI
Oleksandr Kravchuk [Tue, 5 Jun 2018 16:06:43 +0000 (18:06 +0200)]
iso-codes: update to 3.79 and fix SRC_URI

Updated package to version 3.79.

The original FTP server, alioth.debian.org has been permanently taken
down by the Debian Project and replaced with salsa.debian.org.

Source: https://wiki.debian.org/Alioth

Also added HOMEPAGE, and BUGTRACKER.

[ tweak URL to work with checkpkg - RB ]

Signed-off-by: Oleksandr Kravchuk <dev@sashko.rv.ua>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoatk: Correct multilib conflict in header.
Jeremy Puhlman [Thu, 14 Jun 2018 18:25:04 +0000 (11:25 -0700)]
atk: Correct multilib conflict in header.

Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoqemu: CVE-2018-11806 slirp heap buffer overflow
Jeremy Puhlman [Thu, 14 Jun 2018 15:06:46 +0000 (08:06 -0700)]
qemu: CVE-2018-11806 slirp heap buffer overflow

Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agotrace-cmd: remove
Ross Burton [Thu, 14 Jun 2018 13:31:08 +0000 (14:31 +0100)]
trace-cmd: remove

Perf is superior in most ways and is preferred.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agolibunistring: upgrade to 0.9.10
Maxin B. John [Tue, 12 Jun 2018 11:18:10 +0000 (14:18 +0300)]
libunistring: upgrade to 0.9.10

License-Update: Checksum changed due to updation in documentation. There
are no changes in the license terms.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agomaintainers: Assign ownership of newlib and libgloss to Alejandro Hernandez
Alejandro Enedino Hernandez Samaniego [Tue, 26 Jun 2018 22:50:41 +0000 (15:50 -0700)]
maintainers: Assign ownership of newlib and libgloss to Alejandro Hernandez

Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogcc-8: Enable fp arch extention when fpu is available
Khem Raj [Thu, 21 Jun 2018 01:26:07 +0000 (18:26 -0700)]
gcc-8: Enable fp arch extention when fpu is available

This is especially needed when defaulting to hard-float ABI
Fixes errors e.g.
cc1: error: -mfloat-abi=hard: selected processor lacks an FPU

Fixes [YOCTO #12795]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooe/types: Allow boolean to accept an existing boolean
Richard Purdie [Wed, 20 Jun 2018 23:14:31 +0000 (00:14 +0100)]
oe/types: Allow boolean to accept an existing boolean

Exception: TypeError: boolean accepts a string, not '<class 'bool'>

is a bit annoying if you pass in True/False. Tweak the function
to make it forgive that situation.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomaintainers: update Intel owners
Ross Burton [Wed, 20 Jun 2018 11:42:52 +0000 (12:42 +0100)]
maintainers: update Intel owners

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomesa: add lost Upstream-Status
Ross Burton [Wed, 20 Jun 2018 11:26:42 +0000 (12:26 +0100)]
mesa: add lost Upstream-Status

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake.conf/testimage: Add in compatiblity hacks
Richard Purdie [Wed, 20 Jun 2018 09:30:24 +0000 (10:30 +0100)]
bitbake.conf/testimage: Add in compatiblity hacks

The testimage changes break the autobuilder. The plan is to revert these hacks
but due to various changes happening with the autobuilder, we need these for now
to keep things working until we can move to the new autobuilder codebase.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosubversion: Update HOMEPAGE
Richard Purdie [Tue, 19 Jun 2018 15:26:49 +0000 (16:26 +0100)]
subversion: Update HOMEPAGE

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomktemp: remove
Ross Burton [Mon, 18 Jun 2018 15:48:33 +0000 (16:48 +0100)]
mktemp: remove

Both busybox and coreutils provide mktemp, and the only difference between those
(and standalone mktemp) is that coreutils supports --suffix.

Also mktemp.org has disappeared, so it's fair to assume that the standalone
mktemp (last released in 2010) is dead.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomesa: Update 18.1.1 -> 18.1.2
Otavio Salvador [Mon, 18 Jun 2018 19:14:47 +0000 (16:14 -0300)]
mesa: Update 18.1.1 -> 18.1.2

This includes bug fixes for 18.1.x series. For list of changes check:

https://www.mesa3d.org/relnotes/18.1.2.html

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-firmware: upgrade to d114732 revision
Otavio Salvador [Mon, 18 Jun 2018 19:14:46 +0000 (16:14 -0300)]
linux-firmware: upgrade to d114732 revision

Following changes are applied:

d114732 Merge branch 'for-upstreaming-v1.7.2-vsw' of https://github.com/felix-cavium/linux-firmware
fe4a9d4 brcm: update firmware for bcm4356 pcie
a292181 brcm: update firmware for bcm4354 sdio
be1c535 brcm: update firmware for bcm43362 sdio
5ac5ad5 brcm: update firmware for bcm43340 sdio
ec734a3 brcm: update firmware for bcm43430 sdio
ba51e86 Update Cypress license termination clause
1fa9ce3 amdgpu: update vega10 VCE firmware to version 55.3
9489f55 linux-firmware: Update firmware patch for Intel Bluetooth 7265 (D0)
6be4747 linux-firmware:Update firmware patch for Intel Bluetooth 7265 (D1)
4949d88 Merge branch 'master' of https://github.com/vgarodia/linux-firmware
7602644 qcom: add venus firmware files for v5.2
7518922 Update AMD cpu microcode for family 15h
3f8243c linux-firmware: Update firmware patch for Intel Bluetooth 8260
2c4f7c1 qed: Add firmware 8.37.2.0
0e193ca linux-firmware: liquidio: update vswitch firmware to v1.7.2
2a9b2cf Merge branch 'for-upstreaming-v1.7.2' of https://github.com/felix-cavium/linux-firmware
112d300 linux-firmware: Update firmware file for Intel Bluetooth,8265
629a5e0 linux-firmware: Update firmware patch for Intel Bluetooth 7260 (B5/B6)
7035335 linux-firmware: Update firmware patch for Intel Bluetooth 7260 (B3/B4)
c84bd66 linux-firmware: Update firmware file for Intel Bluetooth,9260
897330f linux-firmware:Update firmware patch for Intel Bluetooth 7265 (D1)
e94352c linux-firmware: Update firmware file for Intel Bluetooth,9560
7710151 linux-firmware: Update AMD cpu microcode
be1e8c5 Merge commit 'a6327c5a5f74c3d11da76d0dcb51c6f5db7f8a35' of https://github.com/Netronome/linux-firmware
86d39f8 amdgpu: sync up polaris12 firmware with 18.10 release
b5320a9 amdgpu: sync up polaris11 firmware with 18.10 release
152c924 amdgpu: sync up polaris10 firmware with 18.10 release
0d672f7 amdgpu: sync up vega10 firmware with 18.10 release
30447b1 amdgpu: sync up carrizo firmware with 18.10 release
dd6f936 amdgpu: sync up topaz firmware with 18.10 release
de9c175 amdgpu: sync up stoney firmware with 18.10 release
5e22609 amdgpu: sync up tonga firmware with 18.10 release
499042e amdgpu: sync up fiji firmware with 18.10 release
1db3eec amdgpu: sync up raven firmware with 18.10 release
a6327c5 nfp: Add symlink for Agilio CX 1x40GbE flower firmware
8b78780 nfp: update Agilio SmartNIC flower firmware to rev AOTC-2.9.A.16
d3b6941 linux-firmware: liquidio: update firmware to v1.7.2

License-Update: copyright years updated and filelist updated.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agofindutils: make -delete honour the -ignore_readdir_race option
Zhixiong Chi [Tue, 19 Jun 2018 10:24:18 +0000 (03:24 -0700)]
findutils: make -delete honour the -ignore_readdir_race option

the '-delete' action no longer complains about disappeared files
when the '-ignore_readdir_race' option is given, too. That action
will also returns true in such a case now.

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoxkbcomp: update to 1.4.2
Armin Kuster [Tue, 19 Jun 2018 04:10:10 +0000 (21:10 -0700)]
xkbcomp: update to 1.4.2

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoxf86-video-vmware: update to 13.3.0
Armin Kuster [Tue, 19 Jun 2018 04:10:09 +0000 (21:10 -0700)]
xf86-video-vmware: update to 13.3.0

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoxf86-input-evdev: update 2.10.6
Armin Kuster [Tue, 19 Jun 2018 04:10:08 +0000 (21:10 -0700)]
xf86-input-evdev: update 2.10.6

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoxkeyboard-config: update to 2.24
Armin Kuster [Tue, 19 Jun 2018 04:10:06 +0000 (21:10 -0700)]
xkeyboard-config: update to 2.24

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosubversion: 1.9.7 -> 1.10.0
Richard Purdie [Tue, 19 Jun 2018 12:00:37 +0000 (12:00 +0000)]
subversion: 1.9.7 -> 1.10.0

License changed since licenses for the bundled linenoise and lz4 codebases
were added. We don't build either of them. Add MIT since utf8proc is MIT
licensed.

Configure to use the internal utf8proc codebase since we have no copy of that in
OE-Core, nor any need to add one.

Add a dependency on lz4 which is now required rather than using the internal
codebase within subversion.

Drop a patch merged upstream.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolttng-modules: upgrade 2.10.5 -> 2.10.6
Richard Purdie [Sat, 16 Jun 2018 13:33:10 +0000 (06:33 -0700)]
lttng-modules: upgrade 2.10.5 -> 2.10.6

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoimage/testimage: Rework auto image test execution
Richard Purdie [Mon, 18 Jun 2018 11:33:12 +0000 (11:33 +0000)]
image/testimage: Rework auto image test execution

The TEST_IMAGE interface has never particularly worked and image testing currently
gets configured manually.

This reworks the interface to better serve the needs of its users, replacing it
with TESTIMAGE_AUTO.

This does away with the need for the separate class due to better bitbake APIs for
changing tasks.

TESTIMAGE_AUTO will automatically boot under qemu any image that is built. It
also adds in dependencies so that any SDK for which testing is requested will
automatically be built first.

The code in bitbake.conf was error prone (e.g. testsdk wasn't considered), this
improves it to standardise on IMAGE_CLASSES as the standard configuration mechanism.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoimage/image-live: Improve handling of live/iso/hddimg types (drop NOISO/NOHDD)
Richard Purdie [Mon, 18 Jun 2018 11:04:59 +0000 (11:04 +0000)]
image/image-live: Improve handling of live/iso/hddimg types (drop NOISO/NOHDD)

The logic can be improved and the historical NOISO/NOHDD variables
moved into the class and out of common code.

The variables are also then removed in favour of directly controlling
the behaviour from IMAGE_FSTYPES in line with all the other image types.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoimage: Combine all the class handling code into a single section
Richard Purdie [Mon, 18 Jun 2018 10:45:02 +0000 (10:45 +0000)]
image: Combine all the class handling code into a single section

Right now the code handling class inherits is spread all over and
its hard to get an idea of what is happening overall. Combine all
the code together to make it clearer. There shoould be no functionality
changes.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agorm_work: Simplify looping code
Richard Purdie [Tue, 19 Jun 2018 10:29:26 +0000 (11:29 +0100)]
rm_work: Simplify looping code

The current looping structure is confusing, simplify it a bit
to improve readability. Should be no functionality changes.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agorm_work: Improve code comments
Richard Purdie [Tue, 19 Jun 2018 10:23:42 +0000 (11:23 +0100)]
rm_work: Improve code comments

This function is a little obtuse, add more comments about what its
doing and why. Also combine some of the statements where possible
to improve clarity.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agorm_work: The do_setscene task has not existed for years
Richard Purdie [Tue, 19 Jun 2018 10:15:07 +0000 (11:15 +0100)]
rm_work: The do_setscene task has not existed for years

Once, there were do_setscene tasks but this hasn't been the case for years,
drop the old code.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agorm_work: Stop appending _setscene to do_image_complete_setscene stamps
Richard Purdie [Tue, 19 Jun 2018 10:12:23 +0000 (11:12 +0100)]
rm_work: Stop appending _setscene to do_image_complete_setscene stamps

This is a reworked version of the issue which 5479654eeaaa0f81bfff54ca49369c87f1658705
attempted to fix.

"""
Each time I build my image after the first, I end up with a
do_image_complete_setscene stamp file with an extra _setscene appended to
the name. Eventually, the filenames end up being so long that mv complains
and the build fails.

It looks like this behaviour was introduced when the special handling was
added for do_image_complete in 2ff9d40dc88d43567472218cf3d3faf414398c71.
"""

Instead of the original approach which broke do_package_setscene, add
an entry to explictly stop the stacking _setscene pieces on do_image_complete.

It's not straightforward to just move *do_image_complete* after the
*_setscene* pattern because do_image_complete stamps would then match
do_image*.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoRevert "rm_work: Stop appending _setscene to do_image_complete_setscene stamps"
Richard Purdie [Tue, 19 Jun 2018 10:07:43 +0000 (11:07 +0100)]
Revert "rm_work: Stop appending _setscene to do_image_complete_setscene stamps"

Whilst this fixes the do_image_complete_setscene append problem, it creates a
new problem since the code can no longer reach the *do_package_setscene.*
code block below it. This breaks builds as per [YOCTO #12765]. Revert this
change in search of a better fix.

This reverts commit 5479654eeaaa0f81bfff54ca49369c87f1658705.

6 years agoxf86-video-intel: update dependencies for the tools
Ross Burton [Mon, 18 Jun 2018 10:10:44 +0000 (11:10 +0100)]
xf86-video-intel: update dependencies for the tools

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoxf86-video-intel: disable DRI 1, enable DRI 3
Ross Burton [Mon, 18 Jun 2018 10:10:43 +0000 (11:10 +0100)]
xf86-video-intel: disable DRI 1, enable DRI 3

DRI 1 is only needed for UMS on i810[1], and modern X servers (1.20 onwards)
don't support DRI 1, so disable DRI 1.

However, DRI 3 isn't new and unreliable anymore, so enable support for it.

Also, now that the *proto packages are all part of xorgproto which is a required
DEPENDS, we don't need to mention it over and over.

[1] https://cgit.freedesktop.org/xorg/driver/xf86-video-intel/commit/?id=359477215092ac1b602ad1e2f17a28963d9224c2

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoxf86-video-intel: patch cleanup
Ross Burton [Mon, 18 Jun 2018 10:10:42 +0000 (11:10 +0100)]
xf86-video-intel: patch cleanup

always_include_xorg_server.h.patch is merged upstream, so drop it.

disable-x11-dri3.patch was purely to solve determinism issues with the shared sysroot, which
we don't have anymore.

Also remove redundant tarball checksums as this recipe fetches from git.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoxf86-video-omapfb: remove
Ross Burton [Mon, 18 Jun 2018 10:05:46 +0000 (11:05 +0100)]
xf86-video-omapfb: remove

We were shipping the Debian fork of the original code, but that has disappeared
now that Alioth is down.  The driver didn't provide anything better than the
kernel and xserver's modesetting driver, so remove it.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoxf86-video-omap: remove
Ross Burton [Mon, 18 Jun 2018 10:05:38 +0000 (11:05 +0100)]
xf86-video-omap: remove

This driver is dead upstream and doesn't appear to provide any advantage over
upstream kernel drivers and xserver's modesetting support.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomusl: Upgrade to latest
Khem Raj [Sun, 17 Jun 2018 07:58:57 +0000 (00:58 -0700)]
musl: Upgrade to latest

Changelog:
https://git.musl-libc.org/cgit/musl/log/?qt=range&q=941bd884cc0221d051840ce6d21650339e711863..d5e55ba3320c30310ca1d8938925d5424a652422

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomesa: Update 18.0.2 -> 18.1.1
Otavio Salvador [Wed, 6 Jun 2018 13:45:48 +0000 (10:45 -0300)]
mesa: Update 18.0.2 -> 18.1.1

This includes all bugfixes of 18.0.x series and major new
features. For list of changes check:

https://www.mesa3d.org/relnotes/18.1.0.html
https://www.mesa3d.org/relnotes/18.1.1.html

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agorunqemu-ifdown: ensure to clean up TAP
Chen Qi [Thu, 7 Jun 2018 07:52:47 +0000 (15:52 +0800)]
runqemu-ifdown: ensure to clean up TAP

In runqemu-ifup, ip command is used to add TAP; in runqemu-ifdown,
we should do the reversed logic, using ip command to delete TAP, to
make sure TAP is cleaned up by ourselves.

I can see that in runqemu-ifdown script, 'tunctl -d' and 'iptables'
commands are used to deal with TAP, but these two commands cannot
make sure that the TAP is cleaned up.

runqemu-ifup uses 'ip' to set up TAP, we really need to do the opposite
in runqemu-ifdown.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agorunqemu: add SIGTERM handler to make sure things are cleaned up
Chen Qi [Thu, 7 Jun 2018 07:52:46 +0000 (15:52 +0800)]
runqemu: add SIGTERM handler to make sure things are cleaned up

Add SIGTERM handler so that runqemu could clean things up correctly
when receving such signal.

This problem was originally observed when running testimage. On
some hosts, after running testimage task, the user has to manually
operate on the tap interface (e.g. `sudo ip link del tap0') in order
for the next runqemu command to launch successfully.

The problem is about runqemu, SIGTERM and network manager on the host.

In testimage task, the runqemu process will receive SIGTERM. In such
situation, its cleanup() function is not run, resulting in tap interface
not cleaned up. On some hosts, the network manager will bring down the
tap interface automatically, thus this problem. I saw this problem on
Fedora21.

I think we'd better just clean up the tap interface ourselves.

So this patch adds to runqemu a SIGTERM handler, in which the actual
qemu process is terminated and other things cleaned up.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake-layers/create: add LAYERSERIES_COMPAT
Anuj Mittal [Mon, 11 Jun 2018 08:29:01 +0000 (16:29 +0800)]
bitbake-layers/create: add LAYERSERIES_COMPAT

Derive the value for template layer.conf from core layer and add
dependendency on it too.

Fixes [YOCTO #12767]

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopackage_manager.py: rework postinst_intercept failures
Alexander Kanavin [Mon, 11 Jun 2018 13:38:22 +0000 (16:38 +0300)]
package_manager.py: rework postinst_intercept failures

Previously a warning was printed regardless of context and nature
of the failure, and because it was only a warning, it was mostly ignored.

Now, the following is considered when a failure happens:
1) whether we are installing packages into a target image, or populating
a SDK with host or target packages.
2) whether the failure was due to qemu not supporting the target machine.

Accordingly, warnings, notes, and failures are printed, and postponing
to first boot happens if possible.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoimage.bbclass, populate_sdk_base.bbclass: make all variants of qemuwrapper-cross...
Alexander Kanavin [Mon, 11 Jun 2018 13:38:21 +0000 (16:38 +0300)]
image.bbclass, populate_sdk_base.bbclass: make all variants of qemuwrapper-cross available in sysroots

The variants are needed in particular when executing postinst_intercepts as
those may require running binaries built for different architectures and
against different sets of library paths, when multilib is in use (or nativesdk host
packages are installed), so a single global variant of the script was not working.

I do understand expanding PATH and DEPENDS in this manner is hackish, however
every other approach I could think of is worse.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoqemuwrapper-cross: enable multilib and nativesdk variants of the script
Alexander Kanavin [Mon, 11 Jun 2018 13:38:20 +0000 (16:38 +0300)]
qemuwrapper-cross: enable multilib and nativesdk variants of the script

Previously only one global variant of the script was created,
which caused numerous issues:

1) multilib was not properly supported due to multilib variants each
needing their own version of the qemu binary and library paths to be set
2) nativesdk was not properly supported for the same reason

This patch also moves setting LD_LIBRARY_PATH directly into the
recipe, as passing it down from other recipes did not work when
said recipes were allarch, and adjusts calls to qemuwrapper from
postinst-intercepts, so that its correct variant is selected.

Also, the various qemu fallbacks in qemuwrapper script are all removed,
as they are no longer necessary.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoudev: only run qemu from postinst scripts if qemu usermode is supported
Alexander Kanavin [Mon, 11 Jun 2018 13:38:19 +0000 (16:38 +0300)]
udev: only run qemu from postinst scripts if qemu usermode is supported

Otherwise, there would be a failure at image creation time; avoid
that by postponing to first boot explicitly.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogtk-immodules-cache.bbclass: convert cache creation to postinst_intercept mechanism
Alexander Kanavin [Mon, 11 Jun 2018 13:38:17 +0000 (16:38 +0300)]
gtk-immodules-cache.bbclass: convert cache creation to postinst_intercept mechanism

This has the following benefits:
- consistent with how the other caches are created into target rootfs
- only runs once per package manager transaction, instead of once per every immodule package
- correctly postpones to first boot if qemu is not working; from postinst itself
this would've required special arrangements to avoid what is now a do_rootfs failure.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogcc-target.inc: configure gcc for armv7ve targets to default to armv7ve
Andre McCurdy [Thu, 7 Jun 2018 04:34:38 +0000 (21:34 -0700)]
gcc-target.inc: configure gcc for armv7ve targets to default to armv7ve

Originally these ARM specific EXTRA_OECONF options were applied to
both gcc for the target and gcc-cross. That lead to a compromise
being made: gcc on the target was configured to default to an ARM
architecture which was at least compatible with the target (but not
necessarily an exact match) and gcc-cross was configured default to
armv7a for both armv7a and armv7ve (to avoid gcc-cross rebuilds when
switching between the two).

However, when these ARM specific EXTRA_OECONF options were moved from
gcc-configure-common.inc into gcc-target.inc (ie they were made to
apply only to gcc on the target) the compromise no longer needed to
be made.

  http://git.openembedded.org/openembedded-core/commit/?id=851937dde81de2a9ef54c5f19a78fb12fb82afd4

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogobject-introspection: relocate typelib repository for native builds
Sascha Silbe [Fri, 8 Jun 2018 16:18:41 +0000 (18:18 +0200)]
gobject-introspection: relocate typelib repository for native builds

gobject-introspection hard-codes the install path in the search path
for the typelib repository, pretty much the same way glib behaves for
the gio modules directory. Like for glib, this causes problems when
gobject-introspection-native is restored from sstate with a different
build directory.

Based on the glib fix by Ross Burton <ross.burton@intel.com>.

Signed-off-by: Sascha Silbe <x-yo17@se-silbe.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agorootfs.py: for dpkg/opkg, don't install postinsts if package management is present
Stefan Agner [Wed, 16 May 2018 09:13:52 +0000 (11:13 +0200)]
rootfs.py: for dpkg/opkg, don't install postinsts if package management is present

If package management is present opkg/dpkg will bring the original
copy of the postinsts scripts with the metadata and will be able to
handle postinsts just fine. In fact, it is preferred to let package
management handle the postinsts scripts in this case since it will
keep the package managers database up-to-date too. The run-postinsts
scripts will make sure the package manager gets invoked instead of
the scripts directly.

Note: Before commit 5aae19959a44 ("rootfs.py: Change logic to
unistall packages") rootfs.py did not install /etc/$pm-postinsts
too. It is not clear whether that change was intentionally or just
a bug. This commit fixes/reverts that aspect of the commit.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agorun-postinsts: for dpkg/opkg, do not rely on /etc/*-postinsts
Stefan Agner [Wed, 16 May 2018 09:13:51 +0000 (11:13 +0200)]
run-postinsts: for dpkg/opkg, do not rely on /etc/*-postinsts

Start opkg/dpkg as soon as the respective package managers status
file is present, no matter whether /etc/$pm-postinsts exists. This
decouples the implicit link between postinsts scripts in /etc and
the package manager: Currently the package manager is only started
if those scripts are present, although the package manager does not
use those scripts at all! Package managers install their own set of
postinst scripts.

The behavior when using rpm packages stays the same.

Note that using the package managers capability to execute postinst
scripts is preferred for good reasons: It makes sure that the
package managers database reflects that the packages have been
completely installed and configured.

This change allows to drop installation of the postinsts scripts
when package management is present. This will be done in a separate
change.

Note: Before commit 5aae19959a44 ("rootfs.py: Change logic to
unistall packages") rootfs.py did not install /etc/$pm-postinsts
when package management is installed! The change caused YOCTO #8235
which lead to the behavior change of run-postinsts in first place.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoopkg: avoid running postinst scripts twice when using systemd
Stefan Agner [Wed, 16 May 2018 09:13:50 +0000 (11:13 +0200)]
opkg: avoid running postinst scripts twice when using systemd

OpenEmbedded has a built-in mechanism to run postinst scripts offline
at build time or, if necessary, on first boot (delayed execution). If
the latter is the case and systemd is in use, two services end up
doing the same thing:
- opkg-configure.service starts "opkg configure" directly.
- run-postinsts.service starts "/usr/sbin/run-postinsts" which runs
  postinst scripts stored in /etc/ipk-postinsts/ or "opkg configure"
  if package management is installed.

Since the run-postinsts.service is also used in cases where no
package management is in use, it is the primary means of handling
postinsts.

Get rid of the opkg-configure.service to avoid duplicate opkg
configure execution.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>