]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
10 years agolinux-yocto/3.17: update to v3.17.6
Bruce Ashfield [Wed, 10 Dec 2014 09:18:51 +0000 (04:18 -0500)]
linux-yocto/3.17: update to v3.17.6

Integrating the latest korg -stable update for v3.17

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
10 years agolttng-modules: fix mm_compaction_isolate_template build
Bruce Ashfield [Wed, 10 Dec 2014 08:22:59 +0000 (03:22 -0500)]
lttng-modules: fix mm_compaction_isolate_template build

linux-stable integrated the 3.16 commit f8c9301fa5a2a [mm/compaction: do
not count migratepages when unnecessary] with the 3.14.25 update.

So we have to update the lttng-module linux version codes to use the
new definition in builds greater than 3.14.24 or 3.16.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
10 years agolinux-yocto/3.14: update to v3.14.24
Bruce Ashfield [Mon, 17 Nov 2014 05:56:59 +0000 (00:56 -0500)]
linux-yocto/3.14: update to v3.14.24

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
10 years agolinux-yocto/3.10: update to v3.10.59
Bruce Ashfield [Mon, 17 Nov 2014 04:29:33 +0000 (23:29 -0500)]
linux-yocto/3.10: update to v3.10.59

Updating to the latest 3.10 -korg stable update. We also bring in a meta
change for the valley island IO configuration.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
10 years agolinux-yocto/3.17: update to v3.17.2
Bruce Ashfield [Mon, 17 Nov 2014 04:25:04 +0000 (23:25 -0500)]
linux-yocto/3.17: update to v3.17.2

Updating to the korg 3.17.2 -stable release.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
10 years agolinux-yocto/3.17: update to v3.17.1
Bruce Ashfield [Wed, 15 Oct 2014 14:11:49 +0000 (10:11 -0400)]
linux-yocto/3.17: update to v3.17.1

Updating to the kver to the latest korg stable update. This fixes some
important bugs (as well as the usual mix of more minor ones), in particular
libata bugs and SSD corruption issues are fixed.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
10 years agokernel: Clean ${S} before unpack
Richard Purdie [Thu, 18 Dec 2014 11:41:58 +0000 (11:41 +0000)]
kernel: Clean ${S} before unpack

Currently unpack just forces sources over the current files. This change
ensures ${S} is cleaned out before sources are unpacked. This resolves
issues seen when upgrading to the new kernel class changes.

Ultimately, this should probably move to base.bbclass but one step at a
time, this solves an immediate problem blocking the other patches from
merging.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosanity: TMPDIR ABI change for kernel process
Richard Purdie [Thu, 11 Dec 2014 14:36:05 +0000 (14:36 +0000)]
sanity: TMPDIR ABI change for kernel process

The kernel source is being moved into the sysroot, to do this and
preserve previous builds, we need to change the TMPDIR ABI and
provide a function to uninstall all kernels from the sysroot.

This change adds code to do that and increases the ABI number.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokernel-yocto: make sure git tags get dereferenced properly in do_patch()
Jeff Wang [Fri, 7 Nov 2014 14:45:32 +0000 (09:45 -0500)]
kernel-yocto: make sure git tags get dereferenced properly in do_patch()

Commit 92c1ece6c347030d48995a36f4c67861356e59d3 causes the test in do_patch()
in kernel-yocto.bbclass to fail if ${machine_srcrev} is an annotated tag. The
check is meant to ensure that ${machine_srcrev} is an ancestor of HEAD, but
if ${machine_srcrev} is a tag, then "$(git rev-parse --verify
${machine_srcrev})" evaluates to the SHA of the tag instead of what it's
pointing to.

Replacing "$(git rev-parse --verify ${machine_srcrev})" with "$(git rev-parse
--verify ${machine_srcrev}~0)" fixed the problem by finding the object pointed
to by the tag, and not the tag itself. This also works for commit IDs that
are not tags, hence is safe in a scenarios.

Jeff Wang <jeffrey.wang@ll.mit.edu>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
10 years agokernel-yocto: fix non-git builds
Bruce Ashfield [Sat, 22 Nov 2014 04:51:58 +0000 (23:51 -0500)]
kernel-yocto: fix non-git builds

The ability to build non-git repositories was broken by two changes:

 - The existence of an empty 'patches' directory created during the
   unpack phase. This dir was incorrectly identified as a valid meta
   directory and broke the build. By ensuring that it is removed before
   creating the empty repository, it will no longer be found instead of
   the real meta directory.

 - The attempt to reset the git repository to a specific SRCREV when
   no SRCREV was provided. By checking for a SRCREV of 'INVALID', we
   avoid any processing and failed git operations.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
10 years agolttng/perf: depend on virtual/kernel:do_install
Bruce Ashfield [Thu, 4 Dec 2014 04:14:08 +0000 (23:14 -0500)]
lttng/perf: depend on virtual/kernel:do_install

To ensure that the minimal environment has been created for out of
tree module builds, perf and lttng should depend on the do_install
task of the kernel.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
10 years agoimages: introduce core-image-kernel-dev
Bruce Ashfield [Mon, 25 Aug 2014 17:22:53 +0000 (13:22 -0400)]
images: introduce core-image-kernel-dev

When building a new kernel, or testing and update to the kernel there
are a set of packages that are sensitive to APIs, build system and
other changes associated with the kernel.

After building this recipe, we can be reasonably sure that a new kernel
package and coupled userspace have been built, installed and tested
via a single image.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
10 years agokerneldev: create kernel-devsrc packaging
Bruce Ashfield [Fri, 5 Dec 2014 19:48:11 +0000 (14:48 -0500)]
kerneldev: create kernel-devsrc packaging

kernel-devsrc is responsible for creating and a packaging an environment
appropriate for kernel development (on or off target).

To create this support, we only need to copy/install the results of the
virtual/kernel providers build in the staging dir ... with some minor
manipulations to the source tree (.git removal and a clean up). This
produces a source tree that is capable of rebuilding the kernel on the
target.

Installing the kernel-devsrc package on a target (along with a
toolchain) is all that remains to be done.

 $ cd /usr/src/kernel
 $ make oldconfig
 $ make -j2 bzImage

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
10 years agokernel: fix out of tree module builds
Bruce Ashfield [Fri, 14 Nov 2014 19:51:27 +0000 (14:51 -0500)]
kernel: fix out of tree module builds

With the kernel build optimizations, we no longer copy the source from
the built kernel into the staging dir, since the kernel is unpacked and built
directly from the staging dir.

This means that a few build artifacts need to be restored to allow out of
tree modules to once again build.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokernel: Rearrange for 1.8
Richard Purdie [Tue, 21 Oct 2014 21:05:30 +0000 (21:05 +0000)]
kernel: Rearrange for 1.8

In 1.8 we want to streamline the kernel build process. Basically we
currently have multiple copies of the kernel source floating around
and the copying/compression/decompression is painful.

Lets assume we have a kernel source per machine since in most cases
this is true (and we have a sysroot per machine anyway). Basically,
instead of extracting a source into WORKDIR, then copying to a sysroot,
we now set S to point straight at STAGING_DIR_KERNEL.

Anything using kernel source can then just point at it and use:

do_configure[depends] += "virtual/kernel:do_patch"

to depend on the kernel source being present. Note this is different
behaviour to DEPENDS += "virtual/kernel" which equates to
do_configure[depends] += "virtual/kernel:do_populate_sysroot".

Once we do this, we no longer need the copy operation in
do_populate_sysroot, in fact there is nothing to do there (yay).

The remaining part of the challenge is to kill off the horrible
do_install. This patch splits it off to a different class, the idea here
is to have a separate recipe which depends on the virtual/kernel:do_patch
and just installs and packages the source needed to build modules on
target into a specific package.

Right now this code is proof of concept. It builds kernels and kernel
modules. perf blows up in do_package with issues on finding the kernel
version which can probably be fixed by adding back the right bit of do_install,
and adding a dependency of do_package[depends] += "virtual/kernel:do_install"
to perf. The whole thing needs a good write up, the corner cases testing
and probably a good dose of cleanup to the remaining code.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoimage: Avoid race over directory creation
Richard Purdie [Sat, 20 Dec 2014 11:16:06 +0000 (11:16 +0000)]
image: Avoid race over directory creation

There is a race over the do_package_qa task and the do_rootfs task
since rootfs recreates a directory. This patch disables the task
(which isn't used for images) to avoid the race:

NOTE: recipe core-image-minimal-1.0-r0: task do_package_qa: Started
NOTE: recipe core-image-minimal-1.0-r0: task do_rootfs: Started
ERROR: Build of do_package_qa failed
ERROR: Traceback (most recent call last):
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips/build/bitbake/lib/bb/build.py", line 497, in exec_task
    return _exec_task(fn, task, d, quieterr)
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips/build/bitbake/lib/bb/build.py", line 440, in _exec_task
    exec_func(func, localdata)
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips/build/bitbake/lib/bb/build.py", line 212, in exec_func
    exec_func_python(func, d, runfile, cwd=adir)
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips/build/bitbake/lib/bb/build.py", line 237, in exec_func_python
    os.chdir(cwd)
OSError: [Errno 2] No such file or directory: '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips/build/build/tmp/work/qemumips-poky-linux/core-image-minimal/1.0-r0/core-image-minimal-1.0'

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodbus-test: Fix SRC_URI checksum to match dbus
Richard Purdie [Sat, 20 Dec 2014 11:22:11 +0000 (11:22 +0000)]
dbus-test: Fix SRC_URI checksum to match dbus

If the system fetches dbus first, everything works and the checksum is
correct there. If dbus-test fetches first, the checksum is incorrect
and wasn't changed with the version upgrade.

Fix the checksum.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoreport-error: Handle the case no logfile exists
Richard Purdie [Sat, 20 Dec 2014 11:20:33 +0000 (11:20 +0000)]
report-error: Handle the case no logfile exists

If the task fails early, no error log may exist. Currently we crash in
that case, this handles the situation more gracefully.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosecurity_flags: Fix typo for cups
Richard Purdie [Fri, 19 Dec 2014 09:03:17 +0000 (09:03 +0000)]
security_flags: Fix typo for cups

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobusybox-mdev: Support automatic mounting of block devices
mike.looijmans@topic.nl [Thu, 18 Dec 2014 14:17:31 +0000 (15:17 +0100)]
busybox-mdev: Support automatic mounting of block devices

Upon inserting a USB stick or similar device, mdev will run
an automounter script that mounts valid partitions on
/media/<device>. The script first checks /etc/fstab entries
so that mounting on UUID or LABEL or using custom mount options
is still possible. If /etc/fstab does not contain particular
mount options, the script will create (and remove) the mountpoint
automatically.
The script also supports full disk partitions (devices without
partition table).

The following environments can be set in /etc/default/mdev:
MDEV_AUTOMOUNT=n (Disables automounting completely)
MDEV_AUTOMOUNT_ROOT=/media (Change the mount root location)

Automatic mounting for a particular device can be disabled by
creating a file "/dev/<device>.nomount". This is helpful in
scripts that create partitions for example, and want to perform
specific actions which require the device to remain unmounted.

A more complex variation (using LABEL based mounts) on this script
has been in use in OpenPLi for many years now, and I've used this
one on many projects already, so it's about time to push this to
mainline.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agobusybox-mdev: Add hotplug kernel module support to mdev.conf
mike.looijmans@topic.nl [Thu, 18 Dec 2014 14:19:24 +0000 (15:19 +0100)]
busybox-mdev: Add hotplug kernel module support to mdev.conf

Add a line to mdev.conf that tells mdev to load kernel modules when
required.

For example, if you built wifi support as an external module, inserting
a wifi stick into a USB port will now automatically load that module
into the kernel and the wlan device will be ready for configuration.
Without this patch, you have to load required modules manually or force
them to load at system startup.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agobusybox/find-touchscreen.sh: Simplify script and recognize USB devices
mike.looijmans@topic.nl [Thu, 18 Dec 2014 14:17:29 +0000 (15:17 +0100)]
busybox/find-touchscreen.sh: Simplify script and recognize USB devices

Simplify the grep expression, use the more common "grep" command instead
of "egrep", avoid forking extra processes, join multiple invokations into
a single combined expression.

Change the touchscreen regex so that it also recognizes various USB
touchscreen controllers and the ad7879 i2c device.

Based on code used in OpenPLi and meta-topic.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agobusybox-mdev: Install missing find-touchscreen.sh
mike.looijmans@topic.nl [Thu, 18 Dec 2014 14:17:28 +0000 (15:17 +0100)]
busybox-mdev: Install missing find-touchscreen.sh

mdev.conf references the find-touchscreen.sh script, but this file
was not being installed. Add the script to the busybox-mdev package.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agopowertop: Fix build for !uclibc
Martin Jansa [Thu, 18 Dec 2014 14:54:14 +0000 (15:54 +0100)]
powertop: Fix build for !uclibc

* EXTRA_LDFLAGS isn't defined for !uclibc and configure fails
  when it reads it unexpanded, see config.log snippet:

  configure:4177: checking whether the C compiler works
  configure:4199: i586-oe-linux-gcc  -m32 -march=i586 --sysroot=/OE/sysroots/qemux86  -O2 -pipe -g -feliminate-unused-debug-types  -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed ${EXTRA_LDFLAGS} conftest.c  >&5
  i586-oe-linux-gcc: error: ${EXTRA_LDFLAGS}: No such file or directory
  configure:4203: $? = 1
  configure:4241: result: no

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agocommon-licenses: add SMAIL_GPL
Ross Burton [Thu, 18 Dec 2014 20:56:12 +0000 (20:56 +0000)]
common-licenses: add SMAIL_GPL

This is used by debianutils.

Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agowic: add globbing support in IMAGE_BOOT_FILES entries
Maciej Borzecki [Wed, 10 Dec 2014 11:45:57 +0000 (12:45 +0100)]
wic: add globbing support in IMAGE_BOOT_FILES entries

Adding glob support for entries in IMAGE_BOOT_FILES. Files picked up by
glob are by default installed under their basename, as this is likely
most common use case. Target name for globbed entries specifies the
name of directory in which files will be installed withing the partition.

Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agowic: IMAGE_BOOT_FILES format checks in bootimg-partition source
Maciej Borzecki [Wed, 10 Dec 2014 11:45:56 +0000 (12:45 +0100)]
wic: IMAGE_BOOT_FILES format checks in bootimg-partition source

Check for malformed entries in IMAGE_BOOT_FILES, fail early if such
entries were found.

Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agomesa: add PACKAGECONFIG support for gallium XA state tracker
Nicolas Dechesne [Tue, 2 Dec 2014 21:06:33 +0000 (22:06 +0100)]
mesa: add PACKAGECONFIG support for gallium XA state tracker

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agovala: Add Upstream-Status to patch
Saul Wold [Wed, 17 Dec 2014 16:27:04 +0000 (08:27 -0800)]
vala: Add Upstream-Status to patch

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agooprofile: add missing Upstream-Status
Ross Burton [Wed, 17 Dec 2014 16:24:12 +0000 (16:24 +0000)]
oprofile: add missing Upstream-Status

Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agowhich: add missing Upstream-Status
Ross Burton [Wed, 17 Dec 2014 16:23:57 +0000 (16:23 +0000)]
which: add missing Upstream-Status

Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoudev-cache: refactor conditionals and error handling
Richard Tollerton [Tue, 21 Jan 2014 19:46:46 +0000 (13:46 -0600)]
udev-cache: refactor conditionals and error handling

Most of /etc/init.d/udev-cache is in a conditional block which can be
replaced by a `[ ... ] || exit 0` to reduce nesting.

This also provides an opportunity to add some additional messages
when VERBOSE is set.

Capture and report errors encountered in the cache generation process,
using set -e and trap EXIT. These errors were previously being ignored.

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
10 years agoudev-cache: Update cache asynchronously
Richard Tollerton [Mon, 13 Jan 2014 21:51:33 +0000 (15:51 -0600)]
udev-cache: Update cache asynchronously

Don't hold up the boot while the cache is being updated.

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Ben Shelton <ben.shelton@ni.com>
Acked-by: Gratian Crisan <gratian.crisan@ni.com>
10 years agoudev-cache: invalidate on rules.d changes
Richard Tollerton [Fri, 24 Jan 2014 06:44:01 +0000 (00:44 -0600)]
udev-cache: invalidate on rules.d changes

Presently, the cache is not regenerated if udev rules are modified,
which may cause the cache to preserve an old configuration. To fix,
include the size, mtime, and filename of all udev rules in the system
configuration.

This change requires `stat`. If busybox supplies stat,
CONFIG_FEATURE_STAT_FORMAT must be enabled.

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
10 years agoudev-cache: always warn on console if invalidated
Richard Tollerton [Tue, 9 Dec 2014 00:02:10 +0000 (18:02 -0600)]
udev-cache: always warn on console if invalidated

Failure to use the udev cache is a significant enough impact to
the boot time (possibly seconds) that it should always be
reported on the console, regardless of the VERBOSE setting.

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
10 years agoudev-cache: Clean up message when cache is invalidated
Richard Tollerton [Thu, 11 Dec 2014 04:59:06 +0000 (22:59 -0600)]
udev-cache: Clean up message when cache is invalidated

Replace a bunch of echo's with a single cat<<EOF. Take this opportunity
to more clearly communicate what is going on with the cache and what
files are being looked at.

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
10 years agoudev-cache: refactor sysconf generation
Richard Tollerton [Mon, 8 Dec 2014 23:37:29 +0000 (17:37 -0600)]
udev-cache: refactor sysconf generation

The current system configuration needs to be generated both inside
udev (to compare against the cached system configuration) and
udev-cache (to regenerate the cached system configuration). Use a single
function definition for this task, duplicated across both initscripts.
This also allows administrators to modify it for machine-specific
requirements.

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
10 years agoudev-cache: don't generate sysconf twice
Richard Tollerton [Mon, 8 Dec 2014 23:25:10 +0000 (17:25 -0600)]
udev-cache: don't generate sysconf twice

The udev initscript signals udev-cache to run by generating a new
sysconf; but udev-cache now overwrites that with its own copy. To
eliminate the needless sysconf generating in udev, we instead trigger
udev-cache to run by touching a new file $DEVCACHE_REGEN.

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
10 years agoudev-cache: replace readfiles() with cmp
Richard Tollerton [Mon, 8 Dec 2014 23:13:35 +0000 (17:13 -0600)]
udev-cache: replace readfiles() with cmp

Currently, udev-cache system configurations are compared as shell string
variables, read into memory with the readfiles() function. This is more
complex, and significantly (27-41%) slower, than comparing them using
`cmp`. (Performance was verified on both Cortex-A9 and Intel Nehalem
systems.)

So just use cmp. This requires a few other small changes:

exclude /proc/atags from CMP_FILE_LIST if it doesn't exist to avoid
errors in `cat` and `cmp`.

`cmp -q` doesn't exist in busybox, so instead, redirect output to
/dev/null.

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
10 years agoudev-cache: stop race between sysconf and cache generation
Richard Tollerton [Mon, 8 Dec 2014 22:44:33 +0000 (16:44 -0600)]
udev-cache: stop race between sysconf and cache generation

The validity of the udev cache is determined by the sysconf
file (/etc/udev/cache.data). Currently, there is a substantial delay
between sysconf generation in /etc/init.d/udev and cache generation in
/etc/init.d/udev-cache. If a hotplug event arrives in the middle of
this, then the sysconf will be out of date with respect to the cache.

The solution is two-pronged. First, we minimize the race window by
regenerating the sysconf immediately before the cache, in
/etc/init.d/udev-cache. This allows us to kill the race entirely by
stopping the udev event queue while the sysconf and cache are being
generated.

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
10 years agobuildtools-tarball: restore missing git tools
Paul Eggleton [Fri, 5 Dec 2014 18:09:28 +0000 (18:09 +0000)]
buildtools-tarball: restore missing git tools

Since the split out of git-perltools, some git tools (such as "git am",
"git send-email" and "git-submodule") have no longer been part of the
buildtools. We need these, so add them back in.

However, adding git-perltools to buildtools triggers perl itself being
brought into buildtools as well, and we don't want that; but we also
don't want to have to hack the git recipe or indeed anything else that
starts depending on perl. Thus, add a dummy package which gets installed
in its place, in a separate package architecture that is only enabled
for buildtools to ensure it doesn't start appearing in place of
nativesdk-perl anywhere else.

Fixes [YOCTO #7033].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agosystemd-systemctl: add handling of template unit files
Tomas Novotny [Fri, 12 Dec 2014 15:50:51 +0000 (16:50 +0100)]
systemd-systemctl: add handling of template unit files

Template unit files (those with '@' in their names) are not handled with
native version of systemctl. This is usually not a problem, as the
native systemctl fails and systemctl command is executed during first
boot. But some early boot template units may fail during first boot
because opkg configure for first boot is pulled too late for them
(although I encouter it only with some of my services, not with oe-core
ones).

Handling of template unit files is same as in original systemctl. Also
DefaultInstance directive in template is respected. As with original
systemctl, enabling of template without instance and DefaultInstance
does nothing.

Signed-off-by: Tomas Novotny <tomas@novotny.cz>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agolibproxy: let INCOMPATIBLE_LICENSE supports wildcard
Hongxu Jia [Mon, 15 Dec 2014 09:03:28 +0000 (17:03 +0800)]
libproxy: let INCOMPATIBLE_LICENSE supports wildcard

While wildcard in INCOMPATIBLE_LICENSE, such as INCOMPATIBLE_LICENSE =
"*GPL-3", libproxy could correct work.

[YOCTO #5592]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
10 years agodefault-versions.inc: let INCOMPATIBLE_LICENSE supports wildcard
Hongxu Jia [Mon, 15 Dec 2014 08:58:02 +0000 (16:58 +0800)]
default-versions.inc: let INCOMPATIBLE_LICENSE supports wildcard

While wildcard in INCOMPATIBLE_LICENSE, such as INCOMPATIBLE_LICENSE =
"*GPL-3", PREFERRED_VERSION_db-native could have the correct value "5.%"

[YOCTO #5592]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
10 years agobase/license.bbclass: expand wildcards in INCOMPATIBLE_LICENSE
Hongxu Jia [Mon, 15 Dec 2014 08:55:10 +0000 (16:55 +0800)]
base/license.bbclass: expand wildcards in INCOMPATIBLE_LICENSE

The whitelist processing in code in base.bbclass does not play well with
wildcards in INCOMPATIBLE_LICENSES. The code expects bad_licenses to
contain actual license names, not wildcards.

Add incompatible_license_contains to replace bb.utils.contains(
"INCOMPATIBLE_LICENSE", **, **, **, d)

[YOCTO #5592]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
10 years agogcc runtime: specify license on a per package basis
Joe Slater [Tue, 16 Dec 2014 22:55:20 +0000 (14:55 -0800)]
gcc runtime: specify license on a per package basis

It can be alarming to attempt to exclude GPLv3 from an
image but find that libstdc++ and libgcc still show it.
We indicate the license for each package to show libraries
that really are just GCC-3.0-with-GCC-exception.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agotoaster.bbclass: trigger event for other image files
Alexandru DAMIAN [Wed, 10 Dec 2014 14:44:59 +0000 (14:44 +0000)]
toaster.bbclass: trigger event for other image files

Toaster will log all the files that it can find in the
deploy images directory, and list them, considering that
they may be artifacts of the current build not logged
anywhere else.

[YOCTO #6836]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agosystemd: backport patch to fix reading journal backwards
Jonathan Liu [Fri, 12 Dec 2014 13:16:29 +0000 (00:16 +1100)]
systemd: backport patch to fix reading journal backwards

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agofont-util: Fix incorrect PKG_CONFIG_PATH
Richard Tollerton [Fri, 12 Dec 2014 19:34:00 +0000 (13:34 -0600)]
font-util: Fix incorrect PKG_CONFIG_PATH

PKG_CONFIG_PATH always defaults to /usr/lib/pkgconfig, and the host
/usr/lib/pkgconfig is always checked as a fallback; however,
PKG_CONFIG_PATH is currently (incorrectly) set to /usr/lib/pkg-config in
the sysroot, which doesn't exist. On host distros where the font
encoding maps are stored under a different path than OE, this will break
font builds, because ucs2any will attempt to read the sysroot's encoding
maps with the host paths.

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agopackage.bbclass: do variable fixups even when FILES was set
Peter Seebach [Mon, 8 Dec 2014 23:53:59 +0000 (17:53 -0600)]
package.bbclass: do variable fixups even when FILES was set

A number of settings (DESCRIPTION, SUMMARY, postinst, postrm,
and appends to RDEPENDS) were made only if FILES_foo was not
set for a given package. If you had a modified glibc packaging
setup that was defining FILES_glibc-gconv-somelocale, this would
prevent the automatic append of glibc-gconv as a dependency,
because extra_depends was ignored.

I think the assumption may have been that if FILES_foo was set,
DESCRIPTION_foo and SUMMARY_foo would also be set, but it seems
to me that the right answer is probably to set them if they aren't
already set, and leave them alone if they are.

Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agokernel.bbclass: Remove bashism
Khem Raj [Fri, 12 Dec 2014 20:47:43 +0000 (12:47 -0800)]
kernel.bbclass: Remove bashism

Fixes build on systems using dash for default shell e.g.

errors like

run.do_strip.25842: [[: not found
| readelf: Error: Unable to read in 0x37 bytes of section headers
| readelf: Error: Not an ELF file - it has the wrong magic bytes at the start

Change-Id: I29cac15be44a02d75a3d6889b6ae9b2e19bf46af
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoimage_types.bbclass: Populate cpio /init as symlink
Nathan Rossi [Tue, 9 Dec 2014 05:50:05 +0000 (15:50 +1000)]
image_types.bbclass: Populate cpio /init as symlink

For cpio/ramfs the kernel will first attempt to execute /init and will
emit the following error as the file is empty:

    Failed to execute /init (error -13)

If /sbin/init exists symlink to it so the kernel can immediately start
the correct init executable instead of an empty file.

Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoshadow: disable nscd feature when glibc is not built with spawn posix functions
Baptiste DURAND [Fri, 5 Dec 2014 14:40:16 +0000 (15:40 +0100)]
shadow: disable nscd feature when glibc is not built with spawn posix functions

shadow package  configure step fails with this log output :
| checking location of faillog/lastlog/wtmp... (cached) /var/log
| checking location of the passwd program... (cached) /usr/bin
| checking for posix_spawn... no
| configure: error: posix_spawn is needed for nscd support
| Configure failed. The contents of all config.log files follows to aid debugging
| ERROR: oe_runconf failed

Signed-off-by: Baptiste DURAND <baptiste.durand@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agognutls: upgrade to 3.3.11
Armin Kuster [Sat, 13 Dec 2014 16:26:11 +0000 (08:26 -0800)]
gnutls: upgrade to 3.3.11

this also includes a fix for CVE-2014-8564.

see http://www.gnutls.org/security.html for CVE-2014-3566 "POODLE" statement.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agopackagegroup-core-tools-profile: allow lttng-modules for ARM
Nathan Lynch [Mon, 15 Dec 2014 18:17:32 +0000 (12:17 -0600)]
packagegroup-core-tools-profile: allow lttng-modules for ARM

Per commit f6587be6cd3dc864143b1c0be0bb8179a61dc835 (lttng-modules:
re-enable ARM builds) lttng-modules is fine for ARM now.  Without this
additional change, tools-profile won't bring in lttng-modules when
targeting ARM.

Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoglibc: CVE 2014-7817 and 2012-3406 fixes
Armin Kuster [Tue, 16 Dec 2014 02:19:05 +0000 (18:19 -0800)]
glibc: CVE 2014-7817 and 2012-3406 fixes

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoopenssh: move setting LD to allow for correct override
Saul Wold [Mon, 15 Dec 2014 19:21:49 +0000 (11:21 -0800)]
openssh: move setting LD to allow for correct override

Using the export LD in the recipe does not allow for secodnary toolchain
overriding LD later, by setting it in the do_configure_append the export
is used by autotools setting LD based on the env, but would allow for
override later.

[YOCTO #6997]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoqemu: disable vte if gtk is also disabled
Richard Tollerton [Thu, 11 Dec 2014 18:52:57 +0000 (12:52 -0600)]
qemu: disable vte if gtk is also disabled

vte will pull in the gtk libs itself. This can cause build failures if
the native gtk was build with glib>=2.41 while the sysroot native glib
is <=2.40.

Fix for [YOCTO #7077].

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agogstreamer1.0-* fix configure for out of tree build on git recipes
Awais Belal [Tue, 16 Dec 2014 15:46:40 +0000 (15:46 +0000)]
gstreamer1.0-* fix configure for out of tree build on git recipes

The autogen.sh script lies in the srcdir ($S) and is required to be run on git
based checkouts of gstreamer packages in order to generate initial
makefiles. So, we fix this by cd'ing to the specific dir, run the required
script and then come back to our initial dir which is builddir ($B).
Additionally rather than overriding the whole do_configure step we only _prepend
to make it clear what we are doing here.

Signed-off-by: Awais Belal <awais_belal@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoconnman: use PACKAGECONFIG to control systemd option
Ross Burton [Tue, 16 Dec 2014 15:25:23 +0000 (15:25 +0000)]
connman: use PACKAGECONFIG to control systemd option

Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoofono: use PACKAGECONFIG for systemd and bluetooth
Ross Burton [Tue, 16 Dec 2014 14:11:00 +0000 (14:11 +0000)]
ofono: use PACKAGECONFIG for systemd and bluetooth

For clarity use PACKAGECONFIG for the systemd and bluetooth optional features.

Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agogst-plugins-bad: add PACKAGECONFIG for the RTMP plugin
Ross Burton [Thu, 11 Dec 2014 11:25:46 +0000 (11:25 +0000)]
gst-plugins-bad: add PACKAGECONFIG for the RTMP plugin

The RTMP plugin was non-deterministic, based on whether rtmpdump from
meta-multimedia had been built.  Add a PACKAGECONFIG to resolve this.

Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agogst-plugins: remove spurious whitespace
Ross Burton [Thu, 11 Dec 2014 11:07:55 +0000 (11:07 +0000)]
gst-plugins: remove spurious whitespace

Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoserf: readded md5sum
Enrico Scholz [Tue, 9 Dec 2014 10:21:06 +0000 (11:21 +0100)]
serf: readded md5sum

Commit 36d94ed631f1a753482282fced7d3b7505d5e03d ("serf: fix 'ccache'
builds") removed the source md5sum accidentally while resolving a
merge conflict.

Readd it.

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Cc: Kang Kai <Kai.Kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agogsettings-desktop-schemas: remove
Ross Burton [Wed, 10 Dec 2014 12:52:11 +0000 (12:52 +0000)]
gsettings-desktop-schemas: remove

This is not used in oe-core and now has a new home in meta-gnome.

Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agonpth: npth needs pthread in some cases
Saul Wold [Mon, 10 Nov 2014 21:59:03 +0000 (13:59 -0800)]
npth: npth needs pthread in some cases

Signed-off-by: Saul Wold <sgw@linux.intel.com>
10 years agobabeltrace: Update to 1.2.4
Saul Wold [Mon, 1 Dec 2014 17:47:11 +0000 (09:47 -0800)]
babeltrace: Update to 1.2.4

Signed-off-by: Saul Wold <sgw@linux.intel.com>
10 years agoprocps: Upgrade to 3.3.10
Saul Wold [Sat, 6 Dec 2014 07:38:51 +0000 (23:38 -0800)]
procps: Upgrade to 3.3.10

This is now the procps-ng version

cleaned up patches
added to fix up usrbin_execprefix in OE-Core

Add CPPFLAGS to allow seperate build directory works

[YOCTO #6952]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agopython-pycurl: build docstrings to fix rebuilds
Ross Burton [Tue, 9 Dec 2014 15:05:35 +0000 (15:05 +0000)]
python-pycurl: build docstrings to fix rebuilds

On a rebuild base.bbclass will invoke "make clean" to ensure that old build
objects are not used. This will delete docstrings.c and the only way to
re-generate that is with a dedicated setup.py target.

Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agovalgrind: update to 3.10.1
Kai Kang [Tue, 9 Dec 2014 09:36:41 +0000 (17:36 +0800)]
valgrind: update to 3.10.1

Update valgrind from 3.10.0 to 3.10.1 which is a bug fix release.  It
fixes various bugs reported in 3.10.0 and backports fixes for all
reported missing AArch64 ARMv8 instructions and syscalls from the trunk.

Add dependency perl-module-file-glob for ptest subpackage.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoapr: avoid absolute paths for grep
Jackie Huang [Mon, 8 Dec 2014 06:08:03 +0000 (01:08 -0500)]
apr: avoid absolute paths for grep

The apr provides usr/share/build-1/libtool which is required by
the recipe such as apache2, and it will find grep on the host
and set absolute paths in libtool: GREP="/usr/bin/grep"

If we build apr/apr-native on a host that grep is in "/usr/bin/grep",
and re-use the sstate on another host with "/bin/grep", it will fail
when build apache2/apache2-native with:

| tmp/sysroots/x86_64-linux/usr/share/build-1/libtool: line 1093: /usr/bin/grep: No such file or directory
| tmp/sysroots/intel-x86-64/usr/share/build-1/libtool: line 1093: /usr/bin/grep: No such file or directory

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agomidori: update to 0.5.8
Andreas Müller [Fri, 5 Dec 2014 08:11:55 +0000 (09:11 +0100)]
midori: update to 0.5.8

midori has moved to cmake for configuration

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agocpio: fix bug CVE-2014-9112 for cpio-2.11
Bian Naimeng [Mon, 8 Dec 2014 05:45:07 +0000 (13:45 +0800)]
cpio: fix bug CVE-2014-9112 for cpio-2.11

Obtain detain from following URL.
  http://lists.gnu.org/archive/html/bug-cpio/2014-12/msg00000.html
  http://git.savannah.gnu.org/cgit/cpio.git/commit/?id=746f3ff670dcfcdd28fcc990e79cd6fccc7ae48d

Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agocpio: fix bug CVE-2014-9112 for cpio-2.8
Bian Naimeng [Mon, 8 Dec 2014 05:45:06 +0000 (13:45 +0800)]
cpio: fix bug CVE-2014-9112 for cpio-2.8

Obtain detain from following URL.
http://lists.gnu.org/archive/html/bug-cpio/2014-12/msg00000.html
http://git.savannah.gnu.org/cgit/cpio.git/commit/?id=746f3ff670dcfcdd28fcc990e79cd6fccc7ae48d

Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agolibxcb, xcbproto: upgrade to version 1.11
Awais Belal [Mon, 8 Dec 2014 11:17:22 +0000 (16:17 +0500)]
libxcb, xcbproto: upgrade to version 1.11

Update libxcb and xcb-proto to 1.11 from 1.10.

Signed-off-by: Awais Belal <awais_belal@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoautoconf: disable checking for emacs
Dan McGregor [Wed, 19 Nov 2014 20:12:05 +0000 (14:12 -0600)]
autoconf: disable checking for emacs

Emacs is somewhat broken on Fedora 21. Don't check for it. We
don't need it.

Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
10 years agobluez5: support experimental through PACKAGECONFIG
Peter A. Bigot [Mon, 3 Nov 2014 17:47:03 +0000 (11:47 -0600)]
bluez5: support experimental through PACKAGECONFIG

Make it simple to enable the experimental plugins and tools.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
10 years agobluez5: add a package for tools left in the build area
Peter A. Bigot [Mon, 10 Nov 2014 18:05:54 +0000 (12:05 -0600)]
bluez5: add a package for tools left in the build area

In bluez4 gatttool was provided as a command-line interface to the
Generic Attribute Profile.  In bluez5 this tool is still built but is no
longer installed.  It is still necessary for those wishing to use GATT
since the programmatic API is not yet mature.  A variety of other useful
tools are treated similarly by bluez5.

Make these tools available in the bluez5-noinst-tools package, in a way
that allows control over which tools are packaged, with the default
being all that are provided in a particular release of bluez.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
10 years agobluez-hcidump: select provider as bluez4 or bluez5
Peter A. Bigot [Sat, 1 Nov 2014 20:35:34 +0000 (15:35 -0500)]
bluez-hcidump: select provider as bluez4 or bluez5

bluez-hcidump was a separate package in bluez4, but was integrated into
bluez5.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
10 years agopython3-core: Fix minimal python3 install
Alejandro Hernandez [Thu, 4 Dec 2014 19:09:35 +0000 (13:09 -0600)]
python3-core: Fix minimal python3 install

Added additional runtime dependencies for python3-core needed
to run the interpreter with a minimal install (codecs,io,math,reprlib).

Created python3-reprlib package to avoid getting python3-misc bringing
lots of unneeded libraries.

Fixed FILES-python3-core, missing _sysconfigdata, renamed copyreg
undetected before due to previously needed installation of python3-misc.

[YOCTO #6967]

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agopython: add python-codecs runtime dependency for python-json
Magnus Olsson [Fri, 5 Dec 2014 10:03:46 +0000 (11:03 +0100)]
python: add python-codecs runtime dependency for python-json

A piece of JSON initialization code that runs when you "import json"
tries to use the hex-decoder, thus breaks if you do not have
python-codecs installed. Example:

    >>> import json
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "/usr/lib/python2.7/json/__init__.py", line 108, in <module>
        from .decoder import JSONDecoder
      File "/usr/lib/python2.7/json/decoder.py", line 24, in <module>
        NaN, PosInf, NegInf = _floatconstants()
      File "/usr/lib/python2.7/json/decoder.py", line 18, in _floatconstants
        _BYTES = '7FF80000000000007FF0000000000000'.decode('hex')
    LookupError: no codec search functions registered: can't find encoding

This patch adds a runtime dependency on python-codecs for python-json and
re-generates the python manifests for Python v2.7. Solves [YOCTO #7020].

Signed-off-by: Magnus Olsson <magnus@minimum.se>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agopython: fix ssl import error
Maxin B. John [Fri, 5 Dec 2014 17:08:49 +0000 (18:08 +0100)]
python: fix ssl import error

Fix this ssl import error:
Python 2.7.3 (default, Dec  5 2014, 16:24:17)
[GCC 4.9.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ssl
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/ssl.py", line 92, in <module>
    import base64        # for DER-to-PEM translation
ImportError: No module named base64

Signed-off-by: Maxin B. John <maxin.john@enea.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agogstreamer1.0-libav: specify proper cross-prefix
Awais Belal [Fri, 5 Dec 2014 11:40:10 +0000 (16:40 +0500)]
gstreamer1.0-libav: specify proper cross-prefix

This avoids a compile failure locating ranlib by providing
the correct cross-prefix for build.

Signed-off-by: Drew Moseley <drew_moseley@mentor.com>
Signed-off-by: Awais Belal <awais_belal@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoxorg-xserver: Upgrade to 1.16.2.
Aníbal Limón [Thu, 4 Dec 2014 20:58:26 +0000 (14:58 -0600)]
xorg-xserver: Upgrade to 1.16.2.

Add PACKAGECONFIG systemd, xserver-xorg now depends in dbus because
adds support for systemd-logind, dbus is used by xserver-xorg to
communicate with systemd.

Add conditional enablement of systemd-logind if DISTRO_FEATURES contains
systemd.

Remove crosscompile, mips64-compile and present-module because are already
in upstream.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
10 years agomesa: Upgrade to 10.3.4.
Aníbal Limón [Thu, 4 Dec 2014 04:11:11 +0000 (22:11 -0600)]
mesa: Upgrade to 10.3.4.

Remove 0002-pipe_loader_sw-include-xlib_sw_winsys.h-only-when-HA,
0003-EGL-Mutate-NativeDisplayType-depending-on-config.patch and
0006-fix-out-of-tree-egl.patch are already in upstream.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
10 years agodtc: don't use autotools as this doesn't use autotools
Ross Burton [Fri, 5 Dec 2014 20:37:42 +0000 (20:37 +0000)]
dtc: don't use autotools as this doesn't use autotools

Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoqemu/libc-package: Fix qemu option handling
Richard Purdie [Thu, 4 Dec 2014 19:49:19 +0000 (19:49 +0000)]
qemu/libc-package: Fix qemu option handling

The 'overrides' here are PACKAGE_ARCH based and hence not overrides
as such and the _append wasn't working in many cases. This adjusts the
code to use PACKAGE_ARCH as the accessor and ensures the variables
work as expected. This fixes various segfaults and ensures postinsts
run at build time rather than on the target system.

The bug was introduced in http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=7efad8a1b56df6ee07c12ad360c0493d7b1d6d23.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agolibnewt: set CLEANBROKEN
Ross Burton [Fri, 5 Dec 2014 11:37:58 +0000 (11:37 +0000)]
libnewt: set CLEANBROKEN

Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agolibdrm: Upgrade to 2.4.58.
Aníbal Limón [Thu, 4 Dec 2014 03:55:32 +0000 (21:55 -0600)]
libdrm: Upgrade to 2.4.58.

Disable man pages creation because it needs to download docbook.xsl from
upstream site and sometimes can't (resource unavailable) and this cause
build fails.

Remove GNU_SOURCE_definition patch it's already integrated in upstream.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
10 years agobzip2: use subdir SRC_URI param instead of adding tasks
Ross Burton [Thu, 4 Dec 2014 16:26:17 +0000 (16:26 +0000)]
bzip2: use subdir SRC_URI param instead of adding tasks

Instead of adding new tasks to move files around, just use the subdir SRC_URI
parameter.

Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agotcmode-default.inc: use GCCVERSION for gcc-source
Koen Kooi [Thu, 4 Dec 2014 07:30:18 +0000 (08:30 +0100)]
tcmode-default.inc: use GCCVERSION for gcc-source

This was missing leading to gcc-source-<foo> being built when using gcc-cross-<bar> with GCCVERSION=bar.

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agodefault-distrovars: add gcc-source recipe to the GPLv3 whitelist
Ross Burton [Thu, 4 Dec 2014 15:20:53 +0000 (15:20 +0000)]
default-distrovars: add gcc-source recipe to the GPLv3 whitelist

gcc-source is a convenience recipe to save duplicate copies of the GCC source
tree and should be whitelisted for GPLv3 avoidance along with the rest of GCC.

Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agogcc: stub do_fetch instead of removing it
Ross Burton [Thu, 4 Dec 2014 15:13:25 +0000 (15:13 +0000)]
gcc: stub do_fetch instead of removing it

Whilst gcc doesn't have any source to fetch, it still needs a fetch task so that
a world fetch can run without errors.  So instead of deleting the fetch task,
stub it.

Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agocwautomacros: stub do_configure to avoid cleaning
Ross Burton [Thu, 4 Dec 2014 14:20:19 +0000 (14:20 +0000)]
cwautomacros: stub do_configure to avoid cleaning

cwuatomacros's build system doesn't have a clean target, so stub out
do_configure to a no-op.

Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agognome-doc-utils: set CLEANBROKEN
Ross Burton [Thu, 4 Dec 2014 14:20:01 +0000 (14:20 +0000)]
gnome-doc-utils: set CLEANBROKEN

Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoautotools.bbclass: respect CLEANBROKEN
Ross Burton [Thu, 4 Dec 2014 14:17:08 +0000 (14:17 +0000)]
autotools.bbclass: respect CLEANBROKEN

autotools.bbclass should respect CLEANBROKEN as it invokes 'make clean' on
configure.

Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agobase.bbclass: fix CLEANBROKEN logic
Ross Burton [Thu, 4 Dec 2014 14:14:57 +0000 (14:14 +0000)]
base.bbclass: fix CLEANBROKEN logic

The evalation order was incorrect in some situations (CLEANBROKEN=1 and
GNUmakefile exists) the clean would be executed incorrectly.

Add brackets to correct the logic.

Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agocoreutils-native: don't install groups
Wenzong Fan [Fri, 28 Nov 2014 07:59:54 +0000 (02:59 -0500)]
coreutils-native: don't install groups

This binary is provided by shadow-native nowadays. Fixes:

  ERROR: The recipe coreutils-native is trying to install files \
    into a shared area when those files already exist. \
    Those files and their manifest location are: \
      .../tmp/sysroots/x86_64-linux/usr/bin/groups \
    Matched in manifest-x86_64-shadow-native.populate_sysroot

To reproduce the errors:

  $ bitbake shadow-native && bitbake coreutils-native

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agogzip: fix MakeMaker issues with using wrong SHELL/GREP
Jackie Huang [Fri, 21 Nov 2014 09:50:57 +0000 (04:50 -0500)]
gzip: fix MakeMaker issues with using wrong SHELL/GREP

A set of substitution is being processed to all target scripts with sed by
replacing some key words with the detected values at configure time, this
is exactly not compliant with cross compling, and will cause missing path
errors at run time like:
"/usr/bin/zgrep: line 230: /usr/bin/grep: No such file or directory"

Fixed by removing unneeded substitution and using real runtime paths
instead.

Signed-off-by: Ming Liu <ming.liu@windriver.com>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agolzo: add debian patch for alignment issue
Saul Wold [Wed, 3 Dec 2014 22:51:58 +0000 (14:51 -0800)]
lzo: add debian patch for alignment issue

[YOCTO #6994]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>