scm/bb/tizen-distro.git
11 years agopseudo.inc: pseudo 1.5 uprev, support extra config flags
Peter Seebach [Sun, 17 Feb 2013 23:31:33 +0000 (23:31 +0000)]
pseudo.inc: pseudo 1.5 uprev, support extra config flags

The pseudo 1.5 update is a moderately experimental set of changes
which ought to improve performance. With these changes, pseudo
uses an in-memory sqlite database which is lushed on exit,
the protocol is changed to reduce waiting for server responses,
and pseudo can suppress any and all fsync/fdatasync type operations.

This last feature is optional, and not on by default, so we need
to pass in an extra configure argument, but that argument wouldn't
be known to an older configure, so... Enter PSEUDO_EXTRA_OPTS which
is passed to configure, and which pseudo_1.5.bb sets by default to
"--enable-force-async". (I haven't added it in pseudo_git.bb, but
maybe it should be changed; I'm not quite as sure there.)

The justification for these changes is that, for most of the real-world
build cases I deal with, they produce a 25% or more reduction in the
build time of a project. This increases when a system is heavily
loaded.

(From OE-Core rev: 79ddb0c33401da442dbaa8e0d73ebacf297d9185)

Signed-off-by: Peter Seebach <peter.seebach@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agometa-toolchain-qt.inc: Use CXX when linking
Otavio Salvador [Sun, 17 Feb 2013 17:53:12 +0000 (17:53 +0000)]
meta-toolchain-qt.inc: Use CXX when linking

We should use CXX compiler when linking objects as done in regular
builds inside of OE-Core. This fixes issues we've been seeing in field
where we needed to change it byhand so the toolchain could work.

(From OE-Core rev: 4ade9c60acea0ac92d0a08f3078361b6f54c85e2)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: fetch2: Add SFTP fetcher
Olof Johansson [Tue, 29 Jan 2013 07:50:11 +0000 (08:50 +0100)]
bitbake: fetch2: Add SFTP fetcher

This fetcher differs from the SSH fetcher in that it adheres more
strictly to the SECSH URI internet draft --- it uses the sftp://
instead of the ssh:// scheme, and it uses sftp instead of scp.

(Bitbake rev: d240baeb7a4107d2eba3f08c411c0f086674d8e2)

Signed-off-by: Olof Johansson <olof.johansson@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: fetch2: Add editor modelines for bb.tests.*
Olof Johansson [Tue, 29 Jan 2013 07:50:10 +0000 (08:50 +0100)]
bitbake: fetch2: Add editor modelines for bb.tests.*

(Bitbake rev: 230e00948ba093958e8e89e9ee380444b3dad307)

Signed-off-by: Olof Johansson <olof.johansson@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: fetch2: Adapt encode/decode url to use URI class
Olof Johansson [Tue, 29 Jan 2013 07:50:09 +0000 (08:50 +0100)]
bitbake: fetch2: Adapt encode/decode url to use URI class

(Bitbake rev: 21fe2683aefde10e847e66c11c26d4f4c1e07cfd)

Signed-off-by: Olof Johansson <olof.johansson@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: fetch2: unittests for bb.fetch2.URI class
Olof Johansson [Tue, 29 Jan 2013 07:50:08 +0000 (08:50 +0100)]
bitbake: fetch2: unittests for bb.fetch2.URI class

(Bitbake rev: a71e7d4137d2c5268b406f69992d09c00772a040)

Signed-off-by: Olof Johansson <olof.johansson@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: fetch2: Add a class representing a generic URI
Olof Johansson [Tue, 29 Jan 2013 07:50:07 +0000 (08:50 +0100)]
bitbake: fetch2: Add a class representing a generic URI

A class representing a generic URI, with methods for accessing the URI
components, and stringifies to the URI. This class should be a bit more
flexible than the existing {encode,decode}_url functions in that it
supports more components (e.g. port) and that it does not rely on a
specific order on the return values. This makes it easy to add new
properties without affecting the API.

(Bitbake rev: bd824da8a7eafe27310e410807319628378caeca)

Signed-off-by: Olof Johansson <olof.johansson@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: fetch2: Remove unused code in wget fetcher
Olof Johansson [Tue, 29 Jan 2013 07:50:06 +0000 (08:50 +0100)]
bitbake: fetch2: Remove unused code in wget fetcher

(Bitbake rev: 6d88fcee16ced3a8c1ab1daf8e88d36f70f13346)

Signed-off-by: Olof Johansson <olof.johansson@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackage_tar: Fix so it actually works
Richard Purdie [Sun, 17 Feb 2013 09:04:31 +0000 (09:04 +0000)]
package_tar: Fix so it actually works

This tells us how long the code hasn't been used for :/

(From OE-Core rev: cd503c7f7fec6d177209832f73cec9c5d490be6b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackage_tar: Remove completely pointless code
Richard Purdie [Sun, 17 Feb 2013 09:03:28 +0000 (09:03 +0000)]
package_tar: Remove completely pointless code

Remove/simply overcomplicated code. No functionality change.

(From OE-Core rev: e3b21455e4ecc5b4961cf52e035a2d6d541faf69)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackage_tar: bb.mkdirhier -> bb.utils.mkdirhier
Richard Purdie [Sun, 17 Feb 2013 09:02:25 +0000 (09:02 +0000)]
package_tar: bb.mkdirhier -> bb.utils.mkdirhier

Fix deprecated function reference.

(From OE-Core rev: 9e7a6492010aa2de65310d6fa13290068e7cadb1)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackage_tar: Fix whitespace
Richard Purdie [Sun, 17 Feb 2013 09:01:35 +0000 (09:01 +0000)]
package_tar: Fix whitespace

(From OE-Core rev: fead6005b56f53535967476cc752691316e02183)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackage_rpm/dev/ipk/tar: Drop unused functions
Richard Purdie [Sun, 17 Feb 2013 09:00:29 +0000 (09:00 +0000)]
package_rpm/dev/ipk/tar: Drop unused functions

The package_xxx_install functions date from a different era and are not used by
anything. In the rpm case, they're simply unimplemented, in the tar case they're
using broken whitespace and deprecated functions. We might as well clean
out the old broken unused code.

(From OE-Core rev: 3684036213c9b1c27389260b7a1e3441c6bd659d)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackage_rpm/deb/ipk: Error if we don't find packages when creating the package index
Richard Purdie [Sun, 17 Feb 2013 08:57:17 +0000 (08:57 +0000)]
package_rpm/deb/ipk: Error if we don't find packages when creating the package index

If for whatever reason the package directory is empty of packages, it
makes sense to error early rather than later in what become much
more obtuse errors. This adds in a sanity check to each of the packaging
backends. It also removes the duplicate createrepo call since the
core index creation function now uses this directly after the switch
to smart.

(From OE-Core rev: 721ef058b37604e100021ec7a90ad2f745d83916)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoclasses: Drop none package specific packaging variable accesses
Richard Purdie [Sun, 3 Feb 2013 22:10:21 +0000 (22:10 +0000)]
classes: Drop none package specific packaging variable accesses

(From OE-Core rev: 24cbe88429ba021d7c461e0271b67106d11d5eb2)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoconf: Remove unused ROOT_FLASH_SIZE variable from the config
Holger Hans Peter Freyther [Sat, 16 Feb 2013 22:41:00 +0000 (23:41 +0100)]
conf: Remove unused ROOT_FLASH_SIZE variable from the config

This variable is set but never used in OE-core and meta-oe. It
was historically used for the Opie collection but seems to be
unused now.

(From OE-Core rev: 323ef78e377525e2214f4700c30305c493137853)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoperl: Add auto/XS/Typemap in perl-doc package
Otavio Salvador [Sat, 16 Feb 2013 21:20:41 +0000 (19:20 -0200)]
perl: Add auto/XS/Typemap in perl-doc package

(From OE-Core rev: 8b8e471b4e6d90e36320fc608b6eec908fd43fe6)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: fetch2: Ensure directory for stampfile exists before trying to create it
Richard Purdie [Fri, 15 Feb 2013 16:17:30 +0000 (16:17 +0000)]
bitbake: fetch2: Ensure directory for stampfile exists before trying to create it

(Bitbake rev: cf510e3da36e53f98ca86501747364bf4699ecc1)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: utils: Use rm -rf in remove()
Richard Purdie [Sun, 3 Feb 2013 16:51:34 +0000 (16:51 +0000)]
bitbake: utils: Use rm -rf in remove()

Whilst shutils.rmtree() is pythonic, its also slow. Its faster to
use rm -rf which makes optimial use of the right syscalls.

(Bitbake rev: 96088ebdec08e49ba9e8dbcac437bfcdc21f5983)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agodropbear: use pidfile for daemon start/stop/restart
Roman I Khimov [Mon, 19 Jul 2010 13:08:08 +0000 (13:08 +0000)]
dropbear: use pidfile for daemon start/stop/restart

Old init script killed all dropbear processes when doing stop/restart
including open SSH sessions which is very annoying.

(From OE-Core rev: 97aa5ac2df7593e343d82f5e64a422bb951eacf9)

Signed-off-by: Roman I Khimov <khimov@altell.ru>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotzcode-native: Fix SRC_URI checksum typo
Richard Purdie [Fri, 15 Feb 2013 12:48:54 +0000 (12:48 +0000)]
tzcode-native: Fix SRC_URI checksum typo

(From OE-Core rev: dac9290b20819bb7f74fa27b87b8077d8856c551)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosystemd.bbclass: Dont use libdir and base_libdir for units
Khem Raj [Thu, 14 Feb 2013 04:02:00 +0000 (04:02 +0000)]
systemd.bbclass: Dont use libdir and base_libdir for units

systemd always uses /lib and /usr/lib to store unit files
so using libdir and base_libdir is incorrect. It will work
where libdir is usr/lib and base_libdir is /lib but wont work
when say its /lib64

Add a check to make sure that SYSTEMD_PACKAGES are part of PACKAGES
too, otherwise error out

(From OE-Core rev: 22e16f44b58ae6bbf719b9074d39aac065a402f1)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agognupg: fix CVE-2012-6085
Saul Wold [Thu, 14 Feb 2013 23:55:12 +0000 (15:55 -0800)]
gnupg: fix CVE-2012-6085

Code taken from Redhat

[YOCTO #3813]

(From OE-Core rev: 17f8e03ace51df6b94fdcb7e410acf79c7b046ce)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosanity.bbclass: when bblayers.conf is updated, it invokes a reparse
Cristiana Voicu [Tue, 12 Feb 2013 13:27:32 +0000 (15:27 +0200)]
sanity.bbclass: when bblayers.conf is updated, it invokes a reparse

When bblayers.conf is updated(when sanity check is running), it should
tell to bitbake to reparse configuration files. I will send a patch to
bitbake-devel, with the actions needed in bitbake and hob.

[YOCTO #3213]
(From OE-Core rev: 5db1ff93f7204b43b7242fc7ef415216eb632ed8)

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackage_ipk: check CONFFILES exist before adding them to metadata
Ross Burton [Tue, 5 Feb 2013 21:12:50 +0000 (21:12 +0000)]
package_ipk: check CONFFILES exist before adding them to metadata

opkg-build verifies that conffiles exist, so verify that the specified files
actually exist before writing them to conffiles.

This mirrors the behaviour of FILES and package_rpm's CONFFILES handling.

(From OE-Core rev: fb87edc881009cf4d582cd95c248884551fe07fe)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoscripts/bitbake: Remove all instances of paths to a layer's scripts directory.
Franklin S. Cooper Jr [Sat, 9 Feb 2013 17:08:10 +0000 (11:08 -0600)]
scripts/bitbake: Remove all instances of paths to a layer's scripts directory.

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

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

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

 [Yocto Bug 3872]

(From OE-Core rev: 9b445cc39604223b0cfb21d28f748a86ff4cdf68)

Signed-off-by: Franklin S. Cooper Jr <fcooper@ti.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoalsa-lib: upgrade to 1.0.26
Cristian Iorga [Fri, 18 Jan 2013 11:39:30 +0000 (13:39 +0200)]
alsa-lib: upgrade to 1.0.26

(From OE-Core rev: 759191ee0b11231e1719bd5c66ac0afbd02e2a80)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosystemd: add udev-extraconf and USB/PCI IDs to RRECOMMENDS
Ross Burton [Wed, 13 Feb 2013 18:12:42 +0000 (18:12 +0000)]
systemd: add udev-extraconf and USB/PCI IDs to RRECOMMENDS

The standalone udev has these dependencies and extraconf is required to have
working automount amongst other things.

(From OE-Core rev: 3d72ba9d25a02cac2c0a63ab32c5483be5c6ea3f)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibpng: update to upstream version 1.5.14
Marko Lindqvist [Wed, 13 Feb 2013 11:26:18 +0000 (13:26 +0200)]
libpng: update to upstream version 1.5.14

obsolete_automake_macros.patch removed as it's not part of upstream.
The only changes to license texts are latest libpng version number
and release dates.

(From OE-Core rev: d68e9660327db2dd4f2ae7bcea9925146b94eb77)

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoharfbuzz: update to upstream version 0.9.12
Marko Lindqvist [Wed, 13 Feb 2013 11:25:55 +0000 (13:25 +0200)]
harfbuzz: update to upstream version 0.9.12

Fixed license declaration to have AND between all the licenses
instead of OR.

(From OE-Core rev: 0a90fb2faebbb7848dbd5a23b37490866b397f5f)

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogtk+: update to upstream version 2.24.15
Marko Lindqvist [Wed, 13 Feb 2013 11:25:32 +0000 (13:25 +0200)]
gtk+: update to upstream version 2.24.15

- configure-nm.patch updated to apply
- hardcoded_libtool.patch updated to apply
- obsolete_automake_macros.patch removes as it's now part of upstream

(From OE-Core rev: a4ed7da18d8622fc0b6e3d32ac8ce9456b912322)

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agowebkit-gtk: update to upstream version 1.8.3
Marko Lindqvist [Wed, 13 Feb 2013 11:25:07 +0000 (13:25 +0200)]
webkit-gtk: update to upstream version 1.8.3

(From OE-Core rev: 570e5e20623031ad03cce470fc3d94d9a5b05827)

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoxev: upgrade to 1.2.1
Laurentiu Palcu [Wed, 13 Feb 2013 09:33:32 +0000 (11:33 +0200)]
xev: upgrade to 1.2.1

Licence didn't change, the end line for computing the licence md5sum was
inside the actual code which, eventually changed. Adjust it to the right
line.

(From OE-Core rev: 96d9e102067471018acfa9651b810f0d33a363fa)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoxf86-video-vmware: upgrade to 13.0.0
Laurentiu Palcu [Wed, 13 Feb 2013 08:50:30 +0000 (10:50 +0200)]
xf86-video-vmware: upgrade to 13.0.0

Removed backported patch.

(From OE-Core rev: f264bf699a42dfe2616386d03524642890308e80)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoxf86-input-synaptics: upgrade to 1.6.3
Laurentiu Palcu [Wed, 13 Feb 2013 08:48:33 +0000 (10:48 +0200)]
xf86-input-synaptics: upgrade to 1.6.3

(From OE-Core rev: a1eef756921d66138ef233c451a99b2ee1356cfb)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoxkeyboard-config: upgrade to 2.8
Laurentiu Palcu [Wed, 13 Feb 2013 08:48:08 +0000 (10:48 +0200)]
xkeyboard-config: upgrade to 2.8

(From OE-Core rev: 40083ca6decd05f480b0a8cd5923e68884c3b307)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibdrm: upgrade to 2.4.42
Laurentiu Palcu [Wed, 13 Feb 2013 08:47:13 +0000 (10:47 +0200)]
libdrm: upgrade to 2.4.42

(From OE-Core rev: dd53452b1cf2ccec44f465ac420d134a17332c7b)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoxf86-input-vmmouse: upgrade to 13.0.0
Laurentiu Palcu [Wed, 13 Feb 2013 08:46:51 +0000 (10:46 +0200)]
xf86-input-vmmouse: upgrade to 13.0.0

(From OE-Core rev: e8f5f341256430cf45ee186435bccf593793b661)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoxf86-video-intel: upgrade to 2.21.0
Laurentiu Palcu [Wed, 13 Feb 2013 08:34:29 +0000 (10:34 +0200)]
xf86-video-intel: upgrade to 2.21.0

(From OE-Core rev: 7bdc27511c9129e35caf1bdc0df37b382f1b5b98)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqemu: upgrade to 1.3.1
Constantin Musca [Mon, 11 Feb 2013 13:01:48 +0000 (15:01 +0200)]
qemu: upgrade to 1.3.1

(From OE-Core rev: ca3ce0886df01936d5ad309de1d39520b5278a80)

Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: hob: remove save/load template functionality
Cristiana Voicu [Thu, 31 Jan 2013 12:43:08 +0000 (14:43 +0200)]
bitbake: hob: remove save/load template functionality

The Hob templates functionality, in its current incarnation,
is confusing and has no clear utility.

[YOCTO #3696]
(Bitbake rev: 4eb3b6bb9f936808ddf085624078f6479c522c48)

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: knotty.py: fix unknown event bb.event.DiskFull
Robert Yang [Fri, 1 Feb 2013 08:56:45 +0000 (16:56 +0800)]
bitbake: knotty.py: fix unknown event bb.event.DiskFull

There is an error:

ERROR: No new tasks can be excuted since the disk space monitor action
is "STOPTASKS"!
ERROR: Unknown event: <bb.event.DiskFull object at 0x2ab6310>

This is because we don't handle the event bb.event.DiskFull in
knotty.py, we don't want the knotty to do anything here since we have
done everything in monitordisk.py, so just ignore this event would fix
the problem.

[YOCTO #3523]

(Bitbake rev: 0fa874dbe0532bbe88ade405f514a237e6cd2488)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: bitbake-layers: make show-cross-depends avoid long path
Robert Yang [Wed, 6 Feb 2013 09:28:16 +0000 (17:28 +0800)]
bitbake: bitbake-layers: make show-cross-depends avoid long path

The "bitbake-layers show-cross-depends" print the absolute path in the
past, now it will print the relative path (relative to the layer dir) by
default, and add the "-f" option to make it print the absolute path.

For example:

$ bitbake-layers show-cross-depends
[snip]
meta-intel/meta-jasperforest/conf/machine/jasperforest.conf requires meta/conf/machine/include/ia32-base.inc
[snip]

$ bitbake-layers show-cross-depends -f
[snip]
/path/to/poky/meta-intel/meta-jasperforest/conf/machine/jasperforest.conf requires /path/to/poky/meta/conf/machine/include/ia32-base.inc
[snip]

[YOCTO #3824]

(Bitbake rev: df217701318d60559be0b10214b883b8ce4f5d2a)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: hob: remove parsing warnings when machine is changed
Cristiana Voicu [Mon, 4 Feb 2013 14:56:00 +0000 (16:56 +0200)]
bitbake: hob: remove parsing warnings when machine is changed

When the machine is changed, the warnings list is emptied and the warnings
bar is hidden.

[YOCTO #3830]
(Bitbake rev: 8e43da7798a98988f7da3f7c424e8f9e5eac2010)

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: hob: no sanity checks re-run
Cristiana Voicu [Tue, 5 Feb 2013 14:52:02 +0000 (16:52 +0200)]
bitbake: hob: no sanity checks re-run

Hob was hanging when the user tried a rebuild a new image, because
of sanity checks. It should not re-run sanity checks.

[YOCTO #3829]
(Bitbake rev: f7ff550f53cf3e5b166940db83f27ec733f3ef72)

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: monitordisk.py: disable the inode checking for some fs
Robert Yang [Mon, 4 Feb 2013 10:03:35 +0000 (18:03 +0800)]
bitbake: monitordisk.py: disable the inode checking for some fs

There is an error when use disk monitor on btrfs:
WARNING: The free inode of rootfs is running low (0.000K left)
ERROR: Immediately abort since the disk space monitor action is "ABORT"!

This is beucase some fs formats' statvfs.f_files (inodes) is zero, thus
the statvfs.f_favail (free inodes) is zero, too, this a feature of the
fs, we disable the inode checking for such a fs.

[YOCTO #3609]

(Bitbake rev: b2ada3ad5f7aefff107f013e0c9decea481c7ef6)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: fetch2: Improve lock/done stamp file paths for local files
Richard Purdie [Thu, 14 Feb 2013 21:38:17 +0000 (21:38 +0000)]
bitbake: fetch2: Improve lock/done stamp file paths for local files

Currently stamps end up at the top level of DL_DIR even if the files
themselves are in a directory structure. This patch preserves path
components allowing the top level directory to be less populated
which is an advantage for large sstate caches.

(Bitbake rev: 59921ce3ed7a4c0b7f8ef1a101ad9127469bf1fd)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: bitbake & hob: reparse config files, when sanity check updates bblayers...
Cristiana Voicu [Tue, 12 Feb 2013 13:27:22 +0000 (15:27 +0200)]
bitbake: bitbake & hob: reparse config files, when sanity check updates bblayers.conf

I've sent a patch to poky, with some changes in sanity.bbclass. When bblayers.conf
is updated, it updates also a variable to know when to reparse configuration files.
This patch contains the changes to reparse conf files, after a sanity check which
changes bblayers.conf.

[YOCTO #3213]
(Bitbake rev: 966e3e59ceb1c8b33b5881f291c148ea6513eda0)

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: fetch2: Ensure expansions happen in URL parameters in uri_replace
Richard Purdie [Thu, 14 Feb 2013 21:36:30 +0000 (21:36 +0000)]
bitbake: fetch2: Ensure expansions happen in URL parameters in uri_replace

For example, this allows us to specify downloadfilename=PATH in sstate
mirror urls to improve directory structures in DL_DIR when using sstate.

(Bitbake rev: 7850a1364b6b37c58664d84f9c14806b4479b45c)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: ConfHandler: Use re.X to make long regexp more readable
Olof Johansson [Thu, 14 Feb 2013 11:28:32 +0000 (12:28 +0100)]
bitbake: ConfHandler: Use re.X to make long regexp more readable

The __config_regexp__ in ConfHandler is quite long, and using re.X to
break the expression onto several lines make it a bit easier to read.

(Bitbake rev: 54dce9e14ab0657d76f0d0ae22eef7fab8e8950d)

Signed-off-by: Olof Johansson <olof.johansson@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: tests/codeparser: Hack around circular inclusion problem
Richard Purdie [Thu, 14 Feb 2013 21:35:25 +0000 (21:35 +0000)]
bitbake: tests/codeparser: Hack around circular inclusion problem

There is a circular dependency issue where bb.data can't directly depend on
bb.parse. The tests were failing due to this issue which is misleading. This
patch hacks around it for now. I'd rather that than not running tests at all.

(Bitbake rev: a206ae0d7769a41ff3666d0f53ff9cf422dfa518)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: wget: Only use -O option when not spidering
Richard Purdie [Thu, 14 Feb 2013 21:33:04 +0000 (21:33 +0000)]
bitbake: wget: Only use -O option when not spidering

If we pass the -O option whilst spidering, empty files are created which is not
desired. We also need to ensure any subdirectories are created when using the
downloadfilename parameter.

(Bitbake rev: d5f78e98d5aba36c95288fbaac267c2d54537b02)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: codeparser: Track bb.utils.contains usage
Richard Purdie [Thu, 14 Feb 2013 21:59:21 +0000 (21:59 +0000)]
bitbake: codeparser: Track bb.utils.contains usage

The bb.utils.contains function usage is getting increasingly used in the metadata
but isn't handled automatically by the python dependency tracking code. This patch
changes that and also adds the "OE" names for the functions.

Whilst there are reasons this is a bad idea, its likely outweighed by the
shear number of these references and the current holes in dependency information
which we're now relying heavily upon.

(Bitbake rev: 0b9d117631ce909312d53b93289e61defc6be01c)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: codeparser: Track appendVar and prependVar calls as we do for getVar
Richard Purdie [Thu, 14 Feb 2013 21:57:36 +0000 (21:57 +0000)]
bitbake: codeparser: Track appendVar and prependVar calls as we do for getVar

We need to track appendVar and prependVar calls just as we do for getVar in order
to ensure we're not missing variable dependencies.

(Bitbake rev: 767b4751232f4ee3979deb4d3f733fcf9ee2bd44)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotzcode/tzdata: Update to 2012j
Saul Wold [Fri, 8 Feb 2013 18:50:57 +0000 (18:50 +0000)]
tzcode/tzdata: Update to 2012j

Readme update to indicate status of project and authorship

(From OE-Core rev: 6c6568e47d6b3b0edaba569bfa4e38f9d72b5122)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotzdata: Simplify code removing not used cases
Otavio Salvador [Fri, 8 Feb 2013 14:52:20 +0000 (14:52 +0000)]
tzdata: Simplify code removing not used cases

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

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

Change-Id: I9a4f05db7a0bdc06511deb5693d1d16569d2fc63
(From OE-Core rev: 4b5e1757224085deac54b2583853fc779dc70614)

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

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

Change-Id: I16dfa5ea4f293c48bb396f4e23a2ea53e6c9e745
(From OE-Core rev: a9b42c8e85332a65788b1434f926186d4887b287)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoSolved package namespace errors in PRS
Emilia Ciobanu [Thu, 14 Feb 2013 15:52:40 +0000 (17:52 +0200)]
Solved package namespace errors in PRS

For some packages PRS reported incorrect upstream version
as it was either the raw string or it mismatched some
alternative groups.

(From OE-Core rev: 6f3ace8ba75eed891aa4844a6830bedca3d8b70e)

Signed-off-by: Emilia Ciobanu <emilia.maria.silvia.ciobanu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoinsane: remove unused variable
Ross Burton [Thu, 14 Feb 2013 18:02:02 +0000 (18:02 +0000)]
insane: remove unused variable

(From OE-Core rev: 1165a0b161ffc32258b0726e6ef3082d97dfb32a)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoremake: do not create po files
Saul Wold [Thu, 14 Feb 2013 22:12:51 +0000 (14:12 -0800)]
remake: do not create po files

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

[YOCTO #3745]

(From OE-Core rev: 9987f210e3faf31bfeab35ae56606c8a577b3aa0)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agomulitilib_header: Avoid sstate checksum issues for -native recipes
Richard Purdie [Thu, 14 Feb 2013 11:20:49 +0000 (11:20 +0000)]
mulitilib_header: Avoid sstate checksum issues for -native recipes

The use of arch specific variables like MIPSPKGSFX_ABI was creeping
into the -native sstate checksums of package like ncurses-native.

This is pointless and undesireable. We could add specific variable
exclusions but we might as well just brute force the code to be disabled
in the -native case since we don't use multilibs in the native case.

[YOCTO #3827]

(From OE-Core rev: cc7352ed990b1bdd26203a4d3b21286280ac26c5)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agokconfig-frontends: Depend on pkgconfig-native
Richard Purdie [Thu, 14 Feb 2013 12:24:30 +0000 (12:24 +0000)]
kconfig-frontends: Depend on pkgconfig-native

We were seeing errors like:

| autoreconf: running: /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly/build/build/tmp/sysroots/x86_64-linux/usr/bin/autoconf --force
| configure.ac:27: error: possibly undefined macro: AS_IF
|       If this token and others are legitimate, please use m4_pattern_allow.
|       See the Autoconf documentation.
| configure.ac:100: error: possibly undefined macro: AC_MSG_ERROR
| autoreconf: /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly/build/build/tmp/sysroots/x86_64-linux/usr/bin/autoconf failed with exit status: 1
| ERROR: autoreconf execution failed.

which turns out to mean the pkgconfig macros were unavailable (thanks for clear
error messages autoconf).

This patch adds in the missing dependency.

(From OE-Core rev: 26431ffda8886412147ff347c000a0ecc2671db5)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: Remove whitelisted vars from non-task deps
Christopher Larson [Tue, 3 Apr 2012 23:23:49 +0000 (18:23 -0500)]
bitbake: Remove whitelisted vars from non-task deps

Though the value of variables in the BB_BASEHASH_WHITELIST is kept out of the
checksums, dependency on them is not, at least for variables and non-task
functions. In the code, the whitelist is removed from the overall task dep
list, but not the individual variable deps. The result of this is that
functions like sysroot_stage_all and oe_runmake end up with whitelisted
variables like TERM listed in their dependencies, which means that doing
a 'unset TERM' before building will result in all checksums for tasks that
depend on those changing, and shared state reuse not behaving correctly.

This is only really a potential issue for variables from the environment, as
it's the existance/removal of the variable that's an issue, not its value, and
the other whitelisted variables are set in our metadata. This which means in
practical terms the only cases where this is likely to be an issue are in
environments where one of the following are unset: TERM, LOGNAME, HOME, USER,
PWD, SHELL. This may seem like an unlikely circumstance, but is in fact a real
issue for those of us using autobuilders. Jenkins does not set TERM when
executing shell, which means shared state archives produced by your jenkins
server would not be fully reused by an actual user.

Fixed by removing the whitelisted elements from the individual variable deps,
not just the accumulated result.

(Bitbake rev: dac12560ac8431ee24609f8de25cb1645572d350)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: ConfHandler: Improve regexp to fix mis-parsing of += and no whitespace
Richard Purdie [Thu, 14 Feb 2013 10:31:12 +0000 (10:31 +0000)]
bitbake: ConfHandler: Improve regexp to fix mis-parsing of += and no whitespace

If you have:

FOO = "a"
FOO += "b"
FOO+= "c"

The expected result is "a b c" however we were seeing "a b" with the FOO+
variable being assigned the value "c". This isn't the expected result.

We need to make the name part of the variale non-greedy so that any + character
becomes part of the operator. This patch does that. I compared the configuration
in OE-Core before and after the change and only the test case changed.

[YOCTO #3834]

(Bitbake rev: 2cd8d7fd12a646e6516e2c985e6a54121d19eb59)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoutil-linux: Remove -systemd package
Khem Raj [Thu, 14 Feb 2013 04:02:01 +0000 (20:02 -0800)]
util-linux: Remove -systemd package

unit files are added to util-linux itself when selected

(From OE-Core rev: dbabe19d4ee5cc291b5d996e9b828eed3e4484d8)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoPython: Add missing dependency "textutils" to "io" package
MiLo [Thu, 14 Feb 2013 07:10:30 +0000 (08:10 +0100)]
Python: Add missing dependency "textutils" to "io" package

Modify the include file and script to generate a missing RDEPENDS.

Install python on target with python-io. Import ssl:

Python 2.7.3 (default, Feb  9 2013, 16:04:35)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ssl
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/ssl.py", line 58, in <module>
ImportError: No module named textwrap

Installing python-textutils solves the issue.

(From OE-Core rev: 900ae881c3483eea36aa0be456b93f92980f4924)

Signed-off-by: MiLo <milo-software@users.sourceforge.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agomultilib: Fix an OVERRIDES expansion order issue
Richard Purdie [Wed, 13 Feb 2013 00:21:53 +0000 (00:21 +0000)]
multilib: Fix an OVERRIDES expansion order issue

There were problems where a SRC_URI with:

SRC_URI_append_powerpc = " xxx"
SRC_URI_append_powerpc64 = " xxx2"

would end up with *both* xxx and xxx2 being added when using a multilib
which is clearly incorrect and undesirable.

The issue is that OVERRIDES has virtclass-multilib-xxxx added to it,
this eventually changed DEFAULTTUNE which then changes
TRANSLATED_TARGET_ARCH which is in OVERRIDES meaning we then need to
re-evaluate the overides and the TRANSLATED_TARGET_ARCH gets applied
twice since once you apply an override, it doesn't get undone.

Expanding DEFAULTTUNE to the correct value in advance avoids the issue
and means only the correct overrides get applied.

[YOCTO #3874]

(From OE-Core rev: 920c9024f5a47ad14670067f910450983bae2aa7)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopseudo_1.4.5.bb: Finish fixing linkat()
Peter Seebach [Wed, 13 Feb 2013 19:43:17 +0000 (19:43 +0000)]
pseudo_1.4.5.bb: Finish fixing linkat()

The 1.4.4 fix replaced possible double-prepending of chroot paths
with possible non-prepending of chroot paths. After significant
evaluation, have settled on a single prepending of the chroot
path as a workable compromise.

(From OE-Core rev: a79597994e3f680e34a1a45fb37d76977903ded5)

Signed-off-by: Peter Seebach <peter.seebach@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobusybox: add config fragments
Chen Qi [Tue, 5 Feb 2013 06:36:40 +0000 (14:36 +0800)]
busybox: add config fragments

Add config fragments to busybox.

The implementation makes use of merge_config.sh script in kern-tools-native.
The use case is similar to the yocto kernel's configuration fragments.

We also add kern-tools-native to busybox's DEPENDS variable to ensure
that merge_config.sh is available when required.

[YOCTO #3379]

(From OE-Core rev: bbcd8b344598850ea2c8d3ad375c519713581fde)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogtkhtml2: remove, nothing depends on it
Ross Burton [Tue, 12 Feb 2013 17:26:56 +0000 (17:26 +0000)]
gtkhtml2: remove, nothing depends on it

(From OE-Core rev: 1c3ed8c109f46e7e38649d6914693ed4c18f45a5)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoweb: remove gtkhtml2 version
Ross Burton [Tue, 12 Feb 2013 17:26:55 +0000 (17:26 +0000)]
web: remove gtkhtml2 version

The gtkhtml2 version of Web is even older than the webkitgtk port, remove it.

(From OE-Core rev: 7ee3c35ca51e358e1d5a710922acb52c0724086e)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopseudo_git.bb: Bump to pseudo 1.4.4.
Peter Seebach [Tue, 12 Feb 2013 22:52:07 +0000 (16:52 -0600)]
pseudo_git.bb: Bump to pseudo 1.4.4.

The pseudo 1.4.2 linkat() implementation had a broken edge case
in which you could end up with chroot paths being doubled when
using plain link() calls instead of linkat() calls.

(From OE-Core rev: c70443ef21713d805012ef839e3fac04de8eadd2)

Signed-off-by: Peter Seebach <peter.seebach@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibtool-native_2.4.2.bb: Always use /bin/sed for SED
Jason Wessel [Tue, 12 Feb 2013 19:36:44 +0000 (13:36 -0600)]
libtool-native_2.4.2.bb: Always use /bin/sed for SED

If you never use sstate and always build everything from scratch you
will never see this problem.  However, if you use sstate and build
directories that last a long time eventually you can end up with the
scenario where libtool gets a hard coded path in it for sed, and sed
may not exist.  The reason you don't see this problem to often if you
generally build from scratch is that libtool builds before sed and
will pickup the host's /bin/sed.

The way to reproduce the issue is:

bitbake some_image
bitbake -c cleansstate libtool-native
bitbake sed-native
bitbake libtool-native
bitbake -c clean sed-native
bitbake ANY_PACKAGE_THAT_USES_LIBTOOL_NATIVE

In my case I used modphp, which doesn't exist in the oe-core. You will
end up with a strange looking error like:

| make[1]: *** [buckets/apr_buckets_alloc.lo] Error 1
| /opt/build/bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/x86_64-linux-libtool: line 981: /opt/build/bitbake_build/tmp/sysroots/x86_64-linux//bin/sed: No such file or directory

The solution is to always use /bin/sed for libtool-native.

(From OE-Core rev: 605e4484840e70c64acddb4aa1a3c9fec4078d9d)

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosite/x32-linux: Specify double alignment
Richard Purdie [Wed, 13 Feb 2013 00:16:40 +0000 (00:16 +0000)]
site/x32-linux: Specify double alignment

Double alignment is 8 bytes on x32 but it is defaulting to 4 currently.
This leads to various issues and fontconfig fails to build due to the
mismatch triggering assert failures.

(From OE-Core rev: f2a0784f368fa8a766aae4242a0c187759b35393)

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

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

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

(From OE-Core rev: 4cea35cc4e4ed8e68cd117825b1dd4ef1be768c2)

Signed-off-by: Michael Halstead <michael@yoctoproject.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogtk+: use gtk-immodules-cache class
Laurentiu Palcu [Tue, 12 Feb 2013 16:12:46 +0000 (18:12 +0200)]
gtk+: use gtk-immodules-cache class

In order to have the proper postinst/postrm scriptlets generated for
gtk+ immodules packages, use the already existing class.

[YOCTO #3853]

(From OE-Core rev: 1c5646dde09008662f064ce7e7400c4d68775278)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogtk-immodules-cache: add weak asignment for GTKIMMODULES_PACKAGES
Laurentiu Palcu [Tue, 12 Feb 2013 16:12:45 +0000 (18:12 +0200)]
gtk-immodules-cache: add weak asignment for GTKIMMODULES_PACKAGES

This is needed if the GTKIMMODULES_PACKAGES is changed later, in
do_populate_packages for example. This way, we don't have to add another
dumb asignment in the recipe inheriting this.

[YOCTO #3853]

(From OE-Core rev: e9e80eac6ab4982cb42fa2c5403630926351efed)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agognome-keyring: compile schemas on host
Laurentiu Palcu [Tue, 12 Feb 2013 16:12:44 +0000 (18:12 +0200)]
gnome-keyring: compile schemas on host

gsettings.bbclass offers just that.

[YOCTO #3854]

(From OE-Core rev: 2d5a935b70218335af4859f409b81769c9238db3)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibrsvg: use the new pixbufcache class
Laurentiu Palcu [Tue, 12 Feb 2013 16:12:43 +0000 (18:12 +0200)]
librsvg: use the new pixbufcache class

Also, fix the GDK_PIXBUF_QUERYLOADERS path.

[YOCTO #3582]

(From OE-Core rev: 801ca93cbd3e8fd8ce08f72432b6d4c80ed51261)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogdk-pixbuf: use the new pixbufcache class
Laurentiu Palcu [Tue, 12 Feb 2013 16:12:42 +0000 (18:12 +0200)]
gdk-pixbuf: use the new pixbufcache class

[YOCTO #3582]

(From OE-Core rev: f6dce5376894d4ac91f01a85cffc828678695b04)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoAdd pixbufcache class
Laurentiu Palcu [Tue, 12 Feb 2013 16:12:41 +0000 (18:12 +0200)]
Add pixbufcache class

All packages exporting pixbuf loaders should inherit this class in order
to generate the correct postinst/postrm scriptlets.

[YOCTO #3852]

(From OE-Core rev: 61afa98f96f5c62473cb2db383b48d3d23c5d7ac)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agofontcache.bbclass: use the postinst_intercept script
Laurentiu Palcu [Tue, 12 Feb 2013 16:12:40 +0000 (18:12 +0200)]
fontcache.bbclass: use the postinst_intercept script

"Link" the package to the postinstall hook by running the
postinst_intercept script.

(From OE-Core rev: a14faa3b9c55574a096d517431393e4ac3c86823)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogtk-icon-cache.bbclass: use postinst_intercept script
Laurentiu Palcu [Tue, 12 Feb 2013 16:12:39 +0000 (18:12 +0200)]
gtk-icon-cache.bbclass: use postinst_intercept script

Since the hook has been made a standalone script, use postinst_intercept
script in order to "link" the package to the hook.

(From OE-Core rev: d7ddae84165b5b84dc6ac640fd492ade891ddd4e)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agorootfs_(ipk|deb|rpm).bbclass: check package installation status after ROOTFS_POSTPROC...
Laurentiu Palcu [Tue, 12 Feb 2013 16:12:38 +0000 (18:12 +0200)]
rootfs_(ipk|deb|rpm).bbclass: check package installation status after ROOTFS_POSTPROCESS_COMMAND

Since the intercept fall-back procedure will change the package
installation status, do the checking after ROOTFS_POSTPROCESS_COMMAND
ends.

(From OE-Core rev: 414c3918baccc2166bba536c956eebaeb49aace3)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoimage.bbclass: add fall-back functionality when running intercepts
Laurentiu Palcu [Tue, 12 Feb 2013 16:12:37 +0000 (18:12 +0200)]
image.bbclass: add fall-back functionality when running intercepts

If an intercept script fails, it would be helpful to fall-back to
running the postinstall on target's first boot. In order to achieve
that, the postinstalls that install a host intercept hook will have to
return 1, so that the postinstall is marked as unpacked only. If the
intercept hook fails, then we're ok, the postinstalls will be run on
target anyway. If it succeeds, then mark the packages as installed.

This logic was chosen mainly because of rpm backend which saves the
failed postinstalls in /etc/rpm-postinsts. Hence, in order to mark the
packages as installed, all we have to do is delete the scriptlets from
there.

(From OE-Core rev: ed8ac4ee43132ae974794038821f7ca5465ae556)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoAdd separate directory for postinstall intercepts
Laurentiu Palcu [Tue, 12 Feb 2013 16:12:36 +0000 (18:12 +0200)]
Add separate directory for postinstall intercepts

The scripts/postinst-intercepts will contain all postinstall hooks that
we need to run after all packages have been installed.

If one wants to install such a postinst hook, all it needs to do is put
the hook in this directory and, from the package postinstall scriptlet,
call:
postinst_intercept <hook_name> <package_name> <var1=...> ...

This will, practically, add the package_name in the list of packages
that need the hook to run and, also, set any variables that would be
needed in the hook. For example, variables like ${libdir}, ${bindir},
etc. that might depend on distribution can be passed on to the script in
this way.

(From OE-Core rev: 0ef538d75c2f3921a2fcbe6ca1deed5525b276cc)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agodistro_check: Remove creation of empty Meego filelist.
Anders Roxell [Mon, 11 Feb 2013 13:26:28 +0000 (14:26 +0100)]
distro_check: Remove creation of empty Meego filelist.

This fixes permissions errors when running distrodata.

(From OE-Core rev: c58e6cf352774e147038e6543ac95ab0060f2327)

Signed-off-by: Anders Roxell <anders.roxell@enea.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agomesa: upgrade to 9.0.2
Constantin Musca [Mon, 11 Feb 2013 12:59:55 +0000 (14:59 +0200)]
mesa: upgrade to 9.0.2

(From OE-Core rev: 7a0eca4379b72981a378ffe62f4e8e3428ee791a)

Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopixman: upgrade to 0.29.2
Constantin Musca [Mon, 11 Feb 2013 12:58:33 +0000 (14:58 +0200)]
pixman: upgrade to 0.29.2

obsolete_automake_macros.patch: removed
- included in the new version

(From OE-Core rev: 31fc8a621fbeb4f5bec7c6b6fd03043bb382c34d)

Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agocairo: upgrade to 1.12.12
Constantin Musca [Mon, 11 Feb 2013 12:57:42 +0000 (14:57 +0200)]
cairo: upgrade to 1.12.12

(From OE-Core rev: d5cd3638d339e2154696792160f93b155cb7b086)

Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogamin: replace obsolete automake macros with working ones
Marko Lindqvist [Mon, 11 Feb 2013 04:02:25 +0000 (06:02 +0200)]
gamin: replace obsolete automake macros with working ones

Add obsolete_automake_macros.patch that replaces automake macros
no longer supported by automake-1.13 with modern constructs.
Removed AM_PROG_CC_STDC. AC_PROG_CC to replace it was already
present.

(From OE-Core rev: 84f083ac3a218513411e7c28edada7a80af8ad8c)

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agodiffutils: replace obsolete automake macros with working ones
Marko Lindqvist [Mon, 11 Feb 2013 04:02:02 +0000 (06:02 +0200)]
diffutils: replace obsolete automake macros with working ones

Add obsolete_automake_macros.patch that replaces automake macros
no longer supported by automake-1.13 with modern constructs.
Removed AM_PROG_CC_STDC. AC_PROG_CC to replace it was already
present.

(From OE-Core rev: 5e1a567872d6967ac4d5b78e9d226161d9651ded)

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosystemtap: replace obsolete automake macros with working ones
Marko Lindqvist [Mon, 11 Feb 2013 04:01:36 +0000 (06:01 +0200)]
systemtap: replace obsolete automake macros with working ones

Add obsolete_automake_macros.patch that replaces automake macros
no longer supported by automake-1.13 with modern constructs.
Removed AM_PROG_CC_STDC. AC_PROG_CC to replace it was already
present.

(From OE-Core rev: 3a335af7da5a94249d2f0d49d89cf0c8f180776e)

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibidn: remove help2man dependency
Marko Lindqvist [Mon, 11 Feb 2013 04:01:10 +0000 (06:01 +0200)]
libidn: remove help2man dependency

Remove manpage creation. It wasn't working because of help2man
missing when libidn is being built. This attempt to create
manpages without help2man turns from no-op to hard error with
automake-1.13.

(From OE-Core rev: 46a4a696eec4d92beac1072fe6c64da1089c7cf8)

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotexinfo: remove help2man dependency
Marko Lindqvist [Mon, 11 Feb 2013 04:00:48 +0000 (06:00 +0200)]
texinfo: remove help2man dependency

Remove manpage creation. It wasn't working because of help2man
missing when texinfo is being built. This attempt to create
manpages without help2man turns from no-op to hard error with
automake-1.13.

(From OE-Core rev: 2c8cebdfd8102d4386b5d42a7fc30cc81e8e2ef2)

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibevent: fix build with automake-1.13
Marko Lindqvist [Mon, 11 Feb 2013 04:00:18 +0000 (06:00 +0200)]
libevent: fix build with automake-1.13

- Add obsolete_automake_macros.patch that replaces automake macros
  no longer supported by automake-1.13 with modern constructs.

- Use of $(top_srcdir) in TESTS is an error causing automake-1.13
  to abort. Disable the tests completely.

(From OE-Core rev: 751b5e76768d9fa4e40405a12ad008aa9af1561d)

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoWrite DPKG_ARCH to /etc/apt/apt.conf
Stefan Eichenberger [Fri, 8 Feb 2013 14:30:13 +0000 (15:30 +0100)]
Write DPKG_ARCH to /etc/apt/apt.conf

Apt does not recognize the architecture if a different one is set with
DPKG_ARCH (e.g. armel). This patch writes the correct architecture to
/etc/apt/apt.conf.

(From OE-Core rev: 81b8c36641994dc7a4e025f2d43f9ce57d04b6f0)

Signed-off-by: Stefan Eichenberger <stefan.eichenberger@netmodule.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agorelocate_sdk.py: allow relocate_sdk.py to work with python 2.4.x
Jason Wessel [Tue, 12 Feb 2013 11:08:23 +0000 (05:08 -0600)]
relocate_sdk.py: allow relocate_sdk.py to work with python 2.4.x

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

(From OE-Core rev: e1d42db8749b0b965ddc6cfba4f3b93ee96ed4f4)

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopopulate_sdk_base.bbclass: Improve debugging capabilities for SDK installer
Jason Wessel [Tue, 12 Feb 2013 11:08:22 +0000 (05:08 -0600)]
populate_sdk_base.bbclass: Improve debugging capabilities for SDK installer

After having to debug the SDK installer a few times in
addition to the relocation code the following patch was created
to improve the capabilities around debugging the SDK installer.

1) Add a verbose mode -D which set a set -x to see what
   the SDK installer is doing.

2) Add a mode -S to save the relocation scripts for the purpose
   of debugging them in conjunction with -D

3) Add a mode -R to not execute the relocation scripts for the
   purpose of debugging the relocations.

(From OE-Core rev: 0e6dd19b9736d2a8ae7c0f0ab124337d579b8f06)

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

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

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

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

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

(From OE-Core rev: 3752a9c6d772b39bbe04d62ef4d3527b4c7198c1)

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>