]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
6 years agolttng-tools: fix compile error for x32
Kai Kang [Thu, 13 Dec 2018 14:14:11 +0000 (09:14 -0500)]
lttng-tools: fix compile error for x32

Fix build error of src/common/utils.c for x32:

| .../src/common/utils.c: Assembler messages:
| .../src/common/utils.c:1026: Error: register type mismatch for `bsr'
| .../src/common/utils.c:1028: Error: operand type mismatch for `movq'
| make[3]: *** [utils.lo] Error 1

[YOCTO #13081]

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosystemd: fix compile error for x32
Kai Kang [Thu, 13 Dec 2018 14:14:10 +0000 (09:14 -0500)]
systemd: fix compile error for x32

Backport patch to fix systemd compile error for x32:

| ../git/src/timesync/timesyncd-manager.c:607:19: error: format '%lli'
| expects argument of type 'long long int', but argument 11 has type
| 'long int' [-Werror=format=]

[YOCTO #13074]

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooe-selftest: distrodata: change test_maintainers() to use tinfoil
Paul Eggleton [Thu, 13 Dec 2018 03:46:56 +0000 (16:46 +1300)]
oe-selftest: distrodata: change test_maintainers() to use tinfoil

Use tinfoil to enumerate recipes and get the value of RECIPE_MAINTAINER
to make it a bit more reliable in the face of do_checkpkg issues we are
currently seeing on the Yocto Project autobuilder. This also makes it a
little less painful to re-execute test_maintainers() since you don't
have to wait for bitbake -c checkpkg to complete every time.

Note that the new test has been written in such a way that it will still
function if RECIPE_MAINTAINER values are ever moved to the recipes.
Also, the test still currently fails as there are recipes that don't
have an assigned maintainer.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolib/oe/utils: Set stderr for host_gcc_version()
Robert Yang [Thu, 13 Dec 2018 03:19:28 +0000 (11:19 +0800)]
lib/oe/utils: Set stderr for host_gcc_version()

Fixed:
$ ln -s /usr/bin/ccache /folk/lyang1/bin/gcc
$ rm -fr tmp/hosttools/ && bitbake -p
[snip]
ERROR: Error running gcc  --version:

It didn't print the error message, now it is:
ERROR: Error running gcc  --version: ccache: error: Could not find compiler "gcc" in PATH

For the error itself, it is because ccache is not in my HOSTTOOLS, so this is
an expected error.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoinsane.bbclass: add package specific skips to sstate hash
Michael Ho [Thu, 29 Nov 2018 12:21:37 +0000 (14:21 +0200)]
insane.bbclass: add package specific skips to sstate hash

The bbclass currently adds INSANE_SKIP to the sstate hash dependencies
however the package specific skips such as INSANE_SKIP_${PN} are
not added automatically because of how the class references them.

This causes the problem that modifying INSANE_SKIP_${PN} does not
invalidate the sstate cache and can mask build breaking warnings.

Add an anonymous python snippet to explicitly include these additional
relevant skips to the sstate hash.

Singed-off-by: Michael Ho <Michael.Ho@bmw.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocmake.bbclass: append includedir to implicit include dirs
Michael Ho [Thu, 29 Nov 2018 12:21:35 +0000 (14:21 +0200)]
cmake.bbclass: append includedir to implicit include dirs

This resolves issues with paths being marked as system includes that
differ from /usr/include but are considered implicit by the toolchain.
This enables developers to add directories to system includes
to supress compiler compiler warnings from them.

Signed-off-by: Michael Ho <Michael.Ho@bmw.de>
Cc: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/sdk: rewrite cpio test
Ross Burton [Tue, 11 Dec 2018 23:26:36 +0000 (23:26 +0000)]
oeqa/sdk: rewrite cpio test

Don't use the helper class as it gets in the way more than it helps, exercise
the out-of-tree paths, and verify the installed files match the expected
architecture.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/sdk: rewrite lzip test
Ross Burton [Tue, 11 Dec 2018 23:26:35 +0000 (23:26 +0000)]
oeqa/sdk: rewrite lzip test

Don't use the helper class as it gets in the way more than it helps, exercise
the out-of-tree paths, and verify the installed files match the expected
architecture.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/sdk: clean up galculator test
Ross Burton [Tue, 11 Dec 2018 23:26:34 +0000 (23:26 +0000)]
oeqa/sdk: clean up galculator test

Drop redundant imports and variables, and use os.makedirs() instead of
bb.utils.mkdirhier().

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/sdk: show output if run() fails
Ross Burton [Tue, 11 Dec 2018 23:26:33 +0000 (23:26 +0000)]
oeqa/sdk: show output if run() fails

Use oeqa.utils.subprocesstweak to monkey-patch the subprocess exception so that
any output is shown, and remove any explicit try/catch handling that would have
hidden this.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/sdk: clarify ELF assertion message
Ross Burton [Tue, 11 Dec 2018 23:26:32 +0000 (23:26 +0000)]
oeqa/sdk: clarify ELF assertion message

For example, instead of saying "3 != 62", say "Binary was x86-64 but expected
i586".

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-libc-headers: Fix build failure by using fixed temporary file instead of pipe
He Zhe [Wed, 21 Nov 2018 14:06:05 +0000 (22:06 +0800)]
linux-libc-headers: Fix build failure by using fixed temporary file instead of pipe

This is a workaround for the following possible build failure.

*** Compiler lacks asm-goto support.. Stop.

When building linux-libc-headers we need to use binutils on build machine.
binutils v2.31 introduces a bug that could cause scripts/gcc-goto.sh to fail
when running in an environment where /tmp is rarely used, e.g. in docker.

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agowebkitgtk: Link compiler-rt for clang specific built-ins
Khem Raj [Mon, 10 Dec 2018 23:52:07 +0000 (15:52 -0800)]
webkitgtk: Link compiler-rt for clang specific built-ins

When using clang, its increasingly using its own runtime which means
libgcc is not enough to find all primitives its using.

Fixes errors like
recipe-sysroot/usr/lib/libwebkit2gtk-4.0.so: undefined reference to
`__mulodi4'

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoinsane.bbclass: BPF objects may mismatch in endianness and bitness too
Khem Raj [Mon, 10 Dec 2018 23:52:06 +0000 (15:52 -0800)]
insane.bbclass: BPF objects may mismatch in endianness and bitness too

This ensures that bitness and endianness is ignored for BPF objects
Fixes QA issues like

Bit size did not match (32 to 64) kernel-selftest on
/work/qemumips-yoe-linux/kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/bpf/test_btf_nokv.o

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolzip: clean up recipe
Ross Burton [Tue, 11 Dec 2018 10:49:07 +0000 (10:49 +0000)]
lzip: clean up recipe

Use cleandirs to ensure ${B} is always empty, and remove redundant assignment of
EXTRA_OEMAKE (presumably from when it had a non-empty default).

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocurl: Add PACKAGECONFIG to enable NSS support
Otavio Salvador [Tue, 11 Dec 2018 13:21:09 +0000 (11:21 -0200)]
curl: Add PACKAGECONFIG to enable NSS support

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoselftest/package: Correct format arguments in test_gdb_hardlink_debug
Ola x Nilsson [Tue, 11 Dec 2018 11:33:57 +0000 (12:33 +0100)]
selftest/package: Correct format arguments in test_gdb_hardlink_debug

Signed-off-by: Ola x Nilsson <olani@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agonss: fix Upstream-Status format
Ross Burton [Mon, 10 Dec 2018 17:11:38 +0000 (17:11 +0000)]
nss: fix Upstream-Status format

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoliberror-perl: upgrade 0.17026 -> 0.17027
Tim Orling [Sun, 9 Dec 2018 21:43:22 +0000 (13:43 -0800)]
liberror-perl: upgrade 0.17026 -> 0.17027

* add RDEPENDS
* add RDEPENDS for ptest
  - tested on qemux86 with glibc and musl
* drop do_compile, not obvious why LIBC needed to be set
* Added HOMEPAGE:
  https://bitbucket.org/shlomif/perl-error.pm
  - Repository used to be github.com/shlomif (deadlink)

Upstream release notes:
"""
0.17027         2018-10-28
- Documentation and examples enhancements.
  - https://bitbucket.org/shlomif/perl-error.pm/pull-requests/1/october-prc-some-minor-mostly-doc-changes/diff
  - Thanks to https://metacpan.org/author/JMERELO .
"""

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocreate_manifest2: Dont match filenames which contain the directory name for new manifest
Alejandro Enedino Hernandez Samaniego [Sat, 8 Dec 2018 01:31:56 +0000 (17:31 -0800)]
create_manifest2: Dont match filenames which contain the directory name for new manifest

When creating a new python2 manifest, there is a corner case on which
the filepath for a certain dependency that was found, could contain
the path of an existing folder, e.g. ${libdir}/python2.7/xmlrpclib.py
module path contains ${libdir}/python2.7/xml, this causes an issue where
the dependency doesnt get eventually added on FILES for that module.

This patch checks if the dependency that was found is a directory, if it
is, it checks if it matches one of the existing directories on the
manifest, if it is not, then it checks if the dependency's path (without
the filename) matches one of the directories.

Also some misc indentation fixes.

Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomdadm: Drop redundant patches and fix build with clang
Khem Raj [Sat, 8 Dec 2018 20:56:02 +0000 (12:56 -0800)]
mdadm: Drop redundant patches and fix build with clang

Several patches were being applied unnecessarily, the purpose they
served at one point has either been fixed differently, or accepted
upstream.

Add a new patch to make clang's diagnostics happy

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocreate_manifest3: Dont match filenames which contain the directory name for new manifest
Alejandro Enedino Hernandez Samaniego [Sat, 8 Dec 2018 01:33:46 +0000 (17:33 -0800)]
create_manifest3: Dont match filenames which contain the directory name for new manifest

When creating a new python3 manifest, there is a corner case on which
the filepath for a certain dependency that was found, could contain
the path of an existing folder, e.g. ${libdir}/python3/xmlrpclib.py
module path contains ${libdir}/python3/xml, this causes an issue where
the dependency doesnt get eventually added on FILES for that module.

This patch checks if the dependency that was found is a directory, if it
is, it checks if it matches one of the existing directories on the
manifest, if it is not, then it checks if the dependency's path (without
the filename) matches one of the directories.

Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agonfs-utils: Fix build with clang
Khem Raj [Sat, 8 Dec 2018 10:26:38 +0000 (02:26 -0800)]
nfs-utils: Fix build with clang

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomeson.bbclass: map mips64el TARGET_ARCH to mips64 for the cross file
Andrea Adami [Fri, 7 Dec 2018 23:23:23 +0000 (00:23 +0100)]
meson.bbclass: map mips64el TARGET_ARCH to mips64 for the cross file

Meson uses 'mips64' for both big- and little-endian MIPS64 machines,
so map mips64el to mips64.

Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/sdk/galculator: rewrite to use new helpers
Ross Burton [Fri, 7 Dec 2018 21:26:05 +0000 (21:26 +0000)]
oeqa/sdk/galculator: rewrite to use new helpers

6 years agooeqa/sdk/python: fix version typo
Ross Burton [Fri, 7 Dec 2018 21:25:18 +0000 (21:25 +0000)]
oeqa/sdk/python: fix version typo

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agooeqa/sdk/assimp: use helpers
Ross Burton [Fri, 7 Dec 2018 21:25:00 +0000 (21:25 +0000)]
oeqa/sdk/assimp: use helpers

6 years agooeqa/sdk/case: add fundamental helper methods
Ross Burton [Fri, 7 Dec 2018 21:24:42 +0000 (21:24 +0000)]
oeqa/sdk/case: add fundamental helper methods

6 years agoavahi: avoid depending on skipped package
Jens Rehsack [Wed, 28 Nov 2018 08:15:30 +0000 (09:15 +0100)]
avahi: avoid depending on skipped package

When built without D-Bus, libavahi-client is not build:
  Building libavahi-client:           no   (You need avahi-daemon and D-Bus!)
which causes avahi-dev RDEPENDS failing when creating an image
containing development-tools:
 *   - nothing provides libavahi-client = 0.7-r0 needed by avahi-dev-0.7-r0.cortexa8hf-neon

Signed-off-by: Jens Rehsack <sno@netbsd.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agouboot-sign.bbclass: fix signature and deployment
Robert Yang [Fri, 30 Nov 2018 02:26:14 +0000 (10:26 +0800)]
uboot-sign.bbclass: fix signature and deployment

Fixed:
MACHINE = "beaglebone-yocto"
KERNEL_CLASSES += "kernel-fitimage"
KERNEL_IMAGETYPE_beaglebone-yocto = "fitImage"
UBOOT_MACHINE_beaglebone-yocto = "am335x_boneblack_vboot_config"
UBOOT_MKIMAGE_DTCOPTS = "-I dts -O dtb -p 2000"
UBOOT_SIGN_KEYDIR = "${TOPDIR}/conf"
UBOOT_SIGN_KEYNAME = "dev"
UBOOT_SIGN_ENABLE = "1"
IMAGE_INSTALL_remove = "kernel-image-zimage"

$ cd conf
$ openssl genrsa -F4 -out dev.key 2048
$ openssl req -batch -new -x509 -key dev.key -out dev.crt
$ cd ../
$ bitbake u-boot linux-yocto
$ grep signature tmp/deploy/images/beaglebone-yocto/*.dtb
Binary file tmp/deploy/images/beaglebone-yocto/u-boot-beaglebone-yocto-2018.07-r0.dtb matches
Binary file tmp/deploy/images/beaglebone-yocto/u-boot-beaglebone-yocto.dtb matches
Binary file tmp/deploy/images/beaglebone-yocto/u-boot.dtb matches

And there would be no signature info when rebuild from sstate:
$ bitbake u-boot linux-yocto -cclean
$ bitbake u-boot linux-yocto
$ grep signature tmp/deploy/images/beaglebone-yocto/*.dtb
No result

This s because kernel directly edit ${DEPLOY_DIR_IMAGE}/u-boot.dtb, (Note, it
is global ${DEPLOY_DIR_IMAGE}, not recipe's DEPLOYDIR), so that the modified
info is not in sstate, and would be lost when rebuild from sstate.

There are other problems in previouse code:
- The u-boot.dtb is provided by u-boot, but edited by kernel during signing, so
  it should be deployed by kernel rather than u-boot.

- The u-boot.do_concat_dtb directly install files to global ${DEPLOY_DIR_IMAGE},
  this is incorrect, the ${DEPLOY_DIR_IMAGE} should be installed by do_deploy.

- It seems that it assumes do_deploy depends on do_install according the comments,
  but they have no relationships:
  # do_concat_dtb is scheduled _before_ do_install as it overwrite the
  # u-boot.bin in both DEPLOYDIR and DEPLOY_IMAGE_DIR.

- The do_concat_dtb should be run after do_compile, but it doesn't have this
  dependency.

Make u-boot install u-boot.dtb to ${datadir}, kernel copies u-boot.dtb from
${STAGING_DATADIR} to ${B} and deploy it can fix the problem.

[YOCTO #12112]

Reported-by: Christian Andersen <c.andersen@kostal.com>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agostrace: fix ptest fail and strip ptest host references
Changqing Li [Wed, 5 Dec 2018 09:42:26 +0000 (17:42 +0800)]
strace: fix ptest fail and strip ptest host references

1. Add LDFLAGS_FOR_BUILD for strip host reference
2. Revert one previous replace operation for fix ptest fail.
   refer oe commit: 74b5088f1cc1708db43c33ac2dc7f01f4a4db9c1

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agou-boot-tools: fix compile error
Kai Kang [Fri, 30 Nov 2018 01:58:22 +0000 (20:58 -0500)]
u-boot-tools: fix compile error

It uses sandbox_defconfig to produce u-boot tools. But EFI is only
supported by arm and x86, then it fails to run task do_compile on other
arches:

| include/config_distro_bootcmd.h:267:3: error: #error "sandbox EFI
| support is only supported on ARM and x86"

Only enable EFI support for u-boot-tools on x86 and arm to fix the issue.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglibc: improve reproducibility with multilib
Hongxu Jia [Thu, 6 Dec 2018 08:56:15 +0000 (16:56 +0800)]
glibc: improve reproducibility with multilib

Multilib builds specify several loaders which will end up embedded in
some binaries or script files. To support reproducible builds, we must
ensure the loaders are always in deterministic order.

[YOCTO #2655]
[YOCTO #12478]
[YOCTO #12480]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Improve the fix and rebase it to 2.28

Here is the log of lib32-glibc
[log.do_compile]
|Adjust ldd script
|ldd "/lib64/ld-linux-x86-64.so.2 /lib/ld-linux.so.2 /lib/ld-linux.so.2
/lib64/ld-linux-x86-64.so.2" -> "/lib/ld-linux.so.2 /lib64/ld-linux-x86-64.so.2"
[log.do_compile]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agorecipeutils-test: Add missing LIC_FILES_CHKSUM
Khem Raj [Thu, 6 Dec 2018 00:33:55 +0000 (16:33 -0800)]
recipeutils-test: Add missing LIC_FILES_CHKSUM

Fixes
ERROR: QA Issue: recipeutils-test: Recipe file fetches files and does
not have license file information (LIC_FILES_CHKSUM) [license-checksum]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibunwind: Enable building static archive on musl
Khem Raj [Thu, 6 Dec 2018 00:07:49 +0000 (16:07 -0800)]
libunwind: Enable building static archive on musl

This ensures that we have .a for libunwind on musl targets, this is used
for stack unwinding infra e.g. in rust

Help compiling rust compiler and standard library from meta-rust

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agokernel: don't assign the build user/host
Federico Sauter [Wed, 5 Dec 2018 14:22:32 +0000 (14:22 +0000)]
kernel: don't assign the build user/host

The KBUILD_BUILD_USER and KBUILD_BUILD_HOST variables were
assigned at the kernel class level, which made it impossible
to override them in the local configuration.

By setting only the default values of those variables in the
kernel class, it is now possible to override them as expected.

Signed-off-by: Federico Sauter <federico.sauter@ableton.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/selftest/runcmd: Increase timeout delta
Richard Purdie [Thu, 29 Nov 2018 10:28:34 +0000 (10:28 +0000)]
oeqa/selftest/runcmd: Increase timeout delta

Expecting 1s accuracy on a 2s timeout on a heavily loaded system has proven to be
unreliable. Update this to a 5s timeout with a 3s delta which should be achievable.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoimage-buildinfo: Remove unused function argument
Joshua Watt [Tue, 4 Dec 2018 03:42:45 +0000 (21:42 -0600)]
image-buildinfo: Remove unused function argument

Removes the listvars argument to image_buildinfo_outputvars(). It
doesn't appear that this argument ever did anything.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agokernel-fitimage: Replace tabs with spaces in python
Alex Kiernan [Fri, 7 Dec 2018 10:31:07 +0000 (10:31 +0000)]
kernel-fitimage: Replace tabs with spaces in python

Fix:

  WARNING: python should use 4 spaces indentation, but found tabs in kernel-fitimage.bbclass, line 24

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/selftest/context: ensure log directory exists
Chen Qi [Fri, 7 Dec 2018 06:43:07 +0000 (14:43 +0800)]
oeqa/selftest/context: ensure log directory exists

Ensure log directory exists to avoid the following error.

  FileNotFoundError: [Errno 2] No such file or directory: '/.../build-selftest/tmp/log/oe-selftest-results-20181207043431.log'

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobinutils: Fix build with clang
Khem Raj [Fri, 7 Dec 2018 03:12:33 +0000 (19:12 -0800)]
binutils: Fix build with clang

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibart-lgpl: remove
Ross Burton [Thu, 6 Dec 2018 23:40:13 +0000 (23:40 +0000)]
libart-lgpl: remove

This is very dead, and nothing in oe-core or meta-oe depends on it anymore.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake.conf: Cleanup deprecated function usage
Richard Purdie [Fri, 7 Dec 2018 00:05:26 +0000 (00:05 +0000)]
bitbake.conf: Cleanup deprecated function usage

This function was moved in bitbake a long time ago, use the
preferred version to avoid a Deprecation warning.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoclasses: Correctly markup regex strings
Richard Purdie [Fri, 7 Dec 2018 00:04:50 +0000 (00:04 +0000)]
classes: Correctly markup regex strings

There are various escape characters in these stings which python warns
about so use the correct regex markup for them.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/selftest/esdk: Ensure parent directory exists
Richard Purdie [Thu, 6 Dec 2018 14:06:34 +0000 (14:06 +0000)]
oeqa/selftest/esdk: Ensure parent directory exists

INFO - ======================================================================
INFO - ERROR: setUpClass (eSDK.oeSDKExtSelfTest)
INFO - ----------------------------------------------------------------------
INFO - Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/lib/oeqa/core/case.py", line 32, in _oeSetUpClass
    clss.setUpClassMethod()
  File "/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/lib/oeqa/selftest/cases/eSDK.py", line 76, in setUpClass
    cls.tmpdirobj = tempfile.TemporaryDirectory(prefix="selftest-esdk-", dir=bb_vars["WORKDIR"])
  File "/usr/lib/python3.5/tempfile.py", line 929, in __init__
    self.name = mkdtemp(suffix, prefix, dir)
  File "/usr/lib/python3.5/tempfile.py", line 507, in mkdtemp
    _os.mkdir(file, 0o700)
FileNotFoundError: [Errno 2] No such file or directory: '/home/pokybuild/yocto-worker/oe-selftest-debian/build/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/selftest-esdk-q7ln84gc'

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/selftest/esdk: Fix typo causing test failure
Richard Purdie [Thu, 6 Dec 2018 23:25:49 +0000 (23:25 +0000)]
oeqa/selftest/esdk: Fix typo causing test failure

2018-12-06 23:19:24,564 - oe-selftest - INFO - Traceback (most recent call last):
  File "/media/build1/poky-sumo/meta/lib/oeqa/core/case.py", line 32, in _oeSetUpClass
    clss.setUpClassMethod()
  File "/media/build1/poky-sumo/meta/lib/oeqa/selftest/cases/eSDK.py", line 78, in setUpClass
    cls.tmpdir_eSDKQA = cls.tempdirobj.name
AttributeError: type object 'oeSDKExtSelfTest' has no attribute 'tempdirobj'

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agotcl: Upgrade to 8.6.9
Hong Liu [Wed, 5 Dec 2018 01:21:32 +0000 (09:21 +0800)]
tcl: Upgrade to 8.6.9

Upgrade tcl from 8.6.8 to 8.6.9.

Signed-off-by: Hong Liu <hongl.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoat: upgrade to 3.1.23
Chen Qi [Wed, 5 Dec 2018 08:40:46 +0000 (16:40 +0800)]
at: upgrade to 3.1.23

The following patches are rebased.

  fix_parallel_build_error.patch
  pam.conf.patch

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosysstat: upgrade to 12.1.1
Chen Qi [Wed, 5 Dec 2018 08:40:45 +0000 (16:40 +0800)]
sysstat: upgrade to 12.1.1

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocups: upgrade to 2.2.9
Chen Qi [Wed, 5 Dec 2018 08:40:44 +0000 (16:40 +0800)]
cups: upgrade to 2.2.9

The following patch is rebased.

  0001-don-t-try-to-run-generated-binaries.patch

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosudo: upgrade to 1.8.26
Chen Qi [Wed, 5 Dec 2018 08:40:43 +0000 (16:40 +0800)]
sudo: upgrade to 1.8.26

License-Update: include more files to check, but license remains the same.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopackages: respect PACKAGE_NO_GCONV
Kai Kang [Wed, 5 Dec 2018 13:00:56 +0000 (08:00 -0500)]
packages: respect PACKAGE_NO_GCONV

PACKAGE_NO_GCONV is set in libc-package.bbclass if not all of
'libc-charsets libc-locale-code libc-locales' included in
DISTRO_FEATURES. And then no packages glibc-gconv-* glibc-charmap-* and
glibc-localedata-* is created. Update recipes and conf file which depend
on these packages to check required distro features.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoimage.bbclass: respect PACKAGE_NO_GCONV
Kai Kang [Wed, 5 Dec 2018 13:00:55 +0000 (08:00 -0500)]
image.bbclass: respect PACKAGE_NO_GCONV

It installs locale-base-* packages according to var IMAGE_LINGUAS.
Packages locale-base-* are split in libc-package.bbclass if variable
PACKAGE_NO_GCONV is not set. When none of ditro features libc-charsets
libc-locales and libc-locale-code is set, PACKAGE_NO_GCONV is set. Then
no locale-base-* is created and fails to create image.

Clear IMAGE_LINGUAS in such situation.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglibc-locale: fix installed-vs-shipped qa issue
Kai Kang [Wed, 5 Dec 2018 13:00:54 +0000 (08:00 -0500)]
glibc-locale: fix installed-vs-shipped qa issue

Variable PACKAGE_NO_GCONV is set in libc-package.bbclass when none of
libc-charsets, libc-locales and libc-locale-code set in DISTRO_FEATURES.
Then it causes installed-vs-shipped qa issue of glibc-locale:

| ERROR: glibc-locale-2.28-r0 do_package: QA Issue: glibc-locale:
| Files/directories were installed but not shipped in any package:
|   /usr/share/i18n
|   /usr/share/i18n/charmaps
|   /usr/share/i18n/locales
|   /usr/share/i18n/charmaps/CP737.gz
|   ...
|   /usr/share/i18n/locales/ru_RU
|   ...
|   /usr/lib64/gconv/gconv-modules
| Please set FILES such that these items are packaged. Alternatively if they
| are unneeded, avoid installing them or delete them within do_install.
| glibc-locale: 843 installed and not shipped files. [installed-vs-shipped]

So check PACKAGE_NO_GCONV during do_install and not copy those files if
PACKAGE_NO_GCONV has been set.

Simplify call of bb.utils.contains() in libc-package.bbclass as well.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoautoconf-doc: improve reproducibility
Hongxu Jia [Wed, 5 Dec 2018 02:11:48 +0000 (10:11 +0800)]
autoconf-doc: improve reproducibility

autoconf-doc package contains autoconf.info.
This file contains date when this file was created, i.e:

     "This manual (31 January 2018) .."

Therefore, two builds done on two different days will show different dates for
otherwise identical files, hence breaking reproducibility.
The date is obtained from mtime of "autoconf.texi", unfortunately we patch this
file and change the mtime as a consequence.
We restore reproducibility by removing the patch modifying "autoconf.texi".
As a consequence certain supplemental information will be not added to the documentation.
In particular:  more details on usage, and on workarounds for non-updated projects.

[YOCTO #12524]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
With applying this fix:

    "This manual (24 April 2012) .."

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoclasses/waf: Fix builds when B != S
Joshua Watt [Sat, 1 Dec 2018 03:01:42 +0000 (21:01 -0600)]
classes/waf: Fix builds when B != S

Waf requires that the current working directory be ${S} (the location of
the wscript) when building. Most of the time, this was true only because
B defaults to S. However, anything that changed that behavior (notably,
using externalsrc) would break the recipe. Remedy this by explicitly
changing cwd to ${S} when running waf commands. As a happy side effect,
B can be set up for "out of tree" builds to keep the source directory
clean.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agouboot-sign.bbclass: Remove tab indentations in python code
Robert Yang [Fri, 23 Nov 2018 11:08:41 +0000 (19:08 +0800)]
uboot-sign.bbclass: Remove tab indentations in python code

Use 4 spaces to replace a tab.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/selftest/esdk: run selftest inside workdir not /tmp
Ross Burton [Mon, 3 Dec 2018 20:35:15 +0000 (20:35 +0000)]
oeqa/selftest/esdk: run selftest inside workdir not /tmp

We've seen issues with rootfs size calculations and we've seen systems
like opensuse which have btrfs mounted on /tmp causing selftest failures.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa: don't litter /tmp with temporary directories
Ross Burton [Mon, 3 Dec 2018 20:35:14 +0000 (20:35 +0000)]
oeqa: don't litter /tmp with temporary directories

If we need to create a temporary directory in targetbuild or buildproject use
tempfile.TemporaryDirectory so that when the test case is finished, the
directory is deleted.

Also synchronise the logic and don't possibly store the temporary directory in
self.tmpdir as nothing uses that.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/utils/qemurunner: Avoid tracebacks on closed files
Richard Purdie [Sun, 2 Dec 2018 11:23:17 +0000 (11:23 +0000)]
oeqa/utils/qemurunner: Avoid tracebacks on closed files

Reorder the shutdown/teardown to avoid:

  File "/home/pokybuild/yocto-worker/oe-selftest-ubuntu/build/meta/lib/oeqa/utils/qemurunner.py", line 224, in launch
    op = self.getOutput(output)
  File "/home/pokybuild/yocto-worker/oe-selftest-ubuntu/build/meta/lib/oeqa/utils/qemurunner.py", line 90, in getOutput
    fl = fcntl.fcntl(o, fcntl.F_GETFL)
ValueError: I/O operation on closed file

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/selftest/runqemu: Improve testcase failure handling
Richard Purdie [Mon, 3 Dec 2018 20:46:06 +0000 (20:46 +0000)]
oeqa/selftest/runqemu: Improve testcase failure handling

assertTrue doesn't give good debug information when things fail. Update
several to use assertIn which gives information upon failure, for the
others print the log information upon failure.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolib/oe/utils: Improve multiprocess_lauch exception handling
Richard Purdie [Sat, 1 Dec 2018 14:05:16 +0000 (14:05 +0000)]
lib/oe/utils: Improve multiprocess_lauch exception handling

We've seen a cryptic:

"ERROR: Fatal errors occurred in subprocesses, tracebacks printed above"

message from oe-selftest with no other traceback information. Improve the
traceback logging to try and give a better indication of any errors that is
ocurring.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython3: drop redundant patch
Ross Burton [Tue, 4 Dec 2018 15:08:48 +0000 (15:08 +0000)]
python3: drop redundant patch

This patch altered the clean target's behaviour to skip the ipkg-install
directory.  However this directory isn't created by opkg, opkg-utils, or the
package_ipk class; and we don't invoke the clean target as we perform
out-of-tree builds.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopython3: don't cripple target distutils
Ross Burton [Tue, 4 Dec 2018 15:08:47 +0000 (15:08 +0000)]
python3: don't cripple target distutils

We stop distutils for *native* Python from rewriting hashbangs when installing
(so installed scripts don't have a hashbang that refers to sysroot paths), but
this isn't needed nor desirable for the *target* Python.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agonss: Fix SHA_HTONL bug for arm 32be.
Zheng Ruoqin [Tue, 4 Dec 2018 18:22:50 +0000 (02:22 +0800)]
nss: Fix SHA_HTONL bug for arm 32be.

Rpm use nss as digest crypto library and which will cause an error as follows:

error: test-manual-1.2.3-20181012.noarch.rpm: Header SHA1 digest: BAD (Expected
f1deb7dc4a10742d88ccd1e967dbc62ae45095a5 !=4ad9d7dad6d70d6086eefec62612ad5d77f2fe81)  => this value is wrong
error: test-manual-1.2.3-20181012.noarch.rpm: not an rpm package (or package manifest)

The error is caused by SHA_HTONL in nss, for there is no need to reverse the host value for arm 32be, so fix it.

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogdb: Remove long ago upstreamed patch
Alexey Brodkin [Tue, 4 Dec 2018 11:56:53 +0000 (14:56 +0300)]
gdb: Remove long ago upstreamed patch

This fix was upstreamed a long ago, see [1].

[1] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=37ce4055fe907b9edd25498dcda7a133dbd19784

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agovalgrind: Skip vgpreload_memcheck shared object from stripping
Khem Raj [Tue, 4 Dec 2018 04:51:35 +0000 (20:51 -0800)]
valgrind: Skip vgpreload_memcheck shared object from stripping

This is a special library for memcheck tool, where it needs to have the
symbols intact for the stack traces to work on target, current option is
to install valgrind-dbg ( 151 MB uncompressed ) is quite big for some
systems which may not have space to install it all. Leaving it
unstripped adds about 200KB to image which is much better, this alone
gets memcheck working, as an aside we might need same solution for other
tools e.g. helgrind etc. when needed, they also have leading libraries
installed

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoclasses/icecc.bbclass: Fix ccache disable
Joshua Watt [Tue, 4 Dec 2018 03:15:36 +0000 (21:15 -0600)]
classes/icecc.bbclass: Fix ccache disable

The ccache disable flag was misspelled, preventing it from being
disabled.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoutil-linux: split out blkdiscard into its own package
André Draszik [Mon, 3 Dec 2018 15:28:15 +0000 (15:28 +0000)]
util-linux: split out blkdiscard into its own package

For systems that don't otherwise depend on the full
util-linux package, blkdiscard is a mere 18k (on
cortexa7t2hf-neon).

Signed-off-by: André Draszik <andre.draszik@jci.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopatchreview: Various fixes/improvements
Ross Burton [Mon, 3 Dec 2018 10:26:16 +0000 (10:26 +0000)]
patchreview: Various fixes/improvements

Add various fixes and improvements including the ability to export
patch statsitics as json data.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoinsane: Clarify GNU_HASH warning
Ross Burton [Mon, 3 Dec 2018 20:35:16 +0000 (20:35 +0000)]
insane: Clarify GNU_HASH warning

We have a fatal error if ELF objects don't have GNU_HASH segments but it
doesn't explain what the problem is.  At least give a hint to users by
suggesting that LDFLAGS wasn't passed to the compiler.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-firmware: better packaging for TI wl12xx & wl18xx firmwares
André Draszik [Mon, 3 Dec 2018 15:30:51 +0000 (15:30 +0000)]
linux-firmware: better packaging for TI wl12xx & wl18xx firmwares

Currently, the linux-firmware-wl12xx contains all wl12xx and
wl18xx firmwares, except for the wl18xx compatibility symlinks
for old kernels and the linux-firmware-wl18xx contains just
those compatibility symlinks and nothing else. This doesn't
make sense...

Be more specific about what to package into each package, in
particular because the existing wl12xx package is specific
about symlinks already.

At the same time, we split the common bits into a -wlcommon
package, so that the wl18xx package doesn't need to depend
on all the wl12xx firmwares, saving several MiB in the file
system.

Signed-off-by: André Draszik <andre.draszik@jci.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-firmware: Bump revision to 1baa348
Otavio Salvador [Mon, 3 Dec 2018 13:31:43 +0000 (11:31 -0200)]
linux-firmware: Bump revision to 1baa348

This adds following changes:

1baa348 Merge branch 'nxp_mc' of https://github.com/NXP/linux-firmware
c7ba355 qed: Add 8.37.7.0 firmware image
1cb4e51 amdgpu: add raven dmcu firmware
aa71b2d amdgpu: update raven firmware to 18.40
fcd5a5f amdgpu: update fiji firmware to 18.40
453caa3 amdgpu: update tonga firmware to 18.40
7ceb224 amdgpu: update carrizo firmware to 18.40
a136e78 amdgpu: update polaris10 firmware to 18.40
ac5f8bd amdgpu: update vega10 firmware to 18.40
8d3825c linux-firmware: add firmware for mt7650e
96d6db5 linux-firmware: add MC firmware for NXP DPAA2 SoCs
d877533 linux-firmware: liquidio: fix GPL compliance issue
2618544 linux-firmware: Update firmware file for Intel Bluetooth,8265
c34a52a linux-firmware: Update firmware patch for Intel Bluetooth 8260
d8e8163 linux-firmware: Update firmware file for Intel Bluetooth,9260
66b58d4 linux-firmware: Update firmware file for Intel Bluetooth,9560
50b8b0b linux-firmware: add firmware for mt7610e
de9cefa Merge branch 'firmware-update' of https://github.com/01org/opa-firmware
951cd9e Merge branch 'ath10k-20181010' of git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/linux-firmware
c6398e3 Update Intel OPA hfi1 firmware
eaceb79 ath10k: QCA9984 hw1.0: update board-2.bin
a00e61b ath10k: QCA9984 hw1.0: update firmware-5.bin to 10.4-3.6.0.1-00003
50d4180 ath10k: QCA988X hw2.0: update firmware-5.bin to 10.2.4-1.0-00041
427d31d ath10k: QCA9888 hw2.0: update board-2.bin
d87e815 ath10k: QCA9888 hw2.0: update firmware-5.bin to 10.4-3.6-00140
097bbdf ath10k: QCA9887 hw1.0: update firmware-5.bin to 10.2.4-1.0-00041
3e2e5d3 ath10k: QCA9377 hw1.0: add firmware-6.bin to WLAN.TF.2.1-00021-QCARMSWP-1
a87eb5f ath10k: QCA6174 hw3.0: update firmware-6.bin to RM.4.4.1.c2-00057-QCARMSWP-1
14024d3 ath10k: QCA4019 hw1.0: update board-2.bin
2ac415e ath10k: QCA4019 hw1.0: update firmware-5.bin to 10.4-3.6-00140
f503e1d nfp: Add Agilio BPF firmware rev 2.0.6.124
c6b6265 Merge tag 'iwlwifi-fw-2018-10-03' of git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/linux-firmware
338684a rtw88: Add firmware file for driver rtw88
68a4930 nfp: update Agilio SmartNIC flower firmware to rev AOTC-2.9.A.37
da110f2 iwlwifi: add -41.ucode firmwares for 9000 series
b1ac8f4 iwlwifi: update firmwares for 9000 series
58265e0 iwlwifi: update firmwares for 7000, 8000 and 9000 series
dc638d6 nfp: update Agilio SmartNIC firmware to rev 2.1.13
7c81f23 ti-connectivity: add firmware for CC2560(A) Bluetooth
f0a1cbf linux-firmware: mediatek: add firmware for mt7668u Bluetooth
eb6419c nvidia: add GV100 signed firmware
1ab9095 Merge git://git.marvell.com/mwifiex-firmware
2ddd8f0 Merge branch 'master' of https://github.com/bgodavar/qca_rome_firmware
18c4c8a firmware/icl/dmc: Add v1.07 of DMC for Icelake
52b23a9 linux-firmware: add Marvell SD8997 firmware image
534daf4 qca: update BT firmware files for QCA ROME chip.

License-Update: new firmware files additions
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoopenssl: correct bad path on package preprocess
Christophe PRIOUZEAU [Thu, 22 Nov 2018 12:13:11 +0000 (12:13 +0000)]
openssl: correct bad path on package preprocess

In case of SDK generation, /usr/bin/ path are not correct
and must be replaced by ${bindir}.

Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agopiglit: upgrade to current HEAD
Ross Burton [Wed, 21 Nov 2018 12:57:11 +0000 (12:57 +0000)]
piglit: upgrade to current HEAD

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agoruby: upgrade 2.5.1 -> 2.5.3
Ross Burton [Tue, 20 Nov 2018 11:13:43 +0000 (11:13 +0000)]
ruby: upgrade 2.5.1 -> 2.5.3

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agolibevdev: upgrade 1.5.9 -> 1.6.0
Ross Burton [Tue, 20 Nov 2018 10:32:15 +0000 (10:32 +0000)]
libevdev: upgrade 1.5.9 -> 1.6.0

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agognutls: no need to inherit binconfig
Ross Burton [Thu, 29 Nov 2018 12:09:39 +0000 (12:09 +0000)]
gnutls: no need to inherit binconfig

This recipe doesn't ship a *-config binary, so don't inherit binconfig.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agognome-desktop-testing: upgrade to 2018.1
Ross Burton [Wed, 14 Nov 2018 16:28:47 +0000 (16:28 +0000)]
gnome-desktop-testing: upgrade to 2018.1

Drop backported and obsolete patches.

Respect systemd DISTRO_FEATURE when enabling/disabling journal support.

Signed-off-by: Ross Burton <ross.burton@intel.com>
6 years agogobject-introspection.bbclass: add libdir to XDG_DATA_DIRS
Alexander Kanavin [Mon, 3 Dec 2018 12:17:10 +0000 (13:17 +0100)]
gobject-introspection.bbclass: add libdir to XDG_DATA_DIRS

Otherwise .gir files installed in the sysroot will not be found when multilib is in use
(multilib configurations use libdir rather than datadir).

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogobject-introspection: add a missing patch that was overlooked when adding meson...
Alexander Kanavin [Mon, 3 Dec 2018 12:17:09 +0000 (13:17 +0100)]
gobject-introspection: add a missing patch that was overlooked when adding meson support

This should also fix Rygel builds in meta-oe

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/oelib/path: don't leak temporary directories
Ross Burton [Mon, 3 Dec 2018 11:47:58 +0000 (11:47 +0000)]
oeqa/oelib/path: don't leak temporary directories

setUp() is used to populate a directory of temporary files, and deleted in
__del__.  However setUp() is called once *per test* so __del__ would only be
able to remove the last directory created.

Fix the code by using the natural counterpart to setUp, tearDown(), to clean up.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocpio: update patch to merged version
Ross Burton [Mon, 3 Dec 2018 10:37:34 +0000 (10:37 +0000)]
cpio: update patch to merged version

The segfault on append was fixed upstream with a different patch, so apply that
instead.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomdadm: add back lost Upstream-Status tags
Ross Burton [Mon, 3 Dec 2018 10:26:34 +0000 (10:26 +0000)]
mdadm: add back lost Upstream-Status tags

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobtrfs-tools: update to 4.19
Alexander Kanavin [Sun, 2 Dec 2018 11:38:04 +0000 (12:38 +0100)]
btrfs-tools: update to 4.19

Add a backported patch to fix big endian compilation.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomusl: Update to latest trunk
Khem Raj [Thu, 29 Nov 2018 17:52:14 +0000 (09:52 -0800)]
musl: Update to latest trunk

Complete changelogs are here
https://git.musl-libc.org/cgit/musl/log/?qt=range&q=c50985d5c8e316c5c464f352e79eeebfed1121a9..39ef612aa193cc6e954ac5a01574300ccd4b7ef9

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agonfs-utils: Fix exportfs segfault on musl
Khem Raj [Sat, 1 Dec 2018 18:12:54 +0000 (10:12 -0800)]
nfs-utils: Fix exportfs segfault on musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agonfs-utils: Upgrade to 2.3.3
Khem Raj [Sat, 1 Dec 2018 18:12:53 +0000 (10:12 -0800)]
nfs-utils: Upgrade to 2.3.3

enhance the musl-only patch to degrade certain Werros into Warnings
which helps in compiling on musl, since its checking for __GLIBC__
defines which are undefined on musl.

fix build on x32 ABI

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/sdk/python: add Python 2 and fix detection
Ross Burton [Thu, 29 Nov 2018 17:39:33 +0000 (17:39 +0000)]
oeqa/sdk/python: add Python 2 and fix detection

Add a Python 2 form to exercise that if present, and fix the setUp() so it
actually looks for a package that exists (nativesdk-python3 is a virtual
package, the interpretter is in nativesdk-python3-core).

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoclasses/update-alternatives: Skip alternatives when disabled
Joshua Watt [Thu, 29 Nov 2018 14:57:20 +0000 (08:57 -0600)]
classes/update-alternatives: Skip alternatives when disabled

Skips the update alternative steps for recipes that shouldn't have them
enabled.

Fixes errors like:

 nativesdk-bzip2-1.0.6-r5 do_package: bzip2: alternative target
 (/opt/poky/2.5+snapshot/sysroots/i686-pokysdk-mingw32/usr/bin/bunzip2
 or
 /opt/poky/2.5+snapshot/sysroots/i686-pokysdk-mingw32/usr/bin/bunzip2.bzip2)
 does not exist, skipping...

When building mingw SDKs

[YOCTO #12962]

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoattr: Strip build host paths and tool versions from ptest files
Douglas Royds [Wed, 28 Nov 2018 21:13:19 +0000 (10:13 +1300)]
attr: Strip build host paths and tool versions from ptest files

Using the new PTEST_BUILD_HOST_FILES mechanism.
Specifically remove reference to build host rpm version, if any.

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoacl: Strip build host tool details from installed ptest file
Douglas Royds [Wed, 28 Nov 2018 21:13:18 +0000 (10:13 +1300)]
acl: Strip build host tool details from installed ptest file

Adopt the PTEST_BUILD_HOST_FILES mechanism to strip build host paths from the
installed builddefs file. Also strip the record of the build host rpm version.

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoacl: Use install instead of cp
Douglas Royds [Wed, 28 Nov 2018 21:13:17 +0000 (10:13 +1300)]
acl: Use install instead of cp

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agostrace: Strip build host tool details from installed ptest Makefile
Douglas Royds [Wed, 28 Nov 2018 04:53:16 +0000 (17:53 +1300)]
strace: Strip build host tool details from installed ptest Makefile

Adopt new PTEST_BUILD_HOST_PATTERN mechanism.

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoopenssl: Strip perl version from installed ptest configdata.pm file
Douglas Royds [Wed, 28 Nov 2018 04:53:12 +0000 (17:53 +1300)]
openssl: Strip perl version from installed ptest configdata.pm file

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoopenssl ptest: Strip build host paths from configdata.pm
Douglas Royds [Wed, 28 Nov 2018 04:53:11 +0000 (17:53 +1300)]
openssl ptest: Strip build host paths from configdata.pm

This file contains CC, CPP, CFLAGS, CXXFLAGS and the like.

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoptest: Optionally strip build host tool info from installed files
Douglas Royds [Wed, 28 Nov 2018 04:53:10 +0000 (17:53 +1300)]
ptest: Optionally strip build host tool info from installed files

Several packages (eg. acl, attr, openssl) install Makefiles or other build host
configuration files for ptest so that they can run `make check`, for instance.
These build host files commonly include paths and versions of build host tools,
(eg. rpm or perl) whose presence and version depends on the build host distro.

Optionally strip lines from installed PTEST_BUILD_HOST_FILES using an
extended regex pattern defined in PTEST_BUILD_HOST_PATTERN. This has no
effect on the on-target ptest.

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoptest: Reproducibility: Strip build host paths from any installed Makefile
Douglas Royds [Wed, 28 Nov 2018 04:53:09 +0000 (17:53 +1300)]
ptest: Reproducibility: Strip build host paths from any installed Makefile

A common pattern for ptest is to install a Makefile that provides a make check
target. These generated Makefiles are normally full of build host paths, to
hosttools, and to files and scripts within the source or build tree. They also
commonly include the CFLAGS and CPPFLAGS. None of these build host paths
can possibly work on-target, so stripping them has no effect on the success of
the resulting ptests.

Stripping the HOSTTOOLS_DIR has this effect, for instance:

    -MKDIR_P = /home/douglas/workspace/upstream/build/tmp/hosttools/mkdir -p
    +MKDIR_P = mkdir -p

The curious WORKDIR/*= pattern avoids non-parseable -fdebug-prefix-map patterns
in the CFLAGS by adding an arbitrary ".", eg:

    -fdebug-prefix-map=.=/usr/src/debug/rsyslog/8.37.0-r0

In all other cases, we simply remove the WORKDIR, eg:

    CPP = arm-tait-linux-gnueabi-gcc -E --sysroot=recipe-sysroot ...

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooe-selftest: add some tests for recipeutils module
Paul Eggleton [Thu, 29 Nov 2018 23:38:28 +0000 (12:38 +1300)]
oe-selftest: add some tests for recipeutils module

Add some tests for functions in meta/lib/oe/recipeutils.py, in
particular for a few issues I've just fixed. I haven't added tests for
all of the functions - some of them are already being tested via devtool
in any case.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolib/oe/recipeutils: drop obsolete functions
Paul Eggleton [Wed, 28 Nov 2018 04:16:16 +0000 (17:16 +1300)]
lib/oe/recipeutils: drop obsolete functions

These date from the time before Tinfoil's API covered this functionality
(back when you could actually access cooker from a tinfoil-based
script).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>