]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/log
thirdparty/openembedded/openembedded-core.git
10 years agobinutils: fix build with recent texinfo (5.1) danny
Eric Bénard [Tue, 9 Jul 2013 07:29:15 +0000 (09:29 +0200)] 
binutils: fix build with recent texinfo (5.1)

Signed-off-by: Eric Bénard <eric@eukrea.com>
10 years agoeglibc: fix build with recent texinfo (5.1)
Eric Bénard [Tue, 9 Jul 2013 07:29:14 +0000 (09:29 +0200)] 
eglibc: fix build with recent texinfo (5.1)

Signed-off-by: Eric Bénard <eric@eukrea.com>
10 years agogcc: add patch to disable texinfo when texinfo is 5.0 or newer
Martin Jansa [Tue, 9 Jul 2013 07:29:13 +0000 (09:29 +0200)] 
gcc: add patch to disable texinfo when texinfo is 5.0 or newer

* this is needed only for 4.7 series, newer works fine with texinfo-5*

[YOCTO #3947]

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoclasses/package_rpm: avoid bash being pulled in unnecessarily
Paul Eggleton [Mon, 24 Jun 2013 18:19:07 +0000 (19:19 +0100)] 
classes/package_rpm: avoid bash being pulled in unnecessarily

The initial installation step for base-passwd, base-files and shadow
will pull in bash if any of these packages depend on /bin/sh and a bash
package has been built, which is undesirable if you are using busybox;
so force the early installation of one or the other depending on which
is going to be installed in the second step.

Note: this fix is not needed for 1.4 (dylan) and newer, since there we
use smart to construct the root filesystem without this initial step.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
10 years agosite/common: deactivate a python cross-compilation runtime check
Lukas Bulwahn [Sat, 1 Jun 2013 17:24:19 +0000 (14:24 -0300)] 
site/common: deactivate a python cross-compilation runtime check

In configure there is a runtime check to determine buggy getaddrinfo and as we
are cross-compiling this check goes wrong. If ipv6 is enabled in python, the
failed test is reported as fatal error with the message
Fatal: You must get working getaddrinfo() function.

Setting ac_cv_buggy_getaddrinfo=no deactivates the runtime check and allows to
compile python with ipv6 enabled.

This commit was cherry-picked from commit 66db85262bef08802af30964b415bff349cfba69
into the danny branch. The original commit was in turn derived from the commit
700b75e7661062aa93cf81205b78c8bf7609922d in the Classic OpenEmbedded Development
Tree.

Fixes: bug #4557
Signed-off-by: Lukas Bulwahn <lukas.bulwahn@oss.bmw-carit.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Dimas Abreu Dutra <dimasadutra@gmail.com>
10 years agogrub-efi-native: fix build on modern distributions without gets()
Koen Kooi [Thu, 18 Apr 2013 15:10:20 +0000 (17:10 +0200)] 
grub-efi-native: fix build on modern distributions without gets()

O irony: the grub2/gnulib nag macro that says "don't use gets, use fgets" breaks the build if you're using a recent (e)glibc release that has gets removed.

Fedora already #if 0's the check in grub, so I stole their patch.

(From OE-Core rev: 261e377b08388a288ee521a3629877b89e18e42b)

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoRevert "initramfs-live-install*: fix the "install" boot option"
Ross Burton [Thu, 16 May 2013 13:48:42 +0000 (13:48 +0000)] 
Revert "initramfs-live-install*: fix the "install" boot option"

This patch causes install to fail because /etc/mtab doesn't exist, so revert it
for now until the root problem is fixed.

[ YOCTO #4501 ]

This reverts commit 2f5d41f94c53aaf606de66891c37de0dbd86f54b.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopowertop: inherit gettext
Ross Burton [Thu, 9 May 2013 13:11:45 +0000 (13:11 +0000)] 
powertop: inherit gettext

powertop uses gettext during config time and at build time to generate the
messages, so really should inherit gettext.

[YOCTO #4470]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqemu-native: fix DSO linking
Trevor Woerner [Tue, 7 May 2013 17:37:14 +0000 (13:37 -0400)] 
qemu-native: fix DSO linking

I noticed this issue trying to build using the Danny branch on what is
currently the most recent openSuSE (12.3). It appears to be similar to the
fedora DSO linking issue:
https://fedoraproject.org/wiki/UnderstandingDSOLinkChange.

Upstream-status: Inappropriate [OE Specific]
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
11 years agoqemux86: disable paravirt guest in linux 3.4, causes test failures
Ross Burton [Tue, 7 May 2013 17:08:10 +0000 (18:08 +0100)] 
qemux86: disable paravirt guest in linux 3.4, causes test failures

The shutdown sanity test that we previously saw on qemux86-64 in 2.6.37 have
started to re-appear reproducably on qemux86 in 3.4 in the Danny series.  Until
this can be root-caused and fixed in the kernel, disable paravirtualisation
across all kernels and all qemu machines.

[ YOCTO #4196 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Conflicts:
meta/recipes-kernel/linux/linux-yocto_3.4.bb

11 years agosanity.bbclass: Ensure tmpdir exists when running the check
Richard Purdie [Mon, 21 Jan 2013 22:49:08 +0000 (22:49 +0000)] 
sanity.bbclass: Ensure tmpdir exists when running the check

This avoids tracebacks from bitbake if the directory doesn't already
exist.

[YOCTO #3640]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoudev-extraconf: Add -o silent to auto mount for mount.util-linux
Saul Wold [Sat, 13 Apr 2013 16:55:55 +0000 (09:55 -0700)] 
udev-extraconf: Add -o silent to auto mount for mount.util-linux

This will silence some of the noisy output from mount.util-linux and the kernel
when trying to automount filesystems or devices. Busybox does not accept the silent
option, it uses a loud option instead.

[YOCTO #3935]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoncurses.inc: Fix display corruption and add fallback for sstate compiled paths
Jason Wessel [Sat, 9 Feb 2013 22:06:57 +0000 (16:06 -0600)] 
ncurses.inc: Fix display corruption and add fallback for sstate compiled paths

CQID: WIND00402979

Display corruption was occurring on 64 bit hosts using menuconfig for
the kernel and busybox with the ncurses-native or ncurses-nativesdk
because the configure arguments were not sufficient vs the expected
use from the upstream source.

Also changed in this commit is to provide a fallback to the hard
compiled paths for the terminfo and termcap.  Eventually this needs to
be fixed another way if we want a truly portable SDK because any SDK
that is relocated or native binaries pulled out of the sstate can end
up referencing terminfo files that no longer are in the same location.
Because the host system has terminfo files that ncurses will happily
use we might as well have a fall back to buy some time for a better
fix, vs having thing just not work occasionally when using sstate.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolib/oe/classextend.py: avoid extending any kernel package
Paul Eggleton [Fri, 5 Apr 2013 15:55:52 +0000 (16:55 +0100)] 
lib/oe/classextend.py: avoid extending any kernel package

For multilib and other uses of classextend, we don't want any
dependencies on kernel packages to be extended since there should only
be one kernel variant.

Fixes [YOCTO #2918] (where kernel-dev was being extended.)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoclassextend.py: use explode_dep_versions2 in order to preserve versions too
Constantin Musca [Tue, 5 Feb 2013 15:59:11 +0000 (17:59 +0200)] 
classextend.py: use explode_dep_versions2 in order to preserve versions too

Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agomultilib: skip packages that provide virtual/kernel
Bruce Ashfield [Thu, 31 Jan 2013 18:31:04 +0000 (13:31 -0500)] 
multilib: skip packages that provide virtual/kernel

Rather than keying on recipes that inherit kernel.bbclass, we should
be checking for providers of virtual/kernel when skipping kernel
recipes in multlib builds.

Not all providers of virtual/kernel inherit kernel.bbclass (notably
linux-dummy), so checking on the provider is a more complete check.

We need to be sure to check for inheritance of module-base as well, this
allows for packages that provides modules to avoid the multilib renaming.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolib/oe/classextend: Ensure we don't extend expressions more than once
Richard Purdie [Tue, 6 Nov 2012 08:29:00 +0000 (09:29 +0100)] 
lib/oe/classextend: Ensure we don't extend expressions more than once

We could end up with MLPREFIX being prepended to variables like
PACKAGE_DYNAMIC. This patch avoids the problem and unbreaks builds.

[YOCTO #3389]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agomultilib/clsextend: Improve handling of regexps in PACKAGES_DYNAMIC
Richard Purdie [Mon, 22 Oct 2012 12:20:04 +0000 (12:20 +0000)] 
multilib/clsextend: Improve handling of regexps in PACKAGES_DYNAMIC

Now that PACKAGES_DYNAMIC is more standardised, starting with ^ anchors,
the variable manipulations performed by clsextend for multilib don't work.

This patch at least improves it to hack around the problem and enable
mulitlib builds to work again. If this code doesn't do the right thing, the
recipe is free to override the variable with the correct multilib case.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoperl: fix CVE-2013-1667
Ross Burton [Mon, 29 Apr 2013 14:41:43 +0000 (15:41 +0100)] 
perl: fix CVE-2013-1667

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

"The rehash mechanism in Perl 5.8.2 through 5.16.x allows context-dependent
attackers to cause a denial of service (memory consumption and crash) via a
crafted hash key."

Patch taken from upstream git.

Signed-off-by: Ross Burton <ross.burton@intel.com>
11 years agoperl: fix CVE-2012-6329
Ross Burton [Mon, 29 Apr 2013 14:25:02 +0000 (15:25 +0100)] 
perl: fix CVE-2012-6329

From http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-6329:
"The _compile function in Maketext.pm in the Locale::Maketext implementation in
Perl before 5.17.7 does not properly handle backslashes and fully qualified
method names during compilation of bracket notation, which allows
context-dependent attackers to execute arbitrary commands via crafted input to
an application."

Patches taken from upstream git.

Signed-off-by: Ross Burton <ross.burton@intel.com>
11 years agoopenssh: fix CVE-2010-5107
Ross Burton [Mon, 29 Apr 2013 14:05:23 +0000 (15:05 +0100)] 
openssh: fix CVE-2010-5107

From http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2010-5107:
"The default configuration of OpenSSH through 6.1 enforces a fixed time limit
between establishing a TCP connection and completing a login, which makes it
easier for remote attackers to cause a denial of service (connection-slot
exhaustion) by periodically making many new TCP connections."

Integrate patches from upstream to enable "random early drop" by default./

Signed-off-by: Ross Burton <ross.burton@intel.com>
11 years agognupg: integrate fix for CVE-2012-6085
Ross Burton [Mon, 29 Apr 2013 13:47:22 +0000 (14:47 +0100)] 
gnupg: integrate fix for CVE-2012-6085

From http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-6085:
"The read_block function in g10/import.c in GnuPG 1.4.x before 1.4.13 and 2.0.x
through 2.0.19, when importing a key, allows remote attackers to corrupt the
public keyring database or cause a denial of service (application crash) via a
crafted length field of an OpenPGP packet."

Patch taken from upstream git, which is identical in both branches.

Signed-off-by: Ross Burton <ross.burton@intel.com>
11 years agoqemuimagetest/scenario: Move dmesg to end of test run
Richard Purdie [Tue, 9 Apr 2013 06:54:51 +0000 (06:54 +0000)] 
qemuimagetest/scenario: Move dmesg to end of test run

The dmesg test detects segfaults. This is useful information to have and if one
occurs in one of the earlier tests, this can aid debugging. Move the dmesg test to
the end of the list of tests so we gain the extra debug info in those cases.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqemuimage-tests/sanity/boot: Increase timeout
Richard Purdie [Sat, 6 Apr 2013 16:19:05 +0000 (17:19 +0100)] 
qemuimage-tests/sanity/boot: Increase timeout

As we've increased the parallelisation on the build servers, we've started to see
core-image-minimal sanity test boot failures where the network never comes up. We
don't see those failures for core-image-sato, its always minimal.

Looking at the results, it can take ~100 seconds for the network to come up,
even on the sato images if the machine has a high load. The timeout for the boot
test is only 120 seconds compared to 400 on every other test.

This change makes the timeout equal for all the tests at 400 seconds in the hope
that the load on the autobuilder is causing the sanity tests to run slowly and
hence triggering the false negatives.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosanity/connman: when connman test fails, dump syslog
Ross Burton [Fri, 5 Apr 2013 15:35:32 +0000 (16:35 +0100)] 
sanity/connman: when connman test fails, dump syslog

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqemuimage-testlib: add function to fetch the remote syslog
Ross Burton [Fri, 5 Apr 2013 15:35:31 +0000 (16:35 +0100)] 
qemuimage-testlib: add function to fetch the remote syslog

Add a new function to scp from the target, and another to fetch
/var/log/messages and dump it to the console.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqemuimage-testlib: silence some key warnings
Ross Burton [Fri, 5 Apr 2013 15:35:29 +0000 (16:35 +0100)] 
qemuimage-testlib: silence some key warnings

Set StrictHostKeyChecking to no to silence the fingerprint warnings, and instead
of creating a temporary file for the known hosts and then deleting it just use
/dev/null.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoconnman_test.sh: show all processes when dumping ps
Ross Burton [Fri, 5 Apr 2013 15:35:30 +0000 (16:35 +0100)] 
connman_test.sh: show all processes when dumping ps

We know the grep failed because the error case is being executed, so don't do
the grep again when attempting to help diagnose the problem, as seeing the full
process list might be useful.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqemuimage-testlib-pythonhelper: Fix process mixups
Richard Purdie [Fri, 5 Apr 2013 10:00:25 +0000 (10:00 +0000)] 
qemuimage-testlib-pythonhelper: Fix process mixups

runqemu-internal runs "ldd qemu-system xxx" and the detection code was returning this
as the PID of qemu. This patch improves the detection code to avoid this problem,
fixing certain race type failures on the autobuilder.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoscripts/qemuimage-testlib: Dump extra info if the network doesn't come up
Richard Purdie [Thu, 4 Apr 2013 22:24:53 +0000 (23:24 +0100)] 
scripts/qemuimage-testlib: Dump extra info if the network doesn't come up

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqemuimage-testlib: Fix quoting issue
Richard Purdie [Sat, 30 Mar 2013 16:44:27 +0000 (16:44 +0000)] 
qemuimage-testlib: Fix quoting issue

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqemuimage-testlib: Use ww option to ps to ensure command output isn't truncated
Richard Purdie [Sat, 30 Mar 2013 12:50:10 +0000 (12:50 +0000)] 
qemuimage-testlib: Use ww option to ps to ensure command output isn't truncated

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqemuimage-testlib: Increase qemu startup timeouts
Richard Purdie [Sat, 30 Mar 2013 09:02:35 +0000 (09:02 +0000)] 
qemuimage-testlib: Increase qemu startup timeouts

We are seeing timeouts on the autobuilder where qemu does start but the script
doesn't appear to be able to detect it in time. This patch increases the
timeouts since there seems little harm in doing so.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoinitramfs-live-install*: fix the "install" boot option
Nitin A Kamble [Mon, 15 Apr 2013 18:33:46 +0000 (11:33 -0700)] 
initramfs-live-install*: fix the "install" boot option

The install boot option was giving the following error when one tried to
install the live image on a  permanent storage of a BSP.

cat: write error Invalid argument
Installation image failed
sh: can't access tty: job control turned off

Further digging into the issue, found out that the install script was trying
to do this:
 cat /proc/mounts > /etc/mtab

And in the base-files recipe the /etc/mtab is made soft link to /proc/mounts.
So the cat command was failing to write on /etc/mtab. As the contents of
the /proc/mounts is already reflected in the /etc/mtab file due to the
symlink-ing, there is no need for this step to recreate /etc/mtab in the
install script. So just removing this unnecessary step, which solves the
install issue of the live images.

Fixes this bug:
[YOCTO #4229]

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibproxy: add dependency on glib-2.0
Alexandru DAMIAN [Thu, 4 Apr 2013 07:43:37 +0000 (10:43 +0300)] 
libproxy: add dependency on glib-2.0

libproxy uses glib-2.0, but the depends is missing

Fixes intermittent build errors.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobluez4: add readline dependency
Alexandru DAMIAN [Mon, 8 Apr 2013 12:56:39 +0000 (15:56 +0300)] 
bluez4: add readline dependency

bluez4 uses readline to be build, but the dependency is not listed
This is listed in the configuration log.
So we add it.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-dtb: fix whitespace in bash functions
Chase Maupin [Wed, 3 Apr 2013 19:23:59 +0000 (14:23 -0500)] 
linux-dtb: fix whitespace in bash functions

* Fix the whitespace in the base functions to use TAB instead
  of spaces.  This is to address feedback from:
        Darren Hart <dvhart@linux.intel.com>

Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-dtb: Add simple DTB symlinks for devicetree
Chase Maupin [Wed, 3 Apr 2013 19:23:58 +0000 (14:23 -0500)] 
linux-dtb: Add simple DTB symlinks for devicetree

* This is similar to the symlinks provided for the kernel image
  in the /boot directory of a file system.  The goal is to have
  simply named symlinks in /boot that mirror the device tree
  name in the kernel sources.  This is so that programs like
  U-Boot can easily find the default device tree binary in the
  /boot directory and use that when booting the kernel.
* Use update-alternatives to handle proper creation and removal
  of the symlinks.

Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agokernel bbclass: return to original directory in do_deploy
Chase Maupin [Wed, 13 Mar 2013 12:03:50 +0000 (07:03 -0500)] 
kernel bbclass: return to original directory in do_deploy

* During the base kernel_do_deploy function the directory is
  changed to DEPLOYDIR in order to do some cleanup and symlinking.
  However, the directory is not changed back to the original
  starting directory ${S} at the end.  For append functions this
  means that the starting directory is not ${S} as expected but
  instead ${DEPLOYDIR}.

  For functions like the do_deploy_append in
  recipes-kernel/linux/linux-dtb.inc there is an assumption that
  you are still in the source directory and not the DEPLOYDIR.
  Without this change the .dtb files are not copied because the
  check for the existence of ${DTS_FILE} which is a relative
  path from the ${S} directory fails.  This means that the .dtb
  files are not copied into the deploy directory and subsequently
  the deploy/images directory.

  In the log.do_deploy file you will see lines like:

    Warning: arch/arm/boot/dts/xxxxx.dts is not available!

Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agorelocate_sdk.py: allow relocate_sdk.py to work with python 2.4.x
Jason Wessel [Tue, 12 Feb 2013 11:08:23 +0000 (05:08 -0600)] 
relocate_sdk.py: allow relocate_sdk.py to work with python 2.4.x

Avoid the chicken / egg problem of an SDK that provides a working
python but requires that version of python to extract itself.  The
RHEL 5.x systems and some other enterprise Linux systems ship with
python 2.4.x as the default python.  We need to at least be able to
extract work executables even if we never use the the host provided
python again.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agorelocate_sdk.py: Fix corruption of sdk binaries
Jason Wessel [Tue, 12 Feb 2013 11:08:21 +0000 (05:08 -0600)] 
relocate_sdk.py: Fix corruption of sdk binaries

There are two cases of corruption that the relocate_sdk.py was not correctly
dealing with.

1) SDK Extras should be left alone
   Extra external binaries included in an SDK that were linked against the
   host's version of /usr/lib/ld-so.so should not get a relocation applied.
   In the case that was discovered these were LSB compliant binaries that
   already worked on many hosts.

2) If the interp section is too small generate an error
   In the case of the qemu user code, it was using its own .ld file
   to link the executables which overrides the default in the nativesdk
   binutils.  This generated host executables which had a interp section
   that was too small to relocate.

   Now the relocate_sdk.py will print an error and continue on such that
   the error can be fixed by a developer without having to do the
   difficult task of debugging why it is crashing or not loading correctly.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopopulate_sdk_base.bbclass:fix toolchain relocation issues
Hongxu Jia [Mon, 11 Mar 2013 07:04:17 +0000 (15:04 +0800)] 
populate_sdk_base.bbclass:fix toolchain relocation issues

When run "autoreconf" in toolchain, there is an error if the host's perl's
version is not the same as the one in the SDK, the error says that the
executable perl mismatches the perl lib's version.

This is because most of the autotools' scripts use the "#!/usr/bin/perl -w"
which is host perl, but the gnu-configize uses "#! /usr/bin/env perl" which
invokes the perl wrapper in the SDK, and the wrapper will set the PERL5LIB to
the SDK which causes the mismatch. We can make all the perl scripts to use the
host perl or the SDK perl to fix this problem.

Cherry-pick commit aeb53bd78991af9fbb60d64176ec864cfc2ddbb9

[YOCTO #3984]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
11 years agoperl_5.14.2.bb:fix toolchain relocation issues
Hongxu Jia [Mon, 11 Mar 2013 06:59:03 +0000 (14:59 +0800)] 
perl_5.14.2.bb:fix toolchain relocation issues

1, Use create_wrapper to create perl wrapper in the SDK.
2, Add perl.real to perl-nativesdk package.

Cherry-pick commit 820a64bfb7b27e3aaa3b8c0228c4ed70b64c03d1

[YOCTO #3984]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
11 years agopopulate_sdk_base: tarball installer: SDK overwrite warning
Hongxu Jia [Mon, 11 Mar 2013 06:55:44 +0000 (14:55 +0800)] 
populate_sdk_base: tarball installer: SDK overwrite warning

This patch contains two fixes:
* if the user wants to install the SDK in a directory that already
  contains a SDK for the same architecture, a warning will be shown;
* when the symbolic links are relocated use -n option. Otherwise,
  symbolic links to existing directories will be created in the
  directory itself;

Cherry-pick commit b751ec137d0228b40a90e9e32b24f5cb5732225b

[YOCTO #3401]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
11 years agonativesdk-ncurses 5.9: fix files were installed but not shipped
Hongxu Jia [Mon, 11 Mar 2013 06:52:32 +0000 (14:52 +0800)] 
nativesdk-ncurses 5.9: fix files were installed but not shipped

There is an warning:

$ bitbake nativesdk-ncurses

WARNING: QA Issue: nativesdk-ncurses: Files/directories were installed
but not shipped
  /opt/poky/1.3+snapshot/sysroots/i686-pokysdk-linux/usr/bin/clear.ncurses
  /opt/poky/1.3+snapshot/sysroots/i686-pokysdk-linux/usr/bin/reset.ncurses

NOTE: Tasks Summary: Attempted 533 tasks of which 521 didn't need to be
rerun and all succeeded.

And there is no clear or reset tool in the SDK.

This is caused by:
ALTERNATIVE_ncurses-tools = "clear reset"

It creates clear.ncurses and reset.ncurses which are used for avoiding
the conflicts with the target busybox, but SDK doesn't need them since
there is no nativesdk-busybox (then no conflicts), so:

ALTERNATIVE_ncurses-tools_class-target = "clear reset"

will fix the problem.

Cherry-pick commit dfc39d7bd5a9ad803d7c44b21811881515f7de02

[YOCTO #3325]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
11 years agoautomake_1.12.3.bb: update dependencies
Hongxu Jia [Mon, 11 Mar 2013 06:49:47 +0000 (14:49 +0800)] 
automake_1.12.3.bb: update dependencies

Remove the RDEPENDS for nativesdk because the nativesdk-automake also
needs perl modules.

Add dependencies perl-module-thread-queue and perl-module-threads.

Remove redundant dependencies that they are already required by autoconf
and autoconf is required by automake.

In this removed list, "-->" present "required by":

perl-module-cwd --> perl-module-file-path --> autoconf
perl-module-dynaloader --> perl-module-xsloader --> perl-module-fcntl
--> perl-module-file-stat --> autoconf

perl-module-exporter-heavy --> perl-module-exporter --> autoconf
perl-module-constant --> autoconf
perl-module-errno --> autoconf
perl-module-file-basename --> autoconf
perl-module-file-compare --> autoconf
perl-module-file-copy --> autoconf
perl-module-file-glob --> autoconf
perl-module-file-spec-unix --> perl-module-file-spec
--> perl-module-io-file --> autoconf

perl-module-file-stat --> autoconf
perl-module-getopt-long --> autoconf
perl-module-io --> perl-module-IO-handle --> perl-module-IO-seekable
--> perl-module-io-file --> autoconf

perl-module-io-file --> autoconf
perl-module-posix --> autoconf
Bump up PR.

Cherry-pick commit d93898b2c530681362e42d1b0477fa593a625046

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
11 years agoperl_5.14.2.bb:fix errors if configure is reattempted
Hongxu Jia [Mon, 11 Mar 2013 06:47:31 +0000 (14:47 +0800)] 
perl_5.14.2.bb:fix errors if configure is reattempted

If configure of perl is reattempted it currently fails as it tries to edit
files outside ${S}. Chaging from ${WORKDIR} to ${S} avoids this issue
and allows rebuilds to work.

Cherry-pick commit f2f0a1aa489f9e6e4414fa758d3dd09a950a106c

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
11 years agogenerate-sh.patch:fix autoreconf run failed on gmae-toolchain
Hongxu Jia [Mon, 11 Mar 2013 06:44:19 +0000 (14:44 +0800)] 
generate-sh.patch:fix autoreconf run failed on gmae-toolchain

The perl shared libraries did not have RPATHs set and that made
autoreconf fail when using the SDK. The LDDLFLAGS environment variable
was already exported in the recipe but was not used when generating the
config.sh.

Cherry-pick commit df1a1dcb6d95a4aa558019530445373537c4efdd

[YOCTO #3338]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
11 years agoperl_5.14.2.bb:fix autoreconf run failed on gmae-toolchain
Hongxu Jia [Mon, 11 Mar 2013 06:41:18 +0000 (14:41 +0800)] 
perl_5.14.2.bb:fix autoreconf run failed on gmae-toolchain

File warnings/register.pm has been moved to package perl, update
RPROVIDES_perl to provides perl-module-warnings-register for backward
compatibility.

Update populate_package script for:
1 Way to deal directory 'Module/' is not right, it creates packages
whose names end with '-pm'. Update to drop these packages.
2 Deal directory 'auto/' to put same name module file(.pm) and library
file(.so) into one package. That because .pm file requires the same
name .so file at runtime.

Cherry-pick commit dd65b82d24afcf3982f6fb93a6503c71fdf40dbf

[Yocto #3338]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
11 years agoperl_5.14.2.bb:Fix support strict/vars/config/warnings modules
Hongxu Jia [Mon, 11 Mar 2013 06:39:45 +0000 (14:39 +0800)] 
perl_5.14.2.bb:Fix support strict/vars/config/warnings modules

With the move of the strict/vars/config/warnings modules to the main perl
recipe, we need to RPROVIDE those modules to ensure that package dependencies
on those modules continue to work correctly.

Cherry-pick commit 072a6d352f55bbe481b04db02aa6d9cde7d90057

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
11 years agoperl_5.14.2.bb: use PACKAGES_DYNAMIC as regexp
Hongxu Jia [Mon, 11 Mar 2013 06:38:10 +0000 (14:38 +0800)] 
perl_5.14.2.bb: use PACKAGES_DYNAMIC as regexp

bitbake uses PACKAGES_DYNAMIC as regexp
1, use `^' to make matching faster (and it will be more clear
that we're expecting regexp not glob)

2, use `*' to made all those last '-' optional, use .* (or nothing)

3, use `+=' instead of `=' to to keep ${PN}-locale from
bitbake.conf:PACKAGES_DYNAMIC = "^${PN}-locale-.*"

Cherry-pick commit 33b31640bf485bcfefee015e9df81aa9989b322c
Cherry-pick commit fadb4079014514beb7d2d3e6c66f63397d4ebce2

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
11 years agoperl_5.14.2.bb: fix dependecies
Hongxu Jia [Mon, 11 Mar 2013 06:34:09 +0000 (14:34 +0800)] 
perl_5.14.2.bb: fix dependecies

This patch fixes 2 problems.

The first one is that when run "perl -V" on target, it fails with lack
of some .pm files. So add these perl module files to package perl itself
to fix this failure.

The second problem is that package nativesdk-perl-modules doesn't depends
on the single perl modules.

In the .bb file, dependencies of perl-modules are set by:
RRECOMMENDS_perl-modules = "${@d.getVar('PACKAGES', True)...}"
The PACKAGES would be reset by do_split_packages since:

PACKAGES_DYNAMIC = "perl-module-*"
PACKAGES_DYNAMIC_virtclass-nativesdk = "nativesdk-perl-module-*"

Then:
1) The target perl-modules RRECOMMENDS on perl-module-*, this is what
   we expect.
2) But the nativesdk-perl-modules doesn't RRECOMMENDS on
   nativesdk-perl-module-*, this is not what we expect.
The value of PACKAGES after do_split_packages has been set correctly (it
contains the nativesdk-perl-module-* packages)

But the:RRECOMMENDS_perl-modules = "${@d.getVar('PACKAGES', True)...}"
doesn't work correctly for nativesdk, the
d.getVar('RRECOMMENDS_perl-modules', True)
doesn't get the new value of the PACKAGES, it gets the value of PACKAGES
before the do_split_packages.

Cherry-pick commit 51cbb5ae76a22d465e2f6c5ef923ec2682624e3b

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
11 years agoperl-rdepends_5.14.2.inc:be more strict in multiline comment
Hongxu Jia [Mon, 11 Mar 2013 06:31:40 +0000 (14:31 +0800)] 
perl-rdepends_5.14.2.inc:be more strict in multiline comment

* fails to parse when http://patchwork.openembedded.org/patch/40997/ is used
Parsing recipes...ERROR: There is a confusing multiline, partially commented
expression on line 10 of file
/OE/shr-core/openembedded-core/meta/recipes-devtools/perl/perl-rdepends_5.14.2.inc
(| sed "s/\/.*\.pm: */ += /g;s/[\"\']//g;s/;.*/\"/g;s/+=.*\(require\|use\)\>
 */+=
 \"perl-module-/g;s/CPANPLUS::.*/cpanplus/g;s/CPAN::.*/cpan/g;s/::/-/g;s/
 [^+\"].*//g;s/_/-/g;s/\.pl\"$/\"/;s/\"\?\$/\"/;s/(//;" | tr [:upper:] [:lower:]
\).
Please clarify whether this is all a comment or should be parsed.
ERROR: Unable to parse
/OE/shr-core/openembedded-core/meta/recipes-devtools/perl/perl_5.14.2.bb: Exited
with "1"
ERROR: Command execution failed: Exited with 1

Cherry-pick commit 54b8096f91af47c72ac9abffe2f5c73fee27ad57

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
11 years agoperl-rdepends_5.14.2.inc:update dependency creating script
Hongxu Jia [Mon, 11 Mar 2013 06:22:19 +0000 (14:22 +0800)] 
perl-rdepends_5.14.2.inc:update dependency creating script

Base on dependency create script provided by Saul, I update it with:
1 remove document strings in perl module files that may import fake
dependencies.

2 not all the 'use' or 'require' clauses start at the begin of line, and
some of them don't end with ';', such as:

use vars qw(
             $AUTOLOAD
     ...
3 filter some strings that they are not real dependencies: some of them
are wrong result of script, some are conditional use/require, and some
are cpan extra modules that we don't need.

Cherry-pick commit 4601eb90f518fdc2d5fda31507402f7929268c87

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
11 years agoperl-rdepends_5.14.2.inc:fix perl File::Glob module is broken
Hongxu Jia [Mon, 11 Mar 2013 06:19:29 +0000 (14:19 +0800)] 
perl-rdepends_5.14.2.inc:fix perl File::Glob module is broken

Update dependencies for perl modules again. When only install
perl-module-file-glob, run perl script with "require File::Glob;" will
fail. Update dependencies to fix that.

Cherry-pick commit c65e88b3f20627d7e49e0306f336eee3fb256d1e

[Yocto 3069]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
11 years agoperl-rdepends_5.14.2.inc: update dependencies among modules
Hongxu Jia [Mon, 11 Mar 2013 06:16:44 +0000 (14:16 +0800)] 
perl-rdepends_5.14.2.inc: update dependencies among modules

Run autoreconf fails because it uses several perl modules and they
requires other perl modules. So update these dependencies for:
perl-module-exporter
perl-module-file-glob
perl-module-file-path
perl-module-file-spec
perl-module-file-stat
perl-module-io-file
perl-module-io-handle
perl-module-io-seekable
perl-module-posix
And RDEPENDS rules in file perl-rdepends_5.14.2.inc don't work for
nativesdk perl module packages. Replace all "perl" with "${PN}" in the
file to fix that.

In nativesdk.bbclass it calls
oe.classextend.NativesdkClassExtender().map_packagevars() to map package
vars include var RDEPENDS. In map_packagevars():
for pkg in (self.d.getVar("PACKAGES", True).split() + [""]):

the value of var "PACKAGES" may not be calculated correctly, so for
all the nativesdk packages created by
  PACKAGES_DYNAMIC_virtclass-nativesdk += "^nativesdk-perl-module-.*"
dependencies are wrong.

Cherry-pick commit f816625bf21348c1b0d887d11a77e7f5010ce76d

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
11 years agoautoconf:fix autoreconf run failed on x86-64 gmae-toolchain
Hongxu Jia [Mon, 11 Mar 2013 06:14:15 +0000 (14:14 +0800)] 
autoconf:fix autoreconf run failed on x86-64 gmae-toolchain

Update autoconf runtime dependencies on perl and perl modules. And
remove RDEPENDS for nativesdk because the nativesdk-autoconf has same
dependencies with autoconf.

Then fixes autoreconf runs failed both on target and toolchain.

Bump up PR.

Cherry-pick commit 3533e801eecb26ae9f97649ed2f675c3965a797b

[Yocto 3100]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
11 years agotoolchain-scripts.bbclass:add PYTHONHOME variable to environment-setup
Hongxu Jia [Mon, 11 Mar 2013 06:10:27 +0000 (14:10 +0800)] 
toolchain-scripts.bbclass:add PYTHONHOME variable to environment-setup

When relocating the SDK, applications using python will search for
python modules in the default location and will fail to start.
The below errors are thrown by gdb, for example:

Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
ImportError: No module named site

In order to overcome this, add the PYTHONHOME variable to the
environment-setup script for both standalone toolchain and
adt-installer. No need to do that for meta-ide-support environment
script since this toolchain does not get relocated.

Cherry-pick commit db0a02492c2a53c1917b753bcf21c4ee7c0ecf59

[YOCTO #3839]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
11 years agodistutils: Replacing path to native python by path to python in the image to support...
Lukas Bulwahn [Thu, 13 Dec 2012 16:55:38 +0000 (17:55 +0100)] 
distutils: Replacing path to native python by path to python in the image to support python packages with console-script setup

When using distutils for a python package based on a python-setuptools
installation script that sets up a console script, the header
of the console script created by setuptools points to the
python-native path.

The console scripts are commonly executed in the image, but not
in the sysroot environment. Therefore, the header of the
console scripts should point to the python interpreter in the
image.

Setuptools does not allow to set the path of the python
interpreter via some command-line argument.
Hence after the installation script ran, the distutils
class replaces the path in the console script files created by
the installation.

Signed-off-by: Lukas Bulwahn <Lukas.Bulwahn@oss.bmw-carit.de>
sgw - added \ to protect the space.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoutil-linux: Update License Information (remove GPLv3 Licnese)
Saul Wold [Fri, 15 Mar 2013 19:54:40 +0000 (12:54 -0700)] 
util-linux: Update License Information (remove GPLv3 Licnese)

The upstream authors have updated the licenses of a couple subcomponents,
these were GPLv3, but updated to be either GPLv2 or LGPLv2.1 accordingly.
These changes make the util-linux package become completely non-GPLv3.

Cleaned up some white space issue also

[YOCTO #4014]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopopulate_sdk_base.bbclass: add execution permission for self-extracting archive
Jackie Huang [Tue, 11 Dec 2012 05:34:02 +0000 (13:34 +0800)] 
populate_sdk_base.bbclass: add execution permission for self-extracting archive

[ CQID: WIND00392947 ]

It is not good user experience that the self-extracting archive (.sh file)
has no execution permission by default.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoadt-installer: remove patches and .pc directories from the shipped tarball
Laurentiu Palcu [Fri, 8 Mar 2013 15:23:44 +0000 (17:23 +0200)] 
adt-installer: remove patches and .pc directories from the shipped tarball

The patches and .pc directories should not be shipped since the patches
were already applied. So, remove these 2 directories.

[YOCTO #3983]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqemux86-64: Disable paravirt guest, causes test failure on older kernels
Darren Hart [Wed, 30 Jan 2013 23:15:34 +0000 (15:15 -0800)] 
qemux86-64: Disable paravirt guest, causes test failure on older kernels

The 2.6.37 kernel on the AB occasionally fails dmesg and shutdown
tests with general protection faults.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoconsole-tools: fix linking when using the multilib compiler
Constantin Musca [Mon, 4 Feb 2013 09:20:18 +0000 (11:20 +0200)] 
console-tools: fix linking when using the multilib compiler

fix-libconsole-link.patch: add patch for fixing libconsole
linking problems when using multilib gcc

Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoconsole-tools: Fix build issues with make 3.82
Richard Purdie [Fri, 19 Oct 2012 16:34:41 +0000 (16:34 +0000)] 
console-tools: Fix build issues with make 3.82

The intl directory is part of older gettext and has macros which no
longer get expanded with recent gettext versions. This simply removes
the intl directory from the equation since we'd never need it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoconsole-tools: Clean up recipe
Richard Purdie [Wed, 17 Oct 2012 12:18:12 +0000 (12:18 +0000)] 
console-tools: Clean up recipe

This cleans up various bits of nastiness in this recipe:
  * Drop unneeded m4 macros
  * Update to a recent version of gettext (needs addition of Makevars file)
  * Drop split do_compile and SUBDIRS hacks, just patch out the docs
  * Remove some of the configure.in hacks since they seem unneeded now
    and break gettext (the AC_OUTPUT change).
  * Wipe out acinclude.m4 since it has corrisive contents

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibtool: Ensure the paths to sed are not hardcoded
Richard Purdie [Thu, 11 Oct 2012 08:41:05 +0000 (08:41 +0000)] 
libtool: Ensure the paths to sed are not hardcoded

If you:

bitbake sed-native
bitbake libtool-cross

then libtool-cross has SED="/path/to/sysroot/sed" which is incorrect. If that
is reused from sstate or sed-native is cleaned, the build will fail.

This patch simply sets sed to be "sed" since we're not on systems where
the sed from PATH is broken.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoncurses.inc: Fix display corruption and add fallback for sstate compiled paths
Jason Wessel [Sat, 9 Feb 2013 22:06:57 +0000 (16:06 -0600)] 
ncurses.inc: Fix display corruption and add fallback for sstate compiled paths

CQID: WIND00402979

Display corruption was occurring on 64 bit hosts using menuconfig for
the kernel and busybox with the ncurses-native or ncurses-nativesdk
because the configure arguments were not sufficient vs the expected
use from the upstream source.

Also changed in this commit is to provide a fallback to the hard
compiled paths for the terminfo and termcap.  Eventually this needs to
be fixed another way if we want a truly portable SDK because any SDK
that is relocated or native binaries pulled out of the sstate can end
up referencing terminfo files that no longer are in the same location.
Because the host system has terminfo files that ncurses will happily
use we might as well have a fall back to buy some time for a better
fix, vs having thing just not work occasionally when using sstate.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoperf: add bash dependency
Tom Zanussi [Fri, 1 Mar 2013 17:34:56 +0000 (11:34 -0600)] 
perf: add bash dependency

There are a number of scripts in the perf installation that use bash,
so we need to add a run-time dependency on bash for them. If not, we
can generate build errors like "no package provides /bin/bash".

Fixes [YOCTO #3951].

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agosystemtap: add python and bash dependencies
Tom Zanussi [Fri, 1 Mar 2013 17:34:57 +0000 (11:34 -0600)] 
systemtap: add python and bash dependencies

There are a number of scripts in the systemtap installation that use
python and bash, so we need to add run-time dependencies for them.  If
not, we can generate build errors like "no package provides
/usr/bin/python".

Fixes [YOCTO #3951].

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
11 years agoremake: do not create po files
Saul Wold [Thu, 14 Feb 2013 22:12:51 +0000 (14:12 -0800)] 
remake: do not create po files

The 'make update' was using wget to get the gmo and other gnu files from
upstream, since need to work cleanly in a non-networked or proxy environment
this does not so well.  Remove the list of languages from the LINGUAS file.

[YOCTO #3745]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agorootfs_ipk.bbclass: add missing --force_postinstall option
Laurentiu Palcu [Wed, 28 Nov 2012 15:13:25 +0000 (17:13 +0200)] 
rootfs_ipk.bbclass: add missing --force_postinstall option

The force_postinstall option was missing and some packages were
configured on target rather than on host at rootfs time.

(From OE-Core rev: dfadfaa0b38678029ffebe14f15e2dbc148cb1fb)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqemuimage-testlib: Capture stderror in the logs as well as stdout
Richard Purdie [Wed, 27 Mar 2013 13:52:29 +0000 (13:52 +0000)] 
qemuimage-testlib: Capture stderror in the logs as well as stdout

This allows error messages to be captured in the logs which is helpful.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqemuimagetest: collect and print runqemu output
Paul Eggleton [Tue, 26 Mar 2013 12:43:05 +0000 (12:43 +0000)] 
qemuimagetest: collect and print runqemu output

If runqemu (or qemu itself) fails we need to know why, so tee out to a
log file and print it when we can't find the qemu process or determine
its IP address.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqemuimagetest: fix erroneous ps errors when qemu couldn't be started
Paul Eggleton [Tue, 26 Mar 2013 12:43:04 +0000 (12:43 +0000)] 
qemuimagetest: fix erroneous ps errors when qemu couldn't be started

The helper script was printing an error to stdout when it couldn't find
any qemu child processes; output this error to stderr instead and
redirect stderr to /dev/null when running from qemuimage-testlib so that
QEMUPID is actually blank if there are no qemu instances found.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoscripts/qemu-testlib: Add more debugging information
Richard Purdie [Thu, 21 Mar 2013 14:29:57 +0000 (14:29 +0000)] 
scripts/qemu-testlib: Add more debugging information

This extra information should allow better forensics if the sanity tests
fail as they're currently doing occasionaly on the autobuilder for unknown
reasons.

The patch also tightens up certain checks to remove pointless noise and
error output from the logs.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoscripts/runqemu-internal: Fix lock races
Richard Purdie [Wed, 20 Mar 2013 22:58:30 +0000 (22:58 +0000)] 
scripts/runqemu-internal: Fix lock races

There are two problems here. Firstly the grep command is unanchored so
pid 345 will match against 12345 and so on.

The second issue is that there are several context switched between attempting
the lock and then writing the pid to it.

Between the two issues, there were issues appearing on the autobuilder due
to these conflicts. This patch replaces the mechanism with flock on fd 8
which should be a safer mechanism to use.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agorunqemu: Improve error handling/exit codes
Richard Purdie [Wed, 20 Mar 2013 11:48:53 +0000 (11:48 +0000)] 
runqemu: Improve error handling/exit codes

runqemu-internal is sourced so should be returning with an error code in
case of errors. runqemu needs to deal with this.

This patch fixes up the various error paths so we're consistent and get
a sane exit status for runqemu which helps a lot in its use in the qemu
runtime testing on the autobuilder.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqemuimage-testlib: Add extra debugging and sanity check
Richard Purdie [Wed, 20 Mar 2013 10:58:24 +0000 (10:58 +0000)] 
qemuimage-testlib: Add extra debugging and sanity check

Check for a zero IP address since its clearly incorrect if that value
is found. Also add debugging for cases where we can't find the qemu
process. A process listing is handy to help understand what the problem
might be.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqemuimage-testlib: Add delay to work around races in qemu startup
Richard Purdie [Wed, 20 Mar 2013 09:27:39 +0000 (09:27 +0000)] 
qemuimage-testlib: Add delay to work around races in qemu startup

Qemu changes pid when starting up. On a loaded machine, this can result
in the incorrect pid being returned. Since qemu will take a few seconds to
boot anyway, we might as well delay a short while and allow things to settle
which should fix various race issues being seen on the autobuilder.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqemuimage-testlib: Fix IP address handling
Richard Purdie [Tue, 19 Mar 2013 23:32:29 +0000 (23:32 +0000)] 
qemuimage-testlib: Fix IP address handling

Remove some pointless code and also fix the return handling
for the function since it returns null, not 0 as the comments
would suggest.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoscripts/qemutestlib: Add better process debugging and fix process group issue
Richard Purdie [Tue, 19 Mar 2013 20:54:33 +0000 (20:54 +0000)] 
scripts/qemutestlib: Add better process debugging and fix process group issue

In single testing with a shutdown scenario the processes are cleaned up correctly
but the manual cleanup fall back used for a minimal image do not work properly.
This patch fixes the kill commands to revert to non-process groups, fixing
the hung process issues that were occuring.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqemu-testlib: Add python helper and simplify shell
Richard Purdie [Tue, 19 Mar 2013 11:44:27 +0000 (11:44 +0000)] 
qemu-testlib: Add python helper and simplify shell

The current code has a race since it greps for *any* qemu process
running, even if it isn't the one we started. This leads to some sanity
tests potentially failing on machines where multiple sets of sanity tests
are running.

To resovle this and some other ugly code issues, add a python script
to accurately walk the process tree and find the qemu process. We can
then replace all the shell functions attempting this which happen to
work in many cases but not all.

Also clean up some of the error handling so its more legible.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoinstall: Look for grub2 files on the initramfs, not rootfs
Darren Hart [Thu, 21 Feb 2013 17:28:02 +0000 (09:28 -0800)] 
install: Look for grub2 files on the initramfs, not rootfs

Fixes [YOCTO #3870] atom-pc - cannot boot image on netbook after install

The problem here is that grub2 is installed but a grub 1 menu.lst is
created at install time. At boot, grub2 doesn't find a grub.cfg file and
drops to the grub shell.

This happens because the installer is looking for 40_custom (a grub2
file) on the rootfs, but grub2 isn't installed on the rootfs. It exists
in the initramfs. Patching the installer to look on the initramfs
resolves the problem.

Note that the problem may have occurred if grub2 used to be installed on
the rootfs but was later removed. In any case, the installer is HORRIBLE
and really needs to be completely redesigned as part of the deployment
effort. For now, this should get the live image installer limping along
again.

Tested on a Toshiba NB-305.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: alexandru.c.georgescu@intel.com
Cc: sgw@linux.intel.com
Cc: ross.burton@intel.com
Cc: richard.purdie@intel.com
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotcp-wrappers: add socklen_t.patch
farrah rashid [Wed, 20 Feb 2013 21:09:48 +0000 (16:09 -0500)] 
tcp-wrappers: add socklen_t.patch

Replace incorrect size_t data type with socket length data type

Signed-off-by: farrah rashid <farrah.rashid@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotcp-wrappers: remove size_t.patch
Roy.Li [Sat, 2 Feb 2013 08:18:22 +0000 (16:18 +0800)] 
tcp-wrappers: remove size_t.patch

1. it introduces bug in 64bit big endian process with __GLIBC__, At that
condition, size_t is 8byte, and the third parameter of getpeername is
socklen_t which is 4 byte. As a result, getpeername sees third parameter
is always 0, and can not return right value.

The similar program is below, the output is 0, not 9 on PPC64 cpu
main()
{
long aa=9;
printf("%d \n", *((int *)&aa));
}

2. The correct fix is to change getpeername/getsockopt/recvfrom.. last
parameter type from int to socklen_t, but to simplify, we can remove
size_t.patch, since the size of int is same as socklen_t in 32bit/64bit
cpu. and size_t.patch only change three places, there are other places
which uses int, and work well.

2. Fedora, redhat el4 do not use this patch, but Debian uses it, does not
find why this patch is written, maybe it is gcc legency issue which does
not exist.

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoalsa-tools: fix compilation error
Ross Burton [Fri, 1 Mar 2013 14:32:00 +0000 (14:32 +0000)] 
alsa-tools: fix compilation error

Backport a fix from master to fix cross-compilation issues related to automake.

Signed-off-by: Ross Burton <ross.burton@intel.com>
11 years agobase-passwd.preinst:fix creating passwd and group error
Hongxu Jia [Thu, 21 Feb 2013 06:22:16 +0000 (14:22 +0800)] 
base-passwd.preinst:fix creating passwd and group error

Create files `passwd' and `group' in `$D${sysconfdir}', if `$D${sysconfdir}'
does not exist, there is an error:
...
cannot create $D${sysconfdir}/passwd: Directory nonexistent
cannot create $D${sysconfdir}/group: Directory nonexistent
...

Attampt to create dir before file creation.

[YOCTO #3917]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agotzdata: Simplify code removing not used cases
Otavio Salvador [Fri, 8 Feb 2013 14:52:20 +0000 (14:52 +0000)] 
tzdata: Simplify code removing not used cases

We shouldn't have an use-case where we'd use 'FUBAR' timezone so
instead of adding postinst handling for this use case we handle it at
install time and keep the Universal as fallback if user did something
wrong.

This also ensure the /etc/localtime file is kept as a symbolic link.
This will make timezone not available when /usr is in separated
partition (and not mounted) however the applications ought to fallback
to GMT timezone in this case and when /usr is made availble timezone
will work fine.

Change-Id: I9a4f05db7a0bdc06511deb5693d1d16569d2fc63
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotzdata: We shouldn't override the localtime if it is valid
Otavio Salvador [Fri, 8 Feb 2013 14:52:19 +0000 (14:52 +0000)] 
tzdata: We shouldn't override the localtime if it is valid

The code where mistakenly replacing the localtime file setting so we
end with a copy of file instead of a symbolic link. This fixes it so
now, we'll only do that in case the link is pointing to invalid data.

Change-Id: I16dfa5ea4f293c48bb396f4e23a2ea53e6c9e745
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobase-files: fix 'dash' expanding '\n'
Javier Viguera [Wed, 20 Feb 2013 15:09:17 +0000 (16:09 +0100)] 
base-files: fix 'dash' expanding '\n'

Dash's 'echo' command expands '\n' by default, so the '\n' is not
included in the '/etc/issue' file.

Use 'printf' for portability between different shells.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoperl: fix security issue
Kang Kai [Thu, 24 Jan 2013 08:58:15 +0000 (16:58 +0800)] 
perl: fix security issue

Add perl-fix-CVE-2012-5195.patch to fix perl memory exhaustion
denial-of-service attack issue.

And patch is from perl 5.14.3 branch:
http://perl5.git.perl.org/perl.git/commit/b675304e3fdbcce3ef853b06b6ebe870d99faa7e

[Yocto 3701]

Signed-off-by: Kang Kai <kai.kang@windriver.com>
11 years agoPython: Fix for CVE-2012-2135
yanjun.zhu [Fri, 30 Nov 2012 11:23:48 +0000 (19:23 +0800)] 
Python: Fix for CVE-2012-2135

Reference:http://http://bugs.python.org/issue14579

The utf-16 decoder in Python 3.1 through 3.3 does not update the
aligned_end variable after calling the unicode_decode_call_errorhandler
function, which allows remote attackers to obtain sensitive information
(process memory) or cause a denial of service (memory corruption and crash)
via unspecified vectors.

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

[YOCTO #3450]

Signed-off-by: yanjun.zhu <yanjun.zhu@windriver.com>
11 years agoscripts/bitbake: Remove all instances of paths to a layer's scripts directory.
Franklin S. Cooper Jr [Sat, 9 Feb 2013 17:08:10 +0000 (11:08 -0600)] 
scripts/bitbake: Remove all instances of paths to a layer's scripts directory.

* Currently the assumption is made that only oe-core can include a scripts
  directory.

* However, when other layers create a scripts directory the bitbake script
  freaks out causing a infinite recursive loop until it crashes.

* Simply changing the regular expression to remove all instances of scripts path
  instead of just the first one fixes this problem.

 [Yocto Bug 3872]

Signed-off-by: Franklin S. Cooper Jr <fcooper@ti.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agocogl/clutter: Explicitly depend on libdrm for GLX
Richard Purdie [Thu, 25 Oct 2012 11:19:06 +0000 (11:19 +0000)] 
cogl/clutter: Explicitly depend on libdrm for GLX

cogl and clutter explicitly rely on libdrm being present when using the glx
backend. If its not listed in DEPENDS and an alternative to mesa is used, it
may not actually be present. This patch ensures it is and fixes a build
race condition which could see dependencies like clutter-box2d failing to
compile due to missing pkgconfig dependencies.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agovalgrind: explicitly disable MPI2 support
Paul Eggleton [Fri, 25 Jan 2013 15:17:06 +0000 (15:17 +0000)] 
valgrind: explicitly disable MPI2 support

We don't have support for this in OE-Core, so ensure we don't pick this
up from the build host if e.g. openmpi development files happen to be
installed there.

Fixes [YOCTO #3726].

(From OE-Core rev: cc490d76aba0a778409ca1a3d0e1f2c308684c9b)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoscripts/qemuimage-testlib: Use wide option to ps calls
Michael Halstead [Wed, 13 Feb 2013 16:31:03 +0000 (08:31 -0800)] 
scripts/qemuimage-testlib: Use wide option to ps calls

Forcing ps to display unlimited column width allows the qemu IP address to
be discovered during sanity testing when the command line is extremely long.

This seems to fix the sanity testing problem on AB05 which was recently updated
to OpenSUSE 12.2. I'm not sure what about qemu or process listing is different
on that distribution but this simpile fix seems to work and my help on other
distro's as well.

Signed-off-by: Michael Halstead <michael@yoctoproject.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoglib: disable selinux for native builds
Matthew McClintock [Thu, 14 Feb 2013 23:05:30 +0000 (15:05 -0800)] 
glib: disable selinux for native builds

This improves reusabiliy of sstate-cache across different hosts

Signed-odd-by: Matthew McClintock <msm@freescale.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoxf86-video-modesetting: new recipe for gma500
Nitin A Kamble [Wed, 16 Jan 2013 00:50:32 +0000 (16:50 -0800)] 
xf86-video-modesetting: new recipe for gma500

I am trying to use gma500 driver for the noemgd BSPs. The current best
xf86 driver for it is modesetting. This recipe provides that
driver.

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agorelocate_sdk.py: new interpreter string was not '\0' terminated
Laurentiu Palcu [Mon, 7 Jan 2013 13:07:04 +0000 (15:07 +0200)] 
relocate_sdk.py: new interpreter string was not '\0' terminated

The problem: SDK binaries were not properly relocated when the SDK
was installed into a path that had a length less than the default one.
Apparently, there were two problems here: the padding was done wrong
(the size of one program header table entry was used instead of the
program section size) and the new padded string was not used at all.

[YOCTO #3655]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>