]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
6 years agox264: Disable asm on musl/x86
Khem Raj [Sun, 7 Oct 2018 01:29:17 +0000 (18:29 -0700)] 
x264: Disable asm on musl/x86

Fixes

WARNING: x264-r2854+gitAUTOINC+e9a5903edf-r0 do_package_qa: QA Issue: ELF binary '/mnt/a/yoe/build/tmp/work/i586-yoe-linux-musl/x264/r2854+gitAUTOINC+e9a5903edf-r0/packages-split/x264/usr/lib/libx264.so.152'
has relocations in .text [textrel]
WARNING: x264-r2854+gitAUTOINC+e9a5903edf-r0 do_package_qa: QA Issue: ELF binary '/mnt/a/yoe/build/tmp/work/i586-yoe-linux-musl/x264/r2854+gitAUTOINC+e9a5903edf-r0/packages-split/x264-bin/usr/bin/x264'
has relocations in .text [textrel]

(From OE-Core rev: ea1204c6d9a02f0e38cf616e89d46530908972bb)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoffmpeg: use bfd linker always for x86 target
Khem Raj [Sun, 7 Oct 2018 01:29:16 +0000 (18:29 -0700)] 
ffmpeg: use bfd linker always for x86 target

gold crashes when linking, so use bfd linker here, another option is to
use --disable-asm but then we loose performance.

(From OE-Core rev: 4015f3279aaced1c5d9ae8a6e666c9fba42558df)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoltp: recent glibc calls syscall directly
Hongzhi.Song [Mon, 8 Oct 2018 03:31:51 +0000 (20:31 -0700)] 
ltp: recent glibc calls syscall directly

The case of sigwaitinfo related to sigwaitinfo API failed.

glibc commit
  8b0e795aaa44 ("Simplify Linux sig{timed}wait{info} implementations")
  changed sigwaitinfo to call sigtimedwait, which calls rt_sigtimedwait
  syscall directly.

So, an invalid pointer no longer crashes child process and test
reports failure. Fix it by accepting either crash or EFAULT.

(From OE-Core rev: bfd32c0d1c335e9c9cf8340f999e15054917577e)

Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython3: add ca-certificates to python3-crypt RRECOMMENDS
Ross Burton [Mon, 8 Oct 2018 13:28:30 +0000 (14:28 +0100)] 
python3: add ca-certificates to python3-crypt RRECOMMENDS

It's likely that the certificate root chain is needed if python3-crypt is
installed, so recommend it.

Also remove the redundant nativesdk-python3-crypt assignment, as the general
form is sufficient when class-extended.

(From OE-Core rev: dd644ee9991e953474d41dbbf713a7e33b4c9141)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibsoup: upgrade to 2.62.3
Ross Burton [Mon, 8 Oct 2018 10:58:32 +0000 (11:58 +0100)] 
libsoup: upgrade to 2.62.3

Freeze-breaking upgrade for a security bug fix involving cookie URLs, and a
number of static analysis fixes.

Drop CVE-2018-12910.patch as this is merged in 2.62.3.

(From OE-Core rev: a8098782fab87498026a09c06716b631c77c5ad6)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibx11: fix patch headers
Ross Burton [Mon, 8 Oct 2018 14:04:36 +0000 (15:04 +0100)] 
libx11: fix patch headers

devtool doesn't like patches without subjects, so add meaningful subjects.

(From OE-Core rev: 3056a2e5d8b7e7285fd9680073a5ab613a4066e4)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoconnman: update patch status
Ross Burton [Mon, 8 Oct 2018 11:02:16 +0000 (12:02 +0100)] 
connman: update patch status

These patches are all upstream now, so mark as Backport.

(From OE-Core rev: 9a84114a279000329c2878a35f197a09217cd1fc)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolib11: fix patch headers
Ross Burton [Mon, 8 Oct 2018 14:04:55 +0000 (15:04 +0100)] 
lib11: fix patch headers

(From OE-Core rev: 7d74f204acf6e56249f843f99927966017d4b405)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython3: fix patch headers
Ross Burton [Mon, 8 Oct 2018 14:04:54 +0000 (15:04 +0100)] 
python3: fix patch headers

(From OE-Core rev: 46bc904bf9cf3b2a01de0ba140b31066f90bfa49)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython: fix patch headers
Ross Burton [Mon, 8 Oct 2018 14:04:53 +0000 (15:04 +0100)] 
python: fix patch headers

(From OE-Core rev: 5aba4b7540a71908a5e1086f444b2f205ba5829d)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogdb: fix patch headers
Ross Burton [Mon, 8 Oct 2018 14:04:52 +0000 (15:04 +0100)] 
gdb: fix patch headers

(From OE-Core rev: cf634b35e866daacb427ab4c10d5adadaac3718b)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibusb: ptest: don't skip debug output and fix failures processing
Maksym Kokhan via Openembedded-core [Thu, 4 Oct 2018 13:59:01 +0000 (16:59 +0300)] 
libusb: ptest: don't skip debug output and fix failures processing

Current run-ptest script prints nothing, when stress tests fail.
Fix it in new implementation, discarding external dependency on sed.
Also leave in place all stress output, just add standard ptest result.

Fixes: 3f0106bf2e41 ("libusb: Add ptest")
(From OE-Core rev: cd05029c78dea48c20f9acb2c5fee56b19193f22)

Signed-off-by: Maksym Kokhan <maksym.kokhan@globallogic.com>
Reviewed-by: Andrii Bordunov <andrii.bordunov@globallogic.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoexternalsrc.bbclass: Set BB_DONT_CACHE for non-target recipes
Ola x Nilsson [Thu, 4 Oct 2018 10:43:28 +0000 (12:43 +0200)] 
externalsrc.bbclass: Set BB_DONT_CACHE for non-target recipes

BB_DONT_CACHE was not set for non-virtual recipes where PN != BPN, such
as quilt-native.  Recipes that do not set BBCLASSEXTEND should always
have BB_DONT_CACHE set by externalsrc.

(From OE-Core rev: 4eff427a0ee629a1541a420a9591411648569a97)

Signed-off-by: Ola x Nilsson <olani@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopiglit: inherit pkgconfig
Pascal Bach [Thu, 4 Oct 2018 15:24:19 +0000 (17:24 +0200)] 
piglit: inherit pkgconfig

The CMakeLists.txt of piglit uses pkgconfig internally.
This makes sure pkgconfig-native is available in any case.

(From OE-Core rev: ac8f27b441b9e8cee969e06e22759d49e05e1b11)

Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopiglit: correctly find wayland include dirs
Pascal Bach [Thu, 4 Oct 2018 15:24:18 +0000 (17:24 +0200)] 
piglit: correctly find wayland include dirs

Builds include host /usr/include as the wrong wayland variable was used.
The issue only surfaces if CMAKE_SYSROOT is properly set.

(From OE-Core rev: d4b942c97831f6717b34caaaf2402efdffa227ba)

Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoconf/machine/include: add mcf5441x cpu type tuning
Angelo Dureghello [Thu, 4 Oct 2018 13:29:53 +0000 (15:29 +0200)] 
conf/machine/include: add mcf5441x cpu type tuning

This patch adds tuning for the mcf5441x ColdFire family.

(From OE-Core rev: 89e7192b607361769c03b939437c9815672ceadb)

Signed-off-by: Angelo Dureghello <angelo@sysam.it>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoconf/machine/include: add m68k architecture definitions
Angelo Dureghello [Thu, 4 Oct 2018 13:29:52 +0000 (15:29 +0200)] 
conf/machine/include: add m68k architecture definitions

(From OE-Core rev: 475ca28ab1b42fc0307669edae220afb97dd15c3)

Signed-off-by: Angelo Dureghello <angelo@sysam.it>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agokernel-arch.bbclass: add m68k to kernel arch map
Angelo Dureghello [Thu, 4 Oct 2018 13:29:51 +0000 (15:29 +0200)] 
kernel-arch.bbclass: add m68k to kernel arch map

(From OE-Core rev: 69be35a58ce4122763c833e13cdbcc8e7fb9c52d)

Signed-off-by: Angelo Dureghello <angelo@sysam.it>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agositeinfo: define data for m68k
Angelo Dureghello [Thu, 4 Oct 2018 13:29:50 +0000 (15:29 +0200)] 
siteinfo: define data for m68k

(From OE-Core rev: d8c2a5fa7d59580dd70b7ec57450e3b7c9a7d048)

Signed-off-by: Angelo Dureghello <angelo@sysam.it>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython: fix failing ssl tests
Anuj Mittal [Thu, 4 Oct 2018 05:09:16 +0000 (13:09 +0800)] 
python: fix failing ssl tests

Backport two and pick some other in-review patches from Ubuntu to fix
ssl test failures because of OpenSSL 1.1.x changes.

Fixes [YOCTO #12788]

(From OE-Core rev: 4f4bbb936231dd30c3745ef573993f1062937ffd)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoe2fsprogs: add bzip2 to ptest RDEPENDS
Anuj Mittal [Thu, 4 Oct 2018 06:56:28 +0000 (14:56 +0800)] 
e2fsprogs: add bzip2 to ptest RDEPENDS

A lot of tests in e2fsprogs-ptest package expect bzip2 to be present.

(From OE-Core rev: fb837f11c7a7777c0c9747309f5eabf881e8f4ee)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoe2fsprogs: fix stray quote in test configuration
Anuj Mittal [Thu, 4 Oct 2018 06:26:45 +0000 (14:26 +0800)] 
e2fsprogs: fix stray quote in test configuration

Introduced during the last recipe upgrade and was causing tests to fail.

Fixes [YOCTO #12946]

(From OE-Core rev: 1771cf07c88c27e8cf473b7f1da03db22d94837e)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibxml2: refresh CVE-2017-8872
Ross Burton [Thu, 4 Oct 2018 09:20:20 +0000 (10:20 +0100)] 
libxml2: refresh CVE-2017-8872

The patch associated with the CVE-2017-8872 report was never merged into
libxml2, but a slightly different patch for the same problem was.  Cherry-pick
that as a backport, which also fixes the failing test suite.

(From OE-Core rev: 512869aea6dde1bb2374601f7c4d793ac9edaa42)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: gitsm: Allow relative URIs when fetching
Mark Hatle [Tue, 2 Oct 2018 21:08:03 +0000 (17:08 -0400)] 
bitbake: gitsm: Allow relative URIs when fetching

Some repositories may specify a relative submodule path.  If this happens,
it is our responsibility to use the parents URL (ud) and handle any relative
processing ourselves.

(Bitbake rev: fd9893c338df7828b2c01f1d548aa86dfcf7c50a)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: fetch2/gitsm: checkout submodules recursively
Laurent Bonnans [Mon, 1 Oct 2018 14:52:14 +0000 (16:52 +0200)] 
bitbake: fetch2/gitsm: checkout submodules recursively

The new fetcher did not run 'git submodule update' recursively.

(Bitbake rev: 377ed943357b6d47d41d84edbf971741f44affa9)

Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: fetch2/gitsm: handle submodules nested inside subdirs
Laurent Bonnans [Mon, 1 Oct 2018 14:52:13 +0000 (16:52 +0200)] 
bitbake: fetch2/gitsm: handle submodules nested inside subdirs

The new gitsm fetcher assumed that submodules were living directly in
the 'modules' directory, whereas they can be arbitrarily nested inside
subdirectories.

Solve it by first creating the parent of the destination directory for
the symlink and copy steps.

(Bitbake rev: 3dbc84e9c572f43209b79f3656d7dc35a6d982ba)

Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: toaster: custom image enable layer add, protect pre-cloned layers
David Reyna [Thu, 4 Oct 2018 06:10:51 +0000 (23:10 -0700)] 
bitbake: toaster: custom image enable layer add, protect pre-cloned layers

When creating custom image recipes, the layer add for new layers
needs missing xhrLayerUrl data. Also, code is needed to check
and inform user if the newly added layer has not been cloned yet,
and provide helpful error message instead of the current frozen
dialog.

[YOCTO #12887]

(Bitbake rev: b310031972a53d0881a87a627f07bdcf7d9c6b79)

Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: toaster: disable git remote check to allow for firewalls
David Reyna [Mon, 1 Oct 2018 07:45:57 +0000 (00:45 -0700)] 
bitbake: toaster: disable git remote check to allow for firewalls

Toaster users behind firewalls that block "git" access usually
require developers to add remap rules in their "~/.gitconfig"
to remap GIT accesses to HTTP* access. However, there is a
"git remote" test in Toaster that is not aware of such remaps,
resulting in a false error.

For now, disable this nice-to-have check to support this release,
and re-enable when we can add remapping accommodations for this
test.

[YOCTO #12944]

(Bitbake rev: abccd40536b366a418802c5ba8427454c2e3bb2c)

Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: toaster: add 'thud' release to Toaster
David Reyna [Mon, 1 Oct 2018 07:45:56 +0000 (00:45 -0700)] 
bitbake: toaster: add 'thud' release to Toaster

Toaster needs to include new YP-2.6 "Thud" release.

[YOCTO #12943]

(Bitbake rev: 97be301c87a29921b6d9e5029928f8a2871ed127)

Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: toaster: error logs missing for cli builds
David Reyna [Mon, 1 Oct 2018 07:45:55 +0000 (00:45 -0700)] 
bitbake: toaster: error logs missing for cli builds

The method 'store_log_event' in 'buildinfohelper.py' always puts log
messages from CLI builds into the backlog but never takes them out.
The "close" method now forces all backlogged CLI events to be registered.

[YOCTO #12813]

(Bitbake rev: 6458cc4234337f551dfe189b6f8800d8da886c24)

Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: fetch2/gitsm: fix a typo
Laurent Bonnans [Mon, 1 Oct 2018 14:52:12 +0000 (16:52 +0200)] 
bitbake: fetch2/gitsm: fix a typo

'qbareclone' in place of 'bareclone'

(Bitbake rev: 90a3181f1397ae05862f4e89a9bbac606e74504e)

Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: fetch2/git: use correct check to decide if the shallow tarball should be...
Urs Fässler [Wed, 3 Oct 2018 12:04:07 +0000 (12:04 +0000)] 
bitbake: fetch2/git: use correct check to decide if the shallow tarball should be unpacked

The shallow_tarball check is never true due a check on the caller side.
The tarball check is not related to the code on the caller side.

(Bitbake rev: 086eddcf8c7520ff5c52ce2a11ca9bf5b5fe5d7e)

Signed-off-by: Urs Fässler <urs.fassler@bbv.ch>
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: fetch2/git: prevent access to non-existing fullshallow tarball
Urs Fässler [Wed, 3 Oct 2018 12:04:06 +0000 (12:04 +0000)] 
bitbake: fetch2/git: prevent access to non-existing fullshallow tarball

(Bitbake rev: b7f00a8c11672a2ee0408e210fb174cda3384e3f)

Signed-off-by: Urs Fässler <urs.fassler@bbv.ch>
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: fetch2/git: improve readability of method need_update
Urs Fässler [Wed, 3 Oct 2018 12:04:06 +0000 (12:04 +0000)] 
bitbake: fetch2/git: improve readability of method need_update

To improve the readability we extract the different scenarios of why
the clonedir needs an update.

(Bitbake rev: 9038e029f4f0ab413727de76c74248cbb3cdc9ea)

Signed-off-by: Urs Fässler <urs.fassler@bbv.ch>
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoref-manual: Updates to native.bbclass
Scott Rifenbark [Wed, 26 Sep 2018 20:19:10 +0000 (13:19 -0700)] 
ref-manual: Updates to native.bbclass

Fixes [YOCTO #12924]

Naming convention does not apply to the second recipe-creation
method described in this class.  I have moved the note about that
to be under the applicable method (i.e. the first bullet).

Fixed the syntax reversal of the sample name in the example.

(From yocto-docs rev: f7f1a89043156527fa4b426c0322ad225a9f2ff1)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodev-manual: Fixed poor writing
Scott Rifenbark [Mon, 24 Sep 2018 15:40:56 +0000 (08:40 -0700)] 
dev-manual: Fixed poor writing

The bullet item describing what the LAYERSERIES_COMPAT variable was
written poorly (ending in a preposition).  I fixed the sentence to
read more clearly.

(From yocto-docs rev: 35d09727ab527df7d54ac1316c8e825f586ebc9a)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoref-manual: Added "debug-with-srcpkg" option to package split variable
Joshua Watt [Mon, 24 Sep 2018 15:15:30 +0000 (08:15 -0700)] 
ref-manual: Added "debug-with-srcpkg" option to package split variable

Added the "debug-with-srcpkg" option for the PACKAGE_DEBUG_SPLIT_STYLE
variable.

(From yocto-docs rev: 05c51e53059bf7c999a448402d60d0b16d62341b)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoprofile-manual: Provided links for two PACKAGE_DEBUG_SPLIT_STYLE references
Scott Rifenbark [Mon, 24 Sep 2018 15:03:10 +0000 (08:03 -0700)] 
profile-manual: Provided links for two PACKAGE_DEBUG_SPLIT_STYLE references

(From yocto-docs rev: 5b49dc12f8102122c6b634f0c00bbd3c2f921936)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: bitbake-user-manual: Added section on multicong dependencies
Scott Rifenbark [Wed, 5 Sep 2018 17:40:13 +0000 (10:40 -0700)] 
bitbake: bitbake-user-manual: Added section on multicong dependencies

Created a new section to show how to handle dependencies when
you are doing a multiple configuration build.  Put it in the
"Examples" section.

(Bitbake rev: fa42212a6cb7b64add4d6ca0f723a95c908c6b87)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: bitbake-user-manual: Added BBMULTICONFIG support
Scott Rifenbark [Wed, 5 Sep 2018 16:31:24 +0000 (09:31 -0700)] 
bitbake: bitbake-user-manual: Added BBMULTICONFIG support

The BBMULTICONFIG variable is a variable used for BitBake and was
not documented in the BitBake Manual glossary.  I added the
definition.  I also added the variable to the example in the section
describing how to execute builds for multiple configurations.

(Bitbake rev: 836f994ec530ba82c935cb41e006d1f128885dc2)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: bitbake-user-manual: Added new section on multiconfig builds
Scott Rifenbark [Thu, 30 Aug 2018 18:29:12 +0000 (11:29 -0700)] 
bitbake: bitbake-user-manual: Added new section on multiconfig builds

Created a new example.  Also added a figure for the separate
configuration file hierarchy

(Bitbake rev: f2d432674b187685591f60cec3b2980b377c63fe)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoqemux86-directdisk: remove mem= parameter
Anuj Mittal [Wed, 3 Oct 2018 10:27:50 +0000 (18:27 +0800)] 
qemux86-directdisk: remove mem= parameter

Remove usage of a specific amount of memory and let it be controlled by
users. This was the default behaviour before it was changed by commit
3b79d9a78 that switched the wks file to be used for qemux86.

Also fixes the bitbake parsing issues seen because of memory starvation
using build appliance images.

Fixes [YOCTO #12894]

(From OE-Core rev: 18d6b668c52dc881cff7b107420e0de527eecce4)

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: test/fetch: use canonical GitLab URLs
Ross Burton [Fri, 21 Sep 2018 09:58:26 +0000 (10:58 +0100)] 
bitbake: test/fetch: use canonical GitLab URLs

GitLab returns a redirect from /foo to /foo.git which older releases of Git
don't handle when cloning.  These tests don't clone so the redirect works, but
let's be consistant with the structure of these URLs and add the .git suffix.

(Bitbake rev: d47febbae4ff24be259037f12bafbc14b9e2d6a8)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoos-release: avoid multilib expand
Kai Kang [Tue, 2 Oct 2018 16:27:14 +0000 (00:27 +0800)] 
os-release: avoid multilib expand

Add os-release to NON_MULTILIB_RECIPES in multilib.conf that do not do
multilib expand for os-release.

(From OE-Core rev: 361382ca16c276e1e404eab58c0956a2b6d23d7e)

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibcheck: avoid multilib install file conflict
Kai Kang [Tue, 2 Oct 2018 16:27:13 +0000 (00:27 +0800)] 
libcheck: avoid multilib install file conflict

The first line of output of '$CC --version' is written to check_stdint.h
as a comment line. It causes multilib install file conflict.

Do not echo compiler version info to check_stdint.h to fix the issue.

(From OE-Core rev: f9db6ac8044495f9299fb0e962d3d6838bbce08f)

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoman-db: fix multilib install file conflict
Kai Kang [Tue, 2 Oct 2018 16:27:12 +0000 (00:27 +0800)] 
man-db: fix multilib install file conflict

The first line of config file man_db.conf is the package name. It causes
multilib install file conflict. So add a patch to remove the line.

(From OE-Core rev: d138b1ec4aef88a3b0c4f1d698ed2a224c93b889)

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocups: fix multilib install file conflicts
Kai Kang [Tue, 2 Oct 2018 16:27:11 +0000 (00:27 +0800)] 
cups: fix multilib install file conflicts

A comment line of conf file cups-files.conf refers to var @CUPS_SERVERBIN@
is ${libdir} related and then it causes multilib install file conflict.

Remove @CUPS_SERVERBIN@ from the comment line to avoid the conflict.

(From OE-Core rev: ac4df3f83fccfa7dd75d6a913b7ab75e49a7b986)

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoscripts/yocto-check-layer: Don't abort when layer fails to get signatures
Aníbal Limón [Tue, 2 Oct 2018 21:43:23 +0000 (16:43 -0500)] 
scripts/yocto-check-layer: Don't abort when layer fails to get signatures

When execute in multiple layers like meta-openembedded the execution is
aborted when some sublayer fails to get world signatures, so mark it as
an error and continue the execution in the remaining sublayers.

(From OE-Core rev: c8ab558b4fdc77ab54fbb130078c78d43740b4b8)

Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomesa: Disable asm on musl
Khem Raj [Wed, 3 Oct 2018 00:44:05 +0000 (17:44 -0700)] 
mesa: Disable asm on musl

Musl started blocking dlopen of libs with initial-exec references into
dynamic TLS area, via

https://github.com/kraj/musl/commit/5c2f46a214fceeee3c3e41700c51415e0a4f1acd

prior to that commit, musl was loading it and silently letting
subsequent TLS accesses via the miscompiled code clobber memory that
didn't belong to them

This was wrong behavior and it relied on additional space reserved by
libc in TLS space to adjust fo such broken libs, but it also fails
with glibc if the reserved space was already used up

Right fix is that  mesa should be patched to remove all the
initial-exec hacks and use real TLS, and -mtls-dialect=gnu2 (TLSDESC)
should be used on archs it's supported on (i386, x86_64, and aarch64)
to make up for the lost performance, but mesa hardcodes the initial-exec,
so there must be a reason that probably is better known to mesa devs.

but we 'fixed' it for musl by adding --disable-glx-tls for mesa in OE,
which uses pthread_getspecific instead and makes is lot slower.

this caused additional problems with security flags on, it get textrels
in .text segment. Therefore this is 'second fix' to get us through this
warning.

Cause is some unknown part of mesa's x86 assembly code is broken by
readonly text segments

[ YOCTO #12918 ]

(From OE-Core rev: 27c25de38aacc98fe376422bbbee417b2b45a98e)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopango: respect PTEST_ENABLED
Ross Burton [Wed, 3 Oct 2018 12:29:15 +0000 (13:29 +0100)] 
pango: respect PTEST_ENABLED

Don't use the 'ptest' DISTRO_FEATURE because whilst that can be on,
PTEST_ENABLED could have been overwritten.

(From OE-Core rev: 57e41b6178bf1d88a901cda862e3e054148e86ac)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopango: don't disable debugging
Ross Burton [Wed, 3 Oct 2018 11:48:51 +0000 (12:48 +0100)] 
pango: don't disable debugging

By explicitly disabling debugging we get *no* safety checks: the GLib asserts
and checks are all disabled.  This is fine for absolute performance but
something that should be opt-in.

This also breaks the test suite, which relies upon the asserts to work.

(From OE-Core rev: 191f7e2b2fe09ff3276efb68ca91c853291d41f8)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoconnman: neaten patches
Ross Burton [Wed, 3 Oct 2018 11:01:36 +0000 (12:01 +0100)] 
connman: neaten patches

The upstreamable include-tweaking patches contained fragments that should be in
the not-upstreamable musl-specific res_ninit replacement, so move them to the
right patch.

(From OE-Core rev: 18fd5bc97e6b061eec4be0738f20fcbace6bdafe)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agonativesdk-packagegroup-sdk-host.bb: remove nativesdk-dnf
Chen Qi [Sat, 29 Sep 2018 06:13:29 +0000 (14:13 +0800)] 
nativesdk-packagegroup-sdk-host.bb: remove nativesdk-dnf

Currently the dnf command inside SDK does not work. We will
get error message like below:

  ImportError: No module named 'dnf'

So remove it from nativesdk-packagegroup-sdk-host, otherwise,
users will get unpleasant experience if they are working inside
SDK environment on some distros like Fedora.

(From OE-Core rev: a7005a4fc5f29db796b1d258b7c259b9433848ce)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoopenssl: skip ptest case `test_symbol_presence'
Hongxu Jia [Tue, 2 Oct 2018 16:58:28 +0000 (00:58 +0800)] 
openssl: skip ptest case `test_symbol_presence'

The case in ptest use `nm -Pg libcrypto.so' to check symbol presence,
if library is stripped or debug split, the case will fail.

The test case needs debug symbols then we just disable that test.

(From OE-Core rev: 28d3a4cb1ffb508018faebf088eabfd14bcf3113)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoelfutils: fix CVE-2018-16403 & CVE-2018-16402
Hongxu Jia [Fri, 28 Sep 2018 06:29:27 +0000 (14:29 +0800)] 
elfutils: fix CVE-2018-16403 & CVE-2018-16402

(From OE-Core rev: a7c3c897d2cbe7e473a7fb057a3f74ebc9e04023)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agonativesdk-bison: Add to nativesdk-packagegroup-sdk-host and set BISON_PKGDATADIR
He Zhe [Fri, 28 Sep 2018 03:18:24 +0000 (11:18 +0800)] 
nativesdk-bison: Add to nativesdk-packagegroup-sdk-host and set BISON_PKGDATADIR

bison is needed when building kernel. Add it to nativesdk-packagegroup-sdk-host
and set BISON_PKGDATADIR for bison to use its components.

(From OE-Core rev: 8aa27e4eb2f08281329ca1a1da421c6fc376bc8d)

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibtiff: fix CVE-2017-17095
Joe Slater [Wed, 26 Sep 2018 22:51:25 +0000 (15:51 -0700)] 
libtiff: fix CVE-2017-17095

Backport fix from gitlab.com/libtiff/libtiff.
nvd.nist.gov does not yet reference this patch.

(From OE-Core rev: f72c8af3f2c1ec9e4d9ffcf0cc6e7fdf572b21b9)

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglibc: Fix glibc reproducibility issues
Richard Purdie [Wed, 3 Oct 2018 11:20:04 +0000 (12:20 +0100)] 
glibc: Fix glibc reproducibility issues

Currently for non-IA platforms, glibc is not reproducible as host system
paths are being injected into target binaries. These spread through
all target binaries on the system which link to the libc.

Add a patch which injects .file directives into the assembly pieces
and works around this issue until a better solution can be found.

(From OE-Core rev: 4d6fd8178da75f9a1870db290bbe24de5af752c9)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agometa-ide-support: add cmake-native
Chin Huat Ang [Mon, 1 Oct 2018 05:09:45 +0000 (13:09 +0800)] 
meta-ide-support: add cmake-native

Include cmake as part of build tree toolchain so that it is populated
into meta-ide-support's recipe-sysroot-native which is prepended to
$PATH, this ensures cmake-native is picked up first before host cmake.

(From OE-Core rev: 0b51e0b2ac6f3cc95af4061253dc76a91df91349)

Signed-off-by: Chin Huat Ang <chin.huat.ang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglibc: bump SRCREV to latest 2.28
Martin Jansa [Sun, 30 Sep 2018 16:27:37 +0000 (16:27 +0000)] 
glibc: bump SRCREV to latest 2.28

* drop one patch already applied in upstream

* this is still only partial fix for issues with -O0 and the bigger
  issue might be detected in runtime as described in:
  https://sourceware.org/glibc/wiki/FAQ#Why_do_I_get:.60.23error_.22glibc_cannot_be_compiled_without_optimization.22.27.2C_when_trying_to_compile_GNU_libc_with_GNU_CC.3F
  https://sourceware.org/bugzilla/show_bug.cgi?id=19444
  and tested in glibc build:
  https://sourceware.org/git/?p=glibc.git;a=blob;f=include/libc-symbols.h;h=8b9273c13a19f2658105c7997267d9086adae716;hb=HEAD#l74

* restore the anonymous python to trigger fatal error when -O0 is
  used (but don't restore the notes for -O, -O1, -Os

* git log --oneline 3c03baca37fdcb52c3881e653ca392bba7a99c2b..044c96f0d5595aeb0bb4e79355081c5a7f4faca5 | tee
044c96f0d5 Fix misreported errno on preadv2/pwritev2 (BZ#23579)
3a67c72c15 Fix stack overflow in tst-setcontext9 (bug 23717)
2339d6a55e i386: Use ENTRY and END in start.S [BZ #23606]
0ef2f4400c Fix strstr bug with huge needles (bug 23637)
a55e109709 Fix tst-setcontext9 for optimized small stacks.
307d04334d misc: New test misc/tst-gethostid
e7d22db29c Linux gethostid: Check for NULL value from gethostbyname_r [BZ #23679]
1fe2b9ca8a Fix segfault in maybe_script_execute.
0b79004569 regex: Add test tst-regcomp-truncated [BZ #23578]
58559f1443 regex: fix uninitialized memory access
aa8a3e4cde pthread_cond_broadcast: Fix waiters-after-spinning case [BZ #23538]
c87b5bab24 Improve ChangeLog message.
66fdfd57fe Regen RISC-V rvd ULPs
b0aa03dfff RISC-V: Fix rounding save/restore bug.
2f498f3d14 nss_files: Fix file stream leak in aliases lookup [BZ #23521]
bfcfa22589 nscd: Deallocate existing user names in file parser
d05b05d157 error, error_at_line: Add missing va_end calls
4b25485f03 Linux: Rewrite __old_getdents64 [BZ #23497]
726e1554ce hurd: Avoid PLTs for __pthread_get/setspecific
7f11842e74 hurd: Add missing symbols for proper libc_get/setspecific

* update 0031-sysdeps-ieee754-prevent-maybe-uninitialized-errors-w.patch
  based on review comments in upstream and extend it to cover PPC based
  on:
  http://lists.openembedded.org/pipermail/openembedded-core/2018-September/156258.html

* update 0032-sysdeps-ieee754-soft-fp-ignore-maybe-uninitialized-w.patch
  based on review comments in upstream

* add 0033-locale-prevent-maybe-uninitialized-errors-with-Os-BZ.patch
  with a fix for aarch64 build with -Os

* build tested with qemuarm, qemuarm64, qemux86, qemux86-64, qemuppc,
  qemumips, qemumips64 with -O, -O1, -Os.

(From OE-Core rev: f1f38df91975f9b53933c2d2fbdca291d1872d5f)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogo.bbclass: Add -buildmode=pie for non mips arch
Robert Yang [Sat, 29 Sep 2018 09:44:46 +0000 (17:44 +0800)] 
go.bbclass: Add -buildmode=pie for non mips arch

Fixed QA issue like:
WARNING: runc-docker do_package_qa: QA Issue: ELF binary '/path/to/runc-docker/usr/bin/runc' has relocations in .text [textrel]

(From OE-Core rev: 8dcd4e6e791c3a8b8bf5e69dca9bb9c887231d69)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoarchiver: generalise task running when in configured mode
Ross Burton [Fri, 28 Sep 2018 13:45:41 +0000 (14:45 +0100)] 
archiver: generalise task running when in configured mode

When in configured mode the archive will re-run configure itself, but that
doesn't work if there are other tasks that need to run such as cmake's
generate_toolchain_file.

Instead of hard-coding a list of classes and tasks, obtain the list of tasks
preceeding do_configure, filter out ones we don't want to re-run such as
do_patch and do_prepare_recipe_sysroot, and run those too.

(From OE-Core rev: fe26382f94d8cb7d2453d9937aee451b757252b8)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoarchiver: check tasks exist before adding dependencies
Ross Burton [Fri, 28 Sep 2018 13:45:40 +0000 (14:45 +0100)] 
archiver: check tasks exist before adding dependencies

Some recipes don't have do_configure, or have them but are marked as noexec.
Check for their existance before hooking up dependencies.

[ YOCTO #12868 ]

(From OE-Core rev: 5c8aa1f41f04519a8ba3997c0d8e3a71fe270fae)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomultilib: avoid expanding grub and grub-efi to multilib
Robert Yang [Sat, 29 Sep 2018 07:23:10 +0000 (15:23 +0800)] 
multilib: avoid expanding grub and grub-efi to multilib

It doesn't make much sense to expand them to multilib, and there is an error on
qemuarm64 since grub-efi supports arm64, but doesn't support armv7a or armv7ve:

* Fixed:
  MACHINE = "qemuarm64"
  require conf/multilib.conf
  MULTILIBS = "multilib:lib32"
  DEFAULTTUNE_virtclass-multilib-lib32 = "armv7a"
  MACHINE_FEATURES_append = " efi"

  $ bitbake lib32-core-image-minimal

Also introduced a variable NON_MULTILIB_RECIPES in multilib.conf, so that we
can easily add other recipes, such as syslinux if needed.

(From OE-Core rev: 25f7c6c329038b443d36074fff45a30ba3712f7a)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibsdl2: disable sndio explicitly to avoid inconsistent result
Chen Qi [Sat, 29 Sep 2018 06:13:30 +0000 (14:13 +0800)] 
libsdl2: disable sndio explicitly to avoid inconsistent result

Explicitly disable sndio to avoid inconsistent result on different
hosts having or not having libsndio.

This must be done if we take into consideration of eSDK.

I built eSDK on Ubuntu 14.04 which has libsndio installed, and then
installed the eSDK on Fedora 27, which does not have libsndio. In
fact, on Fedora 27, I even cannot find libsndio in its repo.

The problem happens when trying to use `devtool runqemu'. The qemu
binary built on Ubuntu 14.04 needs to link to libsndio, and thus
the following error.

  runqemu - ERROR - Failed to run qemu: /path/to/qemu-system-x86_64:
            error while loading shared libraries: libsndio.so.6.1:
            cannot open shared object file: No such file or directory

So explicitly disable sndio for libsdl2 to avoid the above problem.

(From OE-Core rev: 72c37b06b034e97e7dd7e1a20fb0ff5f96088440)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomime.bbclass: fix do_package_qa_multilib error of lib32-fltk
Changqing Li [Sat, 29 Sep 2018 09:27:50 +0000 (17:27 +0800)] 
mime.bbclass: fix do_package_qa_multilib error of lib32-fltk

fltk.bb inherit mime.bbclass, mime.bbclass add RDEPEND during
populate_package, so need add mlprefix manually.

ERROR: QA Issue: lib32-fltk package lib32-fltk-dev - suspicious
values 'shared-mime-info-data-dev' in RRECOMMENDS [multilib]
ERROR: QA Issue: lib32-fltk package lib32-fltk-bin - suspicious
values 'shared-mime-info-data' in RDEPENDS [multilib]

(From OE-Core rev: 5a26b03c9f73822554ea969e42bca82217dfd3f8)

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomultilib.bbclass: fix do_package_qa_multilib error
Changqing Li [Sat, 29 Sep 2018 09:27:51 +0000 (17:27 +0800)] 
multilib.bbclass: fix do_package_qa_multilib error

lib32-packagegroup-anaconda-support have RDEPENDS to kernel-image,
but kernel-image don't have lib32, so skip it.

ERROR: QA Issue: lib32-packagegroup-anaconda-support package
lib32-packagegroup-anaconda-support - suspicious values 'kernel-image'
in RDEPENDS [multilib]

(From OE-Core rev: 24b8c61bf7dd13f7f371d3a910947a1fac062c6b)

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobind: fix multilib install file conflicts
Kai Kang [Sat, 29 Sep 2018 05:43:48 +0000 (13:43 +0800)] 
bind: fix multilib install file conflicts

It adds ${libdir} to linker options in scripts bind9-config and
isc-config.sh. And then causes install file conflicts when install bind
andl ib32-bind both.

Inherit multilib_script.bbclass to fix this issue.

(From OE-Core rev: d3baeaf09d5d3e7548e5b2ea1b565880ea6ce994)

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogroff: fix multilib install file conflicts
Kai Kang [Sat, 29 Sep 2018 05:43:50 +0000 (13:43 +0800)] 
groff: fix multilib install file conflicts

Perl scripts ${bindir}/{gpinyin, groffer, grog} are ${libdir} related
and cause multilib install file conflicts:

| Error: Transaction check error:
|  file /usr/bin/gpinyin conflicts between attempted installs of groff-1.22.3-r0.core2_64 and lib32-groff-1.22.3-r0.x86
|  file /usr/bin/groffer conflicts between attempted installs of groff-1.22.3-r0.core2_64 and lib32-groff-1.22.3-r0.x86
|  file /usr/bin/grog conflicts between attempted installs of groff-1.22.3-r0.core2_64 and lib32-groff-1.22.3-r0.x86

Inherit multilib_script.bbclass to fix the errors.

(From OE-Core rev: df90cb1f4ee8918b0bc2a281b2d77444a0d037e7)

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython: move sqlite module into python-sqlite
Ross Burton [Fri, 28 Sep 2018 16:06:16 +0000 (17:06 +0100)] 
python: move sqlite module into python-sqlite

The module was accidentally included in python-misc.

Also re-run create_manifest to update the dependencies of python-sqlite3,
causing some whitespace changes.

[ YOCTO #12933 ]

(From OE-Core rev: 9c2b1a0bfc8783052b5dda344cc334b9c13736f5)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython: mark the tests modules as special when updating the manifest
Ross Burton [Fri, 28 Sep 2018 16:06:15 +0000 (17:06 +0100)] 
python: mark the tests modules as special when updating the manifest

We manually maintain the tests package's content and dependencies, so mark is as
special (matching create_manifest3.py).

(From OE-Core rev: b4bd4e7e26bb79223129abb9fb6e22e9045e3707)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython3: move sqlite files into python-sqlite
Ross Burton [Fri, 28 Sep 2018 16:06:14 +0000 (17:06 +0100)] 
python3: move sqlite files into python-sqlite

sqlite3/__init__.py was accidentally included in python3-misc.

(From OE-Core rev: 4e397e16996662bce51608cf5e20448b9803c476)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosysklogd: Re-enable alternatives for syslogd.8 man page
Mark Hatle [Thu, 27 Sep 2018 18:17:46 +0000 (14:17 -0400)] 
sysklogd: Re-enable alternatives for syslogd.8 man page

Other recipes, such as meta-networking inetutils may also provide a man page
for syslogd.8.  Use the alternatives mechanism to select the man page to
display.

This is a partial revert of commit: 988aad01b20c18a8850db0ad6dc547525d94116c

The syslogd tool itself is provided by both recipes in their respective runtime
packages.  In the inet case, it is inetutils-syslogd, which has an appropriate
RCONFLICTS with the syslogd version.  Only one or the other will be installed.
This is the conflict resolution the original commit of
"988aad01b20c18a8850db0ad6dc547525d94116c" was referring to.

HOWEVER, both syslogd and inetutils each only have a singular 'doc' package.
(As do most packages it seems.)  Since this is the case, if both syslogd and
inetutils (not syslogd part) is requested for a configuration -- AND ---
doc-pkgs are configured in, you get an error of conflicting files.

Now does the documentation match whichever package was installed, maybe not...
but this isn't a big deal as it turns out, since most syslogd share a common set
of arguments and those are the things a run-time user would query from the man
pages.

The only alternative is to start spliting up the docs into their relevant
subpackages, as we have the runtime items.  But this then complicates the
doc-pkgs processing and related...

(From OE-Core rev: 55ba9dc1f8698e23d6f59937c1494a91057b165d)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolayer.conf: Drop sumo from LAYERSERIES_CORENAMES
Richard Purdie [Tue, 25 Sep 2018 14:17:17 +0000 (15:17 +0100)] 
layer.conf: Drop sumo from LAYERSERIES_CORENAMES

Prepare for release and drop sumo for the compatible list of layer names.
This will mean other layers need updating to continue to indicate compatibility
with master but that is intentional at this part of the release cycle, we want
layers to indicate compatibility and show they're up to date.

(From OE-Core rev: 9ec5a8a0f86510f7aae572dfb79e8bda73d4e0fc)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglibc-package.inc: correct intention for deleting /usr/lib as needed
Awais Belal [Thu, 27 Sep 2018 14:41:43 +0000 (19:41 +0500)] 
glibc-package.inc: correct intention for deleting /usr/lib as needed

In case the baselib is lib64 we would want to delete /usr/lib
after removing the /usr/lib/locale dir and the implementation
wanted to do that earlier as well but the fault was checking
an already removed dir (/usr/lib/locale) before trying to
remove /usr/lib as that check would always fail.
Now we simply try to delete /usr/lib after deleting
/usr/lib/locale to make sure it deletes cleanly and is empty
at the time of deletion.

(From OE-Core rev: 4dad1568f8f84ec9de4bf7235822f77a8ee6a413)

Signed-off-by: Awais Belal <awais_belal@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agokernel-yocto.bbclass: fix "referenced before assignment" error
Max Kellermann [Mon, 24 Sep 2018 08:05:55 +0000 (10:05 +0200)] 
kernel-yocto.bbclass: fix "referenced before assignment" error

If "scc --configs" fails, do_kernel_configcheck() crashes like this:

      0338:    try:
      0339:        configs = subprocess.check_output(['scc', '--configs', '-o', s + '/.kernel-meta'], env=env).decode('utf-8')
      0340:    except subprocess.CalledProcessError:
  *** 0341:        bb.fatal( "Cannot gather config fragments for audit: %s" % configs)
      0342:
      0343:    try:
      0344:        subprocess.check_call(['kconf_check', '--report', '-o',
      0345:                '%s/%s/cfg' % (s, kmeta), d.getVar('B') + '/.config', s, configs], cwd=s, env=env)
 Exception: UnboundLocalError: local variable 'configs' referenced before assignment

This crash bug was introduced by commit
21de5cc43cfedc703e5bc0515507a6dae36afb74

(From OE-Core rev: 9602c03e8701c972f544001415efa92877622f57)

Signed-off-by: Max Kellermann <max.kellermann@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobash: 4.4.18 -> 4.4.23
Jeroen Hofstee [Mon, 24 Sep 2018 09:08:28 +0000 (11:08 +0200)] 
bash: 4.4.18 -> 4.4.23

Apply point release patches from upstream which includes a fix for
indefinitely spinning process and a zombie by a simple $() statement
in a long running script.

(From OE-Core rev: eb39670fb2fe9735a1a0434c63b64ec66599f850)

Signed-off-by: Jeroen Hofstee <jhofstee@victronenergy.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agonativesdk.bbclass: set consistent staging dirs regardless of multilib
Chen Qi [Thu, 27 Sep 2018 08:48:53 +0000 (16:48 +0800)] 
nativesdk.bbclass: set consistent staging dirs regardless of multilib

For now, the RECIPE_SYSROOT of nativesdk recipes is ${WORKDIR}/recipe-sysroot
if multilib is disabled and ${WORKDIR}/nativesdk-recipe-sysroot if multilib
is enabled. And it's causing chaos. Problems I've met include:
1) 'File Exists' error when doing extend_recipe_sysroot
2) Rebuilding failure about cmake based nativesdk recipes if toggling multilib

In nativesdk.bbclass, We've set MULTILIBS to be "", and we've changed MLPREFIX
to be 'nativesdk-', I think we should also set consistent RECIPE_SYSROOT to be
${WORKDIR}/recipe-sysroot.

Below is an example showing why previous settings will cause do_prepare_recipe_sysroot
failure.

e.g.
A -> C
B -> C
A's RECIPE_SYSROOT is .../recipe-sysroot and B's RECIPE_SYSROOT is
.../nativesdk-recipe-sysroot.
As extend_recipe_sysroot function uses shared manifest, i.e., the same
manifest of C for both A and B, then there must be one of them having
the wrong manifest. And the wrong manifest results in RECIPE_SYSROOT
not cleaned up before installing new components, thus the following error.

  Exception: FileExistsError: [Errno 17] File exists: xxx -> xxx

This happens when toggling multilib and also between nativesdk recipes and
crosssdk, cross-canadian recipes. The latter situation also explains
why choosing ${WORKDIR}/recipe-sysroot instead of ${WORKDIR}/nativesdk-recipe-sysroot.
If we use 'nativesdk-recipe-sysroot', we still need to modify the extend_recipe_sysroot
function to treat crosssdk and cross-canadian as special cases. Using
'recipe-sysroot' does not have this problem.

(From OE-Core rev: 665934a506cc560bfbc469f5ed095e7d54e353a5)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agokernel-devsrc: fix searching for non-existing manifest files
Andrej Valek [Thu, 27 Sep 2018 06:09:33 +0000 (08:09 +0200)] 
kernel-devsrc: fix searching for non-existing manifest files

Even if the do_populate_sysroot have had set-up noexec flag, populate_sdk's
tasks were trying to find .populate_sysroot manifest file. Change noexec
flag settings to delete appreciated task.

WARNING: core-image-minimal-1.0-r0 do_sdk_depends: Manifest
build/tmp/sstate-control/manifest-x86_64_x86_64-nativesdk-kernel-devsrc.populate_sysroot
not found in qemuarm armv5te armv5e armv5t armv5 armv4t armv4 arm allarch x86_64_x86_64-nativesdk (variant '')?

WARNING: core-image-minimal-1.0-r0 do_populate_sdk_ext: Manifest
build/tmp/sstate-control/manifest-x86_64_x86_64-nativesdk-kernel-devsrc.populate_sysroot
not found in qemuarm armv5te armv5e armv5t armv5 armv4t armv4 arm allarch x86_64_x86_64-nativesdk (variant '')?

(From OE-Core rev: fd74848c3c06901a77057ca03f7c01aff08ee34a)

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomesa: Upgrade 18.1.7 -> 18.1.9
Otavio Salvador [Wed, 26 Sep 2018 13:52:37 +0000 (10:52 -0300)] 
mesa: Upgrade 18.1.7 -> 18.1.9

This upgrades mesa to the 18.1.9 stable release.

The changes can be found at:

 https://www.mesa3d.org/relnotes/18.1.8.html
 https://www.mesa3d.org/relnotes/18.1.9.html

(From OE-Core rev: 45508a02aea538d98a8fa92a65f969445cb0c82d)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoutil-linux: Fix packaging of util-linux-unshare
Otavio Salvador [Wed, 26 Sep 2018 13:08:52 +0000 (10:08 -0300)] 
util-linux: Fix packaging of util-linux-unshare

Below commit has added the unshare to alternatives but did not fix the
packaging of the changed file.

,----[ Offending commit ]
| commit 147da8fe7458a38598845958cb358bb094eba57b
| Author: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
| Date:   Thu Jul 5 11:57:19 2018 +0300
|
|     util-linux.inc: add fallocate & unshare to alternatives
|
|     These binaries can be provided by busybox triggering a conflict in
|     do_rootfs so update-alternatives needs to know about them to properly
|     create the symlinks.
|
|     Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
|     Signed-off-by: Ross Burton <ross.burton@intel.com>
`----

(From OE-Core rev: a68f1cacb560632382f8f8ff0c7e03e39a891b29)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: fetch2/gitsm.py: Rework the git submodule fetcher
Mark Hatle [Tue, 25 Sep 2018 17:15:25 +0000 (13:15 -0400)] 
bitbake: fetch2/gitsm.py: Rework the git submodule fetcher

The prior fetcher did not know how to work with MIRRORS, and did not
honor BB_NO_NETWORK and similar.

The new fetcher approach recursively calls 'gitsm' download on each
submodule detected.  This ensures that it will go throug the
standard download process.

Each downloaded submodule is then 'attached' to the original download in
the 'modules' directory.  This mimics the behavior of:

    git submodule init

but there is no chance it will contact the network without permission.

It then corrects upstream reference URIs.

The unpack steps simply copies the items from the downloads to the destdir.
Once copied the submodules are connected and we then run:

    git submodule update

According to the git documentation, git submodule init can and will modify
the project configuration and may connect to the network.  Doing the
work manually prevents this.  (This manual process is allowed based
on my reading of the documentation.)

See: https://git-scm.com/book/en/v2/Git-Tools-Submodules

The small change to the existing test is due to this new code always assuming
the code is from a remote system, and not a 'local' repository.  If this
assumption proves to be incorrect -- code will need to be added to deal
with local repositories without an upstream URI.

(Bitbake rev: 9c6b39adf9781fa6745f48913a97c859fa37eb5b)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: lib/layerindexlib/tests/restapi.py: Fix test cases when BB_SKIP_NETTETS=yes
Mark Hatle [Tue, 25 Sep 2018 15:07:08 +0000 (11:07 -0400)] 
bitbake: lib/layerindexlib/tests/restapi.py: Fix test cases when BB_SKIP_NETTETS=yes

Change the way the network related tests are skipped, based on how the
fetch tests are handled.  We introduce a 'skipIfNoNetwork()' function that
will report skipped tests through the standard unit test reporting system.

[YOCTO #12928]

(Bitbake rev: 7d5af23d560b38fb5558d4ac51c3c9611d6d904f)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: lib/bb/tests/parse.py: Test case was changing chdir
Mark Hatle [Tue, 25 Sep 2018 15:07:06 +0000 (11:07 -0400)] 
bitbake: lib/bb/tests/parse.py: Test case was changing chdir

The test case was changing the current directory, but was never restoring it
to the original location.  This causes occasional failures in later test cases.

(Bitbake rev: 8c222c45148d1f21c2390d66ddd9d3e33b397f05)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: lib/layerindexlib/tests/cooker.py: Fix topdir to use an absolute (real)...
Mark Hatle [Tue, 25 Sep 2018 15:15:52 +0000 (11:15 -0400)] 
bitbake: lib/layerindexlib/tests/cooker.py: Fix topdir to use an absolute (real) path

The test case needs to access test case files.  Different versions of python
may return absolute or relative locations in __file__.  Use the same approach
as other test cases in determining the location of the test files.

(Bitbake rev: 80fe44889a858bddaca230c2d49ccabfcbc236a3)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoboost: build context and coroutine for arm
Vernon Mauery [Tue, 25 Sep 2018 21:17:59 +0000 (14:17 -0700)] 
boost: build context and coroutine for arm

When cross-compiling for arm architecture, bjam fails to properly
detect the abi, which causes a failed conditional to omit the
assembly code that supports the platform.

(From OE-Core rev: 920f2c479c3cf30d92f79dc9098e5915c05cc5e1)

Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agometa-yocto-bsp: bump to the latest linux stable kernel for the non-x86 BSPs
Kevin Hao [Tue, 25 Sep 2018 07:23:17 +0000 (15:23 +0800)] 
meta-yocto-bsp: bump to the latest linux stable kernel for the non-x86 BSPs

Bump to the latest stable kernel for 4.14 and 4.18.

(From meta-yocto rev: f7d36129adfeb0d0d5fe26675e2668c49573a32d)

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: utils: lockfile: Fix infinite loop
Ioan-Adrian Ratiu [Tue, 25 Sep 2018 12:34:19 +0000 (15:34 +0300)] 
bitbake: utils: lockfile: Fix infinite loop

A nasty corner case leads to a hang when utils.lockfile is called from
oe-core's package-manager:deploy_dir_lock (in turn called from
rootfs:_create further up the call stack) with "name" owned by root
and the user running bitbake has no write access.

Because this code runs under pseudo, the UID and EUID of the bitbake
worker process are 0, so the os.access(dirname, os.W_OK) returns True
i.e. it thinks the path is writable when in fact it's not writable.

Only later when trying to open the file an Exception it thrown because
the OS prohibits writing, but the Exception is ignored and the open is
retried leading to an infinite loop.

So this fix is to not ignore the "Permission Denied" exception.

An alternative fix would be to replace the os.access() call with an
try: open() except() at the beginning of the function.

(Bitbake rev: 0cb64d0f85b41b2fa764baf6ff7ea1b13f95004e)

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agorootfs.py: Install -src packages when PACKAGE_DEBUG_SPLIT_STYLE is "debug-with-srcpkg"
Joshua Watt [Tue, 25 Sep 2018 14:43:20 +0000 (09:43 -0500)] 
rootfs.py: Install -src packages when PACKAGE_DEBUG_SPLIT_STYLE is "debug-with-srcpkg"

When the source packages are created, they need to be included in the
debug image created when IMAGE_GEN_DEBUGFS = "1" for it to be usable for
debugging.

[YOCTO #12930]

(From OE-Core rev: 5fc7fbc10bbd3a54df16db275ecd6080bc58f19e)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agositeinfo: generalise siteinfo
Ross Burton [Tue, 25 Sep 2018 13:46:16 +0000 (14:46 +0100)] 
siteinfo: generalise siteinfo

Add a function siteinfo_data_for_machine to look up the data for any arch/os
pair, not just HOST_ARCH-HOST_OS.

(From OE-Core rev: 7429ed8d2a6e48cb3415113ef62348ae211aa189)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomeson: make native-specific patches native-specific
Ross Burton [Tue, 25 Sep 2018 13:43:48 +0000 (14:43 +0100)] 
meson: make native-specific patches native-specific

These two patches are only relevant for builds inside OpenEmbedded, so make them
native-specific.

(From OE-Core rev: 63c89efde45b4aef873e2086b201cad538e42044)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomeson: respect target/native flag distinction in G-I and gtk-doc
Ross Burton [Tue, 25 Sep 2018 15:18:43 +0000 (16:18 +0100)] 
meson: respect target/native flag distinction in G-I and gtk-doc

Remove the previous attempt at this from
0001-gtkdoc-fix-issues-that-arise-when-cross-compiling.patch as it wasn't quite
right, and the rest of the patch is adding the currently not upstreamable runner
option.

Add two new patches to fix both gobject-introspection and gtk-doc using native
flags for target compiles.

(From OE-Core rev: bf41247f52ffd40d91d94d1fc983f8a831b80e48)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomeson: stop Meson using target CFLAGS in native builds
Ross Burton [Tue, 25 Sep 2018 13:43:46 +0000 (14:43 +0100)] 
meson: stop Meson using target CFLAGS in native builds

With the goal of autoconf-compatibility Meson respects $CFLAGS et al in builds.
In cross-compiled build the cross file is the one true source of flags and the
environment isn't used, but in a native build the environment will still be
respected.

As this can lead to target flags being used in the build for native binaries
(including a single native binary inside a target recipe), export
CFLAGS=${BUILD_CFLAGS) et al.

(From OE-Core rev: 4ca0002860dca771836c0ce1c7a92b79a5f2db3f)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomeson: pass correct endian in the cross file
Ross Burton [Tue, 25 Sep 2018 13:43:45 +0000 (14:43 +0100)] 
meson: pass correct endian in the cross file

Meson doesn't care for the value of the endian field, but packages may want to
use it and Meson master now validates the value.

Use siteinfo to obtain the endianism and write the correct value.

(From OE-Core rev: 2f9adf05efdddf8dae9c58976ae56cf32d9e57f0)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomeson: squash the architecture warning patches together
Ross Burton [Tue, 25 Sep 2018 13:43:44 +0000 (14:43 +0100)] 
meson: squash the architecture warning patches together

Instead of one patch to change a warning into an exception and another to change
the message, squash the patches together as neither of the are acceptable
upstream.

(From OE-Core rev: d9e5308ebfe376814f383d61ed00b50e8bad526b)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-yocto/4.14: fix beaglebone configuration warnings
Bruce Ashfield [Tue, 25 Sep 2018 13:59:28 +0000 (09:59 -0400)] 
linux-yocto/4.14: fix beaglebone configuration warnings

Backporting the following fixes from 4.18 to 4.14 to remove beaglebone
configuration warnings:

  1fb0b0379fb5 beaglebone: Clean up the cfg file
  4176e7ded8e1 beaglebone: Drop the needless unsetting of the kernel options
  65c209da574d beaglebone: Drop the obsolete kernel options

(From OE-Core rev: 2adec315b44dad0f99ad55e04b4e3b6608613147)

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agorootfs: always update the opkg index
Ioan-Adrian Ratiu [Tue, 25 Sep 2018 12:38:19 +0000 (15:38 +0300)] 
rootfs: always update the opkg index

The previous logic assumed that if $BUILD_IMAGES_FROM_FEEDS=1 then a
complete set of ipk feeds from which to build the image is already
present under $IPK_FEED_URIS at do_rootfs runtime.

$IPK_FEED_URIS usually contains "file://${DEPLOY_DIR_IPK}" which
renders the above assumption bad because some recipes in the current
build can contain code like do_install[nostamp] = "1" which will cause
rebuilds bumping $PR and invalidating the index.

Even when the index is manually re-created before an image build
("bitbake package-index"), the nostamp will cause failures because the
dependency gets rebuilt before do_rootfs in the "bitbake <image>" call.

So make the opkg rootfs index logic the same as for rpm/deb, to always
update the index in $DEPLOY_DIR_IPK to fix the above nostamp failure.

Feeds outside $DEPLOY_DIR_IPK added to $IPK_FEED_URIS continue to work
as usual, for eg. by using a http:// URI.

(From OE-Core rev: bce90f48d1cc136fdfdf98b3830f5d99e381271b)

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoopenssl10: remove extra slash from libdir path
Mikko Rapeli [Mon, 24 Sep 2018 08:07:33 +0000 (11:07 +0300)] 
openssl10: remove extra slash from libdir path

The configure script ended up creating Makefile with

LIBDIR=/lib

which got leaked into various places including all
pkg-config .pc files where lines like (note the
double slash //):

libdir=${exec_prefix}//lib
...
Libs: -L${libdir} -lcrypto

which causes pkg-config --libs to include the full absolute path
to the recipe specific sysroot. This isn't a big problem
until something like CMake projects start generating
their own .cmake modules using this absolute path and exposing
them to sysroots of other bitbake recipes thus escaping
their recipe specific sysroots.

Then the fun begins when these users of the .cmake module start
to randomly fail builds with error messages like:

/home/builder/src/base/build/tmp/work/corei7-64-linux/package/1.0-r0/recipe-sysroot-native/usr/bin/x86_64-linux/../../libexec/x86_64-linux/gcc/x86_64-linux/7.3.0/ld: cannot find /lib/libpthread.so.0
/home/builder/src/base/build/tmp/work/corei7-64-linux/package/1.0-r0/recipe-sysroot-native/usr/bin/x86_64-linux/../../libexec/x86_64-linux/gcc/x86_64-linux/7.3.0/ld: cannot find /usr/lib/libpthread_nonshared.a
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
WARNING: exit code 1 from a shell command.

As luck has it, this problem goes away by recompiling the recipes
alone but repeats with multiple recipes here and there when full
images are build.

A careful inspection of multi page linker command lines shows
that some linker paramaters point to libraries in a different
recipes sysroot than what bitbake was building when the task
failed.

So, fix is to remove this one extra slash from openssl
library path configuration option. This changes openssl
Makefile to have:

LIBDIR=lib

and all users of LIBDIR variable in the Makefile are already
adding slashes as path separators if that is needed.

With this the generated .pc files have:

libdir=${exec_prefix}/lib

and pkg-config --libs knows to strip the already default
sysroot path away.

This then fixes the generated .cmake files to not include
these absolute paths and fixes the random build failures
when building images.

Thanks to Thomas, Michael and Ross for debugging support!

(From OE-Core rev: d286e91bbdcecef16153313fe5e1e0e0cb469612)

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Cc: Thomas Witt <thomas.witt@bmw.de>
Cc: Michael Ho <michael.ho@bmw.de>
Cc: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglib-2.0: Drop allow /run/media for root patch
Alex Kiernan [Sun, 23 Sep 2018 17:21:00 +0000 (17:21 +0000)] 
glib-2.0: Drop allow /run/media for root patch

Upstream implemented an equivalent fix in:

c672fcc0a8d6 ("gunixmounts: Allow root to display mounts under /run/media/$username")

As a result, this change is completely broken when running as root, as
user_name is unitialised when testing strcmp(user_name, "root") so just
segfaults.

(From OE-Core rev: 547e81b678a616ebbdf2e5cc86e918966fafb894)

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agochecklayer: avoid recursive loop in add_layer_dependencies
Nicolas Dechesne [Mon, 24 Sep 2018 15:07:54 +0000 (17:07 +0200)] 
checklayer: avoid recursive loop in add_layer_dependencies

When Layer A and Layer B depend on each other, then we will end up in a
recursive loop in function recurse_dependencies(). To avoid such situation
before making the recursive function call we check whether or not we have
already processed this layer.

e.g. without this patch, running this script on layers with dependency loops, we are seeing:

$ yocto-check-layer -d  /srv/work/oe/meta-openembedded/
INFO: Detected layers:
INFO: meta-python: LayerType.SOFTWARE, /srv/work/oe/meta-openembedded/meta-python
INFO: meta-filesystems: LayerType.SOFTWARE, /srv/work/oe/meta-openembedded/meta-filesystems
INFO: meta-gnome: LayerType.SOFTWARE, /srv/work/oe/meta-openembedded/meta-gnome
INFO: meta-xfce: LayerType.SOFTWARE, /srv/work/oe/meta-openembedded/meta-xfce
INFO: meta-networking: LayerType.SOFTWARE, /srv/work/oe/meta-openembedded/meta-networking
INFO: meta-initramfs: LayerType.SOFTWARE, /srv/work/oe/meta-openembedded/meta-initramfs
INFO: meta-oe: LayerType.SOFTWARE, /srv/work/oe/meta-openembedded/meta-oe
INFO: meta-multimedia: LayerType.SOFTWARE, /srv/work/oe/meta-openembedded/meta-multimedia
INFO: meta-perl: LayerType.SOFTWARE, /srv/work/oe/meta-openembedded/meta-perl
INFO: meta-webserver: LayerType.SOFTWARE, /srv/work/oe/meta-openembedded/meta-webserver
INFO:
INFO: Setting up for meta-python(LayerType.SOFTWARE), /srv/work/oe/meta-openembedded/meta-python
DEBUG: Processing dependencies core openembedded-layer for layer meta-python.
DEBUG: Processing dependencies core networking-layer for layer meta-oe.
DEBUG: Processing dependencies core openembedded-layer meta-python for layer meta-networking.
DEBUG: Processing dependencies core networking-layer for layer meta-oe.
DEBUG: Processing dependencies core openembedded-layer meta-python for layer meta-networking.
DEBUG: Processing dependencies core networking-layer for layer meta-oe.
DEBUG: Processing dependencies core openembedded-layer meta-python for layer meta-networking.
DEBUG: Processing dependencies core networking-layer for layer meta-oe.
DEBUG: Processing dependencies core openembedded-layer meta-python for layer meta-networking.
DEBUG: Processing dependencies core networking-layer for layer meta-oe.
DEBUG: Processing dependencies core openembedded-layer meta-python for layer meta-networking.
DEBUG: Processing dependencies core networking-layer for layer meta-oe.
DEBUG: Processing dependencies core openembedded-layer meta-python for layer meta-networking.
DEBUG: Processing dependencies core networking-layer for layer meta-oe.
DEBUG: Processing dependencies core openembedded-layer meta-python for layer meta-networking.
DEBUG: Processing dependencies core networking-layer for layer meta-oe.
DEBUG: Processing dependencies core openembedded-layer meta-python for layer meta-networking.
DEBUG: Processing dependencies core networking-layer for layer meta-oe.
DEBUG: Processing dependencies core openembedded-layer meta-python for layer meta-networking.
DEBUG: Processing dependencies core networking-layer for layer meta-oe.
DEBUG: Processing dependencies core openembedded-layer meta-python for layer meta-networking.
DEBUG: Processing dependencies core networking-layer for layer meta-oe.
DEBUG: Processing dependencies core openembedded-layer meta-python for layer meta-networking.
...
...
...
[keep repeating]

This patch fixes this situation.

(From OE-Core rev: 171900b4bcb06416685ce90b63114a10fefe0b94)

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>