]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
9 years agoshared-mime-info: reorder SRC_URI lines to fix upstream version check
Alexander Kanavin [Fri, 10 Jul 2015 09:33:54 +0000 (12:33 +0300)]
shared-mime-info: reorder SRC_URI lines to fix upstream version check

Upstream tarball should be listed first.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosyslinux: drop v6.xx/ from directory path in SRC_URI
Alexander Kanavin [Fri, 10 Jul 2015 09:33:07 +0000 (12:33 +0300)]
syslinux: drop v6.xx/ from directory path in SRC_URI

This allows upstream version check.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopseudo: fix upstream SRC_URI to enable upstream version check
Alexander Kanavin [Tue, 7 Jul 2015 17:03:48 +0000 (20:03 +0300)]
pseudo: fix upstream SRC_URI to enable upstream version check

Previous URI did not allow directory listings.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibmad: use ftp instead of sourceforge for consistency with libid3tag
Alexander Kanavin [Tue, 28 Jul 2015 12:00:22 +0000 (15:00 +0300)]
libmad: use ftp instead of sourceforge for consistency with libid3tag

Both ftp and SF are official code sources, but ftp is less finicky
for upstream version checks.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoeglinfo: change version from 1.0 to 1.0.0 to match the upstream git tag
Alexander Kanavin [Tue, 28 Jul 2015 11:39:15 +0000 (14:39 +0300)]
eglinfo: change version from 1.0 to 1.0.0 to match the upstream git tag

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoossp-uuid: update SRC_URI to not use Google Code
Alexander Kanavin [Fri, 26 Jun 2015 13:06:32 +0000 (16:06 +0300)]
ossp-uuid: update SRC_URI to not use Google Code

Google Code is shutting down so tarballs will be fetched from a Debian mirror
instead

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoadt-installer: update SRC_URI to not use Google Code
Alexander Kanavin [Fri, 26 Jun 2015 13:06:03 +0000 (16:06 +0300)]
adt-installer: update SRC_URI to not use Google Code

Google Code is shutting down and opkg tarballs are now available
from yoctoproject.org

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibproxy: update SRC_URI to not use Google Code
Alexander Kanavin [Fri, 26 Jun 2015 13:04:07 +0000 (16:04 +0300)]
libproxy: update SRC_URI to not use Google Code

Google Code is shutting down soon, so libproxy tarball is now fetched
from Debian mirrors

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/sstatetests.py: add annotator to test_sstate_32_64_same_hash [YOCTO #6006]
Costin Constantin [Thu, 30 Jul 2015 11:35:43 +0000 (14:35 +0300)]
oeqa/sstatetests.py: add annotator to test_sstate_32_64_same_hash [YOCTO #6006]

Signed-off-by: Costin Constantin <costin.c.constantin@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/sstatetests.py: add decorator to test_sstate_nativelsbstring_same_hash
Costin Constantin [Thu, 30 Jul 2015 11:54:27 +0000 (14:54 +0300)]
oeqa/sstatetests.py: add decorator to test_sstate_nativelsbstring_same_hash

Signed-off-by: Costin Constantin <costin.c.constantin@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoalsa-utils: assume the alsa storing is success if machine has no sound card
Roy Li [Thu, 30 Jul 2015 03:03:27 +0000 (11:03 +0800)]
alsa-utils: assume the alsa storing is success if machine has no sound card

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agotzdata: Add marking for config files in recipe
Li Zhou [Thu, 30 Jul 2015 05:20:23 +0000 (13:20 +0800)]
tzdata: Add marking for config files in recipe

The tzdata recipe does not mark the /etc/timezone file and
/etc/localtime link as configuration files. An on target update would
then overwite the user modified versions of those files.
Add those files in CONFFILES_${PN}.

Signed-off-by: Li Zhou <li.zhou@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agocreate-pull-request: Implement -d option
Ed Bartosh [Thu, 30 Jul 2015 11:10:51 +0000 (14:10 +0300)]
create-pull-request: Implement -d option

This options allows to generate patches against relative directory by
using git format-patch --relative option.
See more details about --relative option in git diff manual page.

For example generating bitbake patchsets from poky can be
done this way: create-pull-request -u contrib -d ./bitbake

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosmartpm: set noprogress for pycurl
Kai Kang [Thu, 30 Jul 2015 06:37:23 +0000 (14:37 +0800)]
smartpm: set noprogress for pycurl

Set NOPROGRESS for pycurl just as same as default operation in pycurl
module itself. If set NOPROGRESS with 0 for pycurl, it causes dead lock
issue of Python GIL when call smart library by python gui just like
pygtk.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoqemu: upgrade to 2.4.0-rc3
Cristian Iorga [Thu, 30 Jul 2015 09:14:48 +0000 (12:14 +0300)]
qemu: upgrade to 2.4.0-rc3

Bugfixes, bring it closer to 2.4.0 final release.

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoguile: Add earlyclobber constraint to the SMULL outputs.
Jackie Huang [Wed, 29 Jul 2015 08:09:10 +0000 (16:09 +0800)]
guile: Add earlyclobber constraint to the SMULL outputs.

backport a patch to fix issue:
{standard input}: Assembler messages:
{standard input}:16966: rdhi, rdlo and rm must all be different

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agodbus: upgrade to 1.8.20
Chen Qi [Wed, 29 Jul 2015 03:33:45 +0000 (11:33 +0800)]
dbus: upgrade to 1.8.20

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogcc-multilib-config: Adapt mips for mips64 and different gcc versions
Richard Purdie [Fri, 31 Jul 2015 10:24:37 +0000 (11:24 +0100)]
gcc-multilib-config: Adapt mips for mips64 and different gcc versions

The location of some files for mips varies between gcc 4.9 and 5.2. Ensure
that we cover both cases (and allow specified files to be optional).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocross-canadian/gcc: Various mips64 fixes
Richard Purdie [Fri, 31 Jul 2015 10:38:24 +0000 (11:38 +0100)]
cross-canadian/gcc: Various mips64 fixes

"n32" is a mips64 variant we need to consider when processing the TARGET_OS
extensions. Also add the multilib extensions for mips64.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoglibc: don't override TUNE_CCARGS for MIPS
Dmitry Eremin-Solenikov [Wed, 1 Jul 2015 14:02:22 +0000 (17:02 +0300)]
glibc: don't override TUNE_CCARGS for MIPS

Overriding TUNE_CCARGS this way breaks MULTILIB setup for MIPS. This
override disables multilib handling of tunes for TUNE_CCARGS, thus
enforcing glibc's TUNE_CCARGS to the TUNE_CCARGS of main DEFAULTTUNE.

Glibc perfectly build without this override for both simple and multilib
cases.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocross.bbclass: override MULTIMACH_TARGET_SYS
Dmitry Eremin-Solenikov [Wed, 1 Jul 2015 14:02:21 +0000 (17:02 +0300)]
cross.bbclass: override MULTIMACH_TARGET_SYS

Cross packages are built for BUILD_VENDOR/BUILD_OS, rather than
TARGET_VENDOR/TARGET_OS. E.g. there is no point in hardcoding the
target's LIBCEXTENSION and ABIEXTENSION into the STAMPDIR/WORKDIR
variables (set using MULTIMACH_TARGET_SYS).

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopackagegroups-cross-canadian: don't override TRANSLATED_TARGET_ARCH
Dmitry Eremin-Solenikov [Wed, 1 Jul 2015 14:02:20 +0000 (17:02 +0300)]
packagegroups-cross-canadian: don't override TRANSLATED_TARGET_ARCH

There is no point in overriding TRANSLATED_TARGET_ARCH in
packagegroups-cross-canadian recipe. The cross-canadian class sets the
PACKAGE_ARCH variable, thus allarch class (inherited through
packagegroup class) doesn't change variables.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoarch-mips.inc: don't override TRANSLATED_TARGET_ARCH
Dmitry Eremin-Solenikov [Wed, 1 Jul 2015 14:02:19 +0000 (17:02 +0300)]
arch-mips.inc: don't override TRANSLATED_TARGET_ARCH

Currently MIPS64 N32 is broken. There is internal disagreement
between TARGET_ARCH (which doesn't contain ABIEXTENSION) and
TRANSLATED_TARGET_ARCH (which contains ABIEXTENSION). ABI is already
encoded into the TARGET_OS. ARM tunes in the same situation override
neither the TARGET_ARCH nor the TRANSLATED_TARGET_ARCH. So let's drop
this override.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agomultilib_global: Fix PREFERRED_VERSION mapping for gcc-cross-canadian
Richard Purdie [Fri, 31 Jul 2015 10:29:35 +0000 (11:29 +0100)]
multilib_global: Fix PREFERRED_VERSION mapping for gcc-cross-canadian

Our multilib cross toolchains have <ml_prefix> as a prefix however we
only have a single gcc-cross-canadian for each arch and it is not
prefixed even in the multilib case. We can have two versions of
gcc-cross-canadian, 32 and 64 bit.

This fixes the multilib PREFERRED_VERSION mapping code so that
no prefix is added to the preferred version and therefore the
right versions of gcc-cross-canadian are used.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocross-canadian: Add symlinks for multilib cases
Richard Purdie [Fri, 31 Jul 2015 10:28:56 +0000 (11:28 +0100)]
cross-canadian: Add symlinks for multilib cases

In the same way we map various TARGET_OS options back to the single
cross-canadian compiler, add mappings for the TARGET_VENDOR cases we
know about in the multilib case.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibgcc: Fix symlink handling in cross-arch multilib cases
Richard Purdie [Fri, 31 Jul 2015 10:28:22 +0000 (11:28 +0100)]
libgcc: Fix symlink handling in cross-arch multilib cases

The symlink being generated needs to match both the current arch (e.g. mips
or mips64) but also use the underlying TARGET_SYS without multilib extensions
to TARGET_VENDOR or extensions to TARGET_OS.

The way multilib changes TARGET_VENDOR meant this code did not have
a way of removing that change. The method of removing some TARGET_OS
suffixes was also not working.

By using immediate expansion to run this code, we can run before the
multilib code changes it and get the original values.

We then use the *current* TARGET_ARCH value in case this does get changed
by the multilib since we need to point at the right compiler (32 bit one
for 32 bit code).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc-multilib-config: Tweak naming of options to match gcc's expectations
Richard Purdie [Fri, 31 Jul 2015 10:27:45 +0000 (11:27 +0100)]
gcc-multilib-config: Tweak naming of options to match gcc's expectations

gcc itself does not add the '-' of options to its multilib configuration.
We should follow its example.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc-cross-canadian: Add symlink to real-ld alongside other symlinks
Richard Purdie [Fri, 31 Jul 2015 10:27:05 +0000 (11:27 +0100)]
gcc-cross-canadian: Add symlink to real-ld alongside other symlinks

In some cases such as cross architecture configurations (using mips-X-linux
on mips64-X-linux), gcc can get confused about finding a 'real' version
of ld. Adding a symlink to 'real-ld' allowed these configurations
to work properly.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc: Add patch to handle on target multilibs better
Richard Purdie [Fri, 31 Jul 2015 10:26:24 +0000 (11:26 +0100)]
gcc: Add patch to handle on target multilibs better

On target multilibs did not work properly since gcc-cross-canadian
was only searching a limited number of sysroot directories to
find multilib target binaries.

This adds an extra search path to ensure those binaries are found
and our gcc-cross-canadian works everywhere we need it to, e.g.
with mips trilib configurations.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopackagegroup-cross-canadian: Make the code more readable
Richard Purdie [Fri, 31 Jul 2015 10:25:43 +0000 (11:25 +0100)]
packagegroup-cross-canadian: Make the code more readable

Make the code more readable by using the functions slightly differently.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoutils: Handle MLPREFIX in all_multilib_tune_values()
Richard Purdie [Fri, 31 Jul 2015 10:24:01 +0000 (11:24 +0100)]
utils: Handle MLPREFIX in all_multilib_tune_values()

MLPREFIX wasn't being set by the function correctly since its
not an overridden value but directly set. Handle this variable
explicitly so the function returns the expected values.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotestimage: testsdk fixes/improvements
Richard Purdie [Fri, 31 Jul 2015 10:23:22 +0000 (11:23 +0100)]
testimage: testsdk fixes/improvements

The "bitbake meta-toolchain" comment is dated and incorrect, fix to
point at -c populate_sdk.

If a toolchain contains multiple environment files, iterate them and run
the sdk test suite on each on in turn rather than giving a fatal error and
giving up.

Also improve the debug output so that rather than PN, it also show the
toolchain tarball under test, and the environment file name its using.

Also enable the accidentally disabled cleanup code.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooe-selftest: devtool: fix teardown warning in test_devtool_update_recipe_append
Paul Eggleton [Fri, 31 Jul 2015 09:31:35 +0000 (10:31 +0100)]
oe-selftest: devtool: fix teardown warning in test_devtool_update_recipe_append

We don't need to run bitbake -c cleansstate on this because it's being
cleaned out as part of "devtool reset".

Addresses [YOCTO #8031].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: use tinfoil shutdown method
Paul Eggleton [Fri, 31 Jul 2015 09:31:34 +0000 (10:31 +0100)]
devtool: use tinfoil shutdown method

Tinfoil now has its own shutdown method, use it instead of calling into
cooker - not only is it the right thing to do from an API perspective,
it also ensures proper lock handling.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agou-boot: fix extern inline build errors for gcc 5
Kevin Hao [Fri, 31 Jul 2015 05:21:25 +0000 (13:21 +0800)]
u-boot: fix extern inline build errors for gcc 5

The gcc 5 change its default standard from gnu89 to gnu11. These two
standards do have different semantics for inline functions. And the
gcc 5 will emit the following errors on the "extern inline" functions:
    arch/powerpc/cpu/mpc8xxx/fsl_lbc.o: In function `ld_le16':
    ./arch/powerpc/include/asm/byteorder.h:12: multiple definition of `ld_le16'
    arch/powerpc/cpu/mpc8xxx/fdt.o:./arch/powerpc/include/asm/byteorder.h:12: first defined here

Fix these build errors by using "-fgnu89-inline" to enforce the gnu89
inline semantics as suggested in [1].

[1] https://gcc.gnu.org/gcc-5/porting_to.html

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocombo-layer: fix AttributeError traceback.
Alexander Kanevskiy [Thu, 30 Jul 2015 16:49:17 +0000 (19:49 +0300)]
combo-layer: fix AttributeError traceback.

Commit c908a423f85a84ddd8249abd00254f29d47df74b introduced a new
issue in combo-layer that leads to a traceback as
args.hard_reset is an unknown variable. This change defines an
appropriate destination for the command args parser and fixes the
reference.

Signed-off-by: Alexander Kanevskiy <kad@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosshcontrol: Use os.environ.copy() instead of copy.copy()
Richard Purdie [Wed, 29 Jul 2015 09:50:49 +0000 (10:50 +0100)]
sshcontrol: Use os.environ.copy() instead of copy.copy()

os.environ is special and copy.copy() doesn't do what we'd expect,
changes in the child object change the parent. copy.deepcopy() is
also known to have issues with it.

Use the dedicated .copy() method which will not influence the
parent. This fixes selftest failures where the DISPLAY variable
disappears.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopixbufcache: Use sceneQueueComplete event to simplify usage
Richard Purdie [Tue, 28 Jul 2015 16:51:42 +0000 (17:51 +0100)]
pixbufcache: Use sceneQueueComplete event to simplify usage

Ensuring the native pixbuf cache is correct after new loaders have
been installed is tricky. This needs to be done without races
and work regardless of whether the build is from sstate or freshly
built for one or more modules.

This adds a hook into base.bbclass which is then triggered by the
code from pixbufcache. This patch is an improved version which
means base.bbclass has no pixbuf knowledge and the mechanism can
be reused in other cases.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoarch-armv7a.inc, feature-arm-vfp.inc: add tunes for vfpv3 and vfpv3d16
André Draszik [Fri, 24 Jul 2015 13:14:30 +0000 (14:14 +0100)]
arch-armv7a.inc, feature-arm-vfp.inc: add tunes for vfpv3 and vfpv3d16

This adds tunes for ARM's v3 Vector Floating Point unit for
16 and 32 bit implementation:
http://www.arm.com/products/processors/technologies/vector-floating-point.php

See also https://wiki.debian.org/ArmHardFloatPort/VfpComparison
for a nice comparison and why vfpv3d16 is useful.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoelfutils: fix stack usage warning
Roy Li [Mon, 13 Jul 2015 01:52:36 +0000 (09:52 +0800)]
elfutils: fix stack usage warning

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobind: upgrade to 9.10.2-P2
Roy Li [Mon, 27 Jul 2015 02:45:49 +0000 (10:45 +0800)]
bind: upgrade to 9.10.2-P2

upgrade to fix CVE-2015-4620:
    name.c in named in ISC BIND 9.7.x through 9.9.x before 9.9.7-P1 and 9.10.x
    before 9.10.2-P2, when configured as a recursive resolver with DNSSEC
    validation, allows remote attackers to cause a denial of service (REQUIRE
    assertion failure and daemon exit) by constructing crafted zone data and
    then making a query for a name in that zone.

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopax-utils: 1.0.3 -> 1.0.5
Robert Yang [Mon, 27 Jul 2015 09:47:27 +0000 (02:47 -0700)]
pax-utils: 1.0.3 -> 1.0.5

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoman-pages: 4.00 -> 4.01
Robert Yang [Mon, 27 Jul 2015 09:46:03 +0000 (02:46 -0700)]
man-pages: 4.00 -> 4.01

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agohelp2man-native: 1.46.4 -> 1.47.1
Robert Yang [Mon, 27 Jul 2015 09:43:34 +0000 (02:43 -0700)]
help2man-native: 1.46.4 -> 1.47.1

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agognupg: 2.1.5 -> 2.1.6
Robert Yang [Mon, 27 Jul 2015 09:15:09 +0000 (02:15 -0700)]
gnupg: 2.1.5 -> 2.1.6

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agocracklib: 2.9.4 -> 2.9.5
Robert Yang [Mon, 27 Jul 2015 09:09:23 +0000 (02:09 -0700)]
cracklib: 2.9.4 -> 2.9.5

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoless: 478 -> 479
Robert Yang [Mon, 27 Jul 2015 08:39:14 +0000 (01:39 -0700)]
less: 478 -> 479

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibuser: 0.61 -> 0.62
Robert Yang [Mon, 27 Jul 2015 08:41:15 +0000 (01:41 -0700)]
libuser: 0.61 -> 0.62

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogit: 2.4.4 -> 2.4.6
Robert Yang [Tue, 14 Jul 2015 02:55:52 +0000 (19:55 -0700)]
git: 2.4.4 -> 2.4.6

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolsbtest: sync test suite packages version
Lucian Musat [Tue, 28 Jul 2015 07:35:51 +0000 (10:35 +0300)]
lsbtest: sync test suite packages version

Sync file packages_list with upstream test suite packages version.

Signed-off-by: Lucian Musat <george.l.musat@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoqemu: add PACKAGECONFIG for gnutls
Robert Yang [Tue, 28 Jul 2015 09:05:09 +0000 (02:05 -0700)]
qemu: add PACKAGECONFIG for gnutls

Fixed:
qemu-2.3.99+2.4.0-rc2: qemu rdepends on nettle, but it isn't a build dependency? [build-deps]
qemu-2.3.99+2.4.0-rc2: qemu rdepends on gnutls, but it isn't a build dependency? [build-deps]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoqemu_git.bb: remove it
Robert Yang [Tue, 28 Jul 2015 09:05:10 +0000 (02:05 -0700)]
qemu_git.bb: remove it

Remove it since we have 2.4.0, the git version is 1.3 can't be built by
deafult:
ERROR: Fetcher failure: Unable to find revision 04024dea2674861fcf13582a77b58130c67fccd8 in branch master even from upstream

We can fix it, but seems that no one uses it any more.

And move patches from "files" dir to "qemu" dir.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolighttpd: 1.4.35 -> 1.4.36
Kai Kang [Tue, 28 Jul 2015 09:38:10 +0000 (17:38 +0800)]
lighttpd: 1.4.35 -> 1.4.36

Upgrade lighttpd from 1.4.35 to 1.4.36.

* Remove PR
* Update context of 0001-mod_cgi-buffers-data-without-bound.patch

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoopkg-utils: use ${bindir} instead of hardcoding /usr/bin
André Draszik [Fri, 24 Jul 2015 12:48:48 +0000 (13:48 +0100)]
opkg-utils: use ${bindir} instead of hardcoding /usr/bin

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorun-postinsts: use ${localstatedir} instead of hardcoding /var/lib
André Draszik [Fri, 24 Jul 2015 12:48:47 +0000 (13:48 +0100)]
run-postinsts: use ${localstatedir} instead of hardcoding /var/lib

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoinitscripts: urandom: respect ${localstatedir} instead of hardcoding /var
André Draszik [Fri, 24 Jul 2015 12:48:46 +0000 (13:48 +0100)]
initscripts: urandom: respect ${localstatedir} instead of hardcoding /var

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoopkg: read config file from ${sysconfdir} instead of /etc
André Draszik [Fri, 24 Jul 2015 12:48:45 +0000 (13:48 +0100)]
opkg: read config file from ${sysconfdir} instead of /etc

Opkg's configure script doesn't use the value from --sysconfdir to determine
the location of the conf file, it uses the value from --with-opkgetcdir

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorsync: use ${sysconfdir} instead of hardcoding /etc
André Draszik [Fri, 24 Jul 2015 12:48:44 +0000 (13:48 +0100)]
rsync: use ${sysconfdir} instead of hardcoding /etc

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibepoxy: Don't try to use python3 during configuration
Gary Thomas [Fri, 24 Jul 2015 16:17:48 +0000 (10:17 -0600)]
libepoxy: Don't try to use python3 during configuration

The scripts use argparse which is only in Python 3.2 onwards, so to avoid
failures on hosts using 3.0 or 3.1 just look for Python 2.

Signed-off-by: Gary Thomas <gary@mlbassoc.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agotoolchain-scripts: Extend to cover nativesdk compiler tools (e.g. nativesdk-gcc)
Richard Purdie [Tue, 28 Jul 2015 13:23:42 +0000 (14:23 +0100)]
toolchain-scripts: Extend to cover nativesdk compiler tools (e.g. nativesdk-gcc)

This is needed when we add nativesdk-gcc/binutil to an SDK. Being
present doesn't hurt in other cases.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-firmware: upgrade to commit 75cc3ef8ba6712fd72c073b17a790282136cc743
Cristian Iorga [Tue, 28 Jul 2015 13:41:07 +0000 (16:41 +0300)]
linux-firmware: upgrade to commit 75cc3ef8ba6712fd72c073b17a790282136cc743

- Intel copyright years changed;
- Advanced Micro Devices copyright years changed;

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc: Add support for nativesdk-gcc
Richard Purdie [Tue, 28 Jul 2015 13:23:37 +0000 (14:23 +0100)]
gcc: Add support for nativesdk-gcc

Being able to build a nativesdk gcc is useful, particularly in cases
where the host compiler may be of an incompatible version (or a 32
bit compiler is needed).

Sadly, building nativesdk-gcc is not straight forward. We install
nativesdk-gcc into a relocatable location and this means that its
library locations can change. "Normal" sysroot support doesn't help
in this case since the values of paths like "libdir" change, not just
base root directory of the system.

In order to handle this we do two things:

a) Add %r into spec file markup which can be used for injected paths
   such as SYSTEMLIBS_DIR (see gcc_multilib_setup()).
b) Add other paths which need relocation into a .gccrelocprefix section
   which the relocation code will notice and adjust automatically.

This patch adds tweaks to the relocation script to handle the
new section too.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobinutils: Add nativesdk support
Richard Purdie [Tue, 28 Jul 2015 13:23:31 +0000 (14:23 +0100)]
binutils: Add nativesdk support

As part of adding nativesdk toolchain support, enable
nativesdk-binutils.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolib/oe/classextend: Fix nativesdk double name mapping
Richard Purdie [Tue, 28 Jul 2015 13:22:53 +0000 (14:22 +0100)]
lib/oe/classextend: Fix nativesdk double name mapping

Handle the case a name has already been extended in the nativesdk case
(avoids double name extensions which can happen with nativesdk-gcc).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoharfbuzz: upgrade to 1.0.1
Cristian Iorga [Mon, 27 Jul 2015 14:43:50 +0000 (17:43 +0300)]
harfbuzz: upgrade to 1.0.1

- Update to Unicode 8.0;
- Implement Universal Shaping Engine;
- Bug fixes.

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoopkg-utils: fix bashism in opkg-build
Dominic Sacré [Mon, 27 Jul 2015 15:34:23 +0000 (17:34 +0200)]
opkg-utils: fix bashism in opkg-build

Fix error '[[: not found' if /bin/sh is not bash.

This issue was introduced by the recent addition of tar_ignore_error.patch
to the opkg-utils recipe.

Signed-off-by: Dominic Sacré <dominic.sacre@gmx.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocross-canadian: Put links in place for uclibc and musl
Richard Purdie [Sat, 25 Jul 2015 13:47:52 +0000 (14:47 +0100)]
cross-canadian: Put links in place for uclibc and musl

gcc-cross-canadian-<arch> is only built once. It needs to target all the
different libcs, not just the currently selected one. This change
ensures that if another libc is used, symlinks are present such that the
compiler can be found. The base version is always assumed to be "glibc"
with symlinks from musl and uclibc compiler names.

This means gcc-cross-canadian is consistent regardless of which libc is
selected when its build in multimachine builds.

[YOCTO #8025]

(From OE-Core rev: 83ead626c0da75edec2833ffb1a29011ec7b83d2)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotoolchain-scripts: For non-glibc, pass compiler options to ensure the correct libc...
Richard Purdie [Sat, 25 Jul 2015 13:48:21 +0000 (14:48 +0100)]
toolchain-scripts: For non-glibc, pass compiler options to ensure the correct libc selection

gcc-cross-canadian-<arch> is only built once. It needs to target all the
different libcs, not just the currently selected one. This change ensures
that if another libc is used, the compiler correctly selects the right one.

[YOCTO #8025]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/qemurunner: Fix AttributeError: QemuRunner instance has no attribute 'server_socket'
Richard Purdie [Mon, 27 Jul 2015 21:15:57 +0000 (22:15 +0100)]
oeqa/qemurunner: Fix AttributeError: QemuRunner instance has no attribute 'server_socket'

If start() returns False due to create_socker() failing, stop() may still get
called and currently this gives a track back since server_socket doesn't exist.

Avoid this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agonativesdk-qt4-tools: depend on nativesdk-qt4-tools only if DISTRO_FEATURES includes x11
Pascal Bach [Mon, 27 Jul 2015 13:22:58 +0000 (15:22 +0200)]
nativesdk-qt4-tools: depend on nativesdk-qt4-tools only if DISTRO_FEATURES includes x11

Currently nativesdk-qt4-tools can't be built if the DISTRO_FEATURES doesn't contain x11.
To make it build we add a dependency to x11 only if the feature is activated.

Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosecurity-flags: Disable PIE for coreutils, elfutils, gcc, iptables
Richard Purdie [Mon, 27 Jul 2015 11:26:30 +0000 (12:26 +0100)]
security-flags: Disable PIE for coreutils, elfutils, gcc, iptables

With gcc 5, we need to disable the PIE flags for more recipes in order
to have successful builds.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoqemurunner: Show last 25 line of log, not 5
Richard Purdie [Mon, 27 Jul 2015 13:28:24 +0000 (13:28 +0000)]
qemurunner: Show last 25 line of log, not 5

For debugging purposes, 5 lines often isn't useful as it doesn't even
cover a full backtrace. Show 25 instead.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotargetcontrol: Improve logs by outputting qemu boot log in case of failure
Richard Purdie [Mon, 27 Jul 2015 13:24:22 +0000 (13:24 +0000)]
targetcontrol: Improve logs by outputting qemu boot log in case of failure

We've had a few cases on the autobuilder where we've lost logs of
the boot and been unable to debug it further. Show this information
onto the console to be more useful.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/selftest/devtool: use new runqemu function
Paul Eggleton [Mon, 27 Jul 2015 13:04:06 +0000 (14:04 +0100)]
oeqa/selftest/devtool: use new runqemu function

Use the common code we now have to run QEMU instead of running it
ourselves, avoiding reliance on the machine showing up at 192.168.7.2.
This also makes a copy of the image rather than using -snapshot so if we
need to inspect the image after a failure, we can.

Fixes [YOCTO #7928].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/selftest/imagefeatures: remove gummiboot tests
Paul Eggleton [Mon, 27 Jul 2015 13:04:05 +0000 (14:04 +0100)]
oeqa/selftest/imagefeatures: remove gummiboot tests

These tests were _deleting_ meta-intel if it happened to appear under
COREBASE, which could have been catastrophic if there was any work in
progress in that directory. It turns out we don't even need meta-intel,
but we do need a machine that's set up appropriately (e.g.
genericx86-64). Tests that involve layers outside of OE-Core don't
really belong in OE-Core, and genericx86-64 is in meta-yocto-bsp;
however we will soon have the capability to have selftest tests in other
layers, so remove this here so we can add a fixed version in
meta-yocto-bsp after that happens.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/selftest/imagefeatures: fix RPM4 test
Paul Eggleton [Mon, 27 Jul 2015 13:04:04 +0000 (14:04 +0100)]
oeqa/selftest/imagefeatures: fix RPM4 test

* Use our new runqemu function
* Don't hard-code the RPM4 version
* Double-check the native version is RPM4
* Check that an rpm 4.x package is in the image manifest (this isn't
  strictly necessary, but "belt-and-braces" and it serves as an example
  of how to do that)
* Check that the database is working on the target
* Ensure the image actually has openssh in it so we can connect to it

Initial runqemu adaptation by Richard Purdie <richard.purdie@linuxfoundation.org>

Part of the fix for [YOCTO #7994].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/selftest/imagefeatures: fix SSH without password tests
Richard Purdie [Mon, 27 Jul 2015 13:04:03 +0000 (14:04 +0100)]
oeqa/selftest/imagefeatures: fix SSH without password tests

* We need to set EXTRA_IMAGE_FEATURES outright or existing values will
  affect the test
* For test case 1107 we need "empty-root-password" to match the behaviour
  described in the test case
* For test case 1115 we shouldn't be able to connect as root with the
  features we are setting

Test cases 1107 and 1115 have been updated in Testopia to match.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/selftest/imagefeatures: Use QemuTarget code
Richard Purdie [Mon, 27 Jul 2015 13:04:02 +0000 (14:04 +0100)]
oeqa/selftest/imagefeatures: Use QemuTarget code

Create a runqemu function which uses the QemuTarget() code from
oeqa.targetcontrol to setup the QEMU instance, with all of the added
robustness that that gives us. To do this, a datastore is needed for the
recipe in question (core-image-minimal) so we do the work needed to set
this up. We then use this runqemu function within the imagefeatures
tests instead of a hand-rolled implementation.

We can then use SSHControl to run the SSH tests rather than rolling our
own code to do that as an added bonus.

Fixed and extended by Paul Eggleton <paul.eggleton@linux.intel.com>.

Part of the fix for [YOCTO #7994].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/targetcontrol: write QemuRunner log output to a file
Paul Eggleton [Mon, 27 Jul 2015 13:04:01 +0000 (14:04 +0100)]
oeqa/targetcontrol: write QemuRunner log output to a file

If we use this outside of testimage we don't have a task log; so let's
just explicitly write the log output to a file all the time so it's
always there to look at (particularly useful when runqemu exits
immediately with an error.)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/utils/qemurunner: fix error handling if runqemu exits with an error
Paul Eggleton [Mon, 27 Jul 2015 13:04:00 +0000 (14:04 +0100)]
oeqa/utils/qemurunner: fix error handling if runqemu exits with an error

* Don't wait for QEMU to start if it's never going to (because runqemu
  exited with an error)
* Don't error out if killing the process fails with "no such process"
  (we don't care if it's already dead)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/utils/qemurunner: avoid blocking on stty when running under oe-selftest
Paul Eggleton [Mon, 27 Jul 2015 13:03:59 +0000 (14:03 +0100)]
oeqa/utils/qemurunner: avoid blocking on stty when running under oe-selftest

runqemu-internal runs stty to return the terminal to its previous state
in case QEMU hasn't done that properly (which it at least used to do
when it crashed). For some reason I have yet to determine, stty blocks
(on tcsetattr() according to gdb) when run within QemuRunner() under
oe-selftest, with the result that we always wait until the timeout and
then we kill the script, which adds an extra delay after QEMU is
stopped. Naturally you would assume that this is something to do with
the nature of the terminal under which it is being run; however no
amount of playing around with stdin/stdout/stderr seemed to fix the
issue, apart from passing in subprocess.PIPE as stdin which makes stty
error out with "stty: standard input: Inappropriate ioctl for device". I
was also unable to come up with a reliable test for the terminal which
we could use inside runqemu-internal to avoid calling stty. For now, go
with the stdin=subprocess.PIPE workaround to at least avoid the delay
with minimal ill effect.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/utils/qemurunner: fix logging
Paul Eggleton [Mon, 27 Jul 2015 13:03:58 +0000 (14:03 +0100)]
oeqa/utils/qemurunner: fix logging

OE-Core commit 519e381278d40bdac79add340e4c0460a9f97e17 unfortunately
broke logging in two different ways:

1) it prevented logging to the task log from working within bitbake
   -c testimage. This is due to the logger object being set up too early
   which interferes with BitBake's own logging. If we prefix the name
   with "BitBake." everything works (and we don't need to set the
   logging level).

2) Additionally because it called the log functions on the logging
   module and not the logger object it set up, this caused the
   oe-selftest logging to start printing everything from that point
   forward.

Fix these two issues and return us to the desired behaviour for
do_testimage.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/targetcontrol: create test directory before copying rootfs image
Paul Eggleton [Mon, 27 Jul 2015 13:03:57 +0000 (14:03 +0100)]
oeqa/targetcontrol: create test directory before copying rootfs image

The test directory might not exist at this point so just go ahead and
create it.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooe-selftest: add scripts/lib and bitbake/lib to path
Paul Eggleton [Mon, 27 Jul 2015 13:03:56 +0000 (14:03 +0100)]
oe-selftest: add scripts/lib and bitbake/lib to path

In particular, this allows us to use code from bitbake's bb module
(such as tinfoil).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/recipetool: allow templayerdir override
Christopher Larson [Thu, 16 Jul 2015 23:22:22 +0000 (16:22 -0700)]
oeqa/recipetool: allow templayerdir override

This is provided for use by subclasses.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/recipetool: add tests for appendsrcfile(s)
Christopher Larson [Thu, 16 Jul 2015 19:36:28 +0000 (12:36 -0700)]
oeqa/recipetool: add tests for appendsrcfile(s)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/recipetool: refactor / split out RecipetoolBase
Christopher Larson [Thu, 16 Jul 2015 19:35:58 +0000 (12:35 -0700)]
oeqa/recipetool: refactor / split out RecipetoolBase

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooe-selftest: add libdirs from BBPATH to sys.path
Christopher Larson [Mon, 13 Jul 2015 19:04:21 +0000 (12:04 -0700)]
oe-selftest: add libdirs from BBPATH to sys.path

This ensures that oeqa.selftest.* from layers are found.

[YOCTO #7625]

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooe-selftest: obey oeqa.selftest.__path__
Christopher Larson [Mon, 13 Jul 2015 18:53:16 +0000 (11:53 -0700)]
oe-selftest: obey oeqa.selftest.__path__

This ensures that all paths that hold selftest tests will be checked
(oeqa.selftest is a namespace package).

[YOCTO #7625]

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agodevtool: also load plugins from BBPATH
Christopher Larson [Mon, 13 Jul 2015 18:43:40 +0000 (11:43 -0700)]
devtool: also load plugins from BBPATH

This makes it easier to extend, as a layer can add its own sub-commands.

Argument parsing is also separated into two steps, the same way it's done in
recipetool, as we need access to the global command-line arguments early,
before plugins are loaded, both for debugging arguments and for the bitbake
path (we need to load the bitbake module to get tinfoil, which is now needed
to load the plugins).

Rather than constructing tinfoil once and passing it through into sub-commands
for their use, we have to construct it for configuration metadata, use it, and
then shut it down, as some sub-commands call out to recipetool, which needs
its own tinfoil instance, and therefore needs to acquire the bitbake lock. If
we're still holding the lock at that point, that's clearly a problem.

[YOCTO #7625]

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorecipetool: parse global args early
Christopher Larson [Wed, 22 Jul 2015 22:10:43 +0000 (15:10 -0700)]
recipetool: parse global args early

This separates the argument parsing into two steps, which lets us apply global
settings like enabling debugging before the plugins load, so we can see the
paths where plugins are being loaded.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorecipetool: also load plugins from BBPATH
Christopher Larson [Thu, 25 Jun 2015 18:35:41 +0000 (11:35 -0700)]
recipetool: also load plugins from BBPATH

This makes it easier to extend, as a layer can add its own sub-commands.

The bitbake path setup is moved earlier, as it has to be done before
tinfoil_init.

[YOCTO #7625]

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorecipetool.append: add extralines arg to appendsrc
Christopher Larson [Fri, 26 Jun 2015 13:24:29 +0000 (06:24 -0700)]
recipetool.append: add extralines arg to appendsrc

This makes the function more reusable for other sub-commands.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorecipetool: catch BBHandledException from parsing
Christopher Larson [Mon, 29 Jun 2015 15:20:19 +0000 (08:20 -0700)]
recipetool: catch BBHandledException from parsing

This ensures that we don't see a traceback on parsing failures.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agotoaster.bbclass: Fix ValueError
Ed Bartosh [Mon, 27 Jul 2015 10:55:52 +0000 (13:55 +0300)]
toaster.bbclass: Fix ValueError

Running "bitbake xxx:do_unpack" resulted in exception at the
BuildCompleted event from toaster.

The reason for this exception was usage of ':' as a field
delimiter in toasterstatlist file. As target can optionally
contain ':<task>' suffix it caused split(':') to throw exception:

File "toaster_collect_task_stats(e)", line 71, in
toaster_collect_task_stats(e=<bb.event.BuildCompleted object at
0x7f8434deed50>)
ValueError: too many values to unpack

Fixed by changing delimiter ':' -> '::'

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc-target 5.1: fix for libcc1
Robert Yang [Mon, 6 Jul 2015 10:35:35 +0000 (03:35 -0700)]
gcc-target 5.1: fix for libcc1

Fixed:
* gcc 5 introduces a plugin libcc1.so, which is used by gdb, the target
gcc didn't build it in the past because gcc_cv_objdump is null, and
the error was:
gcc-5.2.0/libcc1/configure: line 14531: -T: command not found

This only happens for tar gcc as the code shows:
  if test x$build = x$host; then
    export_sym_check="objdump${exeext} -T"
  elif test x$host = x$target; then
    export_sym_check="$gcc_cv_objdump -T"
  else
    export_sym_check=
  fi

* Install libcc1.so and libcc1plugin.so to
  $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version) as lto-plugin did.

* Use sed command to fix bad RPATH iussue.

[YOCTO #7956]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc5: Upgrade from 5.1 to 5.2
Khem Raj [Fri, 24 Jul 2015 20:11:28 +0000 (13:11 -0700)]
gcc5: Upgrade from 5.1 to 5.2

This is second bugfix release in gcc5 series
All backported patches are dropped
no other patches needed any rework

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosudo: upgrade to 1.8.14p3
Ross Burton [Fri, 24 Jul 2015 14:58:11 +0000 (15:58 +0100)]
sudo: upgrade to 1.8.14p3

The licence checksum is modified according to the change of doc/LICENCE.
In specific, file://lib/util/reallocarray.c is added to LIC_FILES_CHECKSUM.

Fix out of tree builds, and explicitly enable/disable tmpfiles.d support based
on the systemd DISTRO_FEATURE to avoid non-deterministic packaging.

Based on a patch by Chen Qi <Qi.Chen@windriver.com>

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosed: Make locale depenencies glibc specific
Richard Purdie [Sat, 25 Jul 2015 13:45:26 +0000 (14:45 +0100)]
sed: Make locale depenencies glibc specific

Only glibc provides this base locale so make the dependency glibc
specific to avoid build failures with other libcs.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoupdated-rc.d: Only add dependencies in target case
Richard Purdie [Sun, 26 Jul 2015 08:05:43 +0000 (08:05 +0000)]
updated-rc.d: Only add dependencies in target case

Avoid errors like:
  ERROR: Nothing PROVIDES 'nativesdk-update-rc.d' (but virtual:nativesdk:dbus_1.8.18.bb
  DEPENDS on or otherwise requires it).

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