]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
12 years agowpa-supplicant: don't break the DBus service file
Ross Burton [Wed, 3 Oct 2012 12:12:18 +0000 (13:12 +0100)]
wpa-supplicant: don't break the DBus service file

The recipe exports $BINDIR as ${sbindir} and the build system uses this when
writing the DBus service file, so sedding it and replacing $base_sbindir with
$sbindir (/sbin and /usr/sbin) isn't useful when it ends up as
/usr/usr/sbin/wpa_supplicant.

[YOCTO: #3202]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoxf86-video-intel: drop libxvmc dependency
Ross Burton [Mon, 1 Oct 2012 10:18:51 +0000 (11:18 +0100)]
xf86-video-intel: drop libxvmc dependency

xvmc is explicitly disabled, so remove the dependency.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoqemu: add wrapper for qemu-mips binary
Laurentiu Palcu [Wed, 3 Oct 2012 11:23:26 +0000 (14:23 +0300)]
qemu: add wrapper for qemu-mips binary

qemu-mips user emulation binary segfaults when running any kind of
binary. This is due to a MMU access fault in the virtual CPU. This
problem has been introduced in qemu when 4GB of vmem were reserved for
32-on-64 bit.

This workaround will need to be reverted once the proper fix is found.

[YOCTO #3143]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoe2fsprogs: Don't install findfs
Phil Blundell [Tue, 2 Oct 2012 17:16:24 +0000 (18:16 +0100)]
e2fsprogs: Don't install findfs

This binary is provided by util-linux nowadays.  Fixes:

WARNING: The recipe is trying to install files into a shared area when those files already exist. Those files are:
     /fast/jenkins/workspace/.../tmp-eglibc/sysroots/x86_64-linux/sbin/findfs

Signed-off-by: Phil Blundell <pb@pbcl.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobzip2 and busybox: Incorrect LICENSE
Elizabeth Flanagan [Tue, 2 Oct 2012 23:01:42 +0000 (16:01 -0700)]
bzip2 and busybox: Incorrect LICENSE

The license for bzip2 is not quite BSD. I have an email out to the
maintainer to see if we can utilize a common BSD license (or something
else) however, for now, we should revert bzip2 back to a special
license.

As busybox also utilizes a lightly modified bzip2, this also
effects busybox.

Signed-off-by: Elizabeth Flanagan <elizabeth.flanagan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolinux-yocto-custom: Clarify defconfig usage
Darren Hart [Wed, 3 Oct 2012 04:36:41 +0000 (21:36 -0700)]
linux-yocto-custom: Clarify defconfig usage

It is necessary to supply file://defconfig to the SRC_URI when using
a defconfig (it is not implicitly understood as the commentary might
currently suggest).

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
CC: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agopackage.bbclass: Fix regression in -dbg packages introduced by explode_dep_versions...
Richard Purdie [Wed, 3 Oct 2012 08:58:24 +0000 (09:58 +0100)]
package.bbclass: Fix regression in -dbg packages introduced by explode_dep_versions change

We need to iterate over the dictionary pulling out the values, not take the top
level keys. If we don't do this, we end up with dependencies on the values of
PACKAGES, not library dependencies.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoqt4: Avoid circular dependencies with multilib
Richard Purdie [Tue, 2 Oct 2012 22:26:09 +0000 (23:26 +0100)]
qt4: Avoid circular dependencies with multilib

Without this, circular dependencies are found when attempting to build
multilib versions of qt4 (or bitbake world in a multilib enabled build).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake.conf: Add CCACHE_DISABLE to BS_HASHBASE_WHITELIST
Mike Crowe [Tue, 2 Oct 2012 16:22:49 +0000 (17:22 +0100)]
bitbake.conf: Add CCACHE_DISABLE to BS_HASHBASE_WHITELIST

If CCACHE is in the whitelist then CCACHE_DISABLE probably should be too.

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Phil Blundell <philb@gnu.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobusybox: Add missing INITSCRIPT_NAME_${PN}-hwclock
Richard Purdie [Tue, 2 Oct 2012 16:24:08 +0000 (17:24 +0100)]
busybox: Add missing INITSCRIPT_NAME_${PN}-hwclock

Fix failures like:

Configuring busybox-hwclock.
usage: update-rc.d [-n] [-f] [-r <root>] <basename> remove
       update-rc.d [-n] [-r <root>] [-s] <basename> defaults [NN | sNN kNN]
       update-rc.d [-n] [-r <root>] [-s] <basename> start|stop NN runlvl [runlvl] [...] .
                -n: not really
                -f: force
                -v: verbose
                -r: alternate root path (default is /)
                -s: invoke start methods if appropriate to current runlevel
Collected errors:
 * pkg_run_script: package "busybox-hwclock" postinst script returned status 1.
 * opkg_configure: busybox-hwclock.postinst returned 1.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoqt4: add 4.8.3 version with negative D_P
Martin Jansa [Wed, 26 Sep 2012 19:18:02 +0000 (21:18 +0200)]
qt4: add 4.8.3 version with negative D_P

* rebased patches, 3 patches are resolved upstream:
  0019-javascriptcore-Fix-compile-error-when-using-toolchai.patch
    resolved in upstream commit 7ac8d8597db1f58b11338f91fb27f6ad8696b34b
  0022-webkit-fix-conflicting-types.patch
    resolved in upstream commit929b4443d53fcf3a7ad1cb9f3af5569e41ef56f1

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
12 years agoqt4: PR bumps
Martin Jansa [Wed, 26 Sep 2012 19:42:37 +0000 (21:42 +0200)]
qt4: PR bumps

* sofar only formal changes, but to test that everything still builds the same

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
12 years agoqt4: replace all local patches with git patches with headers
Martin Jansa [Wed, 26 Sep 2012 19:00:04 +0000 (21:00 +0200)]
qt4: replace all local patches with git patches with headers

* in preparation for upgrade to 4.8.3

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
12 years agoqt4: drop patches not used in any recipe
Martin Jansa [Wed, 26 Sep 2012 19:03:25 +0000 (21:03 +0200)]
qt4: drop patches not used in any recipe

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
12 years agoqt4: move patches from files to qt4-4.8.1
Martin Jansa [Wed, 26 Sep 2012 18:13:11 +0000 (20:13 +0200)]
qt4: move patches from files to qt4-4.8.1

* faster lookup in FILESPATH as small bonus

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
12 years agoqt-mobility: move qt-mobility patches to separate dir
Martin Jansa [Wed, 26 Sep 2012 18:06:25 +0000 (20:06 +0200)]
qt-mobility: move qt-mobility patches to separate dir

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
12 years agoqt4.inc: move more options to separate variables
Martin Jansa [Wed, 26 Sep 2012 14:45:15 +0000 (16:45 +0200)]
qt4.inc: move more options to separate variables

* make it easier to override them in bbappend
* convert pulseaudio to more common -pulseaudio/-no-pulseaudio form

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
12 years agoqt4: rename qt-4.8.1 to qt4-4.8.1 to match other .inc and .bb
Martin Jansa [Wed, 26 Sep 2012 18:00:58 +0000 (20:00 +0200)]
qt4: rename qt-4.8.1 to qt4-4.8.1 to match other .inc and .bb

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
12 years agoqt4: use releases.qt-project.org instead of get.qt.nokia.com
Martin Jansa [Wed, 26 Sep 2012 17:56:06 +0000 (19:56 +0200)]
qt4: use releases.qt-project.org instead of get.qt.nokia.com

* releases.qt-project.org has 4.8.1 as well as 4.8.3

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
12 years agoqt4-tools-nativesdk.inc: rename to nativesdk-qt4-tools.inc
Martin Jansa [Wed, 26 Sep 2012 12:56:12 +0000 (14:56 +0200)]
qt4-tools-nativesdk.inc: rename to nativesdk-qt4-tools.inc

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
12 years agolibdrm: Remove Cairo dependency
Daniel Stone [Mon, 1 Oct 2012 11:56:09 +0000 (12:56 +0100)]
libdrm: Remove Cairo dependency

This causes a build loop, when DRM depends on Cairo depends on Mesa
depends on DRM.  We can safely remove it as it's only one libdrm example
program which uses Cairo, which we won't be needing.  At least it's not
worth the build loop.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobinutils.inc: add vardep on multiarch DISTRO_FEATURE
Matthew McClintock [Fri, 28 Sep 2012 01:33:13 +0000 (20:33 -0500)]
binutils.inc: add vardep on multiarch DISTRO_FEATURE

binutils will build differently if this feature is enabled, so
make the do_configure step depend on it

Signed-off-by: Matthew McClintock <msm@freescale.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolibx11.inc: fix build issues for older CentOS distros
Matthew McClintock [Fri, 28 Sep 2012 01:33:14 +0000 (20:33 -0500)]
libx11.inc: fix build issues for older CentOS distros

Fixes these sorts of issues present on older gcc (CentOS 5.x in this case)

| cc1: error: unrecognized command line option "-Werror=implicit"
| cc1: error: unrecognized command line option "-Werror=nonnull"
| cc1: error: unrecognized command line option "-Werror=init-self"
| cc1: error: unrecognized command line option "-Werror=main"
| cc1: error: unrecognized command line option "-Werror=missing-braces"
| cc1: error: unrecognized command line option "-Werror=sequence-point"
| cc1: error: unrecognized command line option "-Werror=return-type"
| cc1: error: unrecognized command line option "-Werror=trigraphs"
| cc1: error: unrecognized command line option "-Werror=array-bounds"
| cc1: error: unrecognized command line option "-Werror=write-strings"
| cc1: error: unrecognized command line option "-Werror=address"
| cc1: error: unrecognized command line option "-Werror=int-to-pointer-cast"
| cc1: error: unrecognized command line option "-Werror=pointer-to-int-cast"

Also fixes:

makekeys-makekeys.o: In function `main':
makekeys.c:(.text+0x85): undefined reference to `__isoc99_sscanf'
makekeys.c:(.text+0xa7): undefined reference to `__isoc99_sscanf'
collect2: ld returned 1 exit status
make: *** [makekeys] Error 1

Older libc do not have this defined, we can use the -D_GNU_SOURCE
to the compiler to prevent generating calls to this function and
make linking work

Signed-off-by: Matthew McClintock <msm@freescale.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoRevert "initrd: Spawn an emergency shell when something goes wrong"
Ross Burton [Tue, 2 Oct 2012 15:56:05 +0000 (16:56 +0100)]
Revert "initrd: Spawn an emergency shell when something goes wrong"

This had nowhere near enough testing...

This reverts commit ffb6928f5783e5202d9849c3a185e29be1d41c63.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agonativesdk.bbclass: Ensure we have chrpath >=0.14
Richard Purdie [Tue, 2 Oct 2012 13:16:35 +0000 (14:16 +0100)]
nativesdk.bbclass: Ensure we have chrpath >=0.14

Versions earlier than 0.14 can't cope with 32 bit binaries on a 64 bit
system and vice versa. This results in problems for certain SDKMACHINE
combinations on certain hosts. By ensuring we build
chrpath-replacement-native we avoid this problems and the binaries work
correctly.

[YOCTO #3161]
[YOCTO #3201]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agochrpath: We should provide chrpath-replacement-native and install into a native speci...
Richard Purdie [Tue, 2 Oct 2012 13:13:42 +0000 (14:13 +0100)]
chrpath: We should provide chrpath-replacement-native and install into a native specific directory

chrpath is assumed to be provided by the build host system. This means
we need to provide a replacement version and install into a specific directory
to avoid races.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agogzip: The native version should provide gzip-replacement-native
Richard Purdie [Tue, 2 Oct 2012 13:13:00 +0000 (14:13 +0100)]
gzip: The native version should provide gzip-replacement-native

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake.conf: Add chrpath-native to ASSUME_PROVIDED
Richard Purdie [Tue, 2 Oct 2012 13:12:21 +0000 (14:12 +0100)]
bitbake.conf: Add chrpath-native to ASSUME_PROVIDED

We assume chrpath is provided natively so it should be listed in ASSUME_PROVIDED.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoscripts/oe-buildenv-internal: Ensure we detect the SDK/ADT and error out
Richard Purdie [Tue, 2 Oct 2012 13:08:13 +0000 (14:08 +0100)]
scripts/oe-buildenv-internal: Ensure we detect the SDK/ADT and error out

The SDK/ADT may ship with a python installed which may not have all the modules
need for a bitbake build. We should therefore detect if its already present in the
environment and error out in this case, asking the user to use a clean environment.

This also removes the potential for any other conflict between the two.

[YOCTO #2979]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoopkg: Convert select-higher-version option to prefer-arch-to-version
Richard Purdie [Tue, 2 Oct 2012 13:07:36 +0000 (14:07 +0100)]
opkg: Convert select-higher-version option to prefer-arch-to-version

This converts the option to maintain the existing behaviour unless the option is
specified. We do specify the option during the builds themselves to ensure what
the users expects is built.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolibart-lgpl: add art_config.h for mipsel
Phil Blundell [Tue, 2 Oct 2012 15:02:36 +0000 (16:02 +0100)]
libart-lgpl: add art_config.h for mipsel

Fixes:
WARNING: Unable to get checksum for libart-lgpl SRC_URI entry art_config.h: file could not be found

which otherwise happens during parsing, even if libart-lgpl isn't being built.

Signed-off-by: Phil Blundell <philb@gnu.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoopkg: Drop nogpg version since the main version now has nogpg too
Richard Purdie [Tue, 2 Oct 2012 11:01:53 +0000 (12:01 +0100)]
opkg: Drop nogpg version since the main version now has nogpg too

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoopkg-native: remove spurious dependency on curl-native
Phil Blundell [Mon, 1 Oct 2012 15:52:07 +0000 (16:52 +0100)]
opkg-native: remove spurious dependency on curl-native

All variants of opkg are currently configured --disable-curl so there
seems no point in depending on it.

Signed-off-by: Phil Blundell <philb@gnu.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolibpcap: add dependency on libnl
Ross Burton [Mon, 1 Oct 2012 16:20:59 +0000 (17:20 +0100)]
libpcap: add dependency on libnl

libpcap uses libnl on Linux to support sniffing mac80211 devices, which could be
useful.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agogalago: remove
Ross Burton [Tue, 2 Oct 2012 09:43:45 +0000 (10:43 +0100)]
galago: remove

Galago has been replaced with Telepathy and Folks, and has been unmaintained for
years.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agosanity.bbclass: Fix invalid test for network error
Bogdan Marinescu [Tue, 2 Oct 2012 09:52:00 +0000 (12:52 +0300)]
sanity.bbclass: Fix invalid test for network error

The test for network error in sanity.bbclass was negated.

Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoclasses: Update to use corrected bb.utils.explode_dep_versions2 API
Richard Purdie [Tue, 2 Oct 2012 10:37:07 +0000 (11:37 +0100)]
classes: Update to use corrected bb.utils.explode_dep_versions2 API

The bb.utils.explode_dep_versions function has issues where dependency information
can be lost. The API doesn't support maintaining the correct information so this
changes to use a new function which correctly handles the data.

This patch also fixes various points in the code to ensure that we do not have any
duplicates in things that use explode_dep_versions.

A new sanity test to test the contents of the R* variables is also added.

[Some changes from Mark Hatle <mark.hatle@windriver.com>]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoinsane.bbclass: Remove copy and paste confusion when using OVERRIDES
Richard Purdie [Mon, 1 Oct 2012 13:13:37 +0000 (14:13 +0100)]
insane.bbclass: Remove copy and paste confusion when using OVERRIDES

People keep copying this code and its confusing and unnecessary. Remove the
bad examples to try and stop this happening.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agosanity.conf: Require bitbake 1.16.0 (stable series) prior to release (and for explode...
Richard Purdie [Tue, 2 Oct 2012 10:32:01 +0000 (11:32 +0100)]
sanity.conf: Require bitbake 1.16.0 (stable series) prior to release (and for explode_dep_versions changes)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agogdk-pixbuf: Ensure gdk-pixbuf-native dependencies are correct with linuxstdbase
Richard Purdie [Mon, 1 Oct 2012 22:00:45 +0000 (22:00 +0000)]
gdk-pixbuf: Ensure gdk-pixbuf-native dependencies are correct with linuxstdbase

Without this change, anything using linuxstdbase would incorrectly
try and pull in X dependencies.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoopkg: Don't call sync() when installing into an offline root
Phil Blundell [Sat, 29 Sep 2012 12:20:05 +0000 (13:20 +0100)]
opkg: Don't call sync() when installing into an offline root

Even when installing onto a live target system, calling sync() during
package installation is of somewhat questionable benefit.  But calling
it on the build host during rootfs construction is certainly useless and
can cause I/O to stall for several seconds on even a moderately sized
host which is clearly not desirable.

(From a patch originally by Mike Crowe.)

Signed-off-by: Phil Blundell <philb@gnu.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoopkg: fix version constraints in conflicts, depends, replaces
Martin Jansa [Mon, 1 Oct 2012 11:41:42 +0000 (13:41 +0200)]
opkg: fix version constraints in conflicts, depends, replaces

* http://code.google.com/p/opkg/issues/detail?id=94

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agopackage_deb/ipk: Remap < and > to << and >>
Mark Hatle [Sun, 30 Sep 2012 00:19:11 +0000 (19:19 -0500)]
package_deb/ipk: Remap < and > to << and >>

In deb and ipk, < means <=, while > means >=... there is a different
operator << and >> that means < and >, so we map them when constructing
the packages.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agomultilib: Move redefinition of STAGING_DIR_KERNEL
Mark Hatle [Sun, 30 Sep 2012 00:19:14 +0000 (19:19 -0500)]
multilib: Move redefinition of STAGING_DIR_KERNEL

If the STAGING_DIR_KERNEL is set in the multilib.conf, then it may be
set incorrected.  The evaluation happens before TMPDIR and LIBC are
defined in other components.

Moving the definition process to the multilib.bbclass ensures that
everything has been loaded before it is set.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoCleanup: fix PN == BPN cases
Mark Hatle [Sun, 30 Sep 2012 00:19:13 +0000 (19:19 -0500)]
Cleanup: fix PN == BPN cases

When building target packages, it used to be enought to check for PN == BPN, however
with the multilib configurations, this can lead to subtle errors.  Change instances
of PN == BPN, to ${CLASSOVERRIDE} == 'class-target'.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agorpm: Implement workaround for DB_BUFFER_SMALL error
Mark Hatle [Sun, 30 Sep 2012 00:19:18 +0000 (19:19 -0500)]
rpm: Implement workaround for DB_BUFFER_SMALL error

In certain cases with BerkleyDB 5.3.x we are getting the error:

db3.c:1443: dbcursor->pget(-30999): BDB0063 DB_BUFFER_SMALL: User memory too small fo

See https://bugs.launchpad.net/rpm/+bug/934420 for more information.

It appears to be some type of a bug in the BerkleyDB 5.3.x.  In an attempt
to workaround the problem, when we encounter this situation we attempt
to adjust the size of the mmap buffer until the call works, or we
end up trying 10 times.  The new size is either the updated vp->size
from the failed pget call, or the previous size + 1024.

If DBI debugging is enabled, additional diagnostics are printed, otherwise
a basic retry and success message is added to show that the failure was
resolved.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agorpm: Add rpm patch to fix git_strerror issues
Mark Hatle [Sun, 30 Sep 2012 00:19:17 +0000 (19:19 -0500)]
rpm: Add rpm patch to fix git_strerror issues

Remove the optimzation append from recipe and add the patch that is in the rpm
cvs repo, http://www.mail-archive.com/rpm-cvs@rpm5.org/msg08907.html. The -O2
optimzation append is removed since it can limit debugging options that are
provided when -O0 is used.

This was tested by setting: SELECTED_OPTIMIZATION = "-O0"

Signed-off-by: Morgan Little <morgan.little@windriver.com>
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agorpm: Fix file contention issue
Mark Hatle [Sun, 30 Sep 2012 00:19:16 +0000 (19:19 -0500)]
rpm: Fix file contention issue

There is an issue that is caused when doing the install step of rpm on systems
with high parallelization where two jobs of make will fight for the same file
while installing the sub-directory lua. This is caused by the same makefile rule
being called twice in a way that both could be trying to install at the same
time.

This fix renames the linking rule so it will always be run after the needed
files are added and removed it's dependency so the required rule would only
run once.

This was tested heavily using ppss to run mutliple installs in parallel. This
wouldn't happen in practise but it was tested will all the individual rules as
well.

Signed-off-by: Morgan Little <morgan.little@windriver.com>
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agorpm-native: Fix 'uuid_rc_t' undeclared error when compiling
Mark Hatle [Sun, 30 Sep 2012 00:19:15 +0000 (19:19 -0500)]
rpm-native: Fix 'uuid_rc_t' undeclared error when compiling

When attempting to build with uuid and all tests compiling will error because
uuid.h doesn't exist in the rpm tarball. Fix this by changing the include to
use the one in ossp which solves the issue.

The recipe already depends on ossp so ossp/uuid.h will be there when rpm-native
is built.

Signed-off-by: Morgan Little <morgan.little@windriver.com>
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolibxcb: Update DEPENDS to avoid duplicate entries
Mark Hatle [Sun, 30 Sep 2012 00:19:12 +0000 (19:19 -0500)]
libxcb: Update DEPENDS to avoid duplicate entries

Some items were listed multiple times in DEPENDS, avoid this situation.

Note, PR was not incremented as no change to the build process occurs.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agogst-ffmpeg: add LICENSE_FLAGS
Paul Eggleton [Thu, 13 Sep 2012 11:03:01 +0000 (12:03 +0100)]
gst-ffmpeg: add LICENSE_FLAGS

This likely requires some form of license to use in a commercial
product.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoxserver-xorg: Remove RCONFLICTS against xserver-xorg
Otavio Salvador [Fri, 28 Sep 2012 13:31:21 +0000 (10:31 -0300)]
xserver-xorg: Remove RCONFLICTS against xserver-xorg

When merging the xserver-xorg fix the to use RDEPENDS in
xserver-xorg-module-exa the RCONFLICTS has not been removed by
mistake. This drops the RCONFLICTS to properly fix it.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoperl: Fix substitution madness
Richard Purdie [Fri, 28 Sep 2012 13:15:30 +0000 (14:15 +0100)]
perl: Fix substitution madness

We're going around in circles trying to fix the sed expressions and making one case
work and others not work. This patch fixes the base configuration file so we have
non-overlapping substitutions. I've tried to significantly clean up various problems
that were occurring once and for all.

This will hopefully resolve all the issues people have been seeing with incorrect perl
paths.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoflac_1.2.1.bb: use TUNE_FEATURES to enable/disable altivec
Matthew McClintock [Mon, 10 Sep 2012 21:25:42 +0000 (16:25 -0500)]
flac_1.2.1.bb: use TUNE_FEATURES to enable/disable altivec

Signed-off-by: Matthew McClintock <msm@freescale.com>
12 years agotune-ppce6500.inc: add e6500 tune files
Matthew McClintock [Mon, 10 Sep 2012 21:20:05 +0000 (16:20 -0500)]
tune-ppce6500.inc: add e6500 tune files

Also supports a new altivec TUNE_FEATURE

Signed-off-by: Matthew McClintock <msm@freescale.com>
12 years agoarch-powerpc.inc: add altivec as a valid tune feature
Matthew McClintock [Mon, 10 Sep 2012 21:48:32 +0000 (16:48 -0500)]
arch-powerpc.inc: add altivec as a valid tune feature

Signed-off-by: Matthew McClintock <msm@freescale.com>
12 years agoeglibc_2.16.bb: refresh fsl-ppc-no-fsqrt.patch for Freescale targets
Matthew McClintock [Wed, 26 Sep 2012 18:31:20 +0000 (13:31 -0500)]
eglibc_2.16.bb: refresh fsl-ppc-no-fsqrt.patch for Freescale targets

Signed-off-by: Matthew McClintock <msm@freescale.com>
12 years agoeglibc_2.16.bb: refresh ppc_slow_ieee754_sqrt.patch for Freescale targets
Matthew McClintock [Tue, 11 Sep 2012 20:43:00 +0000 (15:43 -0500)]
eglibc_2.16.bb: refresh ppc_slow_ieee754_sqrt.patch for Freescale targets

Make same changes for e6500 fpu as done with others

Signed-off-by: Matthew McClintock <msm@freescale.com>
12 years agoeglibc_2.16.bb: refresh ppc-sqrt_finite.patch for Freescale targets
Matthew McClintock [Wed, 26 Sep 2012 18:56:24 +0000 (13:56 -0500)]
eglibc_2.16.bb: refresh ppc-sqrt_finite.patch for Freescale targets

Signed-off-by: Matthew McClintock <msm@freescale.com>
12 years agoeglibc_2.16.bb: replace patch with updated version that supports e6500
Matthew McClintock [Tue, 11 Sep 2012 20:20:07 +0000 (15:20 -0500)]
eglibc_2.16.bb: replace patch with updated version that supports e6500

Signed-off-by: Matthew McClintock <msm@freescale.com>
12 years agoboost: Support enums in hash
Khem Raj [Fri, 28 Sep 2012 03:40:42 +0000 (20:40 -0700)]
boost: Support enums in hash

Fixes builds which were building fine with previous versions of boost

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoflex,bison: Add nativesdk variants
Khem Raj [Fri, 28 Sep 2012 03:40:43 +0000 (20:40 -0700)]
flex,bison: Add nativesdk variants

It is needed in some SDKs that we ship own
version of lex/yacc for sdk host

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoltp: add dependency libcap
Kang Kai [Fri, 28 Sep 2012 06:59:29 +0000 (14:59 +0800)]
ltp: add dependency libcap

Similar to libaio, libcap is another dependency of ltp.

If libcap has been done populate_sysroot but rpm/ipk package is not
created, ltp will be compiled with libcap. So when install ltp to a
image, it complains that package libcap is not found.

[Yocto #2973]

Signed-off-by: Kang Kai <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agosstate: Relax the duplicate file whitelist for now
Richard Purdie [Thu, 27 Sep 2012 22:06:06 +0000 (23:06 +0100)]
sstate: Relax the duplicate file whitelist for now

do_package is a machine specific task at the moment due to packagedata. This means
do_package tasks and their dependencies rerun between different machines
with various duplicate file installations. There are plans to fix this but they're
too invasive before release.

This patch relaxes the whitelist for sstate duplicate file detection to account
for this. Post-release, we re-enable stricter settings once do_package is not
machine specific.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
12 years agotcl: Fix dangerous do_install staging references
Richard Purdie [Thu, 27 Sep 2012 22:05:27 +0000 (23:05 +0100)]
tcl: Fix dangerous do_install staging references

Nothing should ever be poking files directly into the staging/sysroot
directories, it should always go through ${D}.

This patch ensures this recipe does this and hence fixes various
potential build issues such as lack of sstate tracking of files.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
12 years agoxserver-xorg: Use rdepends to ensure xserver-xorg-module-exa match version
Otavio Salvador [Thu, 27 Sep 2012 18:47:49 +0000 (15:47 -0300)]
xserver-xorg: Use rdepends to ensure xserver-xorg-module-exa match version

This fix the installation of xserver-xorg-module-exa package at rootfs
using opkg. It were failing as conflicts where not working properly.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
12 years agolicense.conf/bbclass: Move globals to license.conf
Elizabeth Flanagan [Wed, 26 Sep 2012 21:50:09 +0000 (14:50 -0700)]
license.conf/bbclass: Move globals to license.conf

This requires the changes to bitbake.conf that allow parsing of
license.conf.

As we should now be parsing license.conf, we can move some globals
out of license.bblcass and into the conf file.

Signed-off-by: Elizabeth Flanagan <elizabeth.flanagan@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
12 years agobitbake.conf: parse license config
Elizabeth Flanagan [Wed, 26 Sep 2012 21:50:08 +0000 (14:50 -0700)]
bitbake.conf: parse license config

license.conf hasn't been being parsed. It probably should be.

Signed-off-by: Elizabeth Flanagan <elizabeth.flanagan@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
12 years agolicense.bbclass: Variable standardization
Elizabeth Flanagan [Wed, 26 Sep 2012 21:50:07 +0000 (14:50 -0700)]
license.bbclass: Variable standardization

The variable mentioned in license.conf is LICENSE_PATH. The variable
used in license.bbclass is LICENSE_DIR. Conforming to what is in
license.conf

Signed-off-by: Elizabeth Flanagan <elizabeth.flanagan@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
12 years agosanity: Added explicit network error status in SanityCheckFailed event
Bogdan Marinescu [Wed, 26 Sep 2012 14:00:10 +0000 (17:00 +0300)]
sanity: Added explicit network error status in SanityCheckFailed event

If we fail a network test, a special flag is set in the SanityChekFailed
event. This helps Hob identify the network error properly and display
a special message to the user.

[YOCTO #3025]

Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
12 years agoinitramfs: Make mkdir not fail
Damien Lespiau [Thu, 27 Sep 2012 14:20:51 +0000 (15:20 +0100)]
initramfs: Make mkdir not fail

This patch make "mkdir foo" not fail if foo already exists.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
12 years agoinitrd: Spawn an emergency shell when something goes wrong
Damien Lespiau [Thu, 27 Sep 2012 14:20:50 +0000 (15:20 +0100)]
initrd: Spawn an emergency shell when something goes wrong

set -e allows to exit if a command fails. We install a trap and execute
emergency_shell() when either the init script exits or when ctrl-c is
typed (say if we are stuck somewhere and we want to debug it).

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
12 years agosanity.bbclass: bblayers.conf should be updated automatically
Constantin Musca [Thu, 27 Sep 2012 12:39:55 +0000 (15:39 +0300)]
sanity.bbclass: bblayers.conf should be updated automatically

- add check_bblayers_conf bitbake function which does the bblayers.conf
v4 -> v5 update if necessary (every layer should make its specific
bblayers.conf upgrades appending to the check_bblayers_conf function)
- we ask the user to re-run bitbake because we can't trigger reparsing
without being invasive

[YOCTO #3082]

Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
12 years agorunqemu-internal: don't append an empty element to PATH
Scott Garman [Wed, 26 Sep 2012 18:02:27 +0000 (11:02 -0700)]
runqemu-internal: don't append an empty element to PATH

Bitbake fails to run when an empty element exists in $PATH. Avoid
creating this situation when $CROSSPATH is not set.

This fixes bug [YOCTO #3101]

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
12 years agooe-find-native-sysroot: show bitbake errors to user
Scott Garman [Wed, 26 Sep 2012 18:02:26 +0000 (11:02 -0700)]
oe-find-native-sysroot: show bitbake errors to user

Ran into another bug that was masked by hiding a bitbake error message.
This catches this situation and displays the error to the user.

Also includes whitespace fixes.

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
12 years agogst-plugins-good: make pulseaudio support dependent on DISTRO_FEATURES
Paul Eggleton [Wed, 26 Sep 2012 14:01:40 +0000 (15:01 +0100)]
gst-plugins-good: make pulseaudio support dependent on DISTRO_FEATURES

This should be no change to the previous situation unless you
explicitly have pulseaudio in DISTRO_FEATURES_BACKFILL_CONSIDERED
(currently).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
12 years agoxserver-xorg: merge version-specific .inc into .bb
Ross Burton [Mon, 24 Sep 2012 12:30:02 +0000 (13:30 +0100)]
xserver-xorg: merge version-specific .inc into .bb

The version-specific .inc was shared with the xserver-xorg-lite package, but
that doesn't exist anymore.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
12 years agoeglibc: Fix for dynamic linker broken offset
Andrei Dinu [Mon, 24 Sep 2012 15:12:28 +0000 (18:12 +0300)]
eglibc: Fix for dynamic linker broken offset

Solution provided by Donn Seeley in bug 1443:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=1443

worked when testing with core-image-sato-sdk for qemuarm.

[YOCTO #2577]

Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
12 years agocogl: Add a missing depends on libxdamage
Otavio Salvador [Mon, 24 Sep 2012 18:23:19 +0000 (15:23 -0300)]
cogl: Add a missing depends on libxdamage

During a from scratch build test, cogl build failed due a missing
dependency on libxdamage.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
12 years agoRevert "autotools.bbclass: using relative paths for acpaths"
Richard Purdie [Thu, 27 Sep 2012 16:56:56 +0000 (17:56 +0100)]
Revert "autotools.bbclass: using relative paths for acpaths"

This reverts commit aa66ef6598c84231577d139ec7be413e73fac2b1 since
bdwgc-native fails to build after it. Anything which runs with a
sub-configure will fail after this change. It therefore needs
rethinking.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agosstate-cache-management: hide error message when one of possible layer location doesn...
Martin Jansa [Thu, 27 Sep 2012 07:36:13 +0000 (09:36 +0200)]
sstate-cache-management: hide error message when one of possible layer location doesn't exist

* fixes [YOCTO #3116]

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agognome-keyring: include unpackaged files with PAM enabled
Constantin Musca [Thu, 27 Sep 2012 08:17:37 +0000 (11:17 +0300)]
gnome-keyring: include unpackaged files with PAM enabled

Include missing files/dirs:
    ${base_libdir}/security/*.la
    ${base_libdir}/security/*${SOLIBSDEV}
    ${base_libdir}/security/.debug/

[YOCTO #2805]

Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoautotools.bbclass: using relative paths for acpaths
Wenzong Fan [Thu, 27 Sep 2012 08:23:37 +0000 (16:23 +0800)]
autotools.bbclass: using relative paths for acpaths

Fix autotools.bbclass to use relative paths for acpaths instead of
absolute ones. Since absolute paths may cause potential autoreconf
error like:

    Can't exec "/bin/sh": Argument list too long ...

This error occurs while building coreutils with long TMPDIR, because
it has bunch of m4 files need to be expanded.

[YOCTO #2766]

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoperl: Fix nativesdk install path
Christian Glindkamp [Thu, 27 Sep 2012 12:20:57 +0000 (14:20 +0200)]
perl: Fix nativesdk install path

Commit 38234f2e276356b1d77a87ceabc486107e336d19 tried to fix the sed
expressions by anchoring the left side of the search regexp to prevent
$prefix$prefix type expression in the perl config. For nativesdk this is
not enough. Adding anchors on both side fixes this.

Signed-off-by: Christian Glindkamp <christian.glindkamp@taskit.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agodbus: disable all X11 when native
Ross Burton [Wed, 26 Sep 2012 20:25:19 +0000 (21:25 +0100)]
dbus: disable all X11 when native

Without --without-x the X11 detection would still go ahead and find the host X11
headers, which seems to cause problems at link time.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoeglibc: Remove bogus PACKAGES_DYNAMIC setting
Phil Blundell [Thu, 27 Sep 2012 11:44:31 +0000 (12:44 +0100)]
eglibc: Remove bogus PACKAGES_DYNAMIC setting

It transpires that eglibc has been setting PACKAGES_DYNAMIC = "libc6*" for
some time.  However, this is bogus for at least two reasons:

1. Bitbake interprets PACKAGES_DYNAMIC as a regex, not a glob, so this will
match against any package whose name starts "libc" plus zero or more sixes.
This is particularly toxic because the nativesdk variant picks up the same
value and will, consequently, start trying to build itself at the slightest
excuse.

2. eglibc doesn't actually build any packages named "libc6<anything>", other
than the ones that are named in PACKAGES anyway, so the dynamic provider
declaration is in any case useless.

Simply deleting the line is not sufficient since then we get the default
value from bitbake.conf which causes eglibc.bb to fight with eglibc-locale.bb.
So instead we must set it to the empty string for good results.

Signed-off-by: Phil Blundell <pb@pbcl.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoxserver-xorg: use EXTENDPKGV instead of PV in RCONFLICTS_${PN}-module-exa
Martin Jansa [Sat, 22 Sep 2012 17:13:14 +0000 (19:13 +0200)]
xserver-xorg: use EXTENDPKGV instead of PV in RCONFLICTS_${PN}-module-exa

* it doesn't make much sense with PV, because xserver-xorg-module-exa
  was introduced in
  http://git.openembedded.org/openembedded-core/commit/meta/recipes-graphics/xorg-xserver?id=1a666ee1cda3c0b74daba5881fc5f62e13deec66
  so our xserver-xorg-module-exa RCONFLICTS with xserver-xorg (<= 1.11.2-r4)
  and (< 1.11.2) is not good enough

* because we don't know how many PRINC are in BSP/DISTRO layers,
  then it's safer to RCONFLICTS with every older version then current
  EXTENDPKGV

Also fixes whitespace to work correctly with opkg

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
--

* I haven't really tested this with IPK, since it was changed from
  RREPLACES to RCONFLICTS (because of RPM) and all my installed devices
  are already upgraded
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agocml1.bbclass: Convert tab indentation in python functions into four-space
Jason Wessel [Thu, 27 Sep 2012 13:52:46 +0000 (08:52 -0500)]
cml1.bbclass: Convert tab indentation in python functions into four-space

Based on the previous commit 604d46c686d06d62d5a07b9c7f4fa170f99307d8
(Convert tab indentation in python functions into four-space), the
cml.bbclass was not converted, and in order to properly extend it
with external bbappend's it needs to be converted.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobusybox: Fix misplaced quote
Richard Purdie [Wed, 26 Sep 2012 17:28:17 +0000 (18:28 +0100)]
busybox: Fix misplaced quote

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoutil-linux: Remove static libraries from -dev packages
Phil Blundell [Tue, 25 Sep 2012 12:54:49 +0000 (13:54 +0100)]
util-linux: Remove static libraries from -dev packages

Fixes the QA warnings:

WARNING: QA Issue: non -staticdev package contains static .a library: util-linux-libblkid-dev path '/work/mips32el-oe-linux/util-linux/2.21.2-r3micro3/packages-split/util-linux-libblkid-dev/lib/libblkid.a'
WARNING: QA Issue: non -staticdev package contains static .a library: util-linux-libuuid-dev path '/work/mips32el-oe-linux/util-linux/2.21.2-r3micro3/packages-split/util-linux-libuuid-dev/lib/libuuid.a'

Signed-off-by: Phil Blundell <pb@pbcl.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoutil-linux: Don't package chkdupexe
Phil Blundell [Tue, 25 Sep 2012 13:04:02 +0000 (14:04 +0100)]
util-linux: Don't package chkdupexe

The chkdupexe utility is fairly worthless and drags perl in as a build dependency
of the whole util-linux recipe.  If anybody actually wants to use this script
then we should package it separately, but for the time being let's just delete it.

Signed-off-by: Phil Blundell <pb@pbcl.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agopackage_rpm.bbclass: change the arch's "-" to "_" for platform
Robert Yang [Tue, 25 Sep 2012 13:38:36 +0000 (21:38 +0800)]
package_rpm.bbclass: change the arch's "-" to "_" for platform

The platform and platform_extra will be written to /etc/rpm/platform,
the rpm's arch has changed the "-" to "_", so the value in platform
should also be updated.

[YOCTO #3159]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agopackage_rpm.bbclass: no initial_solution in the second build
Robert Yang [Tue, 25 Sep 2012 13:38:37 +0000 (21:38 +0800)]
package_rpm.bbclass: no initial_solution in the second build

There is no initial_solution.manifest in the second build when
incremental rpm image generation, since the initial solution has been
skipped. So we should check it before cat it.

[YOCTO #3128]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolayer.conf: allow other layers to depend on this version
Paul Eggleton [Tue, 25 Sep 2012 14:58:32 +0000 (15:58 +0100)]
layer.conf: allow other layers to depend on this version

Set LAYERVERSION and rename the collection to "core". Given changes such
as the tabs to spaces cleanup for python functions in the current
version, this allows other layers to depend on this version of OE-Core
specifically should they choose to do so, by specifying the following
in their own layer.conf:

LAYERDEPENDS_layername = "core:1"

Where layername is whatever value is being added to BBFILE_COLLECTIONS.

(This change does nothing unless a layer has LAYERDEPENDS set.)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoiproute2: Use configured values for ${base_sbindir} and ${libdir}
Phil Blundell [Tue, 25 Sep 2012 16:38:06 +0000 (17:38 +0100)]
iproute2: Use configured values for ${base_sbindir} and ${libdir}

These were previously being hard-coded to "/sbin" and "/usr/lib" respectively,
resulting in unpackaged files if the configured values were something else.

Signed-off-by: Phil Blundell <pb@pbcl.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoSDK: trap any IO errors in the relocate script
Laurentiu Palcu [Tue, 25 Sep 2012 16:35:46 +0000 (19:35 +0300)]
SDK: trap any IO errors in the relocate script

If the files being relocated are already used by other processes the
relocate script will fail with a traceback. This patch will trap any IO
errors when opening such a file and gracefully report them to the user.

Also change the exit code from 1 to -1 for a better adt-installer user
experience (like pointing the user to the adt_installer.log).

[YOCTO #3164]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoossp-uuid: LICENSE type corrections.
Elizabeth Flanagan [Tue, 25 Sep 2012 22:32:07 +0000 (15:32 -0700)]
ossp-uuid: LICENSE type corrections.

The LICENSE for ossp-uuid is MIT. As well, the LIC_FILES_CHKSUM
was missing the license text within uuid_md5.c

Signed-off-by: Elizabeth Flanagan <elizabeth.flanagan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoat: atd remove useless --make-pidfile option.
Xin Ouyang [Wed, 26 Sep 2012 07:09:13 +0000 (15:09 +0800)]
at: atd remove useless --make-pidfile option.

For start-stop-daemon, --make-pidfile is used when starting a
program that does not create its own pid file.
atd would create its own /var/run/atd.pid, so remove this option.

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agosysvinit-inittab: fix hang issue of series consoles check
Zhenhua Luo [Wed, 26 Sep 2012 07:18:37 +0000 (15:18 +0800)]
sysvinit-inittab: fix hang issue of series consoles check

The kernel boot process hangs when /proc/consoles doesn't exists, therefore
check the existence of /proc/consoles before executing pkg_postinst script.

Following is the log when /proc/consoles doesn't exist:
        Running postinst /etc/rpm-postinsts/102...
        cat: /proc/consoles: No such file or directory
        cat: /proc/consoles: No such file or directory
        cat: /proc/consoles: No such file or directory
        INIT: Entering runlevel: 5
        Starting OpenBSD Secure Shell server: sshd
          generating ssh RSA key...
          generating ssh ECDSA key...
          generating ssh DSA key...
        done.
        Starting network benchmark server: netserver.
        Starting system log daemon...0
        Starting kernel log daemon...0
        Stopping Bootlog daemon: bootlogd.
        INIT: no more processes left in this runlevel

Signed-off-by: Zhenhua Luo <b19537@freescale.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>