]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
12 years agolibpam: disable NIS to not link with libtirpc when it is available
Marcin Juszkiewicz [Fri, 3 Aug 2012 08:21:30 +0000 (10:21 +0200)]
libpam: disable NIS to not link with libtirpc when it is available

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

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

I checked details:

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

Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agogthumb: fix parallel build problems
Ross Burton [Tue, 31 Jul 2012 17:17:06 +0000 (18:17 +0100)]
gthumb: fix parallel build problems

It's possible with a parallel build for make to spin waiting for a file change
when it isn't going to.  Fix the build rules so this doesn't happen.

[YOCTO #2319]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobabeltrace: Update to upstream stable versrion 0.12
Radu Moisan [Tue, 31 Jul 2012 13:30:00 +0000 (16:30 +0300)]
babeltrace: Update to upstream stable versrion 0.12

Latest version is 1.0.0 but in rc4 for now.

Signed-off-by: Radu Moisan <radu.moisan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoatk: package update 2.2 -> 2.4
Radu Moisan [Tue, 31 Jul 2012 12:52:47 +0000 (15:52 +0300)]
atk: package update 2.2 -> 2.4

Signed-off-by: Radu Moisan <radu.moisan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoclasses/package: don't make locale pkgs depend on PN pkg if not in PACKAGES
Paul Eggleton [Tue, 31 Jul 2012 11:33:01 +0000 (12:33 +0100)]
classes/package: don't make locale pkgs depend on PN pkg if not in PACKAGES

If ${PN} is not in PACKAGES then don't add it as an RDEPENDS for each
locale package. This fixes the installation of gcc-runtime locale
packages, for example.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoclasses/buildhistory: save metadata revisions
Paul Eggleton [Thu, 2 Aug 2012 09:23:09 +0000 (10:23 +0100)]
classes/buildhistory: save metadata revisions

Always write the metadata revisions for each layer into a machine-
readable "metadata-revs" file so that you can potentially link changes
in the output back to changes in the metadata. (Unlike the existing
similar build-id file, this is not specific to image changes.)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobuildhistory_analysis: ignore removal of self-dependencies
Paul Eggleton [Thu, 2 Aug 2012 09:23:08 +0000 (10:23 +0100)]
buildhistory_analysis: ignore removal of self-dependencies

The recent removal of self-dependencies for dbg/dev packages produced
a fair amount of noise, so filter it out since we know this is a
reasonable change.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobuildhistory_analysis: tidy up duplicate split_version function
Paul Eggleton [Thu, 2 Aug 2012 09:23:07 +0000 (10:23 +0100)]
buildhistory_analysis: tidy up duplicate split_version function

This function is now provided by bb.utils and since we have now bumped
the minimum bitbake version, we can switch to that one instead.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoclasses/buildhistory: record PKG/PKGE/PKGV/PKGR
Paul Eggleton [Thu, 2 Aug 2012 09:23:05 +0000 (10:23 +0100)]
classes/buildhistory: record PKG/PKGE/PKGV/PKGR

Save PKG (the actual output package name, which is often different due
to debian renaming), and PKGE/PKGV/PKGR (which may be manipulated in
certain special cases e.g. gitpkgv.bbclass in meta-oe, the
external-sourcery-toolchain recipe, etc.) Note that these are only
written when they are different from the normal package name in the
case of PKG, or PE/PV/PR for the other variables.

Also, use PKGE/PKGV/PKGR instead of PE/PV/PR when comparing package
versions since these actually represent the version that the package
manager sees.

Implements [YOCTO #2787].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoclasses/buildhistory: save preinst/postinst/prerm/postrm
Paul Eggleton [Thu, 2 Aug 2012 09:23:04 +0000 (10:23 +0100)]
classes/buildhistory: save preinst/postinst/prerm/postrm

Write the value of these package script variables into the packageinfo
so that any changes to them can be tracked (in separate files since they
are multi-line).

Inspired by an earlier patch from Andreas Müller <schnitzeltony@googlemail.com>

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoclasses/buildhistory: remove unused functions
Paul Eggleton [Thu, 2 Aug 2012 09:23:03 +0000 (10:23 +0100)]
classes/buildhistory: remove unused functions

getlastrecipeversion and readRecipeInfo weren't called anywhere.
Remove them so we don't have to keep them up-to-date with future
additions to the recipe info file.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoclasses/buildhistory: ensure old package info is removed
Paul Eggleton [Thu, 2 Aug 2012 09:23:02 +0000 (10:23 +0100)]
classes/buildhistory: ensure old package info is removed

If a package is removed from PACKAGES, ensure that the package info file
and directory are removed from buildhistory so that we don't have stale
data lying around.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoclasses/buildhistory: remove obsolete flat package history feature
Paul Eggleton [Thu, 2 Aug 2012 09:23:01 +0000 (10:23 +0100)]
classes/buildhistory: remove obsolete flat package history feature

Remove the ability to set BUILDHISTORY_KEEP_VERSIONS = "1" to save the
package history as flat versioned files rather than relying on git to
keep previous versions of the package information. git has proven to
work quite well in this capacity.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agocurl: disable ldap/ldaps explicitly
Martin Jansa [Mon, 6 Aug 2012 11:57:04 +0000 (13:57 +0200)]
curl: disable ldap/ldaps explicitly

* openldap from meta-oe is autodetected and then libldap-2.4-2 runtime dependency added to curl and almost all meta-efl recipes

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agomesa: Use 'require' instead of 'include'
Damien Lespiau [Thu, 2 Aug 2012 16:49:01 +0000 (17:49 +0100)]
mesa: Use 'require' instead of 'include'

These include files are really required, not optional.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agomesa: Update to 8.0.4 (latest stable version)
Damien Lespiau [Thu, 2 Aug 2012 16:49:00 +0000 (17:49 +0100)]
mesa: Update to 8.0.4 (latest stable version)

- The license file has changed, but the project still has the same
  license
- Patches have been rebased on top of the 8.0 branch. crossfix.patch
  and crossfix-mklib.patch have been merged as they address the same
  problem

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agomesa: enable the Graphic Buffer Manager library
Ross Burton [Thu, 2 Aug 2012 16:48:59 +0000 (17:48 +0100)]
mesa: enable the Graphic Buffer Manager library

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agomesa: add --enable-shared-glapi, and package it in libglapi
Ross Burton [Thu, 2 Aug 2012 16:48:58 +0000 (17:48 +0100)]
mesa: add --enable-shared-glapi, and package it in libglapi

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agomesa: move glu.pc to libglu-dev
Ross Burton [Thu, 2 Aug 2012 16:48:57 +0000 (17:48 +0100)]
mesa: move glu.pc to libglu-dev

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agomesa: format the packages list nicely
Ross Burton [Thu, 2 Aug 2012 16:48:56 +0000 (17:48 +0100)]
mesa: format the packages list nicely

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agomesa: no need to depend on python-native, the class does that
Ross Burton [Thu, 2 Aug 2012 16:48:55 +0000 (17:48 +0100)]
mesa: no need to depend on python-native, the class does that

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolinux-firware: use ${base_libdir} instead of /lib for packaging
Javier Martinez Canillas [Sun, 5 Aug 2012 19:48:45 +0000 (21:48 +0200)]
linux-firware: use ${base_libdir} instead of /lib for packaging

It is considered good practice to use the build system provided
variables instead of directly specify hardcoded paths.

Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agokernel.bbclass: use ${base_libdir} and ${sysconfdir} instead of /lib and /etc
Javier Martinez Canillas [Sun, 5 Aug 2012 19:48:44 +0000 (21:48 +0200)]
kernel.bbclass: use ${base_libdir} and ${sysconfdir} instead of /lib and /etc

It is considered good practice to use the build system provided
variables instead of directly specify hardcoded paths.

Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolsb: use ${base_bindir} and ${sysconfdir} instead of /bin and /etc
Javier Martinez Canillas [Sun, 5 Aug 2012 19:48:39 +0000 (21:48 +0200)]
lsb: use ${base_bindir} and ${sysconfdir} instead of /bin and /etc

It is considered good practice to use the build system provided
variables instead of directly specify hardcoded paths.

Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agousbinit: use ${sysconfdir} instead of /etc for packaging
Javier Martinez Canillas [Sun, 5 Aug 2012 19:48:52 +0000 (21:48 +0200)]
usbinit: use ${sysconfdir} instead of /etc for packaging

It is considered good practice to use the build system provided
variables instead of directly specify hardcoded paths.

Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolsbinitscripts: use ${sysconfdir} instead of /etc for packaging
Javier Martinez Canillas [Sun, 5 Aug 2012 19:48:51 +0000 (21:48 +0200)]
lsbinitscripts: use ${sysconfdir} instead of /etc for packaging

It is considered good practice to use the build system provided
variables instead of directly specify hardcoded paths.

Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agorsync: use ${sysconfdir} instead of /etc for packaging
Javier Martinez Canillas [Sun, 5 Aug 2012 19:48:54 +0000 (21:48 +0200)]
rsync: use ${sysconfdir} instead of /etc for packaging

It is considered good practice to use the build system provided
variables instead of directly specify hardcoded paths.

Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoman: use ${sysconfdir} instead of /etc for packaging
Javier Martinez Canillas [Sun, 5 Aug 2012 19:48:56 +0000 (21:48 +0200)]
man: use ${sysconfdir} instead of /etc for packaging

It is considered good practice to use the build system provided
variables instead of directly specify hardcoded paths.

Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agochkconfig: use ${sysconfdir} instead of /etc for packaging
Javier Martinez Canillas [Sun, 5 Aug 2012 19:48:55 +0000 (21:48 +0200)]
chkconfig: use ${sysconfdir} instead of /etc for packaging

It is considered good practice to use the build system provided
variables instead of directly specify hardcoded paths.

Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoqemu-config: use ${sysconfdir} instead of /etc for packaging
Javier Martinez Canillas [Sun, 5 Aug 2012 19:48:53 +0000 (21:48 +0200)]
qemu-config: use ${sysconfdir} instead of /etc for packaging

It is considered good practice to use the build system provided
variables instead of directly specify hardcoded paths.

Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoxserver-nodm-init: use ${sysconfdir} instead of /etc for packaging
Javier Martinez Canillas [Sun, 5 Aug 2012 19:48:50 +0000 (21:48 +0200)]
xserver-nodm-init: use ${sysconfdir} instead of /etc for packaging

It is considered good practice to use the build system provided
variables instead of directly specify hardcoded paths.

Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobuilder: use ${sysconfdir} instead of /etc for packaging
Javier Martinez Canillas [Sun, 5 Aug 2012 19:48:49 +0000 (21:48 +0200)]
builder: use ${sysconfdir} instead of /etc for packaging

It is considered good practice to use the build system provided
variables instead of directly specify hardcoded paths.

Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agox11-common: use ${sysconfdir} instead of /etc for packaging
Javier Martinez Canillas [Sun, 5 Aug 2012 19:48:48 +0000 (21:48 +0200)]
x11-common: use ${sysconfdir} instead of /etc for packaging

It is considered good practice to use the build system provided
variables instead of directly specify hardcoded paths.

Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolibpam: use ${localstatedir} and ${sysconfdir} instead of /var and /etc
Javier Martinez Canillas [Sun, 5 Aug 2012 19:48:47 +0000 (21:48 +0200)]
libpam: use ${localstatedir} and ${sysconfdir} instead of /var and /etc

It is considered good practice to use the build system provided
variables instead of directly specify hardcoded paths.

Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoopenssh: use ${localstatedir} instead of /var for packaging
Javier Martinez Canillas [Sun, 5 Aug 2012 19:48:46 +0000 (21:48 +0200)]
openssh: use ${localstatedir} instead of /var for packaging

It is considered good practice to use the build system provided
variables instead of directly specify hardcoded paths.

Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoat: Use variables from the environment to override the makefile defaults
Richard Purdie [Mon, 6 Aug 2012 13:35:20 +0000 (14:35 +0100)]
at: Use variables from the environment to override the makefile defaults

This allows us to remove the docdir worksarounds and fixes other
potential relocation issues at the same time as cleaning up the
recipe.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agomingetty: use ${base_sbindir} instead of /sbin for packaging
Javier Martinez Canillas [Sun, 5 Aug 2012 19:48:40 +0000 (21:48 +0200)]
mingetty: use ${base_sbindir} instead of /sbin for packaging

It is considered good practice to use the build system provided
variables instead of directly specify hardcoded paths.

Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agosystemtap: use ${datadir} instead of /usr/share for packaging
Javier Martinez Canillas [Sun, 5 Aug 2012 19:48:38 +0000 (21:48 +0200)]
systemtap: use ${datadir} instead of /usr/share for packaging

It is considered good practice to use the build system provided
variables instead of directly specify hardcoded paths.

Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoxkeyboard-config: use ${datadir} instead of /usr/share for packaging
Javier Martinez Canillas [Sun, 5 Aug 2012 19:48:37 +0000 (21:48 +0200)]
xkeyboard-config: use ${datadir} instead of /usr/share for packaging

It is considered good practice to use the build system provided
variables instead of directly specify hardcoded paths.

Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoubootchart: use variables instead of hardcoded paths
Javier Martinez Canillas [Sun, 5 Aug 2012 19:48:36 +0000 (21:48 +0200)]
ubootchart: use variables instead of hardcoded paths

It is considered good practice to use the build system provided
variables instead of directly specify hardcoded paths.

Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agouseradd-example: use ${datadir} instead of /usr/share for packaging
Javier Martinez Canillas [Sun, 5 Aug 2012 19:48:35 +0000 (21:48 +0200)]
useradd-example: use ${datadir} instead of /usr/share for packaging

It is considered good practice to use the build system provided
variables instead of directly specify hardcoded paths.

Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agocronie: use variables instead of hardcoded paths
Javier Martinez Canillas [Sun, 5 Aug 2012 19:48:34 +0000 (21:48 +0200)]
cronie: use variables instead of hardcoded paths

It is considered good practice to use the build system provided
variables instead of directly specify hardcoded paths.

Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolsbtest: use ${bindir} instead of /usr/bin for packaging
Javier Martinez Canillas [Sun, 5 Aug 2012 19:48:33 +0000 (21:48 +0200)]
lsbtest: use ${bindir} instead of /usr/bin for packaging

It is considered good practice to use the build system provided
variables instead of directly specify hardcoded paths.

Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agosudo: use ${bindir} and ${sysconfdir} instead of /usr/bin and /etc
Javier Martinez Canillas [Sun, 5 Aug 2012 19:48:32 +0000 (21:48 +0200)]
sudo: use ${bindir} and ${sysconfdir} instead of /usr/bin and /etc

It is considered good practice to use the build system provided
variables instead of directly specify hardcoded paths.

Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolsbsetup: use ${bindir} instead of /usr/bin for packaging
Javier Martinez Canillas [Sun, 5 Aug 2012 19:48:31 +0000 (21:48 +0200)]
lsbsetup: use ${bindir} instead of /usr/bin for packaging

It is considered good practice to use the build system provided
variables instead of directly specify hardcoded paths.

Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoalsa-state: use ${sbindir} instead of /usr/sbin for packaging
Javier Martinez Canillas [Sun, 5 Aug 2012 19:48:30 +0000 (21:48 +0200)]
alsa-state: use ${sbindir} instead of /usr/sbin for packaging

It is considered good practice to use the build system provided
variables instead of directly specify hardcoded paths.

Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoxinetd: use ${sbindir} and ${sysconfdir} instead of /usr/sbin and /etc
Javier Martinez Canillas [Sun, 5 Aug 2012 19:48:29 +0000 (21:48 +0200)]
xinetd: use ${sbindir} and ${sysconfdir} instead of /usr/sbin and /etc

It is considered good practice to use the build system provided
variables instead of directly specify hardcoded paths.

Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agopython: Fix to support the python module _bsddb built with db 5.3
Jackie Huang [Sat, 4 Aug 2012 13:14:08 +0000 (21:14 +0800)]
python: Fix to support the python module _bsddb built with db 5.3

_bsddb module in python 2.7 could be built only with db version
between 4.1 and 4.7. A patch was added to avoid build warning
about this for [YOCTO #1937] but not actually fixed it.

This patch enable _bsddb module be built with db 5.3, and remove
--disable-statistics from the DB5_CONFIG to fix segmentation fault
when using _bsddb module in python.

[YOCTO #2749]

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agopsplash: Update to latest psplash version
Franklin S Cooper Jr [Fri, 3 Aug 2012 23:47:02 +0000 (18:47 -0500)]
psplash: Update to latest psplash version

* Update to the latest version of psplash which fixes a segmentation fault
  bug

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoglib-2.0-nativesdk: Add dependency on glib-2.0-native
Khem Raj [Sat, 4 Aug 2012 04:58:20 +0000 (21:58 -0700)]
glib-2.0-nativesdk: Add dependency on glib-2.0-native

when we build for nativesdk it needs tools from installed
glib-2.0-dev package. We zeroes out compile_resourses but
then genmarshal came up so instead of going about disabling
them one by one lets depend on glib-2.0-native since
thats the right thing to do.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agopopulate_sdk_rpm.bbclass: Depend do_populate_sdk task on createrepo-native
Khem Raj [Sat, 4 Aug 2012 04:58:21 +0000 (21:58 -0700)]
populate_sdk_rpm.bbclass: Depend do_populate_sdk task on createrepo-native

Now that we have moved the rpm-createsolvedb.py
script to createrepo-native for good reason of
python-native dependency, we have to make sure
that it is staged before its used, unlike before
where it was under scripts/ dir and always existed
outside the realm of package management.

Fixes build error when doing meta-toolchain builds from
scratch

|
/home/kraj/yocto/poky/build/tmp/work/ppc64e5500-poky-linux/meta-toolchain-1.0-r7/temp/run.populate_sdk_image.26712:
line 610: rpm-createsolvedb.py: command not found
| DEBUG: Python function do_populate_sdk finished
| ERROR: Function failed: populate_sdk_image (see
/home/kraj/yocto/poky/build/tmp/work/ppc64e5500-poky-linux/meta-toolchain-1.0-r7/temp/log.do_populate_sdk.26712
for further information)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoeglibc-locale: bump PR after fc4b138948656d482603b80f8c8e86fdbb185df4
Martin Jansa [Sun, 5 Aug 2012 09:24:44 +0000 (11:24 +0200)]
eglibc-locale: bump PR after fc4b138948656d482603b80f8c8e86fdbb185df4

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake.conf: exclude whole MACHINEOVERRIDES from OVERRIDES vardeps
Martin Jansa [Mon, 23 Jul 2012 14:25:09 +0000 (16:25 +0200)]
bitbake.conf: exclude whole MACHINEOVERRIDES from OVERRIDES vardeps

* whole MACHINEOVERRIDES can change e.g. between MACHINES with different arm architecture, causing allarch packages to reexecute do_package
  bitbake-diffsigs ../shr-core/tmp-eglibc/stamps/all-oe-linux/xserver-nodm-init-2.0-r16.do_package.sigdata.90e760a8f6cecbd87cb2e95f1237e3cc ../shr-core/tmp-eglibc/stamps/all-oe-linux/xserver-nodm-init-2.0-r16.do_package.sigdata.9eeccfd15f25032b3b6b132534660fff
  basehash changed from 7618e17d3fda05d1f15246e6800ca0f0 to 97bc4dc8c1521c535bd96b2aa62d8a03
  Variable MACHINEOVERRIDES value changed from ${MACHINE}${@bb.utils.contains("TUNE_FEATURES", "armv5", ":armv5", "" ,d)}${@bb.utils.contains("TUNE_FEATURES", "armv4", ":armv4", "" ,d)}:${MACHINE_CLASS} to ${MACHINE}${@bb.utils.contains("TUNE_FEATURES", "armv7a", ":armv7a", "" ,d)}${@bb.utils.contains("TUNE_FEATURES", "armv6", ":armv6", "" ,d)}${@bb.utils.contains("TUNE_FEATURES", "armv5", ":armv5", "" ,d)}${@bb.utils.contains("TUNE_FEATURES", "armv4", ":armv4", "" ,d)}:${MACHINE_CLASS}

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoqt4-native: fix creating /include directory in build host root
Martin Jansa [Sun, 5 Aug 2012 13:50:46 +0000 (15:50 +0200)]
qt4-native: fix creating /include directory in build host root

* same fix as
  http://git.openembedded.org/openembedded-core/commit/?id=7d3fd68480d54a8ef0d91a772df3506cd45ef2c2
  is needed for native too

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agotcl: Add ${bindir_crossscripts}/tclConfig.sh to sysroot stage
Jackie Huang [Mon, 6 Aug 2012 07:05:44 +0000 (15:05 +0800)]
tcl: Add ${bindir_crossscripts}/tclConfig.sh to sysroot stage

tclConfig.sh is changed in do_install for cross compile and
is installed to STAGING_BINDIR_CROSS, but if SSTATE_DIR is set
and tcl is from sstage, tclConfig.sh can't be found in
STAGING_BINDIR_CROSS, add ${bindir_crossscripts}/tclConfig.sh
to sysroot stage can fix it.

[YOCTO #2891]

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agogdk-pixbuf: fix parallel install issue
Wenzong Fan [Fri, 3 Aug 2012 03:30:21 +0000 (11:30 +0800)]
gdk-pixbuf: fix parallel install issue

This patch fixes parallel install issue that lib libpixbufloader-png.la
depends on libgdk_pixbuf-2.0.la which will be regenerated during insta-
llation, if libgdk_pixbuf-2.0.la is regenerating and at the same time
libpixbufloader-png.la links it, the error will happen.

Error message is:
* usr/bin/ld: cannot find -lgdk_pixbuf-2.0
* collect2: ld returned 1 exit status

Make an explicit dependency to the libs install targets would fix this
issue.

[YOCTO #2883]

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobusybox: fix du-k-works test case
Roy.Li [Mon, 6 Aug 2012 02:50:01 +0000 (10:50 +0800)]
busybox: fix du-k-works test case

[YOCTO #2896]

The du-k-works test seems to assume that du -k on a directory with two files
totaling 80 kilobytes should report either 80k or 88k. In ext4 filesystm however,
both busybox' du -k and coreutils' du -k reports a size of 84k which causes the
test to fail.

Intergrate the patch from:
http://git.busybox.net/busybox/commit/?id=a5ee090e8651692545514a81a16c6cde3a2dc577

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agogcc-cross-initial: Ensure it uses an isolated sysroot
Richard Purdie [Mon, 6 Aug 2012 11:13:06 +0000 (11:13 +0000)]
gcc-cross-initial: Ensure it uses an isolated sysroot

If we don't do this, a stale limits.h may be detected in STAGING_DIR_TARGET
which would result in a different limits.h getting generated by gcc-cross-initial
that references it. The referenced limits.h will then not get found by eglibc-initial
causing rather strange build failures.

The simplest solution is to create a temporary sysroot containing only the things
gcc-cross-initial should care about and this results in a correct limits.h file
regardless of what else may have been built.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agogcc: Bump PR since there have been several gcc changes and various problems reported...
Richard Purdie [Fri, 3 Aug 2012 09:32:24 +0000 (10:32 +0100)]
gcc: Bump PR since there have been several gcc changes and various problems reported and this should flush anything stale out

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agogcc-cross-initial: Fix typo causing limits.h not to be present
Richard Purdie [Fri, 3 Aug 2012 06:50:20 +0000 (07:50 +0100)]
gcc-cross-initial: Fix typo causing limits.h not to be present

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agotzdata: Upgrade tzdata to upstream 2012d
Radu Moisan [Thu, 2 Aug 2012 07:04:15 +0000 (10:04 +0300)]
tzdata: Upgrade tzdata to upstream 2012d

Signed-off-by: Radu Moisan <radu.moisan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agotexi2html: Fix perl location on recent distros
Richard Purdie [Thu, 2 Aug 2012 21:29:56 +0000 (21:29 +0000)]
texi2html: Fix perl location on recent distros

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

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agognome-desktop: Fix python location on recent distros
Richard Purdie [Thu, 2 Aug 2012 21:28:58 +0000 (21:28 +0000)]
gnome-desktop: Fix python location on recent distros

This fixes errors on distros with python as /bin/python of the form:

| error: Failed dependencies:
|  /bin/python is needed by gnome-desktop-2.32.1-r5.i586

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agorunqemu-gen-tapdevs: add UID to CL options
Elizabeth Flanagan [Tue, 31 Jul 2012 18:00:08 +0000 (11:00 -0700)]
runqemu-gen-tapdevs: add UID to CL options

runqemu-if* now requires UID as a command line option which means
runqemu-gen-tapdevs needs to take it as an option.

Signed-off-by: Elizabeth Flanagan <elizabeth.flanagan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoComplete recipe enablement
Bogdan Marinescu [Thu, 2 Aug 2012 07:49:06 +0000 (10:49 +0300)]
Complete recipe enablement

RP: The list of recipes in multilib.conf needs to go away and we need
to just be able to extend all recipes with the multilib class.
Tested by building and running lib32-core-image-sato-sdk.

[YOCTO #1563]

Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoguile: updated to 2.0.6
Bogdan Marinescu [Tue, 31 Jul 2012 12:33:25 +0000 (15:33 +0300)]
guile: updated to 2.0.6

Some patches (disable_goops_optimizations, fix_cross_compilation) don't
seem to be needed anymore. Others (change-install-data-hook, mark-unused-modules)
were updated to work on 2.0.6. Tested by building and running guile under
QEMU with core-image-sato-sdk and also builing guile on MIPS.

Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobusybox: udhcpc shouldn't be a service
Jesse Zhang [Fri, 27 Jul 2012 09:03:52 +0000 (17:03 +0800)]
busybox: udhcpc shouldn't be a service

udhcpc is invoked from the networking service, so it shouldn't exist
standalone. If /etc/init.d/busybox-udhcpc is present, it will cause
udhcpc to be started two times.

And since the script doesn't support the stop action, it will cause
udhcpc to be started even when system is being shutdown.

Remove /etc/init.d/busybox-udhcpc to resolve the issues.

[YOCTO #2840]

Signed-off-by: Jesse Zhang <sen.zhang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agodbus: Ensure dbus-nativesdk doesn't RPROVIDE dbus-x11
Richard Purdie [Wed, 1 Aug 2012 21:14:26 +0000 (21:14 +0000)]
dbus: Ensure dbus-nativesdk doesn't RPROVIDE dbus-x11

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

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agopython-setuptools: Fix setuptools install libdir != /usr/lib
Mark Hatle [Wed, 1 Aug 2012 02:59:35 +0000 (21:59 -0500)]
python-setuptools: Fix setuptools install libdir != /usr/lib

--install-lib= is required to be passed via distutils install
otherwise the install location gets set to whatever the python-native
location is.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agopackage.bbclass: change RPATHs for nativesdk packages
Laurentiu Palcu [Tue, 31 Jul 2012 08:49:38 +0000 (11:49 +0300)]
package.bbclass: change RPATHs for nativesdk packages

Change binaries RPATHs, to include $ORIGIN, to make them relocatable.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agorelocatable.bbclass: split it up, to reuse code
Laurentiu Palcu [Tue, 31 Jul 2012 08:49:37 +0000 (11:49 +0300)]
relocatable.bbclass: split it up, to reuse code

Most of the code in relocatable.bbclass will be used for relocating the
SDK binaries. So, create another class chrpath.bbclass that will contain
the core of the relocatable.bbclass, so we can reuse it.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agopopulate_sdk_base.bbclass: create self-extracting archive
Laurentiu Palcu [Tue, 31 Jul 2012 08:49:36 +0000 (11:49 +0300)]
populate_sdk_base.bbclass: create self-extracting archive

In order for the SDK to be relocatable, the user would need to call a
setup script to change the binaries acordingly. Having an auto-extracting
archive has the advantage of being more user friendly and the user does
not have to call the setup script separately after extracting the SDK.
It is called automatically.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoscripts: add script for relocating the SDK
Laurentiu Palcu [Tue, 31 Jul 2012 08:49:35 +0000 (11:49 +0300)]
scripts: add script for relocating the SDK

This script will be embedded in the SDK tarball and will be called by
the SDK installer. It replaces the interpreter path in all binaries and
it also changes the ld.so.cache and SYSDIRS in dynamic loader.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobinutils: relocatable SDK: change PT_INTERP section size
Laurentiu Palcu [Tue, 31 Jul 2012 08:49:34 +0000 (11:49 +0300)]
binutils: relocatable SDK: change PT_INTERP section size

This patch is needed so that all SDK binaries have the PT_INTERP section
size set to 4096 (max path size in Linux) in order to be able to parse
the binaries later and change the interpreter to the path we want.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoeglibc: relocatable SDK changes
Laurentiu Palcu [Tue, 31 Jul 2012 08:49:33 +0000 (11:49 +0300)]
eglibc: relocatable SDK changes

Modifying the dynamic loader path in all binaries by the SDK installer
would not be possible because we cannot know in advance the SDK target
location. Hence, the PT_INTERP section size has been set to 4096 (which
is the maximum path lengh in Linux).

Also, for the dynamic loader SYSDIRS and ld.so.cache paths, special
4096 bytes sections were allocated so that we can easily parse the ELF
binary at install time and modify the paths.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agokmod: Upgrade to upstream version 9.0
Radu Moisan [Wed, 1 Aug 2012 11:12:14 +0000 (14:12 +0300)]
kmod: Upgrade to upstream version 9.0

Signed-off-by: Radu Moisan <radu.moisan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agosend-pull-request: Make -a really imply -c
Darren Hart [Wed, 1 Aug 2012 19:18:19 +0000 (12:18 -0700)]
send-pull-request: Make -a really imply -c

The switch statement does not fall through as the comment suggests.
This results in -a not implying -c as was intended.

Add the two lines from -c to -a to achieve the intended behavior.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoqt4: fix qt4-native build failure on SLED-11
Wenzong Fan [Thu, 2 Aug 2012 01:43:02 +0000 (09:43 +0800)]
qt4: fix qt4-native build failure on SLED-11

This issue is that with C++ compiler process an old version of kernel
header file, coincidently that file has a variable named 'new':

* 'embedded/qkbdtty_qws.cpp' include 'linux/vt.h';
* '/usr/include/linux/vt.h' has below code on SLED-11.x:
    + unsigned int new;

On mostly hosts it has been changed to: new -> newev.

[YOCTO #2845]

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agosip.bbclass: fix sip-native dependency
Martin Jansa [Wed, 1 Aug 2012 14:38:00 +0000 (16:38 +0200)]
sip.bbclass: fix sip-native dependency

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agopython-dbus: updated to 1.1.1
Bogdan Marinescu [Wed, 1 Aug 2012 15:16:07 +0000 (18:16 +0300)]
python-dbus: updated to 1.1.1

Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agowatchdog: Upgrade to upstream v5.12
Radu Moisan [Thu, 2 Aug 2012 11:53:37 +0000 (14:53 +0300)]
watchdog: Upgrade to upstream v5.12

sourceforge.net link is broken at the time of this patch,
so I added a mirror.
License changed to GPLv2+

Signed-off-by: Radu Moisan <radu.moisan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agousbutils: Upgrade usbutils to upstream v006
Radu Moisan [Thu, 2 Aug 2012 12:06:13 +0000 (15:06 +0300)]
usbutils: Upgrade usbutils to upstream v006

Signed-off-by: Radu Moisan <radu.moisan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agou-boot.inc: fix regexp used when ld-is-gold
Martin Jansa [Thu, 2 Aug 2012 12:09:50 +0000 (14:09 +0200)]
u-boot.inc: fix regexp used when ld-is-gold

* with old regexp it wasn't reentrant, causing stuff like this:
  -LD     = $(CROSS_COMPILE)ld
  +LD     = $(CROSS_COMPILE)ld.bfd.bfd
  -LDR    = $(CROSS_COMPILE)ldr
  +LDR    = $(CROSS_COMPILE)ld.bfd.bfdr
  when do_compile was reexecuted, also breaking LDR variable and
  http://git.yoctoproject.org/cgit/cgit.cgi/meta-ti/tree/recipes-bsp/u-boot/u-boot/0001-config-Always-use-GNU-ld.patch
  when it was used together with u-boot.inc from oe-core (meta-ti is using own u-boot.inc)

* This patch is also better solution to ld-is-gold problem then regexp in metadata.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agogcc-configure-target: Set native-system-header-dir for target gcc
Richard Purdie [Wed, 1 Aug 2012 08:01:28 +0000 (08:01 +0000)]
gcc-configure-target: Set native-system-header-dir for target gcc

Without this set, in the case host=target (which it does for on-target
gcc), the native header directory is set to the target sysroot with
no prefix. This means it would look for sdt.h on the build system
instead of in the target headers and this can lead to build failures
and is host contamination of the build.

The correct fix is to explicitly set the native header directory to
the correct location and then the headers get detected correctly.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agocore-image.bbclass: Fix typo in comment, "IMAGE_FEAETURES"
Robert P. J. Day [Wed, 1 Aug 2012 10:57:46 +0000 (05:57 -0500)]
core-image.bbclass: Fix typo in comment, "IMAGE_FEAETURES"

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agocreaterepo 0.4.11: create wrapper for python script
Robert Yang [Wed, 1 Aug 2012 09:14:54 +0000 (17:14 +0800)]
createrepo 0.4.11: create wrapper for python script

The native python is installed to
${STAGING_BINDIR_NATIVE}/python-native/python, so we should use wrapper
for the python script.

[YOCTO #2822]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agocreaterepo 0.4.11: add rpm-createsolvedb.py
Robert Yang [Wed, 1 Aug 2012 09:14:53 +0000 (17:14 +0800)]
createrepo 0.4.11: add rpm-createsolvedb.py

Move scripts/rpm-createsolvedb.py to
meta/recipes-support/createrepo/createrepo/ since we should wrap it to
use the native python.

[YOCTO #2822]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoimagetest-qemu.bbclass: Fix whitespace issues
Richard Purdie [Wed, 1 Aug 2012 06:38:08 +0000 (06:38 +0000)]
imagetest-qemu.bbclass: Fix whitespace issues

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agopackage_rpm.bbclass: Accomodate dash when using arrays
Khem Raj [Sun, 29 Jul 2012 21:27:05 +0000 (14:27 -0700)]
package_rpm.bbclass: Accomodate dash when using arrays

we were assigning local variable to an array coming through
positional arguments. local is a non posix contruct thats
also supported by dash luckily but operates differently in this
case it exapnds the array before assignment. so

local pkgs="$@"

turns into pkgs=locale-base-en-us locale-base-en-gb

ant we see errors

run.do_rootfs.25593: 932: local: locale-base-en-gb: bad variable name

So lets not use defining and assigning local in one go
first define a local and then the assignment

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoscripts/oe-pkgdata-util: exclude unpackaged in glob output
Paul Eggleton [Mon, 30 Jul 2012 08:52:01 +0000 (09:52 +0100)]
scripts/oe-pkgdata-util: exclude unpackaged in glob output

Check for .packaged file and exclude packages if this file does not
exist - this avoids attempting to install empty packages during
complementary package installation within do_rootfs that didn't end up
being created (and failing as a result).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agocombo-layer: ensure init works with split local config
Paul Eggleton [Tue, 31 Jul 2012 10:22:05 +0000 (11:22 +0100)]
combo-layer: ensure init works with split local config

If the local configuration is already split out, ensure the init action
works properly and does not error in the case that last_revision is not
set. Additionally, if the local configuration is within the repository,
prevent it from being committed and add it to .gitignore.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agodbus: include dbus-launch in the main dbus package
Radu Moisan [Tue, 31 Jul 2012 06:23:23 +0000 (09:23 +0300)]
dbus: include dbus-launch in the main dbus package

Followed suggestions from Bugz 2261:

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

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

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

Fixes [Yocto #2261]

Signed-off-by: Radu Moisan <radu.moisan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoglib-2.0-nativesdk: Fix build on ubuntu 11.10
Khem Raj [Tue, 31 Jul 2012 06:54:59 +0000 (23:54 -0700)]
glib-2.0-nativesdk: Fix build on ubuntu 11.10

When you have a distro which has older version of
glib-2.0 installed then it does not have compile_resources
installed which essentially glib-2.0 nativesdk is
looking for on build host. So like in a cross build
we disable the configure check which will force it
to build an internal copy and use it.

This problem may not be seen on newer distros like
ubuntu 12.04 since they have newer version of glib-2.0
installed

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

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

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoslang: change char type to signed char in macros
Roy.Li [Tue, 31 Jul 2012 07:30:00 +0000 (15:30 +0800)]
slang: change char type to signed char in macros

[YOCTO 2726]

The patch of converting char type to signed char is only applied to arm,
in fact it should be applied to powerpc too since powerpc has the same
assumption for char type. To x86 and mips, this patch has not impact.

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoscripts/bitbake: unbreak the git version comparison
Christopher Larson [Mon, 30 Jul 2012 16:08:46 +0000 (09:08 -0700)]
scripts/bitbake: unbreak the git version comparison

With the current code, we're calling awk to do a floating point comparison
between '1.7.0.4' and '1.7.5' (on an ubuntu 10.04 LTS machine). These clearly
aren't proper floating point numbers, and the comparison is incorrect. It's
returning true for 1.7.0.4 >= 1.7.5.

Instead of using a floating point comparison for this, call out to python and
let it do it.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agotrace-cmd: Update for python-native changes
Morgan Little [Thu, 19 Jul 2012 17:46:21 +0000 (13:46 -0400)]
trace-cmd: Update for python-native changes

Add pythonnative to the inherits list

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolib/oe/lsb.py: Map unknown distributions to 'Unknown'
Richard Purdie [Tue, 31 Jul 2012 07:01:28 +0000 (08:01 +0100)]
lib/oe/lsb.py: Map unknown distributions to 'Unknown'

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agocombo-layer: allow splitting out local config
Paul Eggleton [Tue, 31 Jul 2012 00:06:26 +0000 (01:06 +0100)]
combo-layer: allow splitting out local config

Allow splitting the local parts of the configuration (mostly
local_repo_dir and last_revision, although there is no limitation) to
a side-by-side -local.conf file, with component sections optionally
tagged with the combo layer branch name. This effectively allows you to:

 * avoid polluting the history by committing the updated last revision
   to the combo repository for every update
 * avoid putting local repo paths into the combo repository
 * manage multiple branches of the combo repository whilst avoiding the
   possibility of mixing the configuration for one branch with another.

An example split configuration (note, values may be artificial):

------------------- combo-layer.conf -------------------
[bitbake]
src_uri = git://git.openembedded.org/bitbake
dest_dir = bitbake
hook = scripts/combo-layer-hook-default.sh

[oe-core]
src_uri = git://git.openembedded.org/openembedded-core
dest_dir = .
hook = scripts/combo-layer-hook-default.sh
--------------------------------------------------------

---------------- combo-layer-local.conf ----------------
[bitbake]
local_repo_dir = ../repos/bitbake

[oe-core]
local_repo_dir = ../repos/oe-core

[bitbake|master]
branch = master
last_revision = db689a99beffea1a285cdfc74a58fe73f1666987

[oe-core|master]
branch = master
last_revision = 121a1499a81706366acc0081272a6bff634d4d62

[bitbake|denzil]
branch = 1.12
last_revision = 24b631acdaa143a4de39c6e1328849660c66f219

[oe-core|denzil]
branch = denzil
last_revision = 741146fa90f28f7ce8d82ee7f7e254872d519724
--------------------------------------------------------

It is assumed that the local config file will be added to .gitignore.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agocombo-layer: check that last_revision is valid
Paul Eggleton [Tue, 31 Jul 2012 00:06:25 +0000 (01:06 +0100)]
combo-layer: check that last_revision is valid

If the user edits the configuration file by hand and sets last_revision,
we need to ensure that the revision is valid and on the specified
branch.

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