]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
8 years agoltp: Fix __sighandler_t for mips
Khem Raj [Thu, 16 Mar 2017 20:33:57 +0000 (20:33 +0000)]
ltp: Fix __sighandler_t for mips

mips definition of kernel_sigaction was added later
and the patch did not apply to mips part which ended
in ltp failing to compile on mips parts

In file included from rt_sigaction01.c:42:0:
../../../../include/lapi/rt_sigaction.h:39:2: error: unknown type name '__sighandler_t'
  __sighandler_t k_sa_handler;
  ^~~~~~~~~~~~~~

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolsb: Make use of appropriate bitbake variables.
Amarnath Valluri [Fri, 3 Mar 2017 12:36:32 +0000 (14:36 +0200)]
lsb: Make use of appropriate bitbake variables.

Using of bitbake environment variables in-place of hardcoded strings makes this
recipe portable to all environments.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agomdadm: Avoid using hardocded sbin path
Amarnath Valluri [Fri, 3 Mar 2017 12:27:42 +0000 (14:27 +0200)]
mdadm: Avoid using hardocded sbin path

Use appropriate bitbake variable inplace of hardcoded sbin path in Makefile

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolttng-modules: Replace '/lib' with ${nonarch_base_libdir}
Amarnath Valluri [Tue, 14 Feb 2017 14:07:56 +0000 (16:07 +0200)]
lttng-modules: Replace '/lib' with ${nonarch_base_libdir}

Do not assume '/lib' for kernel modules location, instead use
${nonarch_base_libdir}. When 'usrmerge' is enabled, kernel modules are not
located in /lib/modules, but /usr/lib/modules.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
8 years agonet-tools: Place package content as per bitbake environment.
Amarnath Valluri [Wed, 8 Feb 2017 09:21:52 +0000 (11:21 +0200)]
net-tools: Place package content as per bitbake environment.

net-tools Makefile was hardcoded sbin, bin installation paths to /bin and /sbin
respectively.  This change moves the installed files to appropriate location as
per configured bitbake environment.

This might be solved much better way by patching Makefile, but that causing
build issues, as net-tools recipe is using pre-generated config.{h/status}.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
8 years agomktemp: Move installed files only when needed
Amarnath Valluri [Wed, 8 Feb 2017 09:15:17 +0000 (11:15 +0200)]
mktemp: Move installed files only when needed

Move binary(ies) only when ${base_bindir} != ${bindir}.

When usrmerge is enabled they both can point to same location.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
8 years agofirmware: use ${nonarch_base_libdir} for firmware installation.
Amarnath Valluri [Wed, 8 Feb 2017 09:06:47 +0000 (11:06 +0200)]
firmware: use ${nonarch_base_libdir} for firmware installation.

Replace hardcoded '/lib' in kernel firmware installation path with
${nonarch_base_libdir}.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
8 years agokernel: use ${nonarch_base_libdir} for kernel modules installation.
Amarnath Valluri [Wed, 4 Jan 2017 11:58:23 +0000 (13:58 +0200)]
kernel: use ${nonarch_base_libdir} for kernel modules installation.

Replace hardcoded '/lib' in kernel modules installation path with
${nonarch_base_libdir}, which is meant exactly for this.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
8 years agoutil-linux,shadow: Make 'nologin' alternative command
Amarnath Valluri [Tue, 24 Jan 2017 14:07:20 +0000 (16:07 +0200)]
util-linux,shadow: Make 'nologin' alternative command

Both shadow and util-linux packages provides 'nologin' binary in ${base_sbindir}
and ${sbindir} respectively, this leads to conflict when 'usrmerge' feature is
enabled, where ${sbindir} == ${base_sbindir}. Hance, handle this to alternative
system to resolve the conflict.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
8 years agoutil-linux: Make sure '${base_bindir}/reset' is part of util-linux-reset package.
Amarnath Valluri [Tue, 24 Jan 2017 12:50:25 +0000 (14:50 +0200)]
util-linux: Make sure '${base_bindir}/reset' is part of util-linux-reset package.

update-alternative.bbclass might rename the 'reset' binary when LINK_NAME ==
TARGET, This is true (${base_bindir} == ${bindir}) in 'usrmerge' distros.
Hence, suffix with * to properly package the renamed binary.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
8 years agosystemd: Do not add libnss_* to systemd package
Amarnath Valluri [Tue, 24 Jan 2017 10:08:46 +0000 (12:08 +0200)]
systemd: Do not add libnss_* to systemd package

libnss_* files should be part of corresponding sub-packages, the split happens
by do_package_split(). By adding ${libdir}/libnss_* to FILES_${PN}, those files
end up in the systemd package when ${libdir} == ${base_libdir}.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
8 years agoattr/acl: Do not create broken static library link when not needed
Amarnath Valluri [Mon, 23 Jan 2017 14:15:24 +0000 (16:15 +0200)]
attr/acl: Do not create broken static library link when not needed

Stop creating the static library archive(liba(ttr|cl).a) when --disable-static
configure option used.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
8 years agoutil-linux: Fix packaging with "usrmerge"
Jussi Kukkonen [Thu, 19 Jan 2017 07:52:44 +0000 (09:52 +0200)]
util-linux: Fix packaging with "usrmerge"

Make sure fsck.cramfs is packaged before fsck so the latter
does not steal the fsck.cramfs binary when building with usrmerge.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
8 years agoglibc: Ensure ldconfig is packaged into glibc
Jussi Kukkonen [Thu, 19 Jan 2017 07:52:43 +0000 (09:52 +0200)]
glibc: Ensure ldconfig is packaged into glibc

If base_bindir=bindir, /usr/sbin/ldconfig gets packaged into glibc-utils instead
of glibc: Switch PACKAGES order to prevent this.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
8 years agowic/partionedfs: Avoid reserving space for non-existing ext. partition
Kristian Amlie [Fri, 10 Mar 2017 13:16:27 +0000 (14:16 +0100)]
wic/partionedfs: Avoid reserving space for non-existing ext. partition

We don't need the gap that the extended partition occupies if we
already know that we have less than five partitions. Saves up to one
full alignment of space.

Signed-off-by: Kristian Amlie <kristian.amlie@mender.io>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agouseradd-staticids.bbclass: Always fail/warn for missing IDs
Peter Kjellerstedt [Wed, 15 Mar 2017 00:27:14 +0000 (01:27 +0100)]
useradd-staticids.bbclass: Always fail/warn for missing IDs

Previously, with USERADD_ERROR_DYNAMIC set to error/warn, if a static
UID/GID was specified in the recipe, then no error/warning would be
issued even if no ID was specified in the passwd/groups files.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agouseradd-staticids.bbclass: Support recipes specifying static IDs
Peter Kjellerstedt [Wed, 15 Mar 2017 00:27:13 +0000 (01:27 +0100)]
useradd-staticids.bbclass: Support recipes specifying static IDs

If this bbclass is used and a recipe specifies a static ID for a
user/group as part of the USERADD_PARAM_${PN} or GROUPADD_PARAM_${PN},
the build would fail with and error like this if there was no
corresponding ID in the passwd/group files specified via
USERADD_UID_TABLES/USERADD_GID_TABLES:

  ERROR: meta-oe/recipes-support/postgresql/postgresql_9.4.11.bb:
  meta-oe/recipes-support/postgresql/postgresql_9.4.11.bb inherits
  useradd but doesn't set USERADD_PARAM, GROUPADD_PARAM or
  GROUPMEMS_PARAM for package postgresql

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoclasses/npm: allow installation of devDependencies
Anders Darander [Mon, 13 Mar 2017 10:01:53 +0000 (11:01 +0100)]
classes/npm: allow installation of devDependencies

Often, eg when using angular2, there's a need to install also
the devDependencies.

The default is to keep the old behaviour, to not install
devDependencies.

Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agodevtool/recipetill: npm install of devDependencies
Anders Darander [Mon, 13 Mar 2017 10:01:52 +0000 (11:01 +0100)]
devtool/recipetill: npm install of devDependencies

Web applications built using e.g. angular2, usually requires that the
packages in devDependencies are available.

Thus, add an option '--fetch-dev' to both devtool add and recipetool, to
add npm packages in devDependencies to DEPENDS.

Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobusybox: ignore the largefile distro feature ( always enable LFS )
Andre McCurdy [Fri, 17 Mar 2017 02:11:16 +0000 (19:11 -0700)]
busybox: ignore the largefile distro feature ( always enable LFS )

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agofeature-arm-thumb.inc: fix ARM_THUMB_SUFFIX for armv8
Andre McCurdy [Sat, 11 Mar 2017 01:31:19 +0000 (17:31 -0800)]
feature-arm-thumb.inc: fix ARM_THUMB_SUFFIX for armv8

The current definition for ARM_THUMB_SUFFIX doesn't consider armv8
and will therefore cause TUNE_PKGARCH to be set incorrectly for
machines which inherit arch-armv8 and don't include aarch64 in
TUNE_FEATURES (ie when building for 32bit ARMv8).

Also fix typo in comments and improve TUNEVALID[thumb] wording.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoselftest/devtool: Add test to verify "modify virtual/kernel"
Jose Perez Carranza [Fri, 10 Mar 2017 13:58:09 +0000 (13:58 +0000)]
selftest/devtool: Add test to verify "modify virtual/kernel"

The purpose of this test case is to verify that
devtool modify works correctly when building
the kernel.

[YOCTO #10817]

Signed-off-by: Jose Perez Carranza <jose.perez.carranza@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agometa: replace uses of bb.data.expand(VARNAME, d) with d.expand(VARNAME)
Joshua Lock [Fri, 17 Mar 2017 15:53:09 +0000 (15:53 +0000)]
meta: replace uses of bb.data.expand(VARNAME, d) with d.expand(VARNAME)

bb.data.expand(x, d) is deprecated API.

[YOCTO #10678]

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake.conf: add sudo to HOSTTOOLS_NONFATAL
Ed Bartosh [Fri, 17 Mar 2017 13:18:35 +0000 (15:18 +0200)]
bitbake.conf: add sudo to HOSTTOOLS_NONFATAL

runqemu is using sudo to configure tap networking. Without sudo
in HOSTTOOLS_NONFATAL it may cause bitbake -c testimage to fail
with this error:
    runqemu - INFO - Setting up tap interface under sudo
    /bin/sh: sudo: command not found

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemurunner: configure guest networking
Ed Bartosh [Fri, 17 Mar 2017 13:18:34 +0000 (15:18 +0200)]
qemurunner: configure guest networking

Configured guest network interface through serial connection
when kernel is not run by qemu.

This should make it possible to test wic images with testimage.

[YOCTO #10833]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemurunner: get network params from runqemu output
Ed Bartosh [Fri, 17 Mar 2017 13:18:33 +0000 (15:18 +0200)]
qemurunner: get network params from runqemu output

Parsed runqemu output to get guest network configuration
if it's not present in runqemu command line.

[YOCTO #10833]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqemu: output network configuration
Ed Bartosh [Fri, 17 Mar 2017 13:18:32 +0000 (15:18 +0200)]
runqemu: output network configuration

runqemu adds network configuration parameters to the kernel
command line to configure guest networking. This works only
for the images that run with external kernel using qemu -kernel
parameter. It doesn't work for the images that use bootloader
to boot kernel as -kernel parameter is not used and network
configuration is not possible to get.

Added host and guest ip addresses and netmask of tap link
to the runqemu output. This should allow external programs
that execute runqemu to get network configuration.

[YOCTO #10833]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoimage_types: increase filesystem size for BTRFS
Ed Bartosh [Fri, 17 Mar 2017 11:32:25 +0000 (13:32 +0200)]
image_types: increase filesystem size for BTRFS

16777216 bytes is a minimal possible filesystem size for BTRFS.
mkfs.btrfs fails to create a filesystem if rootfs size is too small.

Increased filesystem size to make it possible for mkfs.btrfs
to create an image for small rootfs directories,
e.g. for core-image-minimal.

[YOCTO #11163]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoRevert "file: update SRCREV for 5.30 to fix fetch fail on missing commit"
Richard Purdie [Tue, 21 Mar 2017 22:16:33 +0000 (22:16 +0000)]
Revert "file: update SRCREV for 5.30 to fix fetch fail on missing commit"

This reverts commit adb71e06768adadda7b69c3b5e81ca3ad67237f4.

Upstream restored the original hashes.

8 years agobinutils: disable gold on mingw
Ross Burton [Mon, 20 Mar 2017 12:20:30 +0000 (12:20 +0000)]
binutils: disable gold on mingw

oe-core 759eed (binutils: Enable threading when gold is enabled and is not
default linker) causes linking in mingw SDKs to fail:

.../work/i686-nativesdk-mingw32-pokysdk-mingw32/binutils-cross-canadian-x86-64/2.28-r0
/recipe-sysroot-native/usr/bin/i686-pokysdk-mingw32/../../libexec/i686-pokysdk-mingw32/gcc/i686-pokysdk-mingw32/6.3.0/ld:
cannot find -lpthread

Work around this by disabling gold entirely in mingw SDKs.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoneard: Fix parallel build issue
Jussi Kukkonen [Fri, 17 Mar 2017 13:14:33 +0000 (15:14 +0200)]
neard: Fix parallel build issue

This only started showing up now for some reason but it does seem like
a legitimate bug in Makefile.am.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agonativesdk-packagegroup-sdk-host.bb: add cmake
brian avery [Wed, 15 Mar 2017 13:48:01 +0000 (06:48 -0700)]
nativesdk-packagegroup-sdk-host.bb: add cmake

The Eclipse plugin uses cmake from the SDK and currently has issues
because cmake is not installed as a host tool.  This patch adds cmake as
a host tool for the sdk/esdk.

Signed-off-by: brian avery <brian.avery@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoccache: Disable CCACHE_HASHDIR by default
Mike Crowe [Wed, 15 Mar 2017 12:29:16 +0000 (12:29 +0000)]
ccache: Disable CCACHE_HASHDIR by default

As of ccache-3.3, ccache tries to ensure that the paths in the debug
information are always correct. It does this by including the current
directory in the hash if debug output is enabled. It includes support for
detecting remapping via a single -fdebug-prefix-map argument uses the
remapped directory in the hash instead.

The DEBUG_PREFIX_MAP in bitbake.conf remaps the source directory, target
sysroot and native sysroot separately which results in multiple
-fdebug-prefix-map arguments. Although ccache passes all these arguments
through to the compiler, it only enables the special behaviour described
above if the last one matches the current directory. (See
https://github.com/ccache/ccache/issues/163 )

Even if ccache did correctly honour each of the remapping arguments, the
hashes would still be different every time ${PV} or ${PR} change because
the default DEBUG_PREFIX_MAP contains maps to paths including them.

So it seems that for ccache to be of any use with this configuration,
CCACHE_NOHASHDIR needs to be set.

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Helped-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agou-boot-fw-utils: reuse the same override HOSTCC patch as u-boot-mkimage
Denys Dmytriyenko [Tue, 14 Mar 2017 19:37:34 +0000 (15:37 -0400)]
u-boot-fw-utils: reuse the same override HOSTCC patch as u-boot-mkimage

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogettext: split recipe's description
Leonardo Sandoval [Tue, 14 Mar 2017 09:37:26 +0000 (09:37 +0000)]
gettext: split recipe's description

Split long recipe description into multiple lines.

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agouninative.bbclass: split long command
Leonardo Sandoval [Tue, 14 Mar 2017 09:37:25 +0000 (09:37 +0000)]
uninative.bbclass: split long command

Single long commands are difficult to read and maintain. Split it to make
it more human-friendly.

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoautogen-native: config/libopts.m4
Robert Yang [Tue, 14 Mar 2017 08:45:43 +0000 (01:45 -0700)]
autogen-native: config/libopts.m4

It was out of date compared to config/libopts.def, so regenerate it via
"autogen config/libopts.def" command.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooe/path.py: fix for "Argument list too long"
Robert Yang [Tue, 14 Mar 2017 08:45:45 +0000 (01:45 -0700)]
oe/path.py: fix for "Argument list too long"

Issue: LIN9-1648

Fixed when len(TMPDIR) = 410:
$ bitbake core-image-sato-sdk
[snip]
Subprocess output:
/bin/sh: /bin/cp: Argument list too long

ERROR: core-image-sato-sdk-1.0-r0 do_rootfs: Function failed: do_rootfs
[snip]

This is because "copyhardlinktree(src, dst)" does "cp -afl src/* dst",
while src/* is expanded to "src/file1 src/file2, src/file3..." which
causes the "Argument list too long", use ./* as src and change cwd in
subprocess.check_output() to fix the problem.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoclasses: Fix "U-boot", use proper spelling of "U-Boot".
Robert P. J. Day [Mon, 13 Mar 2017 11:09:38 +0000 (07:09 -0400)]
classes: Fix "U-boot", use proper spelling of "U-Boot".

U-Boot people are amazingly pedantic in their insistence on proper
spelling of "U-Boot", so humour them.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoshadow: 'useradd' copies root's extended attributes
José Bollo [Mon, 13 Mar 2017 09:57:23 +0000 (10:57 +0100)]
shadow: 'useradd' copies root's extended attributes

The copy of extended attributes is interesting for
Smack systems because it allows to set the security
template of the user's home directories without
modifying the tools (useradd here). But the version
of useradd that copies the extended attributes doesn't
copy the extended attributes of the root. This can make
use of homes impossible! This patch corrects the issue
by copying the extended attributes of the root directory:
/home/user will get the extended attributes of /etc/skel.

The patch is submitted upstream (see
http://lists.alioth.debian.org/pipermail/pkg-shadow-commits/2017-March/003804.html)

The existing patch specific to open-embedded is updated:
  0001-useradd.c-create-parent-directories-when-necessary.patch

Also, attr are activated for native tools.
This is needed when users are created during image creation.

Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogcc-target.inc: create symlinks for gcov and gcov-tool
Chen Qi [Mon, 13 Mar 2017 02:35:44 +0000 (10:35 +0800)]
gcc-target.inc: create symlinks for gcov and gcov-tool

Create symlinks for gcov and gcov-tool and that they can be used trivially
on target.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agofs-perms.txt: Two cleanup tweaks for consistency.
Robert P. J. Day [Sat, 11 Mar 2017 09:02:01 +0000 (04:02 -0500)]
fs-perms.txt: Two cleanup tweaks for consistency.

* Remove duplicate entry for /srv already defined earlier in file.
* Use "${localstatedir}" rather than "/var" for consistency.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoopenssl: Disable make's -e flag without breaking ${AR}
Olof Johansson [Sat, 11 Mar 2017 05:28:52 +0000 (06:28 +0100)]
openssl: Disable make's -e flag without breaking ${AR}

The OpenSSL recipe tried to workaround the -e make flag (overriding
variables from the environment). And when the -e flag was dropped as
the global default, it was specifically added for OpenSSL. This is
unnecessary, as only the value of ${AR} seems to be affected, and that
can be handled correctly by OpenSSL's build system if we just let it.

Signed-off-by: Olof Johansson <olof.johansson@axis.com>
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agotoaster.bbclass: Correct parsing of installed-package-sizes.txt
Peter Kjellerstedt [Sat, 11 Mar 2017 05:26:54 +0000 (06:26 +0100)]
toaster.bbclass: Correct parsing of installed-package-sizes.txt

The recent change in buildhistory.bbclass to use a tab in
installed-package-sizes.txt between "KiB" and the package name caused
toaster_buildhistory_dump() to fail since it parses the file and
expected a space there.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogcc: move cc1 binary file to package cpp.
Ismo Puustinen [Fri, 10 Mar 2017 10:10:25 +0000 (12:10 +0200)]
gcc: move cc1 binary file to package cpp.

The file /usr/libexec/gcc/.../cc1 has been installed in package gcc
instead of package cpp, because FILES statements for both packages match
the cc1 binary. Move the file to package cpp and add cpp to RDEPENDS_gcc
to fix the dependency.

Having the cc1 binary in cpp fixes errors such as: "cpp: error trying to
exec 'cc1': execvp: No such file or directory".

Signed-off-by: Ismo Puustinen <ismo.puustinen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoprocps: fix ALTERNATIVE_PRIORITY to avoid conflict
Chen Qi [Fri, 10 Mar 2017 07:03:05 +0000 (15:03 +0800)]
procps: fix ALTERNATIVE_PRIORITY to avoid conflict

Previously, 'pidof' utility has two providers, sysvinit and procps, and
both have the same priority 200. Fix procps to lower the priority of its
'pidof' to 150 to avoid conflict.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobitbake.conf: Add few more binaries to HOSTTOOLS_NONFATAL
Martin Jansa [Thu, 16 Mar 2017 16:41:13 +0000 (17:41 +0100)]
bitbake.conf: Add few more binaries to HOSTTOOLS_NONFATAL

* add: join nl size yes zcat

join    - netcf               - http://errors.yoctoproject.org/Errors/Details/135208/
join    - fontforge           - http://errors.yoctoproject.org/Errors/Details/135209/
nl      - dash                - http://errors.yoctoproject.org/Errors/Details/135215/
nl      - klibc               - http://errors.yoctoproject.org/Errors/Details/135198/
size    - iptraf              - http://errors.yoctoproject.org/Errors/Details/135204/
yes     - libnet-ssleay-perl  - http://errors.yoctoproject.org/Errors/Details/135197/
zcat    - scsirastools        - http://errors.yoctoproject.org/Errors/Details/135205/

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogo: Remove mips32r2 from mips
Khem Raj [Thu, 16 Mar 2017 21:42:39 +0000 (14:42 -0700)]
go: Remove mips32r2 from mips

mips32r1 is only one supported for mips32

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agofile: update SRCREV for 5.30 to fix fetch fail on missing commit
Paul Gortmaker [Thu, 16 Mar 2017 18:42:14 +0000 (14:42 -0400)]
file: update SRCREV for 5.30 to fix fetch fail on missing commit

Machines that cloned a while ago will have the commit, but new
deployments won't because it seems the upstream changed/rebased
and the old commit ID has been garbage-collected away.  Hence
the fetch fails to check out the named commit ID.

Both the old (gone) commit, and the "new" commit show the same
dates and commit log and point at 5.30, so hopefully this is
the right thing to do.  A git diff of the two seems to only show
a blanket uprev of CVS tags and deletion of a couple autogen'd
files, and no real source changes.

Cc: Christos Zoulas <christos@zoulas.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuild-compare: add date to PV
Joe Slater [Thu, 16 Mar 2017 18:24:57 +0000 (11:24 -0700)]
build-compare: add date to PV

We want PV values to be easily ordered, so
use the latest entry in build-compare.changes which
will also match the date of SRCREV.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowebkitgtk: Fix build on aarch64
Khem Raj [Thu, 16 Mar 2017 18:22:43 +0000 (11:22 -0700)]
webkitgtk: Fix build on aarch64

Do not try to do runtime tests during cross compile
Fixes

| CMake Error at Source/cmake/OptionsCommon.cmake:73 (math):
|   math cannot parse the expression: "-1": syntax error, unexpected exp_MINUS,
|   expecting exp_OPENPARENT or exp_NUMBER (1)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomusl: Update to latest
Khem Raj [Tue, 14 Mar 2017 23:35:32 +0000 (16:35 -0700)]
musl: Update to latest

Rich Felker (11):
      fix ld-behavior-dependent crash in ppc64 ldso startup
      rework ldso handling of global symbol table for consistency
      reorder addend handling before symbol lookup in relocation code
      emulate lazy relocation as deferrable relocation
      fix free of uninitialized buffer pointer on error in regexec
      in static dl_iterate_phdr, fix use of possibly-uninitialized aux data
      fix possible fd leak, unrestored cancellation state on dns socket fail
      fix wide scanf's use of a compound literal past its lifetime
      fix one-byte overflow in legacy getpass function
      avoid loading of multiple libc versions via explicit pathname
      remove unused refcnt field for shared libraries

Szabolcs Nagy (1):
      treat STB_WEAK and STB_GNU_UNIQUE like STB_GLOBAL in find_sym

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoxserver-xf86-config: Remove X server module preload
Khem Raj [Tue, 14 Mar 2017 23:35:33 +0000 (16:35 -0700)]
xserver-xf86-config: Remove X server module preload

This was a solution needed for musl but now musl has
got lazy loading.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobinutils: Enable threading when gold is enabled and is not default linker
Khem Raj [Tue, 14 Mar 2017 23:35:31 +0000 (16:35 -0700)]
binutils: Enable threading when gold is enabled and is not default linker

Currently we enable threaded linking feature of gold linker only
when its used as default ld. There is no need to restrict it when
its not default linker either. As long as gold is enabled, which
is the case here, we should be able to do threaded linking.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogo: Fix packaging for target go
Khem Raj [Tue, 14 Mar 2017 23:35:30 +0000 (16:35 -0700)]
go: Fix packaging for target go

We need all packaging tasks when building
go for target

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomesa-gl: Drop MESA_CRYPTO from PACKAGECONFIG
Khem Raj [Tue, 14 Mar 2017 23:35:29 +0000 (16:35 -0700)]
mesa-gl: Drop MESA_CRYPTO from PACKAGECONFIG

with mesa 17 crypto packageconfig has been removed

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomesa: Contain configure search for llvm
Khem Raj [Tue, 14 Mar 2017 23:35:28 +0000 (16:35 -0700)]
mesa: Contain configure search for llvm

Configure has an unbridled check for llvm and
when distro provided llvm is installed on build host it
will use that from /usr/bin to poke for llvm libs
and configs. This would result in a subtle errors
however do_qa_configure catches it as a host include/lib
contamination during configure checks

ERROR: mesa-gl-2_17.0.1-r0 do_configure: This autoconf log indicates errors, it looked at host include and/or library paths while determining system capabilities.
Rerun configure task after fixing this.

This is correct because when configure detects build host provided
llvm then it add the include/lib paths to compiler cmdline which are
looking into /usr/include and /usr/lib

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopackage_manager: fix "exlcude" vs. "exclude" typo
Paul Gortmaker [Thu, 16 Mar 2017 15:20:58 +0000 (11:20 -0400)]
package_manager: fix "exlcude" vs. "exclude" typo

Which results in:

 --------------------------------
      0557:        package_exclude = self.d.getVar('PACKAGE_EXCLUDE')
  *** 0558:        exclude_pkgs = (bad_recommendations.split() if bad_recommendations else []) + (package_exlcude.split() if package_exclude else [])
      0559:
      0560:        output = self._invoke_dnf((["--skip-broken"] if attempt_only else []) +
      0561:                         (["-x", ",".join(exclude_pkgs)] if len(exclude_pkgs) > 0 else []) +
      0562:                         (["--setopt=install_weak_deps=False"] if self.d.getVar('NO_RECOMMENDATIONS') == 1 else []) +
 Exception: NameError: name 'package_exlcude' is not defined
 ERROR: cube-builder-initramfs-1.0-r0 do_rootfs: Function failed: do_rootfs
 ---------------------------------

Cc: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokexec-tools: Add patches to enable format-security
Jussi Kukkonen [Thu, 16 Mar 2017 14:30:24 +0000 (16:30 +0200)]
kexec-tools: Add patches to enable format-security

Also remove the override from security_flags.inc

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocmake: Backport fix to enable -Wformat-security
Jussi Kukkonen [Thu, 16 Mar 2017 14:30:23 +0000 (16:30 +0200)]
cmake: Backport fix to enable -Wformat-security

Backport build fix that removes -Wformat-security for specific tests.
Enable "-Wformat-security" for cmake in security_flags.inc.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosysklogd: use update-alternatives for more manpages
Paul Gortmaker [Thu, 16 Mar 2017 14:20:56 +0000 (10:20 -0400)]
sysklogd: use update-alternatives for more manpages

To fix:

   file /usr/share/man/man8/syslogd.8 conflicts between attempted installs
   of inetutils-doc-1.9.4-r0.core2_64 and sysklogd-doc-1.5.1-r0.core2_64

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agonet-tools: use update-alternatives for more manpages
Paul Gortmaker [Thu, 16 Mar 2017 14:20:55 +0000 (10:20 -0400)]
net-tools: use update-alternatives for more manpages

To fix:

  file /usr/share/man/man1/dnsdomainname.1 conflicts between attempted installs
  of inetutils-doc-1.9.4-r0.core2_64 and net-tools-doc-1.60+26-r0.core2_64

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoutil-linux: use update-alternatives for more manpages
Paul Gortmaker [Thu, 16 Mar 2017 14:20:54 +0000 (10:20 -0400)]
util-linux: use update-alternatives for more manpages

To fix:

   file /usr/share/man/man1/eject.1 conflicts between attempted installs
   of util-linux-doc-2.29.1-r0.core2_64 and eject-doc-2.1.5-r1.core2_64

and

   file /usr/share/man/man1/logger.1 conflicts between attempted installs
   of util-linux-doc-2.29.1-r0.core2_64 and inetutils-doc-1.9.4-r0.core2_64

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowhich: fix it so the manpage will respect alternatives
Paul Gortmaker [Thu, 16 Mar 2017 14:20:53 +0000 (10:20 -0400)]
which: fix it so the manpage will respect alternatives

To fix:

  file /usr/share/man/man1/which.1 conflicts between attempted installs
  of debianutils-doc-4.8.1-r0.core2_64 and which-doc-2.21-r3.core2_64

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogdb: don't bundle bfd.info -- leave that to binutils.
Paul Gortmaker [Thu, 16 Mar 2017 14:20:52 +0000 (10:20 -0400)]
gdb: don't bundle bfd.info -- leave that to binutils.

We see:

  file /usr/share/info/bfd.info conflicts between attempted installs
  of gdb-doc-7.12.1-r0.core2_64 and binutils-doc-2.28-r0.core2_64

You can't really have gdb and not binutils, so there is no need
to do alternatives here ; just clobber the one from gdb and let
the binutils one be the default.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodnf: add /usr/bin/dnf symlink that points to /usr/bin/dnf-2
Alexander Kanavin [Thu, 16 Mar 2017 13:19:07 +0000 (15:19 +0200)]
dnf: add /usr/bin/dnf symlink that points to /usr/bin/dnf-2

All documentation refers to dnf binary as 'dnf' yet make install
does not create one - it's done by Fedora's spec file when building
the rpm. Let's replicate this behavior.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoselftest/signing.py: verify that images can be created from signed packages
Alexander Kanavin [Thu, 16 Mar 2017 13:19:06 +0000 (15:19 +0200)]
selftest/signing.py: verify that images can be created from signed packages

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolib/oe/package_manager: import rpm signing key to rpmdb
Markus Lehtonen [Thu, 16 Mar 2017 13:19:05 +0000 (15:19 +0200)]
lib/oe/package_manager: import rpm signing key to rpmdb

Import the gpg key used in rpm signing into rpmdb. This makes it
possible again to create images when rpm signing is enabled.

Also, instruct dnf to enforce signature check if rpm signing is enabled.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorpm: add support for remote package feeds via PACKAGE_FEED_URIS variable
Alexander Kanavin [Thu, 16 Mar 2017 13:19:04 +0000 (15:19 +0200)]
rpm: add support for remote package feeds via PACKAGE_FEED_URIS variable

I've used a previous patch (which was never merged) by
Humberto Ibarra <humberto.ibarra.lopez@intel.com> as a model
for how to do runtime testing of this feature (e.g. we need to boot
an image, run dnf on it, and check that it is indeed able to
access the remote repo over http). Here's his original commit message:

=====
Testing that feeds specified with PACKAGE_FEED_URIS var are set
correctly has two parts. First a build with this var set is required,
and then smart update needs to be issued in the running taget.

The previous is not a common selftest practice because this is a
simple test, but requires building and running a specific image,
which takes a lot of time. testimage is not a good fit either,
since the images tested there do not have the PACKAGE_FEED_URIS
var set.

For this test, the runtime-test module is being used, which is a
selftest module but runs a testimage command. The var and test
environment were set in runtime-perf.py and the actual test is
done in a new testcase added to meta-selftest layer.
=====

[YOCTO #10872]

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopackage.bbclass: Add SKIP_FILEDEPS to list of package specific variables
Peter Kjellerstedt [Thu, 16 Mar 2017 11:43:46 +0000 (12:43 +0100)]
package.bbclass: Add SKIP_FILEDEPS to list of package specific variables

Changes to SKIP_FILEDEPS should change the sstate checksum. To make
that happen, it needs to be listed in the list of package specific
variables, therefore add it.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqemu: only boot ramfs when specified
Robert Yang [Thu, 16 Mar 2017 10:13:26 +0000 (03:13 -0700)]
runqemu: only boot ramfs when specified

This can fix a problem:
IMAGE_FSTYPES += "iso"
$ bitbake core-image-minimal
$ runqemu qemux86

It may boot core-image-minimal-initramfs rather than core-image-minimal, this
is not what we want usually. This patch makes it avoid booting ramfs when there
are other choices, or when it is specified, for example, "runqemu qemux86 ramfs"

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqemu: add -h and --help
Robert Yang [Thu, 16 Mar 2017 10:13:25 +0000 (03:13 -0700)]
runqemu: add -h and --help

Fixed:
$ runqemu -h
runqemu - INFO - Assuming MACHINE = -h
runqemu - INFO - Running MACHINE=-h bitbake -e...
[snip]
Exception: FSTYPE is NULL!

[YOCTO #10941]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqemu: improve when no machine specified
Robert Yang [Thu, 16 Mar 2017 10:13:24 +0000 (03:13 -0700)]
runqemu: improve when no machine specified

Fixed:
$ runqemu core-image-minimal
[snip]
Exception: FSTYPE is NULL!
[snip]

Get DEPLOY_DIR_IMAGE from "bitbake -e" to make it work.

[YOCTO #10471]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopackagegroup-core-lsb: avoid rebuilding when changing layer config
Paul Eggleton [Thu, 16 Mar 2017 09:09:43 +0000 (22:09 +1300)]
packagegroup-core-lsb: avoid rebuilding when changing layer config

It's regrettable that code in here is referring to BBFILE_COLLECTIONS,
but it is, and the result is that this packagegroup will rebuild simply
by adding or removing a layer which may be completely unrelated to
whether you've got meta-qt4 or not. Add BBFILE_COLLECTIONS to
vardepsexclude for the function to avoid this. (This was flagged up when
testing the new yocto-compat-layer script - it understandably but
undesirably reports it as a change caused by a layer).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoclasses/base: reformat HOSTTOOLS error
Paul Eggleton [Thu, 16 Mar 2017 09:09:42 +0000 (22:09 +1300)]
classes/base: reformat HOSTTOOLS error

Adjust the message slightly to make it clearer, in particular mentioning
the HOSTTOOLS variable.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokexec-tools: Remove unused patch
Jussi Kukkonen [Thu, 16 Mar 2017 09:15:39 +0000 (11:15 +0200)]
kexec-tools: Remove unused patch

The patch was removed from SRC_URI as merged upstream in 587778e24c9.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogstreamer1.0-vaapi: Remove unused patch
Jussi Kukkonen [Thu, 16 Mar 2017 09:15:38 +0000 (11:15 +0200)]
gstreamer1.0-vaapi: Remove unused patch

This patch has seemingly never been applied in the recipe (even when
it lived in meta-intel). I don't think we should have unused patches
in the repo: If the patch is useful it could be reintroduced so that
the binaries are packaged into a separate package.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogstreamer1.0-omx: Remove unused patch
Jussi Kukkonen [Thu, 16 Mar 2017 09:15:37 +0000 (11:15 +0200)]
gstreamer1.0-omx: Remove unused patch

The patch was only used in the ancient and recently removed git recipe.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoopkg-utils: Remove unused patches
Jussi Kukkonen [Thu, 16 Mar 2017 09:15:36 +0000 (11:15 +0200)]
opkg-utils: Remove unused patches

0001-update-alternatives-warn-when-multiple-providers-hav.patch was
removed from SRC_URI without mention in commit 60c9a9704.

001-Makefile-use-defined-bindir-and-mandir-as-installati.patch was
removed from SRC_URI in d6b04e121.

Current opkg does not need either patch.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogcc: Remove unused patch
Jussi Kukkonen [Thu, 16 Mar 2017 09:15:35 +0000 (11:15 +0200)]
gcc: Remove unused patch

CVE-2016-4490 applied to gcc < 6.1.1, our version is 6.3

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython-native: Remove unused patch
Jussi Kukkonen [Thu, 16 Mar 2017 09:15:34 +0000 (11:15 +0200)]
python-native: Remove unused patch

avoid_parallel_make_races_on_pgen.patch was removed from SRC_URI as
handled in upstream in db9508891b6.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython: Remove unused patches
Jussi Kukkonen [Thu, 16 Mar 2017 09:15:33 +0000 (11:15 +0200)]
python: Remove unused patches

CVE-2016-5636.patch and avoid_parallel_make_races_on_pgen.patch were
removed from SRC_URI as handled upstream in adf4266524d0d.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython3: Remove unused patches
Jussi Kukkonen [Thu, 16 Mar 2017 09:15:32 +0000 (11:15 +0200)]
python3: Remove unused patches

CVE-2016-5636.patch and use_packed_importlib.patch were removed from
SRC_URI as handled in upstream in b192bc02bbf91.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoxf86-input-mouse: Remove unused patch
Jussi Kukkonen [Thu, 16 Mar 2017 09:15:31 +0000 (11:15 +0200)]
xf86-input-mouse: Remove unused patch

The patch has not been used since the ancient git version was removed.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoreadline: Remove unused patch
Jussi Kukkonen [Thu, 16 Mar 2017 09:15:30 +0000 (11:15 +0200)]
readline: Remove unused patch

config-dirent-symbols.patch was removed from SRC_URI as "already
applied in upstream" in 983a4986947.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemu: Remove uuid PACKAGECONFIG
Jussi Kukkonen [Thu, 16 Mar 2017 09:15:29 +0000 (11:15 +0200)]
qemu: Remove uuid PACKAGECONFIG

--enable-uuid no longer exists: There's a uuid implementation in
libqemuutil.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake.conf: Drop pip3 from HOSTTOOLS_NONFATAL
Richard Purdie [Thu, 16 Mar 2017 10:34:12 +0000 (10:34 +0000)]
bitbake.conf: Drop pip3 from HOSTTOOLS_NONFATAL

Now that pip3-native is used by build-appliance, we should no longer
need this host tool.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuild-appliance-image: ensure pod2man present in BA
Juro Bystricky [Wed, 15 Mar 2017 22:13:38 +0000 (15:13 -0700)]
build-appliance-image: ensure pod2man present in BA

"pod2man" went missing from BA, but it is required.
This patch fixes the Toaster error:

<...>
ERROR: These tools appear to be unavailable in PATH, please install
   them in order to proceed:
       pod2man
<...>

[YOCTO#11144]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuild-appliance-image: fix build errors
Juro Bystricky [Wed, 15 Mar 2017 22:13:37 +0000 (15:13 -0700)]
build-appliance-image: fix build errors

Remove any symlinks before creating new ones to avoid potential build
errors such as:

FileExistsError: [Errno 17] File exists: '../../usr/src/kernel' -> ... '

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuild-appliance-image: use pip3-native
Juro Bystricky [Wed, 15 Mar 2017 22:13:36 +0000 (15:13 -0700)]
build-appliance-image: use pip3-native

Do not rely on pip3 being installed on the host.
Use pip3-native instead.

[YOCTO#10909]
[YOCTO#11022]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython3-pip: support native builds
Juro Bystricky [Wed, 15 Mar 2017 20:17:26 +0000 (13:17 -0700)]
python3-pip: support native builds

Add native pip3 support.

[YOCTO#11049]
[YOCTO#11022]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqemu: independent network and rootfs setup
Juro Bystricky [Wed, 15 Mar 2017 19:21:16 +0000 (12:21 -0700)]
runqemu: independent network and rootfs setup

Presently, runqemu sets up rootfs as part of network setup.
In case there is no network desired we will end up without rootfs
as well.
This patch sets up network and rootfs independently.
It is also possible to bypass setup of rootfs if QB_ROOTFS is set to "none".

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoyocto-compat-layer: improve error handling in signature creation
Patrick Ohly [Wed, 15 Mar 2017 10:01:34 +0000 (11:01 +0100)]
yocto-compat-layer: improve error handling in signature creation

When "bitbake -k -S none world" failed, the error printed by
yocto-compat-layer.py contained the stack trace multiple times and did not
contain the stderr output from bitbake, making the error hard to understand
and debug:

  INFO: ======================================================================
  INFO: ERROR: test_signatures (common.CommonCompatLayer)
  INFO: ----------------------------------------------------------------------
  INFO: Traceback (most recent call last):
    File "/fast/work/poky/scripts/lib/compatlayer/__init__.py", line 144, in get_signatures
      stderr=subprocess.PIPE)
    File "/usr/lib/python3.4/subprocess.py", line 620, in check_output
      raise CalledProcessError(retcode, process.args, output=output)
  subprocess.CalledProcessError: Command 'bitbake -k -S none world' returned non-zero exit status 1

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/fast/work/poky/scripts/lib/compatlayer/cases/common.py", line 51, in test_signatures
      curr_sigs = get_signatures(self.td['builddir'], failsafe=True)
    File "/fast/work/poky/scripts/lib/compatlayer/__init__.py", line 149, in get_signatures
      raise RuntimeError(msg)
  RuntimeError: Traceback (most recent call last):
    File "/fast/work/poky/scripts/lib/compatlayer/__init__.py", line 144, in get_signatures
      stderr=subprocess.PIPE)
    File "/usr/lib/python3.4/subprocess.py", line 620, in check_output
      raise CalledProcessError(retcode, process.args, output=output)
  subprocess.CalledProcessError: Command 'bitbake -k -S none world' returned non-zero exit status 1

  Loading cache...done.
  Loaded 1328 entries from dependency cache.
  NOTE: Resolving any missing task queue dependencies
  NOTE: Runtime target 'zlib-qat' is unbuildable, removing...
  Missing or unbuildable dependency chain was: ['zlib-qat']
  ...
  Summary: There were 5 ERROR messages shown, returning a non-zero exit code.

The yocto-compat-layer.log was incomplete, it only had the first part
without the command output.

stderr was missing due to stderr=subprocess.PIPE.

Instead of the complicated try/except construct it's better to check
the return code ourselves and raise just a single exception. The
output (both on stderr and in the yocto-compat-layer.log) now is:

  INFO: ======================================================================
  INFO: ERROR: test_signatures (common.CommonCompatLayer)
  INFO: ----------------------------------------------------------------------
  INFO: Traceback (most recent call last):
    File "/fast/work/poky/scripts/lib/compatlayer/cases/common.py", line 51, in test_signatures
      curr_sigs = get_signatures(self.td['builddir'], failsafe=True)
    File "/fast/work/poky/scripts/lib/compatlayer/__init__.py", line 147, in get_signatures
      raise RuntimeError(msg)
  RuntimeError: Generating signatures failed. This might be due to some parse error and/or general layer incompatibilities.
  Command: bitbake -k -S none world
  Output:
  Loading cache...done.
  Loaded 1328 entries from dependency cache.
  NOTE: Resolving any missing task queue dependencies
  ERROR: Nothing PROVIDES 'qat16' (but /fast/work/meta-intel/common/recipes-extended/openssl-qat/openssl-qat_0.4.9-009.bb DEPENDS on or otherwise requires it)
  ERROR: qat16 was skipped: incompatible with machine qemux86 (not in COMPATIBLE_MACHINE)
  ...
  Missing or unbuildable dependency chain was: ['openssl-qat-dev']
  ...
  Summary: There were 5 ERROR messages shown, returning a non-zero exit code.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosanity.bbclass: modify check for shell
Juro Bystricky [Wed, 15 Mar 2017 16:37:39 +0000 (09:37 -0700)]
sanity.bbclass: modify check for shell

Due to the recently implemented update-alternatives for bash binary,
sanity checker may end up with a (false-positive) error such as:

Error, /bin/sh links to /bin/bash.bash, must be dash or bash

This patch modifies the test: presence of "/bash" or "/dash" in shell binary
name results in pass.

[YOCTO#11108]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoselftest: Disable SSTATE_MIRRORS for sstate signing test
Richard Purdie [Wed, 15 Mar 2017 13:48:06 +0000 (13:48 +0000)]
selftest: Disable SSTATE_MIRRORS for sstate signing test

Building ed into an sstate mirror, then leaving it enabled for
oe-selftest -r signing.Signing.test_signing_sstate_archive results in:

NOTE: recipe ed-1.14.1-r0: task do_populate_lic_setscene: Started
WARNING: ed-1.14.1-r0 do_populate_lic_setscene: Failed to fetch URL file://29/sstate:ed::1.14.1:r0::3:290bbc39f3b25cc27028dafce4b5aa48_populate_lic.tgz.sig;downloadfilename=29/sstate:ed::1.14.1:r0::3:290bbc39f3b25cc27028dafce4b5aa48_populate_lic.tgz.sig, attempting MIRRORS if available
ERROR: ed-1.14.1-r0 do_populate_lic_setscene: Fetcher failure: Unable to find file file://29/sstate:ed::1.14.1:r0::3:290bbc39f3b25cc27028dafce4b5aa48_populate_lic.tgz.sig;downloadfilename=29/sstate:ed::1.14.1:r0::3:290bbc39f3b25cc27028dafce4b5aa48_populate_lic.tgz.sig anywhere. The paths that were searched were:
    /media/build1/poky/build/test-sstate
    /media/build1/poky/build/test-sstate
WARNING: ed-1.14.1-r0 do_populate_lic_setscene: Cannot verify signature on sstate package /media/build1/poky/build/test-sstate/29/sstate:ed::1.14.1:r0::3:290bbc39f3b25cc27028dafce4b5aa48_populate_lic.tgz
NOTE: recipe ed-1.14.1-r0: task do_populate_lic_setscene: Succeeded

so we need to disable SSTATE_MIRRORS for this test.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake.conf: whitelist socat as non-fatal host tool
Mikko Ylinen [Tue, 14 Mar 2017 18:56:35 +0000 (20:56 +0200)]
bitbake.conf: whitelist socat as non-fatal host tool

oe-git-proxy depends on socat host tool but it's not
whitelisted and triggers a 'binary not in PATH' error.

Whitelist socat but make it a HOSTTOOLS_NONFATAL since
it's not a hard dependency.

Signed-off-by: Mikko Ylinen <mikko.ylinen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agowic: selftest: account for occasional newline in debugfs file names
Maciej Borzecki [Mon, 13 Mar 2017 10:19:23 +0000 (11:19 +0100)]
wic: selftest: account for occasional newline in debugfs file names

Debugfs output may contain a newline in file names in 'ls -p' output. Make sure
that output is correctly split into lines by matching '/\n' and newlines are
removed from file names.

Fixes the following error appearing in AB tests:

   Traceback (most recent call last):
     File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/wic.py", line 388, in test_exclude_path
       files = [line.split('/')[5] for line in res.output.split('\n')]
     File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/wic.py", line 388, in <listcomp>
       files = [line.split('/')[5] for line in res.output.split('\n')]
   IndexError: list index out of range

Signed-off-by: Maciej Borzecki <maciej.borzecki@rndity.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogo: add native recipes for 1.8
Khem Raj [Mon, 13 Mar 2017 19:57:37 +0000 (12:57 -0700)]
go: add native recipes for 1.8

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogo: Enable on musl
Khem Raj [Mon, 13 Mar 2017 19:57:36 +0000 (12:57 -0700)]
go: Enable on musl

Working fine for musl targets now

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoopenssl: actually apply Use-SHA256-not-MD5-as-default-digest.patch
Ross Burton [Tue, 14 Mar 2017 12:49:47 +0000 (12:49 +0000)]
openssl: actually apply Use-SHA256-not-MD5-as-default-digest.patch

This patch was added to fix a CVE, but wasn't actually added to SRC_URI:

    CVE: CVE-2004-2761
    The MD5 Message-Digest Algorithm is not collision resistant,
    which makes it easier for context-dependent attackers to
    conduct spoofing attacks, as demonstrated by attacks on the
    use of MD5 in the signature algorithm of an X.509 certificate.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>