scm/bb/tizen-distro.git
11 years agobinutils: Delete recipes for 2.22
Khem Raj [Tue, 26 Feb 2013 20:55:24 +0000 (12:55 -0800)]
binutils: Delete recipes for 2.22

We have 2.23.1 as default now.

(From OE-Core rev: a2f5a228422f9807fa21de88ad589853817695f8)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobinutils: Fix build with newer texinfo 5.0+
Khem Raj [Tue, 26 Feb 2013 21:39:24 +0000 (13:39 -0800)]
binutils: Fix build with newer texinfo 5.0+

[Yocto #3943]

(From OE-Core rev: 79a378a47e9a87c42337a846317b556e16e89664)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackagegroup-core-tools-testapps: connman-client added
Cristian Iorga [Tue, 26 Feb 2013 18:25:10 +0000 (20:25 +0200)]
packagegroup-core-tools-testapps: connman-client added

connman-client is now part of tools-testapps

(From OE-Core rev: 97c47c9c78d310e0714c3127e8de528f854f58cf)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agomini-x-session: Fix starting of x-session
Saul Wold [Thu, 21 Feb 2013 16:11:50 +0000 (08:11 -0800)]
mini-x-session: Fix starting of x-session

We need to use sudo semantics since it does not start correctly
with su. Added RDEPENDS to ensure it's present on target.

The SESSION_DIR test was constructed incorrectly, so fixed it.

(From OE-Core rev: badf3a32b9737f2ad6f9c9ff2fe623fe17295946)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosqlite: rename version to match upstream versioning change
Saul Wold [Tue, 26 Feb 2013 15:52:27 +0000 (07:52 -0800)]
sqlite: rename version to match upstream versioning change

Upstream changed to a single grouped number, change our numbering
to match thiers.

(From OE-Core rev: 0a00a4328d3fc52ece604f268b7110ef210826a9)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoconnman: enable connman client
Cristian Iorga [Tue, 26 Feb 2013 16:56:48 +0000 (18:56 +0200)]
connman: enable connman client

connmanctl is available in a new
package: connman-client

(From OE-Core rev: d926de687ba45fed993af7feba8574b76293b939)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoparted: fix several integer overflows
Ming Liu [Tue, 26 Feb 2013 01:19:44 +0000 (09:19 +0800)]
parted: fix several integer overflows

Integer overflows were found in libparted/labels/dvh.c, while attemptting
to assign unsigned int values to int types in some places. These overflows
only can be observed on BE platforms like MIPS, when the "WORDS_BIGENDIAN"
macro is defined in parted.

Defined by unsigned int instead.

(From OE-Core rev: 9acaa764a4df8d589011ff597bba2afc05d6e78b)

Signed-off-by: Ming Liu <ming.liu@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agodbus: set correct address when using --address=systemd:
Ross Burton [Tue, 26 Feb 2013 12:37:10 +0000 (12:37 +0000)]
dbus: set correct address when using --address=systemd:

Patch taken from upstream 1.7 branch.

(From OE-Core rev: d7b8ae19464a3fe87822376b541b3d6865fe6115)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolsbtest: sync test suite packages version
Kang Kai [Tue, 26 Feb 2013 08:43:38 +0000 (16:43 +0800)]
lsbtest: sync test suite packages version

Update file packages_list after sync test suite packages version with
upstream.
Check date: Feb 20, 2103

Bump up PR.

(From OE-Core rev: f43ba5e41ac5c1fe9d6e66fa1a1f8a51f9cd289c)

Signed-off-by: Kang Kai <kai.kang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosstate-cache-management.sh: don't hardcode available sstate_suffixes
Hongxu Jia [Tue, 26 Feb 2013 07:57:16 +0000 (15:57 +0800)]
sstate-cache-management.sh: don't hardcode available sstate_suffixes

Don't hardcode available sstate_suffixes(it misses `packagedata'), find them
dynamically in $sstate_list.

[YOCTO #3635]

(From OE-Core rev: 26adfcb8c33fe62f5e15c3591efc670d70cbb5b7)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosstate-cache-management.sh:fix the incorrect usage of option `-d'
Hongxu Jia [Tue, 26 Feb 2013 07:57:17 +0000 (15:57 +0800)]
sstate-cache-management.sh:fix the incorrect usage of option `-d'

The description of option `-d' is not correct in useage. It is used to
remove duplicate and debug at the same time. Use option `-D' to control
debug info output and the option `-d' to flag remove duplicate.

[YOCTO #3635]

(From OE-Core rev: fa0b40c233e757fe986aa45798b35b60b89c879f)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosstate-cache-management.sh: fix remove duplicate failed when multiple archs
Hongxu Jia [Tue, 26 Feb 2013 07:57:15 +0000 (15:57 +0800)]
sstate-cache-management.sh: fix remove duplicate failed when multiple archs

The implementation of `--remove-duplicated' has been modified by the commit:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=0740f82aea92da0195524e37c372f9981e7f5e6d

In above commit, sstate cache files with multiple archs are not considered
duplicate and don't need to be removed as duplicated any more.

Update the description of `--remove-duplicated' in usage to keep consistent
with implementation.

[YOCTO #3635]

(From OE-Core rev: c201fdc2f01f398060cd953a1640a685797d9e64)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agodistrodata: added some corner cases for svn and git repos
Emilia Ciobanu [Tue, 26 Feb 2013 13:35:14 +0000 (15:35 +0200)]
distrodata: added some corner cases for svn and git repos

distrodata.bbclass: git tags can include only one digit, therefore
the regex that matches the latest version should also include this
case. For some svn repos, using the http protocol than using the
svn protocol to get infomation about revisions works better.

(From OE-Core rev: bbf09cc0abbc81419349f2af1bc1196a868b2269)

Signed-off-by: Emilia Ciobanu <emilia.maria.silvia.ciobanu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoAdd kernel arch variable in SDK environment variable list for supporting build extern...
Jessica Zhang [Mon, 25 Feb 2013 22:20:52 +0000 (14:20 -0800)]
Add kernel arch variable in SDK environment variable list for supporting build external kernel module using SDK

(From OE-Core rev: 7fc7e98801bd72b9662528f94b315749e6075666)

Signed-off-by: Jessica Zhang <jessica.zhang@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoiproute2: upgraded to 3.8.0
Cristian Iorga [Tue, 26 Feb 2013 15:57:42 +0000 (17:57 +0200)]
iproute2: upgraded to 3.8.0

- cross-compiling patch adapted to new source code

(From OE-Core rev: 35c2d04911b84cb21ef1a4a00dee399873bee8f3)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agodbus-glib : upgrade to 1.100.2
Andrei Dinu [Tue, 26 Feb 2013 12:25:03 +0000 (14:25 +0200)]
dbus-glib : upgrade to 1.100.2

(From OE-Core rev: eb43cd15cc0ceffd6b7fa14919646007d6ba99c2)

Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoe2fsprogs : upgrade to 1.42.7
Andrei Dinu [Tue, 26 Feb 2013 07:51:11 +0000 (09:51 +0200)]
e2fsprogs : upgrade to 1.42.7

(From OE-Core rev: 0662191f2e1ac2d686e2125f7f1bcb0f871c0edf)

Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoarchive-*-source.bbclass: Handle all package classes
Muhammad Shakeel [Wed, 20 Feb 2013 13:50:57 +0000 (18:50 +0500)]
archive-*-source.bbclass: Handle all package classes

* Add archiver tasks correctly for any 'IMAGE_PKGTYPE'.

[YOCTO #3449]

(From OE-Core rev: 0783686c4dc837674a2bcf3ca1f3f4858e256195)

Signed-off-by: Muhammad Shakeel <muhammad_shakeel@mentor.com>
Signed-off-by: Noor Ahsan <noor_ahsan@mentor.com>
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoarchiver class: Use tasks with sstate instead of pre/post funcs
Muhammad Shakeel [Wed, 20 Feb 2013 13:50:22 +0000 (18:50 +0500)]
archiver class: Use tasks with sstate instead of pre/post funcs

* Add tasks to move sources, script/logs and diff/env files in
  deploy directory.
* Enable SSTATE for 'do_archive_scripts_logs' task
* Enable SSTATE for 'do_dumpdata_create_diff_gz' task
* SSTATE is not used for sources/patches archiver task because source
  archive package can result into a very large file. It will be an
  unnecessary overhead to keep sources in DL_DIR and cached-binaries.
* If 'SOURCE_ARCHIVE_PACKAGE_TYPE' is 'srpm' then use pre/post functions
  because in this case we do not want to use tasks to move sources/logs
  in DEPLOY_DIR. 'do_package_write_rpm' is responsible for handling
  archiver packages.

[YOCTO #3449]

(From OE-Core rev: 959e2ae23ccbc6955a28996d4538e457cd8cfa5e)

Signed-off-by: Muhammad Shakeel <muhammad_shakeel@mentor.com>
Signed-off-by: Noor Ahsan <noor_ahsan@mentor.com>
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoutil-linux: Add package for libmount
MiLo [Tue, 19 Feb 2013 17:23:15 +0000 (18:23 +0100)]
util-linux: Add package for libmount

The libmount shared library was part of util-linux. This caused
util-linux-mount to RDEPEND on util-linux, so including that would
also drag in all of util-linux and all its recommendations.

To break this circular dependency, add a libmount package that holds
the libmount.so.* files, just like the other libraries built by util-
linux.

(From OE-Core rev: 2e79110e31da940728d42411cad3d019d570fc31)

Signed-off-by: MiLo <milo-software@users.sourceforge.net>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoaugeas: change SRC_URI
Constantin Musca [Mon, 25 Feb 2013 15:29:15 +0000 (17:29 +0200)]
augeas: change SRC_URI

- replace http://augeas.net/download/${BP}.tar.gz with
http://download.augeas.net/${BP}.tar.gz

(From OE-Core rev: 8e69f0ea42505e8f703893e18d73658b83d3b046)

Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolttng-ust: cannot find -llttng-ust-tracepoint
Robert Yang [Tue, 26 Feb 2013 09:24:12 +0000 (17:24 +0800)]
lttng-ust: cannot find -llttng-ust-tracepoint

liblttng_ust.la should depend on liblttng-ust-tracepoint.la, otherwise
there maybe a parallel build issue when building liblttng_ust.la:

ld: cannot find -llttng-ust-tracepoint

[YOCTO #3934]

(From OE-Core rev: b947dbc72b3cd03901112c1bab6ac0b81f1b374f)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: cooker: now that we use a Pool, raise the exceptions
Christopher Larson [Mon, 25 Feb 2013 18:48:00 +0000 (11:48 -0700)]
bitbake: cooker: now that we use a Pool, raise the exceptions

Multiprocessing catches these and handles passing them between processes
itself, we don't need to do it ourselves anymore.

[YOCTO #3926]

(Bitbake rev: 9ca8e513dc142dd7aefadeb6db2ccdb00f38b39f)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: perforce.py: fix the perforce fetcher
Robert Yang [Mon, 4 Feb 2013 03:19:36 +0000 (03:19 +0000)]
bitbake: perforce.py: fix the perforce fetcher

The bb.process.run() will return one tuple, e.g:

p4file = ('strA\nStrB\nstrC\n'), then there will be an iteration on p4file:

for i in p4file:
[snip]

The i will be 's t r A ...', this is incorrect. use splitlines() to fix
the problem.

[YOCTO #3619]

(Bitbake rev: b7440fb36b419996046f607e66434ce34722272b)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agositeinfo/insane: More n32 fixups
Peter Seebach [Thu, 21 Feb 2013 17:40:22 +0000 (11:40 -0600)]
siteinfo/insane: More n32 fixups

For perfectly sound reasons, n32 MIPS is a mips64 subset denoted by an
ABI change, thus, "mips64-vendor-linux-gnun32" rather than
"mips-vendor-linux-gnu". A previous change had fixed up insane.bbclass
to recognize these, which mostly worked, but left SITEINFO_BITS set to
64.

Since bit-32 is processed first, and there are specific checks for
linux-gnun32, modify the mips64-linux-gnun32 lines to specify "bit-32",
so things that check SITEINFO_BITS get the right answer. Also, drop
the mips{,el}-linux-gnun32 lines, because that's not a valid combination;
n32 only makes sense for mips64.

Also, the insane.bbclass change spelled "mips64el" as "mipsel64", which
no one noticed because no one's using little-endian n32, apparently.

(From OE-Core rev: 0c243a550f5a0e539823fe168bcc7b2bbb9f19e1)

Signed-off-by: Peter Seebach <peter.seebach@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopython-argparse: add RDEPENDS on python-textutils
Michael Thalmeier [Thu, 21 Feb 2013 09:38:59 +0000 (10:38 +0100)]
python-argparse: add RDEPENDS on python-textutils

The argparse module uses the textwrapper modules contained in
python-textutils.

(From OE-Core rev: 2e9d39834ceb8cf9d9ba94940372b549fb957028)

Signed-off-by: Michael Thalmeier <michael.thalmeier@hale.at>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobase-files: fix 'dash' expanding '\n'
Javier Viguera [Wed, 20 Feb 2013 15:09:17 +0000 (16:09 +0100)]
base-files: fix 'dash' expanding '\n'

Dash's 'echo' command expands '\n' by default, so the '\n' is not
included in the '/etc/issue' file.

Use 'printf' for portability between different shells.

(From OE-Core rev: 94c9ced84aa201e808e46e129bf14f328ff5f3e4)

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotcp-wrappers: add socklen_t.patch
farrah rashid [Wed, 20 Feb 2013 21:09:48 +0000 (16:09 -0500)]
tcp-wrappers: add socklen_t.patch

Replace incorrect size_t data type with socket length data type

(From OE-Core rev: c2d456cb79f42eefd50605d72361ded823568d1b)

Signed-off-by: farrah rashid <farrah.rashid@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agometa-skeleton: Add example multilib usages
Richard Purdie [Thu, 21 Feb 2013 13:50:00 +0000 (15:50 +0200)]
meta-skeleton: Add example multilib usages

(From OE-Core rev: 514b0ab066bebd52980467e935c0e5df9e480db4)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogconf: add patch to remove '+' from invalid characters list
Laurentiu Palcu [Mon, 25 Feb 2013 09:49:42 +0000 (11:49 +0200)]
gconf: add patch to remove '+' from invalid characters list

This will allow gconftool-2 to run when configuration source addresses
contain the '+' sign.

[YOCTO #3893]

(From OE-Core rev: 5ba4d947189f76692ea6cc75500d9295417a2055)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoinstall: Look for grub2 files on the initramfs, not rootfs
Darren Hart [Thu, 21 Feb 2013 17:28:02 +0000 (09:28 -0800)]
install: Look for grub2 files on the initramfs, not rootfs

Fixes [YOCTO #3870] atom-pc - cannot boot image on netbook after install

The problem here is that grub2 is installed but a grub 1 menu.lst is
created at install time. At boot, grub2 doesn't find a grub.cfg file and
drops to the grub shell.

This happens because the installer is looking for 40_custom (a grub2
file) on the rootfs, but grub2 isn't installed on the rootfs. It exists
in the initramfs. Patching the installer to look on the initramfs
resolves the problem.

Note that the problem may have occurred if grub2 used to be installed on
the rootfs but was later removed. In any case, the installer is HORRIBLE
and really needs to be completely redesigned as part of the deployment
effort. For now, this should get the live image installer limping along
again.

Tested on a Toshiba NB-305.

(From OE-Core rev: 8756a19bd24045d41ad20abb581e7872d0fc9ee6)

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: alexandru.c.georgescu@intel.com
Cc: sgw@linux.intel.com
Cc: ross.burton@intel.com
Cc: richard.purdie@intel.com
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agorootfs_rpm.bbclass: Handle multilib configures with different OS values
Mark Hatle [Thu, 21 Feb 2013 23:18:29 +0000 (17:18 -0600)]
rootfs_rpm.bbclass: Handle multilib configures with different OS values

[ CQID: WIND00404082 ]

It is possible for the TARGET_OS to change dependending on the multilib used
for a given package build.  mips64 has two potential TARGET_OS values: linux
and linux-gnun32.  The RPM and Smart setup needs to distinguish between the
two otherwise packages of the "non-default" TARGET_OS may be ignored as
incompatible.

(From OE-Core rev: aa760ff7dee4029c30c9de9fc0b640149e4a4c77)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoexternal-python-tarball: code refactoring
Kang Kai [Wed, 20 Feb 2013 06:06:17 +0000 (14:06 +0800)]
external-python-tarball: code refactoring

external-python-tarball only can be built when inherit package_ipk now.
Update it to reuse existed populate sdk code that it could be built for
rpm and deb too.

Remove var DEPENDS, SDK_* and flags of do_populate_sdk because they are
already defined in populate_sdk bbclasses.

[Yocto 3006]

(From OE-Core rev: 57134958a2c6b74de8654600e33acdd265966638)

Signed-off-by: Kang Kai <kai.kang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogenext2fs.inc: Add nativesdk build capability
Jason Wessel [Wed, 20 Feb 2013 11:11:12 +0000 (05:11 -0600)]
genext2fs.inc: Add nativesdk build capability

In order to generate new disk images for ext(2,3,4) which contain root
file systems we do not want to rely on the host's genext2fs which may
have different arguments and features, so allow the nativesdk
genext2fs binary to be built.

(From OE-Core rev: b9eac9683baaeb458d70a5089cbb5e2b8149eb26)

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoman: Remove wildcard from SRC_URI
Mark Hatle [Wed, 20 Feb 2013 01:27:14 +0000 (19:27 -0600)]
man: Remove wildcard from SRC_URI

[ CQID: WIND00402802 ]

Remove the wildcard from the SRC_URI.  This causes problems when you .bbappend
and add a FILESEXTRAPATHS entry.  The unpack task may be unable to find the
files to unpack leading to an error.

Avoid wildcards at all costs...

Note, remove both man-1.5m2-multiple.patch and man-1.6e-lzma+xz-support.patch,
they were not being applied in the previous version.  The later also fails to
apply when added to the SRC_URI.

(From OE-Core rev: 61b60906b2825d4f9ea1f5ae11e1f9fcc77ac4e7)

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
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 agolinux-dtc: Make KERNEL_DEVICETREE_FLAGS configurable
Anders Roxell [Wed, 20 Feb 2013 14:56:32 +0000 (15:56 +0100)]
linux-dtc: Make KERNEL_DEVICETREE_FLAGS configurable

(From OE-Core rev: f46c5714bc23a50a207c03cc20c3a6aebe8c5df0)

Signed-off-by: Anders Roxell <anders.roxell@enea.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibtirpc: upgrade to 0.2.3
Cristian Iorga [Wed, 20 Feb 2013 16:51:47 +0000 (18:51 +0200)]
libtirpc: upgrade to 0.2.3

- libtirpc-0.2.2-rpc-des-prot.patch removed;
- remove-des-crypt.patch removed;
both included in base distribution.

(From OE-Core rev: c0ff6185e623a40a7378a01d45b2c641ca3fa79d)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agorootfs_rpm.bbclass: Reorder feed priority based on multilib image setting
Mark Hatle [Wed, 20 Feb 2013 19:31:11 +0000 (13:31 -0600)]
rootfs_rpm.bbclass: Reorder feed priority based on multilib image setting

[ YOCTO #3915 ]
[ CQID: WIND00404309 ]

When doing a multilib image build, such as bitbake lib32-core-image-sato, the
system needs to reorder the priority level of the feeds.  If it does not
reorder the priorities, then 64-bit items can be selected by the automatic
dependency resolution in Smart.

(From OE-Core rev: dfbb1aa184955923b85b81aabf944de8f1a1e4b5)

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 agobase-passwd.preinst:fix creating passwd and group error
Hongxu Jia [Thu, 21 Feb 2013 06:22:16 +0000 (14:22 +0800)]
base-passwd.preinst:fix creating passwd and group error

Create files `passwd' and `group' in `$D${sysconfdir}', if `$D${sysconfdir}'
does not exist, there is an error:
...
cannot create $D${sysconfdir}/passwd: Directory nonexistent
cannot create $D${sysconfdir}/group: Directory nonexistent
...

Attampt to create dir before file creation.

[YOCTO #3917]

(From OE-Core rev: aea1d6c29e0c3f7c854045057d8bb389a1609b2b)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoxserver-xf86-config: empty generic xorg.conf
Ross Burton [Tue, 5 Feb 2013 14:01:04 +0000 (14:01 +0000)]
xserver-xf86-config: empty generic xorg.conf

The idea of a generic xorg.conf is meaningless, especially when they specify the
"intel" driver.  Empty this file so that unless the BSP specifies it's own
xorg.conf, no xorg.conf file is installed.

(From OE-Core rev: 746b6e90a8403886e6957d33610bbda115de0a0c)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoxserver-xf86-config: don't ship empty xorg.conf
Ross Burton [Tue, 5 Feb 2013 14:00:40 +0000 (14:00 +0000)]
xserver-xf86-config: don't ship empty xorg.conf

Many hardware platforms can autodetect their hardware and don't need a xorg.conf
at all.  Make it easy for BSPs to not ship a xorg.conf by not installing empty
xorg.conf files.

(From OE-Core rev: 4b46149df5f123c7acf4699dbc552cc0e07f709a)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackage_deb: check CONFFILES exist before adding them to metadata
Ross Burton [Fri, 15 Feb 2013 13:03:51 +0000 (13:03 +0000)]
package_deb: check CONFFILES exist before adding them to metadata

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

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

(From OE-Core rev: 767a3d1c45f97add720174a7034df750bfb09a8e)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agohwclock.sh: check for the existence of /etc/default/rcS
Chen Qi [Tue, 19 Feb 2013 07:59:40 +0000 (15:59 +0800)]
hwclock.sh: check for the existence of /etc/default/rcS

/etc/default/rcS might be missing if the init manager is not sysvinit.
So we have to check for the existence of this file before sourcing it.

[YOCTO #3697]

(From OE-Core rev: 416519ec595f59ebeafb95bed2546635cad41559)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoptest: Add missed .debug path
Björn Stenberg [Tue, 19 Feb 2013 13:14:04 +0000 (14:14 +0100)]
ptest: Add missed .debug path

(From OE-Core rev: f8bf3c65327c6e04c19a7dda623c7433f5d97417)

Signed-off-by: Björn Stenberg <bjst@enea.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogst-plugins-gl: add package recipe
Jeremy Stashluk [Tue, 19 Feb 2013 12:13:42 +0000 (12:13 +0000)]
gst-plugins-gl: add package recipe

Added notes, signoff, and upstream status to internal patch.

(From OE-Core rev: 76cebb57d3ce507e3876e0a9a881eaa3e8c6fdb8)

Signed-off-by: Jeremy Stashluk <jstashluk@dekaresearch.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogroff: upgrade to 1.22.2
Constantin Musca [Tue, 19 Feb 2013 08:11:30 +0000 (10:11 +0200)]
groff: upgrade to 1.22.2

- add code for generating the gnulib configure script
- replace /usr/bin/perl with /usr/bin/env perl

(From OE-Core rev: c205124d135935855b9b479125f5bddce96a2872)

Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoshared-mime-info: upgrade to 1.1
Constantin Musca [Mon, 18 Feb 2013 12:04:34 +0000 (14:04 +0200)]
shared-mime-info: upgrade to 1.1

(From OE-Core rev: eed45b5e22e5fa7b7d6ea7ccf2db36b80f90cd4e)

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

(From OE-Core rev: b4c5a95c4c5266c4b3a26addd4ac87bc4a482604)

Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoaugeas: upgrade to 1.0.0
Constantin Musca [Mon, 18 Feb 2013 12:05:09 +0000 (14:05 +0200)]
augeas: upgrade to 1.0.0

0001-Add-missing-argument-to-escape.patch: removed
    - included in the new version

remove-gets.patch: not needed anymore

add-missing-argz-conditional.patch: added
    - the Makefiles assume that the argz conditional
is present in configure.ac

(From OE-Core rev: a711a8617c39b06c9a494d0ceae9f96f65b024f9)

Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopulseaudio: upgrade to 3.0
Cristian Iorga [Mon, 18 Feb 2013 12:50:30 +0000 (14:50 +0200)]
pulseaudio: upgrade to 3.0

ARM Neon instruction set compilation error fixed.
Build system disables Neon optimisations if
ARM target does not support it.
BT support dependent on bluez and sbc support.
sbc package added as a dependency.

(From OE-Core rev: 4e7b91b5a2613b957b08aefbee1aac28fdd19598)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosbc: Fix PN -> BPN for multilib
Saul Wold [Thu, 21 Feb 2013 16:02:51 +0000 (08:02 -0800)]
sbc: Fix PN -> BPN for multilib

(From OE-Core rev: 52bc2abf77aeb0756df758ff2bdfadef170e4558)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosbc: SBC audio codec
Cristian Iorga [Mon, 18 Feb 2013 12:50:29 +0000 (14:50 +0200)]
sbc: SBC audio codec

recipe added;
needed by pulseaudio.

(From OE-Core rev: fc6375426f9450d803f01b7d4513a0c0a1325e5f)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agognome-common: upgrade to 3.7.4
Constantin Musca [Mon, 18 Feb 2013 13:43:35 +0000 (15:43 +0200)]
gnome-common: upgrade to 3.7.4

- gnome-common finally is GPLv2+
- omf.patch is included in the new version

(From OE-Core rev: dba2105d2f6f5788d8f827edad4e8c601a409d1f)

Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoxvinfo: upgrade to 1.1.2
Laurentiu Palcu [Mon, 18 Feb 2013 15:20:17 +0000 (17:20 +0200)]
xvinfo: upgrade to 1.1.2

(From OE-Core rev: 4a95ac6804e1800ace722ff02b0dfc5a33381735)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoxrandr: upgrade to 1.4.0
Laurentiu Palcu [Mon, 18 Feb 2013 15:20:16 +0000 (17:20 +0200)]
xrandr: upgrade to 1.4.0

(From OE-Core rev: 4116e3f3fb08acc1c0a997c65270a2f70fcb4450)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agocurl: update to upstream version 7.29.0
Marko Lindqvist [Sun, 17 Feb 2013 08:53:10 +0000 (10:53 +0200)]
curl: update to upstream version 7.29.0

- obsolete_automake_macros.patch removed as it's part of upstream.
- dont_override_ac_config_macro_dir.patch removed as no longer needed.
- pkgconfig_fix.patch updated to apply cleanly

(From OE-Core rev: b0c541236b4c4670ce77f55886b6ce02c562b8c2)

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agooprofileui-server: replace obsolete automake macros with working ones
Marko Lindqvist [Sun, 17 Feb 2013 08:52:21 +0000 (10:52 +0200)]
oprofileui-server: replace obsolete automake macros with working ones

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

(From OE-Core rev: 254799258ead1b7a59c301ad2d3e3c7e5b9fb8db)

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogtk-sato-engine: update to git repository head
Marko Lindqvist [Sun, 17 Feb 2013 08:51:58 +0000 (10:51 +0200)]
gtk-sato-engine: update to git repository head

The only new commit this pulls fixes build with automake-1.13.

(From OE-Core rev: 86284e488a984ee161af75bee30440b827bd72c9)

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agowebkit-gtk: replace obsolete automake macros with working ones
Marko Lindqvist [Sun, 17 Feb 2013 08:51:23 +0000 (10:51 +0200)]
webkit-gtk: replace obsolete automake macros with working ones

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

(From OE-Core rev: fd3586cfa620299ba2544ce16e140956b5171ae5)

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agomatchbox-session-sato: start the keyboard applet if we have no keyboard
Ross Burton [Fri, 15 Feb 2013 17:02:42 +0000 (17:02 +0000)]
matchbox-session-sato: start the keyboard applet if we have no keyboard

If the formfactor says we have no physical keyboard, add the keyboard applet so
the user can force the keyboard to show/hide on demand.

(From OE-Core rev: a0bca3dc35db1a8fbc49fa4e3884c2365353b9c1)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agomatchbox-keyboard: add RRECOMMENDS to matchbox-keyboard-applet
Ross Burton [Thu, 14 Feb 2013 21:38:09 +0000 (21:38 +0000)]
matchbox-keyboard: add RRECOMMENDS to matchbox-keyboard-applet

The keyboard is more useful with the applet, as it means that you can hide it.

(From OE-Core rev: b6ea5818314d6de3a68df455e462f98f06cfd860)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agomatchbox-keyboard: general clean up
Ross Burton [Thu, 14 Feb 2013 21:36:59 +0000 (21:36 +0000)]
matchbox-keyboard: general clean up

Re-order variables, use $PN more, and merge the -dbg packages together.

(From OE-Core rev: 1dfe4f5d49bbbaf1adc28dacac92b5288021309b)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopakcage.bbclass:use a better way to cut -dev/-dbg suffix
Song.Li [Fri, 22 Feb 2013 10:52:19 +0000 (18:52 +0800)]
pakcage.bbclass:use a better way to cut -dev/-dbg suffix

In pakcage.bbclass,function replace('-dev', '') is
used to cut '-dev' suffix. but it will cause the
name "lib32-device-dev" to "lib32ice",
so change it to [:-4].

(From OE-Core rev: 91a3a48798029ca88a46a528200f4c5252f245e9)

Signed-off-by: Song.Li <Song.Li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: build.py: avoid deleting taint files when writing stamps
Paul Eggleton [Thu, 21 Feb 2013 15:23:35 +0000 (15:23 +0000)]
bitbake: build.py: avoid deleting taint files when writing stamps

The stamp cleaning process that occurs before writing out new stamps for
a task was deleting taint files as well. This resulted in tasks that
were forcibly re-executed using the -f or -C command line options to
have their previous output restored from shared state when called upon a
second time, because the taint value was no longer incorporated into the
task signature and thus it was reverting to its previous value. This
also affected the kernel menuconfig command in OE-Core.

Note that the taint file *is* still deleted when doing -c clean, which
is the desired behaviour.

Fixes [YOCTO #3919].

(Bitbake rev: e6db0ee31178d4386802e720d75303ec7dc21519)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: Revert "fetch2: Adapt encode/decode url to use URI class"
Richard Purdie [Wed, 20 Feb 2013 07:05:11 +0000 (23:05 -0800)]
bitbake: Revert "fetch2: Adapt encode/decode url to use URI class"

This reverts commit 21fe2683aefde10e847e66c11c26d4f4c1e07cfd
since bitbake-selftest doesn't pass when this is applied and
we're seeing multiple build failures from this change.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agorootfs_ipkg: fix BAD_RECOMMENDATIONS handling
Ross Burton [Tue, 19 Feb 2013 21:31:52 +0000 (21:31 +0000)]
rootfs_ipkg: fix BAD_RECOMMENDATIONS handling

If multiple versions of the same package are in the package feed then the
generate status file would only contains a "deinstall" status for the last one,
which meant that BAD_RECOMMENDATIONS wouldn't actually work.

Use awk instead of grep and stop reading when we reach a newline, so we only
ever output a single stanza.

(From OE-Core rev: a5362de60c0051f16b88a40bd9cb41915bee0b0f)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotoolchain-scripts.bbclass: add PYTHONHOME variable to environment-setup
Laurentiu Palcu [Tue, 19 Feb 2013 14:15:03 +0000 (16:15 +0200)]
toolchain-scripts.bbclass: add PYTHONHOME variable to environment-setup

When relocating the SDK, applications using python will search for
python modules in the default location and will fail to start.
The below errors are thrown by gdb, for example:

Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
ImportError: No module named site

In order to overcome this, add the PYTHONHOME variable to the
environment-setup script for both standalone toolchain and
adt-installer. No need to do that for meta-ide-support environment
script since this toolchain does not get relocated.

[YOCTO #3839]

(From OE-Core rev: e7a21cd69a326ab7e2d0e410db28f24956f61208)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: utils: Improve remove funciton to handle whitespace
Richard Purdie [Tue, 19 Feb 2013 22:31:52 +0000 (14:31 -0800)]
bitbake: utils: Improve remove funciton to handle whitespace

Improve the remove function to better handle cases where path contains
special shell chars like whitespaces, '$', ';' or'\'.

Thanks to Enrico Scholz for the fix.

(Bitbake rev: 617511c9f86cc4ef52457653c8adff582d94bce3)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: bitbake/fetch2: workaround urlparse in older python not support git
Matthew McClintock [Tue, 19 Feb 2013 20:20:01 +0000 (14:20 -0600)]
bitbake: bitbake/fetch2: workaround urlparse in older python not support git

(Bitbake rev: 7e479dc6a574a8f3bd9f24d2ed1c3ceef91f3828)

Signed-off-by: Matthew McClintock <msm@freescale.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: wget: Improve mkdir handling
Richard Purdie [Tue, 19 Feb 2013 21:52:38 +0000 (13:52 -0800)]
bitbake: wget: Improve mkdir handling

If there there isn't a subdirectory to the downloadfilename, this was
failing. This patch avoids that issue.

(Bitbake rev: 58bfd8d88495d4cae808e23b7af40e65ad05450f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: cooker: parse using bb.compat.Pool
Christopher Larson [Tue, 12 Feb 2013 17:28:47 +0000 (12:28 -0500)]
bitbake: cooker: parse using bb.compat.Pool

(Bitbake rev: 8af519a49a3374bd9004864ef31ca8aa328e9f34)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibsdl: Use 'virtual/nativesdk-libx11' instead of hardcoding nativesdk-libx11
Otavio Salvador [Sun, 17 Feb 2013 17:53:10 +0000 (17:53 +0000)]
libsdl: Use 'virtual/nativesdk-libx11' instead of hardcoding nativesdk-libx11

(From OE-Core rev: bb7a913e4a0da450cc85edfe0d8f80bdf4065fad)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agodbus: Drop x11 support from nativesdk
Otavio Salvador [Sun, 17 Feb 2013 17:53:09 +0000 (17:53 +0000)]
dbus: Drop x11 support from nativesdk

This avoid a libx11 dependency for nativesdk as it is not intended to
be run in the toolchain. We also remove the dbus-launch as without x11
support it might case trouble for user

(From OE-Core rev: 2dcb6bf9205a5b2144ccb7f2912bf3e13211ae88)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agodevshell.bbclass: Allow running devshell and fakeroot together
Richard Purdie [Mon, 18 Feb 2013 13:19:50 +0000 (13:19 +0000)]
devshell.bbclass: Allow running devshell and fakeroot together

Currently its hard to run a devshell complete with fakeroot context. This
patch allows the fakeroot flag on the task to do this, as with any other
task. Since we may need to start X terminal applications, we need to
only start the fakeroot session on the final command, hence the hoops
this code jumps through.

As always with fakeroot, you can break out and run a command without
the fake permissions with syntax like "PSEUDO_UNLOAD=1 <command>"

[YOCTO #3374]

(From OE-Core rev: 0a2662a48eaf0487db043c348e2834bb9cdd0466)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopopulate_sdk_base.bbclass: fix SDKTARGETSYSROOT value
Laurentiu Palcu [Mon, 18 Feb 2013 11:40:12 +0000 (11:40 +0000)]
populate_sdk_base.bbclass: fix SDKTARGETSYSROOT value

Currently, SDKTARGETSYSROOT points to PACKAGE_ARCH which, sometimes, can
be set to MACHINE_ARCH. When this happens, the default target sysroot
passed to the cross-canadian toolchain, which points to TUNE_PKGARCH,
will be different from the directory where the target sysroot has been
deployed.

In order to fix this, use REAL_MULTIMACH_TARGET_SYS variable instead of
MULTIMACH_TARGET_SYS.

[YOCTO #3784]

(From OE-Core rev: 41437aaac0cfc6f931d3b2974d380f20ec01f6e8)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosanity: check_path_length: replace tab with 8 spaces
Martin Jansa [Mon, 18 Feb 2013 23:20:11 +0000 (23:20 +0000)]
sanity: check_path_length: replace tab with 8 spaces

(From OE-Core rev: de3f2367c46a213d07d834c7e874d2a4a0697026)

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 agopseudo.inc: pseudo 1.5 uprev, support extra config flags
Peter Seebach [Sun, 17 Feb 2013 23:31:33 +0000 (23:31 +0000)]
pseudo.inc: pseudo 1.5 uprev, support extra config flags

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

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

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

(From OE-Core rev: 79ddb0c33401da442dbaa8e0d73ebacf297d9185)

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

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

(From OE-Core rev: 4ade9c60acea0ac92d0a08f3078361b6f54c85e2)

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

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

(Bitbake rev: d240baeb7a4107d2eba3f08c411c0f086674d8e2)

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

(Bitbake rev: 230e00948ba093958e8e89e9ee380444b3dad307)

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

(Bitbake rev: 21fe2683aefde10e847e66c11c26d4f4c1e07cfd)

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

(Bitbake rev: a71e7d4137d2c5268b406f69992d09c00772a040)

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

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

(Bitbake rev: bd824da8a7eafe27310e410807319628378caeca)

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

(Bitbake rev: 6d88fcee16ced3a8c1ab1daf8e88d36f70f13346)

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

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

(From OE-Core rev: cd503c7f7fec6d177209832f73cec9c5d490be6b)

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

Remove/simply overcomplicated code. No functionality change.

(From OE-Core rev: e3b21455e4ecc5b4961cf52e035a2d6d541faf69)

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

Fix deprecated function reference.

(From OE-Core rev: 9e7a6492010aa2de65310d6fa13290068e7cadb1)

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

(From OE-Core rev: fead6005b56f53535967476cc752691316e02183)

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

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

(From OE-Core rev: 3684036213c9b1c27389260b7a1e3441c6bd659d)

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

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

(From OE-Core rev: 721ef058b37604e100021ec7a90ad2f745d83916)

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

(From OE-Core rev: 24cbe88429ba021d7c461e0271b67106d11d5eb2)

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

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

(From OE-Core rev: 323ef78e377525e2214f4700c30305c493137853)

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

(From OE-Core rev: 8b8e471b4e6d90e36320fc608b6eec908fd43fe6)

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

(Bitbake rev: cf510e3da36e53f98ca86501747364bf4699ecc1)

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

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

(Bitbake rev: 96088ebdec08e49ba9e8dbcac437bfcdc21f5983)

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

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

(From OE-Core rev: 97aa5ac2df7593e343d82f5e64a422bb951eacf9)

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

(From OE-Core rev: dac9290b20819bb7f74fa27b87b8077d8856c551)

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

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

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

(From OE-Core rev: 22e16f44b58ae6bbf719b9074d39aac065a402f1)

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

Code taken from Redhat

[YOCTO #3813]

(From OE-Core rev: 17f8e03ace51df6b94fdcb7e410acf79c7b046ce)

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

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

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

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>