]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
12 years agocups: patch for CVE-2011-2896
Scott Garman [Fri, 28 Dec 2012 00:28:51 +0000 (16:28 -0800)]
cups: patch for CVE-2011-2896

Patch from: http://cups.org/strfiles/3867/str3867.patch

The LZW decompressor in the LWZReadByte function in giftoppm.c in the
David Koblas GIF decoder in PBMPLUS, as used in the gif_read_lzw
function in filter/image-gif.c in CUPS before 1.4.7, the LZWReadByte
function in plug-ins/common/file-gif-load.c in GIMP 2.6.11 and earlier,
the LZWReadByte function in img/gifread.c in XPCE in SWI-Prolog 5.10.4
and earlier, and other products, does not properly handle code words
that are absent from the decompression table when encountered, which
allows remote attackers to trigger an infinite loop or a heap-based
buffer overflow, and possibly execute arbitrary code, via a crafted
compressed stream, a related issue to CVE-2006-1168 and CVE-2011-2895.

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

[YOCTO #3582]
[ CQID: WIND00299595 ]

Signed-off-by: Li Wang <li.wang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Merged with denzil branch, partial fix for denzil bug [YOCTO #3652]

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
12 years agolibrsvg: CVE-2011-3146
Li Wang [Thu, 13 Dec 2012 06:51:22 +0000 (14:51 +0800)]
librsvg: CVE-2011-3146

Store node type separately in RsvgNode

commit 34c95743ca692ea0e44778e41a7c0a129363de84 upstream

The node name (formerly RsvgNode:type) cannot be used to infer
the sub-type of RsvgNode that we're dealing with, since for unknown
elements we put type = node-name. This lead to a (potentially exploitable)
crash e.g. when the element name started with "fe" which tricked
the old code into considering it as a RsvgFilterPrimitive.
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2011-3146

https://bugzilla.gnome.org/show_bug.cgi?id=658014

[YOCTO #3581]
[ CQID: WIND00376773 ]
Upstream-Status: Backport

Signed-off-by: Li Wang <li.wang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Resolved merge conflicts with denzil branch.

Fixes denzil bug [YOCTO #3651].

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
12 years agosquashfs: fix CVE-2012-4025
yanjun.zhu [Tue, 11 Dec 2012 10:00:32 +0000 (18:00 +0800)]
squashfs: fix CVE-2012-4025

CQID:WIND00366813

Reference: http://squashfs.git.sourceforge.net/git/gitweb.cgi?
p=squashfs/squashfs;a=patch;h=8515b3d420f502c5c0236b86e2d6d7e3b23c190e

Integer overflow in the queue_init function in unsquashfs.c in
unsquashfs in Squashfs 4.2 and earlier allows remote attackers
to execute arbitrary code via a crafted block_log field in the
superblock of a .sqsh file, leading to a heap-based buffer overflow.

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

Signed-off-by: yanjun.zhu <yanjun.zhu@windriver.com>
[YOCTO #3564]
Signed-off-by: Saul Wold <sgw@linux.intel.com>
12 years agofreetype: patches for CVE-2012-5668, 5669, and 5670
Scott Garman [Thu, 27 Dec 2012 22:48:56 +0000 (14:48 -0800)]
freetype: patches for CVE-2012-5668, 5669, and 5670

For details of these security issues, please see:

http://www.openwall.com/lists/oss-security/2012/12/25/1

Thanks to Eren Turkay <eren@hambedded.org> for submitting source
patches that apply cleanly to freetype 2.4.9.

This fixes denzil bug [YOCTO #3649]

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
12 years agolibxml2: patch for CVE-2012-2871
Scott Garman [Thu, 27 Dec 2012 17:53:08 +0000 (09:53 -0800)]
libxml2: patch for CVE-2012-2871

the patch come from:
http://src.chromium.org/viewvc/chrome/trunk/src/third_party/libxml/ \
src/include/libxml/tree.h?r1=56276&r2=149930

libxml2 2.9.0-rc1 and earlier, as used in Google Chrome before
21.0.1180.89, does not properly support a cast of an unspecified
variable during handling of XSL transforms, which allows remote
attackers to cause a denial of service or possibly have unknown other
impact via a crafted document, related to the _xmlNs data structure in
include/libxml/tree.h.

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

[YOCTO #3580]
[ CQID: WIND00376779 ]

Signed-off-by: Li Wang <li.wang at windriver.com>
This fixes denzil bug [YOCTO #3648]

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
12 years agogitignore: add generated doc files to ignore list
Scott Garman [Wed, 26 Dec 2012 17:01:36 +0000 (09:01 -0800)]
gitignore: add generated doc files to ignore list

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
12 years agoboot-directdisk: Fix kernel location after STAGING_KERNEL_DIR change
Richard Purdie [Wed, 18 Jul 2012 21:48:58 +0000 (22:48 +0100)]
boot-directdisk: Fix kernel location after STAGING_KERNEL_DIR change

This catches up with the STAGING_KERNEL_DIR location change
and uses the correct variable to future proof this issue.

[YOCTO #2783]

(From OE-Core rev: 28715eff6dff3415b1d7b0be8cbb465c417e307f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobuild-appliance-image: Allow SRCREV to be overriden
Scott Garman [Sun, 23 Dec 2012 06:05:09 +0000 (22:05 -0800)]
build-appliance-image: Allow SRCREV to be overriden

This will allow use to automagically set the SRCREV for builds on the
autobuilder. It will still require manual updating for releases.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agopsplash: new patch to fix segfault
Scott Garman [Sun, 23 Dec 2012 05:52:27 +0000 (21:52 -0800)]
psplash: new patch to fix segfault

This fixes a segmentation fault when passing -a without
an argument.

Fixes [YOCTO #2903]

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
12 years agosysklogd: removed tabs from syslog.conf
Mihai Lindner [Fri, 10 Aug 2012 09:07:38 +0000 (12:07 +0300)]
sysklogd: removed tabs from syslog.conf

Yocto #2926: syslog.conf should not have tabs within the selector field.
Removed tabs from the selector field of syslog rules. Tabs or spaces
should be used, in syslog.conf, only when separating selectors from
actions.

(From OE-Core rev: 1316be4e597332a629842b3f5a7dde8e45dd057d)

Signed-off-by: Mihai Lindner <mihaix.lindner@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Resolved merge conflicts with denzil branch.

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
12 years agogrub,guile,cpio,tar,wget: Fix gnulib for absense of gets in eglibc
Khem Raj [Wed, 4 Jul 2012 19:30:07 +0000 (12:30 -0700)]
grub,guile,cpio,tar,wget: Fix gnulib for absense of gets in eglibc

eglibc 2.16 does not export gets anymore

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Resolved merge conflicts with denzil branch and backported guile
patch.

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
12 years agobison: Fix for gets being removed from eglibc 2.16
Khem Raj [Wed, 4 Jul 2012 16:15:25 +0000 (09:15 -0700)]
bison: Fix for gets being removed from eglibc 2.16

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agogettext,m4,augeas,gnutls: Account for removal of gets in eglibc 2.16
Khem Raj [Wed, 4 Jul 2012 06:53:16 +0000 (23:53 -0700)]
gettext,m4,augeas,gnutls: Account for removal of gets in eglibc 2.16

These recipes use gnulib which needs this change to use gets
when its defined and not otherwise. Until that change goes into
gnulib and then all these package upgrade gnulib in their sourcebase
we patch them

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Resolved merge conflicts with denzil branch and backported gnutls
patch.

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
12 years agodiffutils: Fix build with eglibc 2.16
Khem Raj [Wed, 4 Jul 2012 06:44:43 +0000 (23:44 -0700)]
diffutils: Fix build with eglibc 2.16

eglibc 2.16 has removed gets so we account for that

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agocoreutils: Fix build with eglibc 2.16
Khem Raj [Wed, 4 Jul 2012 06:43:06 +0000 (23:43 -0700)]
coreutils: Fix build with eglibc 2.16

eglibc 2.16 has removed gets so we account for that

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Resolved merge conflicts with denzil branch.

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
12 years agosquashfs: fix for CVE-2012-4024
yanjun.zhu [Fri, 30 Nov 2012 11:41:23 +0000 (19:41 +0800)]
squashfs: fix for CVE-2012-4024

Reference:http://squashfs.git.sourceforge.net/git/gitweb.cgi?p=
squashfs/squashfs;a=commit;h=19c38fba0be1ce949ab44310d7f49887576cc123

Fix potential stack overflow in get_component() where an individual
pathname component in an extract file (specified on the command line
or in an extract file) could exceed the 1024 byte sized targname
allocated on the stack.

Fix by dynamically allocating targname rather than storing it as
a fixed size on the stack.

[YOCTO #3513]

Fixes denzil [YOCTO #3520]

Signed-off-by: yanjun.zhu <yanjun.zhu@windriver.com>
12 years agolibxml: disable lzma
Marcin Juszkiewicz [Tue, 26 Jun 2012 15:52:56 +0000 (17:52 +0200)]
libxml: disable lzma

On my system libxml-native got linked with host copy of liblzma and as a
result libxslt-native was not linkable:

| x86_64-linux-libtool: link: gcc -isystem/home/hrw/HDD/devel/canonical/ci-linaro/oecore/build/tmp-eglibc/sysroots/x86_64-linux/usr/include -O2 -pipe -Wall -Wl,-rpath-link -Wl,/home/hrw
/HDD/devel/canonical/ci-linaro/oecore/build/tmp-eglibc/sysroots/x86_64-linux/usr/lib -Wl,-rpath-link -Wl,/home/hrw/HDD/devel/canonical/ci-linaro/oecore/build/tmp-eglibc/sysroots/x86_64-
linux/lib -Wl,-rpath -Wl,/home/hrw/HDD/devel/canonical/ci-linaro/oecore/build/tmp-eglibc/sysroots/x86_64-linux/usr/lib -Wl,-rpath -Wl,/home/hrw/HDD/devel/canonical/ci-linaro/oecore/buil
d/tmp-eglibc/sysroots/x86_64-linux/lib -Wl,-O1 -o .libs/xsltproc xsltproc.o  -L/home/hrw/HDD/devel/canonical/ci-linaro/oecore/build/tmp-eglibc/sysroots/x86_64-linux/usr/lib -L/home/hrw/
HDD/devel/canonical/ci-linaro/oecore/build/tmp-eglibc/sysroots/x86_64-linux/lib ../libxslt/.libs/libxslt.so ../libexslt/.libs/libexslt.so /home/hrw/HDD/devel/canonical/ci-linaro/oecore/
build/tmp-eglibc/work/x86_64-linux/libxslt-native-1.1.26-r8/libxslt-1.1.26/libxslt/.libs/libxslt.so /home/hrw/HDD/devel/canonical/ci-linaro/oecore/build/tmp-eglibc/sysroots/x86_64-linux
/usr/lib/libxml2.so -ldl /home/hrw/HDD/devel/canonical/ci-linaro/oecore/build/tmp-eglibc/sysroots/x86_64-linux/usr/lib/liblzma.so -lrt -lz -lm -pthread -Wl,-rpath -Wl,/home/hrw/HDD/deve
l/canonical/ci-linaro/oecore/build/tmp-eglibc/sysroots/x86_64-linux/usr/lib
| /home/hrw/HDD/devel/canonical/ci-linaro/oecore/build/tmp-eglibc/sysroots/x86_64-linux/usr/lib/libxml2.so: undefined reference to `lzma_code@XZ_5.0'
| /home/hrw/HDD/devel/canonical/ci-linaro/oecore/build/tmp-eglibc/sysroots/x86_64-linux/usr/lib/libxml2.so: undefined reference to `lzma_auto_decoder@XZ_5.0'
| /home/hrw/HDD/devel/canonical/ci-linaro/oecore/build/tmp-eglibc/sysroots/x86_64-linux/usr/lib/libxml2.so: undefined reference to `lzma_end@XZ_5.0'
| /home/hrw/HDD/devel/canonical/ci-linaro/oecore/build/tmp-eglibc/sysroots/x86_64-linux/usr/lib/libxml2.so: undefined reference to `lzma_properties_decode@XZ_5.0'
| collect2: error: ld returned 1 exit status
| make[2]: *** [xsltproc] Error 1
| make[2]: Leaving directory `/home/hrw/HDD/devel/canonical/ci-linaro/oecore/build/tmp-eglibc/work/x86_64-linux/libxslt-native-1.1.26-r8/libxslt-1.1.26/xsltproc'

Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
12 years agolibxml2: Update to 2.8.0
Saul Wold [Sat, 23 Jun 2012 06:01:06 +0000 (23:01 -0700)]
libxml2: Update to 2.8.0

removed 2 patches that are now fixed upstream
updated hash.c LIC_FILES_CHKSUM due to updating the date to 2012

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Resolved merge conflicts in denzil branch.

Addresses CVE-2011-1944.

Fixes denzil [YOCTO #2703]

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
12 years agolibxml2/libxslt: Don't depend on ansidecl.h header
Richard Purdie [Fri, 25 May 2012 09:15:39 +0000 (09:15 +0000)]
libxml2/libxslt: Don't depend on ansidecl.h header

We don't DEPEND on binutils for ansidecl.h so ensure we should never
use the header. This makes builds determinstic and means something like:

bitbake binutils
bitbake libxml2 -c configure
bitbake binutils -c clean
bitbake libxml2

doen't fail to build.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolibxml2: fix build with automake 1.12
Nitin A Kamble [Thu, 3 May 2012 00:08:26 +0000 (17:08 -0700)]
libxml2: fix build with automake 1.12

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
12 years agoopenssl: Use ${CFLAGS} not ${FULL_OPTIMIZATION}
Phil Blundell [Mon, 29 Oct 2012 15:20:19 +0000 (15:20 +0000)]
openssl: Use ${CFLAGS} not ${FULL_OPTIMIZATION}

The latter variable is only applicable for target builds and could
result in passing incompatible options (and/or failing to pass
required options) to ${BUILD_CC} for a virtclass-native build.

Signed-off-by: Phil Blundell <philb@gnu.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoopenssl: upgrade to 1.0.0j
Scott Garman [Fri, 20 Jul 2012 15:38:34 +0000 (08:38 -0700)]
openssl: upgrade to 1.0.0j

Addresses CVE-2012-2333

Fixes [YOCTO #2682]

Fixes denzil [YOCTO #2701]

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolibproxy: Fix for CVE-2012-4504
yanjun.zhu [Fri, 30 Nov 2012 11:08:56 +0000 (19:08 +0800)]
libproxy: Fix for CVE-2012-4504

Reference:https://code.google.com/p/libproxy/source/detail?r=853

Stack-based buffer overflow in the url::get_pac function in url.cpp
in libproxy 0.4.x before 0.4.9 allows remote servers to have an
unspecified impact via a large proxy.pac file.

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

[YOCTO #3487]

Fixes denzil [YOCTO #3511]

Signed-off-by: yanjun.zhu <yanjun.zhu@windriver.com>
12 years agoopkg-utils: bump SRCREV to latest
Martin Jansa [Wed, 24 Oct 2012 11:37:05 +0000 (13:37 +0200)]
opkg-utils: bump SRCREV to latest

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoopkg-utils: Add needed python modules as RDEPENDS
Andrei Gherzan [Sun, 21 Oct 2012 15:40:39 +0000 (18:40 +0300)]
opkg-utils: Add needed python modules as RDEPENDS

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
12 years agorootfs_rpm.bbclass: save rpmlib rather than remove it
Robert Yang [Tue, 13 Nov 2012 12:56:37 +0000 (20:56 +0800)]
rootfs_rpm.bbclass: save rpmlib rather than remove it

The rpmlib was removed when images that add
"remove_packaging_data_files" to ROOTFS_POSTPROCESS_COMMAND, which would
make the increment rpm image generation doesn't work in the second
build, since list_installed_packages would get incorrect value in the
second build, move the rpmlib to ${T} rather than remove it, and move it
back when INC_RPM_IMAGE_GEN =1.

[YOCTO #2690]

(From OE-Core rev: c30e79510c06701f10f659eedaa0fe785538ac17)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Elizabeth Flanagan <elizabeth.flanagan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agopackage_rpm.bbclass: Fix incremental rpm image generation
Robert Yang [Tue, 13 Nov 2012 12:56:36 +0000 (20:56 +0800)]
package_rpm.bbclass: Fix incremental rpm image generation

Fix the incremental rpm image generation, it didn't work since the code
has been changed.

The btmanifest should have a ".manifest" suffix, so that it can be moved
to ${T} by rootfs_rpm.bbclass:
mv ${IMAGE_ROOTFS}/install/*.manifest ${T}/

Note: The locale pkgs would always be re-installed.

[YOCTO #2690]

(From OE-Core rev: 5149630746626c6d416f26ab9dd1c7213fcd8c50)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: compile tar-replacement firstly
Roy.Li [Tue, 6 Nov 2012 16:20:48 +0000 (10:20 -0600)]
bitbake: compile tar-replacement firstly

Compiling tar-replacement or not is decided by version of host tar,
if the host tar version is lower than 1.23, Compiling tar-replacement
is needed.

When doing popoluate tar-replacement sysroot to write the tar to
sysroot, but writing is not finished. other packages probably
use the being written tar to unzip file, which will lead to failure
and report the below error:
"bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/tar: Text file busy"

Now we compile tar-replacement firstly to ensure that a being written
tar command will not be used.

(From OE-Core rev: 3c1c4719fc96f6f1fbb257413d6baf3d91fdf4e8)

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agogettext: install libgettextlib.a before removing it
Joe Slater [Thu, 7 Jun 2012 23:37:01 +0000 (16:37 -0700)]
gettext: install libgettextlib.a before removing it

In a multiple job build, Makefile can simultaneously
be installing and removing libgettextlib.a.  We serialize
the operations.

(From OE-Core rev: 2750546b2152eecdbb37e963a2495383f6944184)

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Elizabeth Flanagan <elizabeth.flanagan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoclasses/qmake_base: support linux-gnuspe/linux-uclibcspe TARGET_OS
Paul Eggleton [Wed, 5 Sep 2012 15:42:15 +0000 (16:42 +0100)]
classes/qmake_base: support linux-gnuspe/linux-uclibcspe TARGET_OS

Fix borrowed from OE-Classic. This should fix build failures during
do_configure of Qt applications with the p1022ds machine from
meta-fsl-ppc, for example.

(From OE-Core rev: a19fc8e19a6cc6885a1e0616b1f42cc49c8f2c9f)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agogst-plugins-good: disable (uninstalled) examples
Ross Burton [Thu, 4 Oct 2012 02:45:21 +0000 (21:45 -0500)]
gst-plugins-good: disable (uninstalled) examples

The examples pull in a GTK+ build dependency, so remove that too.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoopenssl: add deprecated and unmaintained find.pl from perl-5.14 to fix perlpath.pl
Martin Jansa [Wed, 3 Oct 2012 03:24:10 +0000 (23:24 -0400)]
openssl: add deprecated and unmaintained find.pl from perl-5.14 to fix perlpath.pl

* openembedded-core/meta/recipes-connectivity/openssl/openssl.inc
*
* is using perlpath.pl:
*
*   do_configure () {
*           cd util
*           perl perlpath.pl ${STAGING_BINDIR_NATIVE}
*   ...
*
* and perlpath.pl is using find.pl:
* openssl-1.0.0i/util/perlpath.pl:
*   #!/usr/local/bin/perl
*   #
*   # modify the '#!/usr/local/bin/perl'
*   # line in all scripts that rely on perl.
*   #
*
*   require "find.pl";
*   ...
*
* which was removed in perl-5.16.0 and marked as deprecated and
* unmaintained in 5.14 and older:
* /tmp/usr/lib/perl5/5.14.2/find.pl:
*   warn "Legacy library @{[(caller(0))[6]]} will be removed from the Perl
*   core distribution in the next major release. Please install it from the
*   CPAN distribution Perl4::CoreLibs. It is being used at @{[(caller)[1]]},
*   line @{[(caller)[2]]}.\n";
*
*   # This library is deprecated and unmaintained. It is included for
*   # compatibility with Perl 4 scripts which may use it, but it will be
*   # removed in a future version of Perl. Please use the File::Find module
*   # instead.

(from OE-Core rev c09bf5d177a7ecd2045ef7e13fff4528137a9775)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
12 years agoopenjade-native: fix undefined Getopts error, use std namespace
Dennis Lan [Wed, 3 Oct 2012 03:24:09 +0000 (23:24 -0400)]
openjade-native: fix undefined Getopts error, use std namespace

Using Gentoo Linux as the build host, it fails without this patch
Use Getopt::Std in place of getopts.pl.

https://bugs.gentoo.org/show_bug.cgi?id=420083

which following error:
/usr/bin/perl -w ./../msggen.pl -l jstyleModule InterpreterMessages.msg
/usr/bin/perl -w ./../msggen.pl -l jstyleModule DssslAppMessages.msg
Undefined subroutine &main::Getopts called at ./../msggen.pl line 22.
make[2]: *** [InterpreterMessages.h] Error 2
make[2]: *** Waiting for unfinished jobs....
Undefined subroutine &main::Getopts called at ./../msggen.pl line 22.
make[2]: *** [DssslAppMessages.h] Error 2

(from OE-Core rev 169a89b10817b742c063fcd76721e4dbbcca6199)

Signed-off-by: Dennis Lan <dennis.yxun@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agositeconfig: Clear cache before rebuilding
Richard Purdie [Fri, 28 Sep 2012 13:16:04 +0000 (14:16 +0100)]
siteconfig: Clear cache before rebuilding

This ensures consistent build results and avoids build failures when compiler flags
change for example.

(From OE-Core rev: a5ff8396cad130f809f8f8da49bb38e6f80f923c)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agognutls: Update SRC_URI to use GNU_MIRROR
Darren Hart [Mon, 1 Oct 2012 22:59:43 +0000 (15:59 -0700)]
gnutls: Update SRC_URI to use GNU_MIRROR

The current SRC_URI fails. Update it with the GNU_MIRROR SRC_URI from
upstream commit 753b22012f10c393c191d3116b9d38ee4be6d112.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
CC: John Howard <john.howard@intel.com>
CC: Scott Garman <scott.a.garman@intel.com>
12 years agoclasses/cml1: ensure -c menuconfig forces a rebuild next time
Paul Eggleton [Mon, 18 Jun 2012 15:50:50 +0000 (16:50 +0100)]
classes/cml1: ensure -c menuconfig forces a rebuild next time

Ensure the following results in the kernel being rebuilt, repackaged and
re-deployed in the final step:

bitbake virtual/kernel
bitbake -c menuconfig virtual/kernel
[ make changes to the kernel configuration and save ]
bitbake virtual/kernel

If there are no changes to the configuration saved, the rebuild will not
be triggered.

Note that this relies on a function recently added to BitBake and
requires full hashing (i.e. BB_SIGNATURE_HANDLER must be set to a
signature handler that inherits from BasicHash) - if this is not the
case or the function is not available in the version of BitBake being
used this change will do nothing.

Fixes [YOCTO #2256].

(From OE-Core rev: 9bf6b60e1599cf5dd87089d42584583cdfd6807a)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoudev: don't mount with -o sync
Jesse Zhang [Fri, 21 Sep 2012 18:21:34 +0000 (13:21 -0500)]
udev: don't mount with -o sync

mount.sh mounts all partitions with -o sync, which is bad for system
performance.

(From OE-Core rev: d49cf73754150b50a911d326aaa666f5da78855c)

Signed-off-by: Jesse Zhang <sen.zhang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobootimg: Use STAGING_KERNEL_DIR
Darren Hart [Thu, 5 Jul 2012 18:08:59 +0000 (11:08 -0700)]
bootimg: Use STAGING_KERNEL_DIR

bootimg.bbclass using STAGING_DIR_HOST/kernel instead of
STAGING_KERNEL_DIR, resulting in build failure of live images.

| install: cannot stat `/usr/local/dev/yocto/fishriver-test/build/tmp/sysroots/fishriver/kernel/bzImage': No such file or directory

Replace it with STAGING_KERNEL_DIR.

(From OE-Core rev: 8f16811a8d51982a8b3d70e6087aef4a41926840)

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Tested-by: Tom Zanussi <tom.zanussi@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agotexi2html: Fix perl location on recent distros
Richard Purdie [Thu, 2 Aug 2012 21:29:56 +0000 (21:29 +0000)]
texi2html: Fix perl location on recent distros

This fixes errors like:
| error: Failed dependencies:
|       /bin/perl is needed by texi2html-5.0-r1.i586

(From OE-Core rev: d4c27021ffc813732526ab9ae6969e5ae0bdf7e8)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agodbus: Ensure dbus-nativesdk doesn't RPROVIDE dbus-x11
Richard Purdie [Mon, 17 Sep 2012 23:25:53 +0000 (18:25 -0500)]
dbus: Ensure dbus-nativesdk doesn't RPROVIDE dbus-x11

dbus-x11 should not RPROVIDE dbus-x11 as this is incorrect and confuses
builds. This fixes the nativesdk case.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agodbus: include dbus-launch in the main dbus package
Radu Moisan [Mon, 17 Sep 2012 23:25:52 +0000 (18:25 -0500)]
dbus: include dbus-launch in the main dbus package

Followed suggestions from Bugz 2261:

2) make the virtual/libx11 DEPENDS conditional based on the x11 distro feature.
This makes the build dependencies reflect the feature list.

3) remove dbus-x11, meaning that dbus-launch with its potential X11 dependency
is now back in dbus where is belongs.

4) make dbus provide dbus-x11, for compatibility.

Fixes [Yocto #2261]

Signed-off-by: Radu Moisan <radu.moisan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agou-boot: Use fw_env.config if avaliable
Franklin S. Cooper Jr [Mon, 17 Sep 2012 18:12:55 +0000 (13:12 -0500)]
u-boot: Use fw_env.config if avaliable

* Add support for board specific fw_env.config file if avaliable

Signed-off-by: Franklin S. Cooper Jr <fcooper@ti.com>
12 years agopulseaudio: remove ConsoleKit dependency
Ross Burton [Mon, 17 Sep 2012 12:07:37 +0000 (14:07 +0200)]
pulseaudio: remove ConsoleKit dependency

ConsoleKit is a runtime dependency for the ConsoleKit module, but there isn't a
build-time dependency.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agopulseaudio: fix pulseaudio-server RDEPENDS
Martin Jansa [Mon, 17 Sep 2012 12:07:36 +0000 (14:07 +0200)]
pulseaudio: fix pulseaudio-server RDEPENDS

* module-cork-music-on-phone was renamed to module-role-cork
  http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/?id=3c5cc345472302b9511c19244b3eceb4a3674d8c

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agopulseaudio: Always enable NLS
Khem Raj [Mon, 17 Sep 2012 12:07:35 +0000 (14:07 +0200)]
pulseaudio: Always enable NLS

When NLS is disabled e.g. on uclibc the build fails
The actual problem is that pulseaudio build system
should cater for it but it does not

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
12 years agopulseaudio: upgrade to 2.1
Constantin Musca [Mon, 17 Sep 2012 12:07:34 +0000 (14:07 +0200)]
pulseaudio: upgrade to 2.1

Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
12 years agolibatomics-ops: update to the latest version 7.2
Xin Ouyang [Mon, 17 Sep 2012 12:07:33 +0000 (14:07 +0200)]
libatomics-ops: update to the latest version 7.2

All old patches are droped because:

Merged into 7.2 by upstream:
* fedora/libatomic_ops-1.2-ppclwzfix.patch
* gentoo/libatomic_ops-1.2-mips.patch
* gentoo/sh4-atomic-ops.patch
* libatomics-ops_fix_for_x32.patch

Obsolete:
* doublefix.patch

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
12 years agolibcanberra: upgrade to 0.29
Cristian Iorga [Mon, 17 Sep 2012 12:07:32 +0000 (14:07 +0200)]
libcanberra: upgrade to 0.29

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agopulseaudio: upgrade to 2.0
Cristian Iorga [Mon, 17 Sep 2012 12:07:31 +0000 (14:07 +0200)]
pulseaudio: upgrade to 2.0

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Conflicts:

meta/recipes-multimedia/pulseaudio/pulseaudio_2.0.bb

12 years agopulseaudio: fix typo in the patch name, pulseaudo -> pulseaudio
Denys Dmytriyenko [Mon, 17 Sep 2012 12:07:30 +0000 (14:07 +0200)]
pulseaudio: fix typo in the patch name, pulseaudo -> pulseaudio

No PR bump is needed.

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolibatomics-ops: Make it build for SH4
Khem Raj [Mon, 17 Sep 2012 12:07:29 +0000 (14:07 +0200)]
libatomics-ops: Make it build for SH4

Signed-off-by: Khem Raj <raj.khem@gmail.com>
12 years agopulseaudio: disable tcpwrap by default
Saul Wold [Mon, 17 Sep 2012 12:07:28 +0000 (14:07 +0200)]
pulseaudio: disable tcpwrap by default

This ensures that tcpwrapper usage is always disabled, this was
inconsistent because it would test for libwrap and sometimes enable
and sometimes not.

This ensures consistent build reproducibility.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
12 years agobluez4: fix packaging issue after update
Saul Wold [Mon, 17 Sep 2012 10:30:53 +0000 (12:30 +0200)]
bluez4: fix packaging issue after update

WARNING: QA Issue: bluez4: Files/directories were installed but not shipped
  /usr/share/dbus-1
  /usr/share/dbus-1/system-services
  /usr/share/dbus-1/system-services/org.bluez.service

Signed-off-by: Saul Wold <sgw@linux.intel.com>
12 years agobluez4: update to ver. 4.101
Cristian Iorga [Mon, 17 Sep 2012 10:30:52 +0000 (12:30 +0200)]
bluez4: update to ver. 4.101

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agogst-plugin-bluetooth: update to ver. 4.101
Cristian Iorga [Mon, 17 Sep 2012 10:30:51 +0000 (12:30 +0200)]
gst-plugin-bluetooth: update to ver. 4.101

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobluez-hcidump: upgrade to version 2.4
Dongxiao Xu [Mon, 17 Sep 2012 10:30:50 +0000 (12:30 +0200)]
bluez-hcidump: upgrade to version 2.4

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
12 years agobluez4: make alsa support conditional upon DISTRO_FEATURES
Jonas Danielsson [Mon, 17 Sep 2012 10:30:49 +0000 (12:30 +0200)]
bluez4: make alsa support conditional upon DISTRO_FEATURES

Do not enable alsa in bluez4 unless it's included in DISTRO_FEATURES.

Signed-off-by: Jonas Danielsson <jonas.danielsson@lundinova.se>
12 years agodhcp: remove dependency of dev/staticdev packages on main package
Paul Eggleton [Mon, 17 Sep 2012 01:05:15 +0000 (22:05 -0300)]
dhcp: remove dependency of dev/staticdev packages on main package

The main package is empty and is not produced, which leaves the dev
and staticdev packages broken. Remove the dependencies (added in
bitbake.conf by default) to fix this.

(From OE-Core rev: 5380c65e819d82f783cb75aa21db7c73bb445189)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
12 years agoclasses/mirrors: remove bogus gnutls mirror
Paul Eggleton [Fri, 14 Sep 2012 15:04:43 +0000 (16:04 +0100)]
classes/mirrors: remove bogus gnutls mirror

This mirror entry which maps to itself plus a slash, if matched, put the
fetcher into a circular loop until the stack space is exhausted. A patch
has been sent to fix this issue in BitBake, but we should remove the
bogus entry as well.

(Note that this entry does not actually trigger the issue with current
master because the gnutls recipe now uses GNU_MIRROR instead of
ftp.gnutls.org, thus the bogus mirror entry is not matched.)

(from OE-Core rev 0de1827a9601143b090f751ea702fdb65a936b77)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agosysvinit-inittab_2.88dsf.bb: only run serial checks at boot if we have items to check
Matthew McClintock [Tue, 11 Sep 2012 17:56:53 +0000 (12:56 -0500)]
sysvinit-inittab_2.88dsf.bb: only run serial checks at boot if we have items to check

Right now, we delay running the serial console checks to we boot up. This causes
issues for read only file systems. So, if have not configured any serial ports to
check via SERIAL_CONSOLES_CHECK we can skip the check at boot. This fixes any
issues with read only file systems and ipk packaging.

Signed-off-by: Matthew McClintock <msm@freescale.com>
12 years agokernel: Fix packaging issue
Saul Wold [Thu, 19 Apr 2012 19:01:48 +0000 (12:01 -0700)]
kernel: Fix packaging issue

Remove /etc since it is empty, when creating a machine that does not
deliver any module config files, the /etc is empty and is then warned
about not being shipped, so we remove it.

This occurs in the routerstationpro with the following warning:
WARNING: For recipe linux-yocto, the following files/directories were installed but not shipped in any package:
WARNING:   /etc

Signed-off-by: Saul Wold <sgw@linux.intel.com>
12 years agovalgrind_3.7.0.bb: fix missing leading space on _append
Matthew McClintock [Wed, 12 Sep 2012 21:06:50 +0000 (16:06 -0500)]
valgrind_3.7.0.bb: fix missing leading space on _append

Signed-off-by: Matthew McClintock <msm@freescale.com>
12 years agoautotools.bbclass: Add functionality to force a clean of ${B} when reconfiguring...
Richard Purdie [Tue, 11 Sep 2012 14:22:29 +0000 (15:22 +0100)]
autotools.bbclass: Add functionality to force a clean of ${B} when reconfiguring (and ${S} != ${B})

Unfortunately whilst rerunning configure and make against a project will mostly
work there are situations where it does not correctly do the right thing.

In particular, eglibc and gcc will fail out with errors where settings
do not match a previously built configuration. It could be argued they are
broken but the situation is what it is. There is the possibility of more subtle
errors too.

This patch adds removal of the build directory (${B}) when configure is
rerunning, the sstate checksum for do_configure has changed and ${S} != ${B}.
We could simply use a stamp but saving out the previous configuration checksum
adds some data at no real overhead.

If we find there are things where we want to disable this behaviour with
CONFIGURESTAMPFILE = "" in the recipe, or users could disable it globally.

[YOCTO #2774]
[YOCTO #2848]

This is particularly helpful for eglibc and gcc which use split builds by default and
are a particular source of reconfigure type problems.

(From OE-Core rev: f15f61af77cc4e52a037f509f8e49e1ea530cf35)

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>
12 years agoeglibc_2.15: make patch only for Freescale machines
Matthew McClintock [Wed, 12 Sep 2012 17:39:08 +0000 (12:39 -0500)]
eglibc_2.15: make patch only for Freescale machines

It's only Freescale machines that don't imlpement fsqrt, we don't want
this to effect others.

This patch was only added after the last release of denzil, so it's not
present in the release yet. Also, 2.15 is removed from master so it
should only apply to denzil branch

Signed-off-by: Matthew McClintock <msm@freescale.com>
12 years agovalgrind: fix debug info reading error when do memcheck on ppc targets
Zhenhua Luo [Wed, 12 Sep 2012 08:20:46 +0000 (16:20 +0800)]
valgrind: fix debug info reading error when do memcheck on ppc targets

    following is the error message:
        --2263-- WARNING: Serious error when reading debug info
        --2263-- When reading debug info from /lib/ld-2.13.so:
        --2263-- Can't make sense of .got section mapping
        --2263-- WARNING: Serious error when reading debug info
        --2263-- When reading debug info from /home/root/lzh:
        --2263-- Can't make sense of .data section mapping
        --2263-- WARNING: Serious error when reading debug info
        --2263-- When reading debug info from /usr/lib/valgrind/vgpreload_core-ppc32-linux.so:
        --2263-- Can't make sense of .data section mapping
        --2263-- WARNING: Serious error when reading debug info
        --2263-- When reading debug info from /usr/lib/valgrind/vgpreload_memcheck-ppc32-linux.so:
        --2263-- Can't make sense of .data section mapping
        --2263-- WARNING: Serious error when reading debug info
        --2263-- When reading debug info from /lib/libc-2.13.so:
        --2263-- Can't make sense of .data section mapping

(From OE-Core rev: 14626cc76210ed6fe40316a311f24147ed8de8be)

Signed-off-by: Zhenhua Luo <b19537@freescale.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agopython-pygtk: Upgrade to 2.24
Saul Wold [Wed, 5 Sep 2012 17:00:17 +0000 (10:00 -0700)]
python-pygtk: Upgrade to 2.24

This is needed for the build appliance and Hob also

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobuild-appliance: add zip-native, which is needed to build the final zip bundle
Saul Wold [Sun, 2 Sep 2012 18:05:30 +0000 (11:05 -0700)]
build-appliance: add zip-native, which is needed to build the final zip bundle

(From OE-Core rev: 8aeceab5d03fa3c88f0128ce1ac6bfde0d88e1b6)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agokernel.bbclass: put perf .debug dir in -dbg package
Scott Garman [Thu, 6 Sep 2012 17:50:40 +0000 (10:50 -0700)]
kernel.bbclass: put perf .debug dir in -dbg package

This is needed to avoid the following QA error:

ERROR: QA Issue: non debug package contains .debug directory:
kernel-dev path

Patch proposed by Matthew McClintock <msm@freescale.com>

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
12 years agorelocatable.bbclass: Account for case when ORIGIN is in RPATH
Scott Garman [Tue, 4 Sep 2012 23:19:51 +0000 (16:19 -0700)]
relocatable.bbclass: Account for case when ORIGIN is in RPATH

This patch was backported from OE-Core rev:
43600df0d4efc976a9451163dd334b4763937932

This fixes a case when RPATH embedded in program have one of
its path already relative to ORIGIN. We were losing that path
if such a path existed. This patch appends it to the new edited
rpath being created when we see it.

so RPATH like below

(RPATH) Library rpath:
[$ORIGIN/../lib/amd64/jli:$ORIGIN/../jre/lib/amd64/jli]

would end up being empty

but after this patch its kept intact

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Scott Garman <scott.a.garman@intel.com>
12 years agokernel.bbclass: Dont package kxgettext.o
Khem Raj [Tue, 28 Aug 2012 06:41:48 +0000 (08:41 +0200)]
kernel.bbclass: Dont package kxgettext.o

kxgettext.o is generated when building ppc kernels
so we end up with packaging errors like

> ERROR: QA Issue: Architecture did not match (20 to 62) on
> /work/virtex5-poky-linux/linux-xilinx-2.6.38-r00/packages-split/kernel-dev/usr/src/kernel/scripts/kconfig/kxgettext.o

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agokernel.bbclass: add non-santized kernel provides
Bruce Ashfield [Tue, 28 Aug 2012 06:41:47 +0000 (08:41 +0200)]
kernel.bbclass: add non-santized kernel provides

If the kernel version string uses characters or symbols that
need to be santized for the package name, we can end up with a
mismatch between module requirements and what the kernel
provides.

The kernel version is pulled from utsrelease.h, which contains
the exact string that was passed to the kernel build, not
one that is santized, this can result in:

 echo "CONFIG_LOCALVERSION="\"MYVER+snapshot_standard\" >> ${B}/.config

 <build>

 % rpm -qp kernel-module-uvesafb-3.4-r0.qemux86.rpm --requires
update-modules
kernel-3.4.3-MYVER+snapshot_standard
 % rpm -qp kernel-3.4.3-myver+snapshot-standard-3.4-r0.qemux86.rpm --provides
kernel-3.4.3-myver+snapshot-standard = 3.4-r0

At rootfs assembly time, we'll have a dependency issue with the kernel
providing the santizied string and the modules requiring the utsrelease.h
string.

To not break existing use cases, we can add a second provides to the
kernel packaging with the unsantized version string, and allowing the
kernel module packaging to be unchanged.

   RPROVIDES_kernel-base += "kernel-${KERNEL_VERSION}"

 % rpm -qp kernel-3.4.3-myver+snapshot-standard-3.4-r0.qemux86.rpm --provides
kernel-3.4.3-MYVER+snapshot_standard
kernel-3.4.3-myver+snapshot-standard = 3.4-r0

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
12 years agokernel: Add kernel headers to kernel-dev package
Darren Hart [Tue, 28 Aug 2012 06:41:46 +0000 (08:41 +0200)]
kernel: Add kernel headers to kernel-dev package

[YOCTO #1614]

Add the kernel headers to the kernel-dev package. This packages what was
already built and kept in sysroots for building modules with bitbake.
Making this available on the target requires removing some additional
host binaries.

Move the location to /usr/src/kernel

Before use on the target, the user will need to:

    # cd /usr/src/kernel
    # make scripts

This renders the kernel-misc recipe empty, so remove it.

As we use /usr/src/kernel in several places (and I missed one in the
previous version), add a KERNEL_SRC_DIR variable and use that throughout
the class to avoid update errors in the future.

Now that we package the kernel headers, drop the
kernel_package_preprocess function which removed them from PKGD.

All *-sdk image recipes include dev-pkgs, so the kernel-dev package will
be installed by default on all such images.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
CC: Bruce Ashfield <bruce.ashfield@windriver.com>
CC: Tom Zanussi <tom.zanussi@intel.com>
CC: Khem Raj <raj.khem@gmail.com>
12 years agokernel: save $kerndir/tools and $kerndir/lib from pruning
Bruce Ashfield [Tue, 28 Aug 2012 06:41:45 +0000 (08:41 +0200)]
kernel: save $kerndir/tools and $kerndir/lib from pruning

The kernel source tree in the sysroot has all unecessary source
code removed. The existing use case is to support module building
out of the sysroot, but as more toolsa are moved into the kernel
tree itself there are new use cases for the kernel sysroot source.

To avoid putting dependencies on the kernel, and to be able to
individually build and package these tools out of the source tree,
we can save $kerndir/tools and $kernddir/lib from being removed.
This enables tools like perf to be built our of the kernel source
in the sysroot, without significantly increasing the amount of
source in the sysroot.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agokernel.bbclass: pass KERNEL_VERSION to depmod calls in postinst
Martin Jansa [Tue, 28 Aug 2012 06:41:44 +0000 (08:41 +0200)]
kernel.bbclass: pass KERNEL_VERSION to depmod calls in postinst

* without this, kernel upgrades where KERNEL_VERSION is changed
  e.g. 3.4.2 -> 3.4.3 generate .dep for running 3.4.2 and after reboot user ends
  up without any module loaded to make it worse after reboot nothing is upgraded
  to trigger another kernel(-module) postinst to generate .dep for now running 3.4.3

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
12 years agoman: make man actually work by installing custom man.config
Koen Kooi [Tue, 28 Aug 2012 06:41:43 +0000 (08:41 +0200)]
man: make man actually work by installing custom man.config

The default man.conf is named wrong and doesn't work. It references gtbl, while groff installs tbl and other things. This man.conf is imported from OE classic and runtime tested on angstrom.

Before:

root@beaglebone:~# man man
sh: /usr/bin/gtbl: No such file or directory
sh: line 0: echo: write error: Broken pipe
gunzip: write: Broken pipe
gunzip: error inflating
sh: line 0: echo: write error: Broken pipe
sh: line 0: echo: write error: Broken pipe

After:

root@beaglebone:~# man man
MAN(1)                        Manual pager utils                        MAN(1)

NAME
       man - an interface to the on-line reference manuals

SYNOPSIS
       man  [-C  file]  [-d]  [-D]  [--warnings[=warnings]]  [-R encoding] [-L
       locale] [-m system[,...]] [-M path] [-S list]  [-e  extension]  [-i|-I]
       [--regex|--wildcard]   [--names-only]  [-a]  [-u]  [--no-subpages]  [-P
       pager] [-r prompt] [-7] [-E encoding] [--no-hyphenation] [--no-justifi-
       cation]  [-p  string]  [-t]  [-T[device]]  [-H[browser]] [-X[dpi]] [-Z]
       [[section] page ...] ...
       man -k [apropos options] regexp ...
       man -K [-w|-W] [-S list] [-i|-I] [--regex] [section] term ...
       man -f [whatis options] page ...
       man -l [-C file] [-d] [-D] [--warnings[=warnings]]  [-R  encoding]  [-L
       locale]  [-P  pager]  [-r  prompt]  [-7] [-E encoding] [-p string] [-t]
       [-T[device]] [-H[browser]] [-X[dpi]] [-Z] file ...
       man -w|-W [-C file] [-d] [-D] page ...
       man -c [-C file] [-d] [-D] page ...
       man [-hV]

Check for config name:

root@beaglebone:~# rm /etc/man.config
root@beaglebone:~# man man
Warning: cannot open configuration file /etc/man.config
No manual entry for man

As a bonus a bunch of references to the buildhost get removed from the config file.

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
12 years agoman: fix RDEPENDS and reformat recipe
Koen Kooi [Tue, 28 Aug 2012 06:41:42 +0000 (08:41 +0200)]
man: fix RDEPENDS and reformat recipe

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
12 years agoopkg-utils: UPdate to version with python 2.6 fix
Richard Purdie [Tue, 28 Aug 2012 06:41:41 +0000 (08:41 +0200)]
opkg-utils: UPdate to version with python 2.6 fix

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoopkg-utils: bump SRCREV
Martin Jansa [Tue, 28 Aug 2012 06:41:40 +0000 (08:41 +0200)]
opkg-utils: bump SRCREV

* there are 2 small fixes
  python-2.6 compatibility
  missing C option for opkg-build

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoopkg-utils: bump SRCREV for Packages cache fix and other fixes
Martin Jansa [Tue, 28 Aug 2012 06:41:39 +0000 (08:41 +0200)]
opkg-utils: bump SRCREV for Packages cache fix and other fixes

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
12 years agoxz: updated to version 5.1.1alpha
Valentin Popa [Tue, 28 Aug 2012 06:41:38 +0000 (08:41 +0200)]
xz: updated to version 5.1.1alpha

The licenses are the same, only some white spaces added/removed.

Signed-off-by: Valentin Popa <valentin.popa@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agopackage.bbclass: fix TypeError in runstrip
Martin Jansa [Tue, 31 Jul 2012 02:00:01 +0000 (04:00 +0200)]
package.bbclass: fix TypeError in runstrip

* some packages have .ko files which are not elf, without this change
  it fails with TypeError, with this change only runstip fails and
  reports where:
  ERROR: runstrip: ''arm-oe-linux-gnueabi-strip'  '/OE/shr-core/tmp-eglibc/work/armv4t-oe-linux-gnueabi/emacs-23.4-r0/package/usr/share/emacs/23.4/etc/tutorials/TUTORIAL.ko'' strip command failed

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agodistutils/steuptools: Fix files layout and unbreak builds
Richard Purdie [Fri, 24 Aug 2012 16:12:39 +0000 (16:12 +0000)]
distutils/steuptools: Fix files layout and unbreak builds

The last two distutils changes progressivly broke the builds. Firstly they
moved things from the site_packages directory to being higher up the tree
which introduced package QA warnings as a side effect. Secondly, it interacts
badly with setuptools which passes in --root=${D} itself.

This patch restores the original directory layout, hence fixing the QA
warnings and also passes extra options to setuptools to deal with the
--root option it passes.

(From OE-Core rev: bed18d5df7915e4127a538be9c7550e185c8c850)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agodistutils.bblass: change order of args to install step
Matthew McClintock [Tue, 21 Aug 2012 18:38:11 +0000 (13:38 -0500)]
distutils.bblass: change order of args to install step

This let's the user override install-lib argument again if it needs
to be something else, otherwise things like python-setuptools
won't be able to modify the install-lib dir

This fixes a new issue exposed by my previous distutils patch
that fixed the python modules default install location

Signed-off-by: Matthew McClintock <msm@freescale.com>
12 years agodistutils.bbclass: fix libdir for 64-bit python modules built with distutils
Matthew McClintock [Mon, 13 Aug 2012 19:44:31 +0000 (14:44 -0500)]
distutils.bbclass: fix libdir for 64-bit python modules built with distutils

Without this some modules will be intalled in /usr/lib/python2.6/
instead of /usr/${libdir}/python2.6

(From OE-Core rev: bc6bd774aa8a3e085e9cabcefb11c3fc537139d5)

Signed-off-by: Matthew McClintock <msm@freescale.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobuild-appliance-image: Add vmx* files and build zip file
Saul Wold [Thu, 23 Aug 2012 17:45:07 +0000 (10:45 -0700)]
build-appliance-image: Add vmx* files and build zip file

This commit adds the vmx* files needed to setup a VMware image,
this also packages the vmdk along with the vmx files.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
12 years agobuild-appliance-image: Update SRCREV to Denzil 1.2.1
Saul Wold [Thu, 23 Aug 2012 17:39:29 +0000 (10:39 -0700)]
build-appliance-image: Update SRCREV to Denzil 1.2.1

Signed-off-by: Saul Wold <sgw@linux.intel.com>
12 years agobuild-appliance-image: rename from self-hosted-image
Valentin Popa [Thu, 28 Jun 2012 12:42:20 +0000 (15:42 +0300)]
build-appliance-image: rename from self-hosted-image

(-) renamed self-hosted-image to build-appliance-image
(-) replaced build-appliance-image description

[YOCTO #2636]

(From OE-Core rev: 04096f31778886479dac479132bded57e717653e)

Signed-off-by: Valentin Popa <valentin.popa@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agopsplash: LIC_CHKSUM Tweak
Franklin S Cooper Jr [Mon, 13 Aug 2012 18:03:23 +0000 (13:03 -0500)]
psplash: LIC_CHKSUM Tweak

* Change the license checksum to use the lines in the psplash.h that contains
  license information instead of doing a checksum on the entire file.

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
12 years agoltp_20120104: add rdepends
Kang Kai [Thu, 23 Aug 2012 06:49:00 +0000 (14:49 +0800)]
ltp_20120104: add rdepends

[Yocto #2973]

Add rdepends libaio to fix this defect.

Signed-off-by: Kang Kai <kai.kang@windriver.com>
12 years agokernel-yocto: set master branch to a defined SRCREV
Bruce Ashfield [Wed, 22 Aug 2012 05:18:05 +0000 (01:18 -0400)]
kernel-yocto: set master branch to a defined SRCREV

To support custom repositories that set a SRCREV and that only have
a single master branch, do_validate_branches needs a special case
for 'master'. We can't delete and recreate the branch, since you
cannot delete the current branch, instead we must reset the branch
to the proper SRCREV.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
12 years agolinux-yocto: allow do_validate_branches to handle all branches
Bruce Ashfield [Thu, 2 Aug 2012 18:12:33 +0000 (14:12 -0400)]
linux-yocto: allow do_validate_branches to handle all branches

Branch validation will not restrict a branch that doesn't exist
in the tree at the time of validation (since you can't reset a
SRCREV on a non-existent branch). This restriction can be removed
by looking for all branches that contain the specified SRCREV
and forcing them to that value.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
12 years agorecipes-core/eglibc-2.13: Patch for locale-base-tt-ru packaging
Jeff Polk [Wed, 27 Jun 2012 16:57:50 +0000 (10:57 -0600)]
recipes-core/eglibc-2.13: Patch for locale-base-tt-ru packaging

The eglibc-2.13 build can fail because locale-base-tt-ru is in
PACKAGES twice. This is because the SUPPORTED list and the i18n
directories are out of sync with each other; the SUPPORTED list
expects a directory named "tt_RU.UTF8", but the directory is
actually named "tt_RU", and likewise for the @iqtelif variants.

Signed-off-by: Peter Seebach <peter.seebach@windriver.com>
Signed-off-by: Jeff Polk <jeff.polk@windriver.com>
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
12 years agoeglibc/gcc: add patches to fix eglibc 2.15 build
Matthew McClintock [Wed, 22 Aug 2012 21:47:23 +0000 (16:47 -0500)]
eglibc/gcc: add patches to fix eglibc 2.15 build

This drops one patch against eglibc for 2.15 and adds two new ones,
also it adds a gcc patch. We use all of these internally and they
are tested quite well.

Signed-off-by: Matthew McClintock <msm@freescale.com>
12 years agolibpam: disable NIS to not link with libtirpc when it is available
Marcin Juszkiewicz [Fri, 3 Aug 2012 08:21:30 +0000 (10:21 +0200)]
libpam: disable NIS to not link with libtirpc when it is available

I was checking ways to make incremental builds faster so I started using
sstate-cache and SSTATE_MIRRORS. But this gave me some nasty bug:

| Collected errors:
|  * satisfy_dependencies_for: Cannot satisfy the following dependencies
for php-cgi:
|  *    libtirpc1 (>= 0.2.2) *
|  * opkg_install_cmd: Cannot install package php-cgi.

I checked details:

In my previous build libtirpc got built before libpam so libpam found it
and linked. As a result packages depend on libtirpc1 but as there is no
such build dependency sstate handling code did not used libtirpc copy...

(From OE-Core rev: e629bdcd1bcb51f2d2101fb53daeac0bd29ab637)

Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoglib.inc: disable selinux for native builds
Matthew McClintock [Mon, 20 Aug 2012 16:09:34 +0000 (11:09 -0500)]
glib.inc: disable selinux for native builds

In addition to dbus, we also need to disable selinux for glib as well
otherwise we will get the same link error

(Note: Upstream master has disabled selinux AFAICT)

Signed-off-by: Matthew McClintock <msm@freescale.com>
12 years agodbus.inc: disable selinux for native builds
Matthew McClintock [Mon, 20 Aug 2012 15:51:03 +0000 (10:51 -0500)]
dbus.inc: disable selinux for native builds

(Note: Upstream master has disabled selinux for this AFAICT)

Fixes issues such as:

| /usr/bin/ld: cannot find -lselinux
| collect2: ld returned 1 exit status
| make[3]: *** [libdbus-glib-1.la] Error 1

Signed-off-by: Matthew McClintock <msm@freescale.com>
12 years agovalgrind: fix default.supp missing issue
Zhenhua Luo [Wed, 11 Jul 2012 07:42:17 +0000 (15:42 +0800)]
valgrind: fix default.supp missing issue

    When run valgrind, following error appears:
    ==2254== FATAL: can't open suppressions file "/usr/lib/valgrind/default.supp"

(From OE-Core rev: 0b3261d513cdad80174a9b9e804981c50bcb7ca2)

Signed-off-by: Zhenhua Luo <b19537@freescale.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoclasses/license: fix manifest to work with deb
Paul Eggleton [Thu, 5 Jul 2012 14:48:23 +0000 (15:48 +0100)]
classes/license: fix manifest to work with deb

Prepend the license manifest creation call to ROOTFS_POSTPROCESS_COMMAND
instead of appending to ROOTFS_POSTINSTALL_COMMAND. The latter is not
implemented for the deb backend (and probably ought to just be removed
completely), and by using _prepend we can still ensure it occurs before
package info is removed (and before buildhistory in case it is needed
there in future).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
12 years agoscripts/buildhistory-diff: add GitPython version check
Paul Eggleton [Mon, 28 May 2012 12:57:12 +0000 (13:57 +0100)]
scripts/buildhistory-diff: add GitPython version check

Display an error if the user does not have at least version 0.3.1 of
GitPython installed.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobuildhistory_analysis: fix error when version specifier missing
Paul Eggleton [Mon, 28 May 2012 12:57:11 +0000 (13:57 +0100)]
buildhistory_analysis: fix error when version specifier missing

Passing None to split_versions() will raise an exception, so check that
the version is specified before passing it in.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>