]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
6 years agolibsndfile1: remove redundant autoconf seeding
Ross Burton [Tue, 9 Jul 2019 10:50:58 +0000 (11:50 +0100)] 
libsndfile1: remove redundant autoconf seeding

Twelve years ago libsndfile was badly detecting large file handling and
generating bad code[1].  The detection code in libsndfile has had many fixes
since then and this isn't needed anymore (verified by comparing config.h when
built for qemuarm).

[1] https://git.openembedded.org/openembedded/commit/?id=875cfc6f23ae68c6215bf32eb01a486f0387cb92

(From OE-Core rev: 86f3a3ce6a80da66c7a53e7cb794c17230bd466d)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibsndfile1: disable use of sqlite3 by default
Ross Burton [Tue, 9 Jul 2019 10:50:57 +0000 (11:50 +0100)] 
libsndfile1: disable use of sqlite3 by default

sqlite3 is only used by the regression testing tool, which is of limited use
unless you're the developer of libsndfile.  Add a PACKAGECONFIG for this, but
disable by default.

(From OE-Core rev: 5f01497dee9fcd5e5fc6bddb061b6cc55909fe65)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/bbtests: Tweak test bitbake output pattern matching
Richard Purdie [Tue, 9 Jul 2019 10:19:50 +0000 (11:19 +0100)] 
oeqa/bbtests: Tweak test bitbake output pattern matching

The output from bitbake will change slightly soon due to runqueue changes,
adpat the test now to account for both the old and new cases.

(From OE-Core rev: 78fcea74517de4793cc0ecc97bce7f5c7dcd44c0)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocore-image-sato-sdk-ptest: Reduce image padding size due to bootimg 4GB limit
Richard Purdie [Sat, 6 Jul 2019 16:46:28 +0000 (17:46 +0100)] 
core-image-sato-sdk-ptest: Reduce image padding size due to bootimg 4GB limit

This image continues to run out of space on the autobuilder, tweak it a bit
further now the image space requirements were reduced after various ptest
fixes to avoid the error.

(From OE-Core rev: 9f974dd51c18a1387134a9350097dea97ef5f7d0)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoutil-linux:upgrade 2.33.2 -> 2.34
Zang Ruochen [Fri, 5 Jul 2019 08:25:49 +0000 (16:25 +0800)] 
util-linux:upgrade 2.33.2 -> 2.34

-Upgrade from util-linux_2.33.2.bb to util-linux_2.34.bb.

-util-linux/check-for-_HAVE_STRUCT_TERMIOS_C_OSPEED.patch
 Removed since this is included in 2.34.

(From OE-Core rev: c8685430d81b60c38d43ed20e480b2a0942dc768)

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoi2c-tools: Add alternative for i2ctransfer
Adrian Bunk [Thu, 4 Jul 2019 20:21:01 +0000 (23:21 +0300)] 
i2c-tools: Add alternative for i2ctransfer

i2ctransfer is now also provided by busybox.

(From OE-Core rev: 0325aaebb389370f0c5444da1db9c8a179bf97cb)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibdrm: update to 2.4.99
Oleksandr Kravchuk [Thu, 4 Jul 2019 18:18:58 +0000 (20:18 +0200)] 
libdrm: update to 2.4.99

(From OE-Core rev: 09e7f603ac637eab625a0caf23c0efa2d9d6bfb8)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogo.bbclass: separate the ptest logic to go-ptest class
Mingli Yu [Fri, 5 Jul 2019 09:00:23 +0000 (02:00 -0700)] 
go.bbclass: separate the ptest logic to go-ptest class

The current go class includes ptest logic by default
and will make the recipe which inherits go class
to support ptest automatically though maybe the
recipe which inherits go class doesn't plan to
support the ptest.

So separate the ptest logic to another specified
class go-ptest to make the recipe which needs to
inherit go class more flexible with regards to
ptest support.

(From OE-Core rev: 099a2a212fed61a24643da63c74c09cef3ba4030)

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocve-check: Update unpatched CVE matching
Pierre Le Magourou [Fri, 5 Jul 2019 09:40:38 +0000 (11:40 +0200)] 
cve-check: Update unpatched CVE matching

Now that cve-update-db added CPE information to NVD database. We can
check for unpatched versions with operators '<', '<=', '>', and '>='.

(From OE-Core rev: bc0195be1b15bcffe60127bc5e8b7011a853c2ed)

Signed-off-by: Pierre Le Magourou <pierre.lemagourou@softbankrobotics.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocve-update-db: Use NVD CPE data to populate PRODUCTS table
Pierre Le Magourou [Fri, 5 Jul 2019 09:40:37 +0000 (11:40 +0200)] 
cve-update-db: Use NVD CPE data to populate PRODUCTS table

Instead of using expanded list of affected versions that is not
reliable, use the 'cpe_match' node in the 'configurations' json node.

For cve-check to correctly match affected CVE, the sqlite database need to
contain operator_start, operator_end and the corresponding versions fields.

(From OE-Core rev: f7676e9a38d595564922e5f59acbc69c2109a78f)

Signed-off-by: Pierre Le Magourou <pierre.lemagourou@softbankrobotics.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocve-check: Depends on cve-update-db-native
Pierre Le Magourou [Fri, 5 Jul 2019 09:40:36 +0000 (11:40 +0200)] 
cve-check: Depends on cve-update-db-native

do_populate_cve_db is a native task.

(From OE-Core rev: 4078da92b49946848cddebe1735f301af161e162)

Signed-off-by: Pierre Le Magourou <pierre.lemagourou@softbankrobotics.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocve-update-db: Catch request.urlopen errors.
Pierre Le Magourou [Wed, 3 Jul 2019 09:35:06 +0000 (11:35 +0200)] 
cve-update-db: Catch request.urlopen errors.

If the NVD url is not accessible, print a warning on top of the CVE
report, and continue. The database will not be fully updated, but
cve_check can still run on the previous database.

(From OE-Core rev: 0325dd72714f0b447558084f481b77f0ec850eed)

Signed-off-by: Pierre Le Magourou <pierre.lemagourou@softbankrobotics.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogrub-efi.bbclass: take into consideration of multilib
Chen Qi [Thu, 4 Jul 2019 02:38:37 +0000 (10:38 +0800)] 
grub-efi.bbclass: take into consideration of multilib

When enabling multilib and building lib32-IMAGE which
uses grub-efi, the build fails with the following error.

  install: cannot stat '/PROJ_DIR/build/tmp-glibc/deploy/images/intel-x86-64/grub-efi-bootia32.efi': No such file or directory

The grub-efi is in NON_MULTILIB_SCRIPTS. That means we
will use 64bit grub-efi for lib32-IMAGE.

So take into consideration of multilib to fix this problem.

(From OE-Core rev: 3c7b6dfecd22eae369bba54437cdff91fa8542df)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoinsane: use clean_path for the host contamination warnings
Ross Burton [Wed, 3 Jul 2019 15:01:28 +0000 (16:01 +0100)] 
insane: use clean_path for the host contamination warnings

We've a nice function to clean up absolute build paths for display, so use it.

(From OE-Core rev: c2f2ea87592d14e7020eff19c11aae2fb644358a)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogcc-9.1: add back GLIBC_DYNAMIC_LINKER riscv changes
Ricardo Salveti [Wed, 3 Jul 2019 16:04:41 +0000 (13:04 -0300)] 
gcc-9.1: add back GLIBC_DYNAMIC_LINKER riscv changes

The riscv GLIBC_DYNAMIC_LINKER changes were dropped during the gcc 9.1
update, breaking usrmerge support.

(From OE-Core rev: 87a59a79292d2673d084e148a8161a676d87bf18)

Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobuildhistory_analysis: ignore ownership for sysroot diffs
Ross Burton [Thu, 4 Jul 2019 10:36:42 +0000 (11:36 +0100)] 
buildhistory_analysis: ignore ownership for sysroot diffs

The sysroot isn't populated under pseudo, so ownership differences should be ignored.

(From OE-Core rev: 01b816be4adff8f3992c1369810bdcf11a26fd6c)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: bitbake: Add --skip-setscene option
Joshua Watt [Mon, 1 Jul 2019 18:22:23 +0000 (13:22 -0500)] 
bitbake: bitbake: Add --skip-setscene option

Adds an option to skip _setscene only if they would normally be
executed, without ignoring sstate completely.

Previously, '--no-setscene' would allow a build that completely ignored
sstate and _setscene tasks, and '--setscene-only' would allow a build
that only ran _setscene tasks, but there was no option do a build that
would respect tasks previously restored from sstate and build everything
else. Now one can run:

 bitbake --setscene-only IMAGE; bitbake --skip-setscene IMAGE

which is functionally equivalent to:

 bitbake IMAGE

The indented use is to allow a build to complete successfully in the
presence of _setscene task failures by splitting apart the two phases
e.g.:

 (bitbake -k --setscene-only IMAGE || true) && bitbake --skip-setscene IMAGE

(Bitbake rev: 813ba5b7c13b573a0b813b628a819bdbf0627540)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: main: Alter EOFError handling
Richard Purdie [Tue, 2 Jul 2019 10:56:31 +0000 (11:56 +0100)] 
bitbake: main: Alter EOFError handling

If the server shuts down 'cleanly' due to some issue, the socket will close.
A recently reported example was an invalid PRSERV being set. Doing this silently
and without changing the retries count will case the server startup to loop
infinitely.

Change the code so it triggers the usual retries note messages and times
out eventually pointing the user at the cooker log file.

[YOCTO #12984]

(Bitbake rev: bb696636ef0c59f9e9640bb9460e7cce323cc785)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: main: Ensure log messages are printed when no UI starts
Richard Purdie [Tue, 2 Jul 2019 10:28:32 +0000 (11:28 +0100)] 
bitbake: main: Ensure log messages are printed when no UI starts

If the UI hasn't started, no messages are printed to the console
until the server starts. This is confusing, particularly if the server
never starts. Flush the UI queue through the simply handler upon connection
retry so the user sees the messages they're supposed to be seeing.

Also point the user at the logfile for hints about why this may be.

(Bitbake rev: 4b9ab675cebb427ab8ad0c56c7b37eed50a2a39e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: event: Clear ui_queue after handling it
Richard Purdie [Tue, 2 Jul 2019 10:27:15 +0000 (11:27 +0100)] 
bitbake: event: Clear ui_queue after handling it

(Bitbake rev: 55631da1336589e583e8341a655179f7714ab3fe)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodevtool.py: track to clean devtool.conf in test_create_workspace
Chen Qi [Wed, 3 Jul 2019 03:39:48 +0000 (11:39 +0800)] 
devtool.py: track to clean devtool.conf in test_create_workspace

`devtool create-workspace' would create devtool.conf, so track to
clean it up. Otherwise, this devtool.conf file would mess things up.

e.g.
oe-selftest -r devtool && oe-selftest -r devtool -j 2
AssertionError: '/PROJ_DIR/build-selftest-st-15753/workspace/conf/layer.conf' does not exist : Workspace directory not created

This is because the devtool.conf is also copied to build-selftest-st-xxxx
directory, resulting in devtool to create and use workspace specified
in this file.

(From OE-Core rev: a0a96db23686a38235fb0373e75e8b2951216c18)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomultilib_script: fix whitespace
Ross Burton [Tue, 2 Jul 2019 15:22:47 +0000 (16:22 +0100)] 
multilib_script: fix whitespace

The blocks were intended with 3 spaces instead of 4.

(From OE-Core rev: 98fbf61287971319547cc462b7c81f54950df619)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglibc/glibc-locale: Fix do_stash_locale to work with usrmerge and multilibs
Jason Wessel [Tue, 2 Jul 2019 20:16:09 +0000 (13:16 -0700)] 
glibc/glibc-locale: Fix do_stash_locale to work with usrmerge and multilibs

The do_stash_locale was not working consistently across the 4 build
configurations and the multilib, usrmerge configuration would fail
entirely with the obscure message:

| DEBUG: Executing shell function do_prep_locale_tree
| tar: i18n: Cannot stat: No such file or directory
| tar: Exiting with failure status due to previous errors
| gzip: /poky/build/tmp/work/core2-64-poky-linux/glibc-locale/2.29-r0/locale-tree//usr/share/i18n/charmaps/*gz.gz: No such file or directory
| WARNING: /poky/build/tmp/work/core2-64-poky-linux/glibc-locale/2.29-r0/temp/run.do_prep_locale_tree.124690:1 exit 1 from 'gunzip $i'

Here is the 4 build configurations without the patch applied:

A) x86-64 no multilibs, no usrmerge
find ./tmp/work/*/glibc/2.29-r0/stashed-locale -type f |grep -v nscd.service |wc -l
909
B) x86-64 no multilibs, usrmerge
find ./tmp/work/*/glibc/2.29-r0/stashed-locale -type f |grep -v nscd.service |wc -l
909
C) x86-64 multilibs, no usrmerge
find ./tmp/work/*/glibc/2.29-r0/stashed-locale -type f |grep -v nscd.service |wc -l
885
D) x86-64 multilibs, usrmerge
find ./tmp/work/*/glibc/2.29-r0/stashed-locale -type f |grep -v nscd.service |wc -l
864

The issue here is that all the moves should be processed first, then a
copy should be made of the lib directories, but only in the case they
are different when using the usrmerge feature.  Even though the build
worked for the multilib configuration without usrmerge, the content
was not the same.

After applying the patch the same number of files are in all the
configurations.  The list of files was also diffed, after normalizing
the directory names to ensure all the correct files were copied.

Ultimately there are probably additional files that should be pruned
from what is copied to the stated_locale, but the purpose of this
patch is make it 100% consistent between the build types and fix the
builds.

(From OE-Core rev: 33c2e7b4944af22ca47b53d1f85d03426f169bb7)

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglibc-locale: Fix build error with PACKAGE_NO_GCONV = "1"
Jason Wessel [Tue, 2 Jul 2019 20:16:08 +0000 (13:16 -0700)] 
glibc-locale: Fix build error with PACKAGE_NO_GCONV = "1"

When the PACKAGE_NO_GCONV is set to 1 an empty directory is left behind from the do_install rule:

=====
ERROR: glibc-locale-2.29-r0 do_package: QA Issue: glibc-locale: Files/directories were installed but not shipped in any package:
  /usr/lib
  /usr/lib/locale
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
glibc-locale: 2 installed and not shipped files. [installed-vs-shipped]
ERROR: glibc-locale-2.29-r0 do_package: Fatal QA errors found, failing task.
=====

The simple fix is to prune the empty directory.

(From OE-Core rev: 4b3c5ec80e696fc2c7ce7ceba118095f9b8f6439)

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopsmisc: Fix dependency for USE_NLS=no
Jason Wessel [Tue, 2 Jul 2019 20:16:07 +0000 (13:16 -0700)] 
psmisc: Fix dependency for USE_NLS=no

When using USE_NLS="no" in the local.conf psmisc will fail to
compile as follows:

| autoreconf: Entering directory `.'
| autoreconf: running: autopoint --force
| autoreconf: failed to run autopoint: No such file or directory
| autoreconf: autopoint is needed because this package uses Gettext
| ERROR: autoreconf execution failed.

This is because the gettext.bbclass returns gettext-minimal-native for
the host dependency which does not include autopoint.  The autopoint
utility is required to build psmisc, so it needs to list
gettext-native as a dependency.

(From OE-Core rev: 1f163ab451a8a5a5ba1fb426cf5a9eb41f822368)

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoifupdown: update to 0.8.22
Oleksandr Kravchuk [Tue, 2 Jul 2019 20:29:09 +0000 (22:29 +0200)] 
ifupdown: update to 0.8.22

(From OE-Core rev: 57e472c2c86cf23732cd7babc48beeef07b0882d)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython3-mako: update to 1.0.13
Oleksandr Kravchuk [Tue, 2 Jul 2019 20:41:05 +0000 (22:41 +0200)] 
python3-mako: update to 1.0.13

(From OE-Core rev: 499df2b1f5cb793ecbedd0f4e28a5ae02d5e64f9)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogrub2: Drop unneeded code
Richard Purdie [Tue, 2 Jul 2019 10:30:12 +0000 (11:30 +0100)] 
grub2: Drop unneeded code

We no longer export these variables into the environment so we no longer
need this code.

(From OE-Core rev: fd85639bf3092491123e8747e44e7b30648c85cf)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa: Test bitbake --skip-setsecene
Joshua Watt [Mon, 1 Jul 2019 18:23:06 +0000 (13:23 -0500)] 
oeqa: Test bitbake --skip-setsecene

Tests the bitbake --skip-setscene option to verify that it correctly
reuses tasks previously restored from sstate, but doesn't execute new
sstate tasks

(From OE-Core rev: af10c620b1496bf5224d0628a92cb42e9cd362a8)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoltp: file01: Fix in was not recognized
He Zhe [Mon, 22 Apr 2019 08:55:39 +0000 (16:55 +0800)] 
ltp: file01: Fix in was not recognized

Some file has "pie" appending after LSB or MSB, which causes mismatch and the
following error.

"file01 10 TFAIL: in: was not recognized"
..."ELF 64-bit LSB pie executable"...

This patches tunes the regulation expression to include those cases.

(From OE-Core rev: 3602a7affd95a22e7e22c9ed4df731f94ed9b64b)

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agorng-tools: fix rngd blocks system shutdown
Kai Kang [Tue, 2 Jul 2019 08:32:40 +0000 (04:32 -0400)] 
rng-tools: fix rngd blocks system shutdown

fix-rngd-fail-to-stop.patch is added to fix rngd blocks system shutdown
issue. But it causes rngd doesn't release CPU and causes 100% CPU
usage, so drop it.

The block shutdown issue is caused by comit [7cb64b9fe1 rng-tools: start
earlier in the boot process] which updated rngd.service. Revert the
modification of rngd.service.

Update sed expressions in do_install as well which fails to replace
second match in one line.

(From OE-Core rev: edf760682270de36850407c860bea5aea29e30bc)

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobusybox: 1.30.1 -> 1.31.0
Andrej Valek [Tue, 2 Jul 2019 08:06:08 +0000 (10:06 +0200)] 
busybox: 1.30.1 -> 1.31.0

- update to last stable version 1.31.0
- remove and refresh already merged patches

(From OE-Core rev: 1654e8a6ec53799ce55302dfc075d4b1bd5a6cc0)

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodevtool: upgrade: fix handling of errors parsing upgraded recipe
Paul Eggleton [Tue, 2 Jul 2019 04:24:00 +0000 (16:24 +1200)] 
devtool: upgrade: fix handling of errors parsing upgraded recipe

As part of upgrading a recipe we create the upgraded recipe file in the
workspace and then try to parse it so we can then make further
modifications. If for some reason that parsing fails then the failure
was not being handled very well - the broken recipe was being left in
place, breaking parsing until it was removed by hand. Fix that by adding
a call to the cleanup function, and fix the following issues:

* Fix the cleanup function which doesn't look like it has ever worked
  due to a typo in the function call

* Fix double-printing the error message

* Remove usage of DevtoolError in this case (DevtoolError is for simple
  usage errors, not this kind of issue which may be the result of a
  bug).

We're still printing a traceback in this scenario but at least it
doesn't break the build system requiring manual cleanup. I also
introduced a command-line option to preserve the broken upgraded recipe
file(s) for debugging purposes.

(The reproducer for this is "devtool upgrade libnewt-python", however
you need to check out revision b82ea144e144671d3f64c0785ba4beafe905cd4f
or earlier since that recipe has now been absorbed into the libnewt
recipe. The libnewt-python recipe was causing an issue with the upgrade
because it actually included the libnewt recipe using ${PV} in the
include statement, and of course PV was changing in the upgrade.)

Fixes [YOCTO #13404].

(From OE-Core rev: c519ac360796675d7fc09a5250d21f0f5b6236fc)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agorecipetool: ignore zero-length setup.py files
Paul Eggleton [Tue, 2 Jul 2019 04:23:59 +0000 (16:23 +1200)] 
recipetool: ignore zero-length setup.py files

If a setup.py file exists it ought to have something in it before we
consider the source tree to be a Python module and treating it as such.
(A counter-example is https://www.bro.org/downloads/binpac-0.50.tar.gz -
it's not clear why this has a zero-length setup.py in it but we should
pay no attention to it.)

Fixes [YOCTO #12923].

(From OE-Core rev: 548a5c8f42c6ac1b0f7962926d05276e71505678)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolist-packageconfig-flags: print PN instead of P
Paul Eggleton [Tue, 2 Jul 2019 04:12:47 +0000 (16:12 +1200)] 
list-packageconfig-flags: print PN instead of P

P (which is ${PN}-${PV}) isn't terribly useful in this context - we
don't really care what the version is, but we do want to know what the
recipe is so we can find it or set PACKAGECONFIG_pn-<PN> in our
configuration, so display ${PN} instead.

(From OE-Core rev: 7facaacd145c2924414ad63ddce07602a72d02c1)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoscripts/contrib/ddimage: be explicit whether device doesn't exist or isn't writeable
Paul Eggleton [Tue, 2 Jul 2019 04:12:46 +0000 (16:12 +1200)] 
scripts/contrib/ddimage: be explicit whether device doesn't exist or isn't writeable

Make the error messages a little more friendly.

(From OE-Core rev: 36f308b0134c69b439152c2473a274d96b0fee89)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoscripts/contrib/ddimage: replace blacklist with mount check
Paul Eggleton [Tue, 2 Jul 2019 04:12:45 +0000 (16:12 +1200)] 
scripts/contrib/ddimage: replace blacklist with mount check

The blacklist, whilst previously useful for safety, is now becoming
obsolete - on my current system, the main storage is at /dev/nvme* and
if I plug in a USB stick it shows up as /dev/sdb which was previously
blacklisted. To make this more flexible, remove the blacklist and
instead check if the specified device is mounted, has a partition
that is mounted, or is otherwise in use according to the kernel, and
show an appropriate error and quit if so.

To make this robust, also ensure we handle where the specified device is
a symlink to another device.

(From OE-Core rev: 49043de1a7716ad612fb92a2e8a52e43d253c800)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoscripts/contrib/ddimage: fix typo
Paul Eggleton [Tue, 2 Jul 2019 04:12:44 +0000 (16:12 +1200)] 
scripts/contrib/ddimage: fix typo

UNKOWN -> UNKNOWN

(From OE-Core rev: adf632c959e7f6595b697726fe64ddda40b9f249)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibcap-ng: do not use symlink to share files with libcap-ng-python
Paul Eggleton [Tue, 2 Jul 2019 02:35:55 +0000 (14:35 +1200)] 
libcap-ng: do not use symlink to share files with libcap-ng-python

I'm not sure what's going on but having this symlink present is causing
git problems rebasing just by being present; deleting it and checking it
out again does not fix it. In any event this is not the standard way of
sharing files between recipes in the same directory - extending
FILESEXTRAPATHS is, so use that method instead.

(From OE-Core rev: 9ddf0597b4ea40b4c2be2eb0f01f833b5ec23030)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobzip2: update to 1.0.7
Oleksandr Kravchuk [Sun, 30 Jun 2019 22:38:44 +0000 (00:38 +0200)] 
bzip2: update to 1.0.7

Removed patches were upstreamed.

(From OE-Core rev: 3f88fcac8b5d3067bd4079af336eaf823ba00c96)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoltp: diotest4: Let kernel pick an address when calling mmap
Hongzhi.Song [Mon, 1 Jul 2019 09:47:46 +0000 (02:47 -0700)] 
ltp: diotest4: Let kernel pick an address when calling mmap

Error:
diotest4 10 TBROK : diotest4.c:368: can't mmap file: Invalid argument
diotest4 11 TBROK : diotest4.c:368: Remaining cases broken

This is because the manually specified addr from mmap is invalid.
We should let kernel itself pick an addrress.

(From OE-Core rev: c49e4fd1cc573170fd18c2f6313f8d77f5e68470)

Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoefivar: ensure that target security flags are not used to build native code
Ross Burton [Mon, 1 Jul 2019 11:25:19 +0000 (12:25 +0100)] 
efivar: ensure that target security flags are not used to build native code

Also set LDFLAGS=BUILD_LDFLAGS when compiling makeguids to ensure that any
target compiler flags are not passed to the native compiler.

[ YOCTO #13423 ]

(From OE-Core rev: f61e0676aabba9e006c32f0e53c69426368cd4f0)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agonss: upgrade 3.44 -> 3.44.1
Zang Ruochen [Mon, 1 Jul 2019 11:13:55 +0000 (19:13 +0800)] 
nss: upgrade 3.44 -> 3.44.1

Upgrade from nss_3.44.bb to nss_3.44.1.bb.

(From OE-Core rev: 147c7e02fd300efe5f8c0115d127be98348c531f)

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomdam: fix mdmonitor start up failure
Changqing Li [Mon, 1 Jul 2019 05:04:53 +0000 (13:04 +0800)] 
mdam: fix mdmonitor start up failure

1. recently, mdadm has changed to use service file under srcdir,
   so remove the one not be used.
2. add -y option to fix below problem
   mdadm: No mail address or alert command - not monitoring

(From OE-Core rev: e3cd783f42bff8ac50d4dde560ead999efd01a57)

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoimage.bbclass: fix systemd_preset_all
Chen Qi [Mon, 1 Jul 2019 04:15:33 +0000 (12:15 +0800)] 
image.bbclass: fix systemd_preset_all

Check the existence of systemd before using systemctl to preset units.
This is because even if 'systemd' is in DISTRO_FEATURES, it's possible
that systemd is not even installed. e.g. container-test-image in
meta-selftest layer.

As systemd DEPENDS on systemd-systemctl-native, the existence of systemd
also ensures the existence of systemd-systemctl-native.

This would fix the following test case when using systemd as the init
manager.

  containerimage.ContainerImageTests.test_expected_files

Also remove the IMAGE_EXTRADEPENDS setting, as nothing references this
variable.

(From OE-Core rev: c9854a4ab6af9e60b1a588a87b9a062624af6fae)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoperl: fix Upstream-Status tags
Ross Burton [Mon, 1 Jul 2019 09:46:37 +0000 (10:46 +0100)] 
perl: fix Upstream-Status tags

(From OE-Core rev: ec644192c758ce1ec90c487a0fff69d6de0ca55d)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agounfs3: Switch to new upstream location
Adrian Bunk [Mon, 1 Jul 2019 08:53:09 +0000 (11:53 +0300)] 
unfs3: Switch to new upstream location

This uses the same code revision in the new repository.

(From OE-Core rev: c7d9991b7536233f33226a729edaf3ba816abc73)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoquilt: update to 0.66
Oleksandr Kravchuk [Mon, 1 Jul 2019 03:00:42 +0000 (05:00 +0200)] 
quilt: update to 0.66

(From OE-Core rev: 73d6034f6b84c80d39aac8099b62322f4379de37)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoruby: update to 2.5.5
Oleksandr Kravchuk [Mon, 1 Jul 2019 02:52:11 +0000 (04:52 +0200)] 
ruby: update to 2.5.5

(From OE-Core rev: f2c5659968dcdb44ceaf030b45b1e3baf3be7a7e)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobc: dc: fix exit code of q command
Li Zhou [Mon, 1 Jul 2019 02:07:16 +0000 (10:07 +0800)] 
bc: dc: fix exit code of q command

The exit code for "echo q | dc" is 1 for dc-1.4.1;
while the exit code for "echo q | dc" is 0 for dc-1.4.

Here is the answer from ken@gnu.org:
dc-1.4 was right.  There was a rewrite of a chunk of code for 1.4.1 to
fix a corner case in the Q command, and somehow the placement of the
clean-up label for the 'q' command got misplaced on the error-handling
branch instead of the clean-exit branch.  The patch below fixes this
(it is committed for whenever the next bc/dc release gets made).

Thanks for the report,
        --Ken Pizzini

(From OE-Core rev: ab16d9ccaf824fbda5e43c5b3cbdc43ec70be87f)

Signed-off-by: Li Zhou <li.zhou@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobison: update to 3.4.1
Oleksandr Kravchuk [Sun, 30 Jun 2019 23:17:21 +0000 (01:17 +0200)] 
bison: update to 3.4.1

(From OE-Core rev: b97a5a37262a8d7ce45ae75d861e87dfe28fe0df)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoRevert "pigz: Add debug for autobuilder errors"
Richard Purdie [Sun, 30 Jun 2019 22:33:12 +0000 (23:33 +0100)] 
Revert "pigz: Add debug for autobuilder errors"

This reverts commit b08976456c8ab7f29efd83644ce42746c0d6501b.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopackage: Build pkgdata specific to the current recipe
Richard Purdie [Fri, 28 Jun 2019 15:45:53 +0000 (16:45 +0100)] 
package: Build pkgdata specific to the current recipe

This switches the code to build pkgdata specific to the current recipe
which means that its filtered to the recipes dependencies and can perform
better as we can drop the lockfile.

It uses a similar method to the staging code to do this, using BB_TASKDEPDATA
to construct a list of packagedata task output which this recipe should "see".

The original pkgdata store is left unaltered so existing code works.

The lock file was there to prevent files disappearing as they were read or as
directories were listed. Since we have a copy of the data and only access output
from completed tasks (as per their manifests), we can remove the lock.

The lock was causing starvation issues on systems with parallelism.

There was also a potential determinism problem as the current code could "see"
data from recipes which it doesn't depend upon.

[YOCTO #13412]

(From OE-Core rev: 1951132576bfb95675b4879287f8b3b7c47524fa)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agostaging: Code cleanup
Richard Purdie [Fri, 28 Jun 2019 16:49:41 +0000 (17:49 +0100)] 
staging: Code cleanup

multiconfig dependencies no longer appear in BB_TASKDEPDATA so we can drop
this code.

(From OE-Core rev: 288b04c8a31fcf257219a57e23663b74178c75f2)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomobile-broadband-provider-info: upgrade 20190116 -> 20190618
Alexander Kanavin [Fri, 28 Jun 2019 13:24:53 +0000 (15:24 +0200)] 
mobile-broadband-provider-info: upgrade 20190116 -> 20190618

The new version is using xsltproc utility

(From OE-Core rev: a8c370a9ff2c6f7d7d516ef69cc2c4c8b8279f61)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogtk-doc: correct the style.css permissions
Alexander Kanavin [Fri, 28 Jun 2019 13:24:57 +0000 (15:24 +0200)] 
gtk-doc: correct the style.css permissions

style.css was set to write-only during build which means it wasn't actually
installed or packaged (with only webkitgtk producing a build failure!),
which in turn means generated documentation was broken.

(From OE-Core rev: 946516f5312edaa62fd20162d8c7596f77e9ca64)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agort-tests: exclude 1.4 version from upstream check as well
Alexander Kanavin [Fri, 28 Jun 2019 13:24:52 +0000 (15:24 +0200)] 
rt-tests: exclude 1.4 version from upstream check as well

(From OE-Core rev: 4769f94a2cc493cdf77b9e6a41a2e9b6a9c8f52f)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibsolf: update to 0.7.5
Oleksandr Kravchuk [Sat, 29 Jun 2019 18:21:19 +0000 (20:21 +0200)] 
libsolf: update to 0.7.5

Removed patch was upstreamed.

(From OE-Core rev: 60fb828e581c5e109f19625b05f5bf7363f5c70d)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoexpat: update to 2.2.7
Oleksandr Kravchuk [Sat, 29 Jun 2019 17:52:07 +0000 (19:52 +0200)] 
expat: update to 2.2.7

Removed patch is not appropriate anymore.

(From OE-Core rev: 485db07c099845ec106cf555065676efef61030f)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibinput: update to 1.13.4
Oleksandr Kravchuk [Sat, 29 Jun 2019 17:28:08 +0000 (19:28 +0200)] 
libinput: update to 1.13.4

(From OE-Core rev: 0e71fea258ffa53a4d7a693d7cac4a0e9f8b5ee7)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoapt: update to 1.2.31
Oleksandr Kravchuk [Sat, 29 Jun 2019 16:53:25 +0000 (18:53 +0200)] 
apt: update to 1.2.31

(From OE-Core rev: b414b95a0e0fc5b5e1403272eaaf59e0bec6da06)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodpkg: update to 1.19.7
Oleksandr Kravchuk [Sat, 29 Jun 2019 16:39:58 +0000 (18:39 +0200)] 
dpkg: update to 1.19.7

(From OE-Core rev: 4b312777a2e154a6d86311981299bc16f23f053c)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobabeltrace: update to 1.5.7
Oleksandr Kravchuk [Sat, 29 Jun 2019 16:29:31 +0000 (18:29 +0200)] 
babeltrace: update to 1.5.7

(From OE-Core rev: 2743f3ae192f84be6b216e5d33928e123e82007d)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglibc: Fix multilibs + usrmerge builds
Jason Wessel [Sun, 30 Jun 2019 02:15:48 +0000 (19:15 -0700)] 
glibc: Fix multilibs + usrmerge builds

The build of glibc fails when you have multilibs enabled + the distro
feature usrmerge.  Here is an example configuration:

===
MACHINE = "qemux86-64"
VIRTUAL-RUNTIME_init_manager = "systemd"
DISTRO_FEATURES_append = " systemd "
DISTRO_FEATURES_append += " usrmerge"

require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "x86"
===

This will fail with the following error:

NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: glibc-2.28-r0 do_poststash_install_cleanup: Function failed: do_poststash_install_cleanup (log file is located at /poky/build/tmp/work/core2-64-poky-linux/glibc/2.28-r0/temp/log.do_poststash_install_cleanup.107893)
ERROR: Logfile of failure stored in: /poky/build/tmp/work/core2-64-poky-linux/glibc/2.28-r0/temp/log.do_poststash_install_cleanup.107893

The fix is to not perform the rmdir check when using the multilib + usr/merge, namely:

if [ "${libdir}" != "${exec_prefix}/lib" ] && [ "${root_prefix}/lib" != "${exec_prefix}/lib" ]; then

This will evaluate as follows (collecting the output from bitbake -e glibc)

* no multilibs no usrmerge
        if [ "/usr/lib" != "/usr/lib" ] && [ "/lib" != "/usr/lib" ]; then
* no multilibs yes usrmerge
        if [ "/usr/lib" != "/usr/lib" ] && [ "/usr/lib" != "/usr/lib" ]; then
* yes multilibs no usrmerge
        if [ "/usr/lib64" != "/usr/lib" ] && [ "/lib" != "/usr/lib" ]; then
* yes multilibs yes user merge
        if [ "/usr/lib64" != "/usr/lib" ] && [ "/usr/lib" != "/usr/lib" ]; then

(From OE-Core rev: c5640f8c8663c8f81125bf7c5bc2ef8e9fe55315)

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopigz: Add debug for autobuilder errors
Richard Purdie [Thu, 27 Jun 2019 11:16:21 +0000 (12:16 +0100)] 
pigz: Add debug for autobuilder errors

(From OE-Core rev: b08976456c8ab7f29efd83644ce42746c0d6501b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopackage_rpm.bbclass: python2 -> python3
Robert Yang [Fri, 28 Jun 2019 12:23:41 +0000 (20:23 +0800)] 
package_rpm.bbclass: python2 -> python3

(From OE-Core rev: 8208fffc95b46e03bab967462c17d83e0a687d50)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa: Cleanup /usr/bin/env python
Robert Yang [Fri, 28 Jun 2019 12:23:40 +0000 (20:23 +0800)] 
oeqa: Cleanup /usr/bin/env python

(From OE-Core rev: eb79217b8761816a21c8f7bed3c5379c1b9230ea)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoext-sdk-prepare.py: python2 -> python3
Robert Yang [Fri, 28 Jun 2019 12:23:39 +0000 (20:23 +0800)] 
ext-sdk-prepare.py: python2 -> python3

This script is python3 indeed.

(From OE-Core rev: 62443240d01ba4b696a8dbab9e60774a84662cdd)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agowic: python2 -> python3
Robert Yang [Fri, 28 Jun 2019 12:23:38 +0000 (20:23 +0800)] 
wic: python2 -> python3

(From OE-Core rev: 9303f92599343adf645fee5d2434fadd97e7febb)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoksum.py: python -> python3
Robert Yang [Fri, 28 Jun 2019 12:23:37 +0000 (20:23 +0800)] 
ksum.py: python -> python3

* Testinfo:
  In kernel's builddir:
  $ /path/to/oe-core/scripts/tiny/ksum.py

Collecting object files [DONE]

Totals:

vmlinux:
    text        data            bss             total
    10933110    3824470         1605632         16363212

modules (2004):
    text        data            bss             total
    46144408    3047516         167580          49359504

vmlinux + modules:
    text        data            bss             total
    57077518    6871986         1773212         65722716

(From OE-Core rev: a55955f337b4cebf557f96f5dd7c2edc0bfa6d8a)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: bitbake: toaster:tests: python -> python3
Robert Yang [Thu, 27 Jun 2019 06:59:48 +0000 (14:59 +0800)] 
bitbake: bitbake: toaster:tests: python -> python3

(Bitbake rev: 683c24788d96176699a585055eb62d8a71830a12)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: bitbake: lib: Cleanup /usr/bin/env python
Robert Yang [Thu, 27 Jun 2019 06:59:47 +0000 (14:59 +0800)] 
bitbake: bitbake: lib: Cleanup /usr/bin/env python

(Bitbake rev: cc712f3257904960247a7532cfc4611f3dccd36c)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: tests/fetch.py: add missing skipIfNoNetwork tags to tests that try to git...
Luca Boccassi [Wed, 26 Jun 2019 15:12:17 +0000 (16:12 +0100)] 
bitbake: tests/fetch.py: add missing skipIfNoNetwork tags to tests that try to git clone

test_git_submodule_dbus_broker, test_git_submodule_CLI11, test_git_submodule_update_CLI11,
test_git_submodule_aktualizr and test_git_submodule_iotedge try to access the network via
git clone, which fails when there is no network available. Add the relevant skip tag.

(Bitbake rev: 9b0538753da0514e6518723dac537007abf7a649)

Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython3: Fix .pyc file reproduciblility
Joshua Watt [Thu, 27 Jun 2019 13:53:17 +0000 (08:53 -0500)] 
python3: Fix .pyc file reproduciblility

Applies a patch to python that makes the pre-compiled .pyc files
generated during the build reproducible.

(From OE-Core rev: 148d54f91f43147f31b16a7c2cb1ade385832366)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoeudev: update to 3.2.8
Oleksandr Kravchuk [Thu, 27 Jun 2019 16:08:00 +0000 (18:08 +0200)] 
eudev: update to 3.2.8

(From OE-Core rev: e2ae59520e3df661aced4f67fda630cca6aaf6f8)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogit: update to 2.22.0
Oleksandr Kravchuk [Thu, 27 Jun 2019 16:02:08 +0000 (18:02 +0200)] 
git: update to 2.22.0

(From OE-Core rev: 7e4d2d2792b70edf4d0a6c2e3d5278d9138c8709)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython3-pygobject: update to 3.32.2
Oleksandr Kravchuk [Thu, 27 Jun 2019 15:59:32 +0000 (17:59 +0200)] 
python3-pygobject: update to 3.32.2

(From OE-Core rev: 26b7298d2f34b5a20cf22b449ce362987b2b52f9)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython3-pbr: update to 5.3.1
Oleksandr Kravchuk [Thu, 27 Jun 2019 15:52:42 +0000 (17:52 +0200)] 
python3-pbr: update to 5.3.1

(From OE-Core rev: 9bb4c8b5b0f0bec15fa80f1d3e55a34ee13c08bb)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython3-mako: update to 1.0.12
Oleksandr Kravchuk [Thu, 27 Jun 2019 15:51:19 +0000 (17:51 +0200)] 
python3-mako: update to 1.0.12

License checksum changed due to madified copyright year.

(From OE-Core rev: 9225797184c877dd22aa5f96503a182a548303ff)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoautoconf-archive: update to 2019.01.06
Oleksandr Kravchuk [Thu, 27 Jun 2019 15:44:15 +0000 (17:44 +0200)] 
autoconf-archive: update to 2019.01.06

(From OE-Core rev: 5ef547b9ba4f7a2836dea43013a450c7ca13e6e8)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibxt: update to 1.2.0
Oleksandr Kravchuk [Thu, 27 Jun 2019 15:40:54 +0000 (17:40 +0200)] 
libxt: update to 1.2.0

License checksum changed due to modified copyright year.

Removed patch was upstreamed.

(From OE-Core rev: 4a77ac273cb16167fff8fcb9831434d9a25f8fcf)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibxi: update to 1.7.10
Oleksandr Kravchuk [Thu, 27 Jun 2019 15:33:03 +0000 (17:33 +0200)] 
libxi: update to 1.7.10

(From OE-Core rev: d5290687f261e1f4ee35b8c27b2d886fe09b88d8)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibinput: update to 1.13.3
Oleksandr Kravchuk [Thu, 27 Jun 2019 15:31:28 +0000 (17:31 +0200)] 
libinput: update to 1.13.3

(From OE-Core rev: e4c316699b3937d92d97991aad4f64e9f6f8c132)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogawk: update to 5.0.1
Oleksandr Kravchuk [Thu, 27 Jun 2019 15:16:06 +0000 (17:16 +0200)] 
gawk: update to 5.0.1

(From OE-Core rev: 34dd24a00adbce5f10b56028af29db96b2910bb6)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocve-update-db: do_populate_cve_db depends on do_fetch
Pierre Le Magourou [Thu, 27 Jun 2019 14:59:17 +0000 (16:59 +0200)] 
cve-update-db: do_populate_cve_db depends on do_fetch

To be able to populate NVD database on a fetchall
(bitbake <image> --run-all=fetch), set the do_populate_cve_db task to be
executed before do_fetch.

Do not get CVE_CHECK_DB_DIR, CVE_CHECK_DB_FILE and CVE_CHECK_TMP_FILE
variable because do_populate_cve_db can be called in a context where
cve-check class is not loaded.

(From OE-Core rev: 975793e3825a2a9ca6dc0e43577f680214cb7993)

Signed-off-by: Pierre Le Magourou <pierre.lemagourou@softbankrobotics.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoencodings: update to 1.0.5
Oleksandr Kravchuk [Thu, 27 Jun 2019 14:44:27 +0000 (16:44 +0200)] 
encodings: update to 1.0.5

(From OE-Core rev: f65013af8e556b8e56001fae147aac890fb1836c)

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobuildhistory: report sysroot changes
Ross Burton [Fri, 26 Apr 2019 10:10:27 +0000 (11:10 +0100)] 
buildhistory: report sysroot changes

Now that the sysroot is written into the build history, write it out.

(From OE-Core rev: e9df98ba63e6d2baefee550170dbdd11ed2ad03a)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobuildhistory: write the contents of the sysroot
Ross Burton [Thu, 25 Apr 2019 23:35:59 +0000 (00:35 +0100)] 
buildhistory: write the contents of the sysroot

Changes to the sysroot are just as interesting during development, so write the
file listing for the sysroot to buildhistory too.

(From OE-Core rev: b3ac82a27ab70ed6996fe3087a578ac637820329)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoltp: fix shmctl01 failure when executed.
Hongzhi.Song [Thu, 27 Jun 2019 08:23:06 +0000 (01:23 -0700)] 
ltp: fix shmctl01 failure when executed.

schmctl01 fails with following error:
[shmctl01    5  TFAIL  :  shmctl01.c:171: shmctl01 call failed - errno =
22 : Invalid argument]

Backport the patch from upstream can fix it.

(From OE-Core rev: 337e6923375e7cf568a66b299b6c3461f33a903c)

Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglib-2.0: Update to 2.60.4
Peter Kjellerstedt [Thu, 27 Jun 2019 05:00:49 +0000 (07:00 +0200)] 
glib-2.0: Update to 2.60.4

* For changes, see:
  https://gitlab.gnome.org/GNOME/glib/blob/glib-2-60/NEWS
* Remove backported CVE-2019-12450.patch.

(From OE-Core rev: 82714d374744d55f57d48fd08971e8b952a7bcdd)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodevtool: warn user about multiple layer having the same base name
Chen Qi [Thu, 27 Jun 2019 03:14:55 +0000 (11:14 +0800)] 
devtool: warn user about multiple layer having the same base name

Currently `devtool finish RECIPE meta' will silently succeed even
if there are multiple layers having the same base name of 'meta'.
e.g. meta layer from oe-core and meta layer from meta-secure-core.

We should at least give user a warning in such case. With the patch,
we will get warning like below.

WARNING: Multiple layers have the same base name 'meta', use the first one '<PROJ_DIR>/oe-core/meta'.
WARNING: Consider using path instead of base name to specify layer:
    <PROJ_DIR>/oe-core/meta
  <PROJ_DIR>/meta-secure-core/meta

(From OE-Core rev: 2c8740f543c38dbaef3345e40827ef48b3f75405)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopackage.bbclass: fix directories setuid and setgid bits
Joël Esponde [Thu, 27 Jun 2019 09:12:04 +0000 (11:12 +0200)] 
package.bbclass: fix directories setuid and setgid bits

populate_packages relies on ``mkdir`` to both create a directory and set
its permissions. However, ``mkdir`` honors the ``umask`` value.
Therefore, some bits may be lost in the operation. In our case, the
setgid bit on the directories were lost.

This commit fixes this by having a distinct call to create the directory
and to set the permissions.

(From OE-Core rev: 0f82b53a650e76e0129fae6ce7581a41d042315b)

Signed-off-by: Jean-Tiare Le Bigot <jean-tiare.le-bigot@easymile.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobusybox: Fix typo in syslog initscript
Richard Purdie [Thu, 27 Jun 2019 12:27:43 +0000 (13:27 +0100)] 
busybox: Fix typo in syslog initscript

The change to ensure the existing processes shut down had a clear copy
and paste error. This really fixes syslog to avoid errors on restart.

(From OE-Core rev: 9f674a88c781c7092d5b3460922a1579b9fe4bf9)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/runtime/syslog: Add delay to test to avoid failures
Richard Purdie [Wed, 26 Jun 2019 16:24:19 +0000 (17:24 +0100)] 
oeqa/runtime/syslog: Add delay to test to avoid failures

On a loaded builder we've seen the log message not make it to the log file
before the ssh command completes. Add a short delay to try and ensure
this does happen. There is unforunately no way to flush syslog in all
cases we test.

(From OE-Core rev: 66322b689e46520647e2d94d5e3f3ce282a41247)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/runtime/oesyslog: systemd syslog restart doesn't change pid
Richard Purdie [Wed, 26 Jun 2019 13:04:31 +0000 (14:04 +0100)] 
oeqa/runtime/oesyslog: systemd syslog restart doesn't change pid

The systemd-journald process doesn't restart/change the way syslog
does, don't test/error in this case.

(From OE-Core rev: be48190dca0643df4881624d29c2eae453395919)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/runtime/syslog: Improve test debug messages
Richard Purdie [Wed, 26 Jun 2019 09:59:37 +0000 (10:59 +0100)] 
oeqa/runtime/syslog: Improve test debug messages

Its useful to test whether the restart command returned an error code and
exit early from the test if so.

Also add different messages to tell if the syslog processes didn't
die or didn't restart.

(From OE-Core rev: f19e95b8571a0d8213c4dec0da056e3d243fbbd1)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobusybox: Improve syslog restart handling
Richard Purdie [Wed, 26 Jun 2019 13:01:33 +0000 (14:01 +0100)] 
busybox: Improve syslog restart handling

We're seeing races on the autobuilder where syslogd fails to shut down
fast enough to be restarted leading to failures.

Add some checks to ensure when restarting that processes exit before
being restarted.

(From OE-Core rev: 04de384256ad321834cf5e3dbb9a8d3ea2ab66c2)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosysklogd: Fix init script races
Richard Purdie [Mon, 24 Jun 2019 15:41:45 +0000 (16:41 +0100)] 
sysklogd: Fix init script races

In testing we're seeing sysklogd fail to restart klogd since the original
process hasn't stopped before the new one is started. This means a restart
can result in no process running which is clearly not desireable.

Add extra code to ensure this works correctly. Busybox start-stop-daemon
seems particularly open to this kind of issue, the dpkg version maybe
less so if timeout options are used (which we don't use).

(From OE-Core rev: dc1fcb61f7d89cd066ace2edc143e7a2d329e033)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooe_syslog.py: Handle syslogd/klogd restart race
Jon Mason [Tue, 25 Jun 2019 16:06:58 +0000 (12:06 -0400)] 
oe_syslog.py: Handle syslogd/klogd restart race

syslogd and klogd can occasionally take too long to restart, which
causes tests to fail by starting before the log daemons are ready.  To
work around this problem, poll for up to 30 seconds on the processes to
verify the old ones are killed and the new ones are up and running.
Similarly, add checks for rsyslogd and systemd-journald to possibly
catch issues with those daemons.

[YOCTO #13379]

(From OE-Core rev: dc73872b828ea271678fa624c15199364a5cba9e)

Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agotarget-sdk-provides-dummy: add libperl.so.5 64bit
Chen Qi [Tue, 25 Jun 2019 06:45:37 +0000 (14:45 +0800)] 
target-sdk-provides-dummy: add libperl.so.5 64bit

With postgresql added to IMAGE_INSTALL, we will get the following
error when building for 64bit BSPs.

  Problem: package postgresql-11.3-r0.corei7_64 requires libperl.so.5()(64bit), but none of the providers can be installed

A previous patch has added libperl.so.5 to DUMMY_PROVIDES, but this
is not enough. Because for 64bit BSP, it should also provide libperl.so.5()(64bit).

(From OE-Core rev: ae1414fcbe41a70a56021c4d240976dae0adad33)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>