]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
10 years agowpa_supplicant: Improve rebuild handling
Richard Purdie [Fri, 24 Oct 2014 14:22:06 +0000 (15:22 +0100)]
wpa_supplicant: Improve rebuild handling

Due to the split level nature of the wpa_suppliant sources, the standard
clean methods don't work. This change ensures it picks up on changes to
configuration.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocmake: Try and improve cleaning of builds when B==S
Richard Purdie [Fri, 24 Oct 2014 14:20:28 +0000 (15:20 +0100)]
cmake: Try and improve cleaning of builds when B==S

Currently if B==S for a cmake recipe, the build will not reconfigure. This patch adds
code to remove the generated cmake files, meaning cmake will then be forced to regenerate
them. This forces cmake to see configuration changes it may not otherwise see.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobase.bbclass: Enable using 'make clean' for rebuilds
Richard Purdie [Fri, 24 Oct 2014 14:17:03 +0000 (15:17 +0100)]
base.bbclass: Enable using 'make clean' for rebuilds

When something rebuilds say due to ${baselib} changing or some
other key variable, software is often not rebuilt due to the
fact that make detects no dependency change.

By running "make clean" when these changes occur, we can at least try
and ensure the correct rebuilds happen. We use the same checksum check as
autotools to decide if things have changed or not.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoautotools: Use make clean for builds not supporting B != S
Richard Purdie [Fri, 24 Oct 2014 14:15:50 +0000 (15:15 +0100)]
autotools: Use make clean for builds not supporting B != S

If the build doesn't support B != S, we can try running "make clean" instead
to try and clean up previous objects if the hash for the task has changed.

This tries to ensure that when variables like ${baselib} change, the changes are
correctly accounted for.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agowic: Update bootimg-partition to use bootimg_dir
Tom Zanussi [Wed, 29 Oct 2014 22:04:24 +0000 (17:04 -0500)]
wic: Update bootimg-partition to use bootimg_dir

Update bootimg-partition to use bootimg_dir instead of img_deploy_dir,
to match similar usage in other plugins.

As mentioned elsewhere, plugins should use the passed-in value for
bootimg_dir directly if non-null, which corresponds to a user-assigned
value specified via a -b command-line param, and only fetch the value
from bitbake if that value is null.

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agowic: Remove special-case bootimg_dir
Tom Zanussi [Wed, 29 Oct 2014 22:04:23 +0000 (17:04 -0500)]
wic: Remove special-case bootimg_dir

The first iterations of wic very shortsightedly catered to two
specific use-cases and added special-purpose params for those cases so
that they could be directly given their corresponding boot artifacts.
(hdddir and staging_data_dir).

As more use-cases are added, it becomes rather obvious that such a
scheme doens't scale, and additionally causes confusion for plugin
writers.

This removes those special cases and states explicitly in the help
text that plugins are responsible for locating their own boot
artifacts.

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoRevert "wic: set bootimg_dir when using image-name artifacts"
Tom Zanussi [Wed, 29 Oct 2014 22:04:22 +0000 (17:04 -0500)]
Revert "wic: set bootimg_dir when using image-name artifacts"

This reverts commit 7ce1dc13f91df70e8a2f420e7c3eba51cbc4bd48.

This patch broke the assumption that a non-null boot_dir means a
user-assigned (-b command-line param) value.

Reverting doesn't break anything, since the case it was added for
doesn't use the boot_dir for anything except debugging anyhow.

Fixes [YOCTO #6290]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agowic: Update the help text to include -D (--debug)
Tom Zanussi [Wed, 29 Oct 2014 22:04:21 +0000 (17:04 -0500)]
wic: Update the help text to include -D (--debug)

The --debug option is missing from the wic help text; this adds it and
at the same time rearranges the usage into a more logical arrangement.

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agowic: Use overhead factor when creating partitions from rootfs directories
Tom Zanussi [Wed, 29 Oct 2014 22:04:20 +0000 (17:04 -0500)]
wic: Use overhead factor when creating partitions from rootfs directories

When creating partitions sized to given rootfs directories, filesystem
creation could fail in cases where the calculated target partition
size was too small to contain the filesystem created using mkfs.  This
occurred in particular when creating partitions to contain very large
filesystems such as those containing sdk image artifacts.

This same limition is present in the oe-core image creation classes,
which can be readily see by changing IMAGE_OVERHEAD_FACTOR from the
default 1.3 to 1.0 and building a sato-sdk image.

It should be possible to calculate required sizes exactly given the
source rootfs and target filesystem types, but for now, to address the
specific problem users are hitting in such situations, we'll just do
exactly what oe-core does and define and use an IMAGE_OVERHEAD_FACTOR
or 1.3 in those cases.

Fixes [YOCTO #6863].

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agowic: Don't allow mkfs to fail silently in partition command
Tom Zanussi [Wed, 29 Oct 2014 22:04:19 +0000 (17:04 -0500)]
wic: Don't allow mkfs to fail silently in partition command

The return code from the mkfs command used by the partition creation
command was being ignored, allowing it to silently fail and leaving
users mystified as to why the resulting filesystem was corrupted.

This became obvious when failures occurred when creating large
e.g. sdk filesystems [YOCTO #6863].

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoimage.py: Fix error in graph sorting
Pascal Bach [Fri, 24 Oct 2014 07:41:10 +0000 (09:41 +0200)]
image.py: Fix error in graph sorting

The graph sorting algorithm for image dependencies does a look for an
occurrence of a searched string instead of comparing the chunk to the
searched string. This leads to the problem that ubifs is recognized as ubi aswell.

This fixes this by splitting up the string into chunks.

Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agomultilib.conf: set MULTILIB_GLOBAL_VARIANTS conditionally
Peter Seebach [Thu, 23 Oct 2014 21:42:10 +0000 (16:42 -0500)]
multilib.conf: set MULTILIB_GLOBAL_VARIANTS conditionally

It is not entirely obvious that all reasonable configurations
will have multilib.conf strictly before the file which might
want to set MULTILIB_GLOBAL_VARIANTS. The x86-ish values here
look like reasonable default guesses, but shouldn't override
an explicit setting.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agomklibs: Fix loader for mipsel
Khem Raj [Fri, 24 Oct 2014 16:24:58 +0000 (09:24 -0700)]
mklibs: Fix loader for mipsel

Additionally treat ld.so to be searched in sysroot

Change-Id: I8b4acb821d9855a1163c7149bc8e369c7c438856
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoglibc: Delete ldconfig when USE_LDCONFIG is not set
Khem Raj [Fri, 24 Oct 2014 16:24:57 +0000 (09:24 -0700)]
glibc: Delete ldconfig when USE_LDCONFIG is not set

This avoids below QA error/warning
/sbin/ldconfig [installed-vs-shipped]

Change-Id: I028b692eefeaa6e0e0e6507ab4108caa29e41e91
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agorm_work: Speed up rootfs/populate_sdk removal
Richard Purdie [Fri, 24 Oct 2014 14:14:31 +0000 (15:14 +0100)]
rm_work: Speed up rootfs/populate_sdk removal

Commands like bitbake X -c rootfs or bitbake X -c populate_sdk do not
trigger rm_work to clean up the directories afterwards since it
traditionally hooks onto do_build. This change means those two tasks now
clean up after themselves. We use the cleandirs function attribute to
handle this.

[YOCTO #6413]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogcc: poison default sysroot path
Richard Purdie [Fri, 24 Oct 2014 14:10:25 +0000 (15:10 +0100)]
gcc: poison default sysroot path

Various pieces of the code assume that the --sysroot option gets passed
into the compiler tools. By having a "sane" default, we don't always
spot when this occurs and this can later show up as breakage in sstate,
or in usage of the external toolchain.

We've long since talked about poisoning the default such that it will
break unless the correct option is specified. This patch does just that.

If this patch causes something to fail to build, it most likely means
the various compiler flags and commands are not correctly being passed
through to the underlying piece of software and that there is a real
problem that needs fixing, its not the fault of this patch.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agonativesdk-cmake: Adjust toolchain paths dynamically
Otavio Salvador [Tue, 21 Oct 2014 01:58:52 +0000 (23:58 -0200)]
nativesdk-cmake: Adjust toolchain paths dynamically

This patch adds a flexible way to configure the CMake in SDKs. It adds
a toolchain configuration script which supports subscripts for
extensions, as for example Qt5.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolocal.conf.sample.extended: update for RPM_PREFER_ELF_ARCH
Robert Yang [Mon, 20 Oct 2014 03:35:41 +0000 (20:35 -0700)]
local.conf.sample.extended: update for RPM_PREFER_ELF_ARCH

Updated as the rpm upstream suggested:
- RPM_PREFER_COLOR -> RPM_PREFER_ELF_ARCH
- 3 -> 4

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokernel-yocto: fix branch validation for AUTOREV, non machine_meta kernels
Bruce Ashfield [Mon, 13 Oct 2014 03:53:59 +0000 (23:53 -0400)]
kernel-yocto: fix branch validation for AUTOREV, non machine_meta kernels

The simplication of do_validate_branches missed a case where a custom
kernel can supply SRCREV="${AUTOREV}", and not use SRCREV_machine at all.

In this case, we will incorrectly try and test the tree for a non-existent
commit, and break the build.

By simplying the condition of the check to look for an empty SRCREV_machine,
we can skip manipulating the tree and testing for a SRCREV.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agolinux-yocto/3.17: v3.17 release and config
Bruce Ashfield [Mon, 13 Oct 2014 03:53:58 +0000 (23:53 -0400)]
linux-yocto/3.17: v3.17 release and config

Updating the SRCREVs to incoroprate the full 3.17 release, and also
updating the meta data to match the v3.17 content:

  9ba007f8d0ab meta: bump kver to v3.17-final
  5c6c5fe9b0bf config: remove CONFIG_HOTPLUG
  0ceecad5f15a qemu: explicitly include usb configuration fragments
  f6c78ada8655 gfx: convert CONFIG_TABLET_USB_WACOM to CONFIG_HID_USB_WACOM
  cd1dbedfa3c9 x86: Support 32 bit binaries

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agolinux-yocto/3.10: 8250/8250_dw: fix compile failure due to stable/Yocto conflict
Bruce Ashfield [Mon, 13 Oct 2014 03:53:57 +0000 (23:53 -0400)]
linux-yocto/3.10: 8250/8250_dw: fix compile failure due to stable/Yocto conflict

Updating the SRCREVs for the following fix:

   8250/8250_dw: fix compile failure due to stable/Yocto conflict

    As of merge 60a9d9fc565e4503dbb8705803e83d906afc4ad2, "Merge
    tag 'v3.10.48' into standard/base" the 8250_dw.c fails to
    compile due to an undeclared variable.

    This happens because stable brought in:

     -------------------------
     commit 6d5e79331417886196cb3a733bdb6645ba85bc42
     Author: Tim Kryger <tim.kryger@linaro.org>
     Date:   Tue Oct 1 10:18:08 2013 -0700

        serial: 8250_dw: Improve unwritable LCR workaround

        commit c49436b657d0a56a6ad90d14a7c3041add7cf64d upstream.

     [...]

        [wangnan: backport to 3.10.43:
          - adjust context
          - remove unneeded local var]
Signed-off-by: Wang Nan <wangnan0@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
     ------------------------

    ...which deletes the p->private_data declaration since it became
    unused at that point, however in Yocto, we also have this:

     -----------------------
     commit 0e02b050c3cafbcbf9952125089a27e02d6ecea9
     Author: David Daney <david.daney@cavium.com>
     Date:   Wed Jun 19 20:37:27 2013 +0000

        tty/8250_dw: Add support for OCTEON UARTS.

     [...]

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
        (cherry picked from commit d5f1af7ece96cf52e0b110c72210ac15c2f65438)
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
     -----------------------

    ...which _adds_ another user of the p->private_data.

    Here we restore the declaration in order that 8250_dw compiles.

Signed-off-by: Ong Boon Leong <boon.leong.ong@intel.com>
    [PG: add root cause info to commit log.]
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agounifdef: remove fork, package upstream
Ross Burton [Fri, 17 Oct 2014 16:16:31 +0000 (17:16 +0100)]
unifdef: remove fork, package upstream

Instead of building specifiaclly for native a static fork of unifdef from
2007, simply package the latest tarball.

Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agonative.bbclass: use BUILD_* variables
Ross Burton [Tue, 21 Oct 2014 10:50:13 +0000 (11:50 +0100)]
native.bbclass: use BUILD_* variables

Instead of replicating the logic for the host compiler naming from bitbake.conf,
use the BUILD_* variables directly.

Also change BUILD_CPP to use gcc -E (which native.bbclass previously used), as
some recipes (e.g. grub-efi) use ${CPP} with multiple input files, which gcc -E
can handle but cpp can't.

Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agorpm: realpath is required before expanding _dbpath in chroot
Ming Liu [Tue, 21 Oct 2014 11:10:54 +0000 (19:10 +0800)]
rpm: realpath is required before expanding _dbpath in chroot

A regression is introduced by commit 66573093:
[ rpm: Fix rpm relocation macro usage ]

_usr turned out to be a relative path to support dyanmic config after
that, but it's being used somewhere as a indicator to locate substrings,
so we must get the real path of it in advance.

Signed-off-by: Ming Liu <ming.liu@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agokernel.bbclass: Create modules directory even if there is no modules installed
He Zhe [Tue, 21 Oct 2014 09:47:44 +0000 (17:47 +0800)]
kernel.bbclass: Create modules directory even if there is no modules installed

During kernel_do_install it needs to make symbol link at
${D}/lib/modules/${KERNEL_VERSION}/build, but there will not be
${D}/lib/modules/${KERNEL_VERSION} if there is no modules installed for current
image, which will result in a build failure.
Add "mkdir -p ${D}/lib/modules/${KERNEL_VERSION}" here to avoid this failure
and the need of similar changes in other scripts that also expect it to exist.

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agolibxml2: fix CVE-2014-3660
Joe MacDonald [Mon, 20 Oct 2014 17:51:21 +0000 (13:51 -0400)]
libxml2: fix CVE-2014-3660

It was discovered that the patch for CVE-2014-0191 for libxml2 is
incomplete.  It is still possible to have libxml2 incorrectly perform
entity substituton even when the application using libxml2 explicitly
disables the feature.  This can allow a remote denial-of-service attack on
systems with libxml2 prior to 2.9.2.

References:
    http://www.openwall.com/lists/oss-security/2014/10/17/7
    https://www.ncsc.nl/actueel/nieuwsberichten/kwetsbaarheid-ontdekt-in-libxml2.html

Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agonfs-utils: fix start-statd
Roy.Li [Mon, 20 Oct 2014 05:38:14 +0000 (13:38 +0800)]
nfs-utils: fix start-statd

1. add /bin to PATH of start-statd, otherwise systemctl can not be found.
2. drop error when systemd fails to start statd.service; since if it failed,
rpc.statd will be called directly.

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agocross-localedef-native: provide SRCREV_FORMAT
Joe Slater [Thu, 16 Oct 2014 20:47:12 +0000 (13:47 -0700)]
cross-localedef-native: provide SRCREV_FORMAT

Add SRCREV_FORMAT to provide a composite version number
for get_srcrev() in fetch2 code.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoarchiver: fix truncation of src_rev
Joe Slater [Thu, 16 Oct 2014 20:53:03 +0000 (13:53 -0700)]
archiver: fix truncation of src_rev

In trying to eliminate AUTOINC+ from revision strings,
we accidently truncated the strings to almost guarantee
information from SRCREV_FORMAT, when supplied, would be
lost.  So, we now only delete any AUTOINC+'s from the string.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agolibaio: fix for mips64
Jianchuan Wang [Fri, 17 Oct 2014 01:51:45 +0000 (09:51 +0800)]
libaio: fix for mips64

Add mips64 support in the libaio.h
- add macro PADDED/PADDEDptr/PADDEDul in the mips64 for structure iocb
  to be matched userland with kernel

Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agosystemd: fix libidn floating dependency
Chen Qi [Fri, 17 Oct 2014 05:11:33 +0000 (13:11 +0800)]
systemd: fix libidn floating dependency

WARNING: QA Issue: systemd rdepends on libidn, but it isn't a build dependency? [build-deps]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agogrub: add cmdpath to grub configuration file
Arindam Nath [Fri, 17 Oct 2014 14:08:08 +0000 (10:08 -0400)]
grub: add cmdpath to grub configuration file

An issue was found where when yocto is installed to a hard disk
from a live USB key, no matter what boot order was selected in
the BIOS menu, the grub menu of the USB key would always show
up. The issue was narrowed down to the way grub configuration
file gets embedded into the standalone bootx64.efi image.

The commit prepends ($cmdpath) to the search path for grub.cfg,
thus making sure the UEFI environment itself sets this to the
correct device path. This in-turn lets the grub.cfg of the boot
device to be loaded.

Signed-off-by: Arindam Nath <arindam.nath@amd.com>
Reviewed-by: Drew Moseley <drew_moseley@mentor.com>
Tested-by: Ravikiran Polepalli <Ravikiran_Polepalli@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agospdx.bbclass: improved stability, fixed SPDX compliance issues. Changes are reflected...
Tobias Olausson [Mon, 20 Oct 2014 14:09:15 +0000 (16:09 +0200)]
spdx.bbclass: improved stability, fixed SPDX compliance issues. Changes are reflected in licenses.conf.

The previous version could crash on dead links in the rootfs, or if the manifest directory did not
exist. The generated files were also not compliant with the SPDX specification, for example file
entries did not always start with the FileName tag, time stamps were incorrectly formatted etc.

Stability issues are addressed by added checks, originally written by Johan Thelin
<johan.thelin@pelagicore.com>, who never upstreamed them. I've also added an option for getting full
SPDX output from FOSSology, i.e. not only for all files, but for the package as well, including
license references. License refs are required in order to process the output by SPDXTools. For that
reason, this option defaults to true.

Signed-off-by: Tobias Olausson <tobias.olausson@pelagicore.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agodefault-versions.inc: match version of db and db-native while "AGPL-3.0" in ${INCOMPA...
Hongxu Jia [Mon, 20 Oct 2014 11:36:28 +0000 (19:36 +0800)]
default-versions.inc: match version of db and db-native while "AGPL-3.0" in ${INCOMPATIBLE_LICENSE}

The db 6.0.30's LICENSE is 'AGPL-3.0', and db 5.3.28 LICENSE is
'Sleepycat'

While building rpm image with "AGPL-3.0" in ${INCOMPATIBLE_LICENSE},
db 6.0.30 and db-native 5.3.28 were built, the different versions
caused the rpm doesn't work on target.

...
root@qemux86-64:~# rpm -qa
|rpmdb: BDB2531 Unacceptable log file /var/lib/rpm/./log/log.0000000001:
unsupported log version 21
|rpmdb: BDB2527 Invalid log file: log.0000000001: Invalid argument
|rpmdb: BDB0061 PANIC: Invalid argument
|==> rpmdbe_event_notify(0x623f40, PANIC(0), 0x7fffee0fbc0c) app_private
(nil)
|rpmdb: BDB1546 unable to join the environment
|error: db_init:tmp/work/core2-64-poky-linux/rpm/5.4.14-r0/rpm-5.4.14/
rpmdb/db3.c:1144: dbenv->open(-30973): BDB0087 DB_RUNRECOVERY: Fatal
error, run database recovery
...

[YOCTO #6858]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agolibtool: Extend fix-final-rpath.patch
Randy Witt [Fri, 17 Oct 2014 17:41:36 +0000 (10:41 -0700)]
libtool: Extend fix-final-rpath.patch

When building upower from meta-oe, the following QA error occurred:
ERROR: QA Issue: package upower contains bad RPATH

It appears to have been caused by one of the cases fix-final-rpath.patch
is meant to address but missed. So this change fixes the additional case
that was causing upower to have the QA error.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoliburcu: revert ARM GCC blacklist commit
Jonathan Liu [Mon, 20 Oct 2014 05:28:55 +0000 (16:28 +1100)]
liburcu: revert ARM GCC blacklist commit

This fixes the following error when building liburcu:
"Your gcc version produces clobbered frame accesses"

OE-Core is using a patched GCC 4.8.2 which is able to compile liburcu
properly.

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agonfs-utils: fix a Gcc undefined behavior
Roy Li [Wed, 15 Oct 2014 09:21:34 +0000 (17:21 +0800)]
nfs-utils: fix a Gcc undefined behavior

Calling strncpy with NULL second argument, even when the size is 0,
is undefined behavior, which leads to GCC to drop the check old
variable with NULL in following code.

https://bugzilla.yoctoproject.org/show_bug.cgi?id=6743

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agopython-smartpm: Add checking for "rpm-ignoresize" option
Chong Lu [Mon, 13 Oct 2014 07:43:20 +0000 (15:43 +0800)]
python-smartpm: Add checking for "rpm-ignoresize" option

The do_rootfs takes a very long time when build host has mounted many NFS
devices. syscall lstat() was being called on every filesystem mounted on the
build host during building.
The reason for the lstat() is that rpm is verifying that enough free disk space
is available to do the install. However, since the install is into the target
rootfs it should not matter how much free space there is in the host mounts.
Add checking for "rpm-ignoresize", by it, smart can make whether RPM skip
checking for diskspace when install a rpm package.

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agosystemd: Use ${ROOT_HOME} instead of /root
Dan McGregor [Wed, 3 Sep 2014 19:49:28 +0000 (13:49 -0600)]
systemd: Use ${ROOT_HOME} instead of /root

systemd avoids using nss lookups for the root user, so
naturally it assumes that root's home directory is /root.
In OE that's not the case, and it can lead to long delays when
shutting down due to user shutdown unit failures.

Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agobuild-appliance-image: Update to dizzy head revision
Richard Purdie [Sat, 18 Oct 2014 14:16:27 +0000 (16:16 +0200)]
build-appliance-image: Update to dizzy head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogst-ffmpeg: Security Advisory - ffmpeg - CVE-2013-0869
Yue Tao [Fri, 29 Aug 2014 06:46:19 +0000 (14:46 +0800)]
gst-ffmpeg: Security Advisory - ffmpeg - CVE-2013-0869

The field_end function in libavcodec/h264.c in FFmpeg before 1.1.2
allows remote attackers to have an unspecified impact via crafted H.264
data, related to an SPS and slice mismatch and an out-of-bounds array
access.

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

Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agogst-ffmpeg: Security Advisory - ffmpeg - CVE-2013-4358
Yue Tao [Fri, 29 Aug 2014 06:46:18 +0000 (14:46 +0800)]
gst-ffmpeg: Security Advisory - ffmpeg - CVE-2013-4358

libavcodec/h264.c in FFmpeg before 0.11.4 allows remote attackers to
cause a denial of service (crash) via vectors related to alternating bit
depths in H.264 data.

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

Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agomtools: fix broken /usr/bin/lz
Wenlin Kang [Thu, 16 Oct 2014 10:26:49 +0000 (06:26 -0400)]
mtools: fix broken /usr/bin/lz

When build fs with mtools-3.9.9, has file /usr/bin/lz in rootfs,
it is the symlink to uz:

root@qemu3:~# /usr/bin/lz
-sh: /usr/bin/lz: No such file or directory
$root@qemu3:~# ls -l /usr/bin/lz
lrwxrwxrwx 1 root root 2 Jul 18 18:07 /usr/bin/lz -> uz
root@qemu3:~# uz
-sh: uz: command not found

But the uz isn't actually exist, so the result is that lz is a
broken symlink.

The root cause is that uz hasn't been installed when install-scripts.

Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
10 years agognupg_1.4.7: add package config libusb
Kai Kang [Thu, 16 Oct 2014 09:42:57 +0000 (17:42 +0800)]
gnupg_1.4.7: add package config libusb

If build gnupg 1.4.7 after libusb-compat, it shows warning:

WARNING: QA Issue: gnupg rdepends on libusb-compat, but it isn't a build dependency? [build-deps]

Add package config libusb to fix it.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
10 years agoopenssl: upgrade to 1.0.1j
Ross Burton [Thu, 16 Oct 2014 16:18:11 +0000 (17:18 +0100)]
openssl: upgrade to 1.0.1j

Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoreadline: Security Advisory - readline - CVE-2014-2524
Kai Kang [Wed, 15 Oct 2014 05:56:24 +0000 (13:56 +0800)]
readline: Security Advisory - readline - CVE-2014-2524

The _rl_tropen function in util.c in GNU readline before 6.3 patch 3
allows local users to create or overwrite arbitrary files via a symlink
attack on a /var/tmp/rltrace.[PID] file.

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

Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Signed-off-by: Kai Kang <kai.kang@windriver.com>
10 years agognupg: CVE-2013-4242
Kai Kang [Wed, 15 Oct 2014 07:16:31 +0000 (15:16 +0800)]
gnupg: CVE-2013-4242

GnuPG before 1.4.14, and Libgcrypt before 1.5.3 as used in GnuPG 2.0.x
and possibly other products, allows local users to obtain private RSA
keys via a cache side-channel attack involving the L3 cache, aka
Flush+Reload.

Patch from commit e2202ff2b704623efc6277fb5256e4e15bac5676 in
git://git.gnupg.org/libgcrypt.git

Signed-off-by: Yong Zhang <yong.zhang@windriver.com>
Signed-off-by: Kai Kang <kai.kang@windriver.com>
10 years agosstate.bbclass: Fix up white space lost in last commit.
Peter Urbanec [Wed, 15 Oct 2014 12:08:17 +0000 (23:08 +1100)]
sstate.bbclass: Fix up white space lost in last commit.

Commit e9672387 split one long line into a multi-line string, but in
the process white space between words was lost. This results in badly
formatted output when this message is printed.

Signed-off-by: Peter Urbanec <openembedded-devel@urbanec.net>
10 years agosstate.bbclass: specify func dirs for sstate_hardcode_path
Wenzong Fan [Wed, 15 Oct 2014 03:10:48 +0000 (23:10 -0400)]
sstate.bbclass: specify func dirs for sstate_hardcode_path

For some recipes that inhrient cmake, the ${B} may be removed by
cmake_do_configure() while sstate_hardcode_path() running, this
causes build errors:

  Exception: OSError: [Errno 2] No such file or directory: \
  '/path/to/build'

The function sstate_hardcode_path() called command:

  $SSTATE_SCAN_CMD which extended as "find ${SSTATE_BUILDDIR} ..."

So the proper function dirs could be ${SSTATE_BUILDDIR}.

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agofile: add wrapper to nativesdk-file
Hongxu Jia [Sat, 11 Oct 2014 08:59:22 +0000 (16:59 +0800)]
file: add wrapper to nativesdk-file

"file" command in exported SDK doesn't work:
...
$ file sysroots/
file: could not find any valid magic files!
...

In oe-core commit 68d548cbae729eaea8ce1403dc95ff63c4a7375c,
it added wrapper to file-native. Do the same thing for
nativesdk-file.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoopenssh: avoid screen sessions being killed on disconnect with systemd
Paul Eggleton [Tue, 14 Oct 2014 13:39:10 +0000 (14:39 +0100)]
openssh: avoid screen sessions being killed on disconnect with systemd

Tell systemd just to kill the sshd process when the ssh connection drops
instead of the entire cgroup for sshd, so that any screen sessions (and
more to the point, processes within them) do not get killed.

(This is what the Fedora sshd service file does, and what we're already
doing in the dropbear service file).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agopython: force off_t size to 8 to enable large file support
Paul Eggleton [Tue, 14 Oct 2014 09:20:24 +0000 (10:20 +0100)]
python: force off_t size to 8 to enable large file support

If DISTRO_FEATURES contains "largefile", force the size of off_t to 8 as
a workaround for having ac_cv_sizeof_off_t=4 on 32-bit systems. In
future we will likely drop the value from the site file, but for now
this is a slightly safer fix.

Fixes [YOCTO #6813].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agowic/bootimg-pcbios.py: checking the existance of syslinux
Hongxu Jia [Mon, 13 Oct 2014 10:46:34 +0000 (18:46 +0800)]
wic/bootimg-pcbios.py: checking the existance of syslinux

While syslinux not existed in $bootimg_dir, there was a error:

$ wic create directdisk -e core-image-minimal
...
|Creating image(s)...
|Error: exec_cmd: install -m 444 /home/jiahongxu/yocto/
build-20141010-yocto/tmp/deploy/images/qemux86-64/syslinux/
ldlinux.sys /var/tmp/wic/build/hdd/boot/ldlinux.sys
returned '1' instead of 0
...

Add checking for the existance of syslinux to fix this issue.
If syslinux didn't exist in anywhere, prompt user to build it.

[YOCTO #6826]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agobuild-appliance-image: Update to dizzy head revision
Richard Purdie [Sat, 11 Oct 2014 07:11:11 +0000 (08:11 +0100)]
build-appliance-image: Update to dizzy head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogcc: backport patch for gcc bug 61144
Saul Wold [Sat, 11 Oct 2014 06:46:16 +0000 (23:46 -0700)]
gcc: backport patch for gcc bug 61144

This fixes gcc bug 6144, which in my case exhibited itself as a kernel
module that failed to load. This was because static platform_data
structures were being corrupted with the optimiser being set to any
value other than -O0.

Originally-submitted-by: Peter Urbanec <openembedded-devel@urbanec.net>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopackage_deb: skip pre/postrm scripts on upgrade, write only one shebang
Andreas Oberritter [Fri, 10 Oct 2014 23:36:42 +0000 (18:36 -0500)]
package_deb: skip pre/postrm scripts on upgrade, write only one shebang

Trying to upgrade busybox removing symlinks but update-alternatives
need these links (sed, cut, tail, etc) in order to work.

Adding test to avoid this scripts on upgrade fix the problem, same
solution are found in package_rpm class.

[YOCTO #6768]

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agomesa_git.bb: Fix fetch and license errors.
Randy Witt [Fri, 10 Oct 2014 22:39:18 +0000 (15:39 -0700)]
mesa_git.bb: Fix fetch and license errors.

Without these changes mesa_git.bb can't be enabled as the
PREFERRED_VERSION due to build breakage.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobuild-appliance-image: Update to dizzy head revision
Richard Purdie [Fri, 10 Oct 2014 21:40:53 +0000 (22:40 +0100)]
build-appliance-image: Update to dizzy head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopackage_do_shlibs: Look for provider in the path thats in shlib_provider dictionary
Khem Raj [Thu, 9 Oct 2014 05:33:05 +0000 (22:33 -0700)]
package_do_shlibs: Look for provider in the path thats in shlib_provider dictionary

shlib2 code puts the information about path where a provider
will be found. e.g.

{'/usr/lib/llvm3.3': ('libllvm3.3-llvm-3.3', '3.3')}

This is obtained from new shlib2 pkgdata from

llvm3.3/3.3-r0/pkgdata/shlibs2/libllvm3.3-llvm-3.3.list

However when we search for NEEDED libraries we ignore the
key above which is the path where the provider library is installed
and instead just seach in libdir and base_libdir and hence
libraries which are not in above standard search paths gets
ignored even if they appear in DT_NEEDED sections

and a note is emitted

NOTE: Couldn't find shared library provider for libLLVM-3.3.so, used by
files: ....

IMO this note should actually become an error since if we do
not have all DT_NEEDED libraries in image the system is dysfunctional.

This patch extracts this libpath from key and add it to seach paths
when looing for a provider of a shared library

[YOCTO #6798]

Change-Id: Ie5f08632e37ba8d3439c8aaae33bc68b8996792f
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobuild-appliance-image: Update to dizzy head revision
Richard Purdie [Fri, 10 Oct 2014 17:19:46 +0000 (18:19 +0100)]
build-appliance-image: Update to dizzy head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobuild-appliance-image: Update to dizzy head revision
Richard Purdie [Fri, 10 Oct 2014 17:18:22 +0000 (18:18 +0100)]
build-appliance-image: Update to dizzy head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoncurses: enable-pc-files requires PKG_CONFIG_LIBDIR existed
Robert Yang [Tue, 23 Sep 2014 04:31:39 +0000 (21:31 -0700)]
ncurses: enable-pc-files requires PKG_CONFIG_LIBDIR existed

Fixed ncurses.do_configure:
configure: WARNING: did not find library /path/to/tmp/sysroots/qemuarm/usr/lib/pkgconfig

And then anyone requires ncurses.pc will fail.

The configure.in checks:
[snip]
if test -n "$PKG_CONFIG_LIBDIR" && test -d "$PKG_CONFIG_LIBDIR" ; then
[snip]

Create PKG_CONFIG_LIBDIR in do_configure will fix the problem.

We can reproduce the problem by:
Set SSTATE_DIR=/path/to/sstate-cache
1) In build1, make sure everything is ready in SSTATE_DIR
$ bitbake ncurses
2) In build2, rebuild ncurses only:
$ bitbake ncurses -ccleansstate && bitbake ncurses

Then we will see the warning in log.do_configure.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoglibc: remove bad patch snippet that eglibc forward ported
Saul Wold [Fri, 10 Oct 2014 15:20:22 +0000 (08:20 -0700)]
glibc: remove bad patch snippet that eglibc forward ported

The s_sin.c patch undoes some code changes in glibc itself, these changes have nothing to
do with the option groups and I suspect crept in as part of the initial conversion.  Undoing
this patch also fixes a test failure in test-double and test-idouble.

[YOCTO #6808]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoolchains-scripts: Add support for target environment scripts
Richard Purdie [Fri, 10 Oct 2014 10:34:05 +0000 (11:34 +0100)]
toolchains-scripts: Add support for target environment scripts

In a similar way to the previous script which adds support for native
environment scripts, this adds support for target environment scripts
too.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosdk.py: fix write target sdk manifest failed based on ipk
Hongxu Jia [Fri, 10 Oct 2014 08:25:55 +0000 (16:25 +0800)]
sdk.py: fix write target sdk manifest failed based on ipk

bitbake meta-toolchain
ls tmp/deploy/sdk/poky-glibc-x86_64-meta-toolchain-i586-toolchain-1.7.manifest -al
...
|-rw-rw-r-- 1 root root 0 Oct 10 15:05 tmp/deploy/sdk/poky-glibc-x86_64-
meta-toolchain-i586-toolchain-1.7.manifest
...

The manifest is empty, the reason is target's ipk config path is
d.getVar('IPKGCONF_TARGET') rather than d.getVar('IPKGCONF_Target')

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agowpa-supplicant: fix for rebuild
Robert Yang [Fri, 10 Oct 2014 05:55:07 +0000 (22:55 -0700)]
wpa-supplicant: fix for rebuild

Fixed when rebuild:
make: *** No rule to make target `/path/to/old//sysroots/qemux86-64/usr/lib/dbus-1.0/include/dbus/dbus-arch-deps.h', needed by `dbus/dbus_old.o'.  Stop.

The .d files save the path of the dependencies files which may not exist
when rebuild, we can remove them to make the rebuild work.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogit: fix do_install error
Robert Yang [Wed, 8 Oct 2014 08:04:03 +0000 (01:04 -0700)]
git: fix do_install error

Fixed when MACHINE = qemux86-64 and libdir = /usr/lib64:
mv: cannot stat `/path/to/image/usr/lib64/perl-native/perl': No such file or directory

The perl-native files are always installed to /usr/lib on both 32/64
bits targets.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
10 years agoavahi-ui: fix for building systemd with multilib
Robert Yang [Thu, 9 Oct 2014 15:37:41 +0000 (08:37 -0700)]
avahi-ui: fix for building systemd with multilib

Fixed:
MACHINE = "qemux86-64"
VIRTUAL-RUNTIME_init_manager = " systemd "
DISTRO_FEATURES_append = " systemd"
DISTRO_FEATURES_BACKFILL_CONSIDERED += " sysvinit "

require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "x86"

$ bitbake avahi avahi-ui
ERROR: QA Issue: avahi-ui: Files/directories were installed but not shipped
  /lib
  /lib/systemd
  /lib/systemd/system
  /lib/systemd/system/avahi-daemon.socket
  /lib/systemd/system/avahi-dnsconfd.service
  /lib/systemd/system/avahi-daemon.service [installed-vs-shipped]
ERROR: The recipe avahi-ui is trying to install files into a sharedarea when those files already exist. Those files and their manifestlocation are:
   /path/to/sysroots/qemux86-64/lib/systemd/system/avahi-daemon.socket
 Matched in manifest-qemux86-64-avahi.populate_sysroot
 /path/to/sysroots/qemux86-64/lib/systemd/system/avahi-dnsconfd.service
 Matched in manifest-qemux86-64-avahi.populate_sysroot
 /path/to/sysroots/qemux86-64/lib/systemd/system/avahi-daemon.service
 Matched in manifest-qemux86-64-avahi.populate_sysroot
Please verify which recipe should provide theabove files.

And remove the duplicated line:
rm ${D}${base_libdir} -rf

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
10 years agonss-myhostname: skip it when systemd
Robert Yang [Thu, 9 Oct 2014 09:39:09 +0000 (02:39 -0700)]
nss-myhostname: skip it when systemd

Fixed error when systemd is in DISTRO_FEATURES:
ERROR: The recipe systemd is trying to install files into a sharedarea when those files already exist. Those files and their manifestlocation are:
   /path/to/sysroots/qemux86/usr/lib/libnss_myhostname.so.2
 Matched in manifest-qemux86-nss-myhostname.populate_sysroot
Please verify which recipe should provide theabove files.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
10 years agorpcbind: make service socket activated
Chen Qi [Thu, 9 Oct 2014 05:35:07 +0000 (13:35 +0800)]
rpcbind: make service socket activated

Instead of setting 'Restart=always' in the service file, we should
make the service socket activated, just like what Fedora does.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
10 years agosstate.bbclass: split the too long line
Robert Yang [Wed, 8 Oct 2014 06:04:38 +0000 (23:04 -0700)]
sstate.bbclass: split the too long line

The too long line would cause "git send-email" report errors:
patch contains a line longer than 998 characters

Though we can use "--no-validate" to force the send.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
10 years agosstate.bbclass: the second bb.fatal not work
Robert Yang [Wed, 8 Oct 2014 05:52:58 +0000 (22:52 -0700)]
sstate.bbclass: the second bb.fatal not work

The code:
bb.fatal("foo1")
bb.fatal("foo2")

Would make the second one not work, use bb.error for first one to fix
the problem.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
10 years agovalgrind: Enforce 30 seconds limit for each test
Tudor Florea [Wed, 8 Oct 2014 01:43:27 +0000 (03:43 +0200)]
valgrind: Enforce 30 seconds limit for each test

Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoboost: fix build when ${PARALLEL_MAKE} contains '-l'
Enrico Scholz [Tue, 7 Oct 2014 12:07:11 +0000 (14:07 +0200)]
boost: fix build when ${PARALLEL_MAKE} contains '-l'

The '-l' option which is valid for GNU make (--> limit by load) has a
different meaning in bjam (--> limit maximum execution time) and will
break very likely the build.

Keep only the the '-l' option when passing PARALLEL_MAKE options to
bjam.

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
10 years agodosfstools: place files in /sbin, not in /usr/sbin
Enrico Scholz [Tue, 7 Oct 2014 12:07:33 +0000 (14:07 +0200)]
dosfstools: place files in /sbin, not in /usr/sbin

systemd expects fsck programs to be located in /sbin and fails for
dosfstools with

| Checking was requested for ..., but /sbin/fsck.vfat cannot be used: No such file or directory

Other fsck programs (e.g. ext4) are located in /sbin already so move
vfat programs into this directory too.

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
10 years agopython-pygobject: add libffi to DEPENDS
Ross Burton [Fri, 19 Sep 2014 23:36:40 +0000 (00:36 +0100)]
python-pygobject: add libffi to DEPENDS

libffi is generally present as it's also a build dependency on glib-2.0, but
explicitly declare it for determinism.

Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoneard: update service file
Ross Burton [Tue, 24 Jun 2014 09:45:58 +0000 (10:45 +0100)]
neard: update service file

Update the service file to more closely match the service file that has been
committed upstream.

In particular we don't want to restart neard on failure (this results in it
restarting repeatedly if no NFC hardware is found), redirecting stdout to
/dev/null means that any messages are lost instead of being sent to the journal,
and the DBus alias is required for bus activation to work correctly.

Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoxserver-xorg: update patch to match upstream
Ross Burton [Wed, 9 Jul 2014 10:06:55 +0000 (11:06 +0100)]
xserver-xorg: update patch to match upstream

10 years agooe-git-proxy: use SOCKS4a instead of SOCKS4
Ross Burton [Tue, 26 Aug 2014 14:44:42 +0000 (15:44 +0100)]
oe-git-proxy: use SOCKS4a instead of SOCKS4

In some situations where a proxy is required the client can't even do DNS
lookups, so instead of using SOCKS4 use SOCKS4a which moves the name resolution
from the client to the proxy.

Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agognome-desktop-testing: Fix build on uclibc
Khem Raj [Sun, 5 Oct 2014 23:16:19 +0000 (16:16 -0700)]
gnome-desktop-testing: Fix build on uclibc

[YOCTO #6577]

Change-Id: Ia29fb963a7df4e77504993172f85851e0b540c7e
Signed-off-by: Khem Raj <raj.khem@gmail.com>
10 years agocurl: add PACKAGECONFIG option to use libssh2
Fabrice Coulon [Fri, 3 Oct 2014 08:21:49 +0000 (10:21 +0200)]
curl: add PACKAGECONFIG option to use libssh2

The user can enable libssh2 via conf/local.conf or custom distro
configuration, this will pull in libssh2, which is not used by default.

For example, a curl_x.y.z.bbappend file containing the following line:
PACKAGECONFIG += "libssh2"

Signed-off-by: Fabrice Coulon <fabrice.coulon@axis.com>
Signed-off-by: Olof Johansson <olof.johansson@axis.com>
10 years agoxserver-xorg: report DRI3 and Present modules as present
Ross Burton [Fri, 26 Sep 2014 21:48:51 +0000 (22:48 +0100)]
xserver-xorg: report DRI3 and Present modules as present

The DRI3 and Present modules are built-in but some drivers (such as
xf86-video-intel) want to query their presence.  Backport a patch from upstream
to stop this causing an error.

[ YOCTO #6583 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agolatencytop: Creates x11 PACKAGECONFIG.
Noor [Tue, 30 Sep 2014 16:03:43 +0000 (21:03 +0500)]
latencytop: Creates x11 PACKAGECONFIG.

* Creates x11 packageconfig and update DEPENDS and EXTRA_OEMAKE_X
  for better handling.

Signed-off-by: Noor Ahsan <noor_ahsan@mentor.com>
10 years agolibassuan: fix for rebuild
Robert Yang [Fri, 10 Oct 2014 05:55:06 +0000 (22:55 -0700)]
libassuan: fix for rebuild

Fixed when rebuild:
rm: cannot remove `/path/to/2.1.2-r0/libassuan-2.1.2/m4/*.m4': No such file or directory

The files may not exist when rebuild.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agometa-toolchain-qt: Fix environment population
Otavio Salvador [Thu, 9 Oct 2014 21:53:14 +0000 (18:53 -0300)]
meta-toolchain-qt: Fix environment population

The generation of the environment has change since the change to use a
meta-environment canadian package in the OE-Core, the SDK environment
setting has been broken. This uses the new subscript environment to
fix it.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoolchain-scripts.bbclass: Allow sourcing of subscript for environment
Otavio Salvador [Thu, 9 Oct 2014 21:53:13 +0000 (18:53 -0300)]
toolchain-scripts.bbclass: Allow sourcing of subscript for environment

Sometimes we require extra environment settings to be available on the
environment for proper SDK work. This were done, in past, using
'_append' tasks however with the split of the environment in a
canadian package this has been broken.

The easier and more flexible solution is to use environment subscripts
which are sources by the main script. These are now looked at:

 $OECORE_NATIVE_SYSROOT/environment-setup.d/*.sh

and sourced.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopackage_ipk.bbclass: Fix SRC_URI whitespace handling
Mark Hatle [Mon, 6 Oct 2014 14:05:08 +0000 (09:05 -0500)]
package_ipk.bbclass: Fix SRC_URI whitespace handling

The SRC_URI may contain whitespace, but be otherwise empty.  This can happen
in the case:

MYSRC = ""
MYSRC_arm = "file://myarm.patch"
SRC_URI += "${MYSRC}"

Unless we strip blank spaces, to determine if it is empty, we can end up
generating a "Source: " line which in invalid.  This leads to the error:

  invalid Source: field is speified in the generated CONTROL file

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobash: update and CVE-2014-6278 fix
Mark Hatle [Mon, 6 Oct 2014 14:44:54 +0000 (09:44 -0500)]
bash: update and CVE-2014-6278 fix

Update both bash 3.2.48 (to 57), and bash 4.3 (to 30) to fix the remaining
'shellshock' security issues, CVE-2014-6278.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinuxdoc-tools-native: Makedoc.sh uses /tmp and fails w/ noexec mount
Konrad Scherer [Mon, 6 Oct 2014 14:50:12 +0000 (09:50 -0500)]
linuxdoc-tools-native: Makedoc.sh uses /tmp and fails w/ noexec mount

The Makedoc.sh script uses the following line to set TMPDIR

export TMPDIR=`mktemp -d ${TMPDIR:-/tmp}/ldt.XXXXXXXXXX`;

and then later in the script:

chmod u+x $TMPDIR/linuxdoc

Since TMPDIR is not set the script will default to /tmp and if /tmp
is set to noexec (which is becoming more common), the chmod call fails.

Signed-off-by: Konrad Scherer <Konrad.Scherer@windriver.com>
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopackage.bbclass: Reverse runtime symlinks should be tied to package generation
Otavio Salvador [Sun, 5 Oct 2014 15:14:22 +0000 (12:14 -0300)]
package.bbclass: Reverse runtime symlinks should be tied to package generation

In case a package is not generated (is empty and does not has allow
empty flag set) the package data regarding reverse runtime dependency
shouldn't be done.

This were causing a false-positive in the meta-fsl-arm layer, when
building mesa, as:

,----[ Error during build of MX53 in meta-fsl-arm ]
| ERROR: The recipe mesa is trying to install files into a shared area
|  when those files already exist. Those files and their manifest
|  location are:
|    /.../build/build/tmp/sysroots/imx53qsb/pkgdata/runtime-reverse/libopenvg-dev
|    Matched in manifest-imx53qsb-amd-gpu-x11-bin-mx51.packagedata
| Please verify which recipe should provide the above files.
`----

Fixes [YOCTO: #6795]

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoLTP - realtime tests - fix bad robust mutex conditionals
Gary S. Robertson [Fri, 3 Oct 2014 15:17:48 +0000 (10:17 -0500)]
LTP - realtime tests - fix bad robust mutex conditionals

The tests for robust mutexes contained conditional clauses which failed in
autoconf and/or used nonexistent variable names.  Modified these
conditional clauses to use only the variables actually created by
LTP autoconf for this purpose.

Signed-off-by: Gary S. Robertson <gary.robertson@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoLTP - realtime tests - fix bad PI mutex conditionals
Gary S. Robertson [Fri, 3 Oct 2014 15:17:47 +0000 (10:17 -0500)]
LTP - realtime tests - fix bad PI mutex conditionals

The priority inheritance tests for mutexes used conditional variables
which were non-existent.  Changed the conditional clauses to use the
variables which were actually generated by LTP autoconf for that purpose.

Signed-off-by: Gary S. Robertson <gary.robertson@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobash: Upgrade bash to latest patch level to fix CVEs
Mark Hatle [Fri, 3 Oct 2014 14:51:25 +0000 (09:51 -0500)]
bash: Upgrade bash to latest patch level to fix CVEs

We upgrade bash_4.3 to patch revision 29, and bash_3.2.48 to 56.

There are numerous community bug fixes included with this set, but the key
items are:

bash32-052      CVE-2014-6271                           9/24/2014
bash32-053      CVE-2014-7169                           9/26/2014
bash32-054      exported function namespace change      9/27/2014
bash32-055      CVE-2014-7186/CVE-2014-7187             10/1/2014
bash32-056      CVE-2014-6277                           10/2/2014

bash43-025      CVE-2014-6271                           9/24/2014
bash43-026      CVE-2014-7169                           9/26/2014
bash43-027      exported function namespace change      9/27/2014
bash43-028      CVE-2014-7186/CVE-2014-7187             10/1/2014
bash43-029      CVE-2014-6277                           10/2/2014

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopseudo*.bb: update to pseudo 1.6.2
Peter Seebach [Fri, 3 Oct 2014 22:58:31 +0000 (17:58 -0500)]
pseudo*.bb: update to pseudo 1.6.2

pseudo 1.6.2 fixes problems with 64-bit inodes and some underlying issues
involving file renames that could occasionally cause very strange behaviors
files being deleted, linked, or renamed, mostly observed as strange
recovery if an inode got reused.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocross-canadian: Disable the packagedata stamp-extra-info
Richard Purdie [Fri, 3 Oct 2014 16:50:35 +0000 (16:50 +0000)]
cross-canadian: Disable the packagedata stamp-extra-info

Similarly to native/cross disable this since otherwise the packagedata
can be marked as machine specific and if you switch machines
which share an architecture, you'll get toolchain overlapping files
errors.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agometa-environment: Deal with machines which change TARGET_OS
Richard Purdie [Fri, 3 Oct 2014 16:52:22 +0000 (16:52 +0000)]
meta-environment: Deal with machines which change TARGET_OS

Some machines change TARGET_OS, cross-canadian resets this which
is not what we want in this specific case. This fixes spe toolchains
for example.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogcc-runtime: Add linux-gnuspe symlink to fix c++ headers
Richard Purdie [Fri, 3 Oct 2014 17:03:25 +0000 (17:03 +0000)]
gcc-runtime: Add linux-gnuspe symlink to fix c++ headers

Some architectures can mix different TARGET_OS values, in most cases
we just use one but in the ppc case, can use two different values. In this
case, to use one toolchain with both, we need to ensure the symlinks exist.

This isn't ideal but does fix the ppc toolchains for the release, after
which better ways of handling this can be investiaged. Without this, failures
in the C++ toolchain are seen.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokernel.bbclass: enable a link for external module building
Nitin A Kamble [Tue, 30 Sep 2014 21:40:05 +0000 (14:40 -0700)]
kernel.bbclass: enable a link for external module building

Even though the kernel-dev package provides the required support for
building external kernel modules on the target, some commonly used scripts
and utilities fail as they are not finding the kernel module build support
files at the desired location.

Create the /lib/modules/<kernel-version>/build link on target pointing to
the sources provided by the kernel-dev package, to fix the issue.

Fixes Bug:
[YOCTO #2968]

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokernel: Added bc-native as DEPENDS
Alejandro Hernandez [Thu, 2 Oct 2014 20:33:23 +0000 (15:33 -0500)]
kernel: Added bc-native as DEPENDS

The makefile checks for bc during for compilation

[YOCTO #6781]

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoadt-installer: Fix to work with meta-environment changes
Richard Purdie [Fri, 3 Oct 2014 11:24:21 +0000 (12:24 +0100)]
adt-installer: Fix to work with meta-environment changes

There is a proper sysroot specified in the meta-environment script now,
which isn't a bad thing. We adjust the sed expression to cope with this.

That means the SDK installations in non-default paths start to work again.

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