scm/bb/tizen-distro.git
12 years agorpm: Fix LICENSE field
Richard Purdie [Thu, 23 Feb 2012 10:56:11 +0000 (10:56 +0000)]
rpm: Fix LICENSE field

This addresses the warning:

WARNING: rpm: No generic license file exists for: LGPL in any provider
WARNING: rpm: No generic license file exists for: 2.1 in any provider

(From OE-Core rev: 2345f788c9206b87804292c0afdd73f565784d45)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoeglibc: Fix package warning
Richard Purdie [Thu, 23 Feb 2012 10:53:39 +0000 (10:53 +0000)]
eglibc: Fix package warning

WARNING: For recipe eglibc, the following files/directories were installed but not shipped in any package:
WARNING:   /usr/lib/locale

(From OE-Core rev: d8c24378c6813036fcf9bc88cac919c3443c1446)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agodistro_tracking_fields: fix typos
Saul Wold [Thu, 23 Feb 2012 15:47:51 +0000 (07:47 -0800)]
distro_tracking_fields: fix typos

(From OE-Core rev: 1034e798cbab0bd16e35db6ae750f146fc8689c1)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agotask-self-hosted: make the package lists alphabetical
Dexuan Cui [Thu, 23 Feb 2012 03:26:52 +0000 (11:26 +0800)]
task-self-hosted: make the package lists alphabetical

This patch makes no actual change to the functionality of the recipe.

(From OE-Core rev: 0dff62c849650f3fa51ce80979b4d80dcc0d36f1)

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agotask-self-hosted: remove duplicate packages
Dexuan Cui [Thu, 23 Feb 2012 03:04:56 +0000 (11:04 +0800)]
task-self-hosted: remove duplicate packages

The package names are specified more than once.
We only need to keep one for each of them, so let's remove the duplicated
ones.
This patch makes no actual change to the functionality of the recipe.

(From OE-Core rev: 121a1499a81706366acc0081272a6bff634d4d62)

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoA script to clean obsolete sstate cache files
Robert Yang [Wed, 22 Feb 2012 12:38:30 +0000 (20:38 +0800)]
A script to clean obsolete sstate cache files

There would be many obsolete cache files in the SSTATE_DIR after several
builds, this script can remove the obsolete one for a pkg, only leave
the up to date one.

Here is the help text:

sstate-cache-management.sh <OPTION>

Options:
  --help, -h
        Display this help and exit.

  --cache-dir=<sstate cache dir>
        Specify sstate cache directory, will use the environment
        variable SSTATE_CACHE_DIR if it is not specified.

  --remove-duplicated
        Remove the duplicated sstate cache files of one package, only
        the newest one would be kept.

[YOCTO #1682]

(From OE-Core rev: 7c99ef6d2173b14e1109a540ee5ae47b56d707e7)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoopenssl: Move libcrypto to base_libdir
Andrei Gherzan [Tue, 21 Feb 2012 23:03:55 +0000 (01:03 +0200)]
openssl: Move libcrypto to base_libdir

This fix is for dhclient. It needs libcrypto at runtime and if
libcrypto is in libdir, it's path can be inaccessible on systems
where /usr is on nfs for example or dhclient is needed before
/usr is mounted.

(From OE-Core rev: 01ea85f7f6c53c66c76d6f832518b28bf06ec072)

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
[Fix comment to from /usr -> /lib - sgw]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoboot-directdisk: Use correct SYSLINUX_TIMEOUT and SYSLINUX_ROOT instead of APPEND
Saul Wold [Tue, 21 Feb 2012 22:48:16 +0000 (14:48 -0800)]
boot-directdisk: Use correct SYSLINUX_TIMEOUT and SYSLINUX_ROOT instead of APPEND

(From OE-Core rev: 1284230ad554f8607cb02b054fdd74017ae7c861)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoimage-live: fix SYSLINUX_TIME and add SYSLINUX_ROOT instead of APPEND
Saul Wold [Tue, 21 Feb 2012 22:35:42 +0000 (14:35 -0800)]
image-live: fix SYSLINUX_TIME and add SYSLINUX_ROOT instead of APPEND

(From OE-Core rev: e03d5cbdfc39a835576b16a0beeea6858e983f56)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoimage_types: add vmdk type to use with VMware
Saul Wold [Tue, 21 Feb 2012 21:46:11 +0000 (13:46 -0800)]
image_types: add vmdk type to use with VMware

(From OE-Core rev: c18e6d444929c32a714b3e46f21567867e48814c)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agosyslinux: add SYSLINUX_ROOT to APPEND line
Saul Wold [Tue, 21 Feb 2012 21:17:41 +0000 (13:17 -0800)]
syslinux: add SYSLINUX_ROOT to APPEND line

By prepending the SYSLINUX_ROOT to the APPEND line, will allow a sane default
to be set for the various syslinux images

(From OE-Core rev: 47f53bc7998aa8390f846e939b6a7f6df3789777)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agosyslinux: Use SYSLINUX_TIMEOUT and SYSLINUX_PROMPT to configure syslinux
Saul Wold [Tue, 14 Feb 2012 05:29:55 +0000 (21:29 -0800)]
syslinux: Use SYSLINUX_TIMEOUT and SYSLINUX_PROMPT to configure syslinux

syslinux allows you to set TIMEOUT and PROMPT variables, when PROMPT is 0,
the "boot:" is not displayed uless one presses CTRL or SHIFT during startup.
TIMEOUT is in 1/10th of seconds, and a value of 0 for TIMEOUT will disable
the timeout mechanism.

In bitbake, recipes had set TIMEOUT (not SYSLINUX_TIMEOUT) incorrectly, other
patches fix this issues.  We are adding SYSLINUX_PROMPT to enable/disable the
"boot:" prompt in syslinux.

See http://www.syslinux.org/wiki/index.php/SYSLINUX for more details

(From OE-Core rev: be04e3b2e13c1a7e1cd5416771b72a80ec52b8ad)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoppp: Fix rp-pppoe plugin compilation
Yauhen Kharuzhy [Tue, 21 Feb 2012 14:04:38 +0000 (17:04 +0300)]
ppp: Fix rp-pppoe plugin compilation

rp-pppoe plugin was broken due linux headers changes: pppd has own copy of
if_pppol2tp.h file which is included from <linux/if_pppox.h>.

Add patch from Debian for struct pppol2tpv3_addr definition.

(From OE-Core rev: bc2581aff2a859b414c8097514527a9b5b0ab2a6)

Signed-off-by: Yauhen Kharuzhy <yauhen.kharuzhy@promwad.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agompeg2dec: depend on libx11 conditionally
Andreas Oberritter [Fri, 17 Feb 2012 22:56:11 +0000 (23:56 +0100)]
mpeg2dec: depend on libx11 conditionally

* mpeg2dec currently doesn't build if x11 is unavailable,
  due to an unconditional dependency on libx11. However,
  libx11 is not required to build mpeg2dec.

(From OE-Core rev: 6ebbeeb0bcd29aec25e2c437d0bc95dd78d62f82)

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agogst-plugins-base: depend on libx11 and libxv conditionally
Andreas Oberritter [Fri, 17 Feb 2012 22:56:10 +0000 (23:56 +0100)]
gst-plugins-base: depend on libx11 and libxv conditionally

* gst-plugins-base currently doesn't build if x11 is
  unavailable, due to unconditional dependencies on libx11
  and libxv. However, they are not required to build
  gst-plugins-base.

(From OE-Core rev: 668ebf38a5b9b0dbd0f6f1a0ebfafb04afbcbf07)

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoe2fsprogs: Cope with ${libdir} and ${base_libdir} being the same
Mike Crowe [Thu, 16 Feb 2012 15:13:35 +0000 (15:13 +0000)]
e2fsprogs: Cope with ${libdir} and ${base_libdir} being the same

${libdir} and ${base_libdir} may be the same. If they are don't try and
move files onto themselves.

(From OE-Core rev: 992604c533c9f3c2133cfa87c1121d43a508ec4a)

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobusybox: don't create /etc/default
Andreas Oberritter [Thu, 16 Feb 2012 02:08:41 +0000 (03:08 +0100)]
busybox: don't create /etc/default

* It's not used by the recipe and its creation
  currently depends on CONFIG_HWCLOCK=y.

(From OE-Core rev: cd59c2fcefa6aeacf78a63c5c9a623a4d77c0941)

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agodbus: Remove empty ${lindir}dbus-1.0/test directory as we don't build tests
Andrei Gherzan [Sun, 19 Feb 2012 21:03:37 +0000 (23:03 +0200)]
dbus: Remove empty ${lindir}dbus-1.0/test directory as we don't build tests

This empty directory generates a QA warning of unshippped files/dirs.

(From OE-Core rev: d3573ae136c532d3cf537ef05c22f163275f4f41)

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoe2fsprogs: e2initrd_helper was moved in libdir but not packaged correctly in FILES_li...
Andrei Gherzan [Sun, 19 Feb 2012 19:41:30 +0000 (21:41 +0200)]
e2fsprogs: e2initrd_helper was moved in libdir but not packaged correctly in FILES_libext2fs

The new install path of e2initrd_helper is %{libdir}. FILES_libext2fs modified accordigly to
avoid QA warnings.

(From OE-Core rev: 31684b34f3521e97dbfd35ff961960b9792ef657)

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agonspr: Add patch in order to remove rpath from binaries
Andrei Gherzan [Mon, 13 Feb 2012 20:54:36 +0000 (22:54 +0200)]
nspr: Add patch in order to remove rpath from binaries

This patch was created in order to avoid QA warnings.

(From OE-Core rev: 16b8a25ec03b9e9f360290263593b9f8f92bb9e1)

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agonspr: Compile nspr with tests
Andrei Gherzan [Sat, 11 Feb 2012 12:36:39 +0000 (14:36 +0200)]
nspr: Compile nspr with tests

1. Compile package tests suite
2. Add tests to -dev rpm as it needs dev libraries

(From OE-Core rev: c78db5086091e09e510fcd275918aee0949483c1)

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agonspr: Integrate version 4.8.9
Andrei Gherzan [Sun, 5 Feb 2012 20:58:32 +0000 (22:58 +0200)]
nspr: Integrate version 4.8.9

(From OE-Core rev: cbe6eced99566129c575b43a58cdde2ac669a741)

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agodhcp: Update to 4.2.3-P2
Andrei Gherzan [Tue, 7 Feb 2012 19:52:33 +0000 (21:52 +0200)]
dhcp: Update to 4.2.3-P2

1. Update to 4.2.3-P2
2. From 4.2.0 final release, -lcrypto check was removed and we compile static libraries
from bind that are linked to libcrypto. This is why i added a patch in order to add
-lcrypto to LIBS.
3. Add openssl in DEPENDS as we need libcrypto from this package
4. Drop installing /var/lib/dhcp/ as it is handled in pkg_postinst

(From OE-Core rev: 1cd882c47865a501d5401bad44e1c7f460ce2699)

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoautotools.bbclass: Don't copy into non-existant directory
Andreas Oberritter [Fri, 10 Feb 2012 18:00:50 +0000 (19:00 +0100)]
autotools.bbclass: Don't copy into non-existant directory

* If configure.ac contains AM_GNU_GETTEXT and po/Makefile.in.in
  doesn't exist, autotools_do_configure() copies a local
  version of Makefile.in.in to this location. If the directory
  'po' doesn't exist, the function aborts.

* This patch verifies that the directory exists before copying
  a file to it. This fixes libcddb, which uses AM_GNU_GETTEXT,
  but has no 'po' directory.

(From OE-Core rev: ba175bdfe85d701298d28e5190e55207420a24e8)

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agowireless-tools: remove ldconfig call from install-libs
Martin Jansa [Wed, 15 Feb 2012 19:59:49 +0000 (20:59 +0100)]
wireless-tools: remove ldconfig call from install-libs

* and drop apply=yes param as it's not needed

(From OE-Core rev: ca343882f8e95b49b18b234000e387c879cf5885)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoinitscripts: Make /etc/timestamp consistent again.
Gary Thomas [Fri, 10 Feb 2012 16:16:05 +0000 (09:16 -0700)]
initscripts: Make /etc/timestamp consistent again.

Commit cc8695 changed the way timestamps were handled
and added some extra munging to be able to compare them
reliably.  This change makes the timestamp value the same
everywhere and simplifies how the check to set the system
clock based on the timestamp is done.

Also, if the value stored in /etc/timestamp is newer
[at all] than the current system time, set the system clock
from the stored value, down to the minute, not just the day.

(From OE-Core rev: 5aab6653c9afa05e7c1b3ccd6bd34aec05c2a6f8)

Signed-off-by: Gary Thomas <gary@mlbassoc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoxorg-lib: don't build libs unless requested by DISTRO_FEATURES
Andreas Oberritter [Fri, 10 Feb 2012 01:27:54 +0000 (02:27 +0100)]
xorg-lib: don't build libs unless requested by DISTRO_FEATURES

* If 'x11' is not set in DISTRO_FEATURES, then skip all
  recipes using xorg-lib-common.inc instead of only those
  using libx11.inc.

* One exception: pixman, which is not only used by xorg,
  but also by cairo.

(From OE-Core rev: a101bc85adcc915f151348107e850b8998a395b0)

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoe2fsprogs: remove ldconfig call from install-libs
Martin Jansa [Thu, 23 Feb 2012 15:50:24 +0000 (16:50 +0100)]
e2fsprogs: remove ldconfig call from install-libs

(From OE-Core rev: 6a74c2050de4540deaf4e855bdf7aec4518f648a)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agosstate.bbclass: add *_config to SSTATE_SCAN_FILES
Martin Jansa [Thu, 23 Feb 2012 15:50:25 +0000 (16:50 +0100)]
sstate.bbclass: add *_config to SSTATE_SCAN_FILES

* e.g. mysql5 has mysql_config not mysql-config

(From OE-Core rev: aebdffc93ba8446bbd4e20263f0f75d4d4460c47)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoapr: add apr_rules.mk to SSTATE_SCAN_FILES
Martin Jansa [Thu, 23 Feb 2012 15:50:26 +0000 (16:50 +0100)]
apr: add apr_rules.mk to SSTATE_SCAN_FILES

(From OE-Core rev: 9db1f3b13c7e7f37c41f6a4fabdb2fc0c5ebc227)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolibsdl 1.2.14: regenerate patch so it applies with 'patch' as well as 'git apply'
Koen Kooi [Thu, 23 Feb 2012 17:43:05 +0000 (18:43 +0100)]
libsdl 1.2.14: regenerate patch so it applies with 'patch' as well as 'git apply'

The '@@ -, +, @@' part upsets plain 'patch'

(From OE-Core rev: 949f4dc6f2bd59aa3e2c782fee87f07438aebd21)

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agosstatesig.py: Move package exclusion list to the layer config
Richard Purdie [Thu, 23 Feb 2012 10:12:48 +0000 (10:12 +0000)]
sstatesig.py: Move package exclusion list to the layer config

its desireable for other layers to be able to append to the list of packages
with 'safe ABI's which are excluded from the sstate signatures.

I can't emphasise enough how careful you need to be with this list, anything
excluded here needs to be things which don't change interface and are consistent
between different machines.

(From OE-Core rev: 5adef35691a956c3071c0a1ed1caf6b58d1ec5a1)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agosstatesig.py: Add handling for machine specific module dependencies
Richard Purdie [Wed, 22 Feb 2012 22:15:59 +0000 (22:15 +0000)]
sstatesig.py: Add handling for machine specific module dependencies

Adding dependencies on machine specific recipes from generic packages
causes a rebuild of the generic package per machine if using signatures
for the stamp files which is unacceptable.

We need to declare that RRECOMMENDS on kernel-module-* are safe
and that we shouldn't care about these machine specific dependencies
from a stamp perspective. This change adds code which does this.

It depends on a change in bitbake to expose the dataCache object
which can be used to make the calculations we need to allow this to
work correctly.

(From OE-Core rev: 91fc672756d45086cdf4e9c6de8e920dcd8cd14e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agopython: add Makefile to SSTATE_SCAN_FILES
Martin Jansa [Thu, 23 Feb 2012 10:43:40 +0000 (11:43 +0100)]
python: add Makefile to SSTATE_SCAN_FILES

* it contains sysroot specific paths, this is from om-gta04 sysroot and
  notice nokia900
  ./usr/lib/python2.7/config/Makefile:CC=         arm-oe-linux-gnueabi-gcc  -march=armv7-a -fno-tree-vectorize      -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8 -D__SOFTFP__ --sysroot=/OE/shr-core/tmp-eglibc/sysroots/nokia900
  ./usr/lib/python2.7/config/Makefile:CXX=                arm-oe-linux-gnueabi-g++  -march=armv7-a -fno-tree-vectorize      -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8 -D__SOFTFP__ --sysroot=/OE/shr-core/tmp-eglibc/sysroots/nokia900
  ./usr/lib/python2.7/config/Makefile:LDFLAGS=-L. -L/OE/shr-core/tmp-eglibc/sysroots/nokia900/usr/lib     -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed
  ./usr/lib/python2.7/config/Makefile:LIBDIR=             /OE/shr-core/tmp-eglibc/sysroots/nokia900/usr/lib
  ./usr/lib/python2.7/config/Makefile:INCLUDEDIR= /OE/shr-core/tmp-eglibc/sysroots/nokia900/usr/include
  ./usr/lib/python2.7/config/Makefile:CONFIG_ARGS=         '--build=x86_64-linux' '--host=arm-oe-linux-gnueabi' '--target=arm-oe-linux-gnueabi' '--prefix=/usr' '--exec_prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--libexecdir=/OE/shr-core/tmp-eglibc/sysroots/nokia900/usr/libexec' '--datadir=/usr/share' '--sysconfdir=/etc' '--sharedstatedir=/com' '--localstatedir=/var' '--libdir=/usr/lib' '--includedir=/OE/shr-core/tmp-eglibc/sysroots/nokia900/usr/include' '--oldincludedir=/usr/include' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--disable-silent-rules' '--disable-dependency-tracking' \
  '--with-libtool-sysroot=/OE/shr-core/tmp-eglibc/sysroots/nokia900' '--with-threads' '--with-pymalloc' '--with-cyclic-gc' '--without-cxx' '--with-signal-module' '--with-wctype-functions' '--enable-shared' 'build_alias=x86_64-linux' 'host_alias=arm-oe-linux-gnueabi' 'target_alias=arm-oe-linux-gnueabi' 'CC=arm-oe-linux-gnueabi-gcc  -march=armv7-a -fno-tree-vectorize      -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8 -D__SOFTFP__ --sysroot=/OE/shr-core/tmp-eglibc/sysroots/nokia900' 'CFLAGS=-O2 -pipe -g -feliminate-unused-debug-types' 'LDFLAGS=-L. -L/OE/shr-core/tmp-eglibc/sysroots/nokia900/usr/lib-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed' 'CPPFLAGS=' 'CPP=arm-oe-linux-gnueabi-gcc -E --sysroot=/OE/shr-core/tmp-eglibc/sysroots/nokia900  -march=armv7-a -fno-tree-vectorize      -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8 -D__SOFTFP__'
  ./usr/lib/python2.7/config/Makefile:            $(RUNSHARED) /OE/shr-core/tmp-eglibc/sysroots/nokia900/usr/libexec/oah/translate ./$(BUILDPYTHON) -E -tt $(TESTPROG) -uall $(TESTOPTS)

(From OE-Core rev: bf1628286987ad6b4a762b0aeb6aece4a51e7255)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolib/oe/utils.py: use bb.utils.vercmp_string
Andreas Oberritter [Thu, 23 Feb 2012 20:46:13 +0000 (21:46 +0100)]
lib/oe/utils.py: use bb.utils.vercmp_string

Fixes the following warning:

| WARNING: .../meta/lib/oe/utils.py:31: DeprecationWarning: Call to deprecated function bb.vercmp_string: Please use bb.utils.vercmp_string instead.
|  result = bb.vercmp(d.getVar(variable,True), checkvalue)

(From OE-Core rev: 925a9729afaa9cd498661f7f363112c974b023a2)

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: change for adding progress bar in Hob2.
Shane Wang [Thu, 23 Feb 2012 13:47:16 +0000 (21:47 +0800)]
bitbake: change for adding progress bar in Hob2.

The changes include:
- Clean some events in event.py
- Fire essential events for Hob2 to handle with more information.
- knotty changes

(Bitbake rev: 9ede881620c501574f014e600cea6947ea908ac2)

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agocommand.py: add resolve option for generateTargetsTree API
Dongxiao Xu [Thu, 23 Feb 2012 13:47:14 +0000 (21:47 +0800)]
command.py: add resolve option for generateTargetsTree API

Currently we have generateTargetsTree API, which is used to get
dependency information. However in that tree, there will be
"virtual/xxx" in depends fields. Therefore we add the resolve option
to replace it with its real providers.

Besides, for packages that provided by multiple recipes, we will find
their preverred provider.

(Bitbake rev: 28501612efdfc6ee47576cc90deb6e897883e7f5)

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agocommand.py: Add a new API triggerEvent()
Dongxiao Xu [Thu, 23 Feb 2012 13:47:20 +0000 (21:47 +0800)]
command.py: Add a new API triggerEvent()

This functions enables the client to request triggering specific event
from bitbake server.

(Bitbake rev: 45da6d709a69697158fae92e1c0c0a6ac8f30831)

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agocommand.py: add new API to get the cpu count on the server
Shane Wang [Thu, 23 Feb 2012 13:47:19 +0000 (21:47 +0800)]
command.py: add new API to get the cpu count on the server

Add a new API in command.py to get the cpu count in order to set the appropriate default BB_NUMBER_THREADS and PARALLEL_MAKE variables.

(Bitbake rev: 335047b2e440e65713e88fabb24b47a9c82f939b)

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: Add client socket info for BitBakeServerConnection
Dongxiao Xu [Thu, 23 Feb 2012 13:47:18 +0000 (21:47 +0800)]
bitbake: Add client socket info for BitBakeServerConnection

In server/client split model, the client will bind to a specific address
and port. We need to pass the values to BitBakeServerConnection().

(Bitbake rev: c8e19c5c389efc06696084c6f9439ba75472c5b7)

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: add -B option to bind with interface
Dongxiao Xu [Thu, 23 Feb 2012 13:47:17 +0000 (21:47 +0800)]
bitbake: add -B option to bind with interface

When start bitbake as a server only process, we need to assign certain
interface to it.

(Bitbake rev: 95b97d2dc6466ea3d99371f5b5bd68f6f3c99074)

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoevent.py: Add new events RequestPackageInfo and PackageInfo
Dongxiao Xu [Thu, 23 Feb 2012 13:47:15 +0000 (21:47 +0800)]
event.py: Add new events RequestPackageInfo and PackageInfo

RequestPackageInfo is triggered by GUI client to request the available
package information.

PackageInfo event is to pass package information back to GUI.

(Bitbake rev: 9020c2d4476766f63ff7e024bbd99043d06feefc)

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agocache: Use configuration's hash value to validate cache
Dongxiao Xu [Thu, 23 Feb 2012 13:47:13 +0000 (21:47 +0800)]
cache: Use configuration's hash value to validate cache

Previously we use the file time stamp to judge if a cache is valid.
Here this commit introduce a new method, which calculates the total
hash value for a certain configuration's key/value paris, and tag
it into cache filename, for example, bb_cache.dat.xxxyyyzzz.

This mechanism also ensures the cache's correctness if user
dynamically setting variables from some frontend GUI, like HOB.

(Bitbake rev: 1c1df03a6c4717bfd5faab144c4f8bbfcbae0b57)

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: add file and line number to ParseError
Paul Eggleton [Thu, 23 Feb 2012 17:38:08 +0000 (17:38 +0000)]
bitbake: add file and line number to ParseError

Ensure that a file and line number are reported for ParseError where
possible. This helps particularly in the case of inherit and require
which previously did not report either of these upon failure.

(Bitbake rev: f588ba69622a2df35417ced184e56c79ac1b40d5)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: fix parse errors not being reported
Paul Eggleton [Thu, 23 Feb 2012 17:38:07 +0000 (17:38 +0000)]
bitbake: fix parse errors not being reported

Fixes a regression introduced in BitBake rev
c9f58ef6b897d3fa5b0d23734b5f2cb3dabb057a which prevents errors during
parsing from being fully reported because BitBake shuts down before it
can print them. Move the error printing to before the shutdown in order
to fix it.

Also remove a couple of superfluous calls to sys.exit() since these
will never be called (as self.shutdown(clean=False) does this itself).

(Bitbake rev: 356c42ed00541dea2c382c57f768a4f431d22db0)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agosiggen.py: Pass the datacache to signature generator classes
Richard Purdie [Wed, 22 Feb 2012 22:50:02 +0000 (22:50 +0000)]
siggen.py: Pass the datacache to signature generator classes

The dataCache exposes much useful information to the singature generation code
for example its possible to figure out whether kernel dependencies are
important or not based on the RRECOMMENDS values.

We therefore pass this information to the handler and trust it to handle
any API changes in the dataCache structure.

For backwards compatibility, OE-Core is already updated to handle
the extra argument when it appears.

(Bitbake rev: 4ebc25155d5f96a7f63de22b52b18d045eb4dec7)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agotexi2html: Fix for multilib
Zhai Edwin [Wed, 22 Feb 2012 05:33:43 +0000 (13:33 +0800)]
texi2html: Fix for multilib

(From OE-Core rev: 55f72b98f606c1554eb6edd151292ffdfddf1384)

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoquicky: Fix for multilib
Zhai Edwin [Wed, 22 Feb 2012 05:33:42 +0000 (13:33 +0800)]
quicky: Fix for multilib

(From OE-Core rev: 1be7873cec6630ddb485590a8473e04cfb224615)

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agonetbase: remove redundant assignments
Joshua Lock [Wed, 22 Feb 2012 01:46:44 +0000 (17:46 -0800)]
netbase: remove redundant assignments

There's no need to explicitly set PACKAGE_ARCH = MACHINE_ARCH, base.bbclass
takes care of setting this value for us based on the interfaces for those
machines being an OVERRIDE.

(From OE-Core rev: c3d5800d2850a186f91b5a0db642aa5d1c20156b)

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobase.bbclass: check all entries of FILESPATH for MACHINE overrides
Joshua Lock [Wed, 22 Feb 2012 01:46:42 +0000 (17:46 -0800)]
base.bbclass: check all entries of FILESPATH for MACHINE overrides

The logic which looks for MACHINE overrides in SRC_URI and updates
PACKAGE_ARCH was checking only certain subdirectories of the recipes parent
which, amongst other issues, doesn't account for SRC_URI overrides in layers.

This patch changes the logic such that all FILESPATH entries are checked
for children named for MACHINE.

(From OE-Core rev: f2b572072c754048aaafdc4c42b71af87d61d9e7)

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoexternal-csl-toolchain: skip parsing if CSL_VER_MAIN isn't set
Joshua Lock [Wed, 22 Feb 2012 01:46:43 +0000 (17:46 -0800)]
external-csl-toolchain: skip parsing if CSL_VER_MAIN isn't set

(From OE-Core rev: 264d1254e5ac11613af06c0f1c53c736f54e9f54)

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agosanity.bbclass: Add ABI version 8, used for transition from the OEBasic to OEBasicHas...
Richard Purdie [Wed, 22 Feb 2012 22:01:52 +0000 (22:01 +0000)]
sanity.bbclass: Add ABI version 8, used for transition from the OEBasic to OEBasicHash stamp layout

(From OE-Core rev: bf440fd971dd549ae4e92c54046ea062ef51cd85)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake/ui/knotty: fix incorrect exit code
Paul Eggleton [Wed, 22 Feb 2012 21:24:41 +0000 (21:24 +0000)]
bitbake/ui/knotty: fix incorrect exit code

The recent Ctrl+C patch was not fully tested; the variable it was
relying upon is set to non-zero under other circumstances and thus
bitbake was reporting that it was interrupted and returning a non-zero
exit code when it was not. Track this status in a separate variable
in order to fix the issue.

(Bitbake rev: 95a599067650902727ecb4a39d6dd003c5cfedf3)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agosiggen: compare runtaskdeps dictionary even when they have the same size
Martin Jansa [Wed, 22 Feb 2012 15:01:59 +0000 (16:01 +0100)]
siggen: compare runtaskdeps dictionary even when they have the same size

* otherwise it reports lots of changed checksums just because it compares different tasks

  notice linux-libc-headers_3.1.bb.do_package_write:
  Task dependency hash changed from 42acced29debf54d598802474c5e9cbb to f438a54f995df77620d0727d6f4b4ce5 (for linux-libc-headers_3.1.bb.do_package_write and linux-gta04_git.bb.do_deploy)
  Task dependency hash changed from 61f8babe1d10c6e7fb1423112bb04e1e to 1b3e21ff106ecfcb7ddf76a1e29537bb (for linux-nokia900-meego_git.bb.do_deploy and linux-gta04_git.bb.do_package_write)
  Task dependency hash changed from 512f9d6686d760b318d8b11c8b589226 to 42acced29debf54d598802474c5e9cbb (for linux-nokia900-meego_git.bb.do_package_write and linux-libc-headers_3.1.bb.do_package_write)
  Task dependency hash changed from 153e91dfd1d2053fda7b98cc08d4b802 to 92a293bdd8ed234932b87a66025038c5 (for systemd-serialgetty.bb.do_package_write and systemd-serialgetty.bb.do_package_write)
  Task dependency hash changed from 730abebf9954794bb440c2f3239f79fe to 413eaebaff27a2fd16f5cf68c1f4ff17 (for systemd_git.bb.do_package_write and systemd_git.bb.do_package_write)

  with this patch:
  Dependency on task linux-nokia900-meego_git.bb.do_package_write was added
  Dependency on task linux-nokia900-meego_git.bb.do_deploy was added
  Dependency on task linux-gta04_git.bb.do_deploy was removed
  Dependency on task linux-gta04_git.bb.do_package_write was removed
  Hash for dependent task systemd_git.bb.do_package_write changed from 730abebf9954794bb440c2f3239f79fe to 413eaebaff27a2fd16f5cf68c1f4ff17
  Hash for dependent task systemd-serialgetty.bb.do_package_write changed from 153e91dfd1d2053fda7b98cc08d4b802 to 92a293bdd8ed234932b87a66025038c5

* added test if there is different task with same hash then we don't
  show it as added/removed dependency, because bitbake doesn't care

(Bitbake rev: ca52bf32b479811bd7fed41648bedcc06b00430b)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake/knotty: ensure CommandFailed increases error count
Paul Eggleton [Mon, 13 Feb 2012 11:41:33 +0000 (11:41 +0000)]
bitbake/knotty: ensure CommandFailed increases error count

CommandFailed already sets the return code, so we print out the error
summary message, however we don't increase the error count so it is
usually zero in this case. As we are actually showing an ERROR message,
increment the error count so that the summary makes sense.

(Bitbake rev: aeb71c3ca65dc42015c29c0e4cac050bfbcb51a5)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake/knotty: ensure we return non-zero exit code on Ctrl+C
Paul Eggleton [Mon, 13 Feb 2012 11:41:32 +0000 (11:41 +0000)]
bitbake/knotty: ensure we return non-zero exit code on Ctrl+C

If the user uses Ctrl+C to exit out of the build, then ensure we return
a non-zero exit code since the entire build was not completed
successfully.

If nothing else, this is useful to avoid continuing in the bitbake
wrapper script in OE-Core if the initial pseudo build is interrupted.

(Bitbake rev: c11eab7fa230f1fd5cc33589f3555b94e95f202d)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobitbake: show appropriate warnings for universe target
Paul Eggleton [Mon, 13 Feb 2012 11:41:31 +0000 (11:41 +0000)]
bitbake: show appropriate warnings for universe target

When building the universe target:
* Show a warning about universe likely producing errors
* Multiprovider errors are now shown as warnings

Also remove an unused "error" variable in runqueue.py.

Fixes [YOCTO #1936]

(Bitbake rev: 293c796e8a3d1f74ca1e51017b6dede261612281)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoFix parser hang at 0% with single-core machines
Caleb Crome [Fri, 17 Feb 2012 20:21:59 +0000 (12:21 -0800)]
Fix parser hang at 0% with single-core machines

The number of threads is self.num_processes - 1 due to the range(1,
self.num_processes). Fixed by changing to range(0, self.num_processes).

(Bitbake rev: adc041fd9e3def29cdf9c1ae4849c5383bac46e5)

Signed-off-by: Caleb Crome <caleb@signalessence.com>
Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agopersist_data: survive if sqlite3 couldn't enable the shared cache
Christopher Larson [Thu, 16 Feb 2012 23:46:20 +0000 (16:46 -0700)]
persist_data: survive if sqlite3 couldn't enable the shared cache

(Bitbake rev: e870fd57bb84a17a871a5b5de3bf5202fe9b135f)

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoknotty: shut down more cleanly
Christopher Larson [Tue, 7 Feb 2012 18:07:40 +0000 (12:07 -0600)]
knotty: shut down more cleanly

This ensures that when we are shutting down, we drain the queue of events from
the server. This ensures that the server never gets hung up on the join of the
feeder thread associated with the event queue, thereby avoiding a bitbake hang
issue.

Also, since the third keyboard interrupt now behaves the same as the second,
removed that message.

(Bitbake rev: ce9e0946b8a412616074809c76fba54f8bff36c4)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agocooker: roll our own process pool
Christopher Larson [Mon, 9 Jan 2012 18:31:32 +0000 (12:31 -0600)]
cooker: roll our own process pool

This fixes the hang issue encountered with parse errors. The underlying issue
seems to have been the pool.terminate(). This sends SIGTERM to each of the
multiprocessing pool's processes, however, a python process terminating in
this fashion can corrupt any queues it's interacting with, causing a number of
problems for us (e.g. the queue that sends events to the UI).

So instead of using multiprocessing's pool, we roll our own, with the ability
to cancel the work. In the very long term, the python concurrent.futures
module introduced in python 3.2 could be used to resolve this as well.

(Bitbake rev: 7c39cfd8e060cca8753ac4114775447b18e13067)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoiputils: Add base_libdir to VPATH in order to find the crypto library
Saul Wold [Thu, 16 Feb 2012 23:24:09 +0000 (15:24 -0800)]
iputils: Add base_libdir to VPATH in order to find the crypto library

(From OE-Core rev: d4ffe12ca36bf10be4e0f9565d7c3d8e6f4a265a)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoconsolekit: depend on libx11
Andreas Oberritter [Fri, 10 Feb 2012 22:04:13 +0000 (23:04 +0100)]
consolekit: depend on libx11

* Fixes the following error at configure time:

|checking for TOOLS... no
|configure: error: Package requirements (x11 >= 1.0.0
|  glib-2.0 >= 2.14
|) were not met:
|
|No package 'x11' found

(From OE-Core rev: e5c60517a22997bb966bbe21a2d7cbc99a97b42b)

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoudev.inc has a bad link for udev home page; update the link
Bob Cochran [Mon, 13 Feb 2012 04:48:09 +0000 (23:48 -0500)]
udev.inc has a bad link for udev home page; update the link

Fixed bad link in udev.inc to the udev home page / documentation on
kernel.org

(From OE-Core rev: 479b9a52a013d990da296f96bd658db00423f9a6)

Signed-off-by: Robert Cochran<yocto@mindchasers.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoAdd sanity checks for eglibc locale
Ken Werner [Wed, 15 Feb 2012 08:49:07 +0000 (09:49 +0100)]
Add sanity checks for eglibc locale

Add sanity checks that test for the existance of folders. This allows to use
an external binary toolchain that doesn't have localization support.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolibsdl: add fix for new _XGetRequest symbol backported to libx11
Martin Jansa [Wed, 15 Feb 2012 18:45:38 +0000 (19:45 +0100)]
libsdl: add fix for new _XGetRequest symbol backported to libx11

(From OE-Core rev: d2c96e22de19a649ff7121e5ea0f95797abba93a)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoeds-tools: Update it to fix the build error
Wenzong Fan [Tue, 14 Feb 2012 01:32:27 +0000 (09:32 +0800)]
eds-tools: Update it to fix the build error

The head file 'libedataserver/e-data-server-module.h' has been moved
to 'libebackend/e-data-server-module.h', just update eds-tools to get
the latest changes for fixing the path of 'e-data-server-module.h'.

Also update its recipe file to reflect it has been converted to git
repo and split all generated binaries to correct packages.

[YOCTO#1786]

(From OE-Core rev: 38d74ee1fe6f28ec4d7db79f550c7d2830d922fb)

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobuildhistory_analysis: correctly split RDEPENDS/RRECOMMENDS
Paul Eggleton [Mon, 13 Feb 2012 18:14:18 +0000 (18:14 +0000)]
buildhistory_analysis: correctly split RDEPENDS/RRECOMMENDS

Split RDEPENDS and RRECOMMENDS correctly (which may contain version
number specifications after each item).

(From OE-Core rev: d974ed4330f33c4f8dfd635a83c61a0d44e688b6)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agobuildhistory_analysis: avoid noise due to reordering
Paul Eggleton [Mon, 13 Feb 2012 18:09:12 +0000 (18:09 +0000)]
buildhistory_analysis: avoid noise due to reordering

Avoid noise in the output due to reordering of list variables (except
for PACKAGES where we just report that the order changed). Recent
changes to the buildhistory class itself will avoid this reordering
from occurring but this allows us to examine the results before and
after those changes.

(From OE-Core rev: e23c5b01766602c9c86b0a7ba170fb3b1aceb658)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoclasses/buildhistory: fix splitting on + in package list fields
Paul Eggleton [Tue, 14 Feb 2012 11:17:51 +0000 (11:17 +0000)]
classes/buildhistory: fix splitting on + in package list fields

Ensure we do not erroneously split on + in RDEPENDS/RRECOMMENDS e.g.
libstdc++-dev was being split into libstdc and -dev.

(From OE-Core rev: cad533880df42ad4fe6f04d56d3a59cb4a033275)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoclasses/buildhistory: use hostname instead of reading /etc/hostname
Paul Eggleton [Tue, 14 Feb 2012 10:55:46 +0000 (10:55 +0000)]
classes/buildhistory: use hostname instead of reading /etc/hostname

For the purposes of querying the hostname to include it in the commit
message, it seems "cat /etc/hostname" does not work on the Yocto Project
autobuilder machines, and it's likely that the hostname command will be
more generally reliable, so use that instead.

(From OE-Core rev: cb939b753c9e7648a38e22e0349c279da785e69d)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoclasses/buildhistory: sort FILELIST in package info
Paul Eggleton [Mon, 13 Feb 2012 17:03:39 +0000 (17:03 +0000)]
classes/buildhistory: sort FILELIST in package info

The FILELIST order can vary depending on the order the files were
written which may change between builds with no ill effect, so sort the
list prior to writing it.

(From OE-Core rev: 2e9981000a211a89f88d7728393cc231e466581a)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoclasses/buildhistory: sort and de-dupe dependency graphs
Paul Eggleton [Mon, 13 Feb 2012 15:53:47 +0000 (15:53 +0000)]
classes/buildhistory: sort and de-dupe dependency graphs

Sort dependencies of each package which sometimes change order and cause
noise in the buildhistory repo, and at the same time remove duplicates
(which seem to be common especially for the RPM package query output).

(From OE-Core rev: 830df6067c1ea4a5aab580b42ba7e1e84fe1bcbf)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoclasses/buildhistory: squash spaces out of image variables
Paul Eggleton [Mon, 13 Feb 2012 14:41:44 +0000 (14:41 +0000)]
classes/buildhistory: squash spaces out of image variables

Values of image variables that are lists (e.g. IMAGE_INSTALL) are easier
to read if there are no extraneous spaces in them, so ensure that there
is only one space between each item.

(From OE-Core rev: 200159125eb6bcfc046c45cf5160b2eb340625e3)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agotask-self-hosted: add connman and connman-plugin-ethernet
Dexuan Cui [Tue, 14 Feb 2012 14:41:16 +0000 (22:41 +0800)]
task-self-hosted: add connman and connman-plugin-ethernet

Without this, the VMware guest running self-hosted-image can't get IP
address automatically.

(From OE-Core rev: 3fa9a7e4dc9eadce22a9838d2067d5af0111b04b)

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agomini-x-session: try to use a resolution that's big enough for hob2's window
Dexuan Cui [Tue, 14 Feb 2012 14:34:15 +0000 (22:34 +0800)]
mini-x-session: try to use a resolution that's big enough for hob2's window

The patch was tested on VMware Player 4.0.1.

(From OE-Core rev: d33cc3be420fb509d8dddb1f1a752db6d41f50f9)

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agogcc: Excluding the DATE/SRCDATE from do_patch dependency.
Lianhao Lu [Tue, 14 Feb 2012 02:57:52 +0000 (10:57 +0800)]
gcc: Excluding the DATE/SRCDATE from do_patch dependency.

Corrected the error introduced by commit afb400e of dropping
DATE/SRCDATE out of the vardepsexlude list of do_patch.

(From OE-Core rev: 6546096d068b51cc9cf4557cdb35aee6f62838d5)

Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agorpcbind: add DEPENDS on quota for rpcsvc/rquota.h
Saul Wold [Sat, 11 Feb 2012 00:06:10 +0000 (16:06 -0800)]
rpcbind: add DEPENDS on quota for rpcsvc/rquota.h

(From OE-Core rev: 4771f4af5926d724958ba7cf46b937c53babfc7c)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agou-boot-fw-utils: Add DEPEND on mtd-utils
Saul Wold [Sat, 11 Feb 2012 00:05:46 +0000 (16:05 -0800)]
u-boot-fw-utils: Add DEPEND on mtd-utils

(From OE-Core rev: 47d8444edb644a92d3bae524c8a2a42a1cdf740c)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agozlib: remove ldconfig call from install-libs
Martin Jansa [Mon, 13 Feb 2012 15:40:48 +0000 (16:40 +0100)]
zlib: remove ldconfig call from install-libs

* it's called from install-libs target and when /etc/ld.so.cache is writeable by user running bitbake
  then it creates invalid cache (in my case libstdc++.so cannot be found after building zlib(-native)
  and I have to call touch */libstdc++.so && /sbin/ldconfig to fix it

(From OE-Core rev: b5c8add7f3ed58451cb460a242b4edd671ba618e)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agorecipes: bump PR to rebuild .la files without libz.la
Martin Jansa [Mon, 13 Feb 2012 15:40:49 +0000 (16:40 +0100)]
recipes: bump PR to rebuild .la files without libz.la

(From OE-Core rev: 1da6a2dbd5e7aeea6cd45ca05590bdd50b67bf89)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoscripts/combo-layer: allow updating a specific component(s) only
Paul Eggleton [Tue, 14 Feb 2012 13:44:03 +0000 (13:44 +0000)]
scripts/combo-layer: allow updating a specific component(s) only

If you specify one or more components to update immediately following
the "update" command, only these components will be updated as opposed
to the default behaviour of updating all of them.

(From OE-Core rev: 1779afce024b31edcf846329da705ed5aa9fe63e)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoconf/bitbake.conf: remove Opie definitions
Paul Eggleton [Tue, 14 Feb 2012 13:22:25 +0000 (13:22 +0000)]
conf/bitbake.conf: remove Opie definitions

These values are now set via palmtop-defs.bbclass in meta-opie (and are
not needed for anything else.)

(From OE-Core rev: a18de4dc0b988c79964354496a6a93c7ee5a28f6)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoclasses/sdl: remove Opie-specific desktop file/packaging
Paul Eggleton [Tue, 14 Feb 2012 13:22:26 +0000 (13:22 +0000)]
classes/sdl: remove Opie-specific desktop file/packaging

This code will not work without palmtopdir being defined, and is better
kept in meta-opie in any case (where we already have the OE-Classic
version of this class).

(From OE-Core rev: e45b0672e28d19cfb66c9e57e153ef15e004dcaf)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agostat: remove NATIVE_INSTALL_WORKS
Paul Eggleton [Tue, 14 Feb 2012 13:22:27 +0000 (13:22 +0000)]
stat: remove NATIVE_INSTALL_WORKS

This variable is no longer used in OE-Core.

(From OE-Core rev: b70d100047912569d6eb060eb48a753c56968d89)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoscripts/combo-layer: add branch option to example config
Paul Eggleton [Tue, 14 Feb 2012 13:44:06 +0000 (13:44 +0000)]
scripts/combo-layer: add branch option to example config

Minor improvements to the example combo-layer config file:
* Add the recently added branch option to the optional options section
* Mention in comments that last_revision gets updated during "update"
* Tidy up some more grammar

(From OE-Core rev: 065798d8dd0552934175f794f7678e0dd24ef152)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoscripts/combo-layer: avoid saving last revision if unchanged
Paul Eggleton [Tue, 14 Feb 2012 13:44:05 +0000 (13:44 +0000)]
scripts/combo-layer: avoid saving last revision if unchanged

If we are running an update and the last revision hasn't changed since
the last update, don't write to the configuration file. This avoids
committing the config file with no changes other than spontaneous
reordering of sections, which sometimes occurs due to the behaviour of
the internal dictionary in Python's ConfigParser class. (This can be
fixed properly but the fix is only easy in Python 2.7+ due to the
availability there of the collections.OrderedDict class, and we
currently want to be compatible with 2.6.x as well.)

(From OE-Core rev: 4592f238de3fe6b0384c334774be9fcfc0985e4f)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoscripts/combo-layer: avoid error when config file is outside repo
Paul Eggleton [Tue, 14 Feb 2012 13:44:04 +0000 (13:44 +0000)]
scripts/combo-layer: avoid error when config file is outside repo

Avoid displaying the error from the "git status" command we use to check
the status of the config file if the config file is outside of the
repository (a situation that is already handled).

(From OE-Core rev: 9d3e54057673348e85ba479705c4ffaad56973d6)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoscripts/bitbake: pass through debug options to initial pseudo build
Paul Eggleton [Tue, 14 Feb 2012 13:22:24 +0000 (13:22 +0000)]
scripts/bitbake: pass through debug options to initial pseudo build

If you specify -D or -v options to the bitbake wrapper script, and the
initial pseudo build needs to be done, it's useful to pass these
options through to that command so that you can debug the initial
pseudo build as well.

(From OE-Core rev: dcf6f72c35f7c108e447d01c15df86807e26a88b)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoguile: fix cross configure failure
Lianhao Lu [Fri, 10 Feb 2012 07:37:54 +0000 (15:37 +0800)]
guile: fix cross configure failure

[YOCTO #1978]
Fixing the cross configure failure by not searching libltdl and libgmp
in includedir and libdir.

(From OE-Core rev: e5ad03093dfc4364d1407183f458df79f347c7a1)

Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoRevert the switch to futures for now
Christopher Larson [Fri, 3 Feb 2012 15:12:55 +0000 (08:12 -0700)]
Revert the switch to futures for now

Without it, we get random hangs on parse failure. With it, some folks have
seen hangs even on successful cases. The former is clearly less problematic.
This is temporary, until I can finish investigating the root causes of both
issues.

(Bitbake rev: db689a99beffea1a285cdfc74a58fe73f1666987)

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agosiggen.py: Handle cases where the input to symmetric_difference() may be None
Richard Purdie [Fri, 10 Feb 2012 16:53:45 +0000 (16:53 +0000)]
siggen.py: Handle cases where the input to symmetric_difference() may be None

[YOCTO #1967]

(Bitbake rev: f6cee29bf853874876923a7d6ae8574e3801ae8d)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agovalgrind: Fixed Added-support-for-PPC-instructions-mfatbu-mfatbl.patch Upstream-Status
Saul Wold [Fri, 10 Feb 2012 08:19:19 +0000 (00:19 -0800)]
valgrind: Fixed Added-support-for-PPC-instructions-mfatbu-mfatbl.patch Upstream-Status

(From OE-Core rev: c8f821484939348dfa63e11c5c9c6571708553ab)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agogcc: Ensure same sstate hashes for shared soruce directory
Lianhao Lu [Fri, 10 Feb 2012 03:42:18 +0000 (11:42 +0800)]
gcc: Ensure same sstate hashes for shared soruce directory

Ensure do_patch have the same sstate hashes for nativesdk variants of
gcc family recipes, since they share the same source directory.

(From OE-Core rev: afb400e9c3ddac604906bde44df5da29a6c134d9)

Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agogcc-4.6: Some small performance tweaks
Richard Purdie [Fri, 10 Feb 2012 00:06:12 +0000 (00:06 +0000)]
gcc-4.6: Some small performance tweaks

a) Use the system zlib to avoid building it for each gcc.
b) -initial and -intermediate don't need plugins or lto-plugin
   so disable them.

(From OE-Core rev: a124a0883507caf4ffb7e25be666f6781b30abdd)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agopackage.bbclass: Optimise the per file rpm handling
Richard Purdie [Fri, 10 Feb 2012 00:10:38 +0000 (00:10 +0000)]
package.bbclass: Optimise the per file rpm handling

Currently a process was being forked off for each individual file
this class wanted to inspect with rpmdeps. This converts it to use
rpmdeps-oecore which allows batch processing of these dependencies.

For do_package for perl, this reduced the time by about 1 minute (33%).

(From OE-Core rev: 548037acd63bd4859f8de8d23a3d12f36ce9f97f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agosstate.bbclass: Optimise sstate_hardcode_path
Richard Purdie [Fri, 10 Feb 2012 00:07:05 +0000 (00:07 +0000)]
sstate.bbclass: Optimise sstate_hardcode_path

The sstate_hardcode_path() function triggered large numbers of exec()
calls when processing packages with large numbers of file relocations
(e.g. perl). This patch optimises those calls into longer single commands
which make the code significantly more efficient.

This reduced the do_package time for perl by 2 minutes (from 4.75 minutes)
for me.

(From OE-Core rev: 4159ff761cf29a03aeb56c7686a4e7af02b52219)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agognupg: Add missing DEPENDS on libgcrypt
Khem Raj [Fri, 10 Feb 2012 00:09:36 +0000 (16:09 -0800)]
gnupg: Add missing DEPENDS on libgcrypt

Found during single recipe rebuilds

(From OE-Core rev: bb672b1591197966b79fbcf7753f995b8e829e65)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agosat-solver: Fix build with zlib 1.2.6
Khem Raj [Fri, 10 Feb 2012 00:07:46 +0000 (16:07 -0800)]
sat-solver: Fix build with zlib 1.2.6

(From OE-Core rev: 6064f6bd7c28640db59a216aa578f3cca6219b1f)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agozlib: Upgrade 1.2.5 -> 1.2.6
Khem Raj [Mon, 30 Jan 2012 23:04:45 +0000 (15:04 -0800)]
zlib: Upgrade 1.2.5 -> 1.2.6

Dont use autotools, it really not so autoconf like.
the configure script gets updated with every release of zlib
and we overwrite that. Instead use the upstream provided
configure

copyright year was changed in zlib.h which caused change in
LIC_FILE_CHECKSUM

fix.inverted.LFS.logic.patch is already applied upstream so drop it

Drop the configure.ac and Makefile.am scripts since we do not
autoreconf anymore and do not inherit autotools anymore

Bump PR for depending recipes so a rebuild it ensues so that
they dont depend on .la anymore
and add missing dependencies discovered during incremental
build

(From OE-Core rev: 50ad5230ea9e0982cdfda23fb9fcfccf89d28f29)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>