]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
8 years agoca-certificates: Use c_rehash utility
Otavio Salvador [Mon, 23 May 2016 20:45:26 +0000 (17:45 -0300)]
ca-certificates: Use c_rehash utility

As now the c_rehash utility is available, we can use it. This removes
the patch to disable its usage allowing for a standard SSL behaviour.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoopenssl: Add Shell-Script based c_rehash utility
Otavio Salvador [Mon, 23 May 2016 20:45:25 +0000 (17:45 -0300)]
openssl: Add Shell-Script based c_rehash utility

The PLD Linux distribution has ported the c_rehash[1] utility from Perl
to Shell-Script, allowing it to be shipped by default.

1. https://git.pld-linux.org/?p=packages/openssl.git;a=blob;f=openssl-c_rehash.sh;h=0ea22637ee6dbce845a9e2caf62540aaaf5d0761

The OpenSSL upstream intends[2] to convert the utility for C however
did not yet finished the conversion.

2. https://rt.openssl.org/Ticket/Display.html?id=2324

This patch adds this script and thus removed the Perl requirement for
it.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosstate.bbclass: Don't create symlinks, download to the correct location
Randy Witt [Mon, 23 May 2016 21:57:00 +0000 (14:57 -0700)]
sstate.bbclass: Don't create symlinks, download to the correct location

Previously the sstate was all downloaded to the same directory and then
symlinks were added in the directories that pointed to the siginfo and
sstate in the parent directory.

This change makes it so that now the files are just downloaded to the
correct location without the need for symlinks.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodevtool: upgrade: clarify help text for --srcrev option
Paul Eggleton [Tue, 24 May 2016 04:18:52 +0000 (16:18 +1200)]
devtool: upgrade: clarify help text for --srcrev option

The -S / --srcrev option must be specified if fetching from a git
repository, so spell that out in the help text.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodevtool: upgrade: tweak conflict handling
Paul Eggleton [Tue, 24 May 2016 04:18:51 +0000 (16:18 +1200)]
devtool: upgrade: tweak conflict handling

Make a couple of changes to the rebase operation:

1) Only wrap the actual rebase command in try...except since a failure
   in any of the other commands should be an error, not a warning
2) If it's a conflict (which unfortunately we can only tell by checking
   for the keyword "conflict" since git doesn't return error codes based
   on the type of error) then print a message clarifying that the user
   needs to resolve the issue themselves to finish the upgrade.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodevtool: upgrade: handle upgrading recipes with a versioned inc file
Paul Eggleton [Tue, 24 May 2016 04:18:50 +0000 (16:18 +1200)]
devtool: upgrade: handle upgrading recipes with a versioned inc file

The gdb recipe in OE-Core has an inc file with the version in it;
since the inc file is pulled in with a "require ${PV}.inc", when
upgrading the recipe we need to also rename the inc file it will fail to
parse and the upgrade itself will fail.

Fixes [YOCTO #9574].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agouseradd: Fix infinite build loop
Richard Purdie [Mon, 23 May 2016 09:32:23 +0000 (10:32 +0100)]
useradd: Fix infinite build loop

http://git.openembedded.org/openembedded-core-contrib/commit/?id=642c6cf0b6a0371de476513162bd0cefa9c438b3
introduces a problem if the USERADD_PARAM variable has trailing
whitespace as the code infinitely loops causing build hangs.

Add a similar sed expression to $remaining to avoid this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto-rt, core-image-rt*: Explicitly skip when PREFERRED_PROVIDER_virtual/kerne...
Martin Jansa [Fri, 29 Apr 2016 17:46:09 +0000 (19:46 +0200)]
linux-yocto-rt, core-image-rt*: Explicitly skip when PREFERRED_PROVIDER_virtual/kernel isn't set to linux-yocto-rt

* just like linux-yocto-dev is doing
* fixes following errors in world builds:
  ERROR: Nothing PROVIDES 'linux-yocto-rt' (but /home/jenkins/oe/world/shr-core/openembedded-core/meta/recipes-rt/images/core-image-rt-sdk.bb DEPENDS on or otherwise requires it)
  ERROR: linux-yocto-rt was skipped: PREFERRED_PROVIDER_virtual/kernel set to linux-yocto, not linux-yocto-rt
  ERROR: linux-yocto-rt was skipped: PREFERRED_PROVIDER_virtual/kernel set to linux-yocto, not linux-yocto-rt
  ERROR: Required build target 'core-image-rt-sdk' has no buildable providers.
  Missing or unbuildable dependency chain was: ['core-image-rt-sdk', 'linux-yocto-rt']

  ERROR: Nothing PROVIDES 'linux-yocto-rt' (but /home/jenkins/oe/world/shr-core/openembedded-core/meta/recipes-rt/images/core-image-rt.bb DEPENDS on or otherwise requires it)
  ERROR: linux-yocto-rt was skipped: PREFERRED_PROVIDER_virtual/kernel set to linux-yocto, not linux-yocto-rt
  ERROR: linux-yocto-rt was skipped: PREFERRED_PROVIDER_virtual/kernel set to linux-yocto, not linux-yocto-rt
  ERROR: Required build target 'core-image-rt' has no buildable providers.
  Missing or unbuildable dependency chain was: ['core-image-rt', 'linux-yocto-rt']

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoscripts/bitbake-whatchanged: migrate from optparse to argparse
Humberto Ibarra [Thu, 19 May 2016 19:51:54 +0000 (14:51 -0500)]
scripts/bitbake-whatchanged: migrate from optparse to argparse

The script bitbake-whatchanged uses optparse library, which is
deprecated since python 2.7. This migrates to argparse library.

[Yocto #9634]

Signed-off-by: Humberto Ibarra <humberto.ibarra.lopez@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agocore-image-{minimal, testmaster}-initramfs: set COMPATIBLE_HOST
Martin Jansa [Fri, 29 Apr 2016 17:46:10 +0000 (19:46 +0200)]
core-image-{minimal, testmaster}-initramfs: set COMPATIBLE_HOST

* use the same COMPATIBLE_HOST restriction as initramfs-live-install(-testfs)
  to resolve ugly error when trying to build them e.g. for ARM:

  ERROR: Nothing RPROVIDES 'initramfs-live-install-testfs' (but /home/jenkins/oe/world/shr-core/openembedded-core/meta/recipes-extended/images/core-image-testmaster-initramfs.bb RDEPENDS on or otherwise requires it)
  ERROR: initramfs-live-install-testfs was skipped: incompatible with host arm-oe-linux-gnueabi (not in COMPATIBLE_HOST)
  NOTE: Runtime target 'initramfs-live-install-testfs' is unbuildable, removing...
  Missing or unbuildable dependency chain was: ['initramfs-live-install-testfs']
  ERROR: Required build target 'core-image-testmaster-initramfs' has no buildable providers.
  Missing or unbuildable dependency chain was: ['core-image-testmaster-initramfs', 'initramfs-live-install-testfs']

  ERROR: Nothing RPROVIDES 'initramfs-live-install' (but /home/jenkins/oe/world/shr-core/openembedded-core/meta/recipes-core/images/core-image-minimal-initramfs.bb RDEPENDS on or otherwise requires it)
  ERROR: initramfs-live-install was skipped: incompatible with host arm-oe-linux-gnueabi (not in COMPATIBLE_HOST)
  NOTE: Runtime target 'initramfs-live-install' is unbuildable, removing...
  Missing or unbuildable dependency chain was: ['initramfs-live-install']
  ERROR: Required build target 'core-image-minimal-initramfs' has no buildable providers.
  Missing or unbuildable dependency chain was: ['core-image-minimal-initramfs', 'initramfs-live-install']

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoimage.bbclass: additional output in create_symlinks
Patrick Ohly [Wed, 18 May 2016 16:24:16 +0000 (19:24 +0300)]
image.bbclass: additional output in create_symlinks

When a symlink does not get created, it is useful for debugging to log
what would have been created and why it was skipped.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoimage.bbclass: support duplicate compression types
Patrick Ohly [Wed, 18 May 2016 16:24:14 +0000 (19:24 +0300)]
image.bbclass: support duplicate compression types

When a derived distro adds a certain type, say zip, to
COMPRESSIONTYPES and later OE-core does the same, we end up with the
type being listed twice, and that would have undesired effects
(commands generated twice).

So to support such loosely coupled extension, we de-duplicated the
list of types first.

Alternatively, such a situation could also be treated as error. But that
seems unnecessary because typically commands for the same type will also
do the same thing.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agocoreutils: Fix rootfs creation errors
Dai Caiyun [Sat, 27 Feb 2016 23:05:53 +0000 (02:05 +0300)]
coreutils: Fix rootfs creation errors

    1) error: file /usr/share/man/man1/su.1 from install of shadow-doc-4.2.1
       conflicts with file from package coreutils-doc-6.9-r5
    2) error: file /usr/share/man/man1/hostname.1 from install of net-tools-doc
       conflicts with file from package coreutils-doc-6.9-r5
    3) error: file /usr/share/man/man1/hostname.1 from install of net-tools-doc
       conflicts with file from package coreutils-doc-8.25

Signed-off-by: Dai Caiyun <daicy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agonet-tools: Fix rootfs creation errors
Dai Caiyun [Sat, 27 Feb 2016 23:03:45 +0000 (02:03 +0300)]
net-tools: Fix rootfs creation errors

1) error: file /usr/share/man/man1/hostname.1 from install of net-tools-doc
           conflicts with file from package coreutils-doc-6.9-r5
2) error: file /usr/share/man/man1/hostname.1 from install of net-tools-doc
           conflicts with file from package coreutils-doc-8.25

Signed-off-by: Dai Caiyun <daicy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoshadow: Fix rootfs creation errors
Dai Caiyun [Sat, 27 Feb 2016 23:03:12 +0000 (02:03 +0300)]
shadow: Fix rootfs creation errors

error: file /usr/share/man/man1/su.1 from install of shadow-doc-4.2.1
           conflicts with file from package coreutils-doc-6.9-r5

Signed-off-by: Dai Caiyun <daicy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agomusl: Update to latest tip
Khem Raj [Fri, 20 May 2016 14:03:30 +0000 (07:03 -0700)]
musl: Update to latest tip

Bobby Bingham (3):
      x32: remove arch-specific syscall remapping
      x32: eliminate __X32_SYSCALL_BIT constant
      deduplicate __NR_* and SYS_* syscall number definitions

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoqemu: Upgrade to 2.6.0
Marek Vasut [Fri, 20 May 2016 14:03:29 +0000 (07:03 -0700)]
qemu: Upgrade to 2.6.0

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoharfbuzz: update to 1.2.7
Maxin B. John [Fri, 20 May 2016 12:51:22 +0000 (15:51 +0300)]
harfbuzz: update to 1.2.7

1.2.6 -> 1.2.7

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibsolv: update to 0.6.21
Maxin B. John [Fri, 20 May 2016 12:51:21 +0000 (15:51 +0300)]
libsolv: update to 0.6.21

0.6.20 -> 0.6.21

Remove upstreamed patch:
        1. 0001-CMakeLists.txt-fix-MAN_INSTALL_DIR.patch

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibsoup-2.4: provide PACKAGECONFIG for gssapi
Maxin B. John [Fri, 20 May 2016 12:51:20 +0000 (15:51 +0300)]
libsoup-2.4: provide PACKAGECONFIG for gssapi

Fixes this build error:

| ../../libsoup-2.54.1/libsoup/soup-auth-negotiate.c:16:27: fatal error:
gssapi/gssapi.h: No such file or directory
| compilation terminated.
| Makefile:1166: recipe for target
'libsoup_2_4_la-soup-auth-negotiate.lo' failed
| make[3]: *** [libsoup_2_4_la-soup-auth-negotiate.lo] Error 1

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agocmake: update to 3.5.2
Maxin B. John [Fri, 20 May 2016 12:51:19 +0000 (15:51 +0300)]
cmake: update to 3.5.2

Adjust LIC_FILES_CHKSUM due to changes in the Copyright date.
No change to the license text.

Remove the upstreamed patch:
        1. 0001-Add-NIOS2-CPU-support.patch

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoghostscript: Update URL_SRI considered as 'old release'
Leonardo Sandoval [Fri, 20 May 2016 05:59:17 +0000 (00:59 -0500)]
ghostscript: Update URL_SRI considered as 'old release'

The Ghostcript project started to place their tarballs in two places
starting at 9.19 as explained in [1]. 9.18 version is considered old,
so including the 'old-gs-releases' in the URL.

[1] http://downloads.ghostscript.com/public/

[YOCTO #9573]

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosystemd: re-enable mount propagation for udevd
Roy Li [Tue, 10 May 2016 02:09:33 +0000 (10:09 +0800)]
systemd: re-enable mount propagation for udevd

With MountFlags=slave, those mounts then become private to the systemd-udevd
namespace and are no longer accessible from outside the namespace, which is
not expected

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agopackage_manager: no need to output Note: in bb.note() calls
Ross Burton [Fri, 20 May 2016 14:14:59 +0000 (15:14 +0100)]
package_manager: no need to output Note: in bb.note() calls

8 years agowipe-sysroot: fix wrong glob when removing manifests
Ross Burton [Fri, 20 May 2016 10:36:32 +0000 (11:36 +0100)]
wipe-sysroot: fix wrong glob when removing manifests

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoscripts/oe-selftest: Remove inadvertant python3 specific change
Richard Purdie [Sun, 22 May 2016 15:06:20 +0000 (16:06 +0100)]
scripts/oe-selftest: Remove inadvertant python3 specific change

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython-smartpm: Avoid locale issue with bitbake python3
Richard Purdie [Thu, 19 May 2016 14:00:57 +0000 (15:00 +0100)]
python-smartpm: Avoid locale issue with bitbake python3

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobitbake.conf/toolchain-shar-extract: Use en_US.UTF-8 as locale
Richard Purdie [Sat, 21 May 2016 11:30:11 +0000 (12:30 +0100)]
bitbake.conf/toolchain-shar-extract: Use en_US.UTF-8 as locale

Under python 3, if we spawn python processes, we need to have a UTF-8 locale,
else python's file access methods will use ascii. You can't change that mode
once the interpreter is started so we have to ensure a locale is set. Ideally
we'd use C.UTF-8 since OE already forces the C locale but not all distros support
that and we need to set something so en_US.UTF-8 seems as standard we we can get.

This matches the change in bitbake revision 8902c29638411d312e6fc4a197707e5742652e15

Also set this into the environment used when installing SDKs since
python can be run and we need to ensure we use a standardised locale
which is available from things like buildtools-tarball.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agometa: Update to modern exception syntax
Richard Purdie [Sat, 21 May 2016 11:29:16 +0000 (12:29 +0100)]
meta: Update to modern exception syntax

Update older exception syntax to modern one required by python 3.
Compatible with python 2.7.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel-uimage: Fix python indentation
Richard Purdie [Sat, 21 May 2016 11:27:48 +0000 (12:27 +0100)]
kernel-uimage: Fix python indentation

Use spaces, not tabs for python functions.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agometa/scripts: python3: rename file -> open
Richard Purdie [Sat, 21 May 2016 11:26:45 +0000 (12:26 +0100)]
meta/scripts: python3: rename file -> open

file() API doesn't exist in python 3, convert to open(). Also handle
some cases where files aren't closed. Compatible with python 2.7.

[Contributions from Ed and Richard]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agometa/selftest/scripts: Use print function for python3 compatibility
Richard Purdie [Sat, 21 May 2016 11:25:02 +0000 (12:25 +0100)]
meta/selftest/scripts: Use print function for python3 compatibility

Used print function instead of print statement to make
the code work in python 3.

[Changes from both Ed and Richard]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodevtool: sdk-update: drop support for local updates
Paul Eggleton [Fri, 20 May 2016 10:21:18 +0000 (22:21 +1200)]
devtool: sdk-update: drop support for local updates

Having two code paths here makes maintenance difficult, and it doesn't
seem likely that you would use the local case in real usage anyway, so
drop the local support entirely.

This should allow us to resolve [YOCTO #9301].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agonativesdk-glibc: Extend relocation support to locales
Richard Purdie [Sat, 21 May 2016 10:55:36 +0000 (11:55 +0100)]
nativesdk-glibc: Extend relocation support to locales

Currently locales are not found in a relocated buildtools-tarball
such as that used in eSDK. This breaks bitbake when used under python3.

This patch adds enough relocation magic to nativesdk-glibc so that
the binary locales can be found even in a relocated buildtools-tarball
and bitbake works successfully under python3. The eSDK also works
correctly after this change too.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoglibc-locale: Enable binary locale generation for nativesdk-glibc
Richard Purdie [Sat, 21 May 2016 10:53:08 +0000 (11:53 +0100)]
glibc-locale: Enable binary locale generation for nativesdk-glibc

python3 has much stricter locale requirements than previous versions.
If a locale isn't present, python3 reverts to ascii mode under which
bit
bake can't operate.

We therefore need working binary locales in things like uninative-tarball and buildtools-tarball. This patch enables binary locales for nativesdk-glibc.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuild-appliance-image: use 'lnr' instead of 'ln -sr'
Ming Liu [Fri, 20 May 2016 20:14:20 +0000 (22:14 +0200)]
build-appliance-image: use 'lnr' instead of 'ln -sr'

For portability, not all hosts are running sufficiently new coreutils.

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolttng-modules: Upgrade to 2.7.3 release
Andrew Bradford [Fri, 20 May 2016 19:04:05 +0000 (15:04 -0400)]
lttng-modules: Upgrade to 2.7.3 release

Linux 4.5 and later cause lttng-modules versions prior to 2.7.2 to fail
to compile due to Linux vmscan changes.  See lttng-modules git commit
d0d2908478bdc8c36faaeae6fcb687052cb5f93b on lttng-modules branch
stable-2.7: "Fix: update vmscan instrumentation for kernel 4.5".

Signed-off-by: Andrew Bradford <andrew.bradford@kodakalaris.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomkelfimage: obey LDFLAGS, sort out HOST_ flags
Christopher Larson [Fri, 20 May 2016 17:04:20 +0000 (10:04 -0700)]
mkelfimage: obey LDFLAGS, sort out HOST_ flags

We weren't consistent in the HOST_ (aka BUILD_) and non-HOST_ flags, so we
were using BUILD_CPPFLAGS to compile target stuff, for example. Sort that out,
and make sure we obey LDFLAGS.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agocore-image-weston: If X11 is enabled, add XWayland support
Otavio Salvador [Wed, 18 May 2016 16:40:48 +0000 (13:40 -0300)]
core-image-weston: If X11 is enabled, add XWayland support

When the distribution has X11 and Wayland backends, we enable XWayland support
and include matchbox-terminal as a test application for the XWayland backend.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoweston-init: Use weston-launch when starting weston as the first windowing system
Tom Hochstein [Wed, 18 May 2016 16:40:47 +0000 (13:40 -0300)]
weston-init: Use weston-launch when starting weston as the first windowing system

When  weston is started as the first windowing system (i.e. not under X
nor under another Wayland server), it should be done with  the  command
weston-launch to set up proper privileged access to devices.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoweston: Add Xwayland initialization support using weston-start
Otavio Salvador [Wed, 18 May 2016 16:40:46 +0000 (13:40 -0300)]
weston: Add Xwayland initialization support using weston-start

The weston-start script now supports loading modules so the Xwayland
support can be loaded optionally. Use this to load Weston accordingly.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoweston-init: Add module support for the weston-start helper
Otavio Salvador [Wed, 18 May 2016 16:40:45 +0000 (13:40 -0300)]
weston-init: Add module support for the weston-start helper

To make weston-start more flexible we now support module loading. For
such modules, following functions can be used:

 - add_weston_argument
 - add_openvt_argument

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoweston-init: Error out if loading a nested instance
Otavio Salvador [Wed, 18 May 2016 16:40:44 +0000 (13:40 -0300)]
weston-init: Error out if loading a nested instance

The Weston nested instance support is not implemented. This errors out
displaying an informative error message so someone insterested on it
may look at implement this later.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoweston-init: Rework init sequence to avoid code duplication
Otavio Salvador [Wed, 18 May 2016 16:40:43 +0000 (13:40 -0300)]
weston-init: Rework init sequence to avoid code duplication

The new 'weston-start' script redcues the code duplication for SysV
and SystemD based images.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoweston-init: Rework do_install to use install -D option
Otavio Salvador [Wed, 18 May 2016 16:40:42 +0000 (13:40 -0300)]
weston-init: Rework do_install to use install -D option

The install -D allow for the parent directories to be created in a
single command line, reducing the code and number of fork during the
build.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoweston: Provide a default version of weston-launch that doesn't require PAM
Tom Hochstein [Wed, 18 May 2016 16:40:41 +0000 (13:40 -0300)]
weston: Provide a default version of weston-launch that doesn't require PAM

weston-launch requires PAM for starting weston as a non-root user.

Since starting weston as root is a valid use case by itself, we check
the distro for 'pam' and build weston-launch with or without
non-root-user support.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoweston: Remove XWayland dependencies on PACKAGECONFIG
Otavio Salvador [Wed, 18 May 2016 16:40:40 +0000 (13:40 -0300)]
weston: Remove XWayland dependencies on PACKAGECONFIG

Instead of adding partial dependencies we list the PACKAGECONFIG
options that are required. Those are: X11 and Wayland.

The previous value were redudant with X11 PACKAGECONFIG option and as
it is a requirement, for XWayland, it can be removed to easy
maintenance.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoweston: Enable XWayland when X11 and Wayland support are available
Otavio Salvador [Wed, 18 May 2016 16:40:39 +0000 (13:40 -0300)]
weston: Enable XWayland when X11 and Wayland support are available

When the DISTRO has X11 and Wayland support enabled, XWayland ought to
be enabled by default.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoweston: Add PACKAGECONFIG option for 'clients'
Otavio Salvador [Wed, 18 May 2016 16:40:38 +0000 (13:40 -0300)]
weston: Add PACKAGECONFIG option for 'clients'

This allow Weston to be build without the clients.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoweston: Fix SystemD service description
Otavio Salvador [Wed, 18 May 2016 16:40:37 +0000 (13:40 -0300)]
weston: Fix SystemD service description

This improves the log shown in boot. Now it shows:

  [  OK  ] Started Weston Wayland Compositor

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoweston: weston-launch: Handle invalid command line options
Tom Hochstein [Wed, 18 May 2016 16:40:36 +0000 (13:40 -0300)]
weston: weston-launch: Handle invalid command line options

Exit the program if an unrecognized command line option is found.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolib/oe/rootfs: Fix DEBUGFS generation, without openssl
Anders Darander [Fri, 20 May 2016 09:01:01 +0000 (11:01 +0200)]
lib/oe/rootfs: Fix DEBUGFS generation, without openssl

In commit 20ea6d274bb0a9a5addb111f32793de49b907865, debugfs generation
for images using opkg, which included openssl was fixed.

However, that broke the generation of the opkg-based images, that lacks
openssl. The error is a python stack trace, showing that shutil.copytree
tries to copy a non-existing directory.

This relates to [YOCTO #9040].

Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogdb: Backport patch to changes with AVX and MPX
bavery [Thu, 19 May 2016 22:04:39 +0000 (15:04 -0700)]
gdb: Backport patch to changes with AVX and MPX

The current MPX target descriptions assume that MPX is always combined
with AVX, however that's not correct.  We can have machines with MPX
and without AVX; or machines with AVX and without MPX.

This patch adds new target descriptions for machines that support
both MPX and AVX, as duplicates of the existing MPX descriptions.

The following commit will remove AVX from the MPX-only descriptions.

This commit is backported from 7.12

Signed-off-by: bavery <brian.avery@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoacl.inc, run-ptest: improve ptest functionality on limited rootfs
Peter Seebach [Wed, 18 May 2016 21:30:47 +0000 (16:30 -0500)]
acl.inc, run-ptest: improve ptest functionality on limited rootfs

ACL's ptest has a handful of failure modes which can be triggered by
a restrictive or small system. First, the ptest requires that daemon
be in the bin group, which run-ptest attempts to do using gpasswd,
but gpasswd is part of shadow, and oe-core removes shadow when it
doesn't think shadow will be needed. Even if, say, a package has
RDEPENDS on it. Whoops. So we manually sed the group file. This
will probably work.

Second, the filesystem used for the test has to support ACLs,
so we create a dummy ext3 filesystem and use that.

Third, the root/permissions test relies on the assumption that
"mkdir d" produces a directory which non-root users can access,
but in a secure product which defaults to umask 077, this doesn't
work. (That fix has been separately reported to upstream acl
through their bug report form.)

(This may prevent the test from running without mkfs.ext3, but it
allows the test to run on targets where root doesn't have ACL
support. Tradeoffs, tradeoffs everywhere.)

Signed-off-by: Peter Seebach <peter.seebach@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agomesa: fix mesa_populate_packages() when dri is disabled
Herve Jourdain [Wed, 18 May 2016 12:33:37 +0000 (20:33 +0800)]
mesa: fix mesa_populate_packages() when dri is disabled

When compiling mesa, if dri is disabled in PACKAGECONFIG, or if the list of DRI
drivers is empty, it will cause populate_package to fail, because it can't find
- rightfully - the directory for the DRI drivers.  This patch checks that the
directory indeed exists before trying to get a list of the files in it

[ use oe.path.join instead of + - RB ]

Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowic: fix path parsing, use last occurrence
George McCollister [Fri, 13 May 2016 14:22:53 +0000 (09:22 -0500)]
wic: fix path parsing, use last occurrence

If the path contains 'scripts' more than once the first occurrence will be
incorrectly used. Use rfind instead of find to find the last occurrence.

Signed-off-by: George McCollister <george.mccollister@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoclasses/kernel: check OLDEST_KERNEL at configure time
Paul Eggleton [Mon, 9 May 2016 04:43:31 +0000 (16:43 +1200)]
classes/kernel: check OLDEST_KERNEL at configure time

If the kernel being built is older than OLDEST_KERNEL and we're building
with glibc, then the C library we're building is probably not going to
be compatible with the kernel and we should warn the user. (This is
easier to do here rather than when building glibc, because we don't
necessarily have the information we need to determine the kernel version
there, whereas we do here.)

Fixes [YOCTO #8653].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoclasses/kernel: fix typo
Paul Eggleton [Mon, 9 May 2016 04:43:30 +0000 (16:43 +1200)]
classes/kernel: fix typo

KERNEL_VERISON -> KERNEL_VERSION (in a comment)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobluez5: fixed path to bluetoothd in sysvinit script
Christian Ege [Wed, 11 May 2016 19:18:48 +0000 (21:18 +0200)]
bluez5: fixed path to bluetoothd in sysvinit script

Within the sysvinit script the path to bluetoothd is wrong. Because of this
the init scripts silently terminates without any message

Signed-off-by: Christian Ege <k4230r6@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoqemu: Upgrade to 2.5.1.1 for fix CVE-2016-3710 and CVE-2016-3712
Aníbal Limón [Thu, 12 May 2016 21:18:40 +0000 (16:18 -0500)]
qemu: Upgrade to 2.5.1.1 for fix CVE-2016-3710 and CVE-2016-3712

This is a minor upgrade only comes with security fixes in qemu VGA
and UART code to avoid corruptions.

For review details,
http://git.qemu.org/?p=qemu.git;a=log;h=v2.5.1.1

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoopenssh: update homepage and summary
Stephano Cetola [Tue, 10 May 2016 17:14:24 +0000 (10:14 -0700)]
openssh: update homepage and summary

The homepage variable is out of date and the summary does not mention
ssh, making the recipe difficult to find.

[ YOCTO #9610 ]

Signed-off-by: Stephano Cetola <stephano.cetola@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoclasses/populate_sdk_ext: adjust variable blacklisting
Paul Eggleton [Tue, 10 May 2016 03:06:43 +0000 (15:06 +1200)]
classes/populate_sdk_ext: adjust variable blacklisting

* Blacklist SSTATE_DIR, DL_DIR and TMPDIR by default to avoid problems
  such as the one mentioned in [YOCTO #9605].
* Blacklist BB_NUMBER_PARSE_THREADS since we already blacklist
  BB_NUMBER_THREADS and they may be set separately.

Fixes [YOCTO #9605].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolinux-dummy: set INHIBIT_DEFAULT_DEPS
Robert Yang [Mon, 9 May 2016 09:32:33 +0000 (02:32 -0700)]
linux-dummy: set INHIBIT_DEFAULT_DEPS

It doesn't need them.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agokernel: fitimage: Repair misuse of shell test command
Marek Vasut [Sun, 8 May 2016 11:21:53 +0000 (13:21 +0200)]
kernel: fitimage: Repair misuse of shell test command

The kernel fitImage must be amended with signature if and only if
UBOOT_SIGN_ENABLE = 1 . In the current case, the UBOOT_SIGN_ENABLE
could be either 0 (default) or 1 , which test -n always correctly
interprets as non-empty string, thus always true. This does not
match the logic above though, so replace the test with check which
passes only for UBOOT_SIGN_ENABLE = 1 .

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Yannick Gicquel <yannick.gicquel@iot.bzh>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobluez5: move btmgmt to common READLINE section
Nicolas Dechesne [Mon, 2 May 2016 15:56:32 +0000 (17:56 +0200)]
bluez5: move btmgmt to common READLINE section

Upstream in 5.33 btmgmt was moved from experimental to common READLINE section,
in commit e4f0c5582f1fe3451d5588243adba9de1ed68b80, but this was never updated
in the recipe.

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agowebkitgtk: turn off JIT on armv4 and armv7a
Robert Yang [Wed, 18 May 2016 09:03:59 +0000 (02:03 -0700)]
webkitgtk: turn off JIT on armv4 and armv7a

* It doesn't build on armv4:
{standard input}: Assembler messages:
{standard input}:52: Error: selected processor does not support `blx llint_throw_stack_overflow_error' in ARM mode
{standard input}:126: Error: selected processor does not support `bkpt #0' in ARM mode
{standard input}:128: Error: selected processor does not support `blx r0' in ARM mode
{standard input}:134: Error: selected processor does not support `bkpt #0' in ARM mode
{standard input}:185: Error: selected processor does not support `blx llint_throw_stack_overflow_error' in ARM mode
{standard input}:256: Error: selected processor does not support `blx r4' in ARM mode
{standard input}:310: Error: selected processor does not support `movw r2,#:lower16:.Lllint_op_enter-.LrelativePCBase' in ARM mode
{standard input}:311: Error: selected processor does not support `movt r2,#:upper16:.Lllint_op_enter-.LrelativePCBase' in ARM mode
{standard input}:315: Error: selected processor does not support `movw r2,#:lower16:.Lllint_op_get_scope-.LrelativePCBase' in ARM mode
{standard input}:316: Error: selected processor does not support `movt r2,#:upper16:.Lllint_op_get_scope-.LrelativePCBase' in ARM mode
[snip]

* It can build on armv7a, but doesn't work on runtime, cause
  displaying problems or ephiphany hang.

[YOCTO #9474]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomesa-demos: provide option for disabling GLX demos
Awais Belal [Thu, 19 May 2016 11:26:59 +0000 (16:26 +0500)]
mesa-demos: provide option for disabling GLX demos

There are platforms that default to EGL only configurations
in which case the GLX applications are not required
at all. Allow the user to control generation of these
demos as needed through a configure switch.

Signed-off-by: Awais Belal <awais_belal@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel: moves KERNEL_SRC_PATH to bitbake.conf
Ming Liu [Thu, 19 May 2016 11:05:50 +0000 (13:05 +0200)]
kernel: moves KERNEL_SRC_PATH to bitbake.conf

"/usr/src/kernel" is being hard-coded in multiple recipes so far, move its
definition to bitbake.conf.

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agozip: update SRC_URI
Ross Burton [Thu, 19 May 2016 10:43:18 +0000 (11:43 +0100)]
zip: update SRC_URI

The infozip FTP server appears to have been taken down, so change the SRC_URI to
point at their SourceForge project.

Also as the SRC_URI can't be generated from the version and there is no other
user of the .inc, merge the .bb and .inc together.

[ YOCTO #9655 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agounzip: update SRC_URI
Ross Burton [Thu, 19 May 2016 10:43:17 +0000 (11:43 +0100)]
unzip: update SRC_URI

The infozip FTP server appears to have been taken down, so change the SRC_URI to
point at their SourceForge project.

[ YOCTO #9655 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolibgudev: fix upstream check
Maxin B. John [Thu, 19 May 2016 13:43:08 +0000 (16:43 +0300)]
libgudev: fix upstream check

Provide UPSTREAM_CHECK_URI and UPSTREAM_CHECK_REGEX to fix upstream
check.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agofreetype: fix upstream check
Maxin B. John [Thu, 19 May 2016 13:43:07 +0000 (16:43 +0300)]
freetype: fix upstream check

Provide UPSTREAM_CHECK_URI and UPSTREAM_CHECK_REGEX for proper
upstream check.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopackage_regex.inc: remove deprecated file
Maxin B. John [Thu, 19 May 2016 13:43:06 +0000 (16:43 +0300)]
package_regex.inc: remove deprecated file

Remove this file as it has been deprecated in the previous release.
New entries should be added to recipes itself.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoyocto-uninative: Update to 1.1 tarball (new version of glibc)
Richard Purdie [Tue, 17 May 2016 10:00:31 +0000 (11:00 +0100)]
yocto-uninative: Update to 1.1 tarball (new version of glibc)

Since we have a new version of glibc, upgrade to a new version of
the uninative tarball to ensure we work on recent distributions.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorootfs.py: Unify _log_check_warn() and _log_check_error()
Peter Kjellerstedt [Wed, 18 May 2016 22:28:18 +0000 (00:28 +0200)]
rootfs.py: Unify _log_check_warn() and _log_check_error()

Use a common _log_check_common() function (based on the old
_log_check_warn() function) to implement the logic for both
_log_check_warn() and _log_check_error().

The main benefit of this is that now all error messages will be
reported again, not just the first one found. Additionally the output
will now look the same for both error and warning messages.

This removes the context for the error messages. However, since there
was no indication in the output that some of the lines were context,
they were more confusing than helping.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorootfs.py: Reduce spam from _log_check_warn()
Peter Kjellerstedt [Wed, 18 May 2016 22:28:17 +0000 (00:28 +0200)]
rootfs.py: Reduce spam from _log_check_warn()

For each warning found in the log, _log_check_warn() would output a
line stating that it had found a warning, then the actual warning and
finally an empty line. This is quite excessive when there are many
warnings in the log.

With this change the output is instead a line stating how many
warnings were found, followed by the warnings. This makes the output
much more compact and actually much more readable.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorootfs.py: Exclude lines in _log_check_warn() as well
Peter Kjellerstedt [Wed, 18 May 2016 22:28:16 +0000 (00:28 +0200)]
rootfs.py: Exclude lines in _log_check_warn() as well

This will make _log_check_warn() exclude the same lines as
_log_check_error() does.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorootfs.py: Use one way to exclude lines in _log_check_error()
Peter Kjellerstedt [Wed, 18 May 2016 22:28:15 +0000 (00:28 +0200)]
rootfs.py: Use one way to exclude lines in _log_check_error()

Before there were three different ways to exclude a line from being
searched for error messages in _log_check_error(). Now there is only
one: an array of regular expressions. This should make it easy to add
more excludes if nedded.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorootfs.py: Simplify the regular expression used in _log_check_warn()
Peter Kjellerstedt [Wed, 18 May 2016 22:28:14 +0000 (00:28 +0200)]
rootfs.py: Simplify the regular expression used in _log_check_warn()

In commit 0387d095 lines with "NOTE:" in them were excluded from the
log check for warnings. However, those lines were only there in the
first place since the regular expression that is used to find warning
messages explicitly included those lines...

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorootfs.py: Remove _log_check_error() from the RpmRootfs class
Peter Kjellerstedt [Wed, 18 May 2016 22:28:13 +0000 (00:28 +0200)]
rootfs.py: Remove _log_check_error() from the RpmRootfs class

The fact that this function was overridden in the RpmRootfs class
seems to have led to a number of misstakes when changes have been made
to the base function in the Rootfs class. E.g., this change will
properly solve ticket 7789, which was supposedly solved in 38871dc0,
but that change had no effect in practice as the log_check_regex that
was modified for RpmRootfs class was not used by the RpmRootfs version
of _log_check_error()...

The only thing _log_check_error() in RpmRootfs did that the base
function in Rootfs did not do was to skip lines in the log that begin
with a + sign. This has now been moved to the base function instead.

[YOCTO #7789]

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoRevert "rootfs.py: add more info to the warning message"
Peter Kjellerstedt [Wed, 18 May 2016 22:28:12 +0000 (00:28 +0200)]
Revert "rootfs.py: add more info to the warning message"

The reverted commit added a warning with the log line that triggered
the log check for error messages before the warning that states that
an error has been found in the log. However, the error line is output
by the call to bb.fatal() that follows immediately after the original
warning, which makes it redundant. Additionaly, having two warnings
contradicts the intent of commit 8dfdd329 where the log warnings were
tidied up.

This reverts commit f9cf31525fc885e1a0f65bd55654631257f87078.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosysprof: Disable nios2 support
Marek Vasut [Sun, 8 May 2016 21:40:13 +0000 (23:40 +0200)]
sysprof: Disable nios2 support

sysprof does not support nios2 yet, so disable it.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Ley Foon Tan <lftan@altera.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Ross Burton <ross.burton@intel.com>
Cc: Thomas Chou <thomas@wytron.com.tw>
Cc: Walter Goossens <waltergoossens@home.nl>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoelfutils-0.148: Fix build with gcc6
Khem Raj [Wed, 18 May 2016 21:56:37 +0000 (21:56 +0000)]
elfutils-0.148: Fix build with gcc6

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosystemd: Create missing sysusers offline
Khem Raj [Wed, 18 May 2016 04:40:21 +0000 (21:40 -0700)]
systemd: Create missing sysusers offline

Some system users which are needed by systemd components were missing
create these users knobbed with relevant packageconfig

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agouseradd.bbclass: Strip trailing ';' in cmd params
Khem Raj [Wed, 18 May 2016 04:20:15 +0000 (21:20 -0700)]
useradd.bbclass: Strip trailing ';' in cmd params

When there are more than 1 packages in a recipe requiring useradd
services, they are concatnated and a ';' is inserted just after
each of the users being added by the packages. A situation arises
in cases where this is controlled by PACKAGECONFIG then we add a
';' separator in the USERADD_PARAM value itself for each packagecofig
since we do not know which one will be picked, we end up in situation
where the final string returned from get_all_cmd_params() appears to be

a; ; b; c;

and then the logic which uses these cmds triggers with ';' as separator
but in this case it will fail after executing useradd 'a' because the next
cmd it will call will be just a whitespace

This is highlighted by the systemd patch to add more users as needed
by systemd 229 components.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agomakedevs: fix security issues
Edwin Plauchu [Tue, 17 May 2016 19:26:16 +0000 (14:26 -0500)]
makedevs: fix security issues

This avoids makedevs failure to compile with compiler flags
which elevate common string formatting issues into an error
(-Wformat -Wformat-security -Werror=format-security).

[YOCTO #9549]

Signed-off-by: Edwin Plauchu <edwin.plauchu.camacho@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agozip: fix security issues
Edwin Plauchu [Tue, 17 May 2016 19:25:11 +0000 (14:25 -0500)]
zip: fix security issues

This patch avoids zip recipe fails to compile with compiler
flags which elevate common string formatting issues into an
error (-Wformat -Wformat-security -Werror=format-security).

[YOCTO #9552]

Signed-off-by: Edwin Plauchu <edwin.plauchu.camacho@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agostat: fix security issues
Edwin Plauchu [Tue, 17 May 2016 19:25:35 +0000 (14:25 -0500)]
stat: fix security issues

This patch avoids stat fails to compile with compiler flags which
elevate common string formatting issues into an error (-Wformat
-Wformat-security -Werror=format-security).

[YOCTO #9550]

Signed-off-by: Edwin Plauchu <edwin.plauchu.camacho@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopixman: Fix build on arches not defining FE_INVALID exception
Khem Raj [Wed, 18 May 2016 04:40:22 +0000 (21:40 -0700)]
pixman: Fix build on arches not defining FE_INVALID exception

Nios2 e.g. only supports round to nearest in glibc

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuildtools-tarball: add nativesdk-locale-base-en-us
Robert Yang [Wed, 18 May 2016 07:43:45 +0000 (00:43 -0700)]
buildtools-tarball: add nativesdk-locale-base-en-us

It is required by python3's bitbake.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuildtools-tarball: replace nativesdk-python with nativesdk-python3
Robert Yang [Wed, 18 May 2016 07:43:44 +0000 (00:43 -0700)]
buildtools-tarball: replace nativesdk-python with nativesdk-python3

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agobuildtools-tarball: remove nativesdk-python-pexpect
Robert Yang [Wed, 18 May 2016 07:43:43 +0000 (00:43 -0700)]
buildtools-tarball: remove nativesdk-python-pexpect

It was added for testing, and not needed any more after:
4a8a74c62836a20610daf029d4cec0b3087758b2
Author: Robert Yang <liezhi.yang@windriver.com>
Date:   Mon Mar 21 02:25:50 2016 -0700

    gpg_sign.py: get rid of pexpect

So remove it.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython3-git: add it for buildtools-tarball
Robert Yang [Wed, 18 May 2016 07:43:42 +0000 (00:43 -0700)]
python3-git: add it for buildtools-tarball

Need add python3-git to buildtools-tarball for the py3 build.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython3-gitdb: add it for python3-git
Robert Yang [Wed, 18 May 2016 07:43:41 +0000 (00:43 -0700)]
python3-gitdb: add it for python3-git

Need add python3-git to buildtools-tarball for the py3 build, and the
dependencies chain is:

python3-git -> python3-gitdb

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython3-async: add it for python3-gitdb
Robert Yang [Wed, 18 May 2016 07:43:40 +0000 (00:43 -0700)]
python3-async: add it for python3-gitdb

Need add python3-git to buildtools-tarball for the py3 build, and the
dependencies chain is:

python3-git -> python3-gitdb -> python3-async

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython3-smmap: add it for python3-gitdb
Robert Yang [Wed, 18 May 2016 07:43:39 +0000 (00:43 -0700)]
python3-smmap: add it for python3-gitdb

Need add python3-git to buildtools-tarball for the py3 build, and the
dependencies chain is:

python3-git -> python3-gitdb -> python3-smmap

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agouseradd: use bindir_native for pseudo PATH
Martin Jansa [Wed, 18 May 2016 09:57:33 +0000 (11:57 +0200)]
useradd: use bindir_native for pseudo PATH

* useradd/userdel functions will fail for recipes which override their target prefix
  (e.g. to /opt/foo), because it will try to use pseudo from native-sysroot/opt/foo/bin/pseudo

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoopenssh: Backport fix for CVE-2015-8325
Jussi Kukkonen [Wed, 18 May 2016 12:11:56 +0000 (15:11 +0300)]
openssh: Backport fix for CVE-2015-8325

PAM environment vars must be ignored when UseLogin=yes

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoopenssh: Upgrade 7.1p2 -> 7.2p2
Jussi Kukkonen [Wed, 18 May 2016 12:11:55 +0000 (15:11 +0300)]
openssh: Upgrade 7.1p2 -> 7.2p2

Remove patches that are in the release.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoscripts/oe-selftest: Improve listing by reducing unneeded spacing
Humberto Ibarra [Wed, 18 May 2016 16:17:59 +0000 (11:17 -0500)]
scripts/oe-selftest: Improve listing by reducing unneeded spacing

The --list-tests option assumes a terminal of 150 characters wide,
which is clearly wrong. The output for this command is messy and
hard to understand for lower widths. Every command should look
good in a 80 characters terminal.

Unfortunately, this can't be done at the moment. The bad naming of
testcases have made the test names incredibly long.

This patch reduces spacing between columns and shows the tests
names in a concise and understandable way. The format is even the
same one required for running a testcase. Once the testcase naming
improves, this output will look even better.

[Yocto #9534]

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