]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
10 years agogawk: fix optional dependency mpfr
Roxana Ciobanu [Thu, 3 Jul 2014 09:45:44 +0000 (12:45 +0300)]
gawk: fix optional dependency mpfr

 Gawk was failing to compile because of the optional feature mpfr if it found
 libmpfr on build host and linked against that or mpfr existed in sysroot but
 not in deploy, or if gawk was pulled from sstate and someone had mpfr built.

 [YOCTO# 6473]

Signed-off-by: Roxana Ciobanu <roxana.ciobanu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogroff: remove redundant code snippet
Ming Liu [Thu, 3 Jul 2014 07:49:08 +0000 (15:49 +0800)]
groff: remove redundant code snippet

The exact same code snippet exists both in do_install_append and
do_install_append_class-native which is not necessary.

Remove it from do_install_append_class-native.

Signed-off-by: Ming Liu <ming.liu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopython3: fix builtins imports
Roxana [Mon, 30 Jun 2014 09:44:03 +0000 (12:44 +0300)]
python3: fix builtins imports

The intent of this code is to generate things like -L=/usr/lib/foo so
for paths which start with "/" we should appent the "=". We should not do this
for ".". On some recent versions of binutils or patchsets on some recent
distros this appears to work differently and causes build failures, for example
on Ubuntu 14.04 LTS.

The simple fix is to check for "." as the path prefix.

[YOCTO #6467].

Signed-off-by: Roxana <roxana.ciobanu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoadt_installer: Fix sed file not found error
Richard Purdie [Mon, 30 Jun 2014 15:21:17 +0000 (16:21 +0100)]
adt_installer: Fix sed file not found error

We need to look for the installed file within the sysroot we just installed
so add in the missing prefix. This avoids errors like:

Installing cross canadian packages for qemux86 ...
sed: no input files

[YOCTO #6443]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooeqa/selftest/_toaster.py: fix 'IndentationError' issues
Ionut Chisanovici [Mon, 30 Jun 2014 08:41:39 +0000 (11:41 +0300)]
oeqa/selftest/_toaster.py: fix 'IndentationError' issues

There were some indentation errors when the _toaster.py was merged into master.
This patch fix those errors.

Signed-off-by: Ionut Chisanovici <ionutx.chisanovici@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooeqa/selftest/toaster.py: renamed to _toaster.py
Ionut Chisanovici [Mon, 30 Jun 2014 08:41:38 +0000 (11:41 +0300)]
oeqa/selftest/toaster.py: renamed to _toaster.py

In order not to run the toaster selftests by default, we renamed to _toaster.py

Signed-off-by: Ionut Chisanovici <ionutx.chisanovici@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoRevert "libusb: add missing build dependency on udev"
Richard Purdie [Sun, 29 Jun 2014 08:59:11 +0000 (09:59 +0100)]
Revert "libusb: add missing build dependency on udev"

This reverts commit 6cebce6e355c4c7a87f4088bfa849d0a1c3439da.

Leads to build failures as nativesdk-udev doesn't exist (nor should it).

It also leads to circular dependencies and build failures from these.

10 years agoclasses/kernel: Use full path for symlink in update-alternatives.
Drew Moseley [Thu, 26 Jun 2014 17:01:16 +0000 (13:01 -0400)]
classes/kernel: Use full path for symlink in update-alternatives.

Use a fully qualified path for the <path> parameter in calls
to update-alternatives.  The chkconfig-alternatives version
requires a full path and without it, the symlink is not
properly created.

Signed-off-by: Drew Moseley <drew_moseley@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopopulate_sdk_base: Remove confusing echo
Richard Purdie [Sun, 29 Jun 2014 08:00:51 +0000 (09:00 +0100)]
populate_sdk_base: Remove confusing echo

Remove a confusing echo after the previous commit, thanks for a suggestion
from Laurentiu.

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

10 years agopopulate_sdk_base: add auto-completion in setup
Dennis Meier [Tue, 17 Jun 2014 13:16:53 +0000 (15:16 +0200)]
populate_sdk_base: add auto-completion in setup

Signed-off-by: Dennis Meier <meier.dennis@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoclasses/report-error: tweak summary message
Paul Eggleton [Wed, 25 Jun 2014 15:31:38 +0000 (16:31 +0100)]
classes/report-error: tweak summary message

* We don't want everyone to remove their identifying info, just if they
  feel the need to
* Split lines for clarity
* A couple of grammar/spelling tweaks

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibusb: add missing build dependency on udev
Fabien Chereau [Thu, 26 Jun 2014 10:20:02 +0000 (12:20 +0200)]
libusb: add missing build dependency on udev

This fixes the ./configure error in case libusb is built before udev/systemd.

Signed-off-by: Fabien Chereau <fabien.chereau@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotest-dependencies.sh: Return non-zero return code when there was some failure detected
Martin Jansa [Wed, 25 Jun 2014 17:06:37 +0000 (19:06 +0200)]
test-dependencies.sh: Return non-zero return code when there was some failure detected

* this is useful when using from jenkins job where you don't want to read
  output just to dectect how bad it was
* add .log suffix to all files, so they can be easily downloaded from
  http servers without default mimetype set to something useful
* add recipes failed in step 1 to steps 2 and 3 to generate standalone
  logs for them

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosstate-diff-machines.sh: Return non-zero return code when there was some failure...
Martin Jansa [Wed, 25 Jun 2014 17:06:36 +0000 (19:06 +0200)]
sstate-diff-machines.sh: Return non-zero return code when there was some failure detected

* add --analyze option, which is useful when using from jenkins job
  where you don't want to read output just to dectect how bad it was
* I was always using something like this inside jenkins job, but better
  to share it in original script

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopatch.bbclass: unset TMPDIR after use
Ross Burton [Thu, 26 Jun 2014 14:16:55 +0000 (15:16 +0100)]
patch.bbclass: unset TMPDIR after use

GNU Patch < 2.6.1 has a race condition so we create a per-instance TMPDIR to
avoid this.  This was implemented by setting os.environ[TMPDIR] but at the end
of do_patch the temporary directory is deleted but TMPDIR is not unset.

In general this doesn't cause a problem but if do_patch is embedded in a larger
function then TMPDIR is set to a directory that doesn't exist.  Avoid this by
removing TMPDIR from os.environ when the directory is deleted.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agorecipes-devtools: fix segfault in lib32-gcc with "." multilib_dir
Paul Gortmaker [Thu, 26 Jun 2014 19:08:47 +0000 (15:08 -0400)]
recipes-devtools: fix segfault in lib32-gcc with "." multilib_dir

When enabling a lib32-gcc in a 64 bit build, without doing any
other configuration, the mutilib dir is unspecified, which is
represented internally in gcc as "." and as such uncovers an
invalid free on a non-malloc'd pointer.

As suggested by the gcc folks, simply make sure the "." case
is also stored in a malloc'd pointer, so that the intended
runtime behaviour of the code remains unchanged.

Patch has been accepted by upstream maintainers of gcc.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoinitrdscripts: Try to boot if boot label is unknown
Drew Moseley [Sat, 28 Jun 2014 21:57:34 +0000 (17:57 -0400)]
initrdscripts: Try to boot if boot label is unknown

The init-live.sh scripts assumes that the boot label set by
the LABELS variable is either "boot", "install", or
"install-efi".  If that variable is overridden to something else
we fall off the end of the case statement and the system locks
up.  If the boot label is unknown, at least attempt to boot.

Signed-off-by: Drew Moseley <drew_moseley@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodistutils/distutils3: Fix bashism
Richard Purdie [Fri, 27 Jun 2014 09:23:23 +0000 (10:23 +0100)]
distutils/distutils3: Fix bashism

read -d is a bashism. Replace with a direct exec to avoid the problem
in this case. This fixes silent build failures in do_install of
tasks on systems with dash as /bin/sh.

Also merge the fix to distutils for only changing necessary files
to disutils3 as well.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agou-boot-fw-utils: install config file
Maxin B. John [Wed, 25 Jun 2014 09:13:59 +0000 (11:13 +0200)]
u-boot-fw-utils: install config file

The on-target fw_printenv and fw_setenv needs configuration file
(fw_env.config) to be present in the target.

Signed-off-by: Maxin B. John <maxin.john@enea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocreaterepo: RDEPENDS on libxml2-python
Robert Yang [Wed, 25 Jun 2014 09:16:20 +0000 (02:16 -0700)]
createrepo: RDEPENDS on libxml2-python

Fixed the error when run createrepo on target:
  Traceback (most recent call last):
    File "/usr/share/createrepo/genpkgmetadata.py", line 27, in <module>
      import libxml2
    File "/usr/lib64/python2.7/site-packages/libxml2.py", line 1, in <module>
  ImportError: No module named libxml2mod

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosudo: upgrade from 1.8.10p2 to 1.8.10p3
Chen Qi [Wed, 18 Jun 2014 03:12:24 +0000 (11:12 +0800)]
sudo: upgrade from 1.8.10p2 to 1.8.10p3

Upgrade sudo from 1.8.10p2 to 1.8.10p3.

[YOCTO #6457]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoinitramfs-framework: get rid of udev-utils
Chen Qi [Wed, 18 Jun 2014 02:38:15 +0000 (10:38 +0800)]
initramfs-framework: get rid of udev-utils

Now that udev-utils package has been removed and 'udevadm' has been
moved to udev package, the initramfs-framework should also get rid
of the udev-utils package.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosystemd: remove udev-utils, move 'udevadm' to udev package
Chen Qi [Wed, 18 Jun 2014 02:38:14 +0000 (10:38 +0800)]
systemd: remove udev-utils, move 'udevadm' to udev package

The udev package RDEPENDS on the udev-utils package, and the actually
udev-utils package relies on the udev package because if there's no
udev daemon, 'udevadm' command doesn't make much sense.

Now that we have removed udev-utils package and moved 'udevadm' to
the udev package in the older udev recipe, we should do the same
for systemd.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoudev: remove udev-utils, add 'udevadm' to udev package
Chen Qi [Wed, 18 Jun 2014 02:38:13 +0000 (10:38 +0800)]
udev: remove udev-utils, add 'udevadm' to udev package

Previously, the udev package only RRECOMMENDS udev-utils package,
but its init script in the udev package really relies on the
'udevadm' command to work properly. As a result, if 'NO_RECOMMENDATIONS'
is set to '1', errors occur at system start-up.

The udev-utils package only contains one file, that is /bin/udevadm.
So it's better that we remove the udev-utils package and move the
'udevadm' command to the udev package.

[YOCTO #6388]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoudev-cache.default: set PROBE_PLATFORM_BUS to "yes" by default
Denys Dmytriyenko [Thu, 19 Jun 2014 22:53:23 +0000 (18:53 -0400)]
udev-cache.default: set PROBE_PLATFORM_BUS to "yes" by default

Force probing of "platform" bus by default.

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoudev: update init script for conditional probing of platform bus
Denys Dmytriyenko [Thu, 19 Jun 2014 22:53:22 +0000 (18:53 -0400)]
udev: update init script for conditional probing of platform bus

Make probing of "platform" bus conditional based on PROBE_PLATFORM_BUS
variable from /etc/default/udev-cache on subsequent boots when udev
cache is used. PROBE_PLATFORM_BUS has to be set to "yes" in order to
force probing on every boot, otherwise it uses the old default behaviour
of probing it just the first time.

This is helpful on modern SoCs where most of the low level peripheral
drivers are registered on the platform bus and need to be probed to load
the necessary modules and enable the connected buses and subsystems.

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoown-mirrors: Add gitsm:// mirror support
Richard Purdie [Tue, 24 Jun 2014 22:55:32 +0000 (23:55 +0100)]
own-mirrors: Add gitsm:// mirror support

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogtk-doc: Add pkgconfig inherit
Richard Purdie [Tue, 24 Jun 2014 22:55:00 +0000 (23:55 +0100)]
gtk-doc: Add pkgconfig inherit

Anything using gtk-doc will be using pkgconfig as well so
add in the dependency rather than doing it for each and every recipe.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibsdl: Convert to use pkg-config in internal m4 macros
Richard Purdie [Tue, 24 Jun 2014 22:53:47 +0000 (23:53 +0100)]
libsdl: Convert to use pkg-config in internal m4 macros

Rather than code which doesn't even work properly when cross compiling,
lets just use pkg-config instead. Its a little simpler.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogst-openmax: Add missing pkgconfig inherit
Richard Purdie [Tue, 24 Jun 2014 22:52:58 +0000 (23:52 +0100)]
gst-openmax: Add missing pkgconfig inherit

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/oe/package_manager.py: Add processing for alternative SDK_OS
Mark Hatle [Wed, 25 Jun 2014 00:28:07 +0000 (19:28 -0500)]
lib/oe/package_manager.py: Add processing for alternative SDK_OS

For the meta-mingw layer, we need to process alternative SDK_OS, since this
is not a Linux based OS.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogcc-cross-canadian: Add configure-target-libgcc
Mark Hatle [Wed, 25 Jun 2014 00:28:06 +0000 (19:28 -0500)]
gcc-cross-canadian: Add configure-target-libgcc

While we're not going to package the libgcc component as part of the SDK,
we do need to generate it to get the unwind, and quadmath headers.  Without
this change it is not possible to build eglibc or other components that
require these headers with the SDK toolchain.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopopulate_sdk: Fix TOOLCHAIN_TARGET_TASK_ATTEMPTONLY implementation
Mark Hatle [Wed, 25 Jun 2014 00:28:05 +0000 (19:28 -0500)]
populate_sdk: Fix TOOLCHAIN_TARGET_TASK_ATTEMPTONLY implementation

The variable was only partially implemented, and the part that was there
was named incorrectly to, missing the 'TASK' piece.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoclasses/package_rpm.bbclass: Fix SDK Suffix reference
Mark Hatle [Wed, 25 Jun 2014 00:28:04 +0000 (19:28 -0500)]
classes/package_rpm.bbclass: Fix SDK Suffix reference

The meta-mingw layer attempts to change the SDK Suffix, but the rpm
packaging had a hard coded reference to _nativesdk.

I did a quick scan for other hard coded entries and did not fine any
more.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocurl: Convert CURLGNUTL to PACKAGECONFIG
Saul Wold [Wed, 25 Jun 2014 00:13:20 +0000 (17:13 -0700)]
curl: Convert CURLGNUTL to PACKAGECONFIG

This will allow for easier configuration of curl for SSL vs gnutls

[YOCTO #6329]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoca-certificates: Update to 20140325
Saul Wold [Wed, 25 Jun 2014 00:13:19 +0000 (17:13 -0700)]
ca-certificates: Update to 20140325

Changes to debian/copyright:
Update to "Copyright: Mozilla Contributors" for mozilla/{certdata.txt,nssckbi.h}

Backported on additional patch from ca-certificates tree

[YOCTO #6454]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agomobile-broadband-provider-info: Update SRCREV
Saul Wold [Wed, 25 Jun 2014 00:13:18 +0000 (17:13 -0700)]
mobile-broadband-provider-info: Update SRCREV

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoman-pages: Update to 3.69
Saul Wold [Wed, 25 Jun 2014 00:13:17 +0000 (17:13 -0700)]
man-pages: Update to 3.69

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoxcb-util-renderutil: Update to version 0.3.9
Saul Wold [Wed, 25 Jun 2014 00:13:16 +0000 (17:13 -0700)]
xcb-util-renderutil: Update to version 0.3.9

Updated LIC_FILES_CHKSUM to focus only on header section
no license changes

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocurl: Update to 7.37
Saul Wold [Wed, 25 Jun 2014 00:13:15 +0000 (17:13 -0700)]
curl: Update to 7.37

Remove patches that are fixed upstream

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agognupg: Update to 2.0.23
Saul Wold [Wed, 25 Jun 2014 00:13:14 +0000 (17:13 -0700)]
gnupg: Update to 2.0.23

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoliburcu: Update to 0.8.4
Saul Wold [Wed, 25 Jun 2014 00:13:13 +0000 (17:13 -0700)]
liburcu: Update to 0.8.4

Removed patch fixed upstream

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibusb1: Update to 1.0.19
Saul Wold [Wed, 25 Jun 2014 00:13:12 +0000 (17:13 -0700)]
libusb1: Update to 1.0.19

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosqlite3: Update to 3.8.5.0
Saul Wold [Wed, 25 Jun 2014 00:13:11 +0000 (17:13 -0700)]
sqlite3: Update to 3.8.5.0

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agou-boot: Optionally deploy an environment or script file
Ash Charles [Tue, 24 Jun 2014 20:10:18 +0000 (13:10 -0700)]
u-boot: Optionally deploy an environment or script file

Some boards are configured to read a script or environment file as part
of the u-boot boot sequence.  This file, typically called 'uEnv.txt' or
'boot.scr', would be deployed alongside the u-boot binary.  If a recipe
uses this u-boot.inc, such a file can be deployed by setting the optional
UBOOT_ENV parameter and including the file in the SRC_URI.  For example:

    SRC_URI_append_overo = "file://uEnv.txt"
    UBOOT_ENV_overo = "uEnv"

Signed-off-by: Ash Charles <ashcharles@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocmake.bbclass: restore OECMAKE_SOURCEPATH
Ross Burton [Tue, 24 Jun 2014 20:21:32 +0000 (21:21 +0100)]
cmake.bbclass: restore OECMAKE_SOURCEPATH

Some packages put their CMakeLists.txt file in a subdirectory, so assuming that
it is in ${S} won't work.

Restore OECMAKE_SOURCEPATH (defaulting to ${S}) so that the location of
CMakeLists.txt can be set if required.

Based on a patch by Miroslav KeÅ¡ <miroslav.kes@gmail.com>

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobinutils: Add fix for recent patch on older gcc
Richard Purdie [Wed, 25 Jun 2014 09:09:44 +0000 (09:09 +0000)]
binutils: Add fix for recent patch on older gcc

The recent bintuils patch update breaks on older gccs such as CentOS 6.
Backport a patch to address this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobinutils: Apply the proper fix for PR 16428
H.J. Lu [Tue, 24 Jun 2014 21:18:19 +0000 (14:18 -0700)]
binutils: Apply the proper fix for PR 16428

It is fixed by

commit 4199e3b8669d0a36448687850374fdc2ad7240b6
Author: Alan Modra <amodra@gmail.com>
Date:   Wed Jan 15 21:50:55 2014 +1030

    non-PIC references to __ehdr_start in pie and shared

    Rather than hacking every backend to not discard dynamic relocations
    against an undefined hidden __ehdr_start, make it appear to be defined
    early.  We want __ehdr_start hidden before size_dynamic_sections so
    that it isn't put in .dynsym, but we do need the dynamic relocations
    for a PIE or shared library with a non-PIC reference.  Defining it
    early is wrong if we don't actually define the symbol later to its
    proper value.  (In some cases we want to leave the symbol undefined,
    for example, when the ELF header isn't loaded, and we don't have this
    infomation available in before_allocation.)

So replace the existing patches with this one.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooe-pkgdata-util: fix help text
Paul Eggleton [Tue, 22 Apr 2014 11:23:08 +0000 (12:23 +0100)]
oe-pkgdata-util: fix help text

This was copy/pasted from another script and not corrected.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
10 years agolist-packageconfig-flags: improve option parsing
Paul Eggleton [Fri, 23 May 2014 13:30:34 +0000 (14:30 +0100)]
list-packageconfig-flags: improve option parsing

* Use optparse instead of getopt (less code & automatic help)
* Change help text / output to use "recipe" instead of "package"
* Print something to indicate the script is still gathering information

Note that the long options have been renamed as appropriate.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
10 years agolist-packageconfig-flags: filter out doc and defaultval varflags
Paul Eggleton [Fri, 23 May 2014 12:20:40 +0000 (13:20 +0100)]
list-packageconfig-flags: filter out doc and defaultval varflags

These are generic flags and shouldn't be listed in the output of this
script.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
10 years agoscripts: consolidate code to find bitbake path
Paul Eggleton [Tue, 22 Apr 2014 11:07:35 +0000 (12:07 +0100)]
scripts: consolidate code to find bitbake path

Several of these scripts were using duplicated code (and slightly
different methods) to find the path to bitbake and add its lib
subdirectory to the Python import path. Add some common code to do this
and change the scripts to use it.

Fixes [YOCTO #5076].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
10 years agosyslinux: fix isohybird overflows on 32 bit system
Kai Kang [Fri, 20 Jun 2014 06:06:30 +0000 (14:06 +0800)]
syslinux: fix isohybird overflows on 32 bit system

When call isohybrid with option '-u', it overflows on a 32 bits host. It
seeks to 512 bytes before the end of the image to install gpt header. If
the size of image is larger than LONG_MAX, it overflows fseek() and
cause error:

isohybrid: wrlinux-image-x86-64-20140505110100.iso: seek error - 8: Invalid argument

Replace fseek with fseeko to fix this issue.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agonfs-utils: fix the --with-statdpath= flag
Yao Xinpan [Fri, 20 Jun 2014 06:47:02 +0000 (14:47 +0800)]
nfs-utils: fix the --with-statdpath= flag

if --with-statdpath= is not the default value, will happen the following questions:
'Failed to open directory sm: No such file or directory'.

Submitted to nfs-utils mailing list here:

    http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commitdiff;h=3b1457d219ceb1058d44bacc657581f13437ae40#patch1

This has been accepted into upstream nfs-utils so it will not be needed
for future versions.

Signed-off-by: Yao Xinpan <yaoxp@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogummiboot.bbclass: Ensure MLPREFIX is applied to depends flag
Ming Liu [Thu, 19 Jun 2014 08:43:00 +0000 (16:43 +0800)]
gummiboot.bbclass: Ensure MLPREFIX is applied to depends flag

Add MLPREFIX to depends flag to ensure the correct gummiboot is
dependended upon.

Signed-off-by: Ming Liu <ming.liu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogrub-efi.bbclass: Ensure MLPREFIX is applied to depends flag
Ming Liu [Thu, 19 Jun 2014 08:42:59 +0000 (16:42 +0800)]
grub-efi.bbclass: Ensure MLPREFIX is applied to depends flag

Add MLPREFIX to depends flag to ensure the correct grub-efi is
dependended upon.

Signed-off-by: Ming Liu <ming.liu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosyslinux.bbclass: Ensure MLPREFIX is applied to depends flag
Ming Liu [Thu, 19 Jun 2014 08:42:58 +0000 (16:42 +0800)]
syslinux.bbclass: Ensure MLPREFIX is applied to depends flag

Add MLPREFIX to depends flag to ensure the correct syslinux is
dependended upon.

Signed-off-by: Ming Liu <ming.liu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoeglibc (2.19): fix hardcoded /sbin path
Matthieu Crapet [Thu, 19 Jun 2014 08:33:59 +0000 (10:33 +0200)]
eglibc (2.19): fix hardcoded /sbin path

Apply for ldconfig and sln packages.

Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoinitscripts: update populate-volatile.sh
Kai Kang [Thu, 19 Jun 2014 07:31:52 +0000 (15:31 +0800)]
initscripts: update populate-volatile.sh

If a partition such as /tmp mounted on a volatile directory which create
by script populate-volatile.sh from initscripts, it will show errors.

In /var/log/boot, error message:

Thu Jun 19 05:39:09 2014: bootlogd.
Thu Jun 19 05:39:10 2014: rm: cannot remove '/tmp': Device or resource busy

Check volatile directories and if it is be mounted then don't force make
it as a link.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agonss-3.15.1: fix CVE-2013-1739
yzhu1 [Wed, 18 Jun 2014 09:41:30 +0000 (05:41 -0400)]
nss-3.15.1: fix CVE-2013-1739

Mozilla Network Security Services (NSS) before 3.15.2 does
not ensure that data structures are initialized before
read operations, which allows remote attackers to cause a
denial of service or possibly have unspecified other
impact via vectors that trigger a decryption failure.

http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-1739
Signed-off-by: yzhu1 <yanjun.zhu@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agomesa.inc: remove '-' suffix in substitution of package names
Ming Liu [Fri, 20 Jun 2014 10:28:01 +0000 (18:28 +0800)]
mesa.inc: remove '-' suffix in substitution of package names

The current substitution to package names is not correct, its original
purpose is: replace "mesa-" with "mesa-dri-", in which process the
"mesa" package is left out, this leads mesa package to announce to
conflict with itself, and therefore cause build failures when multilib
mesa are being added to rootfs.

Changing the replacement pattern to without a '-' suffix will fix it.

Signed-off-by: Ming Liu <ming.liu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodbus-test: fix incorrect checksum
Chong Lu [Tue, 24 Jun 2014 05:46:52 +0000 (13:46 +0800)]
dbus-test: fix incorrect checksum

Modify checksum to match new version.

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agomkefidisk.sh: Allow symlink for device
Darren Hart [Mon, 23 Jun 2014 21:44:41 +0000 (14:44 -0700)]
mkefidisk.sh: Allow symlink for device

Allow the user to specify a symlink as the host device. If a link is
used, mkefidisk will now dereference it and use the link target when
looking for sysfs information.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoiproute2: upgrade to 3.15.0
Cristian Iorga [Mon, 23 Jun 2014 13:18:44 +0000 (16:18 +0300)]
iproute2: upgrade to 3.15.0

The main new features are:
  * ss gets more attention
  * Support for HHF qdisc
  * Updates to bridge command
  * Lots of vxlan related changes
  * Lots of little corrections and build fixes.

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoharfbuzz: upgrade to 0.9.29
Cristian Iorga [Mon, 23 Jun 2014 13:18:43 +0000 (16:18 +0300)]
harfbuzz: upgrade to 0.9.29

Mostly a bugfix release.

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobluez5: upgrade to 5.20
Cristian Iorga [Mon, 23 Jun 2014 13:18:42 +0000 (16:18 +0300)]
bluez5: upgrade to 5.20

Mostly bugfix release;
Improved handling of PS3 controllers;
Support for the A2DP aptX codec.

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoscripts/test-remote-image: add value check for rootfs fstype, change method name...
Corneliu Stoicescu [Mon, 23 Jun 2014 12:59:45 +0000 (15:59 +0300)]
scripts/test-remote-image: add value check for rootfs fstype, change method name used.

As per change in the oeqa/targetcontrol.py's BaseTarget class, changing the use of get_image_fstype() to match_image_fstype().

Also because there is no longer a value check done by the target controller's match_image_fstype() method, we have to do one here.

+ one helper comment for the get_controller() method.

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooeqa/targetcontrol.py: Separate the matching of supported image fstypes from the...
Corneliu Stoicescu [Mon, 23 Jun 2014 12:59:44 +0000 (15:59 +0300)]
oeqa/targetcontrol.py: Separate the matching of supported image fstypes from the resulting value check.

Because we used a bb.fatal call inside the get_image_fstype classmethod, this caused problems when accessed without instantiating the object with a valid bb environment.

Separating the matching part of the classmethod(that is usable by outside scripts) from the check of the resulting value.
The matching is done within a new classmethod and the latter keeps the old method name and internal functionality, this way we don't have to change any other target controllers code.

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agometa-yocto-bsp: oeqa/controllers: add GrubTarget
Cristian Iorga [Fri, 20 Jun 2014 15:42:20 +0000 (18:42 +0300)]
meta-yocto-bsp: oeqa/controllers: add GrubTarget

add control for generic grub pc via serial line

Implementation [YOCTO #5615].

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoinit-install-testfs: create signature file for master image
Cristian Iorga [Fri, 20 Jun 2014 15:42:19 +0000 (18:42 +0300)]
init-install-testfs: create signature file for master image

Also small cosmetic changes.

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoinit-install-testfs: fix typo
Cristian Iorga [Fri, 20 Jun 2014 15:42:18 +0000 (18:42 +0300)]
init-install-testfs: fix typo

_EOF marker was not used properly
(space left before end of line).

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooe-core/init-install-testfs.sh: do not overwrite /etc/mtab if the link already exist
Cristian Iorga [Fri, 20 Jun 2014 15:42:17 +0000 (18:42 +0300)]
oe-core/init-install-testfs.sh: do not overwrite /etc/mtab if the link already exist

Overwriting of /etc/mtab would fail as below if the /etc/mtab link already
exist during installation phase, this patch fix this problem by checking
existance of the link before try to overwrite it.

Error message during installation if the /etc/mtab exists:
"cat: /proc/mounts: input file is output file"

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoinit-install-testfs: add grub serial line support
Cristian Iorga [Fri, 20 Jun 2014 15:42:16 +0000 (18:42 +0300)]
init-install-testfs: add grub serial line support

For automated hardware testing, boot process control
via serial interface is needed. As such, in grub, serial
line support is added upon testmaster image install.

Also add a specific timeout to automatically start
the master image upon start of testing phase.

Tested on multiple hardware targets without issues.

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosstatesig: Add try/except around the stat calls
Richard Purdie [Wed, 18 Jun 2014 16:58:56 +0000 (17:58 +0100)]
sstatesig: Add try/except around the stat calls

Its possible sstate symlinks to other sstate mirrors which then my get
removed/cleaned. If we find invalid symlinks, skip over them rather
than error with a backtrace.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosstate: Fix shared work preconfigure task handling
Richard Purdie [Wed, 18 Jun 2014 16:58:18 +0000 (17:58 +0100)]
sstate: Fix shared work preconfigure task handling

When the preconfigure task was added to gcc, it wasn't added to sstate's list
of possible shared work tasks. This meant that diffsigs wasn't able to find
the preconfigure sigdata/info file since it has inconsistent naming.

This adds the task name to the list. Ideally this list would be autogenerated
or not even required, right now its a sanity test that the shared work
code works as intended so is best left as is.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolocal.conf.sample: Add sdl to nativesdk qemu PACKAGECONFIG
Saul Wold [Thu, 19 Jun 2014 00:36:17 +0000 (17:36 -0700)]
local.conf.sample: Add sdl to nativesdk qemu PACKAGECONFIG

Enable SDL by default for nativesdk as we do with natve, this will
allow qemu with ADT to use graphics no vnc by default.

[YOCTO #6446]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodbus: don't override EXTRA_OECONF
Robert Yang [Wed, 18 Jun 2014 08:28:23 +0000 (01:28 -0700)]
dbus: don't override EXTRA_OECONF

We need use EXTRA_OECONF_append_class-native rather than
EXTRA_OECONF_class-native.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokernel-module-split: Fix KERNEL_MODULE_AUTOLOAD handling
Richard Purdie [Wed, 18 Jun 2014 09:39:39 +0000 (10:39 +0100)]
kernel-module-split: Fix KERNEL_MODULE_AUTOLOAD handling

Addresses the problem:

The stack trace of python calls that resulted in this exception/failure was:
File: 'split_kernel_module_packages', lineno: 164, function: <module>
     0160:        if len(os.listdir(dir)) == 0:
     0161:            os.rmdir(dir)
     0162:
     0163:
 *** 0164:split_kernel_module_packages(d)
     0165:
File: 'split_kernel_module_packages', lineno: 150, function: split_kernel_module_packages
     0146:     0147:    postinst = d.getVar('pkg_postinst_modules', True)
     0148:    postrm = d.getVar('pkg_postrm_modules', True)
     0149:
 *** 0150:    modules = do_split_packages(d, root='/lib/modules', file_regex=module_regex, output_pattern=module_pattern, description='%s kernel module', postinst=postinst, postrm=postrm, recursive=True, hook=frob_metadata, extra_depends='kernel-%s' % (d.getVar("KERNEL_VERSION", True)))
     0151:    if modules:
     0152:        metapkg = d.getVar('KERNEL_MODULES_META_PACKAGE', True)
     0153:        d.appendVar('RDEPENDS_' + metapkg, ' '+' '.join(modules))
     0154:
File: 'package.bbclass', lineno: 148, function: do_split_packages
     0144:                d.setVar('pkg_postrm_' + pkg, postrm)
     0145:        else:
     0146:            d.setVar('FILES_' + pkg, oldfiles + " " + newfile)
     0147:        if callable(hook):
 *** 0148:            hook(f, pkg, file_regex, output_pattern, m.group(1))
     0149:
     0150:    d.setVar('PACKAGES', ' '.join(packages))
     0151:    return split_packages
     0152:
File: 'split_kernel_module_packages', lineno: 109, function: frob_metadata
File "split_kernel_module_packages", line 109, in frob_metadata

Exception: AttributeError: 'NoneType' object has no attribute 'split'

ERROR: Function failed: split_kernel_module_packages

[YOCTO #6461]

[a revised version of a patch from Nitin Kamble]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolttng-modules: update to 2.4.1-stable latest
Bruce Ashfield [Wed, 18 Jun 2014 01:29:51 +0000 (21:29 -0400)]
lttng-modules: update to 2.4.1-stable latest

The 3.15, and 3.14.5+ kernels introduced a change to trace_block_rq_complete,
which triggers the following build error:

    probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:151:6:
    error: conflicting types for 'trace_block_rq_complete'
    |  void trace_##_name(_proto);
    |       ^
    |
    probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:117:2:
    note: in expansion of macro 'DEFINE_EVENT_MAP'
    |   DEFINE_EVENT_MAP(template, name, name, PARAMS(proto), PARAMS(args))
    |   ^
    |
    probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/block.h:235:1:
    note: in expansion of macro 'DEFINE_EVENT'
    |  DEFINE_EVENT(block_rq_with_error, block_rq_complete,

The lttng 2.4.x-stable branch contains the fix (and several other small fixes), so
we bump the SRCREV to import the change.

Build tested against 3.14 and 3.10.

[YOCTO #6459]

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-yocto/3.10: update to v3.10.43
Bruce Ashfield [Tue, 17 Jun 2014 15:26:15 +0000 (11:26 -0400)]
linux-yocto/3.10: update to v3.10.43

Importing the v3.10.42 and 43 korg -stable updates.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-yocto/3.14: enable mpc8315e NAND and Yaffs2 gcc 4.9 fix
Bruce Ashfield [Tue, 17 Jun 2014 15:26:14 +0000 (11:26 -0400)]
linux-yocto/3.14: enable mpc8315e NAND and Yaffs2 gcc 4.9 fix

Updating the meta branch with configuration changes to enable NAND
booting on the mpc8315e reference board.

We also update the BSP SRCREVs to fix a compilation issue with
date/time on Yaffs2 and gcc 4.9.

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-yocto/3.4: update to v3.4.91
Bruce Ashfield [Tue, 17 Jun 2014 15:26:13 +0000 (11:26 -0400)]
linux-yocto/3.4: update to v3.4.91

Updating to the latest korg -stable release.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-yocto/3.14: update to v3.14.5
Bruce Ashfield [Tue, 17 Jun 2014 15:26:12 +0000 (11:26 -0400)]
linux-yocto/3.14: update to v3.14.5

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-yocto/3.10: update to v3.10.41
Bruce Ashfield [Tue, 17 Jun 2014 15:26:11 +0000 (11:26 -0400)]
linux-yocto/3.10: update to v3.10.41

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoghostscript: fix sizeof(GX_COLOR_INDEX_TYPE) not equal to ARCH_SIZEOF_GX_COLOR_INDEX...
Hongxu Jia [Tue, 17 Jun 2014 11:03:03 +0000 (19:03 +0800)]
ghostscript: fix sizeof(GX_COLOR_INDEX_TYPE) not equal to ARCH_SIZEOF_GX_COLOR_INDEX on mips

The commit: http://ghostscript.com/pipermail/gs-cvs/2014-February/017271.html
newly added a 'compile time assert' on 9.14 that causes the build to fail if
the sizeof(GX_COLOR_INDEX_TYPE) is not equal to ARCH_SIZEOF_GX_COLOR_INDEX.

Disscuss on IRC:
http://ghostscript.com/irclogs/2014/02/06.html

The commit from OE-Core rev: 78a13ba170c1de6d7ef077854e3e34e18d17099f
...
ghostscript: add pregenerated objarch for mipsel/mips64/mips64el
...
has defined ARCH_SIZEOF_GX_COLOR_INDEX according to the type of archs,
and assigned 4 for mips/mipsel (8 for others).

The GX_COLOR_INDEX_TYPE was defined at do_configure time, which used
large color index (with 8) by default. We should manually choose the
opposite one (with 4) for mips/mipsel.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoghostscript: upgrade to 9.14
Hongxu Jia [Tue, 17 Jun 2014 11:03:02 +0000 (19:03 +0800)]
ghostscript: upgrade to 9.14

- The LICENSE added AGPL for the font files (in Resource/Font);

- Rebase ghostscript-9.02-parallel-make.patch to 9.14

- Rebase ghostscript-native-fix-disable-system-libtiff.patch
  since base/configure.ac has been moved to configure.ac.
  http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=f1488c5aff54f37ee67759827d4298592af5dbc8

- Obsolete ghostscript-9.05-NOT-check-endian.patch, and add option
  '--enable-little-endian'/'--enable-big-endian' conditionally to
  intead.
  http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=e76dc46756e89a14a3348bce12a633d32e4fa831

- Add base-genht.c-add-a-preprocessor-define-to-allow-fope.patch
  for native, since the upstream replace all fopen calls with
  gp_fopen and add a preprocessor define so that any unintential
  calls directly to fopen will cause an error. This patch add a
  preprocessor define to allow fopen calling in base/genht.c as
  exceptions.
  http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=773c69e46e70bdd5482676437dafd2ca83397643

- Remove package ghostscript-cups, since CUPS filters
  gstoraster and gstopxl has been moved to cups-filters
  which is a free software package hosted by OpenPrinting.
  http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=9304a21699a6c17579fae32f44f5c92a37c13e2d
  http://www.linuxfoundation.org/collaborate/workgroups/openprinting/cups-filters

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoqmmp: upgrade to 0.7.7
Hongxu Jia [Tue, 17 Jun 2014 07:01:07 +0000 (15:01 +0800)]
qmmp: upgrade to 0.7.7

Build:
1) Add LICENSE_FLAGS_WHITELIST += "commercial" to local.conf

2) bitbake qmmp

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodirectfb: upgrade to 1.7.4
Hongxu Jia [Tue, 17 Jun 2014 07:01:06 +0000 (15:01 +0800)]
directfb: upgrade to 1.7.4

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibnewt/libnewt-python: upgrade to 0.52.17
Hongxu Jia [Tue, 17 Jun 2014 07:01:05 +0000 (15:01 +0800)]
libnewt/libnewt-python: upgrade to 0.52.17

- The company address has changed in COPYING.

- Rebase fix_SHAREDDIR.patch to 0.52.17

- Rebase cross_ar.patch to 0.52.17

- Obsolete fix_python_fpic.patch, since the patch has been
  merged by upstream;

- The upstream rename snackmodule to snack in 0.52.17, so tweak
  libnewt-python_0.52.17.bb;

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agohwlatdetect: fix PV
Koen Kooi [Tue, 17 Jun 2014 09:01:28 +0000 (11:01 +0200)]
hwlatdetect: fix PV

As an extra safety measure set PV in the same place as SRCREV.

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agohwlatdetect 0.85: fix variable ordering
Koen Kooi [Tue, 17 Jun 2014 09:01:27 +0000 (11:01 +0200)]
hwlatdetect 0.85: fix variable ordering

The OE styleguide says to group R* variables below do_install.

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodpkg: Security Advisory - CVE-2014-3127
Guillem Jover [Tue, 17 Jun 2014 08:25:52 +0000 (04:25 -0400)]
dpkg: Security Advisory - CVE-2014-3127

v2 changes:
* update format for commit log
* add Upstream-Status for patch

commit a12eb58959d0a10584a428f4a3103a49204c410f upstream

Dpkg::Source::Patch: Outright reject C-style filenames in patches

Because patch only started recognizing C-style filenames in diffs
in version 2.7, it's not safe to assume one behaviour or the other,
as the system might or might not have a recent enough version, or
a GNU patch program at all. There's also no reason we should be
supporting this kind of strange encoded filenames in patches, when
we have not done so up to now.

Let's just ban these types of diffs and be done with it.

Fixes: CVE-2014-0471, CVE-2014-3127
Closes: #746306
[drop the text for debian/changelog,because it's not suitable
for the veriosn]
Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com>
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodpkg: Security Advisory - CVE-2014-0471
Guillem Jover [Tue, 17 Jun 2014 08:25:51 +0000 (04:25 -0400)]
dpkg: Security Advisory - CVE-2014-0471

v2 changes:
* update format for commit log
* add Upstream-Status for patch

commit a82651188476841d190c58693f95827d61959b51 upstream

Dkpkg::Source::Patch: Correctly parse C-style diff filenames

We need to strip the surrounding quotes, and unescape any escape
sequence, so that we check the same files that the patch program will
be using, otherwise a malicious package could overpass those checks,
and perform directory traversal attacks on source package unpacking.

Fixes: CVE-2014-0471
Reported-by: Jakub Wilk <jwilk@debian.org>
[drop the text for debian/changelog,because it's not suitable
 for the veriosn]

Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com>
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibtiff: Security Advisory - CVE-2012-4564
Yue Tao [Tue, 17 Jun 2014 08:25:20 +0000 (04:25 -0400)]
libtiff: Security Advisory - CVE-2012-4564

v2 changes:
* update format for commit log
* add Upstream-Status for patch

ppm2tiff does not check the return value of the TIFFScanlineSize
function, which allows remote attackers to cause a denial of service
(crash) and possibly execute arbitrary code via a crafted PPM image that
triggers an integer overflow, a zero-memory allocation, and a heap-based
buffer overflow.

http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-4564

Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibpam: Security Advisory - CVE-2014-2583
Yue Tao [Tue, 17 Jun 2014 08:23:59 +0000 (04:23 -0400)]
libpam: Security Advisory - CVE-2014-2583

v2 changes:
* update format for commit log
* add Upstream-Status for patch

Multiple directory traversal vulnerabilities in pam_timestamp.c in the
pam_timestamp module for Linux-PAM (aka pam) 1.1.8 allow local users to
create aribitrary files or possibly bypass authentication via a .. (dot
dot) in the (1) PAM_RUSER value to the get_ruser function or (2) PAM_TTY
value to the check_tty funtion, which is used by the
format_timestamp_name function.

http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-2583

Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoperf: add slang to the dependencies
Henning Heinold [Mon, 16 Jun 2014 20:02:45 +0000 (22:02 +0200)]
perf: add slang to the dependencies

* TUI/GUI support was added in 2.6.35 based on libnewt
* since 3.10 slang replaced libnewt completly
* changing TUI_DEFINES is not necessary, because NO_NEWT is
  still respected with newer kernels
* add comment about the gui history to the recipe

The patch was sponsored by sysmocom

Signed-off-by: Henning Heinold <henning@itconsulting-heinold.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoRevert "populate_sdk: verify executable or dynamically linked library"
Roy Li [Tue, 17 Jun 2014 06:00:27 +0000 (14:00 +0800)]
Revert "populate_sdk: verify executable or dynamically linked library"

It is introduced a bug, since The return of "file ld-linux-x86-64.so.*"
does not include "dynamically linked" in redhat 5.9/6.0(32 bit), and lead
to that ld-linux-x86-64.so.* is not in executable file list.

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agorelocate_sdk: Skip to do relocation if the file size is less than 64 byte
Roy Li [Tue, 17 Jun 2014 06:00:26 +0000 (14:00 +0800)]
relocate_sdk: Skip to do relocation if the file size is less than 64 byte

When toolchain directory is changed to execute mode, some non-executable
files or empty files are sorted. This will lead to the below error:

Extracting SDK...done
Setting it up...Traceback (most recent call last):
  File "..._SDK/relocate_sdk.py", line 208, in <module>
    arch = get_arch()
  File "..._SDK/relocate_sdk.py", line 39, in get_arch
    ei_mag0,ei_mag1_3,ei_class = struct.unpack("<B3sB11x", e_ident)
struct.error: unpack requires a string argument of length 16

To call get_arch and parse_elf_header, we should ensure the sorted file
is bigger than 64 byte.

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocups: enable cups-str4402.patch
Robert Yang [Tue, 27 May 2014 01:39:47 +0000 (21:39 -0400)]
cups: enable cups-str4402.patch

This patch is used for fixing build errors without dnssd/avahi, we
already have this patch, but isn't added to SRC_URI:
meta/recipes-extended/cups/cups/cups-str4402.patch

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodbus-native: dbus-native: do_compile failed on selinux.c on CentOS 5.10
Robert Yang [Tue, 27 May 2014 01:39:46 +0000 (21:39 -0400)]
dbus-native: dbus-native: do_compile failed on selinux.c on CentOS 5.10

Found this error on CentOS 5.10, other distros may also has this
problem, I think that we can disable the selinux for dbus-native:

bus/selinux.c:327: error: array type has incomplete element type

[YOCTO #6374]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>