busybox: fix mount issue

When the mount command is not given the filesystem type to mount, then
it will try all the known filesystems. However, when a filesystem is not
supported by the kernel, the mount function call will return ENODEV.

The following patch, ecd90bc6aa63da2aef2513ac090d4b426b2b719c,
introduced a problem because it bailed out on ENODEV too. Instead it should
have only bailed out on ENOMEDIUM.

[YOCTO #4308]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
package.bbclass: Fix populate_packages for glob expansion issues

If we put a valid glob like "*/foo/*" into FILES, populate_packages
breaks with a "file exists" message. This is because the glob expansion
does not have "./" prefix however there may already be an entry in
the seen list which does have such a prefix. The easiest/simplest fix
right now is to add the prefix if it doesn't exist which only happens
for certain globs.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
pcmciautils: Use pkgconfig to set udev variables correctly

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bluez4: Set udev variables using pkg-config

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
pulseaudio: Set udev variables using pkg-config

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
udev: Effectively revert the move to /sbin

This effectively reverts the changes made in b49ddeb11c0319b7ece278fd7cef6b0223114ca9
to move udev's libexecdir to sbin. The changes caused too many issues in
other places and were not well enough tested this close to a release.

Rather than use base_libdir, the nonarch version is used to try and give some
chance of multilib not being totally broken in the release.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
packagegroup: Add init-manager sanity check

Currently, you can set VIRTUAL-RUNTIME_init_manager to an init system that
isn't in DISTRO_FEATURES. This leads to head scratching over unbootable images.

This adds a sanity check which ensures more valid systems are built.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
alsa-utils: Use pkg-config instead of hardcoded udev paths

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
udev: remove explicit path to udevadm

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
systemd: fix out of tree builds

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

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
systemd: Effectively revert the move to /sbin

This effectively reverts the move systemd's libexecdir to /sbin.  This caused
too many issues in other places and was not well enough tested this close to
release.

Rather than use base_libdir, the nonarch version is used to try and give some
chance of multilib not being totally broken in the release.  Also some variables
are used that mirror the systemd build system to reduce the risk of using
variables that "work" in the general case but will break with multilib.

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

When using multilib this doesn't get caught by the default FILES_${PN}, so add
it.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
busybox: hard-code the syslog service file

Previously this was using ${PN}-syslog.service, which changes with multilib.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
systemd: fix -dbg package with multilib

When libdir isn't /lib the files that are in nonarch_base_libdir were being left
out of the -dbg package.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
util-linux: fix systemd service in multilib

Use ${PN} when specifing service files so that they continue to get packaged
with multilib.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
systemd: Fix udevd init script so sysvinit in systemd mode works

Commit http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=f76d4b3549ca220fa4bf84db2756ab45e11d06a3
moved volatiles handling for /run to the udev code only. This breaks
sysvinit+systemd combined systems when building sysvinit images.

This patch hacks the udevd init script in systemd to provide
the missing symlink allowing the sysvinit images built with udevd
from systemd to work correctly.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
build-appliance: Update revision to dylan release

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
gst-plugins-bad: Disable neon, its not on DEPENDS

Otherwise this setting "floats" and leads to non-determinstic builds.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
multilib: Ensure we map the USERADD_PACKAGES variable

If we don't do this, multilib packages don't have any code
added to the postinstalls to handle user additions.

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