]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
10 years agolibpcap.inc: consolidate inherit and PACKAGECONFIG lines
Andre McCurdy [Mon, 6 Apr 2015 18:13:21 +0000 (11:13 -0700)]
libpcap.inc: consolidate inherit and PACKAGECONFIG lines

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibpcap.inc: remove obsolete libnl1 PACKAGECONFIG
Andre McCurdy [Mon, 6 Apr 2015 18:13:20 +0000 (11:13 -0700)]
libpcap.inc: remove obsolete libnl1 PACKAGECONFIG

There's no libnl1 recipe in oe-core (or any other layer in the layer
index).

Keeping the libnl1 PACKAGECONFIG is likely to cause problems for the
libnl PACKAGECONFIG since libnl and libnl1 both use --with-libnl and
--without-libnl.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooeqa/runtime/smart: Added new decorators for existing automated tests.
Lucian Musat [Thu, 9 Apr 2015 08:01:51 +0000 (11:01 +0300)]
oeqa/runtime/smart: Added new decorators for existing automated tests.

Signed-off-by: Lucian Musat <george.l.musat@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooeqa/runtime/rpm: Added new decorators for existing automated tests.
Lucian Musat [Thu, 9 Apr 2015 08:01:50 +0000 (11:01 +0300)]
oeqa/runtime/rpm: Added new decorators for existing automated tests.

Signed-off-by: Lucian Musat <george.l.musat@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooeqa/runtime/ping: Added new decorators for existing automated tests.
Lucian Musat [Thu, 9 Apr 2015 08:01:49 +0000 (11:01 +0300)]
oeqa/runtime/ping: Added new decorators for existing automated tests.

Signed-off-by: Lucian Musat <george.l.musat@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooeqa/runtime/parselogs: Added new decorators for existing automated tests.
Lucian Musat [Thu, 9 Apr 2015 08:01:48 +0000 (11:01 +0300)]
oeqa/runtime/parselogs: Added new decorators for existing automated tests.

Signed-off-by: Lucian Musat <george.l.musat@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooeqa/runtime/ldd: Added new decorators for existing automated tests.
Lucian Musat [Thu, 9 Apr 2015 08:01:46 +0000 (11:01 +0300)]
oeqa/runtime/ldd: Added new decorators for existing automated tests.

Signed-off-by: Lucian Musat <george.l.musat@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotestimage: sort modules based on dependencies
Patrick Ohly [Thu, 9 Apr 2015 09:24:24 +0000 (02:24 -0700)]
testimage: sort modules based on dependencies

TEST_SUITES="auto" is useful to run all suitable tests without
having to hard-code the list. However, it did not take test
dependencies into account, which can be an issue for tests
which really depend on some other test to run first.

To fix this, modules get loaded in the order determined by
TESTS_SUITES, but then get re-ordered based on dependencies
derived from @skipUnlessPassed before running them. The original
order is used to break ties when there are no dependencies, so
reordering only occurs when really necessary.

@skipUnlessPassed gets extended such that it makes the test name
a method depends on available for inspection by the test loader
in oetest.py.

Unfortunately Python's unittest offers no API to inspect tests
in a TestSuite, so the code has to rely on implementation details
to find all tests. The worst that can happen when the implementation
changes is that tests are not found and reordering does not happen.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooeqa/runtime/systemd.py: skip instead of failing without avahi
Patrick Ohly [Thu, 9 Apr 2015 09:24:23 +0000 (02:24 -0700)]
oeqa/runtime/systemd.py: skip instead of failing without avahi

The SystemdServiceTests assume that avahi-daemon is installed,
which is not necessarily the case depending on the image being
tested.

Better check this dependency before starting the tests and skip
them if the service is not installed. This has to be done for
each test instead of for the entire module, because other
tests in the module can run without avavi.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooeqa/oetest.py: use bb logging
Patrick Ohly [Thu, 9 Apr 2015 09:24:22 +0000 (02:24 -0700)]
oeqa/oetest.py: use bb logging

Plain print has two drawbacks:
- the output is handled by different processes, causing the message
  about found tests to appear randomly after the result of the initial
  tests
- the output is not part of the bitbake console output

Affects image testing with testimage.bbclass.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogst-ffmpeg: fix internal-libav builds with inherit autotools-brokensep
Koen Kooi [Thu, 9 Apr 2015 09:09:53 +0000 (11:09 +0200)]
gst-ffmpeg: fix internal-libav builds with inherit autotools-brokensep

Building the internal copy of ffmpeg is broken when using S!=B, so
inherit autotools-brokensep

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogst-ffmpeg: remove bogus patch that leads to build failures
Koen Kooi [Thu, 9 Apr 2015 09:09:52 +0000 (11:09 +0200)]
gst-ffmpeg: remove bogus patch that leads to build failures

'0001-huffyuvdec-check-width-more-completely-avoid-out-of-.patch'
patches the internal copy of ffmpeg with a hunk that generates a compile
failure because AV_PIX_FMT_YUV422P is undefined.

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogst-ffmpeg: fix libav-9.patch
Koen Kooi [Thu, 9 Apr 2015 09:09:51 +0000 (11:09 +0200)]
gst-ffmpeg: fix libav-9.patch

The patch has a stray '>' in an #incude directive leading to build
failures when used.

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodpkg: add triplet entry to fix build error for armeb
Krishnanjanappa, Jagadeesh [Wed, 8 Apr 2015 13:59:09 +0000 (19:29 +0530)]
dpkg: add triplet entry to fix build error for armeb

Cross-compling dpkg application for armeb fails with below error
during configure task,

(snip)
 configure:23141: checking dpkg cpu type
 configure:23148: result: armeb
 configure:23150: WARNING: armeb not found in cputable
 configure:23162: checking dpkg operating system type
 configure:23169: result: linux-gnueabi
 configure:23171: WARNING: linux-gnueabi not found in ostable
 configure:23183: checking dpkg architecture name
 configure:23189: error: cannot determine host dpkg architecture
-- CUT --

Add the required combination of "gnueabi-linux-armeb" entry in
triplet list.

Signed-off-by: Krishnanjanappa, Jagadeesh <jagadeesh.krishnanjanappa@caviumnetworks.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/oeqa/selftest/bblayers: improve test for add-layer and remove-layer
Yi Zhao [Thu, 9 Apr 2015 07:10:57 +0000 (15:10 +0800)]
lib/oeqa/selftest/bblayers: improve test for add-layer and remove-layer

Use absolute path instead of relative path for meta-skeleton.
Otherwise the case would fail if the builddir outside the poky source
tree.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoshadow: add 'util-linux-sulogin' to RDEPENDS
Chen Qi [Thu, 9 Apr 2015 05:49:29 +0000 (13:49 +0800)]
shadow: add 'util-linux-sulogin' to RDEPENDS

If shadow is installed, sulogin from busybox cannot work correctly because
it still assumes that /etc/shadow is not there. This leads to the problem
when booting into rescue mode in an image with shadow installed but not
sulogin from util-linux.

To fix this problem, we add 'util-linux-sulogin' to RDEPENDS of shadow.
This runtime dependency is specific to OE, because we have to ensure
that sulogin can work correctly and sulogin from busybox cannot because
FEATURE_SHADOWPASSWORDS is not enabled by default. And we cannot enable
it by default for busybox, because that would lead to utilities in busybox
to assume the existence of /etc/shadow which is not always true in OE.

[YOCTO #6698]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoutil-linux: split out util-linux-sulogin
Chen Qi [Thu, 9 Apr 2015 05:49:28 +0000 (13:49 +0800)]
util-linux: split out util-linux-sulogin

[YOCTO #6698]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopango: fix postinst
Martin Jansa [Wed, 8 Apr 2015 12:40:45 +0000 (14:40 +0200)]
pango: fix postinst

* merge postinst_prologue with the append in the do_split_packages call
  Now we can call correct pango-querymodules binary and respect D
  variable, otherwise we're trying to regenerate it on host which fails:
  pango-module-basic-fc.postinst: line 17: /usr/bin/pango-querymodules:
  No such file or directory

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotzdata: fix postinst
Martin Jansa [Wed, 8 Apr 2015 12:40:44 +0000 (14:40 +0200)]
tzdata: fix postinst

* add quotes around possibly empty tz variable
* use exit instead of return, because we're not in function and postinst
  fails:
  line 9: return: can only `return' from a function or sourced script"

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibgpg-error: Fix native build on i686
Gary Thomas [Wed, 8 Apr 2015 12:33:53 +0000 (06:33 -0600)]
libgpg-error: Fix native build on i686

Most modern x86 systems return i686 as the system type.  This
patch handles i486, i586 and i686 correctly.

Signed-off-by: Gary Thomas <gary@mlbassoc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoconnman: Create connman.service at proper moment
Jukka Rissanen [Wed, 8 Apr 2015 11:36:19 +0000 (14:36 +0300)]
connman: Create connman.service at proper moment

ConnMan commit ac332c5d01b0737c18cb58c8ccc67cf6b0427e1d changes
how the connman.service file is created from .in file. After
that commit, the file is created by Makefile instead of configure.
This means that we need to tweak the service file in compile
time instead of configure time because the generated file will not
be there after the configuration.

This commit can be used even with older ConnMan version as the
connman.service file is there when the compilation happens.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agonss: Fix build in x32 ABI
Aníbal Limón [Wed, 8 Apr 2015 10:04:45 +0000 (10:04 +0000)]
nss: Fix build in x32 ABI

When try to build nss with x32 ABI enabled fails because
it need to be specified USE_X32 env var.

[YOCTO #7420]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokexec-tools: Add support for build with x32 ABI in x86_64
Mariano Lopez [Wed, 8 Apr 2015 10:04:44 +0000 (10:04 +0000)]
kexec-tools: Add support for build with x32 ABI in x86_64

Add autoconf test for detect when build is x32 ABI this enables to
test into purgatory Makefile to avoid use -mcmodel=large flag in CC.

Add ELFCLASS read and syscall number into kexec, see patch.

[YOCTO #7419]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogtk+: Upgrade to 2.24.27
Jussi Kukkonen [Wed, 8 Apr 2015 11:08:29 +0000 (14:08 +0300)]
gtk+: Upgrade to 2.24.27

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoxz: upgrade to 5.2.1
Chen Qi [Wed, 8 Apr 2015 10:09:30 +0000 (18:09 +0800)]
xz: upgrade to 5.2.1

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
10 years agosysstat: upgrade to 11.1.3
Chen Qi [Wed, 8 Apr 2015 07:26:47 +0000 (15:26 +0800)]
sysstat: upgrade to 11.1.3

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
10 years agosudo: upgrade to 1.8.13
Chen Qi [Wed, 8 Apr 2015 06:39:14 +0000 (14:39 +0800)]
sudo: upgrade to 1.8.13

The do_configure_prepend is deleted because it doesn't seem to have any
positive effect and it causes the following error.

| aclocal: error: acinclude.m4:133: file 'm4/ax_sys_weak_alias.m4' does not exist
| autoreconf: aclocal failed with exit status: 1
| ERROR: autoreconf execution failed.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
10 years agobusybox: upgrade to 1.23.2
Chen Qi [Tue, 7 Apr 2015 07:03:00 +0000 (15:03 +0800)]
busybox: upgrade to 1.23.2

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
10 years agocurl: upgrade to 7.41.0
Chen Qi [Tue, 7 Apr 2015 06:46:58 +0000 (14:46 +0800)]
curl: upgrade to 7.41.0

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
10 years agowic: Implement --build-rootfs command line option
Ed Bartosh [Tue, 7 Apr 2015 09:57:41 +0000 (12:57 +0300)]
wic: Implement --build-rootfs command line option

-f/--build-rootfs option makes wic to run bitbake <image> to
produce rootfs. This option requires image name to be specified
with -e/--image-name.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agowic: support ontrackdm6aux3 partitions
Alexandre Belloni [Tue, 7 Apr 2015 10:21:59 +0000 (12:21 +0200)]
wic: support ontrackdm6aux3 partitions

ontrack dm6 aux3 is a type of partition required to be able to boot a Freescale
mxs based platform.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agowic: rawcopy: ensure comparison is done on int
Alexandre Belloni [Tue, 7 Apr 2015 10:21:58 +0000 (12:21 +0200)]
wic: rawcopy: ensure comparison is done on int

The size comparison may fail because it is done on strings rather than
integers.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agowic: code cleanup: unused imports
Ed Bartosh [Tue, 7 Apr 2015 11:51:51 +0000 (14:51 +0300)]
wic: code cleanup: unused imports

Fixed pylint warning 'Unused import'

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agowic: code cleanup: bad indentation
Ed Bartosh [Tue, 7 Apr 2015 11:29:25 +0000 (14:29 +0300)]
wic: code cleanup: bad indentation

Fixed pylint warning 'Bad indentation'

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosecurity_flags.inc: elfutils on ARM fails with PIE flags
Denys Dmytriyenko [Tue, 7 Apr 2015 20:53:54 +0000 (16:53 -0400)]
security_flags.inc: elfutils on ARM fails with PIE flags

The error messages look like this:
R_ARM_TLS_LE32 relocation not permitted in shared object

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agofile: add -P prompt into usage info
Junling Zheng [Wed, 8 Apr 2015 07:53:37 +0000 (07:53 +0000)]
file: add -P prompt into usage info

Currently, file's usage info doesn't contain -P prompt. So add it.

Signed-off-by: Junling Zheng <zhengjunling@huawei.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoperl: module overload rdpends on overloading
Wenzong Fan [Wed, 8 Apr 2015 06:08:47 +0000 (14:08 +0800)]
perl: module overload rdpends on overloading

Fix perl runtime issue:

* Can't locate overloading.pm in @INC (you may need to install the
overloading module ...) at /usr/lib64/perl/5.20.0/overload.pm line 83.

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopython: Change python 2.7.9 to use libffi from the system
Nathan Rossi [Wed, 8 Apr 2015 05:47:56 +0000 (15:47 +1000)]
python: Change python 2.7.9 to use libffi from the system

Changes in python 2.7.9 from 2.7.3 cause issues when building the in
tree libffi for ctypes. These issues primarily affect less common
platforms (e.g. MicroBlaze) that are supported by libffi but the python
overrides for the in tree libffi are not able to detect correctly.

This patch changes the python 2.7.9 recipe to match how the python 3
recipe handles libffi by configuring the build to use the system
libffi. This brings consistency between the libffi used for different
python versions as well as with the system.

Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoglib-2.0: 2.42.1 -> 2.44.0
Robert Yang [Tue, 7 Apr 2015 08:53:24 +0000 (01:53 -0700)]
glib-2.0: 2.42.1 -> 2.44.0

Backported a patch to fix build on CentOS' gcc 4.4.7:
0001-GListModel-roll-back-use-of-type-redefinition.patch

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobinutils: Fix packaging now gold is always built
Richard Purdie [Wed, 8 Apr 2015 13:18:36 +0000 (13:18 +0000)]
binutils: Fix packaging now gold is always built

Resolves:

ERROR: QA Issue: binutils: Files/directories were installed but not shipped
  /usr/bin/dwp
  /usr/bin/ld.gold [installed-vs-shipped]

now gold is always built.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotcmode-default: Pin gdb to 7.9
Khem Raj [Wed, 8 Apr 2015 17:00:05 +0000 (10:00 -0700)]
tcmode-default: Pin gdb to 7.9

Change-Id: I034a3bf7b9288df4579744f242e990f213193e85
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogcc-4.8: Upgrade 4.8.2 -> 4.8.4
Khem Raj [Mon, 6 Apr 2015 17:36:37 +0000 (17:36 +0000)]
gcc-4.8: Upgrade 4.8.2 -> 4.8.4

Drop already applied patches
This fixes random ICE seen on mips with large c++ files ( webkit )
Then there are several backports

Change-Id: Ie1c3acda2fda1b6cbd356416c860938f6cbd758e
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agorpcbind: Fix build with musl
Khem Raj [Mon, 6 Apr 2015 17:36:52 +0000 (17:36 +0000)]
rpcbind: Fix build with musl

most patches are just removing glibc'ism e.g. using sys/queue.h
of cdefs.h the one patch which is specific to musl
is housed with overrides

Change-Id: Ia15bf6c9c4b562c9392a704ef92e9090aa5f6381
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibxml2: Contain glibc-extentions under __GLIBC__
Khem Raj [Mon, 6 Apr 2015 17:36:51 +0000 (17:36 +0000)]
libxml2: Contain glibc-extentions under __GLIBC__

Makes it more portable

Change-Id: I7bbc4cc0ebc26d54248b8433dab94db207615445
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agowpa-supplicant: Replace non-standard base defines with c99 compliant ones
Khem Raj [Mon, 6 Apr 2015 17:36:50 +0000 (17:36 +0000)]
wpa-supplicant: Replace non-standard base defines with c99 compliant ones

Makes it more portable

Change-Id: I033787934cd91243ce8f8ce3a974a157aa5cfd6a
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopixman,libpciaccess: Fix build on musl
Khem Raj [Mon, 6 Apr 2015 17:36:49 +0000 (17:36 +0000)]
pixman,libpciaccess: Fix build on musl

The fixes are not specific to musl, however they came
to surface due to musl, these are generic problems which
should be fixed in components

Change-Id: If9aa95968d9dec9c16e3e5819955befcaa38937c
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoofono: Disable backtrace for non-glibc libraries
Khem Raj [Mon, 6 Apr 2015 17:36:48 +0000 (17:36 +0000)]
ofono: Disable backtrace for non-glibc libraries

It uses glibc backtrace() API which is not implemented
everywhere e.g. musl

Change-Id: I96380b994c27968542dba6dae220adfecaeda556
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoman-pages: 3.76 -> 3.82
Robert Yang [Tue, 7 Apr 2015 11:24:30 +0000 (04:24 -0700)]
man-pages: 3.76 -> 3.82

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodhcp: 4.3.1 -> 4.3.2
Robert Yang [Tue, 7 Apr 2015 11:24:28 +0000 (04:24 -0700)]
dhcp: 4.3.1 -> 4.3.2

Removed dhcp-xen-checksum.patch since already merged.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosocat: 1.7.2.4 -> 1.7.3.0
Robert Yang [Tue, 7 Apr 2015 11:24:27 +0000 (04:24 -0700)]
socat: 1.7.2.4 -> 1.7.3.0

Removed fix-cross-compiling-failed.patch and
socat-1.7.2.4-linux-3.17.patch since upstream has fixed them.

Updated README's LIC_FILES_CHKSUM, there is a word changed (GPL ->
GPLv2, it should be GPLv2 as COPYING shows), its license is already
"GPL-2.0+-with-OpenSSL-exception", so we just update the md5 is OK.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agognupg: 2.1.1 -> 2.1.2
Robert Yang [Tue, 7 Apr 2015 11:24:26 +0000 (04:24 -0700)]
gnupg: 2.1.1 -> 2.1.2

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibgcrypt: 1.6.2 -> 1.6.3
Robert Yang [Tue, 7 Apr 2015 11:24:25 +0000 (04:24 -0700)]
libgcrypt: 1.6.2 -> 1.6.3

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopatch: 2.7.1 -> 2.7.5
Robert Yang [Tue, 7 Apr 2015 11:24:24 +0000 (04:24 -0700)]
patch: 2.7.1 -> 2.7.5

* Removed backport patch patch-CVE-2015-1196.patch
* Add HOMEPAGE

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibuser: 0.60 -> 0.61
Robert Yang [Tue, 7 Apr 2015 11:24:23 +0000 (04:24 -0700)]
libuser: 0.60 -> 0.61

Removed fixsepbuild.patch since it is not needed any more.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agostrace: 4.9 -> 4.10
Robert Yang [Tue, 7 Apr 2015 11:24:22 +0000 (04:24 -0700)]
strace: 4.9 -> 4.10

Updated patches:
Makefile-ptest.patch
strace-add-configure-options.patch

Fixed:
debugedit: netlink_unix_diag: canonicalization unexpectedly shrank by one character

It was because oe_runmake -C ${TESTDIR} buildtest-TESTS didn't set OS
and ARCH, which caused "-I<foo>//" in gcc options, and would cause
debugedit error.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibunwind: Build with gold to avoid build failures
Richard Purdie [Tue, 7 Apr 2015 14:53:04 +0000 (15:53 +0100)]
libunwind: Build with gold to avoid build failures

The library fails to build with binutils 2.25 and standard ld. This
issue is fixed in gcc 5 with no plans to backport to gcc 4. Easiest
workaround for now is to use gold as the linker for the library
since gold does not have the issue. The bug is x86 only.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobinutils: Allow gold to build even when not the default
Richard Purdie [Tue, 7 Apr 2015 14:51:12 +0000 (15:51 +0100)]
binutils: Allow gold to build even when not the default

It can be useful to have gold available for testing even when its not the
default, therefore build gold by default in all configurations.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agou-boot: Avoid issues with binutils-2.25
Richard Purdie [Tue, 7 Apr 2015 14:49:32 +0000 (15:49 +0100)]
u-boot: Avoid issues with binutils-2.25

Add a patch based on one from Zhenhua Luo <zhenhua.luo@freescale.com>
in the meta-fsl-ppc layer to avoid build failures for u-boot with the
mpc8315e-rdb machine with binutils 2.25.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoutil-linux: add lastb.1 and nologin.8 to update-alternatives
Matthieu Crapet [Tue, 31 Mar 2015 12:23:29 +0000 (14:23 +0200)]
util-linux: add lastb.1 and nologin.8 to update-alternatives

/usr/share/man/man1/lastb.1
is also provided by sysvinit recipe.

/usr/share/man/man8/nologin.8
is also provided by shadow recipe.

Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoprelink_git.bb: Update to latest cross-prelink version
Mark Hatle [Mon, 30 Mar 2015 22:10:33 +0000 (17:10 -0500)]
prelink_git.bb: Update to latest cross-prelink version

[YOCTO #7056]

Adds support for armhf dynamic linker
Update prelink-rtld to glibc 2.20 base
Fix testsuite to work with latest autotools

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopinentry: update to 9.1
Armin Kuster [Tue, 31 Mar 2015 19:43:55 +0000 (12:43 -0700)]
pinentry: update to 9.1

Fix build problems on AIX.
Update to automake 1.14.

remove "PR"

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agouseradd_base.bbclass: typo fixes (s/scucess/success/)
Mario Domenech Goulart [Wed, 1 Apr 2015 13:45:45 +0000 (10:45 -0300)]
useradd_base.bbclass: typo fixes (s/scucess/success/)

Signed-off-by: Mario Domenech Goulart <mario@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agovalgrind: add configure option to build only 32-bit or 64-bit components
Krishnanjanappa, Jagadeesh [Fri, 3 Apr 2015 17:55:26 +0000 (23:25 +0530)]
valgrind: add configure option to build only 32-bit or 64-bit components

Building both 32-bit and 64-bit binaries in valgrind at a time would
lead to following QA issue as below,

(snip)
 ERROR: QA Issue: Architecture did not match (62 to 3) on ${WORKDIR}/valgrind/3.10.1-r0/packages-split/valgrind-dbg/usr/lib64/valgrind/.debug/vgpreload_exp-sgcheck-x86-linux.so
 ERROR: QA Issue: Architecture did not match (62 to 3) on ${WORKDIR}/valgrind/3.10.1-r0/packages-split/valgrind-dbg/usr/lib64/valgrind/.debug/getoff-x86-linux
 ERROR: QA Issue: Architecture did not match (62 to 3) on ${WORKDIR}/valgrind/3.10.1-r0/packages-split/valgrind-dbg/usr/lib64/valgrind/.debug/vgpreload_core-x86-linux.so
 ERROR: QA Issue: Architecture did not match (62 to 3) on ${WORKDIR}/valgrind/3.10.1-r0/packages-split/valgrind-dbg/usr/lib64/valgrind/.debug/vgpreload_memcheck-x86-linux.so
-- CUT --

hence perform only one type of build 32-bit or 64-bit, but not both.

Signed-off-by: Krishnanjanappa, Jagadeesh <jagadeesh.krishnanjanappa@caviumnetworks.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibevent: update 2.0.21 -> 2.0.22
Andre McCurdy [Sat, 4 Apr 2015 01:11:14 +0000 (18:11 -0700)]
libevent: update 2.0.21 -> 2.0.22

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibevent: control openssl support via PACKAGECONFIG
Andre McCurdy [Sat, 4 Apr 2015 01:11:13 +0000 (18:11 -0700)]
libevent: control openssl support via PACKAGECONFIG

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooe.sstatesig: align swspec handling with sstate.bbclass
Christopher Larson [Fri, 3 Apr 2015 22:03:05 +0000 (15:03 -0700)]
oe.sstatesig: align swspec handling with sstate.bbclass

The logic tries to remove the -native suffix from pn to handle this (though it
doesn't succeed, as it doesn't assign the new pn to the variable), but we need
to do more for the swspec tasks than just not set the extrapath, we also need
to change from SSTATE_PKGSPEC to SSTATE_SWSPEC. Alter to correct the spec for
these cases, and also add preconfigure to align with the current logic in
sstate.bbclass, which includes that task as well in the list of tasks to
adjust to use swspec.

[YOCTO #7563]

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agometa/lib/oe/utils.py: Corrected the return value of both_contain()
Jun Zhu [Fri, 3 Apr 2015 14:34:09 +0000 (22:34 +0800)]
meta/lib/oe/utils.py: Corrected the return value of both_contain()

oe.utils.both_contain() should return the result as "checkvalue" or "",
but the latest implement returns as "set(['checkvalue'])" or "";

It causes that bitbake.conf generates the wrong result of COMBINED_FEATURES,
which contains the common components in both DISTRO_FEATURE and MACHINE_FEATURES.

For example, build in Dizzy branch, COMBINED_FEATURES is "alsa usbhost ...",
but recently, COMBINED_FEATURES is like "set(['alsa']) set(['usbhost']) ...".

Signed-off-by: Jun Zhu <R01007@freescale.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agonss: generate debug info
Joe Slater [Thu, 2 Apr 2015 18:41:54 +0000 (11:41 -0700)]
nss: generate debug info

Because the build of nss seems to ignore CFLAGS, we never
have put source code in the -dbg package.  We do not address
the CFLAGS issue, but we do add -g to the definition of CC
so that we will generate debug info.

We also let package.bbclass populate the -dbg package instead
of forcing the contents locally.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agouclibc: fix undefinition of '_dl_strchr' in libdl.a
Junling Zheng [Fri, 3 Apr 2015 05:59:59 +0000 (05:59 +0000)]
uclibc: fix undefinition of '_dl_strchr' in libdl.a

The orign_path.patch introduced '_dl_strchr' in ldso/ldso/dl-elf.c, and
caused the following undefined referencing compiling error:

  | .../libdl.a(libdl.os): In function `search_for_named_library':
  | .../dl-elf.c:156: undefined reference to `_dl_strchr'
  | collect2: error: ld returned 1 exit status

I found this problem when compiling gdb in static mode using uclibc.

So, add the definition of '_dl_strchr' to fix it. The '_dl_strstr' is
added as well.

And I regenerated a patch to replace the original one.

Signed-off-by: Junling Zheng <zhengjunling@huawei.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopiglit: add PACKAGECONFIG for freeglut
Robert Yang [Wed, 1 Apr 2015 07:53:00 +0000 (00:53 -0700)]
piglit: add PACKAGECONFIG for freeglut

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolzop: Fix build using x32 ABI
Aníbal Limón [Thu, 26 Mar 2015 14:39:25 +0000 (14:39 +0000)]
lzop: Fix build using x32 ABI

When tries to build lzop using x32 ABI fails trying to get
FLAGS register that is 64-bit and destination variable is
32-bit size_t.

[YOCTO #7424]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agostress: add new package
Maxin B. John [Fri, 20 Mar 2015 17:07:58 +0000 (18:07 +0100)]
stress: add new package

Deliberately simple workload generator for POSIX systems. It imposes
a configurable amount of CPU, memory, I/O, and disk stress on the system.

Moving the package from meta-linaro as a dependency for rt-tests ptest

Signed-off-by: Maxin B. John <maxin.john@enea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agohwlatdetect: upgrade to version 0.91
Maxin B. John [Fri, 20 Mar 2015 17:07:57 +0000 (18:07 +0100)]
hwlatdetect: upgrade to version 0.91

Upgrade hwlatdetect to version 0.91

Signed-off-by: Maxin B. John <maxin.john@enea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agort-tests: bump version and enable ptest support
Maxin B. John [Fri, 20 Mar 2015 17:07:56 +0000 (18:07 +0100)]
rt-tests: bump version and enable ptest support

1. Upgrade version to 0.91
2. Add ptest support

[YOCTO #1569]

Signed-off-by: Thomas Lundström <thomas.lundstrom@enea.com>
Signed-off-by: Maxin B. John <maxin.john@enea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobinutils: Switch to using binutils stable/2.25 branch
Khem Raj [Mon, 2 Mar 2015 02:06:28 +0000 (02:06 +0000)]
binutils: Switch to using binutils stable/2.25 branch

We have a lot of patches on top of 2.25 release that we need
its easier/cleaner to use the git src instead of tarball and use
the latest on the 2.25 branch

Additionally, drop binutils-uclibc-300-006_better_file_error.patch
since it has been redone with
https://sourceware.org/ml/binutils/2006-10/msg00337.html upstream

git'ify the patches against upstream repos for better maintainance

Change-Id: I572c9bb49f60853e7ade4e8f63ab77b7e41476c5
Signed-off-by: Khem Raj <raj.khem@gmail.com>
10 years agobinutils: Fix ICE in gold
Khem Raj [Sun, 1 Mar 2015 10:09:59 +0000 (10:09 +0000)]
binutils: Fix ICE in gold

Found when linking busybox using gold linker

Change-Id: I47b89998b9cb3d75ac97113a1b0fba109483b198
Signed-off-by: Khem Raj <raj.khem@gmail.com>
10 years agobinutils: upgrade to 2.25
Robert Yang [Thu, 8 Jan 2015 08:11:40 +0000 (00:11 -0800)]
binutils: upgrade to 2.25

* Remove the following patches since they are already in the new code:
  binutils/fix-pr15815.patch
  binutils/fix-pr16428.patch
  binutils/fix-pr16476.patch
  binutils/fix-pr2404.patch
  binutils/replace_macros_with_static_inline.patch
  binutils/binutils_CVE-2014-8484.patch
  binutils/binutils_CVE-2014-8485.patch
  binutils/binutils_CVE-2014-8501.patch
  binutils/binutils_CVE-2014-8502.patch
  binutils/binutils_CVE-2014-8502_1.patch
  binutils/binutils_CVE-2014-8503.patch
  binutils/binutils_CVE-2014-8504.patch
  binutils/binutils_CVE-2014-8737.patch

* The file src-release is gone.

* Updated patches for the new code.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Conflicts:
meta/conf/distro/include/tcmode-default.inc

10 years agogdb: Upgrade 7.8.1 -> 7.9
Khem Raj [Mon, 2 Mar 2015 02:11:00 +0000 (02:11 +0000)]
gdb: Upgrade 7.8.1 -> 7.9

Refresh patches against new baseline

Change-Id: I34c5a284c12f669ff3539a363e5eded15eeeeb23
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogit: 2.3.0 -> 2.3.1
Robert Yang [Wed, 4 Mar 2015 09:28:27 +0000 (01:28 -0800)]
git: 2.3.0 -> 2.3.1

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agowget: 1.16.1 -> 1.16.2
Robert Yang [Wed, 4 Mar 2015 09:28:26 +0000 (01:28 -0800)]
wget: 1.16.1 -> 1.16.2

Update fix_makefile.patch:
* The patch for po/Makefile.in.in is not needed any more since fixed.
* Update the patch for configure.ac

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopackage_manager: call createrepo with --dbpath pointing inside WORKDIR
Ed Bartosh [Wed, 1 Apr 2015 11:17:06 +0000 (14:17 +0300)]
package_manager: call createrepo with --dbpath pointing inside WORKDIR

Rpm database in staging area is used only by createrepo.
createrepo fails with the error
"rpmdb: BDB0060 PANIC: fatal region error detected"
if rpm database is broken during previous run of createrepo.

Made createrepo to create rpm db in $WORKDIR/rpmdb/ from scratch
for every build and architecture. This should potentially fix the
failure as every run of createrepo will be using separate db.

[YOCTO #6571]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocreaterepo: Implement --dbpath command line option
Ed Bartosh [Wed, 1 Apr 2015 12:09:18 +0000 (15:09 +0300)]
createrepo: Implement --dbpath command line option

--dbpath option can be used in cases where users don't want
createrepo to use system rpm db to avoid possible collisiouns
with other programs.

For bitbake builds it would be possible to specify different
databases even for every createrepo run. Considering that rootfs
builds can run multiple createrepo in parallel, it can help to avoid
race conditions caused by accessing or creating the same rpm database
by multiple createrepo instances at the same time.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoglibc: fix a typo
Robert Yang [Wed, 1 Apr 2015 07:53:02 +0000 (00:53 -0700)]
glibc: fix a typo

Fixed a typo:
name-target-directory -> make-target-directory

There is no name-target-directory, it should be make-target-directory,
this fixed the error:
/bin/bash: /path/to/elf/runtime-linker.T: No such file or directory
Makefile:361: recipe for target '/path/to/elf/runtime-linker.st' failed

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodb: fix parallel issue
Robert Yang [Wed, 1 Apr 2015 07:53:01 +0000 (00:53 -0700)]
db: fix parallel issue

Fixed parallel issue:
libtool: link: `bt_rec.lo' is not a valid libtool object
Makefile:867: recipe for target 'libdb-6.0.la' failed
make: *** [libdb-6.0.la] Error 1

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoimage_types: Add missing ext4 support
Richard Purdie [Tue, 31 Mar 2015 21:33:53 +0000 (22:33 +0100)]
image_types: Add missing ext4 support

This is particularly problematic since qemu images switched to ext4 by
default and now cannot work properly with UIs like hob.

This patch adds in ext4 to the appropriate IMAGE* variables fixing this.

[YOCTO #7426]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoinsane: Add baremetal mappings to the QA arch test
Richard Purdie [Tue, 31 Mar 2015 15:23:14 +0000 (16:23 +0100)]
insane: Add baremetal mappings to the QA arch test

Add mappings for i586-elf, x86_64-elf and arm-eabi to binary lookup
table which allows for a variety of baremetal toolchain generation.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agositeinfo: Add x86_64-elf support
Richard Purdie [Tue, 31 Mar 2015 15:22:09 +0000 (16:22 +0100)]
siteinfo: Add x86_64-elf support

Teach siteinfo about x86_64-elf so that baremetal toolchains parse/build.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopopulate_sdk_ext: Log the "Preparing build system" step
Randy Witt [Wed, 25 Mar 2015 00:16:26 +0000 (17:16 -0700)]
populate_sdk_ext: Log the "Preparing build system" step

When using bitbake to do the setscene as part of sdk setup, it would be
useful to have a log in the case where it fails.

The log is called preparing_build_system.log and is in the top level
directory of the extracted sdk.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodpkg-native: Avoid 'file changed' errors from tar
Richard Purdie [Sat, 28 Mar 2015 08:50:27 +0000 (08:50 +0000)]
dpkg-native: Avoid 'file changed' errors from tar

Hardlink count duing do_package_write_deb can change causing dpkg-deb
failures. We don't care about this error case so avoid it by checking
the tar exit code.

[YOCTO #7529]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agowpa-supplicant: Make SystemD D-Bus config conditional
Otavio Salvador [Fri, 27 Mar 2015 22:14:24 +0000 (19:14 -0300)]
wpa-supplicant: Make SystemD D-Bus config conditional

The SystemD D-Bus configuration should only to be installed when
SystemD support is enabled.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agou-boot.inc: fix rename image error
Chunrong Guo [Wed, 25 Mar 2015 09:51:22 +0000 (17:51 +0800)]
u-boot.inc: fix rename image error

   Resolve mismatch between U-Boot configs and uboot image name.
   The ${S}/${config}/u-boot-${type}.${UBOOT_SUFFIX} may alway be false
   and repeat compile or install so we need to check if ${type} match ${config}

Signed-off-by: Chunrong Guo <B40290@freescale.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibart-lgpl: add art_config.h for armeb/aarch64be/aarch64be_32
Krishnanjanappa, Jagadeesh [Thu, 26 Mar 2015 15:39:11 +0000 (21:09 +0530)]
libart-lgpl: add art_config.h for armeb/aarch64be/aarch64be_32

The preprocessor macro values present in art_config.h
differ for individual architectures, basically libart-lgpl recipe will
pick up correct art_config.h file based on

ART_CONFIG = "${HOST_ARCH}/art_config.h"

and thereby having correct preprocessor macros definition
of each architectures.

Signed-off-by: Krishnanjanappa, Jagadeesh <jagadeesh.krishnanjanappa@caviumnetworks.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocombo-layer: fix file_exclude for empty commits
Patrick Ohly [Fri, 27 Mar 2015 13:53:12 +0000 (14:53 +0100)]
combo-layer: fix file_exclude for empty commits

The code detecting empty patches after removing files with
file_exclude failed for commits which were already empty before (like
the initial commit in some repos): such patches are completely empty
files, without a From line.

Detect that case and just let the normal empty patch detection deal
with it.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocombo-layer: fix file_exclude for dest_dir = .
Patrick Ohly [Fri, 27 Mar 2015 13:53:11 +0000 (14:53 +0100)]
combo-layer: fix file_exclude for dest_dir = .

"filterdiff -x ./some/file" does not remove changes for some/file.
We must be more careful about constructing the path name and
only add the prefix when it really means a directory.

While at it, also better normalize the path in copy_selected_files()
early on, to handle double slashes. Useful should the function ever
gets used for something other that dest_dir (which gets normalized in
sanity_check()).

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocombo-layer: clean up dest_dir checking
Patrick Ohly [Fri, 27 Mar 2015 13:53:10 +0000 (14:53 +0100)]
combo-layer: clean up dest_dir checking

Empty dest_dir is basically undocumented behavior. The sample conf
only mentions using just a dot for the current directory. In practice,
the empty string does not work because of code like this:

def action_splitpatch(conf, args):
    ...
        if dest_dir != ".":
            filerange_root = '%s -x "%s/*"' % (filerange_root, dest_dir)

However, the empty string was not explicitly checked for, leading to
strange errors when trying to apply patches:

[12:50:23] Applying: foobar: xyz
fatal: unable to stat newly created file '/foobar': No such file or directory

This patch turns the empty string into an alias for the dot. This seems
more user-friendly than throwing an error. This alias is intentionally
not document in the sample conf, because the dot is clearer and works also
with older copies of combo-layer.

Instead of checking for both all the time and normalizing the path when
needed (as done in some places), rewrite the value in sanity_check()
and then only check for '.'.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoglibc-testing: Specify location of c++ header files
Juro Bystricky [Thu, 26 Mar 2015 15:14:31 +0000 (08:14 -0700)]
glibc-testing: Specify location of c++ header files

Glibc test suite contains several c++ files. They are built
with g++ -nostdinc. In this case the location of c++ include files
needs to be specified explicitly, or the programs may fail to build.

The header locations are assumed to be:
    sysroot/usr/include/c++/<version>
    sysroot/usr/include/c++/<version>/<machine>

The new code parses "configparms" to get the actual CXX and sysroot
used for the glibc test suite, then it queries CXX to determine
CXX <version> and CXX <machine>. With the known values for <version>
and <machine> the code composes a new value for c++-sysincludes
and appends "configparms" with that value.

[YOCTO #7081]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooe-git-proxy: Redirect error messages to STDERR
Juro Bystricky [Fri, 27 Mar 2015 17:17:35 +0000 (10:17 -0700)]
oe-git-proxy: Redirect error messages to STDERR

oe-git-proxy script needs socat. If socat is not found,
an error message is issued on STDOUT. This leads to a misleading
git message:

fatal: protocol error: bad line length character: ERRO

instead of the intended message:

ERROR: socat binary not in PATH

Redirecting the error message to STDERR fixes this issue.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoautotools: Avoid find race for S = "${WORKDIR}"
Richard Purdie [Thu, 26 Mar 2015 14:18:30 +0000 (14:18 +0000)]
autotools: Avoid find race for S = "${WORKDIR}"

For recipes with PACKAGES_remove = "${PN}", the find which removes .la files
can race against deletion of other directories in WORKDIR e.g.:

find: '/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/tmp/work/qemux86_64-poky-linux/init-ifupdown/1.0-r7/sstate-build-populate_lic': No such file or directory
| WARNING: /home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/tmp/work/qemux86_64-poky-linux/init-ifupdown/1.0-r7/temp/run.do_configure.6558:1 exit 1 from
|   find /home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/tmp/work/qemux86_64-poky-linux/init-ifupdown/1.0-r7 -name \*.la -delete

The simplest fix is to add the find option which ignores these kind of races.

[YOCTO #7522]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogcc: Tweak arm multilib endian patch for baremetal
Richard Purdie [Thu, 26 Mar 2015 23:55:12 +0000 (23:55 +0000)]
gcc: Tweak arm multilib endian patch for baremetal

In a baremetal build, TARGET_ENDIAN_OPTION isn't set leading to build
failures. Add in ifdefs to avoid this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokernel-yocto: merge duplicate kernel_configme task definitions
Ross Burton [Fri, 27 Mar 2015 15:21:01 +0000 (15:21 +0000)]
kernel-yocto: merge duplicate kernel_configme task definitions

The kernel_configme task was added twice (once in the .bbclass, one in a .inc)
with different ordering constraints.

Change this to be just one definition in the bbclass with the stronger ordering
constraints.

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