]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
7 years agotestimage: Ensure full logs are shown for failures
Richard Purdie [Fri, 10 Nov 2017 14:41:32 +0000 (14:41 +0000)] 
testimage: Ensure full logs are shown for failures

Currently, the fact an error message is shown means the rest of the
task logs are suppressed. In this case we don't want that as it hides
the real errors and useful information. Therefore override this behaviour.

(From OE-Core rev: 7058ac23c5ce32fbdc4be6c05f85550e1fd9fe77)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agomaintainers.inc: add Otavio Salvador for go-dep
Alexander Kanavin [Tue, 10 Oct 2017 13:05:10 +0000 (16:05 +0300)] 
maintainers.inc: add Otavio Salvador for go-dep

(From OE-Core rev: f706448952c942d25ea96cda09a700d2c5c63520)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agomaintainers.inc: add Khem Raj for libmnl
Alexander Kanavin [Tue, 10 Oct 2017 13:03:32 +0000 (16:03 +0300)] 
maintainers.inc: add Khem Raj for libmnl

(From OE-Core rev: 1f7ccccfba8d5895ecbd72898514d9f3d8fd79dc)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoglew: update to 2.1.0
Alexander Kanavin [Tue, 10 Oct 2017 12:22:47 +0000 (15:22 +0300)] 
glew: update to 2.1.0

(From OE-Core rev: 2c45465c4f6ebfe67bd45071abcefac7265a1caf)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoatk: update to 2.26.0
Alexander Kanavin [Tue, 10 Oct 2017 12:21:31 +0000 (15:21 +0300)] 
atk: update to 2.26.0

Remove --disable-glibtest as ./configure no longer has it.

(From OE-Core rev: 97dbe812e5f964e2d25ae7e8014ca07b7bdc6318)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoat-spi2-atk: update to 2.26.0
Alexander Kanavin [Tue, 10 Oct 2017 12:19:43 +0000 (15:19 +0300)] 
at-spi2-atk: update to 2.26.0

(From OE-Core rev: 8b69b8d0fc16c768f9005941bde6c2436b26ebe9)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoat-spi2-core: update to 2.26.0
Alexander Kanavin [Tue, 10 Oct 2017 12:18:04 +0000 (15:18 +0300)] 
at-spi2-core: update to 2.26.0

Drop 0001-nls.m4-Take-it-from-gettext-0.15.patch as it's now
upstreamed.

Remove --disable-xevie option:
https://github.com/GNOME/at-spi2-core/commit/644096a28a47bdf5c6e0c34c9cd5b944df059925

(From OE-Core rev: f7c3b14238b7e2b84d5a972bc3dfda29de45ad3e)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoclutter-gtk-1.0: update to 1.8.4
Alexander Kanavin [Tue, 10 Oct 2017 12:11:39 +0000 (15:11 +0300)] 
clutter-gtk-1.0: update to 1.8.4

(From OE-Core rev: ac66754a84fa8317027861c2771434280a696395)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibrsvg: update to 2.40.19
Alexander Kanavin [Tue, 10 Oct 2017 12:10:35 +0000 (15:10 +0300)] 
librsvg: update to 2.40.19

(From OE-Core rev: 326b2b838e57bfeb37651d838d74d64365d835fd)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agovte: update to 0.50.1
Alexander Kanavin [Tue, 10 Oct 2017 12:07:05 +0000 (15:07 +0300)] 
vte: update to 0.50.1

(From OE-Core rev: c00f50e58d8db29243db2e9d29023635e381080c)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibinput: update to 1.8.3
Alexander Kanavin [Tue, 10 Oct 2017 12:04:37 +0000 (15:04 +0300)] 
libinput: update to 1.8.3

Drop upstreamed patch.

(From OE-Core rev: ba8606db1b8b6d51cf76d4fb0db39780a4a72056)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agofontconfig: update to 2.12.6
Alexander Kanavin [Tue, 10 Oct 2017 12:02:27 +0000 (15:02 +0300)] 
fontconfig: update to 2.12.6

Add a patch to avoid crashing under qemu.

(From OE-Core rev: da1d9898e953207a7649dfa765dd37eea9baf55d)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopango: update to 1.40.12
Alexander Kanavin [Tue, 10 Oct 2017 12:00:35 +0000 (15:00 +0300)] 
pango: update to 1.40.12

(From OE-Core rev: ffe5c27179bd82a87ab632766e7050c2a2d134e6)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibgudev: update to 232
Alexander Kanavin [Tue, 10 Oct 2017 11:52:09 +0000 (14:52 +0300)] 
libgudev: update to 232

(From OE-Core rev: a78acdaff88250d99f04144d1a5a651ff7c4256f)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agohicolor-icon-theme: update to 0.17
Alexander Kanavin [Tue, 10 Oct 2017 11:45:09 +0000 (14:45 +0300)] 
hicolor-icon-theme: update to 0.17

(From OE-Core rev: 07582f1d821a8821568382c274c55968db3374c8)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogdk-pixbuf: update to 2.36.11
Alexander Kanavin [Mon, 9 Oct 2017 13:50:11 +0000 (16:50 +0300)] 
gdk-pixbuf: update to 2.36.11

Remove upstreamed 0001-queryloaders-Make-output-more-reproducible.patch

Rebase fatal-loader.patch

Add a patch to fix a libtiff detection issue.

(From OE-Core rev: 057fadbaa9948fb26d99ffcbe68145658df64038)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoassimp: update to 4.0.1
Alexander Kanavin [Mon, 9 Oct 2017 13:35:28 +0000 (16:35 +0300)] 
assimp: update to 4.0.1

(From OE-Core rev: 8d3128811739c0ddcb3f062a9098d81b611da9e3)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoshared-mime-info: update to 1.9
Alexander Kanavin [Mon, 9 Oct 2017 13:33:03 +0000 (16:33 +0300)] 
shared-mime-info: update to 1.9

(From OE-Core rev: 5d1c0d9a54aff15ef5283cdfecc222405d2cf9ca)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoadwaita-icon-theme: update to 3.26.0
Alexander Kanavin [Mon, 9 Oct 2017 13:28:35 +0000 (16:28 +0300)] 
adwaita-icon-theme: update to 3.26.0

(From OE-Core rev: 5f406687ca82a9f18feac6ed1dc70085208aceae)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibsoup-2.4: update to 2.60.1
Alexander Kanavin [Mon, 9 Oct 2017 13:24:31 +0000 (16:24 +0300)] 
libsoup-2.4: update to 2.60.1

(From OE-Core rev: 26aaaf8313a3361aafd8abdb0bc8a00d39958e3e)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogsettings-desktop-schemas: update to 3.24.1
Alexander Kanavin [Mon, 9 Oct 2017 13:21:49 +0000 (16:21 +0300)] 
gsettings-desktop-schemas: update to 3.24.1

(From OE-Core rev: 21f4914693626bf750ed9aa1fe71703c8faadae6)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoxdg-utils: update to 1.1.2
Alexander Kanavin [Mon, 9 Oct 2017 13:20:25 +0000 (16:20 +0300)] 
xdg-utils: update to 1.1.2

(From OE-Core rev: 7b29829e072fa51b8cb24f31e44d60635a86e4e9)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agovulkan: update to 1.0.61.1
Alexander Kanavin [Mon, 9 Oct 2017 13:16:15 +0000 (16:16 +0300)] 
vulkan: update to 1.0.61.1

(From OE-Core rev: 939e6ca27ca1f500bc3bbfdf4f7f893a57cc0820)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agofreetype: update to 2.8.1
Alexander Kanavin [Mon, 9 Oct 2017 13:12:25 +0000 (16:12 +0300)] 
freetype: update to 2.8.1

(From OE-Core rev: 1d387edd3651062760acdf927d8bb0657747a18a)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogtk+3: update to 3.22.24
Alexander Kanavin [Mon, 9 Oct 2017 13:09:14 +0000 (16:09 +0300)] 
gtk+3: update to 3.22.24

Rebase Jussi's GL patches.

(From OE-Core rev: 7b23d5a7cbc536b9139f9f53baa1fbe4c50e2135)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogtk-doc.bbclass: correctly make the list of directories with shared libraries
Alexander Kanavin [Thu, 5 Oct 2017 14:16:11 +0000 (17:16 +0300)] 
gtk-doc.bbclass: correctly make the list of directories with shared libraries

Previously it was working only if only one shared library was found, and
broke when there were several.

(From OE-Core rev: a4da3957f4577f9826c73e1d23bcffe9ee96a7d4)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agosysprof: update to 3.26.1
Alexander Kanavin [Thu, 5 Oct 2017 12:03:24 +0000 (15:03 +0300)] 
sysprof: update to 3.26.1

(From OE-Core rev: afd20828521332a398a92cc03fb12ea9ec1de33a)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoiso-codes: update to 3.76
Alexander Kanavin [Thu, 5 Oct 2017 12:00:24 +0000 (15:00 +0300)] 
iso-codes: update to 3.76

(From OE-Core rev: 5cbcd0c1bddda4dc6f0377ec2e35e728947966cb)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoboost: update to 1.65.1
Alexander Kanavin [Wed, 4 Oct 2017 15:23:41 +0000 (18:23 +0300)] 
boost: update to 1.65.1

Add a patch to fix bjam-native compile error (due to mistyped
variable name).

Drop upstreamed patch.

(From OE-Core rev: ba2d391d8268203895ab2f792f92b7fd92deeb45)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoffmpeg: upgrade to 3.3.4
Chen Qi [Sat, 30 Sep 2017 03:21:01 +0000 (11:21 +0800)] 
ffmpeg: upgrade to 3.3.4

Upgrade ffmpeg to version 3.3.4. Version 3.3.4 is a bug fix version, and
there's no new feature added.

Compared to version 3.3.3, there are 57 new commits. These 57 commits are
either bug fix or small tweaks.

Drop CVE patches that were backported from 3.3.4.

(From OE-Core rev: 234d9aaffc2b08846281247e5ba37b20fea1493d)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibsolv: update to 0.6.29
Alexander Kanavin [Wed, 4 Oct 2017 14:00:37 +0000 (17:00 +0300)] 
libsolv: update to 0.6.29

(From OE-Core rev: 9d0eadf0e0dad97c92a34062a6acf005922039e5)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agompg123: update to 1.25.7
Alexander Kanavin [Wed, 4 Oct 2017 13:58:35 +0000 (16:58 +0300)] 
mpg123: update to 1.25.7

(From OE-Core rev: 32569391c62c96fb133c6d92f32f474b2119ec2b)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobtrfs-tools: update to 4.13.2
Alexander Kanavin [Wed, 4 Oct 2017 13:37:16 +0000 (16:37 +0300)] 
btrfs-tools: update to 4.13.2

(From OE-Core rev: caf7310c93657af489096493f6cbad6439a7476c)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agovala: update to 0.38.2
Alexander Kanavin [Wed, 4 Oct 2017 12:31:40 +0000 (15:31 +0300)] 
vala: update to 0.38.2

Valadoc has been merged into the main vala tree, so
add necessary patches to disable it.

(From OE-Core rev: 2c290f7253bba5ceb0d32e7d0b0ec0d0e81cc263)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibxslt: update to 1.1.31
Alexander Kanavin [Wed, 4 Oct 2017 11:35:08 +0000 (14:35 +0300)] 
libxslt: update to 1.1.31

Drop upstreamed patches, including pkg-config support patch,
as upstream now does use pkg-config.

configure.in is now configure.ac, adjust recipe accordingly.

(From OE-Core rev: e9d487de8b5c03108c8c25c0365d5bd6b48f03e9)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agofreetype: fix upstream version check
Alexander Kanavin [Wed, 4 Oct 2017 11:21:28 +0000 (14:21 +0300)] 
freetype: fix upstream version check

(From OE-Core rev: 29b0955c33fd905a5c1115e0c1e00b914e739c53)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolz4: fix upstream version check
Alexander Kanavin [Wed, 4 Oct 2017 11:18:00 +0000 (14:18 +0300)] 
lz4: fix upstream version check

(From OE-Core rev: c6606acfe3a8c831de9b19749aaa61a3888aecbe)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogo-helloworld: add an acknowledgement of unknown upstream version
Alexander Kanavin [Wed, 4 Oct 2017 10:29:19 +0000 (13:29 +0300)] 
go-helloworld: add an acknowledgement of unknown upstream version

As upstream has no git tags.

(From OE-Core rev: d853e588afbccf09ee65e077e0360de65b964a52)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agotcf-agent: latest upstream version is now known
Alexander Kanavin [Wed, 4 Oct 2017 10:28:23 +0000 (13:28 +0300)] 
tcf-agent: latest upstream version is now known

So incorrect acknowledgement of it being unknown can be deleted.

(From OE-Core rev: e76874db9599fd23188384db761813ec7e0d7c28)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoeudev: fix upstream version check
Alexander Kanavin [Wed, 4 Oct 2017 10:28:04 +0000 (13:28 +0300)] 
eudev: fix upstream version check

(From OE-Core rev: 5d9e109a14a2631ddfce1abcb0938f750c73ab23)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibpfm4: remove the recipe
Alexander Kanavin [Fri, 11 Aug 2017 11:29:22 +0000 (14:29 +0300)] 
libpfm4: remove the recipe

It was required only by oprofile.

(From OE-Core rev: 95b391e5f34b706ad5f1c7e4a8c82fb8a18f3c0b)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooprofile: remove the recipe
Alexander Kanavin [Mon, 7 Aug 2017 11:27:23 +0000 (14:27 +0300)] 
oprofile: remove the recipe

Perf is the preferred solution, and oprofile is difficult to
maintain against musl.

(From OE-Core rev: 5f470aed944c941b339652961a13266389288739)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobitbake: tinfoil: Ensure we clean up loggers
Richard Purdie [Wed, 8 Nov 2017 14:04:50 +0000 (14:04 +0000)] 
bitbake: tinfoil: Ensure we clean up loggers

This is primarily paranoid but ensure we remove any loggers we setup
either directly or indirectly so the initial state is restored after
we exit.

(Bitbake rev: af7d63b1f76fd3f7fa92ed15ae61ca47d9e13472)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobitbake: event: Ensure we clean up loggers
Richard Purdie [Wed, 8 Nov 2017 14:03:59 +0000 (14:03 +0000)] 
bitbake: event: Ensure we clean up loggers

Whilst we're likely exiting in this case, clean up the loggers we add
so that in the case of certain server retries there is no possibility
multiple loggers stack up.

(Bitbake rev: 25b7bf6672be66bcbfe5760610dce7d3e866cdcc)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa/target/ssh: Drop command/output logging to debug level
Richard Purdie [Thu, 9 Nov 2017 10:56:13 +0000 (10:56 +0000)] 
oeqa/target/ssh: Drop command/output logging to debug level

This ensures the console is kept clear of confusing output but that
the main logs contain good debugging information.

(From OE-Core rev: caeb5dcfbd3c1d71f8e0eb78b3dd45d5ce349d25)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa: Clean up logger handling
Richard Purdie [Wed, 8 Nov 2017 18:17:17 +0000 (18:17 +0000)] 
oeqa: Clean up logger handling

The logger handling in oeqa was confused at best. This patch:

a) Passes in a logger through various qemu runner pieces
b) Uses that logger consistently in the code
c) Creates a logger for QemuRunner outside the bitbake namespace
   meaning we don't conflict with the tinfoil logging changes

The result of this is more consistency. For runtime tests in testimage,
the logs always contain the debug info, nothing is shwon on the console.
For the oe-selftests, logs are intercepted and only shown if the test
fails.

(From OE-Core rev: 4ff678137a55b93c9ba2cbffda34335ba859f704)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agotestimage: Pass the logger into OERuntimeTestContextExecutor.getTarget()
Richard Purdie [Wed, 8 Nov 2017 18:15:02 +0000 (18:15 +0000)] 
testimage: Pass the logger into OERuntimeTestContextExecutor.getTarget()

I have no idea why we didn't do this but it means the code has nowhere
to log to unless we do this. This means we can then use the logger
to log data to the task logs.

(From OE-Core rev: e241fb128840889acff79dbf3fae7bfaafcb5357)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa/qemurunner: Use logger.debug, not logger.info
Richard Purdie [Wed, 8 Nov 2017 18:13:24 +0000 (18:13 +0000)] 
oeqa/qemurunner: Use logger.debug, not logger.info

Bitbake logs info messages to the console. These messages are really
there as debugging information. At the debug level, they will be shown
in failure logs and in the task logs but not on the console which
is what we want in this case.

(From OE-Core rev: e05b14ad5a3c5ac1656b6fffdcf7e58250638e96)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa/targetcontrol: Drop unused get_target_controller function
Richard Purdie [Wed, 8 Nov 2017 14:14:24 +0000 (14:14 +0000)] 
oeqa/targetcontrol: Drop unused get_target_controller function

This funciton appears completely unused, drop it.

(From OE-Core rev: f352ef37a27cb0871c87cf9991d8ad2e1d560fde)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa/runqemu: Only show stdout/stderr upon test failure
Richard Purdie [Wed, 8 Nov 2017 14:03:28 +0000 (14:03 +0000)] 
oeqa/runqemu: Only show stdout/stderr upon test failure

In general we don't need to see the output of runqemu however if it fails
we do. Use the buffer option that already exists in TestResult but allow
us to trigger it on a per test basis.

(From OE-Core rev: 86bef95bccbe9dad3dc3445ea365439861966179)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoqemurunner: Ensure logging handler is removed
Richard Purdie [Tue, 7 Nov 2017 23:23:54 +0000 (23:23 +0000)] 
qemurunner: Ensure logging handler is removed

If we don't remove the handler we end up with duplicate log messages
which is undesireable.

(From OE-Core rev: 4155a58aebe9c730be9ff1f68150f34d1cd472e5)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobusybox.inc: Fix bashism in compile, which fixes sh being suid
Nathan Rossi [Thu, 9 Nov 2017 11:09:25 +0000 (21:09 +1000)] 
busybox.inc: Fix bashism in compile, which fixes sh being suid

Fix the bashism in the suid check. This ensures that the check works
correctly on hosts that default sh to e.g. dash. If this check fails the
suid shell workaround does not remove sh from the suid binary and
results in the target system containing a busybox.suid with sh as well
as /bin/sh -> /bin/busybox.suid.

(From OE-Core rev: 28547cf01b5ebb81c525a2b982db9b04997d7c4f)

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Cc: Andrej Valek <andrej.valek@siemens.com>
Cc: Radovan Scasny <radovan.scasny@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogcc: fix miscompilation on mips64
Chen Qi [Fri, 27 Oct 2017 09:43:51 +0000 (17:43 +0800)] 
gcc: fix miscompilation on mips64

We've observed strange behaviour of `systemctl status <xxx> on qemumips64.
The output of the command is like `systemctl show <xxx>', which is incorrect.

This patch is from gcc bugzilla's attachment.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81803

The patch hasn't been merged into gcc. But it does solve the above problem.

(From OE-Core rev: 3717c76eb24217c14a22f72fdd8732923729dee8)

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>
7 years agosystemd: Fix build on musl
Khem Raj [Fri, 27 Oct 2017 05:10:42 +0000 (22:10 -0700)] 
systemd: Fix build on musl

Add needed patches for portability across glibc/musl
enable systemd on musl too

Disable utmp,ldconfig,nss,resolved,localed for musl
which is not supported on musl

(From OE-Core rev: acdee728f0f6358dda709304ec307d737124aee6)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoe2fsprogs-ptest: improve reproducibility
Juro Bystricky [Wed, 25 Oct 2017 23:00:26 +0000 (16:00 -0700)] 
e2fsprogs-ptest: improve reproducibility

Remove several Makefiles containing build host references.
While at it, also remove some additional files not needed for
testing.

(From OE-Core rev: 65a3b7b7b6aa91153ac3bd78411665316f1b2cba)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooe-build-perf-report-email.py: add images as MIME objects
Markus Lehtonen [Wed, 25 Oct 2017 11:39:38 +0000 (14:39 +0300)] 
oe-build-perf-report-email.py: add images as MIME objects

Add images as separate MIME objects instead of directly embedding images
in the html (as base64 encoded pngs). This makes the emails better
suited for certain email servers/clients.

(From OE-Core rev: 6b61126c386a0a7334cdf475d349b830c436ed82)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogobject-introspection: improve reproducibility
Juro Bystricky [Tue, 24 Oct 2017 21:04:09 +0000 (14:04 -0700)] 
gobject-introspection: improve reproducibility

Remove cross-compiler wrappers from the package, these contain numerous
build host references.
The wrappers are only needed for cross-compiling.

[YOCTO #11705]

(From OE-Core rev: 6870c4d11adcb831247dc1e05794bfa6ac1374c0)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agowayland-protocols: upgrade to 1.11
Denys Dmytriyenko [Tue, 17 Oct 2017 23:51:30 +0000 (19:51 -0400)] 
wayland-protocols: upgrade to 1.11

usesysrootprefixforpkgdatadirvariable.patch was a backport from 1.11,
no longer needed.

(From OE-Core rev: d4cb21de07f6f63f5aa703d6dc4f13a1e0d74b44)

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoqemu: upgrade to 2.10.1
Leonardo Sandoval [Thu, 19 Oct 2017 20:10:46 +0000 (13:10 -0700)] 
qemu: upgrade to 2.10.1

All CVE patches removed because these are already integrated in 2.10.1.

(From OE-Core rev: ad3e2e2fde557aba0a53bc91d1746518c34b4bd8)

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agowic: Update canned-wks for systemd to use UUID everywhere
Tom Rini [Thu, 21 Sep 2017 17:46:17 +0000 (13:46 -0400)] 
wic: Update canned-wks for systemd to use UUID everywhere

With systemd, the mounting of the swap partition is handled via systemd
and will mount it, regardless of if PARTUUID is parsed or not.  systemd
has a runtime dependency on util-linux-mount so PARTUUID for regular
mount points will be handled correctly.  Make all partitions that we add
to the image make use of UUIDs for maximum portability.

(From OE-Core rev: 497467262d501b94061338b4ce826c6f2f9b97b4)

Signed-off-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agowic: When using --use-uuid make sure that we update the fstab with PARTUUID
Tom Rini [Thu, 21 Sep 2017 17:46:16 +0000 (13:46 -0400)] 
wic: When using --use-uuid make sure that we update the fstab with PARTUUID

When we have been told to use the UUID we should also update the fstab
to make use of PARTUUID instead of hard-coding the device in question.
This will make the resulting image much more portable.

(From OE-Core rev: e7443e7cf876d9bbe326033ac5eee0b98ce5d37f)

Signed-off-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agosystemctl-native: add target.wants to target regex
Martin Kelly [Mon, 16 Oct 2017 16:31:42 +0000 (09:31 -0700)] 
systemctl-native: add target.wants to target regex

The regex for acceptable systemd WantedBy/RequiredBy targets does not include
target.wants, so a line like this:

WantedBy=multi-user.target.wants

gets silently ignored, even though it works fine on a real system.

(From OE-Core rev: ccffc66c64fc0dde433b0375c69760983c657427)

Signed-off-by: Martin Kelly <mkelly@xevo.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agodpkg: use snapshot.debian.org
Ross Burton [Tue, 7 Nov 2017 13:18:18 +0000 (13:18 +0000)] 
dpkg: use snapshot.debian.org

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoexpat: upgrade to 2.2.5
Dengke Du [Fri, 3 Nov 2017 07:26:42 +0000 (15:26 +0800)] 
expat: upgrade to 2.2.5

(From OE-Core rev: 422959ac1958cb6c9f857df3cbac7e8acc70a2a4)

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agowget: Upgrade 1.19.1 -> 1.19.2
Zhixiong Chi [Tue, 31 Oct 2017 09:52:29 +0000 (17:52 +0800)] 
wget: Upgrade 1.19.1 -> 1.19.2

Among other things, fix CVE-2017-13089 CVE-2017-13090 CVE-2017-6508
External References:
https://nvd.nist.gov/vuln/detail/CVE-2017-13089
https://nvd.nist.gov/vuln/detail/CVE-2017-13090
https://nvd.nist.gov/vuln/detail/CVE-2017-6508

(From OE-Core rev: 97717693042e30ade6a568e45c333159eea43cbb)

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoscripts/contrib/bbvars.py: Rewrite to use tinfoil
Amanda Brindle [Mon, 30 Oct 2017 21:57:04 +0000 (14:57 -0700)] 
scripts/contrib/bbvars.py: Rewrite to use tinfoil

Use tinfoil to collect all variable names globally and in each recipe.

No longer show the count of variables if they are undocumented.

Fixes [YOCTO #2086]

(From OE-Core rev: b947de583964020b488cb1c382877624e96d4319)

Signed-off-by: Amanda Brindle <amanda.r.brindle@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agocurl_7.54.1.bb: improve reproducibility
Juro Bystricky [Mon, 30 Oct 2017 17:49:46 +0000 (10:49 -0700)] 
curl_7.54.1.bb: improve reproducibility

Improve reproducible build of curl-dev and curl-dbg packages.

curl-dev: Correctly remove build host references from curl-config
curl-dbg: Do not generate time stamps in files generated by mkhelp.pl

(From OE-Core rev: 6bc323ac9315712e75a0282cddb292bc84afc6f1)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agosystemd: remove useless options for mips4
Chen Qi [Fri, 27 Oct 2017 09:43:50 +0000 (17:43 +0800)] 
systemd: remove useless options for mips4

Looking back the history, we had problem with systemd on qemumips64
which is also related to compilation flags. We solved that by using
tweaking FULL_OPTIMIZATION for mips64 to have "-fno-tree-switch-conversion
-fno-tree-tail-merge".

Now systemd has been upgraded to 234, and we don't have the above problem
any more, thus removing these flags.

(From OE-Core rev: 713761d23df24ad1b52e08bd2d2dc688393bef5b)

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>
7 years agomusl: Update to latest
Khem Raj [Sat, 14 Oct 2017 15:48:54 +0000 (08:48 -0700)] 
musl: Update to latest

* fix use of memset without declaration in sched.h cpu set macros
* powerpc{64}: fix MAP_NORESERVE and MAP_LOCKED in mman.h

(From OE-Core rev: 3953c54c30473450d4baf511772276e5e8e09919)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agorpm: remove --sysroot from macros on target
Joe Slater [Fri, 13 Oct 2017 22:40:25 +0000 (15:40 -0700)] 
rpm: remove --sysroot from macros on target

We do not want to specify --sysroot when defining __cc
used on a target.

(From OE-Core rev: 0ff69fc42b0ac2e7e865943e7febd87093da69d3)

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibsolv: fix a kernel-devsrc installation issue
Ming Liu [Mon, 2 Oct 2017 05:25:42 +0000 (07:25 +0200)] 
libsolv: fix a kernel-devsrc installation issue

We encountered a problem when installing kernel-devsrc package on a
intel-x86 target, as follows:
$ dnf install kernel-devsrc
| Installing : kernel-devsrc-1.0-r0.0.intel_corei7_64 1/1
| failed loading RPMDB
| The downloaded packages were saved in cache until the next successful transaction.
| You can remove cached packages by executing 'dnf clean packages'.

It can be fixed by increasing MAX_HDR_CNT and MAX_HDR_DSIZE in libsolv
per test.

(From OE-Core rev: 24fdebbbfdeadcf3d152a0adf3058c714b193a8f)

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoexpect: Fix segfaults when Expect clib is used directly from C program
Li Zhou [Fri, 29 Sep 2017 02:00:21 +0000 (10:00 +0800)] 
expect: Fix segfaults when Expect clib is used directly from C program

Fix segfaults if Tcl is built with stubs and Expect clib function is used
directly from C program.

(From OE-Core rev: 44af4f20bfb1fe853ed0b5dfc76bdd2900f47cb0)

Signed-off-by: Li Zhou <li.zhou@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobind: move libraries to own package
andreas.kling@peiker-cee.de [Mon, 25 Sep 2017 09:01:30 +0000 (11:01 +0200)] 
bind: move libraries to own package

(From OE-Core rev: d74ebc91388941295a2321a295cdb06ee87fc38b)

Signed-off-by: Andy Kling <andreas.kling@peiker-cee.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogrub_2.02.bb: improve reproducibility
Juro Bystricky [Mon, 25 Sep 2017 23:36:08 +0000 (16:36 -0700)] 
grub_2.02.bb: improve reproducibility

Remove several build host references from modinfo.sh files.

(From OE-Core rev: 391ceb68ba0be36009893bc9ab8a937a985052a9)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoffmpeg: upgrade to 3.3.4
Chen Qi [Sat, 30 Sep 2017 03:21:01 +0000 (11:21 +0800)] 
ffmpeg: upgrade to 3.3.4

Upgrade ffmpeg to version 3.3.4. Version 3.3.4 is a bug fix version, and
there's no new feature added.

Compared to version 3.3.3, there are 57 new commits. These 57 commits are
either bug fix or small tweaks.

(From OE-Core rev: 22d1ec2aa77e289813e0f3b516abdc8cdbc512d9)

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>
7 years agopython: add PACKAGECONFIG for Berkeley DB module
Ross Burton [Wed, 1 Nov 2017 00:28:34 +0000 (00:28 +0000)] 
python: add PACKAGECONFIG for Berkeley DB module

The bsddb module is deprecated and requires an old version of Berkeley DB that
some may be unhappy with even shipping, so expose a way to disable the module.

(From OE-Core rev: 701250dae6c5d3f464bf6d7c46c19d59d1c00bec)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agodb: change types to avoid headers changing between architectures
Ross Burton [Wed, 1 Nov 2017 13:52:19 +0000 (13:52 +0000)] 
db: change types to avoid headers changing between architectures

Triggered by looking at why Python doesn't find db.h (because it greps db.h for
a regex, and db.h is actually a oe_multilib_header wrapper) I realised that the
only reason we have to oe_multilib_header db.h is because one typedef is
different between 32-bit and 64-bit architectures.

However, the typedef is for a 64-bit integer so instead of using long (64-bit)
or long long (32-bit), just use int64_t.  Some of the overly complicated
configure tests need to be deleted after this change but that is safe as we're
building in a controlled environment and can assume int64_t exists.

With this done the header doesn't change between architectures, and it doesn't
need to be wrapped by oe_multilib_header.

(From OE-Core rev: 60aa20b8b691e5a72a6a11bf795b86c6359db886)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibxml2: 2.9.5 -> 2.9.7
Andrej Valek [Mon, 6 Nov 2017 07:29:57 +0000 (08:29 +0100)] 
libxml2: 2.9.5 -> 2.9.7

(From OE-Core rev: 090eeccce74554bd4282b6a0407963037bc761a9)

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobash-completion: remove rfkill file that util-linux provides
Chen Qi [Mon, 6 Nov 2017 06:10:17 +0000 (14:10 +0800)] 
bash-completion: remove rfkill file that util-linux provides

Remove the rfkill bash completion file that util-linux provides
to avoid conflicts.

(From OE-Core rev: db5f9b8b5f51e8c0b6fc99dfdbac8b11f272d602)

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>
7 years agoutil-linux: upgrade to 2.31
Chen Qi [Mon, 6 Nov 2017 06:10:16 +0000 (14:10 +0800)] 
util-linux: upgrade to 2.31

The utility 'reset' is removed in this new version.
A new utility 'rfkill' is added in this new version.

Recipe is modified to remove reset and add rfkill according to the
above changes in new version.

(From OE-Core rev: 4cae425facdfbc0853187702e44faca4e328ebfe)

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>
7 years agosshcontrol.py: in copy_to() always use scp
Erik Botö [Mon, 6 Nov 2017 18:13:06 +0000 (10:13 -0800)] 
sshcontrol.py: in copy_to() always use scp

The current implementation is broken when the localpath is a link.
Then only a symlink would be created on the target, instead of copying
the actual file.

[YOCTO #11524]

(From OE-Core rev: 1eb2a9c2f48d3af13ce651f1adf024b3380299d1)

Signed-off-by: Erik Botö <erik.boto@pelagicore.com>
Signed-off-by: Stephano Cetola <stephano.cetola@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agomasterimage.py: rename parameter "params" in start() to "extra_bootparams"
Erik Botö [Mon, 6 Nov 2017 18:13:05 +0000 (10:13 -0800)] 
masterimage.py: rename parameter "params" in start() to "extra_bootparams"

This matches how it is called, and how it is named in qmeu target.

[YOCTO #11524]

(From OE-Core rev: 64614ab6894143fa4876558cbe3d2954e5b08eac)

Signed-off-by: Erik Botö <erik.boto@pelagicore.com>
Signed-off-by: Stephano Cetola <stephano.cetola@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agomasterimage.py: fix stop()
Erik Botö [Mon, 6 Nov 2017 18:13:04 +0000 (10:13 -0800)] 
masterimage.py: fix stop()

The stop() function is called in the context of the masterimage,
so self.master should be used instead of self.connection which is
undefined at that time.

[YOCTO #11524]

(From OE-Core rev: adfe79dee90b6e080b97869444882b84468d49ba)

Signed-off-by: Erik Botö <erik.boto@pelagicore.com>
Signed-off-by: Stephano Cetola <stephano.cetola@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agomasterimage.py: fix issue with calling reboot on masterimage/DUT
Erik Botö [Mon, 6 Nov 2017 18:13:03 +0000 (10:13 -0800)] 
masterimage.py: fix issue with calling reboot on masterimage/DUT

On systemd systems calling reboot over an ssh connection doesn't
return as expected causing an exception, therefore wrap the call
to reboot in order to avoid this issue.

Also sync the filesystems before rebooting cause otherwise, it will be
done as part of the reboot and could take a very long time and testimage
will fail to access the machine. This issue was observed consistently with
one of our rootfs at Pelagicore.

[YOCTO #11524]

(From OE-Core rev: a9c7f877e5bda32249755dc7014d436e4b85f07a)

Signed-off-by: Erik Botö <erik.boto@pelagicore.com>
Signed-off-by: Stephano Cetola <stephano.cetola@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoselftest/imagefeatures: add basic test for useradd-staticids
Ross Burton [Fri, 29 Sep 2017 16:10:16 +0000 (17:10 +0100)] 
selftest/imagefeatures: add basic test for useradd-staticids

(From OE-Core rev: 468079140c1f19096bbc628663462beebc194800)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolib/oeqa/selftest/cases/gotoolchain: add selftest for the Go toolchain
Joshua Lock [Wed, 4 Oct 2017 16:22:48 +0000 (17:22 +0100)] 
lib/oeqa/selftest/cases/gotoolchain: add selftest for the Go toolchain

Add a simple test case to being testing of the Go toolchain:
1) build meta-go-toolchain
2) create a temp directory and install the generated Go toolchain within
3) fetch an archive of the Go Dep tool
4) create an appropriately laid out GOROOT and inflate the dep archive there
5) build the dep command with the SDK's Go toolchain and check it returned
   successfully.

[YOCTO #12152]

(From OE-Core rev: bca999644e28e1666357bcbeab685547c6f9dd65)

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa/core/loader: Make _built_modules_dict() support packages correctly
Peter Kjellerstedt [Fri, 29 Sep 2017 16:06:11 +0000 (18:06 +0200)] 
oeqa/core/loader: Make _built_modules_dict() support packages correctly

For test modules in a package, e.g., oelib.license, running
`oe-selftest -r oelib.license` or `oe-selftest -r
oelib.license.TestSimpleCombinations` would fail with a message that
the specified test cases could not be found. This was due to the
parsing in _built_modules_dict(), which failed to distinguish between
<package>.<module>.<class> and <module>.<class>.<testcase> and treated
both cases as the latter.

(From OE-Core rev: 80db3d999ae26d298d9d5418a32b11a4f27af9d5)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agooeqa/selftest/runtime_test: use console in postinst_rootfs_and_boot
Ross Burton [Mon, 6 Nov 2017 17:54:48 +0000 (17:54 +0000)] 
oeqa/selftest/runtime_test: use console in postinst_rootfs_and_boot

Use a console login not SSH for simplicity.

(From OE-Core rev: 842f3beb211eb0a398b37c50d433a93b86964f6b)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoimage.bbclass: let do_image depend on do_populate_lic of EXTRA_IMAGEDEPENDS
Ming Liu [Tue, 26 Sep 2017 12:31:16 +0000 (14:31 +0200)] 
image.bbclass: let do_image depend on do_populate_lic of EXTRA_IMAGEDEPENDS

The licenses of EXTRA_IMAGEDEPENDS recipes are being referenced in
image postcommand write_deploy_manifest, but a dependency is missing
between do_image and do_populate_lic of EXTRA_IMAGEDEPENDS recipes,
this leads some license files not present when write_deploy_manifest
runs, hence will cause build errors.

Fixed by letting do_image depend on do_populate_lic of
EXTRA_IMAGEDEPENDS recipes.

(From OE-Core rev: 276ff1f22d00edd6c9728e44ed5d6692a6c9e04f)

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoexternalsrc: fix ExpansionError if the source dir does not exist yet
Luca Ceresoli [Fri, 29 Sep 2017 08:39:24 +0000 (10:39 +0200)] 
externalsrc: fix ExpansionError if the source dir does not exist yet

The externalsrc class code assumes that the source directory
(EXTERNALSRC) exists before bitbake is called. Otherwise do_configure
will fail obviously since externalsrc does not fetch anything.

Commit 3ca6085729d9 ("externalsrc: Handle .git not being a directory")
changed this behaviour. Now on a missing EXTERNALSRC directory we get
a bb.data_smart.ExpansionError during _parsing_, way before
do_configure can be run.

This new behaviour creates two problems:

 * First, there error message is very cryptic (and it's hard to
   provide a better message since no task is ever run):

     ERROR: ExpansionError during parsing /<...>/<...>.bb
     Traceback (most recent call last):
     bb.data_smart.ExpansionError: Failure expanding variable do_compile[file-checksums], expression was ${@srctree_hash_files(d)} which triggered exception FileNotFoundError: [Errno 2] No such file or directory: '<...>'

 * Second, this prevents creating a class based on externalsrc that
   automatically fetches the code in EXTERNALSRC before do_compile
   runs.

Fix both problems by simply calling git with '-C ${EXTERNALSRC}'
instead of calling git inside the non-existing directory. This changes
from a bb.data_smart.ExpansionError to a
subprocess.CalledProcessError, which is in line with what's actually
going on: git is telling us it can't find the git dir.

Also remove a comment that does not apply anymore.

(From OE-Core rev: 8e8251582e977d7c6ab525ac1b493fbbe3af38b2)

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Cc: Joshua Watt <jpewhacker@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoimage.bbclass: Fix 'vardepsexclude' mechanism for image_cmd_${FSTYPE}
Igor Romanov [Thu, 28 Sep 2017 18:08:31 +0000 (21:08 +0300)] 
image.bbclass: Fix 'vardepsexclude' mechanism for image_cmd_${FSTYPE}

Current mechanism doesn't allow to use any non-determenistic variable, except 'DATE' and 'DATETIME', inside IMAGE_CMD_${FSTYPE} prototype.

Passing 'vardepsexclude' values from IMAGE_CMD_${FSTYPE}, so users will be able to avoid taskhash mismatch problems.

(From OE-Core rev: cb19166c540969f56959e25c1068934bdc40b013)

Signed-off-by: Igor Romanov <i.romanov@inango-systems.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobase.bbclass: use d instead on e.data
Leonardo Sandoval [Wed, 5 Jul 2017 16:02:11 +0000 (09:02 -0700)] 
base.bbclass: use d instead on e.data

According to the bitbake documentation, the "d" global datastore should be
used instead of "e.data" because the latter is deprecated.

(From OE-Core rev: 43820fe158cbc34c9fd67e84238931331153f127)

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agouseradd-staticids: explain how to fix the the problem
Patrick Ohly [Thu, 19 Oct 2017 07:13:26 +0000 (09:13 +0200)] 
useradd-staticids: explain how to fix the the problem

When a distro uses useradd-staticids.bbclass and some developer
unfamiliar with the static ID mechanism tries to add a recipe which
needs new IDs, the resulting error or warning is typically not
something that the developer will understand.

Even experienced developers do not get enough information. They first
must find out whether the missing ID is for a system user or group,
then locate the file(s) in which the ID could be added. Both of this
is now part of the message:

ERROR: .../meta/recipes-extended/cronie/cronie_1.5.1.bb: cronie -
cronie: system groupname crontab does not have a static ID defined.
Add crontab to one of these files: /.../conf/distro/include/my-distro-group

The case that no file was found is also handled:

ERROR: .../meta/recipes-extended/cronie/cronie_1.5.1.bb: cronie -
cronie: system groupname crontab does not have a static ID defined.
USERADD_GID_TABLES file(s) not found in BBPATH: files/group

It would be nice if the error message could also list the range in
which a new ID needs to be allocated, but /etc/login.defs isn't
available at the time of creating the message, so that part is still
something that a developer needs to know.

(From OE-Core rev: 883bfc2bbb4d2120dbad6b0f2056503b012b1a2b)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agouseradd-staticids: skip recipes without static IDs
Patrick Ohly [Tue, 26 Sep 2017 07:29:47 +0000 (09:29 +0200)] 
useradd-staticids: skip recipes without static IDs

When enabling useradd-staticids.bbclass, one has to define static IDs
for all recipes in a world build, otherwise those without static IDs
generate parse errors or warnings, depending on USERADD_ERROR_DYNAMIC.

Defining unused IDs is a lot of work and clutters the passwd/group
file of a distro.

Distros which want to avoid this can now set USERADD_ERROR_DYNAMIC =
"skip" and recipes which would have triggered a message then silently
get disabled. Only trying to build them shows the error message:

$ bitbake apt
...
ERROR: Nothing PROVIDES 'apt'
ERROR: apt was skipped: apt - apt: username _apt does not have a static ID defined.

(From OE-Core rev: 9113928cea88c2187e8640ac489671cb81f58103)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agofeature-arm-vfp.inc: drop unnecessary extra space from TUNE_CCARGS
Andre McCurdy [Mon, 16 Oct 2017 17:37:34 +0000 (10:37 -0700)] 
feature-arm-vfp.inc: drop unnecessary extra space from TUNE_CCARGS

The trailing space added to TUNE_CCARGS when appending -mfpu=XXX is
unnecessary and leads to a double space in the final value.

(From OE-Core rev: 4fde0110321b04d1f3418f05e61a2eb0b3ec8625)

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agomaintainers.inc: update maintainership
Yi Zhao [Tue, 7 Nov 2017 06:12:05 +0000 (14:12 +0800)] 
maintainers.inc: update maintainership

Reassign Dengke's recipes to Yi Zhao.

(From OE-Core rev: 5583454d315df1d278128c39a3845b196ff91bc9)

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolib/oe/terminal.py: use an absolute path to execute oe-gnome-terminal-phonehome
Ming Liu [Fri, 13 Oct 2017 11:26:16 +0000 (13:26 +0200)] 
lib/oe/terminal.py: use an absolute path to execute oe-gnome-terminal-phonehome

A flaw was found on my Ubuntu 14.04.5 LTS, on which that gnome-terminal is
the default terminal, when I run any of the tasks:
bitbake busybox -c menuconfig/devshell/devpyshell
bitbake virtual/kernel -c menuconfig/devshell/devpyshell

I got a error as follows:
"Failed to execute child process "oe-gnome-terminal-phonehome" (No such file or directory)"

Seems the environment of the process calling Popen is not passed to the
child process, this behaviour is a known issue in Python bug tracker:
http://bugs.python.org/issue8557

It could be fixed by using an absolute path instead per test.

(From OE-Core rev: 2117c148ef07d84bc605768e3b3671b0126b9337)

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobitbake: tests/fetch: Add ftp test url
Richard Purdie [Tue, 7 Nov 2017 14:30:55 +0000 (14:30 +0000)] 
bitbake: tests/fetch: Add ftp test url

Add in a tets ftp url so we ensure ftp urls contnue to work after the loss
of the ftp.gnu.org ones.

(Bitbake rev: e1e8565b5e19dd3f7ef6e7e41932456adaa3df81)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobitbake: tests/fetch: use subtests in the wget tests
Ross Burton [Fri, 3 Nov 2017 11:48:36 +0000 (11:48 +0000)] 
bitbake: tests/fetch: use subtests in the wget tests

As we test multiple URLs in this these tests and one failing abandons the test,
use subtests so all URLs are tested. This should help us identify patterns in
the failing URLs.

(Bitbake rev: c4c4465b32e82d4b6e46a44e776be5039aef6b18)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobitbake: tests/fetch: Switch gnu.org urls from ftp -> http/https
Richard Purdie [Sun, 5 Nov 2017 23:51:16 +0000 (23:51 +0000)] 
bitbake: tests/fetch: Switch gnu.org urls from ftp -> http/https

The ftp server at ftp.gnu.org is likely to be retired at some point soon
so siwtch over to the http/https services.

This means bitbake-selftest doesn't have ftp test urls, however finding stable
ftp test servers is proving increasingly hard.

(Bitbake rev: 892a08245ddb21a464aeb37d3e32377e99dd7e2b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>