scm/bb/tizen-distro.git
11 years agopostinst-intercepts, qemu.bbclass: fix issue on 32 bit hosts
Laurentiu Palcu [Fri, 5 Apr 2013 16:12:26 +0000 (19:12 +0300)]
postinst-intercepts, qemu.bbclass: fix issue on 32 bit hosts

The intercept scripts fail to run on 32 bit hosts. Apparently, the
current approach worked on 64 bit hosts due to the larger virtual address
space (probably). On 32 bit hosts, however, calling the target binary like:

qemu-arm ld-linux.so --library-path /lib:/usr/lib arm_binary

fails with:

arm_binary: error while loading shared libraries: arm_binary: failed to
map segment from shared object: Operation not permitted

When run like this, qemu-arm fails to map the arm_binary executable in
memory because it's hitting the lower limit of
/proc/sys/vm/mmap_min_addr. That's because it loads the
ld-linux.so binary successfully, taking into account mmap_min_addr, runs
it, and then ld-linux.so will map the arm_binary at a fixed address but this
will fail because it is below mmap_min_addr. The qemu's guest base probing,
apparently, doesn't work fine when a program runs inside other.

One way around this would be to set mmap_min_addr to 0 (on recent
distributions is set to 65536 to avoid "kernel NULL pointer dereference"
defects) but this approach is not safe.

The other way is to call the binary directly but providing qemu with a
prefix (-L option) in order to find the elf interpreter correctly. This
way, both the target binary and dynamic loader are mapped into memory
under qemu's control and, only after, the dynamic loader is started.

[YOCTO #4179]

(From OE-Core rev: 78f91e08c8a7b0f0c831a087f7c89e2c76047e7a)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosite/common-uclibc: add predefined configure vars for coreutils
Henning Heinold [Fri, 5 Apr 2013 07:22:57 +0000 (09:22 +0200)]
site/common-uclibc: add predefined configure vars for coreutils

* this sets some configure vars which will be guessed
  false in cross-compile case for uclibc

(From OE-Core rev: c5337326005c975425b1eb2b62796e9b33f72ac3)

Signed-off-by: Henning Heinold <heinold@inf.fu-berlin.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqemuimage-testlib-pythonhelper: Fix process mixups
Richard Purdie [Fri, 5 Apr 2013 10:00:25 +0000 (10:00 +0000)]
qemuimage-testlib-pythonhelper: Fix process mixups

runqemu-internal runs "ldd qemu-system xxx" and the detection code was returning this
as the PID of qemu. This patch improves the detection code to avoid this problem,
fixing certain race type failures on the autobuilder.

(From OE-Core rev: fc914a6fb3204f8b5bdfc0f56364606673d5356a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoscripts/sstate-cache-management.sh: fix return value by adding exit 0
Henning Heinold [Fri, 5 Apr 2013 07:22:58 +0000 (09:22 +0200)]
scripts/sstate-cache-management.sh: fix return value by adding exit 0

* usefull for jenkins jobs, which will otherwise fail
  because 1 was returned

(From OE-Core rev: a864de0f2a326f857125229fc986845044931196)

Signed-off-by: Henning Heinold <heinold@inf.fu-berlin.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosite: add endianness information for libmemcached
Marcin Juszkiewicz [Thu, 4 Apr 2013 18:56:43 +0000 (20:56 +0200)]
site: add endianness information for libmemcached

(From OE-Core rev: 2587a33134fde80dd1367629d9def45ac70256ee)

Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agodbus: set INHIBIT_UPDATERCD_BBCLASS without sysvinit in features
Martin Jansa [Thu, 4 Apr 2013 16:42:13 +0000 (18:42 +0200)]
dbus: set INHIBIT_UPDATERCD_BBCLASS without sysvinit in features

* fixes udev configure in run-postinsts failing with:
  update-rc.d: /etc/init.d/dbus-1: file does not exist
  because dbus-udev is installed only with sysvinit in features
  but update-rc.d was always called from PN postinst

(From OE-Core rev: f15192a65e02026308253e6723b990b24780be5b)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosystemd: set INHIBIT_UPDATERCD_BBCLASS without sysvinit in features
Martin Jansa [Thu, 4 Apr 2013 16:42:12 +0000 (18:42 +0200)]
systemd: set INHIBIT_UPDATERCD_BBCLASS without sysvinit in features

* fixes udev configure in run-postinsts failing with:
  update-rc.d: /etc/init.d/systemd-udev: file does not exist
  because systemd-udev is installed only with sysvinit in features
  but update-rc.d was always called from PN postinst

(From OE-Core rev: b1dca3a693bb439181a155c5248a2c6a900f729d)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoutils: add helper to get all non-system packages
Ross Burton [Thu, 4 Apr 2013 16:34:39 +0000 (17:34 +0100)]
utils: add helper to get all non-system packages

For example if PACKAGES is "foo foo-data foo-dev foo-doc", this will return
"foo-data".

(From OE-Core rev: 3115187e468398a8c1edaf3e5369a2d10fb112f4)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agooe.terminal: add tmux classes
Christopher Larson [Thu, 4 Apr 2013 18:45:22 +0000 (11:45 -0700)]
oe.terminal: add tmux classes

This adds two new Terminal classes. It's separated into two, so that opening
a split inside a tmux window is preferred to the other terminal types, but
opening a tmux session is prioritized only slightly higher than screen.

- tmuxrunning: Open a new pane in the current running tmux window. Requires
  that the TMUX variable be added to the env whitelist to use it.
- tmux: Open a new tmux session

(From OE-Core rev: 31c58d584f838738a6b6258b87b1c7e6ca173086)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoliberation-fonts: remove 1.06
Ross Burton [Thu, 4 Apr 2013 17:07:59 +0000 (18:07 +0100)]
liberation-fonts: remove 1.06

1.06 requires fontforge-native to build, which as we don't have this version has
never been used.

(From OE-Core rev: 035e074cb7ff943defe3a10dc2a73b3cb2fd7e96)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibxcb: remove obsolete version 1.1.91
Ross Burton [Thu, 4 Apr 2013 17:08:00 +0000 (18:08 +0100)]
libxcb: remove obsolete version 1.1.91

We have 1.9 and git snapshot recipes, we don't also need this ancient version.

(From OE-Core rev: b037ac6f6e319c14895b2d3d7dd1b4a72a143670)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoscripts/qemuimage-testlib: Dump extra info if the network doesn't come up
Richard Purdie [Thu, 4 Apr 2013 22:24:53 +0000 (23:24 +0100)]
scripts/qemuimage-testlib: Dump extra info if the network doesn't come up

(From OE-Core rev: db4a4cc8ba8082a27224a3e55fb5e8eb7de2bbe7)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: propertydialog adjustments for package.bbclass
Andrei Dinu [Wed, 3 Apr 2013 11:58:47 +0000 (14:58 +0300)]
bitbake: propertydialog adjustments for package.bbclass

After moving the code from packageinfo.bbclass to
package.bbclass, minor adjustments were made to the
parsing of the package items.

(Bitbake rev: 414fe98fe367ba44ea0fd20d8fe1296bcef58ea6)

Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoAdd file information to package information window
Andrei Dinu [Thu, 4 Apr 2013 10:46:09 +0000 (13:46 +0300)]
Add file information to package information window

Removed the package files parsing routine from the
packageinfo.bbclass file and added it to the
package.bbclass file.

(From OE-Core rev: 225e7826b0d082f43db82201e826b98b3a95cd57)

Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-dtb: fix whitespace in bash functions
Chase Maupin [Wed, 3 Apr 2013 19:23:59 +0000 (14:23 -0500)]
linux-dtb: fix whitespace in bash functions

* Fix the whitespace in the base functions to use TAB instead
  of spaces.  This is to address feedback from:
        Darren Hart <dvhart@linux.intel.com>

(From OE-Core rev: ab6630df4d100ff501b33a1c7ec9d1e6a2d4f0ee)

Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-dtb: Add simple DTB symlinks for devicetree
Chase Maupin [Wed, 3 Apr 2013 19:23:58 +0000 (14:23 -0500)]
linux-dtb: Add simple DTB symlinks for devicetree

* This is similar to the symlinks provided for the kernel image
  in the /boot directory of a file system.  The goal is to have
  simply named symlinks in /boot that mirror the device tree
  name in the kernel sources.  This is so that programs like
  U-Boot can easily find the default device tree binary in the
  /boot directory and use that when booting the kernel.
* Use update-alternatives to handle proper creation and removal
  of the symlinks.

(From OE-Core rev: 750a9554e1b85d9bd23d18e0630723c3c193c604)

Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopointercal: Move override files from 'files' to 'pointercal' directory
Otavio Salvador [Wed, 3 Apr 2013 22:23:39 +0000 (19:23 -0300)]
pointercal: Move override files from 'files' to 'pointercal' directory

(From OE-Core rev: b9bb3ce5b92cde6bff08e9cb2fd27c576c92125d)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogcc: add patch to disable texinfo when texinfo is 5.0 or newer
Martin Jansa [Thu, 4 Apr 2013 08:35:01 +0000 (10:35 +0200)]
gcc: add patch to disable texinfo when texinfo is 5.0 or newer

* this is needed only for 4.7 series, newer works fine with texinfo-5*

[YOCTO #3947]

(From OE-Core rev: d85d15972d78b5dda7a03dd273a64305f115282b)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqemu: Add 2 patches to fix build with texinfo-5
Martin Jansa [Thu, 4 Apr 2013 08:35:00 +0000 (10:35 +0200)]
qemu: Add 2 patches to fix build with texinfo-5

(From OE-Core rev: af65260dbf17fcd47b6630db473d95f2f3225d68)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqemu: Enabled SDL when compiling for target architecture
Mihai Prica [Thu, 4 Apr 2013 12:09:15 +0000 (15:09 +0300)]
qemu: Enabled SDL when compiling for target architecture

Enables qemu to run images with video output without the need for vncviewer.

(From OE-Core rev: 30d5c1d5bc9a3931a09425962d980a3571dc56f3)

Signed-off-by: Mihai Prica <mihai.prica@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopython: adding missing runtime dependency python-io to python-pprint
Lukas Bulwahn [Thu, 4 Apr 2013 12:12:57 +0000 (14:12 +0200)]
python: adding missing runtime dependency python-io to python-pprint

When trying to import python-pprint on a minimal image, it reports that
the cStringIO python module is missing.
This is provided with python-io, so we add python-io as runtime
dependency.

The complete observed trace was:

Python 2.7.3 (default, Apr  4 2013, 07:45:36)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pprint
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/pprint.py", line 40, in <module>
    from cStringIO import StringIO as _StringIO
ImportError: No module named cStringIO

(From OE-Core rev: abe7bf9992e298f1b53e790eee7b064a9e4e8589)

Signed-off-by: Lukas Bulwahn <lukas.bulwahn@oss.bmw-carit.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibproxy: add dependency on glib-2.0
Alexandru DAMIAN [Thu, 4 Apr 2013 07:43:37 +0000 (10:43 +0300)]
libproxy: add dependency on glib-2.0

libproxy uses glib-2.0, but the depends is missing

Fixes intermittent build errors.

(From OE-Core rev: 9d8543d98f40d5260ee3830305d83e27412351c3)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agorpm-postinsts: Split out run-postinsts
Saul Wold [Wed, 3 Apr 2013 22:38:46 +0000 (15:38 -0700)]
rpm-postinsts: Split out run-postinsts

This patch allows for the run-postinsts script to be provided outside
of the rpm package itself and not pull in all the associated build
dependencies.

[YOCTO 4175]

(From OE-Core rev: 7841ee7041d04f11a3d879fb5bc60bb37de0a5c0)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogst-ffmpeg: configure-fix patch used wrong test
Carlos Rafael Giani [Wed, 3 Apr 2013 14:50:14 +0000 (16:50 +0200)]
gst-ffmpeg: configure-fix patch used wrong test

(From OE-Core rev: d07bf78a11c5aee37da653404f8aaf413cf14e8f)

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoicon-naming-utils: import version 0.8.90 from meta-oe
Paul Eggleton [Wed, 3 Apr 2013 18:27:24 +0000 (19:27 +0100)]
icon-naming-utils: import version 0.8.90 from meta-oe

* Use newer version 0.8.90
* Updates to a BBCLASSEXTENDed recipe instead of just a native recipe
* Use PV in SRC_URI instead of hardcoded version number

In copying over the recipe from meta-oe, some minor changes were made:
* Preserve the existing OE-Core nativeperl wrapper usage
* Drop setting of S which is effectively the default value

(From OE-Core rev: ef24f8e7e6b91ad8e83942bd956e0d6ab0fc077b)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoxserver-nodm-init: Add xuser to input group
Darren Hart [Wed, 3 Apr 2013 19:49:41 +0000 (12:49 -0700)]
xserver-nodm-init: Add xuser to input group

Fixes [YOCTO 4164](3/3)

Input devices come and go, so a single chmod in this init script is not
adequate to ensure rootless X servers can use input devices.

The o+rw method also introduces a security hole.

The newly added input group and input udev rule address this in a secure
way. Ensure the xuser is added to the input group.

(From OE-Core rev: 150b7ac8e1c0f029b90f63424867ee5347821cf7)

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: Saul Wold <sgw@linux.intel.com>
Cc: 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 agoudev-extraconf: Add rule adding input devices to input group
Darren Hart [Wed, 3 Apr 2013 19:49:40 +0000 (12:49 -0700)]
udev-extraconf: Add rule adding input devices to input group

Fixes [YOCTO 4164](2/3)

Add all /dev/input/* devices to the input group with g+rw.  This is
needed for rootless X without adding a security hole by making the
device o+rw.

(From OE-Core rev: 66c9b46f987f3e4f1f9b7b11d1ae157897454f07)

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: Saul Wold <sgw@linux.intel.com>
Cc: Radu Moisan <radu.moisan@intel.com>
Cc: 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 agobase-passwd: Add input group
Darren Hart [Wed, 3 Apr 2013 19:49:39 +0000 (12:49 -0700)]
base-passwd: Add input group

Fixes [YOCTO 4164](1/3)

Add input group for the /dev/input/* devices. This is needed for
rootless X without adding a security hole by making the device o+rw.

(From OE-Core rev: 262234ab50636463f03fd4daccecc1232682ff59)

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobuildhistory: record tag names and show warning when the same tag corresponds to...
Martin Jansa [Wed, 3 Apr 2013 08:49:36 +0000 (10:49 +0200)]
buildhistory: record tag names and show warning when the same tag corresponds to different revision

* persistent cache records tag-srcrev mappings, but is not shared between builders
* when tag is moved in remote repo, all builders should rebuild the component to
  use the same source, show warning when revision is different than what was used
  in last build

(From OE-Core rev: 0bc22ed6bd67031749e8f2cb5415dabf933eef56)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoclasses/sstate: avoid traceback when no files have been staged
Paul Eggleton [Wed, 3 Apr 2013 07:10:53 +0000 (08:10 +0100)]
classes/sstate: avoid traceback when no files have been staged

If no files have been staged we want to continue without error instead
of showing a traceback.

Fixes [YOCTO #4056].

(From OE-Core rev: ca36be708e54c0c86535bc8512295c76c48f6cf5)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqemu script: explicitly set 32 bit depth
Alexandru DAMIAN [Wed, 3 Apr 2013 14:39:12 +0000 (14:39 +0000)]
qemu script: explicitly set 32 bit depth

Qemu update from 1.2 to 1.4 now allows for 16bit depth in guests,
whereby previously only 32bit depth was supported. However,
the new support is broken, so we force 32bit depth in all cases.

MUST_REVERT: on qemu update, if 16bit depth support is working ok

Fixes [YOCTO #3828]

(From OE-Core rev: 354377789628d96fa589cb5721134f631815cfeb)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogst-plugins-bad: disable librsvg when x11 is disabled
Rogerio Nunes [Wed, 3 Apr 2013 00:34:44 +0000 (20:34 -0400)]
gst-plugins-bad: disable librsvg when x11 is disabled

librsvg depends on gtk+, which in turn does not support framebuffer
as backend in current version (2.15.24). This patch disables librsvg
when x11 is not in the distro.

(From OE-Core rev: 022cc0d3f0f7468428d708c27dbc561f619ee841)

Signed-off-by: Rogerio Nunes <ronunes@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoalsa-tools: fix build when x11 and gtk+ not available
Rogerio Nunes [Wed, 3 Apr 2013 00:34:43 +0000 (20:34 -0400)]
alsa-tools: fix build when x11 and gtk+ not available

Current verion of gtk+ (2.15.24) does not accept pure framebuffer as
backend and some alsa-tools sub-modules depend on gtk+.

This patch removes those sub-modules from the build only when x11 is not
set in DISTRO_FEATURES.

(From OE-Core rev: e611bba7bba02ba167b2ae3671b00cc99e4fb29c)

Signed-off-by: Rogerio Nunes <ronunes@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agorunqemu-internal: use MACHINE_SUBTYPE variable for qemuarm*
Martin Jansa [Wed, 27 Mar 2013 13:04:23 +0000 (14:04 +0100)]
runqemu-internal: use MACHINE_SUBTYPE variable for qemuarm*

(From OE-Core rev: ed07bb4214abb472da6aa7e164a20fd4be127e54)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackage_deb.bbclass: fix 'armel' override
Bogdan Marinescu [Tue, 2 Apr 2013 11:35:56 +0000 (14:35 +0300)]
package_deb.bbclass: fix 'armel' override

The 'armel' override for DKPG_ARCH was causing the meta-toolchain
build to fail. The assignment was moved to an anonymous fragment
of Python code, so it doesn't affect the assignments in
cross-canadian.bbclass anymore, thus fixing the issue.

[YOCTO #4080]

(From OE-Core rev: 6f86fe5d66e401377bccd9f635270033b99a9f4b)

Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqt-mobility: added list of modules to be compiled
Felipe F. Tonello [Wed, 20 Mar 2013 18:29:49 +0000 (11:29 -0700)]
qt-mobility: added list of modules to be compiled

This is useful for users that want to .bbappend this recipe to select specific
modules to be compiled.

(From OE-Core rev: 2ddb7afd15e53ef75b5084d691115e0f58ff24ab)

Signed-off-by: Felipe F. Tonello <ftonello@cercacor.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoutil-linux: Use u-a for getopt
Martin Jansa [Wed, 20 Mar 2013 15:09:10 +0000 (16:09 +0100)]
util-linux: Use u-a for getopt

* when enable busybox installs getopt to ${base_bindir} and
  util-linux to ${bindir}, so there is no file conflict, but
  because busybox implementation does not support --long used
  by lsb_release (which RDEPENDS on util-linux) we need to use
  util-linux getopt even when busybox defconfig has it enabled

(From OE-Core rev: 2dcc867247b402bb4223cc7b9861088958599866)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoarchiver: fix srpm archiving build errors
Kevin Strasser [Fri, 22 Mar 2013 20:19:22 +0000 (13:19 -0700)]
archiver: fix srpm archiving build errors

srpm archiving doesn't need to be handled as a different case
when deciding what archive tasks to add.

When srpm is selected as the archiving type, the scripts and logs
archive staging directory ${WORKDIR}/script-logs is cleaned, and
its contents moved out to ${WORKDIR}.

Now that we are including ${WORKDIR}/script-logs in sstate-inputdirs,
the directory must be preserved.

[YOCTO #4032]

(From OE-Core rev: 0c80286a3383b436a0a63a0b00eb357dd9dea4fb)

Signed-off-by: Kevin Strasser <kevin.strasser@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobase.bbclass: Update the preferred_ml_updates
Mark Hatle [Tue, 19 Mar 2013 20:20:59 +0000 (15:20 -0500)]
base.bbclass: Update the preferred_ml_updates

When processing the blacklists, we should avoid cross-canadian packages, as they
will not have any multilib prefixes to expand.

Similarly look for "virtual/nativesdk-" in addition to the existing "nativesdk-".
These items should also be ignored.

Finally, in order to avoid undeterministic variable key expansion, such as:

MYVAR = "foo"

PREFERRED_PROVIDER_${MYVAR} = "bar"
PREFERRED_PROVIDER_foo = "foobar"

during the multilib processing of PREFERRED_VERSION and PREFERRED_PROVIDER,
the code was changed to rename the variable key, to the final key.  This along
with the existing code avoids the problems.

(From OE-Core rev: 1416613e94af46c6e74532bca0f026d1540becbb)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoupdate-rc.d, systemd: redirect also stderr from type
Martin Jansa [Thu, 28 Mar 2013 14:28:41 +0000 (15:28 +0100)]
update-rc.d, systemd: redirect also stderr from type

* different shells different behavior?
  bash prints 'type: update-rc.d: not found' on stderr
  busybox's sh on stdout

(From OE-Core rev: 45e22312c48b23480bd6dff98702b0691a48f7d1)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoopenssh: don't add update-rc.d to RDEPENDS
Martin Jansa [Thu, 28 Mar 2013 13:54:09 +0000 (14:54 +0100)]
openssh: don't add update-rc.d to RDEPENDS

* sysvinit/systemd assumes that update-rc.d can be inhibited
* with systemd enabled, sysvinit scripts are missing in packages
  and update-rc.d needs to be put in BAD_RECOMMENDATIONS to prevent
  update-rc.d trying to install them in postinst
* update-rd.c shouldn't be in DEPENDS

(From OE-Core rev: e9e4a90c7e66abe2ab2c335d60ef91e869f48693)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-firmware: Add missing license information for wl12xx
Otavio Salvador [Thu, 28 Mar 2013 16:58:16 +0000 (13:58 -0300)]
linux-firmware: Add missing license information for wl12xx

(From OE-Core rev: 34432115e58026ec923324a7825cbbf3840dc444)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-firmware: Package vt6656, ath6k, ath9k and ar9170
Otavio Salvador [Thu, 28 Mar 2013 16:58:15 +0000 (13:58 -0300)]
linux-firmware: Package vt6656, ath6k, ath9k and ar9170

(From OE-Core rev: 0c9a853631ab423049817289bd660666a2c21222)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-firmware: Package Reaktek and Broadcom licenses
Otavio Salvador [Thu, 28 Mar 2013 16:58:14 +0000 (13:58 -0300)]
linux-firmware: Package Reaktek and Broadcom licenses

The licenses need to be included onto rootfs so we have a new package
for license file when we have multiple packages for same vendor. This
patch does this change for current packages in this specific case.

(From OE-Core rev: b4113c1272a4e97e1791f4dfe02a2cd3c664c61d)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-firmware: Remove duplicaed license from rtlwifi subdir
Otavio Salvador [Thu, 28 Mar 2013 16:58:13 +0000 (13:58 -0300)]
linux-firmware: Remove duplicaed license from rtlwifi subdir

The rtlwifi will is deployed onto /lib/firmware so we don't need to
duplicate it inside of rtlwifi subdir.

(From OE-Core rev: 63efc03b4b77f5a0c79e57427874d40fa769d388)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-firmware: Remove 'Makefile' from packages
Otavio Salvador [Thu, 28 Mar 2013 16:58:12 +0000 (13:58 -0300)]
linux-firmware: Remove 'Makefile' from packages

The 'Makefile' should not be deployed in the packages as it is of no
use for target and end user.

(From OE-Core rev: c3a0225191eef45cae5aae771ce7c630155be45b)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotcf-agent: Don't download epl-v10.html just for LIC_FILES_CHKSUM validation
Martin Jansa [Thu, 28 Mar 2013 21:54:27 +0000 (22:54 +0100)]
tcf-agent: Don't download epl-v10.html just for LIC_FILES_CHKSUM validation

* it's not part of sources, downloading some html from web is not better
  check then using meta/files/common-licenses/EPL-1.0
* http://www.eclipse.org/org/documents/epl-v10.html was changed, plain
  text looks the same, but html formating was changed (from MS Word
  export to valid XHTML 1.0, changing checksums for this new html
  would cause issues for people with old epl-v10.html already on
  PREMIRROR, so lets just remove it.

(From OE-Core rev: 22bce79652fc753a7b5d536664b744e110b5775a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoremove gtk-update-icon-cache-native virtuals
Andreas Müller [Fri, 29 Mar 2013 21:19:58 +0000 (22:19 +0100)]
remove gtk-update-icon-cache-native virtuals

gtk-update-icon-cache-native is the only provider now

(From OE-Core rev: 7e437aa3e0ec862aac69a4434be0b2b652d26972)

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogtk+: don't provide native build
Andreas Müller [Fri, 29 Mar 2013 21:19:57 +0000 (22:19 +0100)]
gtk+: don't provide native build

The only part required from native build is gtk-update-icon-cache. This is
provided by gtk-update-icon-cache-native_3.4.4. This version works properly
with gtk+. The patch was tested for gnome-icon-theme and hicolor-icon-theme by:

1. building xfce/gtk+ (gtk3-less) image
2. checking for existing icon-theme.cache in rootfs
3. running image / open menus + test applications
4. executing 'gtk-update-icon-cache-2.0 --validate <both icon-themes-dirs>'
5. executing 'gtk-update-icon-cache-2.0 -f <both icon-themes-dirs>' + exact size checking

(From OE-Core rev: 8d6406849bcad2a7bbd4483ccfa4e0f3d9b4ae21)

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackagegroup-toolset-native: replace gtk+-native by gtk-update-icon-cache-native
Andreas Müller [Fri, 29 Mar 2013 21:19:59 +0000 (22:19 +0100)]
packagegroup-toolset-native: replace gtk+-native by gtk-update-icon-cache-native

(From OE-Core rev: d6ab3b08b802af9ed763c67fe65907afa6876ba7)

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosstate.bbclass: remove reference to gtk+-native
Andreas Müller [Fri, 29 Mar 2013 21:20:00 +0000 (22:20 +0100)]
sstate.bbclass: remove reference to gtk+-native

(From OE-Core rev: 13bc0117a0a18165e83e2bcdd880e704a0df5e3f)

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoseperatebuilddir.inc: remove reference to gtk+-native
Andreas Müller [Fri, 29 Mar 2013 21:20:01 +0000 (22:20 +0100)]
seperatebuilddir.inc: remove reference to gtk+-native

(From OE-Core rev: 3c34da6cd73091f9b2e77e7ee7efbca073af6572)

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolsb: distro codename info added
Cristian Iorga [Mon, 1 Apr 2013 07:34:45 +0000 (10:34 +0300)]
lsb: distro codename info added

Poky distro codename info added to /etc/lsb-release file.
lsb_release script will not complain anymore about
the incompleteness of /etc/lsb-release file by
returning an error code.
Increases LSB compliance.

Partial fix for [YOCTO #4071].

(From OE-Core rev: ddd43fcdb8af7d5b1a64d2c6cbd72a3896869321)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopcmciautils: fix segmentation fault of pccardctl command
Takeshi Hamasaki [Mon, 1 Apr 2013 11:40:57 +0000 (20:40 +0900)]
pcmciautils: fix segmentation fault of pccardctl command

This changes definition of PCMCIAUTILS_VERSION to string from a multichacter constant to avoid segmentation fault of pccardctl command.

(From OE-Core rev: aee67a229304827a12b7776a82fb1c320da9a3c4)

Signed-off-by: Takeshi Hamasaki <hmatrjp@users.sourceforge.jp>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoconnman: added wired setup for systemd
Cristian Iorga [Mon, 1 Apr 2013 15:54:37 +0000 (18:54 +0300)]
connman: added wired setup for systemd

Added support for correctly configuring
wired interface if systemd is the init system.

Fixes [YOCTO #4041].

(From OE-Core rev: ec5530779df23ea25729c7d19c664c05fae5758d)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosstate: add -f to mv when moving sstate files into place
Jeff Polk [Mon, 1 Apr 2013 15:52:04 +0000 (09:52 -0600)]
sstate: add -f to mv when moving sstate files into place

Under some conditions (ACLs enabled, NFS) mv can interactively prompt
before overwriting files.  Avoid hanging builds in that case by using
-f which should be harmless in other cases.

(From OE-Core rev: b1a085db9d8ad2a3117af6f50e510bc9c2f9407b)

Signed-off-by: Jeff Polk <jeff.polk@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-yocto-rt: integrate 3.8.4-rt2
Bruce Ashfield [Mon, 1 Apr 2013 17:09:35 +0000 (10:09 -0700)]
linux-yocto-rt: integrate 3.8.4-rt2

Updating to 3.8.4-rt2 to fix the minor issues found with -rt1.

>From the upstream commit log:

 changes since v3.8.4-rt1:
   - build fix for i915 (reported by "Luis Claudio R. Goncalves")
   - build fix for fscache (reported by tglx)
   - build fix for !RT (kernel/softirq.c did not compile)
   - per-cpu rwsem fixed for RT (required only by uprobes so far)
   - slub: delay the execution of the ->ctor() hook for newly created
     objects. This lowers the worst case latencies.

 Known issues:

    - SLxB is broken on PowerPC.

(From OE-Core rev: cd9a730caf6b995c25c71c97eb76dc7a24ecf641)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agokernel-yocto: use KBRANCH as default build branch
Bruce Ashfield [Mon, 1 Apr 2013 17:09:34 +0000 (10:09 -0700)]
kernel-yocto: use KBRANCH as default build branch

commit 61001aa [kernel-yocto: respect SRC_URI modified branch selection]
changed branch processing such that a branch specified in the SRC_URI
would set the branch forced as the build branch.

This change broke compatibility with the yocto-bsp, linux-yocto-custom
based recipes. These recipes specify the branch to be built via KBRANCH,
but allow the fetcher to use master for keeping the repository up to
date. This means that no explicit branch is set in the SRC_URI and the
routines return the default branch of 'master', which is not what is
set in KBRANCH.

To support this case, we simply pass a default branch into the routine
returning the branch to build, and ensure that the default is KBRANCH
so if no branch is passed in the SRC_URI, KBRANCH is always built.

[YOCTO #4145]

(From OE-Core rev: 0c389f41d7ea0697a5468c73cce295a2fa64e9e0)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-yocto/3.8: update mips SA_RESTORER fix
Bruce Ashfield [Mon, 1 Apr 2013 17:09:33 +0000 (10:09 -0700)]
linux-yocto/3.8: update mips SA_RESTORER fix

During the 3.8.4 integration there was a build issue on MIPS due to
SA_RESTORER changes. A solution was put in place for mips, but it
didn't cover other impacted architectures.

This is a backport of the proposed fix for the next 3.8-stable,
since the full -stable might not be available in the right timeframe.

(From OE-Core rev: 1d7a5ac1cea1a5bdb6a9d3dd822439c070066272)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: hob: giving focus to the search field loses the table sorting
Cristiana Voicu [Mon, 1 Apr 2013 10:36:25 +0000 (13:36 +0300)]
bitbake: hob: giving focus to the search field loses the table sorting

Giving focus to the search text field should not impact the table
sorting.

[YOCTO #4113]
(Bitbake rev: b5b4b6e4fefa6a164a49b291a0993b1ff63947f4)

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: hob: add tooltip on "clear search" button
Cristiana Voicu [Fri, 29 Mar 2013 13:40:18 +0000 (15:40 +0200)]
bitbake: hob: add tooltip on "clear search" button

[YOCTO #4116]
(Bitbake rev: 3c1b63cf49bdbffef0728fc83bd5a35bc16fd3dc)

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: Removed popup when including a package
Andrei Dinu [Fri, 29 Mar 2013 13:26:37 +0000 (15:26 +0200)]
bitbake: Removed popup when including a package

Fixed the functionality which made an information
dialog pop up when including any package.

[HOB #4138]

(Bitbake rev: 6cabbb241ab3959b3c8f084423469c0bfc9899bd)

Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoremake: Fix out of tree builds
Richard Purdie [Tue, 2 Apr 2013 11:55:27 +0000 (11:55 +0000)]
remake: Fix out of tree builds

remake fails with errors during configure due to the out of tree build changes.
This ensures the configure commands run correctly on files in ${S}.

[YOCTO #4139]

(From OE-Core rev: 166c123bc0d121eeea39db71e63940fa2f8a3f7b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agorpm: Ensure rpm depends on rpm-postinsts
Richard Purdie [Tue, 2 Apr 2013 16:53:14 +0000 (17:53 +0100)]
rpm: Ensure rpm depends on rpm-postinsts

If package-management isn't in IMAGE_FEATURES, the postinstall handler
wasn't being installed. rpm needs to depend on this to ensure it does
get installed.

[YOCTO #4160]

(From OE-Core rev: 0c2778c36f521d019ab6ff0c458a1e117808d2e5)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobuild-appliance-image: fix git proxy access
Cristian Iorga [Tue, 2 Apr 2013 13:02:40 +0000 (16:02 +0300)]
build-appliance-image: fix git proxy access

Updated the name of git proxy access script.

Fixes [YOCTO #4161]

(From OE-Core rev: 381c79dfacf4e990604b8c1ca5845a47958681fc)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqemuimage-testlib: Fix quoting issue
Richard Purdie [Sat, 30 Mar 2013 16:44:27 +0000 (16:44 +0000)]
qemuimage-testlib: Fix quoting issue

(From OE-Core rev: c8b411608bea2700e904141268f609eeee542ae2)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqemuimage-testlib: Use ww option to ps to ensure command output isn't truncated
Richard Purdie [Sat, 30 Mar 2013 12:50:10 +0000 (12:50 +0000)]
qemuimage-testlib: Use ww option to ps to ensure command output isn't truncated

(From OE-Core rev: 1347381b4f93b318fadc2360c4adf0c68b562b13)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqemuimage-testlib: Increase qemu startup timeouts
Richard Purdie [Sat, 30 Mar 2013 09:02:35 +0000 (09:02 +0000)]
qemuimage-testlib: Increase qemu startup timeouts

We are seeing timeouts on the autobuilder where qemu does start but the script
doesn't appear to be able to detect it in time. This patch increases the
timeouts since there seems little harm in doing so.

(From OE-Core rev: 53071c6b569067f98c558ee667bb1a4be0d8f6db)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agometa/lib/oe/lsb.py: extract only the needed info from lsb-release
Cristian Iorga [Fri, 29 Mar 2013 14:10:51 +0000 (16:10 +0200)]
meta/lib/oe/lsb.py: extract only the needed info from lsb-release

Instead of running lsb_release -a, a lsb_release -ir will be run.
This will prevent issue with distros that don't have all the needed
info in /etc/lsb-release file, in which case lsb_release won't generate
an error code.

Partial fix for [YOCTO #4071]

(From OE-Core rev: 79a2252545ab50c79e00e02c328191c1163f917d)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoscripts/contrib/build-perf-test.sh: add timings for bitbake -p
Stefan Stanacar [Fri, 29 Mar 2013 15:10:23 +0000 (17:10 +0200)]
scripts/contrib/build-perf-test.sh: add timings for bitbake -p

Add another test to time bitbake -p with and without cache/ or tmp/cache.

(From OE-Core rev: 3ed59ee53ee7d87694670a7ba864165146b90a6b)

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoscripts/contrib/build-perf-test.sh: add option to allow cherry-picking of fix revisions
Richard Purdie [Fri, 29 Mar 2013 15:10:22 +0000 (17:10 +0200)]
scripts/contrib/build-perf-test.sh: add option to allow cherry-picking of fix revisions

Adds a -p option to allow cherry-picking of fix revisions.
Removes the final build/sstate directories to stop running out of space.
Runs subsequent tasks even if one test fails.

(From OE-Core rev: 16ea0d406a31e08071ce7d475221f0b158165405)

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoscripts/contrib/build-perf-test.sh: add a global results file
Stefan Stanacar [Fri, 29 Mar 2013 15:10:21 +0000 (17:10 +0200)]
scripts/contrib/build-perf-test.sh: add a global results file

Append results from each run to a single file in order to keep a history.
Also do some cosmetic changes and fix some whitespace.

(From OE-Core rev: 9b99b4e9284071501859df5631e9019b3000ffe9)

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoscripts/contrib/build-perf-test.sh: add a script for build performance tracking
Stefan Stanacar [Fri, 29 Mar 2013 15:10:20 +0000 (17:10 +0200)]
scripts/contrib/build-perf-test.sh: add a script for build performance tracking

This script runs a series of builds (core-image-sato by default) with
and without sstate cache and collects some metrics (time and size currently).
It takes a commit as argument  (-c <rev>) and measures wall clock for
bitbake core-image-sato and virtual/kernel.

(From OE-Core rev: ee9538081a0bccfb7eb2888b1b51fe9b71c8cb81)

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosystemd: Add new package systemd-kernel-install
Khem Raj [Thu, 28 Mar 2013 06:23:59 +0000 (06:23 +0000)]
systemd: Add new package systemd-kernel-install

Package additional directories e.g. /etc/kernel and /usr/lib/kernel

(From OE-Core rev: c833df1493101165691e0a3b8e98055def10d504)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: bb.tests.fetch: Opt-out for unittests that require network
Olof Johansson [Tue, 26 Mar 2013 08:28:38 +0000 (09:28 +0100)]
bitbake: bb.tests.fetch: Opt-out for unittests that require network

With this change, you can opt-out to skip unit tests that require an
internet connection. To opt-out, you'll set the environment variable
BB_SKIP_NETTESTS to 'yes'.

(Bitbake rev: 9ff5f172096a4f51b6b085307506473405dc4f59)

Signed-off-by: Olof Johansson <olof.johansson@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: hob: Search strings and results should be persistent
Cristiana Voicu [Wed, 27 Mar 2013 15:20:07 +0000 (17:20 +0200)]
bitbake: hob: Search strings and results should be persistent

Now, the search results stay until I clear the search field,
so that I can manipulate the search results.

[YOCTO #4112 & #4117]
(Bitbake rev: d880ce966ca825aa66a23755fcb47497fb3f26c3)

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: packageselectionpage.py : added information to hob
Andrei Dinu [Thu, 28 Mar 2013 08:23:22 +0000 (10:23 +0200)]
bitbake: packageselectionpage.py : added information to hob

In order to have information for each package in hob,
a new item is added to the dictionary, represeting the
files that are brought in by each package.

(Bitbake rev: ffb8e32166d0ab690131e753f91592011c3f7ffb)

Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: hoblistmodel.py : passing the package information to hob
Andrei Dinu [Thu, 28 Mar 2013 08:23:21 +0000 (10:23 +0200)]
bitbake: hoblistmodel.py : passing the package information to hob

Added a new column to the model and also populating
it with the information brought in from the
packageinfo.bbclass.

(Bitbake rev: afa78ae15be3e0babadd5d86092a2852135cfcce)

Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: propertydialog.py : added 'Package files' functionality
Andrei Dinu [Thu, 28 Mar 2013 08:23:20 +0000 (10:23 +0200)]
bitbake: propertydialog.py : added 'Package files' functionality

Extended the packages page information with the
listing of the files brought in by every package.

(Bitbake rev: 42b1ce37b5c9a357108afdc01b0e9f008a84e6e3)

Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: cooker.py : added variables related to cache_extra
Andrei Dinu [Thu, 28 Mar 2013 08:23:18 +0000 (10:23 +0200)]
bitbake: cooker.py : added variables related to cache_extra

So that the information added to cache_extra could
be accesed by hob, new variables were added in
the cooker.py.

(Bitbake rev: f2d5f4ca9ac82599c74838844f7e54e481e023d3)

Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: cache_extra.py : added package information
Andrei Dinu [Thu, 28 Mar 2013 08:23:17 +0000 (10:23 +0200)]
bitbake: cache_extra.py : added package information

Added a new variable to cache_extra so that
the files brought in by a package can be
displayed in hob.

(Bitbake rev: 94e2f899457d6565442a933529dd3db261ab12f0)

Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agocoreutils: Fix out of tree builds
Richard Purdie [Thu, 28 Mar 2013 23:27:14 +0000 (23:27 +0000)]
coreutils: Fix out of tree builds

(From OE-Core rev: 29a6810aad27e049577d2d66690ba74f92dd5211)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoelfutils: remove i386_dis.h/x86_64_dis.h compilation targets
Laurentiu Palcu [Thu, 28 Mar 2013 13:51:58 +0000 (15:51 +0200)]
elfutils: remove i386_dis.h/x86_64_dis.h compilation targets

Since we provide those files manually (i386_gendis, which is needed for
generating those files, has to be run on host and would fail when
compiling for other architectures), the mentioned compilation targets
in libcpu/ are not needed anymore.

This change will avoid a nasty race condition when running "make -jX
install" resulting in a zero size libebl_i386.so file. The issue happens
because, at "make install" time, the *_dis.h prerequisites will be newer
than the target itself, triggering a chain of recompilations while, in
the same time, the binary files are copied to the destination directory.
Hence, the zero sized file...

[YOCTO #4131]

(From OE-Core rev: a4ebe0f6efc8ed93521e75919f23821f59934c1f)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackageinfo.bbclass : extended functionality
Andrei Dinu [Thu, 28 Mar 2013 08:23:19 +0000 (10:23 +0200)]
packageinfo.bbclass : extended functionality

Extended the functionality of packageinfo.bbclass
so that the sistem retrieves information about the
files brought in by each package. This is done
(without activating buildhistory) by parsing
the packages-split directory for each package.

(From OE-Core rev: 108bae276fe7e462378073207a3bdca7326f8e57)

Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agocoreutils: update to upstream version 8.21
Marko Lindqvist [Sun, 24 Mar 2013 07:35:57 +0000 (07:35 +0000)]
coreutils: update to upstream version 8.21

remove-gets.patch removed as issue is fixed upstream.

(From OE-Core rev: c2fd59028a57356cff8d165edb71c45c3b05cc67)

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agodbus: Depend on dbus-ptest-ptest
Björn Stenberg [Mon, 25 Mar 2013 14:24:04 +0000 (15:24 +0100)]
dbus: Depend on dbus-ptest-ptest

The dbus-ptest recipe doesn't produce an output package called
dbus-ptest. What we are interested in is actually the dbus-ptest-ptest
package.

(From OE-Core rev: f3c75400d93ab7f22f6de41db4e456d47af2e13b)

Signed-off-by: Björn Stenberg <bjst@enea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoimage_types.bbclass: Replace squashfs-lzma with squashfs-xz
Marc Ferland [Mon, 25 Mar 2013 20:45:24 +0000 (16:45 -0400)]
image_types.bbclass: Replace squashfs-lzma with squashfs-xz

Booting an image generated with squashfs-lzma results in a kernel
error: "Filesystem uses "lzma" compression. This is not supported".

Currently (well at least in Linux 3.8) the officially supported
decompressors are:
* LZO
* XZ
* ZLIB

This change makes sure we use a supported compression algorithm for
squashed root filesystems.

(From OE-Core rev: d915e2e084257830c43f7f21af3aec24b7e1a211)

Signed-off-by: Marc Ferland <ferlandm@sonatest.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibpng: add version 1.2 back
Kang Kai [Tue, 26 Mar 2013 05:58:34 +0000 (13:58 +0800)]
libpng: add version 1.2 back

Current LSB 4.1 test suite still check libpng12.so, so add libpng 1.2.x
back, and set it as default verison for linuxstdbase image.

[YOCTO #4015]

(From OE-Core rev: f2463ce26706b971dad0116e8b92f9d55e945137)

Signed-off-by: Kang Kai <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoinit-install.sh: remove unnecessary udev rules file to avoid error messages
Chen Qi [Tue, 26 Mar 2013 06:08:19 +0000 (14:08 +0800)]
init-install.sh: remove unnecessary udev rules file to avoid error messages

/etc/udev/scripts/mount.sh is removed by init-install.sh, but the udev
rules file which specifies the invocation of this script is not removed,
thus causing the error message '/etc/udev/scripts/mount.sh: No such file
or directory' shown at a live install.

The /etc/udev/rules/automount.rules no longer works once the mount.sh script
is removed. So we remove it to avoid the error message.

[YOCTO #3924]

(From OE-Core rev: 6b6db7b4fb7aa17b8e29076decc830149b9d35bc)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agodosfstools: really compile supporting large files
Joe Slater [Mon, 25 Mar 2013 20:49:00 +0000 (13:49 -0700)]
dosfstools: really compile supporting large files

Makefile in the package tries to set _FILE_OFFSET_BITS=64,
but we clobber that with our CFLAGS, so we add it in
the recipe.

[CQID: 409915]

(From OE-Core rev: ac904b9e10ec9641686bc35dcf200b9b855899b1)

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoboost: Add real native support
Stefan Herbrechtsmeier [Tue, 26 Mar 2013 13:02:19 +0000 (14:02 +0100)]
boost: Add real native support

The current boost recipe only creates the bjam build tool during
a native run and thereby is not usable for other native recipes
that depend on a boost library. Split out the build tool into its
own bjam-native recipe and add real native support to the boost
recipe. Additionally replace the boost-native with bjam-native in
the DEPENDS. This allows recipes to depend on native boost
librarties without increase of the build time for other use cases.

Native compilation of bzip2 isn't working and therefore disabled.

(From OE-Core rev: aec1e3484d89a3ef0fb5b3470a620cc055f66c37)

Signed-off-by: Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agooe-setup-builddir: Possibility to customize text.
Anders Roxell [Wed, 27 Mar 2013 13:46:22 +0000 (14:46 +0100)]
oe-setup-builddir: Possibility to customize text.

Possibility to customize the text that is presented to the user when
they execute the script.

(From OE-Core rev: 6ad06582621fc20d09d4d7fd78ea7e175367c187)

Signed-off-by: Anders Roxell <anders.roxell@enea.com>
Tested-by: Maxin B. John <maxin.john@enea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agowayland: upgrade to 1.0.6
Ross Burton [Wed, 27 Mar 2013 17:53:24 +0000 (17:53 +0000)]
wayland: upgrade to 1.0.6

(From OE-Core rev: 918460cff5b82a69feea0ec3d787c420927eaa35)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoweston: upgrade to 1.0.6
Ross Burton [Wed, 27 Mar 2013 17:53:31 +0000 (17:53 +0000)]
weston: upgrade to 1.0.6

(From OE-Core rev: 58924fe567963c0e6cead3e75a2cfd5b2252aefd)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoclasses/buildhistory: improve SRCREV recording
Paul Eggleton [Wed, 27 Mar 2013 18:05:50 +0000 (18:05 +0000)]
classes/buildhistory: improve SRCREV recording

Collect SRCREV information in a separate task and write it out in a
format which is more consistent with the rest of the buildhistory
output. Using a task means that SRCREV values will also be recorded for
native recipes and not just target ones, and the new formatting also
correctly handles multiple entries in SRC_URI.

Also adds scripts/buildhistory-collect-srcrevs which will report on all
of the recorded SRCREV values in a format suitable for use in global
configuration (e.g. local.conf or a distro inc file) to override AUTOREV
values to a fixed set of revisions. Example output:

 # emenlow-poky-linux
 SRCREV_machine_pn-linux-yocto = "b5c37fe6e24eec194bb29d22fdd55d73bcc709bf"
 SRCREV_emgd_pn-linux-yocto = "caea08c988e0f41103bbe18eafca20348f95da02"
 SRCREV_meta_pn-linux-yocto = "c2ed0f16fdec628242a682897d5d86df4547cf24"
 # core2-poky-linux
 SRCREV_pn-kmod = "62081c0f68905b22f375156d4532fd37fa5c8d33"
 SRCREV_pn-blktrace = "d6918c8832793b4205ed3bfede78c2f915c23385"
 SRCREV_pn-opkg = "649"

Some notes on using this script:
* By default only values where the SRCREV was not hardcoded (usually
  i.e. AUTOREV was used) are reported - use the -a option to see all
  SRCREV values.
* The output statements may not have any effect in the face of overrides
  applied elsewhere; use the -f option to add the forcevariable override
  to each output line to work around this.
* The script does not do any special handling for multiple machines;
  however it does place a comment before each set of values specifying
  which triplet they belong to as shown above.

Relates to [YOCTO #3041].

(From OE-Core rev: 2179db89436d719635f858c87d1e098696bead2a)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosystemd: Upgrade to 199
Khem Raj [Thu, 28 Mar 2013 07:48:29 +0000 (00:48 -0700)]
systemd: Upgrade to 199

udevadm is now moved from /usr/bin to /bin so account for that
bash completions for udevadm should be packages with udev-utils
since thats where udevadm itself is, they were in systemd package
which is not correct location for it

Backport patches for readahead fixes on spinning disks
and to tackle error reported on missing /etc/sysctl.conf

(From OE-Core rev: 0e692e846e5d6685619a7ce9f6e7346ced013b9b)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agorpm: split out run-postinsts
Zhenhua Luo [Thu, 28 Mar 2013 04:18:45 +0000 (12:18 +0800)]
rpm: split out run-postinsts

1. Split out run-postinsts script into separated package, sometimes only the
   postinsts script is required to run all postinsts scripts in /etc/rpm-postinsts/
   instead of the whole rpm package.
2. Set ROOTFS_PKGMANAGE_BOOTSTRAP to rpm-postinsts

(From OE-Core rev: 056490ddbfdbb6cc6fa0d8ff8716d64819d6b16c)

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agometa/lib/oe/lsb.py: fix data extraction from /etc/lsb-release
Cristian Iorga [Fri, 29 Mar 2013 09:19:01 +0000 (11:19 +0200)]
meta/lib/oe/lsb.py: fix data extraction from /etc/lsb-release

In some cases, /etc/lsb-release file is used to extract
info about poky build host machine. But the strings are
not stripped of end of line special characters. As such,
when this info is concatenated and used as a directory
entry in sstate_cache, this is an issue.
Usually, this issue is masked by the fact that distro
related info is extracted from the output of lsb_release
command. In case of Yocto Linux, running "lsb_release -a"
will give an error code because CODENAME info is not present.
As such, bitbake will extract the info from /etc/lsb-release,
running into the above issue.
Consequence is that building under BA will crash.

Partial fix for [YOCTO #4071]

(From OE-Core rev: 5d0839bef631dceb4395fcf204779a76966a1061)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobase.bbclass: When we use fakeroot, also use it for devshell
Richard Purdie [Thu, 28 Mar 2013 13:17:12 +0000 (13:17 +0000)]
base.bbclass: When we use fakeroot, also use it for devshell

Its generally useful for devshell to end up in the fakeroot environment. If
a user needs to exit it, PSEUDO_UNLOAD=1 <command> works, its usually
harder to enter the envionment.

[YOCTO #3374]

(From OE-Core rev: e6ffc747a8ca5142c9bc6fbd2b06b5808bb38b02)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqemuimage-testlib: Capture stderror in the logs as well as stdout
Richard Purdie [Wed, 27 Mar 2013 13:52:29 +0000 (13:52 +0000)]
qemuimage-testlib: Capture stderror in the logs as well as stdout

This allows error messages to be captured in the logs which is helpful.

(From OE-Core rev: 09a5fec50d622d338db5bd5516d29e4f4d0cec0d)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>