]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
10 years agobinutils: backport patch to fix build with gcc-4.9 obi/denzil
Martin Jansa [Fri, 10 Apr 2015 11:34:29 +0000 (13:34 +0200)] 
binutils: backport patch to fix build with gcc-4.9

* backported from 2.23.2, fixes:
work/x86_64-linux/binutils-native/2.23.1-r3/binutils-2.23.1/gas/write.c:409:24:
  error: 'dummy.fr_type' may be used uninitialized in this function [-Werror=maybe-uninitialized]
   gas_assert (prev_frag->fr_type != 0);
                        ^
work/x86_64-linux/binutils-native/2.23.1-r3/binutils-2.23.1/gas/write.c:392:9: note: 'dummy' was declared here
   fragS dummy, *prev_frag = &dummy;
         ^

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 8c5396bd3b7f1eef3d53ebf0404189fd75f1d5e1)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
10 years agobinutils: Fix building nativesdk binutils with gcc 4.9
Khem Raj [Fri, 25 Apr 2014 07:19:30 +0000 (00:19 -0700)] 
binutils: Fix building nativesdk binutils with gcc 4.9

Patches explain the issue in detail but this is exposed
with gcc 4.9 in binutils 2.24

(From OE-Core rev: fc5c467b680fc5aef4b0f689e6988e17a9322ae0)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 4dfb8847ebf8aab90ad8888933468e2899c96998)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org> [backport to binutils-2.22]
11 years agoopenssl: bump PR
Paul Eggleton [Fri, 11 Apr 2014 12:29:51 +0000 (13:29 +0100)] 
openssl: bump PR

We don't normally do this, but with the recent CVE fixes (most
importantly the one for the serious CVE-2014-0160 vulnerability) I am
bumping PR explicitly to make it a bit more obvious that the patch has
been applied.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit c50da4a2c1128f599b2c66d06b7d2ea80215f9d0)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
11 years agoopenssl: backport fix for CVE-2014-0160
Paul Eggleton [Tue, 8 Apr 2014 18:37:40 +0000 (19:37 +0100)] 
openssl: backport fix for CVE-2014-0160

Fixes the "heartbleed" TLS vulnerability (CVE-2014-0160). More
information here:

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-0160

Patch borrowed from Debian; this is just a tweaked version of the
upstream commit (without patching the CHANGES file which otherwise
would fail to apply on top of this version).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit bebed954e8fea9d805a0eb6b284dd90177379242)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
11 years agoSecurity Advisory - openssl - CVE-2013-6449
Yue Tao [Wed, 26 Mar 2014 09:08:45 +0000 (17:08 +0800)] 
Security Advisory - openssl - CVE-2013-6449

The ssl_get_algorithm2 function in ssl/s3_lib.c in OpenSSL before 1.0.2
obtains a certain version number from an incorrect data structure, which
allows remote attackers to cause a denial of service (daemon crash) via
crafted traffic from a TLS 1.2 client.

Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 3e0ac7357a962e3ef6595d21ec4843b078a764dd)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
11 years agoSecurity Advisory - openssl - CVE-2013-6450
Yue Tao [Wed, 26 Mar 2014 09:08:44 +0000 (17:08 +0800)] 
Security Advisory - openssl - CVE-2013-6450

The DTLS retransmission implementation in OpenSSL through 0.9.8y and 1.x
through 1.0.1e does not properly maintain data structures for digest and
encryption contexts, which might allow man-in-the-middle attackers to
trigger the use of a different context by interfering with packet delivery,
related to ssl/d1_both.c and ssl/t1_enc.c.

Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 94352e694cd828aa84abd846149712535f48ab0f)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
11 years agoSecurity Advisory - openssl - CVE-2013-4353
Yue Tao [Wed, 26 Mar 2014 09:08:43 +0000 (17:08 +0800)] 
Security Advisory - openssl - CVE-2013-4353

The ssl3_take_mac function in ssl/s3_both.c in OpenSSL 1.0.1 before
1.0.1f allows remote TLS servers to cause a denial of service (NULL
pointer dereference and application crash) via a crafted Next Protocol
Negotiation record in a TLS handshake.

Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 35ccce7002188c8270d2fead35f9763b22776877)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
11 years agoopenssl: Add fix for cipher des-ede3-cfb1
Muhammad Shakeel [Thu, 13 Jun 2013 11:41:20 +0000 (16:41 +0500)] 
openssl: Add fix for cipher des-ede3-cfb1

Add patch file for one of the ciphers used in openssl, namely the cipher
des-ede3-cfb1. Details of the bug, without this patch, can be found here.
http://rt.openssl.org/Ticket/Display.html?id=2867

Signed-off-by: Muhammad Shakeel <muhammad_shakeel@mentor.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
(cherry picked from commit ed61c28b9af2f11f46488332b80752b734a3cdeb)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
11 years agoopenssl: fix documentation build errors with Perl 5.18 pod2man
Jonathan Liu [Thu, 30 May 2013 13:55:09 +0000 (23:55 +1000)] 
openssl: fix documentation build errors with Perl 5.18 pod2man

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 8792b7fb4ef8d66336d52de7e81efbb818e16b08)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
11 years agoopenssl: Disable parallel make
Phil Blundell [Tue, 23 Apr 2013 16:45:26 +0000 (17:45 +0100)] 
openssl: Disable parallel make

Otherwise you get errors like:

| ../libcrypto.so: file not recognized: File truncated
| collect2: error: ld returned 1 exit status
| make[2]: *** [link_o.gnu] Error 1

(From OE-Core master rev: 61c21a0f7a2041446a82b76ee3658fda5dfbff1d)

Signed-off-by: Phil Blundell <philb@gnu.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 17d787ba8825ea97d7898eaa329e16ae86dd072d)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
11 years agoopenssl: update range information in man-section.patch
Ting Liu [Tue, 16 Apr 2013 03:18:36 +0000 (11:18 +0800)] 
openssl: update range information in man-section.patch

do_patch failed after upgrading to openssl-1.0.1e. Log:
| ERROR: Command Error: exit status: 1  Output:
| Applying patch man-section.patch
| patching file Makefile.org
| Hunk #1 succeeded at 160 (offset 26 lines).
| Hunk #2 succeeded at 626 (offset 19 lines).
| misordered hunks! output would be garbled
| Hunk #3 FAILED at 633.
| 1 out of 3 hunks FAILED -- rejects in file Makefile.org
| Patch man-section.patch does not apply (enforce with -f)
| ERROR: Function failed: patch_do_patch
| ERROR: Logfile of failure stored in:temp/log.do_patch.14679
| ERROR: Task 646 (virtual:native:openssl_1.0.1e.bb, do_patch) failed with exit code '1'

Change-Id: Ib63031fdbd09443e387ee57efa70381e0aca382c
Signed-off-by: Ting Liu <b28495@freescale.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ded738b945b6af6c73a1c5f1b4cd5ad1b6ac06c0)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
11 years agoopenssl: Upgrade to v1.0.1e
Radu Moisan [Tue, 9 Apr 2013 07:06:27 +0000 (10:06 +0300)] 
openssl: Upgrade to v1.0.1e

Dropped obolete patches and pulled updates for debian patches.

Addresses CVEs:

http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-2686
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-0166
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-0169

[YOCTO #3965]

Signed-off-by: Radu Moisan <radu.moisan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 0470edd01c0aebaa78db137e365a7e22bfb199e9)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
11 years agoopenssl: build always with -Wa,--noexecstack
Enrico Scholz [Thu, 12 Jan 2012 16:30:21 +0000 (17:30 +0100)] 
openssl: build always with -Wa,--noexecstack

There is no reason to disable exec-stack only for -native builds;
binaries on the target will suffer from the same SELinux ACLs.

OpenSSL does not use executable stack so this option can be disabled
unconditionally.

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 9c32b62d6494139daf4bab3279779c392fead116)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Conflicts:
meta/recipes-connectivity/openssl/openssl.inc

11 years agoopenssl: Add mips64 configure support.
Randy MacLeod [Fri, 21 Dec 2012 19:05:46 +0000 (14:05 -0500)] 
openssl: Add mips64 configure support.

Add mips64 configure support but assume mips(32) userspace.

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
(cherry picked from commit 7d775b071b902ee0de6391b2c30d36e3003643e1)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
11 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>
(cherry picked from commit 0e90a303bc5cb0ede21ff4346843f9daeddfff45)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
11 years agoopenssl: add AArch64 support
Marcin Juszkiewicz [Wed, 3 Oct 2012 09:18:33 +0000 (11:18 +0200)] 
openssl: add AArch64 support

Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
(cherry picked from commit 490b12126aff7e8e59569ebb471ce04ba4962b7c)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
11 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]

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 57f45fca7b8e1c0cf98d295bc0fd8839799dfa86)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
11 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>
(cherry picked from commit 14fc04e480aaf1cb5cd9d3a04a5b38d2fda115b1)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
11 years agolsof: define linux C library type when using eglibc
Ting Liu [Fri, 13 Jul 2012 05:14:25 +0000 (00:14 -0500)] 
lsof: define linux C library type when using eglibc

lsof tries to compile a temp c source file and execute the binary to
determine linux C library type (file Configure, line 2689-2717).
It is inpracticable for cross-compilation and may have build issue on
some distros since it depends on host settings.

Fix below error when building for 64bit target on 64bit host:
[...]
| dsock.c:481:44: error: 'TCP_LISTEN' undeclared (first use in this function)
| dsock.c:482:45: error: 'TCP_CLOSING' undeclared (first use in this function)
[...]
| make: *** [dsock.o] Error 1

The actual issue exists in do_configure:
[...]
Testing C library type with cc ... done
Cannot determine C library type; assuming it is not glibc.

Which is in turn caused by missing 'gnu/stubs-32.h" when compiling
the temp c source file on host:
[...]
fatal error: gnu/stubs-32.h: No such file or directory compilation terminated.

file gnu/stubs-32.h is provided by 32bit glibc.

Signed-off-by: Ting Liu <b28495@freescale.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 8c38bc022de209187f31952ae02313dd3104f4c6)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
11 years agogcc-4.6: apply patch for gcc bug 54638
Andreas Oberritter [Wed, 5 Mar 2014 00:42:54 +0000 (01:42 +0100)] 
gcc-4.6: apply patch for gcc bug 54638

Fixes segfault when compiled with gcc 4.8.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
11 years agobeecrypt: add patch for build issue on Fedora 17
Saul Wold [Wed, 13 Jun 2012 05:18:29 +0000 (22:18 -0700)] 
beecrypt: add patch for build issue on Fedora 17

../../x86_64-linux-libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include  -isystem/intel/poky/builds/f17/tmp/sysroots/x86_64-linux/usr/include  -isystem/intel/poky/builds/f17/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -Wa,--noexecstack -c -o Properties.lo Properties.cxx
x86_64-linux-libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -isystem/intel/poky/builds/f17/tmp/sysroots/x86_64-linux/usr/include -isystem/intel/poky/builds/f17/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -Wa,--noexecstack -c Properties.cxx  -fPIC -DPIC -o .libs/Properties.o
In file included from ../../include/beecrypt/c++/util/Hashtable.h:42:0,
                 from ../../include/beecrypt/c++/util/Properties.h:36,
                 from Properties.cxx:25:
../../include/beecrypt/c++/util/AbstractSet.h: In instantiation of 'bool beecrypt::util::AbstractSet<E>::equals(const beecrypt::lang::Object*) const [with E = beecrypt::util::Map<beecrypt::lang::Object, beecrypt::lang::Object>::Entry]':
Properties.cxx:228:1:   required from here
../../include/beecrypt/c++/util/AbstractSet.h:59:27: error: 'containsAll' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
../../include/beecrypt/c++/util/AbstractSet.h:59:27: note: declarations in dependent base 'beecrypt::util::AbstractCollection<beecrypt::util::Map<beecrypt::lang::Object, beecrypt::lang::Object>::Entry>' are not found by unqualified lookup
../../include/beecrypt/c++/util/AbstractSet.h:59:27: note: use 'this->containsAll' instead
../../include/beecrypt/c++/util/AbstractSet.h: In instantiation of 'bool beecrypt::util::AbstractSet<E>::equals(const beecrypt::lang::Object*) const [with E = beecrypt::lang::Object]':
Properties.cxx:228:1:   required from here
../../include/beecrypt/c++/util/AbstractSet.h:59:27: error: 'containsAll' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
../../include/beecrypt/c++/util/AbstractSet.h:59:27: note: declarations in dependent base 'beecrypt::util::AbstractCollection<beecrypt::lang::Object>' are not found by unqualified lookup
../../include/beecrypt/c++/util/AbstractSet.h:59:27: note: use 'this->containsAll' instead

[YOCTO #2593]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
(cherry picked from commit 93aa773c4c03c21a70d7d53cf93e43416e17007c)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
11 years agobeecrypt: disable java
Jesse Zhang [Thu, 7 Jun 2012 23:36:57 +0000 (16:36 -0700)] 
beecrypt: disable java

If java is installed on host, beecrypt will attempt to use it.

Signed-off-by: Jesse Zhang <sen.zhang@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>
(cherry picked from commit aa6e085b6b5114729f0aacd693d028d21858146f)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
11 years agorpm: Ensure pkgconfig deps don't stray from the package being built
Mark Hatle [Mon, 11 Jun 2012 18:19:00 +0000 (13:19 -0500)] 
rpm: Ensure pkgconfig deps don't stray from the package being built

Force pkg-config to only look in the install directory, and not be
able to fall back to system pkg-config directories for resolution.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 7afcfeb1db00c800485b2f3a89dad1ed84083979)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
11 years agopackage_rpm: Add capability to directly query packageorigin
Mark Hatle [Mon, 11 Jun 2012 18:18:55 +0000 (13:18 -0500)] 
package_rpm: Add capability to directly query packageorigin

Add functionality to RPM to directly query the packageorigin (path) from
the resolver database, instead of having to do this via an indirect method.

This results in a minor performance improvement.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a8ff3141fd78442bf328c9d3a489db88ad27486b)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
11 years agoossp-uuid: Add oss-uuid package and RPM 5.4.9 integration
Mark Hatle [Mon, 11 Jun 2012 18:18:54 +0000 (13:18 -0500)] 
ossp-uuid: Add oss-uuid package and RPM 5.4.9 integration

RPM 5.4.9 now strongly encourages you to have the ossp-uuid library available.

Add this recipe, and change RPM to use the uuid functionality.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 8a2b55c5b7c544ec15113bc21e5c62276449c9c3)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
11 years agorpm: Upgrade RPM to 5.4.9
Mark Hatle [Mon, 11 Jun 2012 18:18:53 +0000 (13:18 -0500)] 
rpm: Upgrade RPM to 5.4.9

Beside upreving RPM, add necessary integration patches to libzypp.

Also change the configuration of RPM to support PACKAGECONFIG flags.
RPM is highly configurable, the default configuration is good for
minimal OE-Core use.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit bf94103d4c532ffdfdcdcc6d27c9f65f7824f8f8)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
11 years agorpm: Upgrade RPM to 5.4.8 (db to 5.3.15)
Mark Hatle [Mon, 11 Jun 2012 18:18:52 +0000 (13:18 -0500)] 
rpm: Upgrade RPM to 5.4.8 (db to 5.3.15)

RPM 5.4.8 requires db 5.3.x, so both are upgraded together.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit c5898ef3fc3820ff9c44bc5b1b16e5def64aa877)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
11 years agorpm: fix build with automake 1.12
Nitin A Kamble [Thu, 3 May 2012 00:01:52 +0000 (17:01 -0700)] 
rpm: fix build with automake 1.12

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
(cherry picked from commit 8e78a88b664ffe32f182987eb0f5e5ea6345d416)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
11 years agorpm 5.4.0: respect to the arch when choose the alternatives
Robert Yang [Wed, 23 May 2012 05:55:39 +0000 (13:55 +0800)] 
rpm 5.4.0: respect to the arch when choose the alternatives

There is a bug if we:
1) bitbake diffutils with MACHINE=crownbay
2) bitbake diffutils with MACHINE=qemux86
3) bitbake core-image-sato with MACHINE=crownbay

Then the diffutils.i586 would be installed to the crownbay's image, this
is because diffutils.i586 is newer than diffutils.core2, and rpm doesn't
respect to the arch priorities:

We have put the archs in order in _solve_dbpath:

crownbay/solvedb:core2/solvedb:i586/solvedb:all/solvedb

Fix rpm to respect to the order, for example, if it finds a pkg in both
core2/ and i586/, and the core2/ comes first, it should not use the one
in i586/ even if it's build time is newer.

Note: Don't worry about the _free(*ptr), it can check whether ptr is
NULL or not.

This is for the denzil branch, and the master branch also needs it.

[YOCTO #2360]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
(cherry picked from commit d76067ae100623dd6dd4858568b98522d1daf474)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
11 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[4.6] 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>
(cherry picked from commit e6c13c14f520162e0431d097f78d13eed4586c20)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
11 years agoelfutils-native: Update the patch to include the missing pieces needed for tests
Khem Raj [Wed, 30 Oct 2013 04:42:39 +0000 (21:42 -0700)] 
elfutils-native: Update the patch to include the missing pieces needed for tests

In the last patch we missed similar update for test/line2addr.c
which meant that the build still failed.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
(cherry picked from commit cb966afe86a5856d846fb0d4fb627cdce2ae0670)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
11 years agoelfutils-native: Fix build on distros with gcc 4.8
Khem Raj [Fri, 13 Sep 2013 05:25:50 +0000 (05:25 +0000)] 
elfutils-native: Fix build on distros with gcc 4.8

The patch redhat-portability.diff causes this issue
so lets revert the portion which was using %a instead of %m
thats recommended anyway, redhat patch seems to be targetting
old compilers.

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>
(cherry picked from commit c1cbc57eb80d2cab9a80d5e5aa65419f40eefb15)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
11 years agoelfutils: fix the num passed to memset in ar.c
Zhenhua Luo [Fri, 15 Mar 2013 13:27:27 +0000 (21:27 +0800)] 
elfutils: fix the num passed to memset in ar.c

Following build error will appear on Fedora18+:
ar.c: In function 'do_oper_delete':
ar.c:918:31: error: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Werror=sizeof-pointer-memaccess]
   memset (found, '\0', sizeof (found));

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5cc3b4fe09cfa2b3e67568a9c2494c198a5292af)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
11 years agoelfutils: Fix size passed to snprintf for invalid sh_name case
Zhenhua Luo [Tue, 12 Mar 2013 03:58:58 +0000 (11:58 +0800)] 
elfutils: Fix size passed to snprintf for invalid sh_name case

Following build error will appear on Fedora18.
nm.c: In function 'show_symbols_sysv':
nm.c:756:27: error: argument to 'sizeof' in 'snprintf' call is the same expression as the destination; did you mean to provide an explicit length? [-Werror=sizeof-pointer-memaccess]
    snprintf (name, sizeof name, "[invalid sh_name %#" PRIx32 "]",
                           ^

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
(cherry picked from commit 61010972284cc53cfc7958a9f6422e3fe74fcc0e)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
11 years agoqt4e.bbclass: export OE_QMAKE_QT_CONFIG
Jonathan Liu [Sat, 15 Jun 2013 00:06:31 +0000 (10:06 +1000)] 
qt4e.bbclass: export OE_QMAKE_QT_CONFIG

The class is inheriting qmake2.bbclass which exports OE_QMAKE_QT_CONFIG
pointing to the qt4 qconfig.pri when it should be pointing to the
qt4-embedded qconfig.pri.

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
(cherry picked from commit ed78661e147780ceb1bc1e952b68740984d85971)

11 years agoqt: update qmake2 class to export qconfig.pri mkspec
Felipe F. Tonello [Wed, 12 Jun 2013 01:21:04 +0000 (11:21 +1000)] 
qt: update qmake2 class to export qconfig.pri mkspec

This is necessary when Qt applications want to know variables such as
QT_MAJOR_VERSION, QT_VERSION, QT_MINOR_VERSION, GCC version, etc.

Signed-off-by: Felipe F. Tonello <eu@felipetonello.com>
Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
(cherry picked from commit dcaa40e65d986587fa7c44f4285bbd0883478cc3)

11 years agolib/oe/path: Fix copytree functions for tar 1.27
Richard Purdie [Fri, 11 Oct 2013 22:02:27 +0000 (23:02 +0100)] 
lib/oe/path: Fix copytree functions for tar 1.27

tar version 1.27 returns:

tar: --same-order option cannot be used with -c

with the commandlines we have been using. We can remove the -s option (which
is --same-order) to remove the error.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 69c26e795c117aabfaf313abbfd10e70ede633d9)

Conflicts:
meta/lib/oe/path.py

11 years agoclasses: tar 1.27 fixes
Richard Purdie [Fri, 11 Oct 2013 22:01:54 +0000 (23:01 +0100)] 
classes: tar 1.27 fixes

tar version 1.27 returns:

tar: --same-order option cannot be used with -c

with the commandlines we have been using. We can remove the -s option (which
is --same-order) to remove the error.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 3d5a6d0a480a0fa98260a3b3ffc71b8d9e3e58af)

Conflicts:
meta/classes/libc-package.bbclass
meta/classes/package.bbclass
meta/classes/populate_sdk_deb.bbclass

11 years agoxinetd: Update to 2.3.15
Saul Wold [Wed, 16 May 2012 19:39:31 +0000 (22:39 +0300)] 
xinetd: Update to 2.3.15

Signed-off-by: Saul Wold <sgw@linux.intel.com>
(cherry picked from commit 17d7f2a9ee4c56bc697f05a8e703ddb02c262d99)

12 years agoopenjade-native_1.3.2.bb: fix typo and change the deps exclusion to correct var
Matthew McClintock [Tue, 10 Jul 2012 19:45:35 +0000 (14:45 -0500)] 
openjade-native_1.3.2.bb: fix typo and change the deps exclusion to correct var

Signed-off-by: Matthew McClintock <msm@freescale.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoopenjade-native: fix undefined Getopts error, use std namespace
Dennis Lan [Tue, 3 Jul 2012 07:03:46 +0000 (07:03 +0000)] 
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

Signed-off-by: Dennis Lan <dennis.yxun@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoopenjade-native: Ensure we reautoconf the package
Richard Purdie [Tue, 12 Jun 2012 13:05:09 +0000 (13:05 +0000)] 
openjade-native: Ensure we reautoconf the package

Currently since configure.in in is in a subdirectory, we don't reautoconf the
recipe. We really need to do this, to update things like the libtool script used
and fix various issues such as those that could creep in if a reautoconf is
triggered for some reason. Since this source only calls AM_INIT_AUTOMAKE to gain the
PACKAGE and VERSION definitions and that macro now errors if Makefile.am doesn't
exist, we need to add these definitions manually.

These changes avoid failures like:

----
| ...
| DssslApp.cxx:117:36: error: 'PACKAGE' was not declared in this scope
| DssslApp.cxx:118:36: error: 'VERSION' was not declared in this scope
| make[2]: *** [DssslApp.lo] Error 1
----

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 [Sat, 16 Jun 2012 06:43:35 +0000 (08:43 +0200)] 
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.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
12 years agoopenssl: Fix build for mips64(el)
Khem Raj [Wed, 25 Apr 2012 22:43:30 +0000 (15:43 -0700)] 
openssl: Fix build for mips64(el)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
12 years agofixup! sstate.bbclass: don't remove shared pkgdata if PACKAGE_ARCH changed to MACHINE...
Andreas Oberritter [Wed, 5 Sep 2012 07:55:52 +0000 (09:55 +0200)] 
fixup! sstate.bbclass: don't remove shared pkgdata if PACKAGE_ARCH changed to MACHINE_ARCH

12 years agosstate.bbclass: don't remove shared pkgdata if PACKAGE_ARCH changed to MACHINE_ARCH
Andreas Oberritter [Wed, 29 Aug 2012 21:27:44 +0000 (23:27 +0200)] 
sstate.bbclass: don't remove shared pkgdata if PACKAGE_ARCH changed to MACHINE_ARCH

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
13 years agopackage.bbclass: Drop dubious use of packages[0] from do_split_packages and do_split_...
Richard Purdie [Sat, 12 May 2012 10:10:33 +0000 (11:10 +0100)] 
package.bbclass: Drop dubious use of packages[0] from do_split_packages and do_split_locales

As the comment says, using packages[0] is rather broken and can be incorrect,
as demonstrated by the recent gdk-pixbuf change. Replacing it with PN is
a bit more correct and more likely to do what was originally intended
by this function.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agolibpcap: move pcap-config to ${PN}-dev, fix description, add --without-libnl
Andreas Oberritter [Wed, 23 May 2012 13:37:54 +0000 (15:37 +0200)] 
libpcap: move pcap-config to ${PN}-dev, fix description, add --without-libnl

* pcap-config was packaged into ${PN}
* pcap linked against libnl if it was build before libpcap
  without being listed in DEPENDS.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
13 years agoppp: avoid host contamination
Andreas Oberritter [Tue, 22 May 2012 22:24:36 +0000 (00:24 +0200)] 
ppp: avoid host contamination

* Import patch from OE-Classic commit f7c547ede1bfc94c24f6315a23ff48a4c5b9ffaf.
* Fixes linking with libpcap (ppp filter).

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
13 years agowpa-supplicant: fix packaging error since last commit
Andreas Oberritter [Tue, 22 May 2012 16:14:09 +0000 (18:14 +0200)] 
wpa-supplicant: fix packaging error since last commit

* wpa-passphrase has its own package, but commit
  4a4c568e25a08e9f222d723f9819582c9f895c58 broke it.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
13 years agoqt4.inc: package keyboard drivers
Andreas Oberritter [Tue, 22 May 2012 10:25:06 +0000 (12:25 +0200)] 
qt4.inc: package keyboard drivers

* Fixes the following packaging error, if compiled with
  -plugin-kbd-linuxinput:

| WARNING: For recipe qt4-embedded, the following files/directories were installed but not shipped in any package:
| WARNING:   /usr/lib/qtopia/plugins/kbddrivers/.debug
| WARNING:   /usr/lib/qtopia/plugins/kbddrivers/.debug/libqlinuxinputkbddriver.so

* No PR bump, because -plugin-kbd-linuxinput is not enabled
  by default.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
13 years agoqt4(-embedded).inc: create variables to ease overriding
Andreas Oberritter [Mon, 21 May 2012 23:24:53 +0000 (01:24 +0200)] 
qt4(-embedded).inc: create variables to ease overriding

* No functional change besides ordering of configure arguments.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
13 years agopython: bump PR of packages after update of distutils.bbclass
Andreas Oberritter [Mon, 21 May 2012 20:52:08 +0000 (22:52 +0200)] 
python: bump PR of packages after update of distutils.bbclass

* Bump every recipe inheriting distutils or setuptools and
  not overriding do_install without calling distutils_do_install.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
13 years agodistutils.bbclass: don't delete .pyo files
Andreas Oberritter [Mon, 21 May 2012 20:20:22 +0000 (22:20 +0200)] 
distutils.bbclass: don't delete .pyo files

* Deleting .pyo files causes them to get compiled on the target.
* First boot gets *really* slow for python based projects.
* No space gets saved on the target.
* The package manager doesn't know about the files and
  therefore fails to uninstall them, occupying space and causing
  uninstalled python scripts to remain executable.
* It's inconsistent, because python itself and autotools based
  projects already ship .pyo files.
* Probably .pyo files were deleted because .pyc files were
  available earlier, but this has changed and OE-Core's python
  now only generates optimized .pyo files. Deletion of .pyo was
  introduced in 2008, python/04-default-is-optimized.patch
  was introduced in 2009.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
13 years agonetbase: merge init script updates from upstream
Andreas Oberritter [Mon, 21 May 2012 15:52:49 +0000 (17:52 +0200)] 
netbase: merge init script updates from upstream

* Read /proc/mounts only once.
* Support many more network filesystem types.
* Remaining differences to netbase 4.47:
  - Uses the mountvirtfs keyword instead of mountkernfs
  - Doesn't use lsb functions
  - Doesn't print a warning if /etc/network/options exists
  - Doesn't use --exclude parameter for ifup, because
    busybox doesn't support it.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
13 years agolibnss-mdns: fix postinst scripts
Andreas Oberritter [Mon, 21 May 2012 14:47:23 +0000 (16:47 +0200)] 
libnss-mdns: fix postinst scripts

* On upgrade, postinst ocassionally returned 1, so use a
  conditional instead of &&.
* Use sed patterns in order to make it work more generally.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
13 years agoavahi-systemd: drop postrm, use prerm instead
Andreas Oberritter [Wed, 16 May 2012 15:52:30 +0000 (17:52 +0200)] 
avahi-systemd: drop postrm, use prerm instead

* Calling "systemctl disable" from postrm is too late and
  causes the following error:

| Failed to issue method call: No such file or directory

* Fix indentation of prerm for resulting shell snippet.
* Messing with $D is not needed in *rm scripts.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
13 years agoe2fsprogs: fix packaging error for libext2fs
Andreas Oberritter [Thu, 10 May 2012 19:51:13 +0000 (21:51 +0200)] 
e2fsprogs: fix packaging error for libext2fs

* libext2fs is located in base_libdir, not libdir

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
13 years agoopenssl.inc: reset INC_PR to r15 to unbreak upgrade path
Andreas Oberritter [Tue, 8 May 2012 07:22:26 +0000 (09:22 +0200)] 
openssl.inc: reset INC_PR to r15 to unbreak upgrade path

51a122a5593c62d7ffd07f860e54a2fb0327959c incorrectly set
  INC_PR to r0.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
13 years agogcc-4.6: disable cloog, change syntax to disable ppl
Andreas Oberritter [Fri, 4 May 2012 22:08:53 +0000 (00:08 +0200)] 
gcc-4.6: disable cloog, change syntax to disable ppl

* Backported from 523df15bcc21e1749771cca757613f3520243b8e
  as suggested by Khem.

* Original commit message:

  If build system has those libraries installed
  gcc configure will pick them up. We want
  consistent builds so we disable them since we
  do not (yet) support them

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
13 years agogcc-4.6: explicitly disable ppl
Andreas Oberritter [Fri, 4 May 2012 11:19:16 +0000 (13:19 +0200)] 
gcc-4.6: explicitly disable ppl

* Fixes the following error after a system library upgrade
| .../mipsel-oe-linux/4.6.4/cc1: error while loading shared libraries: libppl.so.10: cannot open shared object file: No such file or directory

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
13 years agobusybox: port improvements to simple.script from Debian (udhcpc)
Andreas Oberritter [Thu, 3 May 2012 23:29:03 +0000 (01:29 +0200)] 
busybox: port improvements to simple.script from Debian (udhcpc)

* Support resolvconf
* Avoid bashism $((metric++))
* Use 'domain' instead of 'search' for domain parameter

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
13 years agobusybox: remove unused patches for simple.script (udhcpc)
Andreas Oberritter [Thu, 3 May 2012 19:32:22 +0000 (21:32 +0200)] 
busybox: remove unused patches for simple.script (udhcpc)

* OE-Core provides its own copy of simple.script.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
13 years agonfs-utils: don't try to unload nfsd module
Andreas Oberritter [Mon, 30 Apr 2012 19:50:48 +0000 (21:50 +0200)] 
nfs-utils: don't try to unload nfsd module

* When nfsserver get's stopped, "modprobe -r nfsd" may
  hang indefinitely. As there's no need to unload the
  module, just remove the call to modprobe.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
13 years agoopkg-collateral: import fixes from OE-Classic
Andreas Oberritter [Thu, 26 Apr 2012 22:01:05 +0000 (00:01 +0200)] 
opkg-collateral: import fixes from OE-Classic

* Set lists_dir to /var/lib/opkg

  commit 16808bc4817492beba512f4e73bce8c232d1eafa
  Author: Marcin Juszkiewicz <hrw@openembedded.org>
  Date:   Mon Mar 17 23:40:48 2008 +0000

* Update new options sample and move the opkg.conf to correct place

  commit cc9825d97962287df75e164aec456901292e1b7f
  Author: Tick Chen <ticktock35@gmail.com>
  Date:   Mon Dec 29 19:41:47 2008 +0800

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
13 years agowpa-supplicant: move wpa_passphrase to bindir
Andreas Oberritter [Thu, 12 Apr 2012 13:17:26 +0000 (15:17 +0200)] 
wpa-supplicant: move wpa_passphrase to bindir

* wpa_passphrase doesn't require special privileges.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
13 years agowpa-supplicant: remove unused files
Andreas Oberritter [Wed, 11 Apr 2012 16:10:47 +0000 (18:10 +0200)] 
wpa-supplicant: remove unused files

* defconfig, init.sh, wpa_supplicant-0.5.7-always-scan.patch,
  wpa_supplicant-fix-deprecated-dbus-function.patch and
  wpa_supplicant_default.conf are not used by the recipe.
* default-sane gets installed but is unused.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
13 years agomirrors: remove snapshot.debian.net
Andreas Oberritter [Wed, 11 Apr 2012 11:42:26 +0000 (13:42 +0200)] 
mirrors: remove snapshot.debian.net

* snapshot.debian.net returns HTML pages for archives it doesn't
  contain, causing unpredictably broken downloads.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
13 years agoqt4: move from 4.8.0 to 4.8.1
Andreas Oberritter [Wed, 28 Mar 2012 19:07:33 +0000 (19:07 +0000)] 
qt4: move from 4.8.0 to 4.8.1

* compile-tested on x86 for mips32el
* DEFAULT_PREFERENCE still set to -1

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
13 years agognomebase.bbclass: skip packages inheriting gnomebase unless x11 is defined
Andreas Oberritter [Tue, 21 Feb 2012 21:41:29 +0000 (22:41 +0100)] 
gnomebase.bbclass: skip packages inheriting gnomebase unless x11 is defined

* Drop dependency on GNOME if x11 is disabled.
* Exceptions may be listed in a whitelist.
* Current exceptions are: libcroco, librsvg, mm-common and pango.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
13 years agogtk-icon-cache.bbclass: don't add dependencies or hooks unless x11 is defined
Andreas Oberritter [Tue, 21 Feb 2012 21:40:49 +0000 (22:40 +0100)] 
gtk-icon-cache.bbclass: don't add dependencies or hooks unless x11 is defined

* Drop dependency on GNOME if x11 is disabled.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
13 years agogconf.bbclass: don't add dependencies or hooks unless x11 is defined
Andreas Oberritter [Tue, 21 Feb 2012 21:39:19 +0000 (22:39 +0100)] 
gconf.bbclass: don't add dependencies or hooks unless x11 is defined

* Drop dependency on GNOME if x11 is disabled.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
13 years agolibsoup-2.4: don't depend on libgnome-keyring unless x11 is defined
Andreas Oberritter [Tue, 21 Feb 2012 21:35:37 +0000 (22:35 +0100)] 
libsoup-2.4: don't depend on libgnome-keyring unless x11 is defined

* Drop dependency on GNOME if x11 is disabled.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
13 years agopango: Fix modules load failure in multilib environment
Zhai Edwin [Tue, 8 May 2012 14:43:49 +0000 (22:43 +0800)] 
pango: Fix modules load failure in multilib environment

Multi-libs of Pango need different modules, thus different config files and
utils. This patch separate config file and utils with different MLPREFIX to
avoid conflict.

[YOCTO #2356] got fixed.

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agosed: Explicitly disable acl for deterministic builds
Richard Purdie [Fri, 4 May 2012 11:28:42 +0000 (11:28 +0000)] 
sed: Explicitly disable acl for deterministic builds

13 years agoinitrdscripts: Update install.sh to work with mmc devices
Darren Hart [Wed, 2 May 2012 00:21:59 +0000 (17:21 -0700)] 
initrdscripts: Update install.sh to work with mmc devices

Fixes [YOCTO #2385]

The installer only searches for hd[ab] sd[ab]. Some newer BSPs have mmcblk
devices that should be used as the install target. These devices also have a
partition prefix (mmcblk0p1 instead of mmcblk01). As they are detected
asynchronously, it is necessary to add the rootwait kernel parameter to avoid
a race condition trying to mount the root device.

As BSPs like the FRI2 and the sys940x have mmc devices and will have a 1.2
release, we should push this to 1.2.1. The changes are perfectly contained and
easily verified.

Test for an mmcblk device and add the p partition prefix if necessary. Add the
rootwait kernel parameter when an mmcblk device is detected.  Replace the series
of explicit umount commands with a single umount using a wildcard. This will
find all the partitions and will not try to unmount non-existant devices. Avoid
copy and paste errors by replacing /dev/${device}${pX} references with the
previously assigned rootfs, bootfs, and swap variables.

These changes have been tested on the FRI2 Sato image which installed to
/dev/mmcblk0 as well as the N450 Sato image which installed to /dev/sda. Both
were successful.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
13 years agobuildhistory: fix multiple commit of images and packages at the same time
Paul Eggleton [Fri, 4 May 2012 13:36:01 +0000 (14:36 +0100)] 
buildhistory: fix multiple commit of images and packages at the same time

The echo line here was merging multiple lines into one, and the result
was that if both image and package changes had to be comitted then only
the image changes were being committed and the package changes could
potentially be merged into the next package change. Quoting the variable
reference fixes this.

Fixes [YOCTO #2411]

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agobuilder: Add Please Wait Dialog Box
Saul Wold [Tue, 1 May 2012 23:15:36 +0000 (16:15 -0700)] 
builder: Add Please Wait Dialog Box

Add dialog box while bitbake starts hob to inform user
to please wait for the hob screen to become visible.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
13 years agoquilt: fix perl path in target perl scripts
Nitin A Kamble [Wed, 25 Apr 2012 21:09:14 +0000 (14:09 -0700)] 
quilt: fix perl path in target perl scripts

While building on distros like fedora17, which has /bin/perl,
the target perl scripts get perl path also as /bin/perl.
And that is not correction path of perl on the target.

This commit avoids this error.

| error: Failed dependencies:
|       /bin/perl is needed by quilt-0.51-r2.i586
NOTE: package core-image-sato-sdk-1.0-r0: task do_rootfs: Failed
ERROR: Task 8
(/home/nitin/prj/poky.git/meta/recipes-sato/images/core-image-sato-sdk.bb,
do_rootfs) failed with exit code '1'

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
13 years agoboost: Ensure we use our user-config.jam file
Saul Wold [Fri, 20 Apr 2012 21:06:20 +0000 (14:06 -0700)] 
boost: Ensure we use our user-config.jam file

This change ensures we use the user-config.jam Configuration
that we created and will not use anything from the user's home
directory.

[YOCTO #2302]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
13 years agouclibc SDK not including libpthread_nonshared.a
Mark Norman [Wed, 25 Apr 2012 10:44:20 +0000 (20:14 +0930)] 
uclibc SDK not including libpthread_nonshared.a

Modified the uclibc PACKAGES list order to ensure the uclibc-dev package is
processed before uclibc-staticdev to allow *_nonshared.a libraries to be
packaged in the uclibc-dev package.  The *_nonshared.a libraries are required
by the SDK.

13 years agorunqemu-ifup: enable ip masquerading for QEMU NAT addresses
Scott Garman [Wed, 25 Apr 2012 00:11:26 +0000 (17:11 -0700)] 
runqemu-ifup: enable ip masquerading for QEMU NAT addresses

Fix the IP masquerading settings so that networked QEMU sessions can
reach external networks.

This is a partial fix for [YOCTO #2329].

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoopenssl: upgrade to 1.0.0i
Scott Garman [Wed, 25 Apr 2012 05:13:13 +0000 (22:13 -0700)] 
openssl: upgrade to 1.0.0i

Addresses CVE-2012-2110

Fixes bug [YOCTO #2368]

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agolibpng: upgrade to 1.2.49
Scott Garman [Wed, 25 Apr 2012 05:13:12 +0000 (22:13 -0700)] 
libpng: upgrade to 1.2.49

License hasn't changed, just updated the md5 checksums due to trivial
date changes within the text (and the position of the license text
within png.h).

Addresses CVE-2011-3045

Fixes [YOCTO #2352]

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agopython: Add patch to search for db.h in inc_dirs and remove warning
Andrei Gherzan [Thu, 5 Apr 2012 20:54:22 +0000 (23:54 +0300)] 
python: Add patch to search for db.h in inc_dirs and remove warning

python should search for db.h in inc_dirs and not in a hardcoded path.
If db.h is found but HASHVERSION is not 2 we avoid a warning by not.
adding this module to missing variable.

[YOCTO #1937]

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agopython: Add patch for 64bit platform
Andrei Gherzan [Thu, 5 Apr 2012 20:54:21 +0000 (23:54 +0300)] 
python: Add patch for 64bit platform

This patch was added for 64bit host machines. In the compile process python
is checking if platform is a 64bit platform using sys.maxint which is the host's
value. The patch fixes this issue so that python would check if TARGET machine
is 64bit not the HOST machine. In this way will have "dl" and "imageop" modules
built if HOST machine is 64bit but the target machine is 32bit.

[YOCTO #1937]

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years ago{kernel, module}.bbclass: don't run depmod for module packages during do_rootfs
Andreas Oberritter [Mon, 23 Apr 2012 21:48:32 +0000 (23:48 +0200)] 
{kernel, module}.bbclass: don't run depmod for module packages during do_rootfs

* depmod already gets executed by pkg_postinst_kernel-image.

* If you build a module using module.bbclass, pkg_postinst returns 1 in
  do_rootfs, causing pkg_postinst to run again on first boot. To improve
  this situation, I copied pkg_postinst from kernel.bbclass to module.bbclass.
  This was rejected by Koen, because he doesn't like the code from
  kernel.bblcass, which uses ${STAGING_DIR_KERNEL}. Richard then suggested
  that calling depmod during do_rootfs wasn't necessary at all, because
  it already gets done by kernel-image.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoutils.bbclass: Testing via env in create_wrapper is a nice idea but breaks things
Richard Purdie [Thu, 19 Apr 2012 21:52:10 +0000 (21:52 +0000)] 
utils.bbclass: Testing via env in create_wrapper is a nice idea but breaks things

For example, pseudo-native wants to set LD_LIBRBARY_PATH but setting this
into the environment here causes the existing pseudo (running during do_install)
to poke into paths in /opt and this breaks builds.

The simplest fix is simply not to do this. Comments tweaks to match the code.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agolibproxy: fix compilation with gcc 4.7
Nitin A Kamble [Fri, 20 Apr 2012 16:14:22 +0000 (09:14 -0700)] 
libproxy: fix compilation with gcc 4.7

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agodpkg-native: fix deb-based rootfs construction failure on Fedora 16
Paul Eggleton [Tue, 24 Apr 2012 09:25:25 +0000 (10:25 +0100)] 
dpkg-native: fix deb-based rootfs construction failure on Fedora 16

Backport a fix from 1.16.x upstream to use fd instead of stream-based
I/O in dpkg-deb, which avoids the use of fflush() on an input stream
(the behaviour of which is undefined by POSIX, and appears to have
changed in the version of glibc introduced in Fedora 16 and presumably
other systems).

Fixes [YOCTO #1858].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoquilt: move empty quiltrc to native sysconfdir
Saul Wold [Thu, 19 Apr 2012 22:11:01 +0000 (15:11 -0700)] 
quilt: move empty quiltrc to native sysconfdir

patch.bbclass orignally pointed at /usr/bin/quiltrc for an empty
version to ensure that no user setting were picked up, change this
to /etc/quiltrc in the Native sysroot since we now have a native
sysconfdir.

Make sure that the quiltrc is actually installed in the Native
sysconfdir, not the target, so fix this after the recipe split.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
13 years agogcc: Add plugins package for ARM, fix /usr/incude packaging
Saul Wold [Thu, 19 Apr 2012 18:18:00 +0000 (11:18 -0700)] 
gcc: Add plugins package for ARM, fix /usr/incude packaging

WARNING: For recipe gcc, the following files/directories were installed but not shipped in any package:
WARNING:   /usr/include
WARNING:   /usr/lib/gcc/arm-poky-linux-gnueabi/4.6.4/plugin/libgcc
WARNING:   /usr/lib/gcc/arm-poky-linux-gnueabi/4.6.4/plugin/libgcc/config
WARNING:   /usr/lib/gcc/arm-poky-linux-gnueabi/4.6.4/plugin/libgcc/config/arm
WARNING:   /usr/lib/gcc/arm-poky-linux-gnueabi/4.6.4/plugin/libgcc/config/arm/bpabi-lib.h
Signed-off-by: Saul Wold <sgw@linux.intel.com>
13 years agoxserver-kdrive: Add xkb to existing docs list
Saul Wold [Thu, 19 Apr 2012 18:06:16 +0000 (11:06 -0700)] 
xserver-kdrive: Add xkb to existing docs list

WARNING: For recipe xserver-kdrive, the following files/directories were installed but not shipped in any package:
WARNING:   /usr/share/man
WARNING:   /usr/share/man/man5
WARNING:   /usr/share/man/man1
WARNING:   /usr/share/man/man1/Xephyr.1
WARNING:   /usr/share/man/man1/Xserver.1
Signed-off-by: Saul Wold <sgw@linux.intel.com>
13 years agolibgcc: Package additional *crt*.o files for PPC
Saul Wold [Thu, 19 Apr 2012 18:04:27 +0000 (11:04 -0700)] 
libgcc: Package additional *crt*.o files for PPC

WARNING: For recipe libgcc, the following files/directories were installed but not shipped in any package:
WARNING:   /usr/lib/powerpc-poky-linux/4.6.4/ecrti.o
WARNING:   /usr/lib/powerpc-poky-linux/4.6.4/ncrti.o
WARNING:   /usr/lib/powerpc-poky-linux/4.6.4/ecrtn.o
WARNING:   /usr/lib/powerpc-poky-linux/4.6.4/ncrtn.o
Signed-off-by: Saul Wold <sgw@linux.intel.com>
13 years agobinutils: add embedspu for ppc builds
Saul Wold [Thu, 19 Apr 2012 18:01:15 +0000 (11:01 -0700)] 
binutils: add embedspu for ppc builds

WARNING: For recipe binutils, the following files/directories were installed but not shipped in any package:
WARNING:   /usr/bin/embedspu
Signed-off-by: Saul Wold <sgw@linux.intel.com>
13 years agobdwgc: Set ARM_INSTRUCTION_SET to "arm"
Ken Werner [Thu, 19 Apr 2012 10:20:39 +0000 (12:20 +0200)] 
bdwgc: Set ARM_INSTRUCTION_SET to "arm"

The bdwgc recipe uses a version of libatomic that fails when building in Thumb
mode. This has been fixed upstream already. The
pulseaudio/libatomics-ops_1.2.bb has the same issue and sets the
ARM_INSTRUCTION_SET to "arm" (probably until a new version gets pulled in).
This patch applies the same workaround to the bdwgc/bdwgc_20110107.bb recipe.

Signed-off-by: Ken Werner <ken.werner@linaro.org>
13 years agogthumb: Disable parallel make for gthumb install
Darren Hart [Wed, 18 Apr 2012 15:31:17 +0000 (08:31 -0700)] 
gthumb: Disable parallel make for gthumb install

With PARALLEL_MAKE set to 14, I frequently see the gthumb do_install
task hang. Make is spinning at 100% CPU and the build makes no
more progress.

The following work-around proposed by Richard Purdie allows progress
to be made.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
CC: Joshua Lock <josh@linux.intel.com>
CC: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agopython: use PKGSUFFIX for libpython2
Andreas Oberritter [Thu, 12 Apr 2012 02:30:02 +0000 (04:30 +0200)] 
python: use PKGSUFFIX for libpython2

* python-nativesdk shouldn't provide libpython2, but
  libpython2-nativesdk.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
[PR Bump - sgw]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
13 years agoconnman: backport test script fixes
Otavio Salvador [Wed, 4 Apr 2012 12:18:11 +0000 (12:18 +0000)] 
connman: backport test script fixes

Those fixes are required to get the test scripts to work with current
0.79 DBus API.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
13 years agoconnman: Fix linking with gold linker
Khem Raj [Sun, 8 Apr 2012 05:00:56 +0000 (22:00 -0700)] 
connman: Fix linking with gold linker

Fixes errors like below

/home/kraj/work/angstrom/build/tmp-angstrom_2010_x-eglibc/sysroots/x86_64-linux/usr/libexec/armv5te-angstrom-linux-gnueabi/gcc/arm-angstrom-linux-gnueabi/4.6.3/ld:
error: hidden symbol '__start___debug' is not defined locally
/home/kraj/work/angstrom/build/tmp-angstrom_2010_x-eglibc/sysroots/x86_64-linux/usr/libexec/armv5te-angstrom-linux-gnueabi/gcc/arm-angstrom-linux-gnueabi/4.6.3/ld:
error: hidden symbol '__stop___debug' is not defined locally
collect2: ld returned 1 exit status
make[1]: *** [plugins/loopback.la] Error 1

Signed-off-by: Khem Raj <raj.khem@gmail.com>