]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
6 years agou-boot.inc: Support menuconfig for u-boot
Manjukumar Matha [Wed, 2 Jan 2019 05:48:17 +0000 (21:48 -0800)]
u-boot.inc: Support menuconfig for u-boot

u-boot mainline supports menuconfig, this patch enables menuconfig for
u-boot using cml1.

u-boot recipe in OE-core handles multi configuration of u-boot using
UBOOT_CONFIG. Since we cannot determine on which u-boot config the
menuconfig should run, the patch limits when UBOOT_CONFIG is not
defined.

Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoclasses/buildhistory: avoid git diff churn by sorting more dictionaries
Jacob Kroon [Fri, 21 Dec 2018 09:05:00 +0000 (10:05 +0100)]
classes/buildhistory: avoid git diff churn by sorting more dictionaries

Sort 'srcrevs' and 'tag_srcrevs' before iterating over them in order
to avoid unnecessary changes in the build history.

Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoiw: fix parsing of WEP keys
Liu Haitao [Thu, 3 Jan 2019 05:48:38 +0000 (13:48 +0800)]
iw: fix parsing of WEP keys

The current iw4.14 has a fatal bug that could casue a Segmentation fault
when parsing WEP keys. The issue has been fixed by upstream.
[https://git.kernel.org/pub/scm/linux/kernel/git/jberg/iw.git/commit/?id=0e39f109c4b8155697a12ef090b59cdb304c8c44]

Signed-off-by: Liu Haitao <haitao.liu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoarch-armv4.inc, arch-armv5.inc: Do not tie generating thumb ISA to -march
Khem Raj [Thu, 3 Jan 2019 07:40:42 +0000 (23:40 -0800)]
arch-armv4.inc, arch-armv5.inc: Do not tie generating thumb ISA to -march

-march=armv5't'e means that CPU can execute thumb ISA, we do not need to
tie this to exclusively generating thumb ISA, this change means that
when we have thumb in tune features then it can use 't' in -march
options irrespective of ISA being thumb or arm.

This fixes derivative of armv5 tunes and paves way for gcc9 where e.g.
armv5e is dropped and minimum arch supported is armv5te

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/utils/qemurunner: set timeout to 60s for run_serial
Robert Yang [Thu, 3 Jan 2019 08:16:32 +0000 (16:16 +0800)]
oeqa/utils/qemurunner: set timeout to 60s for run_serial

The 5s timeout for non-kvm is too short, especially when the load is high,
which leads to unexpected errors, so set timeout to 60s by default.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocmake-native: Set --parallel for configure
Robert Yang [Tue, 18 Dec 2018 09:48:22 +0000 (17:48 +0800)]
cmake-native: Set --parallel for configure

This can save do_configure's time from 330s to 60s on my host.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopackage.bbclass: fix python unclosed file ResourceWarning
Chen Qi [Tue, 18 Dec 2018 06:53:43 +0000 (14:53 +0800)]
package.bbclass: fix python unclosed file ResourceWarning

Fix the following warning.

  ResourceWarning: unclosed file <_io.TextIOWrapper name='/.../systemd/1_239-r0/debugsources.list' mode='a' encoding='UTF-8'>

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agonativesdk-packagegroup-sdk-host: add Meson
Ross Burton [Thu, 20 Dec 2018 14:08:36 +0000 (14:08 +0000)]
nativesdk-packagegroup-sdk-host: add Meson

Meson is growing in popularity, so add it to the SDK packagegroup.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agonativesdk-meson: add missing dependency on setuptools
Ross Burton [Thu, 20 Dec 2018 15:35:43 +0000 (15:35 +0000)]
nativesdk-meson: add missing dependency on setuptools

Meson uses pkg_resources, which is part of setuptools.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoman-pages: use alternatives to resolve crypt.3 conflict
mark asselstine [Thu, 20 Dec 2018 15:34:54 +0000 (10:34 -0500)]
man-pages: use alternatives to resolve crypt.3 conflict

To fix:

  Error: Transaction check error:
    file /usr/share/man/man3/crypt.3 conflicts between attempted installs
    of libcrypt-doc-4.4.1-r0.core2_64 and man-pages-4.16-r0.core2_64

This issue came about after commit 59be9254df9f [libxcrypt: Upgrade to
4.4.1 release].

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agonetbase: update to 5.5
Armin Kuster [Wed, 2 Jan 2019 16:36:17 +0000 (08:36 -0800)]
netbase: update to 5.5

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibassuan: update to 2.5.2
Armin Kuster [Wed, 2 Jan 2019 16:36:16 +0000 (08:36 -0800)]
libassuan: update to 2.5.2

Refresh patch

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibgpg-error: Update to 1.33
Armin Kuster [Wed, 2 Jan 2019 16:36:15 +0000 (08:36 -0800)]
libgpg-error: Update to 1.33

Drop patches now included in the update
refactoered pkgconfig.patch

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agonss: update to 3.41
Armin Kuster [Wed, 2 Jan 2019 16:36:13 +0000 (08:36 -0800)]
nss: update to 3.41

Bug fix only update.

    Bug 1252891 - Implemented EKU handling for IPsec IKE.
    Bug 1423043 - Enable half-closed states for TLS.
    Bug 1493215 - Enabled the following ciphersuites by default:
        TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
        TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
        TLS_DHE_RSA_WITH_AES_256_GCM_SHA384
        TLS_RSA_WITH_AES_256_GCM_SHA384

    Bug 1412829, Reject empty supported_signature_algorithms in Certificate Request in TLS 1.2
    Bug 1485864 - Cache side-channel variant of the Bleichenbacher attack (CVE-2018-12404)
    Bug 1481271 - Resend the same ticket in ClientHello after HelloRetryRequest
    Bug 1493769 - Set session_id for external resumption tokens
    Bug 1507179 - Reject CCS after handshake is complete in TLS 1.3

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomaintainers.inc: Add entry for new eglinfo-wayland recipe
Richard Purdie [Thu, 3 Jan 2019 12:46:04 +0000 (12:46 +0000)]
maintainers.inc: Add entry for new eglinfo-wayland recipe

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoeglinfo: add wayland receipe
Roman Stratiienko [Thu, 27 Dec 2018 12:38:49 +0000 (14:38 +0200)]
eglinfo: add wayland receipe

Signed-off-by: Roman Stratiienko <roman.stratiienko@globallogic.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoeglinfo: upgrade SRCREV to 223817ee3798
Roman Stratiienko [Thu, 27 Dec 2018 12:38:48 +0000 (14:38 +0200)]
eglinfo: upgrade SRCREV to 223817ee3798

SRCREV upgraded to 223817ee3798 ("Add Wayland support")
Additional patches rebased to this version

Signed-off-by: Roman Stratiienko <roman.stratiienko@globallogic.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosstate: add support for caching shared workdir tasks
Michael Ho [Thu, 29 Nov 2018 12:21:36 +0000 (14:21 +0200)]
sstate: add support for caching shared workdir tasks

The sstate bbclass uses workdir as a hardcoded string in path
manipulations. This means that the sstate caching mechanism does
not work for the work-shared directory which the kernel uses to
share its build configuration and source files for out of tree
kernel modules.

This commit modifies the path manipulation mechanism to use the
work-shared directory if detected in the paths when handling the
sstate cache packages.

Signed-off-by: Michael Ho <Michael.Ho@bmw.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agonativesdk-*-provides-dummy: Fixes to allow correct operation with opkg
Richard Purdie [Wed, 5 Dec 2018 17:31:32 +0000 (17:31 +0000)]
nativesdk-*-provides-dummy: Fixes to allow correct operation with opkg

opkg needs the replaces/conflicts/provides in order for this package
to function as intended. When enabled, this code caused failures for
core-image-sato -c populate_sdk.

The reason is that nativesdk-autoconf has several perl dependencies. We
need to list more of the things which this package provides/conflicts
with in order for it to function correctly. Therefore add the missing
entries.

(From OE-Core rev: 27412b377dda47daa87bfcb3a41babe53ff8b0a3)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodpkg: Upgrade to 1.18.25
Aníbal Limón [Fri, 28 Dec 2018 19:54:08 +0000 (13:54 -0600)]
dpkg: Upgrade to 1.18.25

Removed (now in upstream),

0001-arch-Add-support-for-riscv64-CPU.patch

Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agometa/classes/testimage.bbclass: Only validate IMAGE_FSTYPES when is QEMU
Aníbal Limón [Wed, 2 Jan 2019 16:08:13 +0000 (10:08 -0600)]
meta/classes/testimage.bbclass: Only validate IMAGE_FSTYPES when is QEMU

When use simpleremote target the flash/boot process is executed
manually, the IMAGE_FSTYPES validation is only needed when execute
testimage against qemu.

The supported_fstypes comes from oeqa.core.target.qemu module.

Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocurl: update to 7.63
Armin Kuster [Wed, 2 Jan 2019 16:36:11 +0000 (08:36 -0800)]
curl: update to 7.63

 Changes:

    curl: add %{stderr} and %{stdout} for --write-out
    curl: add undocumented option --dump-module-paths for win32
    setopt: add CURLOPT_CURLU

For full list of changes see:
https://curl.haxx.se/changes.html

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agotzdata/tzcode-native: update to 2018i
Armin Kuster [Wed, 2 Jan 2019 16:36:10 +0000 (08:36 -0800)]
tzdata/tzcode-native: update to 2018i

2018i:

  Briefly:
    São Tomé and Príncipe switches from +01 to +00 on 2019-01-01.

  Changes to future timestamps

    Due to a change in government, São Tomé and Príncipe switches back
    from +01 to +00 on 2019-01-01 at 02:00.  (Thanks to Vadim
    Nasardinov and Michael Deckers.)

2018h:
Briefly:
    Qyzylorda, Kazakhstan moved from +06 to +05 on 2018-12-21.
    New zone Asia/Qostanay because Qostanay, Kazakhstan didn't move.
    Metlakatla, Alaska observes PST this winter only.
    Guess Morocco will continue to adjust clocks around Ramadan.
    Add predictions for Iran from 2038 through 2090.

  Changes to future timestamps

    Guess that Morocco will continue to fall back just before and
    spring forward just after Ramadan, the practice since 2012.
    (Thanks to Maamar Abdelkader.)  This means Morocco will observe
    negative DST during Ramadan in main and vanguard formats, and in
    rearguard format it stays in the +00 timezone and observes
    ordinary DST in all months other than Ramadan.  As before, extend
    this guesswork to the year 2037.  As a consequence, Morocco is
    scheduled to observe three DST transitions in some Gregorian years
    (e.g., 2033) due to the mismatch between the Gregorian and Islamic
    calendars.

    The table of exact transitions for Iranian DST has been extended.
    It formerly cut off before the year 2038 in a nod to 32-bit time_t.
    It now cuts off before 2091 as there is doubt about how the Persian
    calendar will treat 2091.  This change predicts DST transitions in
    2038-9, 2042-3, and 2046-7 to occur one day later than previously
    predicted.  As before, post-cutoff transitions are approximated.

  Changes to past and future timestamps

    Qyzylorda (aka Kyzylorda) oblast in Kazakhstan moved from +06 to
    +05 on 2018-12-21.  This is a zone split as Qostanay (aka
    Kostanay) did not switch, so create a zone Asia/Qostanay.

    Metlakatla moved from Alaska to Pacific standard time on 2018-11-04.
    It did not change clocks that day and remains on -08 this winter.
    (Thanks to Ryan Stanley.)  It will revert to the usual Alaska
    rules next spring, so this change affects only timestamps
    from 2018-11-04 through 2019-03-10.

  Change to past timestamps

    Kwajalein's 1993-08-20 transition from -12 to +12 was at 24:00,
    not 00:00.  I transcribed the time incorrectly from Shanks.
    (Thanks to Phake Nick.)

    Nauru's 1979 transition was on 02-10 at 02:00, not 05-01 at 00:00.
    (Thanks to Phake Nick.)

    Guam observed DST irregularly from 1959 through 1977.
    (Thanks to Phake Nick.)

    Hong Kong observed DST in 1941 starting 06-15 (not 04-01), then on
    10-01 changed standard time to +08:30 (not +08).  Its transition
    back to +08 after WWII was on 1945-09-15, not the previous day.
    Its 1904-10-30 change took effect at 01:00 +08 (not 00:00 LMT).
    (Thanks to Phake Nick, Steve Allen, and Joseph Myers.)  Also,
    its 1952 fallback was on 11-02 (not 10-25).

    This release contains many changes to timestamps before 1946 due
    to Japanese possession or occupation of Pacific/Chuuk,
    Pacific/Guam, Pacific/Kosrae, Pacific/Kwajalein, Pacific/Majuro,
    Pacific/Nauru, Pacific/Palau, and Pacific/Pohnpei.
    (Thanks to Phake Nick.)

    Assume that the Spanish East Indies was like the Philippines and
    observed American time until the end of 1844.  This affects
    Pacific/Chuuk, Pacific/Kosrae, Pacific/Palau, and Pacific/Pohnpei.

  Changes to past tm_isdst flags

    For the recent Morocco change, the tm_isdst flag should be 1 from
    2018-10-27 00:00 to 2018-10-28 03:00.  (Thanks to Michael Deckers.)
    Give a URL to the official decree.  (Thanks to Matt Johnson.)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosystemd: backport a patch to fix meson 0.49.0 issue
Alexander Kanavin [Tue, 18 Dec 2018 16:29:55 +0000 (17:29 +0100)]
systemd: backport a patch to fix meson 0.49.0 issue

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibrepo: upgrade 1.9.2 -> 1.9.3
Alexander Kanavin [Tue, 18 Dec 2018 16:30:05 +0000 (17:30 +0100)]
librepo: upgrade 1.9.2 -> 1.9.3

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agowebkitgtk: upgrade 2.22.4 -> 2.22.5
Alexander Kanavin [Tue, 18 Dec 2018 16:30:04 +0000 (17:30 +0100)]
webkitgtk: upgrade 2.22.4 -> 2.22.5

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibcomps: upgrade 0.1.8 -> 0.1.9
Alexander Kanavin [Tue, 18 Dec 2018 16:30:03 +0000 (17:30 +0100)]
libcomps: upgrade 0.1.8 -> 0.1.9

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogobject-introspection: upgrade 1.58.1 -> 1.58.2
Alexander Kanavin [Tue, 18 Dec 2018 16:30:02 +0000 (17:30 +0100)]
gobject-introspection: upgrade 1.58.1 -> 1.58.2

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoboost: update to 1.69.0
Alexander Kanavin [Tue, 18 Dec 2018 16:30:01 +0000 (17:30 +0100)]
boost: update to 1.69.0

Drop upstreamed reproducibility-add-file-directive-to-assembler.patch

Drop signals library as upstream has removed it:
https://www.boost.org/users/history/version_1_69_0.html

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolighttpd: upgrade 1.4.51 -> 1.4.52
Alexander Kanavin [Tue, 18 Dec 2018 16:30:00 +0000 (17:30 +0100)]
lighttpd: upgrade 1.4.51 -> 1.4.52

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibdnf: upgrade 0.22.3 -> 0.24.1
Alexander Kanavin [Tue, 18 Dec 2018 16:29:59 +0000 (17:29 +0100)]
libdnf: upgrade 0.22.3 -> 0.24.1

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocreaterepo-c: update to 0.12.0
Alexander Kanavin [Tue, 18 Dec 2018 16:29:58 +0000 (17:29 +0100)]
createrepo-c: update to 0.12.0

Drop 0001-Correctly-install-the-shared-library.patch as upstream fixed the issue.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodnf: upgrade 4.0.9 -> 4.0.10
Alexander Kanavin [Tue, 18 Dec 2018 16:29:57 +0000 (17:29 +0100)]
dnf: upgrade 4.0.9 -> 4.0.10

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibdazzle: fix a build issue with meson 0.49.0
Alexander Kanavin [Tue, 18 Dec 2018 16:29:56 +0000 (17:29 +0100)]
libdazzle: fix a build issue with meson 0.49.0

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomeson: update to 0.49.0
Alexander Kanavin [Tue, 18 Dec 2018 16:29:54 +0000 (17:29 +0100)]
meson: update to 0.49.0

Drop upstreamed gi-flags.patch and gtkdoc-flags.patch, rebase the rest.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobtrfs-tools: update to 4.19.1
Alexander Kanavin [Tue, 18 Dec 2018 16:29:53 +0000 (17:29 +0100)]
btrfs-tools: update to 4.19.1

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agorunqemu-gen-tapdevs: Allow run --help without sudo
Robert Yang [Fri, 28 Dec 2018 08:58:58 +0000 (00:58 -0800)]
runqemu-gen-tapdevs: Allow run --help without sudo

Then we can get user's UID and GID rather than hardcode to 1000, e.g.:

- Without sudo
$ runqemu-gen-tapdevs --help
[snip]
$ sudo ../poky/scripts/runqemu-gen-tapdevs 15220 100 4 tmp/sysroots-components/x86_64/qemu-helper-native/usr/bin
[snip]

- With sudo
$ sudo ../poky/scripts/runqemu-gen-tapdevs --help
[snip]
$ sudo ../poky/scripts/runqemu-gen-tapdevs 15220 100 4 tmp/sysroots-components/x86_64/qemu-helper-native/usr/bin
[snip]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoperl: Fix race issue for cpan/Pod-Simple
Robert Yang [Fri, 28 Dec 2018 09:01:49 +0000 (01:01 -0800)]
perl: Fix race issue for cpan/Pod-Simple

Fixed:
Running pm_to_blib for cpan/Pod-Simple directly
[snip]
/path/to/cpan/podlators/../../miniperl "-I../../lib" "-I../../lib" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/pod2man
Can't locate Getopt/Long.pm in @INC [snip]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobluez5: Fix a race issue for tools
Robert Yang [Fri, 28 Dec 2018 09:01:48 +0000 (01:01 -0800)]
bluez5: Fix a race issue for tools

Fixed:
cp ../bluez-5.50/tools/hid2hci.rules tools/97-hid2hci.rules
cp: cannot create regular file tools/97-hid2hci.rules: No such file or directory
make[1]: *** [tools/97-hid2hci.rules] Error 1

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agovalgrind: Fix a race issue for libcoregrind.a
Robert Yang [Fri, 28 Dec 2018 09:01:47 +0000 (01:01 -0800)]
valgrind: Fix a race issue for libcoregrind.a

The libnolto_coregrind_a_OBJECTS is in libcoregrind_a_LIBADD, so the objects
should be ready before generate libcoregrind.a, otherwise there would be
failures:

i586-poky-linux-ar: libnolto_coregrind_x86_linux_a-m_libcsetjmp.o: No such file or directory
make[3]: *** [libcoregrind-x86-linux.a] Error 1

Add libnolto_coregrind_a_OBJECTS to EXTRA_libcoregrind_DEPENDENCIES to fix the
problem.

This is a race issue during parallel build.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoAdded armeb into meson.bbclass.
Lei Maohui [Wed, 2 Jan 2019 05:17:48 +0000 (13:17 +0800)]
Added armeb into meson.bbclass.

Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoos-release: don't import shutil
Jacob Kroon [Tue, 1 Jan 2019 17:38:44 +0000 (18:38 +0100)]
os-release: don't import shutil

The line was added in

  os-release: add the public package-signing key
  f7359ad6bec82d4aa761287a6c6d53cbc25adab3

but the actual usage was removed in

  signing-keys: Make signing keys the only publisher of keys
  1e38068ac38dfd067655dfd41464e28439179306

Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosstate.bbclass: catch ValueError from incorrectly written sstate manifests
Martin Jansa [Mon, 31 Dec 2018 09:58:35 +0000 (09:58 +0000)]
sstate.bbclass: catch ValueError from incorrectly written sstate manifests

* in some rare cases the file format might be broken, e.g. when you run
  out of disk space while writing to it (hint: make sure to use
  BB_DISKMON_DIRS on _all_ the builds, to make sure that they can stop
  gracefully before this happens).

* will show error like this:
  ERROR: Invalid line '/OE/build/luneos-thud/webos-ports' in sstate manifest '/OE/build/luneos-thud/webos-ports/tmp-glibc/sstate-control/index-allarch'
  when the file isn't complete, like in my case:
  $ tail -n 2 /OE/build/luneos-thud/webos-ports/tmp-glibc/sstate-control/index-allarch
  /OE/build/luneos-thud/webos-ports/tmp-glibc/stamps/all-webos-linux/org.webosports.app.calculator/0.1.1+gitrAUTOINC+9e9eb67c28-r0 /OE/build/luneos-thud/webos-ports/tmp-glibc/sstate-control/manifest-allarch-org.webosports.app.calculator /OE/build/luneos-thud/webos-ports/tmp-glibc/work/all-webos-linux/org.webosports.app.calculator/0.1.1+gitrAUTOINC+9e9eb67c28-r0
  /OE/build/luneos-thud/webos-ports

* instead of much longer exception which doesn't really show what's
  wrong to selectively fix that (other than removing while TMPDIR):

  ERROR: Command execution failed: Traceback (most recent call last):
  File "/OE/build/luneos-thud/webos-ports/bitbake/lib/bb/command.py", line 113, in runAsyncCommand
    self.cooker.updateCache()
  File "/OE/build/luneos-thud/webos-ports/bitbake/lib/bb/cooker.py", line 1562, in updateCache
    bb.event.fire(event, self.databuilder.mcdata[mc])
  File "/OE/build/luneos-thud/webos-ports/bitbake/lib/bb/event.py", line 225, in fire
    fire_class_handlers(event, d)
  File "/OE/build/luneos-thud/webos-ports/bitbake/lib/bb/event.py", line 134, in fire_class_handlers
    execute_handler(name, handler, event, d)
  File "/OE/build/luneos-thud/webos-ports/bitbake/lib/bb/event.py", line 106, in execute_handler
    ret = handler(event)
  File "/OE/build/luneos-thud/webos-ports/openembedded-core/meta/classes/sstate.bbclass", line 1083, in sstate_eventhandler2
    (stamp, manifest, workdir) = l.split()
  ValueError: not enough values to unpack (expected 3, got 1)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agokernel-module-split.bbclass: Fix modinfo decoding in old kernels
Pau Espin Pedrol [Mon, 31 Dec 2018 00:04:50 +0000 (01:04 +0100)]
kernel-module-split.bbclass: Fix modinfo decoding in old kernels

Before linux commit d36b691077dc59c74efec0d54ed21b86f7a2a21a, some
strings contained invalid utf-8 character which made
split_kernel_module_packages unhappy when parsing ums-isd200.ko:

Exception: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf6 in position 21: invalid start byte

Signed-off-by: Pau Espin Pedrol <pespin@sysmocom.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogcc: Fix riscv multilibs for OE way
Khem Raj [Fri, 28 Dec 2018 20:03:49 +0000 (12:03 -0800)]
gcc: Fix riscv multilibs for OE way

In OE we do not build mutlib like gcc does it by default, this ensures
that mutlilib is virtually disabled for OE, since we hardly use same gcc
to build for multiple ABIs

This fixes cases in SDK where g++ is not able to find standard c++
include headers

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocups: default to unix pam module
Diego Rondini [Fri, 28 Dec 2018 13:55:36 +0000 (13:55 +0000)]
cups: default to unix pam module

When pam PACKAGECONFIG is enabled a cups "pam.d" configuration file is
installed. The default configuration file uses a non-existing "pam_unknown.so",
but a different existing module can be selected by passing the
--with-pam-module parameter. Use the unix pam module when pam is enabled.

Signed-off-by: Diego Rondini <diego.rondini@kynetics.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agotestimage.bbclass: remove boot parameter systemd.log_target
Kai Kang [Tue, 25 Dec 2018 09:39:43 +0000 (04:39 -0500)]
testimage.bbclass: remove boot parameter systemd.log_target

Boot parameter systemd.log_target=console affects command journalctl's
output and causes oe selftest case test_systemd_boot_time fail to pass.

| Error at obtaining the boot time from journalctl
| RESULTS:
| RESULTS - systemd.SystemdJournalTests.test_systemd_boot_time - Testcase -1: SKIPPED (0.74s)

systemd.log_target=console was introduced by oe-core commit a0bb649 and
work with parameter systemd.log_level to enable systemd debug.
systemd.log_level has been removed already, so remove systemd.log_target
too to make case test_systemd_boot_time pass.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobinutils: Upgrade to latest on 2.31 release branch
Khem Raj [Wed, 26 Dec 2018 20:09:54 +0000 (12:09 -0800)]
binutils: Upgrade to latest on 2.31 release branch

* Append minor version to PV so recipe checker is happy
* Drop upstreamed patches
* Remove changelog from CVE patches, they dont apply and are in patch
  log anyway

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoffmpeg: Backport patch to fix build with gcc9
Khem Raj [Wed, 26 Dec 2018 20:09:53 +0000 (12:09 -0800)]
ffmpeg: Backport patch to fix build with gcc9

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agovalgrind: Fix x86_64 build failure with gcc9
Khem Raj [Wed, 26 Dec 2018 20:09:52 +0000 (12:09 -0800)]
valgrind: Fix x86_64 build failure with gcc9

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogdb: Backport a fix to build with gcc9
Khem Raj [Wed, 26 Dec 2018 20:09:51 +0000 (12:09 -0800)]
gdb: Backport a fix to build with gcc9

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibxcrypt: Upgrade to 4.4.2
Khem Raj [Wed, 26 Dec 2018 20:09:50 +0000 (12:09 -0800)]
libxcrypt: Upgrade to 4.4.2

Licence-Update: Copyright Alexander Peslyak; 0-clause BSD added
see https://github.com/besser82/libxcrypt/commit/e07290ec7c3de301ce2b813ee2b42131bef2b119

Rename recipe to ve versionless and add PV in recipe itself, makes it
easy to traverse git history

Drop upstreamed patch

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomusl: Update to latest master
Khem Raj [Wed, 26 Dec 2018 20:09:49 +0000 (12:09 -0800)]
musl: Update to latest master

* sync APIs from  kernel v4.18
* Misc bug fixes

Full logs
https://git.musl-libc.org/cgit/musl/log/?qt=range&q=39ef612aa193cc6e954ac5a01574300ccd4b7ef9..21a172dd36cae7a08492fd3a7500d7bf0daee13e

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agonfs-utils: Disable format-overflow as Werror
Khem Raj [Wed, 26 Dec 2018 20:09:48 +0000 (12:09 -0800)]
nfs-utils: Disable format-overflow as Werror

These warnings are intricate and we can ignore that for now as they are
being found by gcc 9, eventually this should be not needed when code
upstream is fixed

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agognupg: Do not apply -Woverride-init guard for gcc >= 9
Khem Raj [Wed, 26 Dec 2018 20:09:47 +0000 (12:09 -0800)]
gnupg: Do not apply -Woverride-init guard for gcc >= 9

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agognupg: Upgrade to 2.2.12 release
Khem Raj [Wed, 26 Dec 2018 20:09:46 +0000 (12:09 -0800)]
gnupg: Upgrade to 2.2.12 release

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogrub2: Fix passing null to printf formats
Khem Raj [Wed, 26 Dec 2018 20:09:45 +0000 (12:09 -0800)]
grub2: Fix passing null to printf formats

Backport a patch that helps with this error which is found
by gcc9

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopackage_ip.bbclass: add xz threading
Alejandro del Castillo [Wed, 26 Dec 2018 23:59:06 +0000 (17:59 -0600)]
package_ip.bbclass: add xz threading

Before, threading was enabled via a patch to opkg-build. Now that
opkg-build provides a hook for extra arguments, use that.

Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoopkg-utils: upgrade to version 0.4.0
Alejandro del Castillo [Wed, 26 Dec 2018 23:59:05 +0000 (17:59 -0600)]
opkg-utils: upgrade to version 0.4.0

Drop patches already merged upstream.

Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoopkg: upgrade to version 0.4.0
Alejandro del Castillo [Wed, 26 Dec 2018 23:59:04 +0000 (17:59 -0600)]
opkg: upgrade to version 0.4.0

- Drop 0001-remove_maintainer_scripts-use-strict-matching.patch

Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/utils/qemurunner: Print output when failed to login
Robert Yang [Thu, 27 Dec 2018 08:59:43 +0000 (00:59 -0800)]
oeqa/utils/qemurunner: Print output when failed to login

This is useful for debugging.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglibc: Enable --with-default-link
Khem Raj [Sat, 22 Dec 2018 18:27:28 +0000 (10:27 -0800)]
glibc: Enable --with-default-link

This lets linker to use its internal linker script for shared objects
Fixes with when gold is default linker

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobase.bbclass, classextend.py: Drop catering to gcc-initial
Khem Raj [Wed, 19 Dec 2018 18:13:09 +0000 (10:13 -0800)]
base.bbclass, classextend.py: Drop catering to gcc-initial

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agotcmode-default: Drop pinnings for gcc-initial based recipes
Khem Raj [Wed, 19 Dec 2018 18:13:08 +0000 (10:13 -0800)]
tcmode-default: Drop pinnings for gcc-initial based recipes

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomusl: Move away from gcc-initial dependency
Khem Raj [Wed, 19 Dec 2018 18:13:05 +0000 (10:13 -0800)]
musl: Move away from gcc-initial dependency

gcc-initial step is no more needed

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibssp: Remove dependency on gcc-initial
Khem Raj [Wed, 19 Dec 2018 18:13:07 +0000 (10:13 -0800)]
libssp: Remove dependency on gcc-initial

Its not needed anymore and it can depend on gcc-cross instead

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agonewlib: Move away from gcc-initial dependency
Khem Raj [Wed, 19 Dec 2018 18:13:06 +0000 (10:13 -0800)]
newlib: Move away from gcc-initial dependency

gcc-initial step is no more needed

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agorecipes: Drop virtual/libc-for-gcc
Richard Purdie [Wed, 19 Dec 2018 22:29:13 +0000 (22:29 +0000)]
recipes: Drop virtual/libc-for-gcc

We no longer have special "libc" for gcc so we can rely on plain
virtual/libc and reduce the complexity in the dependencies.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogcc: Drop the -initial versions of the compiler
Richard Purdie [Wed, 19 Dec 2018 10:37:19 +0000 (10:37 +0000)]
gcc: Drop the -initial versions of the compiler

Separated out from the previous commit for clarity, this simply drops
all the -inital pieces of gcc which are no longer needed after the
previous commit.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogcc: Drop gcc-cross-initial and use gcc-cross instead
Richard Purdie [Wed, 19 Dec 2018 00:09:14 +0000 (00:09 +0000)]
gcc: Drop gcc-cross-initial and use gcc-cross instead

We need a libgcc to build glibc. Tranditionally we therefore build
a non-threaded and non-shared compiler (gcc-cross-initial), then use
that to build libgcc-initial which is used to build glibc which we can
then build gcc-cross and libgcc against.

Firstly, we can drop the glibc dependency from gcc-cross, *if* we make
two changes:

a) specify the minimum glibc version to support in a configure option
b) create a dummy limits.h file so that later when glibc creates one,
   the headers structure has support for it. We can do this with a simple
   empty file

Once gcc-cross is libc independent, we can use it to build both
libgcc-initial and then later libgcc.

libgcc-initial is tricky as we need to imitate the non-threaded and
non-shared case. We can do that by hacking the threading mode back to
"single" even if gcc reports "posix" and disable libc presence for the
libgcc-intial build. We have to create the dummy limits.h to avoid
compiler errors from a missing header.

glibc will fail to link with libgcc-initial due to a missing "exception
handler" capable libgcc (libgcc_eh.a). Since we know glibc doesn't need
any exception handler, we can safely symlink to libgcc.a.

With those changes, gcc-cross can be used in all places and we only need
one build of gcc for each architecture.

For some reason ifunc was being disabled on mips prior to these changes
but afterwards became enabled but caused assertion failures. This is
therefore disabled until we can debug that.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglibc: Remove site_config and glibc-initial
Richard Purdie [Tue, 18 Dec 2018 20:01:26 +0000 (20:01 +0000)]
glibc: Remove site_config and glibc-initial

The only reason we appear to need glibc-initial at this time is to support
the site_config code. The site_config code compiles and therefore needs
at least some level of working C library to link against.

This isn't a good reason to keep the complexity of glibc-initial around
so remove it, and the site_config support which then breaks.

Performance benchmarks suggest the time spent just rerunning configure
for site_config just about equals any performance benefit for OE-Core
image builds excluding the time spent adding glibc-initial to the
dependency chain.

I'm not opposed to readding some other form of site_config support
but it needs to be rethought.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocrosssdk/cross-canadian: Set LIBCOVERRIDE correctly
Richard Purdie [Mon, 24 Dec 2018 09:56:15 +0000 (09:56 +0000)]
crosssdk/cross-canadian: Set LIBCOVERRIDE correctly

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/concurrencytest: fix for locating meta-selftest
Robert Yang [Wed, 19 Dec 2018 02:38:00 +0000 (18:38 -0800)]
oeqa/concurrencytest: fix for locating meta-selftest

The previous code assumed builddir and meta-selftest are in the same dir, but
this isn't always true, builddir can be anywhere, use get_test_layer() to
locate meta-selftest can fix the problem.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopopulate_sdk_ext.bbclass: Include site.conf in parsing for contents for local.conf
Khem Raj [Thu, 20 Dec 2018 07:35:02 +0000 (23:35 -0800)]
populate_sdk_ext.bbclass: Include site.conf in parsing for contents for local.conf

Some distros use site.conf to emit certain variables which are important
for eSDK e.g. DISTRO with out which eSDK will not be able to ger right
metadata when it tries to build

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoi2c-tools: upgrade 4.0 -> 4.1
Anuj Mittal [Wed, 19 Dec 2018 07:29:29 +0000 (15:29 +0800)]
i2c-tools: upgrade 4.0 -> 4.1

* For changes, see:
https://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git/log/?qt=range&q=v4.0...v4.1

* Remove upstreamed patches

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocommon-licenses: update Libpng license text
Anuj Mittal [Wed, 19 Dec 2018 07:29:27 +0000 (15:29 +0800)]
common-licenses: update Libpng license text

The new libpng license comprises the terms and conditions from the zlib
license, and the disclaimer from the Boost license. The legacy libpng
license license, used until libpng-1.6.35, is appended to the
new license, following the precedent established in the Python Software
Foundation License version 2.

See for details:

https://sourceforge.net/projects/libpng/files/libpng16/1.6.36/

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibpng: upgrade 1.6.35 -> 1.6.36
Anuj Mittal [Wed, 19 Dec 2018 07:29:26 +0000 (15:29 +0800)]
libpng: upgrade 1.6.35 -> 1.6.36

For changes, see:

https://sourceforge.net/p/libpng/code/ci/libpng16/tree/CHANGES

License-Update: Added authors to license, formatting, version changes,
export classification clarification and a new libpng2 license with
clarification:

The new libpng license comprises the terms and conditions from the zlib
license, and the disclaimer from the Boost license. The legacy libpng
license license, used until libpng-1.6.35, is appended to the
new license, following the precedent established in the Python Software
Foundation License version 2.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoharfbuzz: upgrade 2.1.3 -> 2.2.0
Anuj Mittal [Wed, 19 Dec 2018 07:29:25 +0000 (15:29 +0800)]
harfbuzz: upgrade 2.1.3 -> 2.2.0

For changes, see:

https://cgit.freedesktop.org/harfbuzz/tree/NEWS?h=2.2.0

Remove do_configure_append after the patch to remove pkg.m4 was merged
upstream.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosqlite3: upgrade 3.25.3 -> 3.26.0
Anuj Mittal [Wed, 19 Dec 2018 07:29:24 +0000 (15:29 +0800)]
sqlite3: upgrade 3.25.3 -> 3.26.0

For changes, see:

https://www.sqlite.org/releaselog/3_26_0.html

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibatomic-ops: upgrade 7.6.6 -> 7.6.8
Anuj Mittal [Wed, 19 Dec 2018 07:29:23 +0000 (15:29 +0800)]
libatomic-ops: upgrade 7.6.6 -> 7.6.8

For changes, see:

https://github.com/ivmai/libatomic_ops/compare/v7.6.6...v7.6.8

Also switch to using tarball release instead.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogsettings-desktop-schemas: upgrade 3.28.0 -> 3.28.1
Anuj Mittal [Wed, 19 Dec 2018 07:29:22 +0000 (15:29 +0800)]
gsettings-desktop-schemas: upgrade 3.28.0 -> 3.28.1

Changes from release notes:

- Set default background image for screen lock to an existing one
- Translation updates

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoeudev: upgrade 3.2.5 -> 3.2.7
Anuj Mittal [Wed, 19 Dec 2018 07:29:21 +0000 (15:29 +0800)]
eudev: upgrade 3.2.5 -> 3.2.7

For changes, see:

https://github.com/gentoo/eudev/compare/v3.2.5...v3.2.7

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoicecc: patchelf is needed by icecc-create-env
Douglas Royds [Wed, 19 Dec 2018 22:59:48 +0000 (11:59 +1300)]
icecc: patchelf is needed by icecc-create-env

Although we could potentially build patchelf and all its dependencies,
they would all have to be blacklisted to avoid trying to build them with
icecc. We use the host patchelf instead.

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoicecc: Don't generate recipe-sysroot symlinks at recipe-parsing time
Douglas Royds [Wed, 19 Dec 2018 22:59:47 +0000 (11:59 +1300)]
icecc: Don't generate recipe-sysroot symlinks at recipe-parsing time

The python function icecc_path() was being invoked inline by set_icecc_env(),
meaning that it was being invoked at recipe-parsing time.
As a side-effect, icecc_path() was creating the recipe-sysroot directory and
symlinking icecc into it. Because this was done at parsing time (rather than
configure time), we were generating otherwise-empty WORKDIRs for *all* parsed
recipes, and for all virtual classes (-native, -nativesdk).
In my build, this generated more than 800 of these otherwise-empty WORKDIRs.

I have simplified icecc_path() to return only the intended path to the icecc
symlinks in the recipe-sysroot, with no side-effect.
We then create the directory and the icecc symlinks at configure time.

Because get_cross_kernel_cc() is still invoked at parse-time,
it needs a guard-clause for the non-kernel case.
We are now finding the host icecc at do_configure time,
so icecc needs to be in the HOSTTOOLS. I have made this non-fatal,
so that we can still inherit icecc without icecc installed.

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoicecc: Syntax error meant that we weren't waiting for tarball generation
Douglas Royds [Wed, 19 Dec 2018 22:59:46 +0000 (11:59 +1300)]
icecc: Syntax error meant that we weren't waiting for tarball generation

If two bitbake processes try to generate the ICECC_VERSION tarball at the same
time, the thread that fails to get the lock will wait 30 sec for the first to
finish. A syntax error meant that this was not happening, and in particular, if
tarball generation failed (eg. for lack of patchelf), it did so silently.

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoicecc: Trivial simplification
Douglas Royds [Wed, 19 Dec 2018 22:59:45 +0000 (11:59 +1300)]
icecc: Trivial simplification

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoicecc: readlink -f on the recipe-sysroot gcc/g++
Douglas Royds [Wed, 19 Dec 2018 22:59:44 +0000 (11:59 +1300)]
icecc: readlink -f on the recipe-sysroot gcc/g++

We were accidentally doing a readlink -f on simply 'gcc', for instance

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibxcrypt: Fix nativesdk build with gcc9
Khem Raj [Wed, 19 Dec 2018 20:23:14 +0000 (12:23 -0800)]
libxcrypt: Fix nativesdk build with gcc9

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogcc-runtime: Drop building libmpx
Khem Raj [Wed, 19 Dec 2018 18:25:01 +0000 (10:25 -0800)]
gcc-runtime: Drop building libmpx

libmpx is not supported any longer and infact has been removed
completely from gcc-9, see

https://github.com/gcc-mirror/gcc/commit/1e42d5c637e1b1f65dfddd0923dfb25676bb56e5

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogcc-runtime: Add missing libc dependency
Richard Purdie [Tue, 18 Dec 2018 11:52:56 +0000 (11:52 +0000)]
gcc-runtime: Add missing libc dependency

For reasons lost in the depths of time, perhaps performane related,
we only have a dependency on libc at packaging time. This is too late,
as demonstrated by a recent build failure on non-IA builds where
the glibc 2.29 upgrade had been removed from the build:

ld: recipe-sysroot/usr/lib/../lib/libstdc++.so: undefined reference to `log@GLIBC_2.29'

libstdc++ should have been rebuilt but had not as the dependency
wasn't present.

Add the missing dependency to avoid this problem (and drop the other
form of dependency which is no longer needed).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodistrodata: Remove
Richard Purdie [Mon, 17 Dec 2018 23:31:07 +0000 (23:31 +0000)]
distrodata: Remove

The code in the tasks within this class are old and there are much better
ways to do these things now such as through tinfoil rather than writing csv
files incrementally with start/stop events and lock files.

Existing users of the code (mainly the do_checkpkg task) have been ported
over to tinfoil. Drop the class, any other users should also make use
of the tinfoil functionality.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoscripts/distro: Remove as using obsolete APIs and need re-implementing sanely
Richard Purdie [Tue, 18 Dec 2018 12:02:06 +0000 (12:02 +0000)]
scripts/distro: Remove as using obsolete APIs and need re-implementing sanely

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoupstream-tracking.inc: Remove the long deprecated file
Richard Purdie [Mon, 17 Dec 2018 22:57:32 +0000 (22:57 +0000)]
upstream-tracking.inc: Remove the long deprecated file

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/selftest/distrodata: Drop now unneeded distrodata inherit
Richard Purdie [Tue, 18 Dec 2018 11:57:12 +0000 (11:57 +0000)]
oeqa/selftest/distrodata: Drop now unneeded distrodata inherit

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodefaultsetup: Include maintainers.inc by default
Richard Purdie [Mon, 17 Dec 2018 22:56:20 +0000 (22:56 +0000)]
defaultsetup: Include maintainers.inc by default

There is little harm in including this file rather than having a
rather obscure and soon to be obsolete bbclass adding this information.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibxcrypt: Upgrade to 4.4.1 release
Khem Raj [Mon, 17 Dec 2018 19:40:04 +0000 (11:40 -0800)]
libxcrypt: Upgrade to 4.4.1 release

License-Update: New files added to existing list

Add -Wno-error=missing-attributes to compiler flags, this helps in
compiling with gcc 9.0, eventually, the code should be fixed

Add a patch to fix x32 build

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agokernel-devsrc: fix usrmerge install path
Allen Wild [Sat, 15 Dec 2018 19:24:45 +0000 (14:24 -0500)]
kernel-devsrc: fix usrmerge install path

Update /lib to $nonarch_base_libdir to fix package QA errors when
usermerge is enabled in DISTRO_FEATURES.

ERROR: kernel-devsrc-1.0-r0 do_package_qa: QA Issue: kernel-devsrc
package is not obeying usrmerge distro feature. /lib should be relocated
to /usr. [usrmerge]

Signed-off-by: Allen Wild <allenwild93@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosystemd: Fix memory use after free errors
Khem Raj [Mon, 17 Dec 2018 05:54:42 +0000 (21:54 -0800)]
systemd: Fix memory use after free errors

Found with gcc trunk

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogo: Upgrade 1.11.1 -> 1.11.4 minor release
Khem Raj [Mon, 17 Dec 2018 05:54:40 +0000 (21:54 -0800)]
go: Upgrade 1.11.1 -> 1.11.4 minor release

Changes: https://golang.org/doc/devel/release.html#go1.11

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-yocto: correct qemumips64el definition
Bruce Ashfield [Mon, 17 Dec 2018 15:26:48 +0000 (10:26 -0500)]
linux-yocto: correct qemumips64el definition

The big endian mips definition was used as the basis for the little
endian machine. Unfortunatey, the KMACHINE definitions were not fully
cleared, so big endian builds will match on the 'le' variant .. and
break.

We drop the BE machine definitions from the LE variant and we are fixed.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>