]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
7 years agosystemd: change PACKAGECONFIG 'resolve' back to 'resolved'
Chen Qi [Thu, 22 Mar 2018 07:34:18 +0000 (15:34 +0800)]
systemd: change PACKAGECONFIG 'resolve' back to 'resolved'

When systemd was upgraded from 234 to 237, the PACKAGECONFIG item
'resolved' is changed to 'resolve', this is because meson_options.txt
uses the word 'resolve' instead of 'resolved'.

However, this causes trouble for users. Backward compatibility is obviously
more important, because we might have bbappend files in other layers
using this PACKAGECONFIG item.

So change the name back to 'resolved'.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoexternalsrc: do not call make clean for recipes with CLEANBROKEN = "1" set
Andreas Müller [Wed, 21 Mar 2018 12:20:48 +0000 (13:20 +0100)]
externalsrc: do not call make clean for recipes with CLEANBROKEN = "1" set

ERROR: distrho-ports-0.0.0+git999-r0 do_buildclean: oe_runmake failed
ERROR: distrho-ports-0.0.0+git999-r0 do_buildclean: Function failed: do_buildclean
ERROR: Logfile of failure stored in: <...>/temp/log.do_buildclean.17285
Log data follows:
| DEBUG: Executing shell function do_buildclean
| NOTE: make clean
| make clean -C libs/drowaudio
| make[1]: Entering directory '/home/a.mueller/data/oe-core/workspace/sources/distrho-ports/libs/drowaudio'
| make clean -C build-drowaudio
| make[2]: Entering directory '/home/a.mueller/data/oe-core/workspace/sources/distrho-ports/libs/drowaudio/build-drowaudio'
| make[2]: *** No rule to make target 'clean'.  Stop.
| make[2]: Leaving directory '/home/a.mueller/data/oe-core/workspace/sources/distrho-ports/libs/drowaudio/build-drowaudio'
| make[1]: *** [Makefile:7: clean] Error 2
| make[1]: Leaving directory '/home/a.mueller/data/oe-core/workspace/sources/distrho-ports/libs/drowaudio'
| make: *** [Makefile:73: clean] Error 2
| ERROR: oe_runmake failed

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogtk-doc: don't regenerate gtk-doc in do_install
Ross Burton [Wed, 21 Mar 2018 14:47:29 +0000 (14:47 +0000)]
gtk-doc: don't regenerate gtk-doc in do_install

In out-of-tree builds gtk-doc's setup-build target copies all the content from
$srcdir to $builddir. However, if some of this content is regenerated at
configure time this can happen:

1) configure writes new build/version.xml
2) make compile copies content, including the tarball's src/version.xml
   to build/version.xml, and generates gtk-doc.
3) make install notices build/version.xml is older than configure.status,
   so regenerates gtk-doc.

gtk-doc generation is a slow process at the best of times, so doing it twice
isn't good.

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibrepo: disable building of tests and docs
Anuj Mittal [Wed, 21 Mar 2018 07:27:18 +0000 (15:27 +0800)]
librepo: disable building of tests and docs

Also remove libcheck dependency which was required only for tests.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoncurses: Abstract out termlib
Khem Raj [Wed, 21 Mar 2018 02:30:04 +0000 (19:30 -0700)]
ncurses: Abstract out termlib

termlib needs to be disabled on some targets e.g. mingw
this change paves the way for doing that. Functionally
it does not change anything for other platforms

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agosystemd: Fix build failures with glibc 2.27 + kernels without memfd
Khem Raj [Tue, 20 Mar 2018 20:06:28 +0000 (13:06 -0700)]
systemd: Fix build failures with glibc 2.27 + kernels without memfd

Backport a fix that is needed for systemd to build with latest glibc
and kernel being old.

see
https://github.com/systemd/systemd/issues/8099

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agosite/risc-v: Cache common variables to build libIDL
Khem Raj [Tue, 20 Mar 2018 16:56:40 +0000 (09:56 -0700)]
site/risc-v: Cache common variables to build libIDL

These variables force runtime tests during configure
they are already cached for other architectures

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoglide.bbclass: Add class to easy Glide use
Otavio Salvador [Fri, 16 Mar 2018 19:48:41 +0000 (16:48 -0300)]
glide.bbclass: Add class to easy Glide use

To use 'glide' this class does the integration and reduces code
duplication.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoshadow.inc: run postinst only for target
Martin Jansa [Tue, 20 Mar 2018 12:10:17 +0000 (12:10 +0000)]
shadow.inc: run postinst only for target

* fails for nativesdk-shadow with:
  pwconv: /etc/passwd.29063: No such file or directory
  pwconv: cannot lock /etc/passwd; try again later.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoiputils: change default PACKAGECONFIG to disable libidn
Martin Jansa [Tue, 20 Mar 2018 12:08:49 +0000 (12:08 +0000)]
iputils: change default PACKAGECONFIG to disable libidn

* wrong revision of this patch, where the commit message didn't match
  with the default PACKAGECONFIG value, was merged to master, update
  it to avoid confusion

* it got enabled by default, but without the dependency on libidn in:
  commit 5997981fa2c22609a88b8cbb595dbf7758b2f7c2
  Author: Alexander Kanavin <alexander.kanavin@linux.intel.com>
  AuthorDate: Thu Feb 1 20:02:08 2018 +0200
  Subject: iputils: update to 20161105

* https://github.com/iputils/iputils/blob/master/RELNOTES.old
  mentiones that IDN was enabled by default in:
  [s20160308] and surprisingly the same in [s20150815]
  but there are no release notes for s20151218 version we were using until
  now, don't know how it really relates to [s20150815].

* but there are some issues with libidn as described in:
  https://github.com/iputils/iputils/commit/f3a461603ef4fb7512ade3bdb73fe1824e294547
  so disable it by default.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agomaintainers.inc: drop lsb4 perl modules no longer in core
Tim Orling [Fri, 23 Mar 2018 05:29:39 +0000 (22:29 -0700)]
maintainers.inc: drop lsb4 perl modules no longer in core

The following perl module packages were removed from oe-core
with commit: 30fb4c8f329fe3aa3c528ffeba60ee7d702e873e
  - libclass-isa-perl
  - libenv-perl
  - libdumpvalue-perl
  - libfile-checktree-perl
  - libi18n-collate-perl
  - libpod-plainer-perl

Remove these from the maintainers list

Fixes: [Yocto #12582]
Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agomaintainers: remove obsolete entries
Maxin B. John [Tue, 20 Mar 2018 11:27:39 +0000 (13:27 +0200)]
maintainers: remove obsolete entries

Delete entries of removed packages.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibvorbis: CVE-2018-5146
Tanu Kaskinen [Tue, 20 Mar 2018 08:50:24 +0000 (10:50 +0200)]
libvorbis: CVE-2018-5146

Prevent out-of-bounds write in codebook decoding. The bug could allow
code execution from a specially crafted Ogg Vorbis file.

References:
https://www.debian.org/security/2018/dsa-4140
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-5146

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibvorbis: CVE-2017-14632
Tanu Kaskinen [Tue, 20 Mar 2018 08:50:23 +0000 (10:50 +0200)]
libvorbis: CVE-2017-14632

Xiph.Org libvorbis 1.3.5 allows Remote Code Execution upon freeing
uninitialized memory in the function vorbis_analysis_headerout() in
info.c when vi->channels<=0, a similar issue to Mozilla bug 550184.

References:
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-14632

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibvorbis: CVE-2017-14633
Tanu Kaskinen [Tue, 20 Mar 2018 08:50:22 +0000 (10:50 +0200)]
libvorbis: CVE-2017-14633

In Xiph.Org libvorbis 1.3.5, an out-of-bounds array read vulnerability
exists in the function mapping0_forward() in mapping0.c, which may lead
to DoS when operating on a crafted audio file with vorbis_analysis().

References:
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-14633

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoxserver-xorg: import distro patch to use modesetting driver on newer hardware
California Sullivan [Tue, 20 Mar 2018 00:25:11 +0000 (17:25 -0700)]
xserver-xorg: import distro patch to use modesetting driver on newer hardware

Debian and Fedora both carry this patch, and the xf86-video-modesetting
driver seems better on recent hardware.

As an example, on a NUC6CAYS, the x11perf -aa10text and -rgb10text tests
see around a 20x increase.

[YOCTO #12019]
[YOCTO #12390]

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agotiff: Security fixes
Yi Zhao [Mon, 19 Mar 2018 23:53:20 +0000 (07:53 +0800)]
tiff: Security fixes

Fix CVE-2017-99935, CVE-2017-18013, CVE-2018-5784

References:
https://nvd.nist.gov/vuln/detail/CVE-2017-9935
https://nvd.nist.gov/vuln/detail/CVE-2017-18013
https://nvd.nist.gov/vuln/detail/CVE-2018-5784

Patches from:
CVE-2017-9935:
https://gitlab.com/libtiff/libtiff/commit/3dd8f6a357981a4090f126ab9025056c938b6940
CVE-2017-18013:
https://gitlab.com/libtiff/libtiff/commit/c6f41df7b581402dfba3c19a1e3df4454c551a01
CVE-2018-5784:
https://gitlab.com/libtiff/libtiff/commit/473851d211cf8805a161820337ca74cc9615d6ef

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agosystemd-boot: upgrade to 237
Chen Qi [Wed, 7 Mar 2018 02:28:36 +0000 (10:28 +0800)]
systemd-boot: upgrade to 237

Upgrade systemd-boot to 237.

As systemd has dropped autotools support, fix configure and compile
failures related to meson.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
7 years agosystemd: fix build failure for qemux86 and qemuppc with musl
Chen Qi [Thu, 1 Mar 2018 08:01:19 +0000 (00:01 -0800)]
systemd: fix build failure for qemux86 and qemuppc with musl

Remove the 'fstack-protector' and 'fstack-protector-strong' flags
as a workaround to fix the following error when building for qemux86
and qemuppc with musl.

  undefined reference to `__stack_chk_fail_local'

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
7 years agosystemd: upgrade to 237
Chen Qi [Mon, 12 Mar 2018 06:35:45 +0000 (14:35 +0800)]
systemd: upgrade to 237

Upgrade systemd to 237.

Note that this version has dropped autotools support.

The following patches are rebased:
0004-Use-getenv-when-secure-versions-are-not-available.patch
0005-binfmt-Don-t-install-dependency-links-at-install-tim.patch
0007-use-lnr-wrapper-instead-of-looking-for-relative-opti.patch
0015-Revert-udev-remove-userspace-firmware-loading-suppor.patch
0018-check-for-uchar.h-in-configure.patch
0019-socket-util-don-t-fail-if-libc-doesn-t-support-IDN.patch
0001-add-fallback-parse_printf_format-implementation.patch
0002-src-basic-missing.h-check-for-missing-strndupa.patch
0007-check-for-missing-canonicalize_file_name.patch
0008-Do-not-enable-nss-tests.patch
0010-test-sizeof.c-Disable-tests-for-missing-typedefs-in-.patch
0011-nss-mymachines-Build-conditionally-when-HAVE_MYHOSTN.patch

The following backported patches are dropped:
0001-core-evaluate-presets-after-generators-have-run-6526.patch
0001-main-skip-many-initialization-steps-when-running-in-.patch
0001-meson-update-header-file-to-detect-memfd_create.patch
0003-fileio-include-sys-mman.h.patch

The following patch is dropped as autotools support is dropped:
0002-configure.ac-Check-if-memfd_create-is-already-define.patch

The following patches are newly added to fix problems:
0027-remove-nobody-user-group-checking.patch
0028-add-missing-FTW_-macros-for-musl.patch
0030-fix-missing-of-__register_atfork-for-non-glibc-build.patch
0031-fix-missing-ULONG_LONG_MAX-definition-in-case-of-mus.patch

Other changes are mostly autotools/meson related.

This new version has dropped ptest support, as there's no easy
way to do this in the framework of meson.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
7 years agolibsolv: refresh the patches
Maxin B. John [Mon, 19 Mar 2018 13:59:55 +0000 (15:59 +0200)]
libsolv: refresh the patches

fixes:

WARNING: libsolv-0.6.33-r0 do_patch:
Some of the context lines in patches were ignored. This can lead to
incorrectly applied patches.
The context lines in the patches can be updated with devtool:

devtool modify <recipe>
devtool finish --force-patch-refresh <recipe> <layer_path>

Then the updated patches and the source tree (in devtool's workspace)
should be reviewed to make sure the patches apply in the correct place
and don't introduce duplicate lines (which can, and does happen
when some of the context is ignored). Further information:
http://lists.openembedded.org/pipermail/openembedded-core/2018-March/148675.html
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10450
Details:
Applying patch
0001-Add-fallback-fopencookie-implementation.patch
patching file ext/CMakeLists.txt
patching file ext/solv_xfopen.c
Hunk #1 succeeded at 12 with fuzz 1 (offset -1 lines).
Hunk #2 succeeded at 25 (offset -18 lines).
Hunk #3 succeeded at 34 (offset -18 lines).
Hunk #4 succeeded at 46 (offset -18 lines).
patching file ext/solv_xfopen_fallback_fopencookie.c
patching file ext/solv_xfopen_fallback_fopencookie.h

Now at patch 0001-Add-fallback-fopencookie-implementation.patch

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoiputils: add PACKAGECONFIG for libidn and disable it by default
Martin Jansa [Sat, 17 Mar 2018 11:21:30 +0000 (11:21 +0000)]
iputils: add PACKAGECONFIG for libidn and disable it by default

* it got enabled by default, but without the dependency on libidn in:
  commit 5997981fa2c22609a88b8cbb595dbf7758b2f7c2
  Author: Alexander Kanavin <alexander.kanavin@linux.intel.com>
  AuthorDate: Thu Feb 1 20:02:08 2018 +0200
  Subject: iputils: update to 20161105

* https://github.com/iputils/iputils/blob/master/RELNOTES.old
  mentiones that IDN was enabled by default in:
  [s20160308] and surprisingly the same in [s20150815]
  but there are no release notes for s20151218 version we were using until
  now, don't know how it really relates to [s20150815].

* but there are some issues with libidn as described in:
  https://github.com/iputils/iputils/commit/f3a461603ef4fb7512ade3bdb73fe1824e294547
  so disable it by default.

* fails with:
  | In file included from ping_common.c:1:0:
  | ping.h:39:10: fatal error: idna.h: No such file or directory
  |  #include <idna.h>
  |           ^~~~~~~~

* Easiest way to reproduce this failure is to remove libidn from gnutls
  PACKAGECONFIG or to use gnutls which doesn't have libidn PACKAGECONFIG
  at all (like the one in meta-gplv2).

* First it leads to following QA issue:
  http://errors.yoctoproject.org/Errors/Build/53212/
  ERROR: iputils-s20161105-r0 do_package_qa: QA Issue: iputils-ping rdepends on libidn, but it isn't a build dependency, missing libidn in DEPENDS or PACKAGECONFIG? [build-deps]
  ERROR: iputils-s20161105-r0 do_package_qa: QA Issue: iputils-traceroute6 rdepends on libidn, but it isn't a build dependency, missing libidn in DEPENDS or PACKAGECONFIG? [build-deps]
  ERROR: iputils-s20161105-r0 do_package_qa: QA run found fatal errors.
  Please consider fixing them.
  ERROR: iputils-s20161105-r0 do_package_qa: Function failed:
  do_package_qa
  ERROR: Logfile of failure stored in: /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/iputils/s20161105-r0/temp/log.do_package_qa.7627
  ERROR: Task (/OE/build/oe-core/openembedded-core/meta/recipes-extended/iputils/iputils_s20161105.bb:do_package_qa) failed with exit code '1'

* But if you cleansstate iputils as well (after removing libidn from
  gnutls PACKAGECONFIG) to empty iputils RSS, then you get the error about
  missing idna.h:
  http://errors.yoctoproject.org/Errors/Build/53213/

* Adding the libidn dependency explicitly in iputils recipe fixes the
  issue.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agopackage-index: index also subdirectories when using rpm
Alexander Kanavin [Mon, 19 Mar 2018 09:38:27 +0000 (11:38 +0200)]
package-index: index also subdirectories when using rpm

Previously only the top-level index was created, which did not
work if PACKAGE_FEED_ARCHS whitelisting (or explicitly listing
architectures in dnf repo files by hand) was in use:
https://lists.yoctoproject.org/pipermail/yocto/2018-March/040327.html
https://bugzilla.yoctoproject.org/show_bug.cgi?id=12419

[YOCTO #12419]

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoglibc: fix upstream version check
Alexander Kanavin [Sat, 17 Mar 2018 11:15:39 +0000 (13:15 +0200)]
glibc: fix upstream version check

Exclude x.y.90* pre-release versions in particular.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agodpkg: Backport riscv support
Khem Raj [Sat, 17 Mar 2018 03:40:36 +0000 (20:40 -0700)]
dpkg: Backport riscv support

Refresh patches with devtool

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agomtd-utils: Explicitly add pthread options to cflags
Khem Raj [Sat, 17 Mar 2018 03:40:33 +0000 (20:40 -0700)]
mtd-utils: Explicitly add pthread options to cflags

Some architectures e.g. riscv gcc does not add -D_REENTRANT
when enabling pthreads. Help it here by adding these options
while gcc gets fixed

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolinux-firmware: upgrade to 4c0bf11 revision
Otavio Salvador [Fri, 16 Mar 2018 21:45:22 +0000 (18:45 -0300)]
linux-firmware: upgrade to 4c0bf11 revision

License-Update: new releases and copyright years updated.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agowatchdog: remove interdependencies of watchdog and wd_keepalive
Maxin B. John [Fri, 16 Mar 2018 08:38:10 +0000 (10:38 +0200)]
watchdog: remove interdependencies of watchdog and wd_keepalive

Since watchdog and watchdog-keepalive packages can't be installed
together, move wd_keepalive.service to watchdog-keepalive package.

Remove the inter-dependencies of watchdog and wd_keepalive
services as well.

[YOCTO #12565]

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoopkg-utils: use multithreaded xz when building packages
Ross Burton [Mon, 19 Mar 2018 11:38:45 +0000 (11:38 +0000)]
opkg-utils: use multithreaded xz when building packages

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoperf: enable support for libaudit
Anuj Mittal [Thu, 15 Mar 2018 03:41:20 +0000 (11:41 +0800)]
perf: enable support for libaudit

perf needs audit-python to be able to show syscall names and for
'perf trace' to work.

Enable dependency on audit-python if present in PACKAGECONFIG. It's
disabled by default since audit as of now is in meta-selinux.

Fixes [YOCTO #3343]
Fixes [YOCTO #3358]

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoimage_types.bbclass: Rename lz4_legacy to lz4
Maxin B. John [Mon, 12 Mar 2018 11:40:07 +0000 (13:40 +0200)]
image_types.bbclass: Rename lz4_legacy to lz4

LZ4 format currently used by the Linux kernel is the 'legacy' format.

In order to avoid creating an image that can't be used as a compressed
initial ramdisk with Linux kernel, rename lz4_legacy to lz4.

[YOCTO #12461]
[YOCTO #12149]

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agopatch.py: Use git format-patch with --no-signature --no-numbered params
Martin Jansa [Thu, 15 Mar 2018 22:50:10 +0000 (22:50 +0000)]
patch.py: Use git format-patch with --no-signature --no-numbered params

* --no-signature saves unnecessary .patch modifications when executed on
  host with different git version
* --no-numbered saves unnecessary .patch modifications when number of the
  applied patches is changed (the number is still in the filename so the
  order how they should be applied is still preserved)
* both options exist for very long time, I've tested them with git 1.9.1
  from Ubuntu 14.04 and I'm quite sure they were available even in much
  older releases, so there shouldn't be any issue on relatively new sanity
  tested distros

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agopackage_manager: format pydoc comments properly
Ross Burton [Fri, 16 Mar 2018 14:45:03 +0000 (14:45 +0000)]
package_manager: format pydoc comments properly

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agokernel.bbclass: set HOSTLDFLAGS in KCONFIG_CONFIG_COMMAND
California Sullivan [Thu, 25 Jan 2018 03:12:27 +0000 (19:12 -0800)]
kernel.bbclass: set HOSTLDFLAGS in KCONFIG_CONFIG_COMMAND

Kernel v4.14 and newer contain the following in their Makefile:

HOST_LFS_LDFLAGS := $(shell getconf LFS_LDFLAGS)
HOSTLDFLAGS  := $(HOST_LFS_LDFLAGS)

This breaks our menuconfig, because it can no longer find ncurses if its
not on the host machine. This can be seen in linux-yocto-dev, for
example:

[clsulliv@clsulliv build]$ bitbake virtual/kernel -c menuconfig

  GEN     ./Makefile
  HOSTLD  scripts/kconfig/mconf
/home/clsulliv/yocto/poky/build/tmp/hosttools/ld: cannot find -lncurses
/home/clsulliv/yocto/poky/build/tmp/hosttools/ld: cannot find -ltinfo
collect2: error: ld returned 1 exit status
make[3]: *** [scripts/Makefile.host:99: scripts/kconfig/mconf] Error 1
make[2]: *** [/home/clsulliv/yocto/poky/build/tmp/work-shared/intel-corei7-64/kernel-source/Makefile:504: menuconfig] Error 2
make[1]: *** [Makefile:146: sub-make] Error 2
make: *** [Makefile:24: __sub-make] Error 2
Command failed.
Press any key to continue...

Fix this by setting HOSTLDFLAGS to ${BUILD_LDFLAGS} in our
'make menuconfig' command.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agopython-numpy: update to 1.14.2
Derek Straka [Sun, 18 Mar 2018 13:47:08 +0000 (09:47 -0400)]
python-numpy: update to 1.14.2

Update to the latest stable release

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agopython3-pip: update to 9.0.2
Derek Straka [Sun, 18 Mar 2018 13:39:14 +0000 (09:39 -0400)]
python3-pip: update to 9.0.2

Update to the latest stable release

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agopython3-pygobject: update to 3.28.1
Derek Straka [Sun, 18 Mar 2018 13:35:20 +0000 (09:35 -0400)]
python3-pygobject: update to 3.28.1

Update to the latest stable release

Tested in qemux86-64 running core-image-minimal

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agopython*-setuptools: update to 39.0.0
Derek Straka [Sun, 18 Mar 2018 13:15:28 +0000 (09:15 -0400)]
python*-setuptools: update to 39.0.0

Update the python{3}-setuptools to the latest stable version

Tested on the qemu with core-image-minimal

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agopython-numpy: Fix build for riscv64
Khem Raj [Sat, 17 Mar 2018 03:40:35 +0000 (20:40 -0700)]
python-numpy: Fix build for riscv64

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agopython3-native: update to version 3.5.5 to fix security issues
Derek Straka [Thu, 15 Mar 2018 16:58:49 +0000 (12:58 -0400)]
python3-native: update to version 3.5.5 to fix security issues

License-Update: checksum change is due to bump in copyright year

Resolves CVE-2017-1000158 and other potential security issues

See https://docs.python.org/3.5/whatsnew/changelog.html#python-3-5-5-final

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agopython3-native: fix build races in 'make regen-all'
Alexander Kanavin [Thu, 15 Mar 2018 16:54:58 +0000 (18:54 +0200)]
python3-native: fix build races in 'make regen-all'

Python 2.x and target Python 3.x do not have this issue.

[YOCTO #12596]

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agognome-desktop: do not assume time_t is long
Joe Slater [Thu, 15 Mar 2018 16:03:31 +0000 (09:03 -0700)]
gnome-desktop: do not assume time_t is long

Replace use of atol() to set a time_t variable.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoRevert "lttng-tools: Upgrade 2.9.5 -> 2.10.2"
Ross Burton [Thu, 15 Mar 2018 14:58:54 +0000 (14:58 +0000)]
Revert "lttng-tools: Upgrade 2.9.5 -> 2.10.2"

None of the test suite works, so something quite fundamental broke.

[ YOCTO #12606 ]

This reverts commit 406ea737f1ce5bb5fed46c8cbeb5c7c13bf3b8ad.

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoslang: 2.3.1a -> 2.3.2
Huang Qiyu [Thu, 15 Mar 2018 02:02:40 +0000 (10:02 +0800)]
slang: 2.3.1a -> 2.3.2

Upgrade slang from 2.3.1a to 2.3.2.

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agopython3: add readline to PACKAGECONFIG
Anuj Mittal [Thu, 15 Mar 2018 05:38:56 +0000 (13:38 +0800)]
python3: add readline to PACKAGECONFIG

Provide a way to make readline dependency optional in case someone
might want to use BSD alternative editline instead.

Using editline would need some changes though (python issue13501).

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoca-certificates: run postinst script only for -target package
Alexander Kanavin [Thu, 15 Mar 2018 11:27:06 +0000 (13:27 +0200)]
ca-certificates: run postinst script only for -target package

Nativesdk package has a special arrangement where the same thing is done
in do_install(). It was assumed (in the comment) that postinsts don't run when
installing nativesdk packages, but this was incorrect: they are run, but
any failures were previously silently ignored. Now this missing failure reporting has
been fixed, and so we get to see the failures.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibpng: fix upstream version check
Alexander Kanavin [Thu, 15 Mar 2018 10:39:47 +0000 (12:39 +0200)]
libpng: fix upstream version check

Sourceforge for some reason claims an older version is 'the latest'.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agodistcc: remove UPSTREAM_VERSION_UNKNOWN
Alexander Kanavin [Thu, 15 Mar 2018 10:39:46 +0000 (12:39 +0200)]
distcc: remove UPSTREAM_VERSION_UNKNOWN

Upstream has finally released a new version.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agochecklayer: remove reference to undefined class
Anuj Mittal [Thu, 15 Mar 2018 05:59:51 +0000 (13:59 +0800)]
checklayer: remove reference to undefined class

LayerError doesn't exist and will lead to an error when this failure
code path is hit.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogcc: Do not use --with-linker-hash-style if LINKER_HASH_STYLE is empty
Khem Raj [Sat, 17 Mar 2018 03:40:32 +0000 (20:40 -0700)]
gcc: Do not use --with-linker-hash-style if LINKER_HASH_STYLE is empty

We allow to set LINKER_HASH_STYLE to be empty so this would fail
since --with-linker-hash-style needs an argument and cant be empty

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogcc: backport patch to fix ICE in MIPS64 target in G++
Mark Hatle [Thu, 15 Mar 2018 16:45:09 +0000 (12:45 -0400)]
gcc: backport patch to fix ICE in MIPS64 target in G++

Backport a patch to fix an ICE when compiling for MIPS64.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agobuildperf: measure the size of core-image-sato rootfs
Ross Burton [Thu, 15 Mar 2018 13:13:50 +0000 (13:13 +0000)]
buildperf: measure the size of core-image-sato rootfs

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoscripts/oe-build-perf-report: fix comparing arbitrary commits
Markus Lehtonen [Thu, 15 Mar 2018 12:40:45 +0000 (14:40 +0200)]
scripts/oe-build-perf-report: fix comparing arbitrary commits

Fix a crash when generating a txt report and the two commits to be
compared were not consecutive (but there were some tested commits
between them).

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolinux-yocto/4.12: backport bugfixes for x86
Bruce Ashfield [Wed, 14 Mar 2018 15:10:29 +0000 (11:10 -0400)]
linux-yocto/4.12: backport bugfixes for x86

Integrating the following commits:

  60b649971940 x86/hibernate/64: Mask off CR3's PCID bits in the saved CR3
  cec3c008ec8f drm/i915/cfl: Coffee Lake works on Kaby Lake PCH.
  073873cb152c brd: remove unused brd_mutex
  912c53b1b346 audit: fix memleak in auditd_send_unicast_skb.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agomaintainers: add maintainer for make-mod-scripts
Bruce Ashfield [Wed, 14 Mar 2018 15:10:28 +0000 (11:10 -0400)]
maintainers: add maintainer for make-mod-scripts

I introduced the recipe, so I get to fix any bugs!

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolinux-yocto/4.14/4.15: revert "features/systemtap/systemtap.cfg: enable CONFIG_KERNEL...
Bruce Ashfield [Wed, 14 Mar 2018 15:10:27 +0000 (11:10 -0400)]
linux-yocto/4.14/4.15: revert "features/systemtap/systemtap.cfg: enable CONFIG_KERNEL_DEBUG"

The following commit:

   Author: California Sullivan <california.l.sullivan@intel.com>
   Date:   Wed Feb 17 16:47:10 2016 -0800

       ktypes: add developer ktype

       The developer ktype enables EMBEDDED, EXPERT, and DEBUG_KERNEL,
       opening up more kernel options and setting some defaults.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Was created to address the kernel footprint related issues that are related
to many of the kernel debug options.

When this commit was merged, it re-enabled CONFIG_DEBUG_KERNEL for the
standard kernel, since it includes the systemtap fragment. The correct thing
to do is to move systemtap properly into the developer kernel type.

For now, you can build the developer kernel type, or add the developer kernel
configuration fragment via a bbappend, and you'll have a functional systemtap.

[YOCTO #12603]

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agobtrfs-tools: add RECIPE_NO_UPDATE_REASON
Alexander Kanavin [Tue, 13 Mar 2018 16:51:56 +0000 (18:51 +0200)]
btrfs-tools: add RECIPE_NO_UPDATE_REASON

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agopython3: Fix purelib install and runtime paths
Jason Wessel [Tue, 13 Mar 2018 03:08:26 +0000 (22:08 -0500)]
python3: Fix purelib install and runtime paths

oe-core commit: 45afadf0b6 fixed the pip problem with purelib for
python2, even though the the patch stated it was for python3.  This
patch addresses the purelib problem for python3.

If you install the package python3-pip you will have a pip3 binary
where you can see the problem on the device easily where the modules
install into the incorrect area and are not able to be referenced by
python3 at all.

Example error:
   pip3 install imutils
   pip3 list |grep imutils || echo ERROR no imutils
      ERROR no imutils
   python3 -c 'import imutils'
     Traceback (most recent call last):
       File "<string>", line 1, in <module>
     ImportError: No module named 'imutils'

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoinsane.bbclass: Fix typos in 32bit risc-v machine type
Khem Raj [Wed, 14 Mar 2018 07:43:56 +0000 (00:43 -0700)]
insane.bbclass: Fix typos in 32bit risc-v machine type

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoinsane.bbclass: add support for RISC-V baremetal
Khem Raj [Wed, 14 Mar 2018 06:23:11 +0000 (23:23 -0700)]
insane.bbclass: add support for RISC-V baremetal

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogtk-doc: use --srcdir instead of cd
Ross Burton [Wed, 14 Mar 2018 12:55:29 +0000 (12:55 +0000)]
gtk-doc: use --srcdir instead of cd

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agogtk-doc: always inherit python3native
Ross Burton [Tue, 13 Mar 2018 13:01:39 +0000 (13:01 +0000)]
gtk-doc: always inherit python3native

My attempt at only inheriting python3native if it was needed was broken and
didn't work, so back it out and always inherit.

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibgpg-error: Fix multilib header conflict - pg-error.h and gpgrt.h
Zhang Xiao [Mon, 12 Mar 2018 00:32:56 +0000 (17:32 -0700)]
libgpg-error: Fix multilib header conflict - pg-error.h and gpgrt.h

Header file conflict between 32-bit and 64-bit versions.

Signed-off-by: Zhang Xiao <xiao.zhang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agotiff: Fix multilib header conflict - tiffconf.h
Zhang Xiao [Mon, 12 Mar 2018 00:32:55 +0000 (17:32 -0700)]
tiff: Fix multilib header conflict - tiffconf.h

Header file conflict between 32-bit and 64-bit versions.

Signed-off-by: Zhang Xiao <xiao.zhang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agovalgrind: Fix multilib header conflict - valgrind/config.h
Zhang Xiao [Mon, 12 Mar 2018 00:32:54 +0000 (17:32 -0700)]
valgrind: Fix multilib header conflict - valgrind/config.h

Header file conflict between 32-bit and 64-bit versions.

Signed-off-by: Zhang Xiao <xiao.zhang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agokmod: don't call gtkdocize twice
Ross Burton [Tue, 13 Mar 2018 13:02:29 +0000 (13:02 +0000)]
kmod: don't call gtkdocize twice

The gtk-doc class already calls gtkdocize, so we don't need to do it again

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agomaintainers: remove obsolete entry
Ross Burton [Tue, 13 Mar 2018 11:37:44 +0000 (11:37 +0000)]
maintainers: remove obsolete entry

Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agobuild-recipe-list: improvements
Ross Burton [Mon, 12 Mar 2018 16:37:47 +0000 (16:37 +0000)]
build-recipe-list: improvements

7 years agorisc-v: Pin oldest kernel to 4.15 for the new kid
Khem Raj [Sun, 11 Mar 2018 08:07:58 +0000 (00:07 -0800)]
risc-v: Pin oldest kernel to 4.15 for the new kid

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agosite/riscv: Shunt the realloc configure test for startup-notification
Khem Raj [Sun, 11 Mar 2018 08:07:57 +0000 (00:07 -0800)]
site/riscv: Shunt the realloc configure test for startup-notification

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agopcmanfm: Drop COMPATIBLE_HOST setting
Khem Raj [Sun, 11 Mar 2018 08:07:56 +0000 (00:07 -0800)]
pcmanfm: Drop COMPATIBLE_HOST setting

We have all core architectures in there its almost redundant

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agotcmode-default.inc: Define QEMUVERSION and softly pin it
Khem Raj [Sun, 11 Mar 2018 08:07:55 +0000 (00:07 -0800)]
tcmode-default.inc: Define QEMUVERSION and softly pin it

This provides ability to surgically override qemu for certain
machines which are provided by external layers.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agopython-numpy: reorganize numpy recipes to use a common .inc file to reduce duplication
Derek Straka [Sat, 10 Mar 2018 17:23:25 +0000 (12:23 -0500)]
python-numpy: reorganize numpy recipes to use a common .inc file to reduce duplication

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoncurses: fix deletion of /usr/lib/terminfo
Koen Kooi [Fri, 9 Mar 2018 13:00:05 +0000 (14:00 +0100)]
ncurses: fix deletion of /usr/lib/terminfo

Ncurses doesn't honour ${libdir} for terminfo, so try more options to remove it.

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoopenssl: fix libdir logic to allow multiarch style paths
Koen Kooi [Fri, 9 Mar 2018 10:55:14 +0000 (11:55 +0100)]
openssl: fix libdir logic to allow multiarch style paths

The recipes were using 'basename' to turn '/usr/lib' into 'lib', which breaks when libdir is '/usr/lib/tuple', leading to libraries ending up in '/usr/tuple', which isn't in FILES_*. Change the logic to use sed to strip the prefix instead.

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoncurses: fix do_install failure when base_libdir has more than one level
Koen Kooi [Fri, 9 Mar 2018 09:53:09 +0000 (10:53 +0100)]
ncurses: fix do_install failure when base_libdir has more than one level

Other sections of the .inc already use mkdir -p, so use it here as well.

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agouninative: Add compatiblity version check
Richard Purdie [Wed, 14 Mar 2018 16:52:18 +0000 (09:52 -0700)]
uninative: Add compatiblity version check

If glibc is newer on the host than in uninative, the failure mode is
pretty nasty for clusters where the sstate is shared, including the Yocto
Project autobuilder.

This check aborts the use of uninative in such scenarios where a newer
glibc version appears and avoids corruption of sstate caches.

We use ldd to check the glibc version since that is included in libc-bin
(or equivalent) which locales use so it should always be present.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobuild-recipe-list: build universe instead of world
Ross Burton [Mon, 12 Mar 2018 16:38:58 +0000 (16:38 +0000)]
build-recipe-list: build universe instead of world

Building world means recipes that are excluded from world build for whatever
reason get skipped from the manifests, which isn't useful.  Instead building
universe and pass -k so that the expected dependency failures are not fatal.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agometa: remove some EXCLUDE_FROM_WORLD assignments
Ross Burton [Mon, 12 Mar 2018 16:38:57 +0000 (16:38 +0000)]
meta: remove some EXCLUDE_FROM_WORLD assignments

Now that we have recipe-specific-sysroots we don't need to exclude recipes from
world builds because they conflict with other recipes, as they'll all be built
with their own sysroots.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoiproute2: fix rebuild failures
Trevor Woerner [Mon, 12 Mar 2018 15:22:33 +0000 (11:22 -0400)]
iproute2: fix rebuild failures

When rebuilding iproute2, many such instances of the following build failure
occur:

| make[1]: Entering directory '.../iproute2/4.14.1-r0/iproute2-4.14.1/lib'
| Makefile:1: ../config.mk: No such file or directory
| make[1]: *** No rule to make target '../config.mk'.  Stop.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobtrfs-tools: set CLEANBROKEN to 1 to avoid rebuild failure
Chen Qi [Mon, 12 Mar 2018 09:19:19 +0000 (17:19 +0800)]
btrfs-tools: set CLEANBROKEN to 1 to avoid rebuild failure

When rebuilding btrfs-tools, we would sometimes meet the following error.

  Makefile:43: *** Makefile.inc not generated, please configure first.

Set CLEANBROKEN to "1" to solve this problem.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopython3: update to version 3.5.5 to fix security issues
Derek Straka [Sun, 11 Mar 2018 22:18:22 +0000 (18:18 -0400)]
python3: update to version 3.5.5 to fix security issues

License-Update: checksum change is due to bump in copyright year

Resolves CVE-2017-1000158 and other potential security issues

See https://docs.python.org/3.5/whatsnew/changelog.html#python-3-5-5-final

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopython*-setuptools: update to 38.5.2
Derek Straka [Sun, 11 Mar 2018 15:03:21 +0000 (11:03 -0400)]
python*-setuptools: update to 38.5.2

Update the python{3}-setuptools to the latest stable version

Tested on the qemu with core-image-minimal

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolib/oe/patch.py: add a warning if patch context was ignored
Alexander Kanavin [Mon, 12 Mar 2018 16:49:44 +0000 (18:49 +0200)]
lib/oe/patch.py: add a warning if patch context was ignored

Ignoring patch context increases the chances of patches being
applied incorrectly. Depending on what code is being patched, this can go
completely unnoticed and create subtle bugs, sometimes with security implications.

Please see here for a specific example:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10450

On the other hand, we cannot simply force all patch context to match exactly:
doing this would break a lot of recipes suddenly, across all layers.

So let's try a softer approach: issue a warning, and gently update
patches over a longer span of time. When most of the warnings are eliminated,
we can start enforcing a strict patch application policy.

I do understand that this patch creates a lot of warnings all of a sudden, however
I believe the problem does need to be addressed. All of oe-core recipes have their
context already fixed.

Sample warning:

WARNING: vulkan-1.0.61.1-r0 do_patch:
Some of the context lines in patches were ignored. This can lead to incorrectly applied patches.
The context lines in the patches can be updated with devtool:

    devtool modify <recipe>
    devtool finish --force-patch-refresh <recipe> <layer_path>

Then the updated patches and the source tree (in devtool's workspace)
should be reviewed to make sure the patches apply in the correct place
and don't introduce duplicate lines (which can, and does happen
when some of the context is ignored).
Details:
Applying patch demos-Don-t-build-tri-or-cube.patch
patching file demos/CMakeLists.txt
Hunk #1 succeeded at 63 (offset 2 lines).
Hunk #2 succeeded at 76 with fuzz 1 (offset 2 lines).

[YOCTO #10450]

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooe-selftest: add a test for failing package post-installation scriptlets
Alexander Kanavin [Mon, 12 Mar 2018 16:49:43 +0000 (18:49 +0200)]
oe-selftest: add a test for failing package post-installation scriptlets

The test runs a scriptlet that has an intentionally failing command in the middle
and checks for two things:
1) that bitbake does warn the user about the failure
2) that scriptlet execution stops at that point.

The test is run for all three package types: rpm, deb, ipk.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agometa/lib/oe/package_manager.py: warn about failing scriptlets for all package types
Alexander Kanavin [Mon, 12 Mar 2018 16:49:42 +0000 (18:49 +0200)]
meta/lib/oe/package_manager.py: warn about failing scriptlets for all package types

Previously this was done only for rpm packages; now also ipk/deb scriptlet
failures are reported.

In the future this will become a hard error, but it can't yet happen
due to the legacy 'exit 1' way of deferring scriptlet execution to first boot which
needs a deprecation period.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopackage.bbclass: run pre/post installation/removal scriptlets using sh -e
Alexander Kanavin [Mon, 12 Mar 2018 16:49:41 +0000 (18:49 +0200)]
package.bbclass: run pre/post installation/removal scriptlets using sh -e

This allows catching errors in the scriptlets which would otherwise
go unnoticed, e.g. this sequence:
====
bogus_command
proper_command
====
would work just fine without any visible warnings or errors.

This was previously done only for rpm packages; this patch replaces
the rpm-specific tweak with one that works for all package types.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agounfs3: Fix libtirpc usage for unfs3-native version
Richard Purdie [Mon, 12 Mar 2018 22:23:53 +0000 (15:23 -0700)]
unfs3: Fix libtirpc usage for unfs3-native version

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibtirpc: Extend to native and nativesdk recipes
Khem Raj [Mon, 12 Mar 2018 04:40:52 +0000 (21:40 -0700)]
libtirpc: Extend to native and nativesdk recipes

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agounfs3: Fix build with musl
Khem Raj [Mon, 12 Mar 2018 04:40:51 +0000 (21:40 -0700)]
unfs3: Fix build with musl

Should also fix build on new build hosts where
with glibc 2.27 rpc support is dropped in favor
of libtirpc

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoopenssl_1.0.2n: improve reproducibility
Juro Bystricky [Sat, 10 Mar 2018 19:27:29 +0000 (11:27 -0800)]
openssl_1.0.2n: improve reproducibility

Improve reproducible build of:

openssl-staticdev
openssl-dbg
libcrypto

There are two main causes that prevent reproducible build, both related to
the generated file "buildinf.h":

1. "buildinf.h" contains build host CFLAGS, containing various build
   host references.  We need to pass sanitized CFLAGS to the script
   generating this file ("mkbuildinf.pl". )

2. We also need to modify the script "mkbuildinf.pl" itsel in order to
   generate a build timestamp based on SOURCE_DATE_EPOCH, if present in
   the environment.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agodbus-test-ptest: improve reproducibility
Juro Bystricky [Sat, 10 Mar 2018 18:58:45 +0000 (10:58 -0800)]
dbus-test-ptest: improve reproducibility

Remove build host references from additional files.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoreproducible_build_simple.bbclass: simple environment for reproducible binaries
Juro Bystricky [Sat, 10 Mar 2018 18:57:49 +0000 (10:57 -0800)]
reproducible_build_simple.bbclass: simple environment for reproducible binaries

Export environmental variables needed for binary reproducibility with consistent values.

This class can be used either directly via:
INHERIT += "reproducible_build_simple"

or can be inherited by a more complex/complete bbclass, for example a bblass which
will crack SOURCE_DATE_EPOCH for each recipe.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoclasses/recipes: Use expanded BUILD_REPRODUCIBLE_BINARIES value
Juro Bystricky [Sat, 10 Mar 2018 18:56:25 +0000 (10:56 -0800)]
classes/recipes: Use expanded BUILD_REPRODUCIBLE_BINARIES value

Replace the occurences of BUILD_REPRODUCIBLE_BINARIES with expanded
values ${BUILD_REPRODUCIBLE_BINARIES} so the variable does not need to be
exported.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoyocto-uninative: Upgrade to 1.8 version with glibc 2.27
Richard Purdie [Sat, 10 Mar 2018 03:46:00 +0000 (19:46 -0800)]
yocto-uninative: Upgrade to 1.8 version with glibc 2.27

Now distros are starting to ship glibc 2.27 we need a uninatve version
which contains glibc 2.27 which is in the 1.8 version.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolsbinitscripts: update to 9.79
Alexander Kanavin [Thu, 1 Mar 2018 14:00:42 +0000 (16:00 +0200)]
lsbinitscripts: update to 9.79

Switch to github as pkgs.fedoraproject.org is down.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agomklibs-native: refresh patches
Alexander Kanavin [Fri, 9 Mar 2018 18:56:14 +0000 (20:56 +0200)]
mklibs-native: refresh patches

The patch tool will apply patches by default with "fuzz", which is where if the
hunk context isn't present but what is there is close enough, it will force the
patch in.

Whilst this is useful when there's just whitespace changes, when applied to
source it is possible for a patch applied with fuzz to produce broken code which
still compiles (see #10450).  This is obviously bad.

We'd like to eventually have do_patch() rejecting any fuzz on these grounds. For
that to be realistic the existing patches with fuzz need to be rebased and
reviewed.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agoattr: refresh patches
Ross Burton [Fri, 9 Mar 2018 18:56:13 +0000 (20:56 +0200)]
attr: refresh patches

The patch tool will apply patches by default with "fuzz", which is where if the
hunk context isn't present but what is there is close enough, it will force the
patch in.

Whilst this is useful when there's just whitespace changes, when applied to
source it is possible for a patch applied with fuzz to produce broken code which
still compiles (see #10450).  This is obviously bad.

We'd like to eventually have do_patch() rejecting any fuzz on these grounds. For
that to be realistic the existing patches with fuzz need to be rebased and
reviewed.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibunwind: refresh patches
Ross Burton [Fri, 9 Mar 2018 18:56:12 +0000 (20:56 +0200)]
libunwind: refresh patches

The patch tool will apply patches by default with "fuzz", which is where if the
hunk context isn't present but what is there is close enough, it will force the
patch in.

Whilst this is useful when there's just whitespace changes, when applied to
source it is possible for a patch applied with fuzz to produce broken code which
still compiles (see #10450).  This is obviously bad.

We'd like to eventually have do_patch() rejecting any fuzz on these grounds. For
that to be realistic the existing patches with fuzz need to be rebased and
reviewed.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
7 years agolibtiff: refresh patches
Ross Burton [Fri, 9 Mar 2018 18:56:11 +0000 (20:56 +0200)]
libtiff: refresh patches

The patch tool will apply patches by default with "fuzz", which is where if the
hunk context isn't present but what is there is close enough, it will force the
patch in.

Whilst this is useful when there's just whitespace changes, when applied to
source it is possible for a patch applied with fuzz to produce broken code which
still compiles (see #10450).  This is obviously bad.

We'd like to eventually have do_patch() rejecting any fuzz on these grounds. For
that to be realistic the existing patches with fuzz need to be rebased and
reviewed.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>