]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
10 years agoalsa-utils: upgrade to 1.0.28
Cristian Iorga [Mon, 8 Sep 2014 11:58:38 +0000 (12:58 +0100)]
alsa-utils: upgrade to 1.0.28

Changelog:
http://www.alsa-project.org/main/index.php/Changes_v1.0.27.2_v1.0.28

0001-alsactl-don-t-let-systemd-unit-restore-the-volume-wh.patch updated.

(From OE-Core rev: 5a3331b7ee8bb565ebb3823fc23123120ccd653d)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosystemd: Adding RRECOMMENDS for os-release
Sujith H [Mon, 8 Sep 2014 11:58:37 +0000 (12:58 +0100)]
systemd: Adding RRECOMMENDS for os-release

Systemd depends on the os-release hence adding
RRECOMMENDS for the systemd package.

[ RB - updated for 216 ]

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Sujith H <Sujith_Haridasan@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoos-release: Adding a new recipe for operating system identification
Sujith H [Mon, 8 Sep 2014 11:58:36 +0000 (12:58 +0100)]
os-release: Adding a new recipe for operating system identification

The /etc/os-release will have the operating system identification data.
Tested on target with systemd enabled. Here is the sample file looks
in the file:

ID=poky-ivi-systemd
NAME=Yocto GENIVI Baseline (Poky/meta-ivi)
VERSION=6.0+snapshot-20140721 (daisy)
VERSION_ID=6.0+snapshot-20140721
PRETTY_NAME=Yocto GENIVI Baseline (Poky/meta-ivi) 6.0+snapshot-20140721 (daisy)

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Sujith H <Sujith_Haridasan@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopixman: upgrade to 0.32.6
Ross Burton [Mon, 8 Sep 2014 11:58:35 +0000 (12:58 +0100)]
pixman: upgrade to 0.32.6

Revert a patch to the MIPS-specific code that was causing compile failures.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogtk+3: update to 3.12.2
Marko Lindqvist [Mon, 8 Sep 2014 11:58:34 +0000 (12:58 +0100)]
gtk+3: update to 3.12.2

fix-build-when-wayland-backend-enabled.patch removed as the issue
is fixed in upstream.

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopango: update to 1.36.6
Marko Lindqvist [Mon, 8 Sep 2014 11:58:33 +0000 (12:58 +0100)]
pango: update to 1.36.6

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibpng: update to 1.6.13
Marko Lindqvist [Mon, 8 Sep 2014 11:58:32 +0000 (12:58 +0100)]
libpng: update to 1.6.13

License terms have not changed. In case of LICENSE and png.h lines 0-15
the version numbers and release dates have changed. In case of png.h lines
229-343 the text has not changed at all, but old line numbers were not
pointing to correctly to the licensing terms segment.

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibpng: drop unnecessary automake requirement lowering patch
Marko Lindqvist [Mon, 8 Sep 2014 11:58:31 +0000 (12:58 +0100)]
libpng: drop unnecessary automake requirement lowering patch

Automake recipe provides automake 1.14.1 anyway

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogtk+2: update to 2.24.24
Marko Lindqvist [Mon, 8 Sep 2014 11:58:30 +0000 (12:58 +0100)]
gtk+2: update to 2.24.24

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibxkbcommon: Add missing dependency on xkeyboard-config
Mikhail Durnev [Mon, 8 Sep 2014 11:58:29 +0000 (12:58 +0100)]
libxkbcommon: Add missing dependency on xkeyboard-config

libxkbcommon depends on xkeyboard-config

Signed-off-by: Mikhail Durnev <mikhail_durnev@mentor.com>
Signed-off-by: Abhijit Potnis <abhijit_potnis@mentor.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosstate: Add extra intercept functions SSTATEPOSTCREATEFUNCS
Hongxu Jia [Mon, 8 Sep 2014 11:58:20 +0000 (12:58 +0100)]
sstate: Add extra intercept functions SSTATEPOSTCREATEFUNCS

In some cases we do either need to add extra sstate manipulation
functions, or change the existing modification functions. This patch
parametrizes it to SSTATEPOSTCREATEFUNCS after sstate_create_package

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopackage_manager.py: use RPM_PREFER_ELF_ARCH
Robert Yang [Mon, 8 Sep 2014 11:58:26 +0000 (12:58 +0100)]
package_manager.py: use RPM_PREFER_ELF_ARCH

Use RPM_PREFER_ELF_ARCH to instead of RPM_PREFER_COLOR as rpm upstream
suggested, and use "4" to instead of "3" since it is a bit mask (not
enumeration), so we need "4" here.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoperf: add libunwind support
Chong Lu [Mon, 8 Sep 2014 11:58:25 +0000 (12:58 +0100)]
perf: add libunwind support

Add a new feature named 'perf-libunwind'. Adding this support to perf allows it
to do stack traces on ARM - thumb2 and MIPS targets. PERF_FEATURES variable in
perf-features.inc will enable the perf-libunwind.

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibunwind: add recipes
Chong Lu [Mon, 8 Sep 2014 11:58:24 +0000 (12:58 +0100)]
libunwind: add recipes

Add libunwind from meta-oe to oe-core, since perf depends on it.

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolighttpd: install config file without execute permissions
Dan McGregor [Mon, 8 Sep 2014 11:58:23 +0000 (12:58 +0100)]
lighttpd: install config file without execute permissions

Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosudo: make sudoers a config file
Dan McGregor [Mon, 8 Sep 2014 11:58:22 +0000 (12:58 +0100)]
sudo: make sudoers a config file

Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoinsane.bbclass: add QA check: file-rdeps
Robert Yang [Mon, 8 Sep 2014 11:58:21 +0000 (12:58 +0100)]
insane.bbclass: add QA check: file-rdeps

The ipk or deb can't depend on file such as "/bin/bash" or
"/usr/bin/perl", so it knows nothing about the pkg depends bash or perl,
thus there would be dependencies problems when we run "apt-get
install/remove <pkg>" on the target, this check can help us find the
issues and then fix them manually.

* Benefits:
  - Help to fix file rdepends issues for ipk and deb
  - Help to fix abnormal rdepends.
  - Help to check whether the rdepends is OK or not after build each
    recipe (don't have to install to the image), for example, a recipe may
    generate 10 binary packages, only a part of them will be installed to
    the image by default, we can know whether the rdepends are OK or
    not for the ones which are installed, but can't know the ones which
    are not installed, this patch can help check all the 10 binary
    packages' rdepends.

* Basic designs:
  - Get all the RDEPENDS on the chain.

  - Get the pkg's FILERPROVIDES from oe.packagedata.read_subpkgdata()
    and save to set filerdepends.

  - Get each RPDEPENDS' FILERPROVIDES, RPROVIDES and FILERPROVIDESFLIST,
    and save to set rdep_rprovides.

  - Do the set "filerdepends -= rdep_rprovides" and QA issue if
    filerdepends is not null.

[YOCTO #1662]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopackage_manager: RpmPkgsList: determine rpm version
Kévin THIERRY [Mon, 8 Sep 2014 11:58:19 +0000 (12:58 +0100)]
package_manager: RpmPkgsList: determine rpm version

Do not set the rpm_version to 5 if it is not provided, instead
determine the real rpm version.

(From OE-Core rev: 48beaee2e5b2b4ae35c596c19f8a38e0ff4427e9)

Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoalsa-lib: libasound should runtime depends on alsa-conf
Zidan Wang [Wed, 3 Sep 2014 09:50:54 +0000 (17:50 +0800)]
alsa-lib: libasound should runtime depends on alsa-conf

Make libasound runtime depends on alsa-conf to install alsa-conf to rootfs.

Signed-off-by: Zidan Wang <b50113@freescale.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agorpmresolve: ignore null requires
Robert Yang [Wed, 3 Sep 2014 09:04:30 +0000 (02:04 -0700)]
rpmresolve: ignore null requires

It is not a problem if a package requires nothing (similar to RDEPENDS
is null), for example, these packages depends on nothing:

[snip]
alsa-conf-base
base-files
eglibc-binary-localedata-en-us
xserver-xf86-config
[snip]

The rpmresolve-native's algorithm is:
===fake code
for pkg in pkg1, pkg2, pkg3:
    rc = get_req(pkg)
return rc
===fake code

Suppose of the 3 pkgs requires null:
- We are lukcy if pkg1 or pkg2 is null, nothing happend.
- We are *not* lukcy if pkg3 is null, and will get the error when "INHERIT +=
  'buildhistory'":
  ERROR: Cannot get the package dependencies. Command
  '/path/to/x86_64-linux/usr/bin/rpmresolve -t /path/to/var/lib/rpm' returned 1:

This patch fixes the problem.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosystemtap: Cross compilation fix
Mikhail Durnev [Wed, 3 Sep 2014 08:01:50 +0000 (13:01 +0500)]
systemtap: Cross compilation fix

This is a cross compilation fix. It allows systemtap to find the
kernel map file in the right place, i.e. in the kernel build tree.
Without this fix it takes a map file from the build host, if available.

Signed-off-by: Mikhail Durnev <mikhail_durnev@mentor.com>
Signed-off-by: Muzaffar Mahmood <muzaffar_mahmood@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosystemtap: Fixed probe syscall.sendfile failure
Mikhail Durnev [Wed, 3 Sep 2014 08:14:30 +0000 (13:14 +0500)]
systemtap: Fixed probe syscall.sendfile failure

Marked __syscall.compat_sendfile as optional

Signed-off-by: Mikhail Durnev <mikhail_durnev@mentor.com>
Signed-off-by: Muzaffar Mahmood <muzaffar_mahmood@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agouseradd-staticids.bbclass: Fix for Bug 6633
Fabrice Coulon [Tue, 2 Sep 2014 09:11:16 +0000 (11:11 +0200)]
useradd-staticids.bbclass: Fix for Bug 6633

When using the useradd-staticids.bbclass under meta/classes,
this error occurs:
"<username> - <username>: Username  does not have a static uid defined."
There was a problem with the regular expression for parsing parameters,
it was sometimes returning an empty string.

I have fixed this by skipping empty strings.

Signed-off-by: Fabrice Coulon <fabrice@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopackage_rpm: Add optional improved directory handling
Ronan Le Martret [Fri, 29 Aug 2014 17:39:12 +0000 (18:39 +0100)]
package_rpm: Add optional improved directory handling

During spec generation, ideally directories should not be auto
packaged under the %file section of rpm packages but take ownership of
specific directories.

* packages only empty directories or explict directory.
   See:
       - http://www.rpm.org/max-rpm/s1-rpm-inside-files-list-directives.html
       - "The %dir Directive"

* This will prevent the overlapping of security permission.
   For example, in Tizen the directory /etc have smack label 'System::Shared'
   So Only one package should own and set the label of /etc to prevent
   the overwriting of the smack label.

Existing behaviour is maintained if DIRFILES is not set. If it is set,
the modified behaviour is used. If can be set to an empty value by
core recipes to trigger the modified behaviour.

[RP: Modified to allow optional usage of DIRFILES]
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosystemd: enable forwarding messages to syslog daemon
Chen Qi [Wed, 3 Sep 2014 07:09:22 +0000 (15:09 +0800)]
systemd: enable forwarding messages to syslog daemon

In systemd_216, journald by default doesn't forward messages to
syslog daemon. This breaks the oeqa testing cases. So we enable
forwarding the messages for now.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agorun-postinsts.service: remove redundant line
Chen Qi [Wed, 3 Sep 2014 07:09:21 +0000 (15:09 +0800)]
run-postinsts.service: remove redundant line

The basic.target itself requires sysinit.target, so there's no
need to write this redundant line in the run-postinsts unit file.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agomodutils-initscripts: mask modutils in case of systemd
Chen Qi [Wed, 3 Sep 2014 07:09:20 +0000 (15:09 +0800)]
modutils-initscripts: mask modutils in case of systemd

We need to prevent the init script from running via systemd because
its functionality has been implemented interanlly in systemd.

In a systemd system, we can add configuration files under
/etc/modules-load.d/ to make things work.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopsplash: mask psplash in case of systemd
Chen Qi [Wed, 3 Sep 2014 07:09:19 +0000 (15:09 +0800)]
psplash: mask psplash in case of systemd

We need to prevent the psplash init script from running via systemd
because the script is supposed to be used by sysvinit system and it
doesn't have any real effect in a systemd based system.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agov86d: mask fbsetup when necessary
Chen Qi [Wed, 3 Sep 2014 07:09:18 +0000 (15:09 +0800)]
v86d: mask fbsetup when necessary

When 'sysvinit' and 'systemd' are both in DISTRO_FEATURES, we need
to prevent the init script from running via systemd.
This is because that the functionality has been implemented internally
in systemd.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokeymaps: mask keymap when necessary
Chen Qi [Wed, 3 Sep 2014 07:09:17 +0000 (15:09 +0800)]
keymaps: mask keymap when necessary

When 'sysvinit' and 'systemd' are both in DISTRO_FEATURES, we need
to prevent the init script from running via systemd.
This is because that the functionality of the init script has implemented
in systemd internally.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoinitscripts: mask several init scripts
Chen Qi [Wed, 3 Sep 2014 07:09:16 +0000 (15:09 +0800)]
initscripts: mask several init scripts

We now support executing scripts under /etc/rcS.d. So we need to
mask several more init scripts here to prevent them from running
at boot time.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopackagegroup-core-boot: conditionally rdepend on VIRTUAL-RUNTIME_initscripts
Chen Qi [Wed, 3 Sep 2014 07:09:15 +0000 (15:09 +0800)]
packagegroup-core-boot: conditionally rdepend on VIRTUAL-RUNTIME_initscripts

If we are building a systemd image with 'sysvinit' not in DISTRO_FEATURES,
the initscripts should not be installed into the image, as they are useless.
What's more, we as now support executing scripts under /etc/rcS.d, the
boot time will be increased by these scripts as the systemd will try to
translate them into temporary service files.

These init scritps are actually needed only when 'sysvinit' is in
DISTRO_FEATURES.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokeymaps: remove dependency on initscripts
Chen Qi [Wed, 3 Sep 2014 07:09:14 +0000 (15:09 +0800)]
keymaps: remove dependency on initscripts

The 'keymaps' package actually doesn't have runtime dependency on
VIRTUAL-RUNTIME_initscripts, thus removing this dependency.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoat: inherit update-rc.d to handle sysv init script
Chen Qi [Wed, 3 Sep 2014 07:09:13 +0000 (15:09 +0800)]
at: inherit update-rc.d to handle sysv init script

Inherit update-rc.d.bbclass to handle sysv init script.
Also make the 'at' daemon start in runlevel 2,3,4,5 instead of S.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoat: remove dependency on initscripts
Chen Qi [Wed, 3 Sep 2014 07:09:12 +0000 (15:09 +0800)]
at: remove dependency on initscripts

The 'at' package actually doesn't have runtime dependency on
VIRTUAL-RUNTIME_initscripts, so remove this dependency.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agorpcbind: avoid entering failed status after stopping daemon
Chen Qi [Wed, 3 Sep 2014 07:09:11 +0000 (15:09 +0800)]
rpcbind: avoid entering failed status after stopping daemon

Exiting with '2' is actually expected with rpcbind, because it catches
SIGTERM and exits with '2' explicitly.

The related code is as follows.

(void) signal(SIGTERM, terminate);

/*
 * Catch the signal and die
 */
static void
terminate(int dummy /*__unused*/)
{
        close(rpcbindlockfd);
        unlink(_PATH_RPCBINDSOCK);
        unlink(RPCBINDDLOCK);
        syslog(LOG_ERR,
                "rpcbind terminating on signal. Restart with \"rpcbind -w\"");
        write_warmstart(); /* Dump yourself */
        exit(2);
}

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocups: add systemd support
Chen Qi [Wed, 3 Sep 2014 07:09:10 +0000 (15:09 +0800)]
cups: add systemd support

Add systemd unit files.

Also remove sysvinit related files if 'sysvinit' is not in
DISTRO_FEATURES.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocups: make cups daemon start correctly
In Long [Wed, 3 Sep 2014 07:09:09 +0000 (15:09 +0800)]
cups: make cups daemon start correctly

The cups daemon needs the lpadmin group to start correctly.

Also add 'procps' to RDEPENDS if 'sysvinit' is in DISTRO_FEATURES,
because the init script shipped with cups needs it.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoacpid: upgrade to 2.0.22 and add systemd support
Chen Qi [Wed, 3 Sep 2014 07:09:08 +0000 (15:09 +0800)]
acpid: upgrade to 2.0.22 and add systemd support

For acpid needs to upgrade to work correctly with the new kernel.
The new version now uses autotools.

Also add systemd unit file.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodhcp: add systemd service files
Chen Qi [Wed, 3 Sep 2014 07:09:07 +0000 (15:09 +0800)]
dhcp: add systemd service files

Add dhcpd.service and dhcrelay.service to support systemd systems.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosystemd: add support for executing scripts under /etc/rcS.d
Chen Qi [Wed, 3 Sep 2014 07:09:06 +0000 (15:09 +0800)]
systemd: add support for executing scripts under /etc/rcS.d

This patch adds support for systemd to execute scripts under /etc/rcS.d.

To be compitable, all services translated from /etc/rcS.d/ scripts would
run before services translated from /etc/rcN.d scripts.

[YOCTO #5159]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agov86d: set INHIBIT_UPDATERCD_BBCLASS if 'sysvinit' not in DISTRO_FEATURES
Chen Qi [Wed, 3 Sep 2014 07:09:05 +0000 (15:09 +0800)]
v86d: set INHIBIT_UPDATERCD_BBCLASS if 'sysvinit' not in DISTRO_FEATURES

Set INHIBIT_UPDATERCD_BBCLASS to "1" if 'sysvinit' is not in DISTRO_FEATURES.

The functionality of the init script 'fbsetup' is implemented internally in
systemd. So fbsetup is not installed if 'sysvinit' is in DISTRO_FEATURES.

That's why we need to set INHIBIT_UPDATERCD_BBCLASS to "1" to avoid
generation of update-rc.d related preinst/postinst scripts.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosystemd: add kbd-keymaps to RRECOMMENDS of systemd-vconsole-setup
Chen Qi [Wed, 3 Sep 2014 07:09:04 +0000 (15:09 +0800)]
systemd: add kbd-keymaps to RRECOMMENDS of systemd-vconsole-setup

systemd-vconsole-setup.service not only configures font but also
keymaps.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokeymaps: fix for systemd
Chen Qi [Wed, 3 Sep 2014 07:09:03 +0000 (15:09 +0800)]
keymaps: fix for systemd

Only install 'keymap.sh' script if 'sysvinit' is in DISTRO_FEATURES.
This is because systemd internally provides a mechanism to implement
the functionality this script tries to implement. Please see
systemd-vconsole-setup.service for more details.

Also we set 'INHIBIT_UPDATERCD_BBCLASS' to "1" if 'sysvinit' is not
in DISTRO_FEATURES.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoalsa-state: fix pkg_postinst and set INHIBIT_UPDATERCD_BBCLASS
Chen Qi [Wed, 3 Sep 2014 07:09:02 +0000 (15:09 +0800)]
alsa-state: fix pkg_postinst and set INHIBIT_UPDATERCD_BBCLASS

As alsa-state inherits update-rc.d, the update-rc.d part inpostinst script
has already been handled in update-rc.d.bbclass.

Besides, we need to set INHIBIT_UPDATERCD_BBCLASS to "1" if 'sysvinit'
is not in DISTRO_FEATURES. This is because the init script is not installed
in such situation, adding update-rc.d part in the preinst/postinst scripts
just makes no sense.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoupdate-rc.d: fix logic in populate_packages_updatercd
Chen Qi [Wed, 3 Sep 2014 07:09:01 +0000 (15:09 +0800)]
update-rc.d: fix logic in populate_packages_updatercd

The 'and' logic for the check is wrong. To make things clear, please
see the example below.

Say that we have a recipe A, which has a sysv-init style init script named
initA and no corresponding service file. The recipe inherits update-rc.d,
but it doesn't inherit systemd.bbclass. The DISTRO_FEATURES has 'systemd'
inside it, but it doesn't have 'sysvinit'. Now if we build an image, with
the 'and' logic in the check, the symlinks for initA would not be installed
into /etc/rc?.d directory.
This is incorrect. Because there's no corresponding service. The symlinks
in /etc/rc?.d/ should be created so that the service would be correctly
started at boot time.

The logic should really be 'or' in the check. This is actually what the code
was when it was originally written.

Several different situations are listed below to prove the correctness of the
'or' logic.

If 'sysvinit' is in DISTRO_FEATURES, the initA script would always be installed
with corresponding preisnt/postinst generated and added.

If 'sysvinit' is not in DISTRO_FEATURES, we have three situations.
1) A has initA and A.service.
   In such situation, systemd.bbclass would set INHIBIT_UPDATERCD_BBCLASS,
   so no preinst/postinst about update-rc.d would be added and the symlinks
   for initA would not be created.

2) A has initA, and the functionality of initA is not implemented internally
   in systemd.
   In such situation, symlinks for initA would be installed.

3) A has initA, and the functionality of initA is implemented internally in
   systemd or in some other recipe.
   Examples for such situation are alsa-state and keymaps in OE.
   In such situation, we need to set INHIBIT_UPDATERCD_BBCLASS in the recipe
   so that there would be no preinst/postinst scripts about update-rc.d added.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosystemd: make runlevel work in non-runlevel targets
Chen Qi [Wed, 3 Sep 2014 07:09:00 +0000 (15:09 +0800)]
systemd: make runlevel work in non-runlevel targets

Previously, after booting into the targets like multi-user.target or
graphical.target, the output of `runlevel' command is 'unknown'.

This is confusing for users. Normally, we would expect mutli-user.target
would have a `runlevel' output of 'N 3'.
This is the behaviour of Fedora20.

This patch installs symlinks for systemd-update-utmp-runlevel.service
in do_install task to fix the above problem.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosystemd: add PACKAGECONFIG for 'journal-upload'
Chen Qi [Wed, 3 Sep 2014 07:08:59 +0000 (15:08 +0800)]
systemd: add PACKAGECONFIG for 'journal-upload'

Add PACKAGECONFIG for 'journal-upload' and disable it by default.
Once enabled, it will add 'curl' to its dependency.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosystemd: upgrade to 216
Chen Qi [Wed, 3 Sep 2014 07:08:58 +0000 (15:08 +0800)]
systemd: upgrade to 216

Upgrade systemd from 213 to 216.

systemd-older-kernel.patch is removed as it's fixed in 216.

0001-uClibc-doesn-t-implement-pwritev-preadv.patch is removed because
the file it patches has been removed from the project.

0001-util-Including-missing.h-to-get-MAX_HANDLE_SZ.patch is removed because
it has been merged.

0001-missing.h-add-fake-__NR_memfd_create-for-MIPS.patch is backported
to fix compilation error for mips.

Below are the required kernel versions for systemd 216.
        Linux kernel >= 3.0
        Linux kernel >= 3.3 for loop device partition support features with nspawn
        Linux kernel >= 3.8 for Smack support

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoqemu-native: only depends on libxext-native when x11
Robert Yang [Tue, 2 Sep 2014 13:29:13 +0000 (06:29 -0700)]
qemu-native: only depends on libxext-native when x11

Fixed when build without x11 in DISTRO_FEATURES:
ERROR: libxext-native was skipped: missing required distro feature 'x11' (not in DISTRO_FEATURES)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopiglit: add bash to RDEPENDS_piglit
Robert Yang [Tue, 2 Sep 2014 09:41:49 +0000 (02:41 -0700)]
piglit: add bash to RDEPENDS_piglit

Bash:
piglit/usr/lib/piglit/tests/asmparsertest/make_test_list.sh:#!/bin/bash
piglit/usr/lib/piglit/tests/asmparsertest/vp-tex.sh:#!/bin/bash
piglit/usr/lib/piglit/tests/spec/glsl-1.10/variable-index-read.sh:#!/bin/bash
piglit/usr/lib/piglit/tests/spec/glsl-1.10/variable-index-write.sh:#!/bin/bash
piglit/usr/lib/piglit/tests/spec/arb_shader_texture_lod/compiler/make_tex_lod_tests.sh:#!/bin/bash
piglit/usr/lib/piglit/tests/spec/glsl-1.20/execution/outerProduct-const.sh:#!/bin/bash
piglit/usr/lib/piglit/tests/spec/glsl-1.20/execution/outerProduct.sh:#!/bin/bash
piglit/usr/lib/piglit/tests/spec/glsl-1.20/compiler/built-in-functions/outerProduct-invalid-parameters.sh:#!/bin/bash
piglit/usr/lib/piglit/tests/glslparsertest/glsl2/make_tex_lod_tests.sh:#!/bin/bash
piglit/usr/lib/piglit/tests/glslparsertest/glsl2/make_tex_rect_tests.sh:#!/bin/bash

The bash scripts are in the tests directory, we had planned to move the
tests into the ptest pkg, but that would make piglit unusable without
installing piglit-ptest.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoscripts/contrib/build-perf-test: Update eglibc -> glibc
Richard Purdie [Tue, 2 Sep 2014 08:50:31 +0000 (09:50 +0100)]
scripts/contrib/build-perf-test: Update eglibc -> glibc

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoxserver-nodm-init: Only start in runlevel 5
Dan McGregor [Fri, 29 Aug 2014 21:15:28 +0000 (15:15 -0600)]
xserver-nodm-init: Only start in runlevel 5

Runlevel 3 is often multi-user without X, so don't start the X
server in runlevel 3. This allows one to start up a machine without
X running from the bootloader.

Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agorpcbind: Make user's home directory /
Dan McGregor [Fri, 29 Aug 2014 21:15:15 +0000 (15:15 -0600)]
rpcbind: Make user's home directory /

Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoclasses/compress_doc.bbclass: compress man/info pages
Hongxu Jia [Mon, 1 Sep 2014 03:37:29 +0000 (11:37 +0800)]
classes/compress_doc.bbclass: compress man/info pages

A distribution compression policy should be established, and used by all
packages. It compressed man pages in ${mandir} and info pages in ${infodir}

1. The doc will be compressed to gz format by default, which is configured
in ${DOC_COMPRESS}

2. It will automatically correct the compressed doc which is not
in ${DOC_COMPRESS} but in ${DOC_COMPRESS_LIST} to the format
of ${DOC_COMPRESS} policy

3. It is easy to add a new type compression by editing
local.conf, such as:
...
DOC_COMPRESS_LIST_append = ' abc'
DOC_COMPRESS = 'abc'
DOC_COMPRESS_CMD[abc] = 'abc compress cmd ***'
DOC_DECOMPRESS_CMD[abc] = 'abc decompress cmd ***'
...

[YOCTO #1238]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoperf.bb: fix multilib build
Robert Yang [Tue, 12 Aug 2014 11:10:19 +0000 (04:10 -0700)]
perf.bb: fix multilib build

Fixed:
$ bitbake perf lib32-perf
ERROR: QA Issue: lib32-perf: Files/directories were installed but not shipped
  /usr/lib64
  /usr/lib64/traceevent
  /usr/lib64/traceevent/plugins
  /usr/lib64/traceevent/plugins/plugin_function.so
  /usr/lib64/traceevent/plugins/plugin_scsi.so
  /usr/lib64/traceevent/plugins/plugin_hrtimer.so
  /usr/lib64/traceevent/plugins/plugin_kmem.so
  /usr/lib64/traceevent/plugins/plugin_jbd2.so
  /usr/lib64/traceevent/plugins/plugin_xen.so
  /usr/lib64/traceevent/plugins/plugin_mac80211.so
  /usr/lib64/traceevent/plugins/plugin_cfg80211.so
  /usr/lib64/traceevent/plugins/plugin_sched_switch.so
  /usr/lib64/traceevent/plugins/plugin_kvm.so [installed-vs-shipped]

The perf.do_configure edits kernel's
${STAGING_KERNEL_DIR}/tools/perf/config/Makefile, there would be
problems since kernel doesn't have multilib, and the build result is
undetermined.

Previously, the sed command changed libdir to /usr/lib64 (or 32) in the
Makefile, so the build result was different if we build perf (64) first
or lib32-perf first.

Use the weak assignment "libdir ?=" to instead of "libdir =" will fix
the problem since the multilib builds are in different processes, and
they won't affect each other any more.

The sed command will match both $(prefix)/$(lib) and $(prefix)/lib since
the Makefile may has been modified before this patch.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopango / ptest: clean CFLAGS for host binary
Wenzong Fan [Tue, 2 Sep 2014 05:53:40 +0000 (01:53 -0400)]
pango / ptest: clean CFLAGS for host binary

The binary gen-all-unicode needs to be compiled for the host
architecture, the CFLAGS passed to target system could cause
build issues for it.

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoscripts/create-recipe: minor fixes
Yi Zhao [Tue, 2 Sep 2014 05:47:42 +0000 (13:47 +0800)]
scripts/create-recipe: minor fixes

Fixed:
- Remove PR. We don't need the "PR = r0" in the bb file.
- Function length can't get the array's size correctly.
  Should use function scalar.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopackage_manager: Add rpm v4 support
Richard Purdie [Fri, 29 Aug 2014 15:25:15 +0000 (15:25 +0000)]
package_manager: Add rpm v4 support

Currently the package manager code only supports rpm v5. To be useful outside
of OE or with OE layers using v4, it makes sense to add in rpm v4 support. This
takes a patch from "Bartosh, Eduard" <eduard.bartosh@intel.com> and enhances
it to also include versions of the workarounds from poky-eurogiciel to
allow rpm v4 usage with the class for image construction.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopackage_rpm: Add builddir macro to define source directory
Richard Purdie [Fri, 29 Aug 2014 16:56:27 +0000 (16:56 +0000)]
package_rpm: Add builddir macro to define source directory

This allows its usage in other RPM macros so files in ${S} can be found.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopackage_rpm: Add custom extension support for spec generation.
Richard Purdie [Mon, 1 Sep 2014 16:32:26 +0000 (17:32 +0100)]
package_rpm: Add custom extension support for spec generation.

Add hooks to allow customisation of the rpm spec files. Since python functions
aren't visible in the data store, one variable is used to trigger the call to
a separately named function. A dummy function is not provided since this then
triggers various class ordering complexities which are best avoided.

Ultimately this will be replaced by a refactor of the code to generate the
spec file using a python class.

This allows the tizen layer to add hooks for the security manifests for
example.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolz4: update to version 122
Armin Kuster [Mon, 1 Sep 2014 05:22:58 +0000 (22:22 -0700)]
lz4: update to version 122

Makefile md5sum changed its is where they bump the version.

r122 fixes:
Fix : AIX & AIX64 support (SamG)
Fix : mips 64-bits support (lew van)
Added : Examples directory, using code examples from Takayuki Matsuoka
Updated : Framing specification, to v1.4.1
Updated : xxHash, to r36

r121 fixes:
Fix : make install for OS-X and BSD, thanks to Takayuki Matsuoka
Added : make install for kFreeBSD and Hurd (Nobuhiro Iwamatsu)
Fix : LZ4 HC streaming bug

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopython-numpy: Fix build for mips64
Khem Raj [Fri, 29 Aug 2014 02:52:21 +0000 (19:52 -0700)]
python-numpy: Fix build for mips64

Add missing mips64 specific config files

Signed-off-by: Khem Raj <raj.khem@gmail.com>
10 years agogrub: Replace _BSD_SOURCE macro with _DEFAULT_SOURCE
Khem Raj [Fri, 29 Aug 2014 02:35:07 +0000 (19:35 -0700)]
grub: Replace _BSD_SOURCE macro with _DEFAULT_SOURCE

This is needed with glibc 2.20 since _BSD_SOURCE
macro is gone

Signed-off-by: Khem Raj <raj.khem@gmail.com>
10 years agoxf86-video-intel/xf86-video-omapfb: Fix build with glibc 2.20
Khem Raj [Fri, 29 Aug 2014 02:08:05 +0000 (19:08 -0700)]
xf86-video-intel/xf86-video-omapfb: Fix build with glibc 2.20

include xorg-xserver.h

Signed-off-by: Khem Raj <raj.khem@gmail.com>
10 years agoxf86-input-synaptics/xf86-input-vmmouse: Fix build with glibc 2.20
Khem Raj [Fri, 29 Aug 2014 01:43:54 +0000 (18:43 -0700)]
xf86-input-synaptics/xf86-input-vmmouse: Fix build with glibc 2.20

Backport the upstream patches needed for them to work with glibc 2.20

Signed-off-by: Khem Raj <raj.khem@gmail.com>
10 years agobitbake.conf: Use 2.6.32 for oldest supported kernel
Khem Raj [Thu, 28 Aug 2014 07:55:59 +0000 (00:55 -0700)]
bitbake.conf: Use 2.6.32 for oldest supported kernel

glibc 2.20+ wont support any older than that

Signed-off-by: Khem Raj <raj.khem@gmail.com>
10 years agorecipes: Remove references to eglibc
Khem Raj [Thu, 28 Aug 2014 06:13:57 +0000 (06:13 +0000)]
recipes: Remove references to eglibc

change use of eglibc related variabled to glibc equivalents

Signed-off-by: Khem Raj <raj.khem@gmail.com>
10 years agooeqa: sstatetests should now look for glibc-initial
Khem Raj [Thu, 28 Aug 2014 06:12:13 +0000 (06:12 +0000)]
oeqa: sstatetests should now look for glibc-initial

Signed-off-by: Khem Raj <raj.khem@gmail.com>
10 years agoimage-swab.bbclass: Account for eglibc -> glibc move
Khem Raj [Thu, 28 Aug 2014 06:11:36 +0000 (06:11 +0000)]
image-swab.bbclass: Account for eglibc -> glibc move

Signed-off-by: Khem Raj <raj.khem@gmail.com>
10 years agoconf: Account for eglibc->glibc move
Khem Raj [Thu, 28 Aug 2014 06:10:13 +0000 (06:10 +0000)]
conf: Account for eglibc->glibc move

Change references in documentation appropriately

Signed-off-by: Khem Raj <raj.khem@gmail.com>
10 years agodistro: TCLIBC now defines glibc instead of eglibc
Khem Raj [Thu, 28 Aug 2014 06:08:18 +0000 (06:08 +0000)]
distro: TCLIBC now defines glibc instead of eglibc

Adjust naming conventions to reflect eglibc->glibc move

Signed-off-by: Khem Raj <raj.khem@gmail.com>
10 years agoglibc: Migrate eglibc 2.19 -> glibc 2.20
Khem Raj [Thu, 28 Aug 2014 06:00:54 +0000 (06:00 +0000)]
glibc: Migrate eglibc 2.19 -> glibc 2.20

- This is a big swoop change where we switch to using glibc
- option-groups are forward ported
- cross-localedef is extracted out from eglibc and hosted
  at github.com/kraj/localedef, its used for cross-localedef
  recipe
- Other non ported patches from eglibc are forward ported
  ppc8xx cache line workaround
  SH fpcr values
  dynamic resolver
  installing PIC archives is there but is not applied
  libc header bootstrap

- Delete eglibc recipes we moved back to using glibc now
- Fix ppc/e500 build

- Fix crypt module build when options are used
- Fix fnmatch build when options OPTION_EGLIBC_LOCALE_CODE is unset
  HAVE_MBSTATE_T and HAVE_MBSRTOWCS should be defined conditionally
  based upon OPTION_EGLIBC_LOCALE_CODE being set/unset
- Move the ports/ patches to relevant files now that ports is gone

Signed-off-by: Khem Raj <raj.khem@gmail.com>
10 years agoperl: add explicit configs for Time-HiRes
Jackie Huang [Mon, 1 Sep 2014 07:04:44 +0000 (03:04 -0400)]
perl: add explicit configs for Time-HiRes

The compilation of Time-HiRes tries to compile and run the testing
program but definitely fails since we are cross compiling:
Looking for clock_gettime()... ./tmp26733: ./tmp26733: cannot execute binary file
Looking for clock_getres()... ./tmp26733: ./tmp26733: cannot execute binary file

so add explicit configs to avoid the auto detecting.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoghostscript: Don't build-depend on libgcrypt for the local cups
Jackie Huang [Mon, 1 Sep 2014 08:59:56 +0000 (04:59 -0400)]
ghostscript: Don't build-depend on libgcrypt for the local cups

Backported for the ghostscript supplied cups code from
http://www.cups.org/strfiles.php/3308/cups-no-gcrypt.patch

This addresses the cryto dependency seen during build.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agonative.bbclass: deltask package_qa
Robert Yang [Mon, 1 Sep 2014 14:34:36 +0000 (07:34 -0700)]
native.bbclass: deltask package_qa

The native recipe doesn't need package_qa, and it has a race issue with
do_unpack which requires the clean dir of ${S}, then causes error:

NOTE: recipe opkg-utils-native-0.1.8+gitAUTOINC+eae0d8fa44-r0: task do_package_qa: Failed
ERROR: Task 283 (virtual:native:/path/to/opkg-utils_git.bb, do_package_qa) failed with exit code '1'

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-yocto: ensure that recipe specific defaults take precedence
Bruce Ashfield [Mon, 1 Sep 2014 02:33:44 +0000 (22:33 -0400)]
linux-yocto: ensure that recipe specific defaults take precedence

In order to make KBRANCH assignments more flexible and easy to override the
default in each recipe as changed to a conditional assignment. But the
common include file, sets its own branch default to master.

This results in the recipes not overriding KBRANCH and master always being
used.

By putting the include after the default assignment, we now get the proper
default branch.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokernel-yocto: replace --is-ancestor with basic git porcelain commands
Bruce Ashfield [Sun, 31 Aug 2014 05:18:24 +0000 (01:18 -0400)]
kernel-yocto: replace --is-ancestor with basic git porcelain commands

--is-ancestor is a relatively new git option [commit 5907cda1, Aug 30 2012].
To support build machines with older versions of git installed, we can use
the basic porcelain commands to acheive the same check.

merge-base: "--is-ancestor A B" can be replaced with:

    if test "$(git rev-parse --verify A)" = "$(git merge-base A B)"

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-yocto/3.4: remove 3.4 name recipes
Bruce Ashfield [Thu, 28 Aug 2014 14:08:18 +0000 (10:08 -0400)]
linux-yocto/3.4: remove 3.4 name recipes

Removing the 3.4 recipes, since support has not shifted to 3.10 and
3.14 for LTSI kernel versions, with 3.16+ as the development version.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
10 years agolinux-yocto/3.14: update to v3.14.17
Bruce Ashfield [Wed, 27 Aug 2014 17:11:05 +0000 (13:11 -0400)]
linux-yocto/3.14: update to v3.14.17

Updating the 3.14 repository to the latest korg stable udpate.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
10 years agolinux-yocto/3.14: vhost, vxland, openvswitch and block/bfq updates
Bruce Ashfield [Mon, 25 Aug 2014 15:20:22 +0000 (11:20 -0400)]
linux-yocto/3.14: vhost, vxland, openvswitch and block/bfq updates

Updating the linux-yocto/3.14 SRCREVs to integrate more feature additions
and backports to the LTSI kernel base:

   42477caf6bfd block, bfq: add Early Queue Merge (EQM) to BFQ-v7r5 for 3.14.0
   349aa3f0848d block: introduce the BFQ-v7r5 I/O sched for 3.14
   121ed2738c47 block: cgroups, kconfig, build bits for BFQ-v7r5-3.14
   9925795a3e54 vhost-scsi: Include prot_bytes into expected data transfer length
   68fe340cb836 vhost: move memory pointer to VQs
   72fa27bcf526 vhost: move acked_features to VQs
   757680234478 vhost: replace rcu with mutex
   050c1440ac73 vhost-net: extend device allocation to vmalloc
   d68641313156 vhost/scsi: Enable T10 PI IOV -> SGL memory mapping
   fb89a8df7f1c vhost/scsi: Add T10 PI IOV -> SGL memory mapping logic
   5caf8475ee8a vhost/scsi: Add preallocation of protection SGLs
   c0785b9490a8 vhost/scsi: Move sanity check into vhost_scsi_map_iov_to_sgl
   bd947327cdf6 vhost: don't open-code sockfd_put()
   83fab2df94c6 openvswitch: Use exact lookup for flow_get and flow_del.
   9c185c40f7a8 openvswitch: Fix tracking of flags seen in TCP flows.
   0d2455332847 openvswitch: supply a dummy err_handler of gre_cisco_protocol to prevent kernel crash
   4513a2fd2703 openvswitch: Fix a double free bug for the sample action
   1acf10deff18 openvswitch: Simplify genetlink code.
   9ea6a4dea3f5 openvswitch: Minimize ovs_flow_cmd_new|set critical sections.
   9e76764432cf openvswitch: Split ovs_flow_cmd_new_or_set().
   7bafcd59a838 openvswitch: Minimize ovs_flow_cmd_del critical section.
   67980f929444 openvswitch: Reduce locking requirements.
   347f9442b559 openvswitch: Fix ovs_flow_stats_get/clear RCU dereference.
   c7aa7c522ec0 openvswitch: Fix typo.
   b244c7b19a55 openvswitch: Minimize dp and vport critical sections.
   21883a3ffdb6 openvswitch: Make flow mask removal symmetric.
   ffa173197cf5 openvswitch: Build flow cmd netlink reply only if needed.
   f3e8e5c07505 openvswitch: Clarify locking.
   df42a8f505c2 openvswitch: Avoid assigning a NULL pointer to flow actions.
   91b07542da22 openvswitch: Compact sw_flow_key.
   24bb1a576332 net/openvswitch: Use with RCU_INIT_POINTER(x, NULL) in vport-gre.c
   808868318939 openvswitch: Use TCP flags in the flow key for stats.
   a57851bae1cf openvswitch: Fix output of SCTP mask.
   8b70125106ee openvswitch: Per NUMA node flow stats.
   606497442f52 openvswitch: Remove 5-tuple optimization.
   01e74b175909 openvswitch: Use ether_addr_copy
   b5d02cfdc985 openvswitch: flow_netlink: Use pr_fmt to OVS_NLERR output
   4da9e8d176f9 openvswitch: Use net_ratelimit in OVS_NLERR
   ee8f673dd798 openvswitch: Added (unsigned long long) cast in printf
   b67f35f8b0aa openvswitch: avoid cast-qual warning in vport_priv
   3e01428f6e0c openvswitch: avoid warnings in vport_from_priv
   069ee359a487 openvswitch: use const in some local vars and casts
   cbec86356a89 vxlan: add x-netns support
   a51970560923 vxlan: ensure to advertise the right fdb remote
   696068dca072 vxlan: remove unused port variable in vxlan_udp_encap_recv()
   e94003f3b58d sched/deadline: Fix sched_yield() behavior

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
10 years agokern-tools: allow meta branch and meta data directory to differ
Bruce Ashfield [Fri, 29 Aug 2014 14:32:36 +0000 (10:32 -0400)]
kern-tools: allow meta branch and meta data directory to differ

From the kern-tools commit:

    tools: allow meta directories that are not the same as the branch name

    With this change it is now possible to have a meta branch with meta data
    in a directory that is not the same name as the branch.

    The changes to three parts of the build are required to discover the name
    of the meta directory by relying on the fact that in a clean/proper build
    the meta directory is the only untracked, top level directory in the build.

    As such, we can restore a checkpoint and then examine the build directory
    to determine the meta directory name .. avoiding any new variables to
    indicate this to the scripts and build system.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
10 years agokernel-yocto: convert echo statements to bb* equivalents
Bruce Ashfield [Thu, 21 Aug 2014 15:14:35 +0000 (11:14 -0400)]
kernel-yocto: convert echo statements to bb* equivalents

Use the bbinfo, bberror, bbfatal equivalents to the existing echo statements
within the kernel-yocto processing. This makes us consistent with the other
messages from the build system.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
10 years agokernel-yocto: remove KBRANCH_DEFAULT
Bruce Ashfield [Wed, 19 Mar 2014 03:01:19 +0000 (23:01 -0400)]
kernel-yocto: remove KBRANCH_DEFAULT

KBRANCH_DEFAULT is no longer used, so we can remove it from all
recipes (and it won't be missed).

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
10 years agokernel-yocto: allow custom non-meta, SRCREV format builds
Bruce Ashfield [Wed, 19 Mar 2014 02:50:26 +0000 (22:50 -0400)]
kernel-yocto: allow custom non-meta, SRCREV format builds

When custom respositories are built (like a pure kernel.org
repo), the machine_meta SRCREV format is not applicable. As
such, we shouldn't check for the meta branch and we shouldn't
only check SRCREV_machine based revisions.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
10 years agokernel-yocto: clean overly complex branch checkout
Bruce Ashfield [Wed, 19 Mar 2014 01:41:29 +0000 (21:41 -0400)]
kernel-yocto: clean overly complex branch checkout

Since the git fetcher ensures that branches exist, we no longer need to
validate the branch and have a conditional checkout of the source.

We can remove some checks and ensure that whenever we exit the
do_kernel_checkout routine that a branch is always checked out.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
10 years agokernel-yocto: use show-ref instead of branch -a
Bruce Ashfield [Wed, 19 Mar 2014 01:38:33 +0000 (21:38 -0400)]
kernel-yocto: use show-ref instead of branch -a

It's better to check a branches existence via show-ref versus the end
user branch commands. So we make the switch.

Also as part of this change, we move the conversion of remote branches
to local branches above the meta branch checking. This is required to
ensure that the branch is local for the show-ref check.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
10 years agokernel-yocto: simplify branch SRCREV validation
Bruce Ashfield [Wed, 19 Mar 2014 01:34:40 +0000 (21:34 -0400)]
kernel-yocto: simplify branch SRCREV validation

The checking of machine and meta branch SRCREVs was inconsistent and
didn't allow a mixed AUTOREV machine/meta branch combination. By
simplifying the checks and changing the logic, we can now allow this
combination.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
10 years agokernel-yocto: remove KBRANCH_DEFAULT
Bruce Ashfield [Wed, 19 Mar 2014 01:20:56 +0000 (21:20 -0400)]
kernel-yocto: remove KBRANCH_DEFAULT

KBRANCH_DEFAULT was introduced as a way to trigger the enforced build
of a particular branch of the tree. With the fetcher now enforcing
SRCREVs existing on a branch, we can simply validate that the SRCREV
is reachable from the final branch and no longer care about enforcing
a given branch.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
10 years agokernel-yocto: remove branch existence checking in do_validate_branches
Bruce Ashfield [Wed, 19 Mar 2014 01:16:10 +0000 (21:16 -0400)]
kernel-yocto: remove branch existence checking in do_validate_branches

Now that the fetcher will enforce branch existence, we no longer need to
confirm that a branch exists, and that it was the branch requested to
be built.

We know the branch exists and we'll confirm that the specified SRCREV
is going to be built after we've patched the tree.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
10 years agokernel-yocto: remove SRC_URI kbranch validation
Bruce Ashfield [Wed, 19 Mar 2014 01:08:33 +0000 (21:08 -0400)]
kernel-yocto: remove SRC_URI kbranch validation

We no longer need to check if the KBRANCH matches the branch specified
in the SRC_URI. This is taken care of by the fetcher at the beginning
and SRCREV ancestor validation after patching.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
10 years agokernel-yocto: remove containing branch check
Bruce Ashfield [Tue, 18 Mar 2014 02:30:11 +0000 (22:30 -0400)]
kernel-yocto: remove containing branch check

The bitbake fetcher now enforces that a commit is contained by a branch,
so this code can be dropped from do_validate_branches.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
10 years agokernel-yocto: move SRCREV validation to patching phase
Bruce Ashfield [Tue, 18 Mar 2014 02:28:03 +0000 (22:28 -0400)]
kernel-yocto: move SRCREV validation to patching phase

Rather than attempting to condition the entire tree to machine SRCREV (since
we don't know what branch will be built), we can instead wait until patching
has completed and then confirm that we are indeed building a decendant of the
specified SRCREV. The result is a much simpler check, and no mangling of the
tree.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
10 years agokernel-yocto: use cat-file instead of git-show
Bruce Ashfield [Mon, 17 Mar 2014 18:00:15 +0000 (14:00 -0400)]
kernel-yocto: use cat-file instead of git-show

Parsing the output of git show is error prone, since it changes based on
the type of issue with bad comit IDs. Since the output is no longer used
in the case of a valid ref, we can switch to git-cat-file and  simply
check the return code.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
10 years agokernel-yocto: remove redundant SRCREV check
Bruce Ashfield [Mon, 17 Mar 2014 14:59:16 +0000 (10:59 -0400)]
kernel-yocto: remove redundant SRCREV check

do_validate_branches checks to ensure that a valid machine SRCREV was
set. A test against an empty SRCREV is done in two separate locations,
we only need one, since the first check immediately returns and the
second check never hits.

At the same time, we can stop referring to the same commit hash by
3 different names. Instead we assign to a local variable at the
top of the routine, and refer to it at all times.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
10 years agotzcode: update to 2014g
Armin Kuster [Sat, 30 Aug 2014 18:50:00 +0000 (11:50 -0700)]
tzcode: update to 2014g

The readme md5sum changed do you wording changes.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotzdata: update to 2014g
Armin Kuster [Sat, 30 Aug 2014 18:49:59 +0000 (11:49 -0700)]
tzdata: update to 2014g

For a full description of the changes see:

http://mm.icann.org/pipermail/tz-announce/2014-August/000024.html

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibpam: remove MLPREFIX from PN
Robert Yang [Sat, 30 Aug 2014 10:12:49 +0000 (03:12 -0700)]
libpam: remove MLPREFIX from PN

The commit df3038768f59f7a0c814974ff674d4e59cbdfca4 changed 'libpam' to
'pn', then we don't need the "MLPREFIX + pn" any more, otherwise we
would get the name like: "lib32-lib32-libpam-x", and the warn:

WARNING: QA Issue: lib32-pam-plugin-access rdepends on
lib32-lib32-libpam-suffix, but it isn't a build dependency? [build-deps]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-libc-headers: update to 3.16
Bruce Ashfield [Wed, 27 Aug 2014 17:11:49 +0000 (13:11 -0400)]
linux-libc-headers: update to 3.16

Updating the linux-libc-headers to the 3.16 release. This matches the
current -dev kernel version, and is compatible with the existing
named kernel versions (3.10, 3.14).

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
10 years agolibpam: Fix multilib packaging
Otavio Salvador [Thu, 28 Aug 2014 23:33:20 +0000 (20:33 -0300)]
libpam: Fix multilib packaging

The plugin runtime dependencies were not including the multilib
prefix, fix it.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>