scm/bb/tizen-distro.git
10 years agobitbake: toaster: display message if no images are generated
Farrell Wymore [Fri, 23 May 2014 19:09:29 +0000 (12:09 -0700)]
bitbake: toaster: display message if no images are generated

Display message if no images are generated for a target. This
commit was amended to have more conditions for displaying the
message.

[YOCTO #6094]

(Bitbake rev: ac1911eb857f4759ed085c8a4fc4b47cefafcd7a)

Signed-off-by: Farrell Wymore <farrell.wymore@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: Add performance testing script
Ionut Chisanovici [Wed, 28 May 2014 12:52:26 +0000 (15:52 +0300)]
bitbake: toaster: Add performance testing script

This is implemented as a django management command.
For the moment the 'manage.py perf' command will track the toaster
'gui' urls http response code and load time.

To use it:
1. do your toaster builds
2. ensure toaster is started
1. cd bitbake/lib/toaster
2. ln -s ../../../build/toaster.sqlite
3. ./manage.py perf

(Bitbake rev: 4a1fc6851d21500150715f0e8fa03c0b228ec5f2)

Signed-off-by: Ionut Chisanovici <ionutx.chisanovici@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: refactor the target page
Farrell Wymore [Thu, 22 May 2014 21:58:14 +0000 (14:58 -0700)]
bitbake: toaster: refactor the target page

the target (packages) page had to refactored to
allow the displays to differ depending on the caller
namely the license manifest link. Amended to make the
link from the tag rather than the pathname itself.

[YOCTO #6291]
[YOCTO #6079]

(Bitbake rev: b21a2af9411da17d49521820fa512292e89c856e)

Signed-off-by: Farrell Wymore <farrell.wymore@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: build.py: Ensure shared work siginfo files are written to the correct location
Richard Purdie [Wed, 18 Jun 2014 16:59:39 +0000 (17:59 +0100)]
bitbake: build.py: Ensure shared work siginfo files are written to the correct location

Right now shared work signature data is saved to the non-shared directory
which is confusing to everyone including bitbake. Whilst its messy,
extra the stampbase data instead, which ensures the sig data is written
to the correct location alongside its corresponding stamp file.

(Bitbake rev: 7ae1d4844d9d3a76f86ef32c5a794e51e334e588)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosstatesig: Add try/except around the stat calls
Richard Purdie [Wed, 18 Jun 2014 16:58:56 +0000 (17:58 +0100)]
sstatesig: Add try/except around the stat calls

Its possible sstate symlinks to other sstate mirrors which then my get
removed/cleaned. If we find invalid symlinks, skip over them rather
than error with a backtrace.

(From OE-Core rev: 5ed9bb42abf93aa084dd23ca68cc996a94a51a10)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosstate: Fix shared work preconfigure task handling
Richard Purdie [Wed, 18 Jun 2014 16:58:18 +0000 (17:58 +0100)]
sstate: Fix shared work preconfigure task handling

When the preconfigure task was added to gcc, it wasn't added to sstate's list
of possible shared work tasks. This meant that diffsigs wasn't able to find
the preconfigure sigdata/info file since it has inconsistent naming.

This adds the task name to the list. Ideally this list would be autogenerated
or not even required, right now its a sanity test that the shared work
code works as intended so is best left as is.

(From OE-Core rev: 72032f6dd6724663a3417b1d1b666d9a63fcbfdb)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: bitbake-user-manual-fetching.xml: Grammar, typo, and tweaks.
Robert P. J. Day [Wed, 18 Jun 2014 11:25:40 +0000 (14:25 +0300)]
bitbake: bitbake-user-manual-fetching.xml: Grammar, typo, and tweaks.

Various grammatical and typo tweaks all in fetching chapter, including
moving CVS section after wget section for more logical content flow.

(Bitbake rev: 39bbc8f82894ca521d35645cd618dd131fde38ef)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: bitbake-user-manual-style.css: Removed dead .PNG file
Scott Rifenbark [Fri, 13 Jun 2014 04:38:15 +0000 (07:38 +0300)]
bitbake: bitbake-user-manual-style.css: Removed dead .PNG file

Fixes [YOCTO #6430]

I removed an old .PNG file that is not used.

(Bitbake rev: dc5adbb8ce140b6898f18bb99bac02aac16f2ac8)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: bitbake-user-manual: Added permalink support.
Scott Rifenbark [Fri, 6 Jun 2014 11:41:03 +0000 (14:41 +0300)]
bitbake: bitbake-user-manual: Added permalink support.

Fixes [YOCTO #5772]

I added the five XSL templates to the template folder.  I updated
the bitbake-user-manual-customization.xsl layer file to include
the new templates.

(Bitbake rev: e1c24a79ededb2dd4ac5ce09fcfdf93218261907)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: bitbake-user-manual-customization.xsl: Removed stale TOC variable.
Scott Rifenbark [Fri, 6 Jun 2014 11:34:01 +0000 (14:34 +0300)]
bitbake: bitbake-user-manual-customization.xsl: Removed stale TOC variable.

I deleted the commented out xsl:param line that attempts to
set labeling for Appendices.  It had been replaced by a working
line.

(Bitbake rev: bf79174e02cc113e0512bcadc3ab0fdffd138215)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: bitbake-user-manual-fetching.xml: Edits to the Git Submodule fetcher section.
Scott Rifenbark [Mon, 19 May 2014 13:03:02 +0000 (16:03 +0300)]
bitbake: bitbake-user-manual-fetching.xml: Edits to the Git Submodule fetcher section.

Exchanged "SRC_URI" for "URI" for clarity.

(Bitbake rev: 90cc450671eaabf917c10a8d01b729b6bc0f544c)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: bitbake-user-manual-fetching.xml: Added new Git Submodule Fetcher section.
Scott Rifenbark [Mon, 19 May 2014 11:49:56 +0000 (14:49 +0300)]
bitbake: bitbake-user-manual-fetching.xml: Added new Git Submodule Fetcher section.

Added the "GIT Submodule Fetcher (gitsm://)" section to the
fetchers chapter.  This information was provided by Chris
Morgan.

Reported-by: Chris Morgan <chmorgan@gmail.com>
(Bitbake rev: a3a3331e7118fd3139fe5a80b157a5a5b38631de)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodbus: don't override EXTRA_OECONF
Robert Yang [Wed, 18 Jun 2014 08:28:23 +0000 (01:28 -0700)]
dbus: don't override EXTRA_OECONF

We need use EXTRA_OECONF_append_class-native rather than
EXTRA_OECONF_class-native.

(From OE-Core rev: 5e1560b98680c79c979b8f9325f9f9997f9fd438)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokernel-module-split: Fix KERNEL_MODULE_AUTOLOAD handling
Richard Purdie [Wed, 18 Jun 2014 09:39:39 +0000 (10:39 +0100)]
kernel-module-split: Fix KERNEL_MODULE_AUTOLOAD handling

Addresses the problem:

The stack trace of python calls that resulted in this exception/failure was:
File: 'split_kernel_module_packages', lineno: 164, function: <module>
     0160:        if len(os.listdir(dir)) == 0:
     0161:            os.rmdir(dir)
     0162:
     0163:
 *** 0164:split_kernel_module_packages(d)
     0165:
File: 'split_kernel_module_packages', lineno: 150, function: split_kernel_module_packages
     0146:     0147:    postinst = d.getVar('pkg_postinst_modules', True)
     0148:    postrm = d.getVar('pkg_postrm_modules', True)
     0149:
 *** 0150:    modules = do_split_packages(d, root='/lib/modules', file_regex=module_regex, output_pattern=module_pattern, description='%s kernel module', postinst=postinst, postrm=postrm, recursive=True, hook=frob_metadata, extra_depends='kernel-%s' % (d.getVar("KERNEL_VERSION", True)))
     0151:    if modules:
     0152:        metapkg = d.getVar('KERNEL_MODULES_META_PACKAGE', True)
     0153:        d.appendVar('RDEPENDS_' + metapkg, ' '+' '.join(modules))
     0154:
File: 'package.bbclass', lineno: 148, function: do_split_packages
     0144:                d.setVar('pkg_postrm_' + pkg, postrm)
     0145:        else:
     0146:            d.setVar('FILES_' + pkg, oldfiles + " " + newfile)
     0147:        if callable(hook):
 *** 0148:            hook(f, pkg, file_regex, output_pattern, m.group(1))
     0149:
     0150:    d.setVar('PACKAGES', ' '.join(packages))
     0151:    return split_packages
     0152:
File: 'split_kernel_module_packages', lineno: 109, function: frob_metadata
File "split_kernel_module_packages", line 109, in frob_metadata

Exception: AttributeError: 'NoneType' object has no attribute 'split'

ERROR: Function failed: split_kernel_module_packages

[YOCTO #6461]

[a revised version of a patch from Nitin Kamble]

(From OE-Core rev: f30d12b4fbfe7d6b581598efa9ceca69dcfb4294)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolttng-modules: update to 2.4.1-stable latest
Bruce Ashfield [Wed, 18 Jun 2014 01:29:51 +0000 (21:29 -0400)]
lttng-modules: update to 2.4.1-stable latest

The 3.15, and 3.14.5+ kernels introduced a change to trace_block_rq_complete,
which triggers the following build error:

    probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:151:6:
    error: conflicting types for 'trace_block_rq_complete'
    |  void trace_##_name(_proto);
    |       ^
    |
    probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:117:2:
    note: in expansion of macro 'DEFINE_EVENT_MAP'
    |   DEFINE_EVENT_MAP(template, name, name, PARAMS(proto), PARAMS(args))
    |   ^
    |
    probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/block.h:235:1:
    note: in expansion of macro 'DEFINE_EVENT'
    |  DEFINE_EVENT(block_rq_with_error, block_rq_complete,

The lttng 2.4.x-stable branch contains the fix (and several other small fixes), so
we bump the SRCREV to import the change.

Build tested against 3.14 and 3.10.

[YOCTO #6459]

(From OE-Core rev: bb304f306c0f6ee496a75a67c0bb8a6c1e41ddf2)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-yocto/3.10: update to v3.10.43
Bruce Ashfield [Tue, 17 Jun 2014 15:26:15 +0000 (11:26 -0400)]
linux-yocto/3.10: update to v3.10.43

Importing the v3.10.42 and 43 korg -stable updates.

(From OE-Core rev: f506d0660c9949485268a92724ac770b5457b0ca)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-yocto/3.14: enable mpc8315e NAND and Yaffs2 gcc 4.9 fix
Bruce Ashfield [Tue, 17 Jun 2014 15:26:14 +0000 (11:26 -0400)]
linux-yocto/3.14: enable mpc8315e NAND and Yaffs2 gcc 4.9 fix

Updating the meta branch with configuration changes to enable NAND
booting on the mpc8315e reference board.

We also update the BSP SRCREVs to fix a compilation issue with
date/time on Yaffs2 and gcc 4.9.

(From OE-Core rev: d7f3b457de1a541a4ba986c7e6dcdf136a3b831c)

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-yocto/3.4: update to v3.4.91
Bruce Ashfield [Tue, 17 Jun 2014 15:26:13 +0000 (11:26 -0400)]
linux-yocto/3.4: update to v3.4.91

Updating to the latest korg -stable release.

(From OE-Core rev: 4121ab3a6ebfa9f8c33157a70533069ef1067fae)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-yocto/3.14: update to v3.14.5
Bruce Ashfield [Tue, 17 Jun 2014 15:26:12 +0000 (11:26 -0400)]
linux-yocto/3.14: update to v3.14.5

(From OE-Core rev: c6a44b388f88b3ec106ffb982c711083c24b7f96)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolinux-yocto/3.10: update to v3.10.41
Bruce Ashfield [Tue, 17 Jun 2014 15:26:11 +0000 (11:26 -0400)]
linux-yocto/3.10: update to v3.10.41

(From OE-Core rev: f3f9d92f7554ca5428e709831fd14bf9239f7aab)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agompc8315e-rdb: add the example about booting from jffs2 root
Kevin Hao [Tue, 17 Jun 2014 16:13:20 +0000 (12:13 -0400)]
mpc8315e-rdb: add the example about booting from jffs2 root

(From meta-yocto rev: 93b86fc3e5abee5b5596579a65546b09d0c5f66a)

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoghostscript: fix sizeof(GX_COLOR_INDEX_TYPE) not equal to ARCH_SIZEOF_GX_COLOR_INDEX...
Hongxu Jia [Tue, 17 Jun 2014 11:03:03 +0000 (19:03 +0800)]
ghostscript: fix sizeof(GX_COLOR_INDEX_TYPE) not equal to ARCH_SIZEOF_GX_COLOR_INDEX on mips

The commit: http://ghostscript.com/pipermail/gs-cvs/2014-February/017271.html
newly added a 'compile time assert' on 9.14 that causes the build to fail if
the sizeof(GX_COLOR_INDEX_TYPE) is not equal to ARCH_SIZEOF_GX_COLOR_INDEX.

Disscuss on IRC:
http://ghostscript.com/irclogs/2014/02/06.html

The commit from OE-Core rev: 78a13ba170c1de6d7ef077854e3e34e18d17099f
...
ghostscript: add pregenerated objarch for mipsel/mips64/mips64el
...
has defined ARCH_SIZEOF_GX_COLOR_INDEX according to the type of archs,
and assigned 4 for mips/mipsel (8 for others).

The GX_COLOR_INDEX_TYPE was defined at do_configure time, which used
large color index (with 8) by default. We should manually choose the
opposite one (with 4) for mips/mipsel.

(From OE-Core rev: 0710ed28e868d4fc4ca027afb3c7acfc899f9409)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoghostscript: upgrade to 9.14
Hongxu Jia [Tue, 17 Jun 2014 11:03:02 +0000 (19:03 +0800)]
ghostscript: upgrade to 9.14

- The LICENSE added AGPL for the font files (in Resource/Font);

- Rebase ghostscript-9.02-parallel-make.patch to 9.14

- Rebase ghostscript-native-fix-disable-system-libtiff.patch
  since base/configure.ac has been moved to configure.ac.
  http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=f1488c5aff54f37ee67759827d4298592af5dbc8

- Obsolete ghostscript-9.05-NOT-check-endian.patch, and add option
  '--enable-little-endian'/'--enable-big-endian' conditionally to
  intead.
  http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=e76dc46756e89a14a3348bce12a633d32e4fa831

- Add base-genht.c-add-a-preprocessor-define-to-allow-fope.patch
  for native, since the upstream replace all fopen calls with
  gp_fopen and add a preprocessor define so that any unintential
  calls directly to fopen will cause an error. This patch add a
  preprocessor define to allow fopen calling in base/genht.c as
  exceptions.
  http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=773c69e46e70bdd5482676437dafd2ca83397643

- Remove package ghostscript-cups, since CUPS filters
  gstoraster and gstopxl has been moved to cups-filters
  which is a free software package hosted by OpenPrinting.
  http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=9304a21699a6c17579fae32f44f5c92a37c13e2d
  http://www.linuxfoundation.org/collaborate/workgroups/openprinting/cups-filters

(From OE-Core rev: 44ad25519b8e290f9a98b88eeec52ba199e76431)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoqmmp: upgrade to 0.7.7
Hongxu Jia [Tue, 17 Jun 2014 07:01:07 +0000 (15:01 +0800)]
qmmp: upgrade to 0.7.7

Build:
1) Add LICENSE_FLAGS_WHITELIST += "commercial" to local.conf

2) bitbake qmmp

(From OE-Core rev: 55b6d5fac389f55089018574cc2b4ef8217f1b0d)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodirectfb: upgrade to 1.7.4
Hongxu Jia [Tue, 17 Jun 2014 07:01:06 +0000 (15:01 +0800)]
directfb: upgrade to 1.7.4

(From OE-Core rev: ee3d6b819160d6a9a1e474e6a9669f9ca2a3b5a3)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibnewt/libnewt-python: upgrade to 0.52.17
Hongxu Jia [Tue, 17 Jun 2014 07:01:05 +0000 (15:01 +0800)]
libnewt/libnewt-python: upgrade to 0.52.17

- The company address has changed in COPYING.

- Rebase fix_SHAREDDIR.patch to 0.52.17

- Rebase cross_ar.patch to 0.52.17

- Obsolete fix_python_fpic.patch, since the patch has been
  merged by upstream;

- The upstream rename snackmodule to snack in 0.52.17, so tweak
  libnewt-python_0.52.17.bb;

(From OE-Core rev: 46ec6e5601b88d4270d58586f25626349474d769)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agohwlatdetect: fix PV
Koen Kooi [Tue, 17 Jun 2014 09:01:28 +0000 (11:01 +0200)]
hwlatdetect: fix PV

As an extra safety measure set PV in the same place as SRCREV.

(From OE-Core rev: cdbd772492812d2bd16ce9f3d5641910f9df240f)

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agohwlatdetect 0.85: fix variable ordering
Koen Kooi [Tue, 17 Jun 2014 09:01:27 +0000 (11:01 +0200)]
hwlatdetect 0.85: fix variable ordering

The OE styleguide says to group R* variables below do_install.

(From OE-Core rev: 8f6e7a711b5b5ed23b270a385f9f491005ec32cf)

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodpkg: Security Advisory - CVE-2014-3127
Guillem Jover [Tue, 17 Jun 2014 08:25:52 +0000 (04:25 -0400)]
dpkg: Security Advisory - CVE-2014-3127

v2 changes:
* update format for commit log
* add Upstream-Status for patch

commit a12eb58959d0a10584a428f4a3103a49204c410f upstream

Dpkg::Source::Patch: Outright reject C-style filenames in patches

Because patch only started recognizing C-style filenames in diffs
in version 2.7, it's not safe to assume one behaviour or the other,
as the system might or might not have a recent enough version, or
a GNU patch program at all. There's also no reason we should be
supporting this kind of strange encoded filenames in patches, when
we have not done so up to now.

Let's just ban these types of diffs and be done with it.

Fixes: CVE-2014-0471, CVE-2014-3127
Closes: #746306

[drop the text for debian/changelog,because it's not suitable
for the veriosn]
(From OE-Core rev: 2c3838443eacd3a86ea8917ea53a20248e7bdf03)

Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com>
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodpkg: Security Advisory - CVE-2014-0471
Guillem Jover [Tue, 17 Jun 2014 08:25:51 +0000 (04:25 -0400)]
dpkg: Security Advisory - CVE-2014-0471

v2 changes:
* update format for commit log
* add Upstream-Status for patch

commit a82651188476841d190c58693f95827d61959b51 upstream

Dkpkg::Source::Patch: Correctly parse C-style diff filenames

We need to strip the surrounding quotes, and unescape any escape
sequence, so that we check the same files that the patch program will
be using, otherwise a malicious package could overpass those checks,
and perform directory traversal attacks on source package unpacking.

Fixes: CVE-2014-0471

Reported-by: Jakub Wilk <jwilk@debian.org>
[drop the text for debian/changelog,because it's not suitable
 for the veriosn]

(From OE-Core rev: 81880b34a8261e824c5acafaa4cb321908e554a0)

Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com>
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibtiff: Security Advisory - CVE-2012-4564
Yue Tao [Tue, 17 Jun 2014 08:25:20 +0000 (04:25 -0400)]
libtiff: Security Advisory - CVE-2012-4564

v2 changes:
* update format for commit log
* add Upstream-Status for patch

ppm2tiff does not check the return value of the TIFFScanlineSize
function, which allows remote attackers to cause a denial of service
(crash) and possibly execute arbitrary code via a crafted PPM image that
triggers an integer overflow, a zero-memory allocation, and a heap-based
buffer overflow.

http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-4564

(From OE-Core rev: 9f02922d44de483ef4d02ce95b55efe79a8b09a2)

Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibpam: Security Advisory - CVE-2014-2583
Yue Tao [Tue, 17 Jun 2014 08:23:59 +0000 (04:23 -0400)]
libpam: Security Advisory - CVE-2014-2583

v2 changes:
* update format for commit log
* add Upstream-Status for patch

Multiple directory traversal vulnerabilities in pam_timestamp.c in the
pam_timestamp module for Linux-PAM (aka pam) 1.1.8 allow local users to
create aribitrary files or possibly bypass authentication via a .. (dot
dot) in the (1) PAM_RUSER value to the get_ruser function or (2) PAM_TTY
value to the check_tty funtion, which is used by the
format_timestamp_name function.

http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-2583

(From OE-Core rev: 69255c84ebd99629da8174e1e73fd8c715e49b52)

Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoperf: add slang to the dependencies
Henning Heinold [Mon, 16 Jun 2014 20:02:45 +0000 (22:02 +0200)]
perf: add slang to the dependencies

* TUI/GUI support was added in 2.6.35 based on libnewt
* since 3.10 slang replaced libnewt completly
* changing TUI_DEFINES is not necessary, because NO_NEWT is
  still respected with newer kernels
* add comment about the gui history to the recipe

The patch was sponsored by sysmocom

(From OE-Core rev: bbeb133234fb90b01c9448afdecf03ebff7f7c47)

Signed-off-by: Henning Heinold <henning@itconsulting-heinold.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoRevert "populate_sdk: verify executable or dynamically linked library"
Roy Li [Tue, 17 Jun 2014 06:00:27 +0000 (14:00 +0800)]
Revert "populate_sdk: verify executable or dynamically linked library"

It is introduced a bug, since The return of "file ld-linux-x86-64.so.*"
does not include "dynamically linked" in redhat 5.9/6.0(32 bit), and lead
to that ld-linux-x86-64.so.* is not in executable file list.

(From OE-Core rev: fc9603d7d7042efe8941172091cca8578bdde15b)

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agorelocate_sdk: Skip to do relocation if the file size is less than 64 byte
Roy Li [Tue, 17 Jun 2014 06:00:26 +0000 (14:00 +0800)]
relocate_sdk: Skip to do relocation if the file size is less than 64 byte

When toolchain directory is changed to execute mode, some non-executable
files or empty files are sorted. This will lead to the below error:

Extracting SDK...done
Setting it up...Traceback (most recent call last):
  File "..._SDK/relocate_sdk.py", line 208, in <module>
    arch = get_arch()
  File "..._SDK/relocate_sdk.py", line 39, in get_arch
    ei_mag0,ei_mag1_3,ei_class = struct.unpack("<B3sB11x", e_ident)
struct.error: unpack requires a string argument of length 16

To call get_arch and parse_elf_header, we should ensure the sorted file
is bigger than 64 byte.

(From OE-Core rev: 3b973f1c9c9ee3fbe64903036ad93eb9e928b185)

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocups: enable cups-str4402.patch
Robert Yang [Tue, 27 May 2014 01:39:47 +0000 (21:39 -0400)]
cups: enable cups-str4402.patch

This patch is used for fixing build errors without dnssd/avahi, we
already have this patch, but isn't added to SRC_URI:
meta/recipes-extended/cups/cups/cups-str4402.patch

(From OE-Core rev: 7c0fc920d41cdd74cb7bba72faef08afba09ed12)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodbus-native: dbus-native: do_compile failed on selinux.c on CentOS 5.10
Robert Yang [Tue, 27 May 2014 01:39:46 +0000 (21:39 -0400)]
dbus-native: dbus-native: do_compile failed on selinux.c on CentOS 5.10

Found this error on CentOS 5.10, other distros may also has this
problem, I think that we can disable the selinux for dbus-native:

bus/selinux.c:327: error: array type has incomplete element type

[YOCTO #6374]

(From OE-Core rev: 7a2d2d81d8694806060f7bccfbdba42dc356d477)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokexec-tools: fix warning about patch could not be found
Chong Lu [Mon, 16 Jun 2014 03:20:27 +0000 (11:20 +0800)]
kexec-tools: fix warning about patch could not be found

kexec-tools-klibc required kexec-tools.inc file. Put the patch of
kexec-tools into bb file in order to fixing QA warning about files path.
The patch only needed by kexec-tools.

(From OE-Core rev: d465fb6f8f1fff989a9e497f650328de6044b2f2)

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agowget: use GnuTLS instead of OpenSSL
Ross Burton [Mon, 16 Jun 2014 10:52:56 +0000 (11:52 +0100)]
wget: use GnuTLS instead of OpenSSL

OpenSSL has license complications and GnuTLS is preferred, so although the
license complications don't impact wget use GnuTLS for consistency.

Also add a recommendation on ca-certificates so that https: URLs work.

(From OE-Core rev: 4c9c737c1b93663a18e625918f32dfc2d4f9ca2f)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodirectfb: fix-compilation-with-zlib.patch merged upstream
Andre McCurdy [Sat, 14 Jun 2014 10:32:04 +0000 (03:32 -0700)]
directfb: fix-compilation-with-zlib.patch merged upstream

Compilation with zlib is fixed in DirectFB 1.7.1.

Upstream commit:

  commit 40779160de4d57bad973af9674df51ad281fdb8f
  Author: Denis Oliver Kropp <dok@directfb.org>
  Date:   Tue Sep 18 21:10:25 2012 +0200

    Core: Include zlib.h where it was missing.

(From OE-Core rev: 33638a9d8e74a31baf6528c0603b4b68fb5db7ec)

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogawk: ensure cross compiling doesn't try to remove host files
Paul Gortmaker [Fri, 13 Jun 2014 18:54:45 +0000 (14:54 -0400)]
gawk: ensure cross compiling doesn't try to remove host files

Fixes [YOCTO #6440]

When cross compiling gawk, it is possible to see this fail:

make[4]: Entering directory '/mnt/home/paul/poky/build/tmp/work/corei7-64-poky-
linux/gawk/4.1.1-r0/build/extension'
for i in filefuncs.la fnmatch.la fork.la inplace.la ordchr.la readdir.la readfi
le.la revoutput.la revtwoway.la rwarray.la testext.la time.la ; do \
        rm -f /usr/lib/gawk/$i ; \
done
rm: cannot remove '/usr/lib/gawk/filefuncs.la': Permission denied
rm: cannot remove '/usr/lib/gawk/fnmatch.la': Permission denied
rm: cannot remove '/usr/lib/gawk/fork.la': Permission denied
rm: cannot remove '/usr/lib/gawk/inplace.la': Permission denied
rm: cannot remove '/usr/lib/gawk/ordchr.la': Permission denied
rm: cannot remove '/usr/lib/gawk/readdir.la': Permission denied
rm: cannot remove '/usr/lib/gawk/readfile.la': Permission denied
rm: cannot remove '/usr/lib/gawk/revoutput.la': Permission denied
rm: cannot remove '/usr/lib/gawk/revtwoway.la': Permission denied
rm: cannot remove '/usr/lib/gawk/rwarray.la': Permission denied
rm: cannot remove '/usr/lib/gawk/testext.la': Permission denied
rm: cannot remove '/usr/lib/gawk/time.la': Permission denied
Makefile:1235: recipe for target 'install-data-hook' failed

The problem only manifests itself on hosts where the above files
are already present; for if they are absent then the rm -f does
not fail with -EPERM.

Before looking in mainline gawk for a fix, I fixed it myself.
Then in comparing with mainline gawk, I found their fix was
not 100% complete.  So here we get a backport of the mainline
gawk commit, plus the delta as a commit that I've sent to the
gawk mailing list.

(From OE-Core rev: 8c7a883964e45e7b48b943731bd3b3da0cc289d9)

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotzcode: update to verison 2014e
Armin Kuster [Sun, 15 Jun 2014 01:40:04 +0000 (18:40 -0700)]
tzcode: update to verison 2014e

(From OE-Core rev: c567901f3681fbc520dfa84330ab4e06b180745e)

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotzdata: update to version 2014e
Armin Kuster [Sun, 15 Jun 2014 01:40:03 +0000 (18:40 -0700)]
tzdata: update to version 2014e

(From OE-Core rev: 6e45e20498363b61abaff53dd7c102f76a81f132)

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoarchiver: create dir 'B' explicitly while WORKDIR changed
Hongxu Jia [Mon, 16 Jun 2014 03:22:57 +0000 (23:22 -0400)]
archiver: create dir 'B' explicitly while WORKDIR changed

In the do_unpack_and_patch task of archiver, the changed 'WORKDIR' also
casued 'B' changed, create dir 'B' for the possibly requiring of the
tasks which executed in do_unpack_and_patch task.

Such as cut-ecgl's do_patch required 'B' existed:
...
| cp: target 'tmp/work/x86_64-wrs-linux/cut-ecgl/1.0-r0/archiver-work
/cut-ecgl-1.0' is not a directory
...
| ERROR: Function failed: do_patch (log file is located at tmp/work/
x86_64-wrs-linux/cut-ecgl/1.0-r0/temp/do_unpack_and_patch/
log.do_unpack_and_patch.11886)
...

The 'B' dir is implicitly created at the task executing time while the
task tag 'dirs' is not assigned. In the above cut-ecgl example, the 'B'
was created at the wrl_buildlink executing time which is the prefuncs of
task do_unpack. So the following do_patch could use 'B' correctly. But
wrl_buildlink is unnecessary and not invoked in the do_unpack_and_patch
task.

(From OE-Core rev: 8baefb49d0bf9d3dd757d9b2359e0a9f4f33dd60)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoimage-vmdk.bbclass: set timeout to 1 second
Robert Yang [Mon, 16 Jun 2014 10:24:13 +0000 (03:24 -0700)]
image-vmdk.bbclass: set timeout to 1 second

The SYSLINUX_TIMEOUT ?= "1" means 0.1 second which is too short, set to
1 second as mage-live.bbclass and boot-directdisk.bbclass does.

(From OE-Core rev: 4bbfd25345858720d14c66b84f38fee42168915f)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosystemd: check IFLA_VLAN_PROTOCOL
Robert Yang [Mon, 16 Jun 2014 13:49:18 +0000 (06:49 -0700)]
systemd: check IFLA_VLAN_PROTOCOL

The older kernel's linux/if_link.h doesn't have IFLA_VLAN_PROTOCOL, we need
check whether it has been defined or not.

The maintainer said that he would fix it:

http://thread.gmane.org/gmane.comp.sysutils.systemd.devel/18200

Also we need redefine IFLA_MAX from 34 to 35 when define IFLA_CARRIER,
otherwise there would be error:

| src/libsystemd/sd-rtnl/rtnl-types.c:233:9: error: array index in initializer exceeds array bounds
|          [IFLA_CARRIER]          = { .type = NLA_U8 },

[YOCTO #6380]

(From OE-Core rev: 0e626d5023fee4dbcc5d94e6b787b4c5fe4b2687)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agowpa-supplicant: upgrade to 2.2
Cristian Iorga [Mon, 16 Jun 2014 12:54:11 +0000 (15:54 +0300)]
wpa-supplicant: upgrade to 2.2

- P2P enhancements/fixes;
- Interworking/Hotspot 2.0 enhancements;
- Internal TLS implementation enhancements/fixes;
- D-Bus interface extensions/fixes;
- various bug fixes.

(From OE-Core rev: 790362b41c83ab90ffaf7c43112602821f212892)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoconnman: upgrade to 1.24
Cristian Iorga [Mon, 16 Jun 2014 12:54:10 +0000 (15:54 +0300)]
connman: upgrade to 1.24

Bug fix release

(From OE-Core rev: 71c7bc9902e801fb16fa16dcf654995b04f86b23)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogcc-configure-common: Address problems with gengtype
Richard Purdie [Mon, 16 Jun 2014 12:13:38 +0000 (13:13 +0100)]
gcc-configure-common: Address problems with gengtype

The gengtype patch we apply to gcc aims to ensure that the build and host
config headers don't get confused. We're seeing build failures where
both headers have been included, likely due to a race over the configuration
files.

It seems the gengtype-lex.c file isn't being regenerated when it should
and the unconditional inclusion of bconfig.h is resulting in these issues.

The fix is therefore to remove the file, forcing its regeneration.

[YOCTO #6393]

(From OE-Core rev: dd649374b30eb2d9980dce6eae95db0563593ef7)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokernel-module-split: Add support for KERNEL_MODULE_AUTOLOAD and KERNEL_MODULE_PROBECONF
Richard Purdie [Fri, 13 Jun 2014 15:46:25 +0000 (16:46 +0100)]
kernel-module-split: Add support for KERNEL_MODULE_AUTOLOAD and KERNEL_MODULE_PROBECONF

The current module_autoload_* and module_conf_* variables are error
both ugly and error prone. They aren't registered in the task checksums
so changes to them aren't reflected in the build. This turns out to
be near impossible to fix with the current variable format in any
sensible way :(.

This patch replace module_autoload with the list of variables in
KERNEL_MODULE_AUTOLOAD which is a much simpler and usable API. An
error is printed if an old style variable is encountered. It should
be simple to convert to this.

module_conf_* are harder to deal with since there is data associated
with it, it isn't simply a flag. We need a list of variables that are set
in order to be able to correctly handle the task checksum so we add
KERNEL_MODULE_PROBECONF for this purpose and error if the user hasn't
added a module to it when they should have.

[YOCTO #5786]

(From OE-Core rev: 6f8b5be646be0f3e15e215907547f11d2a23d81b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobinconfig-disabled: Add class and use
Richard Purdie [Thu, 22 May 2014 09:59:33 +0000 (10:59 +0100)]
binconfig-disabled: Add class and use

This adds a binconfig-disabled class which can be used by recipes where
a -config file is installed but we wish to disable it and just rely on
the .pc files instead.

Rather than simply deleting it, we make the script "exit 1" so that it
can be found in PATH and raise a build error rather than something
silently falling back to the build system for example.

Rather than randomly finding -config files, this adds in the
specification of a list of binconfig scripts which is more deterministic
and maintainable moving forward.

This patch converts various users in OE-Core to use this, a world build
of OE-Core tests out ok with this change. There will likely be issues in
other layers however, hence this being a RFT.

(From OE-Core rev: 5870bd272b0b077d0826fb900b251884c1c05061)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoalsa-tools: Add missing pkgconfg dependency
Richard Purdie [Sat, 14 Jun 2014 07:45:33 +0000 (08:45 +0100)]
alsa-tools: Add missing pkgconfg dependency

(From OE-Core rev: 12bab2d828836c8926f753caff80b61dbe6390a5)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoneard: fix more parallel build issues
Ross Burton [Fri, 13 Jun 2014 17:03:32 +0000 (18:03 +0100)]
neard: fix more parallel build issues

One fix, another appears...  root-cause to a magic dependency hiding at the
bottom of the Makefile, and add all binaries to it.

[ YOCTO #6416 ]

(From OE-Core rev: 4625eb0793ff59e4414017df0371ee9b89f47b38)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agonative.bbclass: Properly define directories
Matthieu Crapet [Thu, 12 Jun 2014 15:49:32 +0000 (17:49 +0200)]
native.bbclass: Properly define directories

For most users this commit will have no effect. But if you come across the idea of giving
different names for paths, you'll get some troubles.

When a recipe inherit native, properly define bindir, sbindir, includedir, sysconfdir, datadir
(using xxxdir_native definitions from meta/conf/bitbake.conf).

For example, edit "${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}/quilt-native/temp/log.do_configure"
and see what are the arguments given by oe_runconf.

Notice that ${docdir}, ${mandir}, ${infodir}, ${localstatedir} have no associated _native definition.

(From OE-Core rev: 15345ddd4be6a0b041b3d6caaad48d46b22142e9)

Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake.conf/qemu: Move QEMU_OPTIONS to qemu.bbclass
Richard Purdie [Fri, 13 Jun 2014 13:09:37 +0000 (14:09 +0100)]
bitbake.conf/qemu: Move QEMU_OPTIONS to qemu.bbclass

The QEMU_OPTIONS variables belong in qemu.bbclass so move them there. The
only users of them inherit qemu.bbclass. There is no point in pushing
these into every recipe.

(From OE-Core rev: 5824293de37919e89f60192836997281933e23d6)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoqemuwrapper-cross: Use QEMU_OPTIONS
Richard Purdie [Fri, 13 Jun 2014 13:07:15 +0000 (14:07 +0100)]
qemuwrapper-cross: Use QEMU_OPTIONS

The correct cpu options are needed in order to correctly run some CPU
types. This information is available in QEMU_OPTIONS, use it. This
avoids architectures like qemuppc failing postinstalls.

(From OE-Core rev: 3d9c0cbf1f9b9802d7374c4fa1672c26fc5db5cb)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake.conf: Add QEMU_OPTION for ppc7400 as used by qemuppc
Richard Purdie [Fri, 13 Jun 2014 13:06:31 +0000 (14:06 +0100)]
bitbake.conf: Add QEMU_OPTION for ppc7400 as used by qemuppc

Currently, qemuppc prints warnings about gdk-pixbuf postinstalls
not working due to illegal instructions. This is due to qemu
running with the wrong cpu type. Add an option for ppc7400 so
that qemuppc works correctly.

(From OE-Core rev: 5995fdbe81799f1ecf5de722cb2eb95ccb2aa860)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogit: don't hardcode the full path to perl
Christopher Larson [Fri, 13 Jun 2014 16:37:45 +0000 (17:37 +0100)]
git: don't hardcode the full path to perl

Hardcoded paths to perl don't make sense, use from the environment instead.

[Patch taken from meta-mentor by RP]

(From OE-Core rev: 8072f26f7304ff5367d5be357037644cb1f6241e)

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobuildstats-summary.bbclass: Import useful bbclass from meta-mentor
Martin Jansa [Fri, 13 Jun 2014 16:45:05 +0000 (09:45 -0700)]
buildstats-summary.bbclass: Import useful bbclass from meta-mentor

This class summarizes sstate reuse at the end of the build, so you know how
much of your build was done from scratch.

(From OE-Core rev: 0069c06cc9c929de7e7d29b0381fcb36049a4401)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogit: revert to wrapper based relocation
Christopher Larson [Fri, 13 Jun 2014 16:46:41 +0000 (17:46 +0100)]
git: revert to wrapper based relocation

It seems that there are multiple problems with the upstream RUNTIME_PREFIX
mechanism at this time. It doesn't canonicalize argv[0] to an absolute path,
breaking calls via the PATH, for example. In addition, it doesn't seem to
locate template_dir via the runtime prefix even when specified as relative.

Revert this for now to the previous wrapper-based mechanism, but tweaked
slightly to avoid hardcoding the sysroot path into the wrapper (based on the
bits in the rpm recipe).

[YOCTO #6211]

[Pulled from meta-mentor by RP]

(From OE-Core rev: 85ce11e7b5402cc443adb8007c0e5d01f914fa74)

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobusybox: handle syslog related files properly
Chen Qi [Fri, 13 Jun 2014 05:42:33 +0000 (13:42 +0800)]
busybox: handle syslog related files properly

If CONFIG_SYSLOGD is not enabled, then the related service file should
not be installed as it will always fail at system start-up. The error
message is as following.

[FAILED] Failed to start System Logging Service.

The same logic applies to CONFIG_KLOGD.

So we should first check the configuration before we install these
service files.

[YOCTO #5302]

(From OE-Core rev: b44e291a87539fbb8e6da1a16c56f425a417e7bd)

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>
10 years agocurl: control ipv6 support based on DISTRO feature
Andre McCurdy [Thu, 12 Jun 2014 17:29:02 +0000 (10:29 -0700)]
curl: control ipv6 support based on DISTRO feature

By default ipv6 is auto detected for native builds but disabled when
cross compiling.

This commit adds a PACKAGECONFIG option, unconditionally enabled for
native and nativesdk builds and controlled by the ipv6 DISTRO feature
for target builds.

(From OE-Core rev: f8377e96b353f8cf4a5812fa14c1c0405f769096)

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogstreamer1.0-rtsp-server: depends on libcgroup and gstreamer1.0-plugins-base
Robert Yang [Wed, 11 Jun 2014 05:05:42 +0000 (22:05 -0700)]
gstreamer1.0-rtsp-server: depends on libcgroup and gstreamer1.0-plugins-base

Otherwise may do_compile error:
test-cgroups.c:43:23:: fatal error: libcgroup.h: No such file or directory

and:

configure: No package 'gstreamer-plugins-base-1.0' found

(From OE-Core rev: bef49e8e8bf0a7f900f4ad44c2cbb6dec1d5d180)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agostat: use update-alt for stat
Saul Wold [Fri, 13 Jun 2014 17:48:13 +0000 (10:48 -0700)]
stat: use update-alt for stat

Three different recipes provide the stat program, busybox, coreutils and stat.
Ensure that they are installed to the same place and use update-alternative
with the correct priorities to have the correct binary installed.

[YOCTO #6415]

(From OE-Core rev: 2abc776393f8b5574dd9cf614ff1ae4b460e4d8c)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoe2fsprogs: use update-alt for chattr
Saul Wold [Fri, 13 Jun 2014 17:40:21 +0000 (10:40 -0700)]
e2fsprogs: use update-alt for chattr

Both busybox and e2fsprogs provide chattr, ensure that they are delivered
to the same location and use update-alternatives to ensure the correct
links are there.

[YOCTO #6407]

(From OE-Core rev: 23f1dddbf9cf783d90040b67978d1291b16a13de)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotexinfo-dummy-native: Fix dummy scripts failing when paths contain capital Es
Max Eliaser [Fri, 13 Jun 2014 22:07:42 +0000 (15:07 -0700)]
texinfo-dummy-native: Fix dummy scripts failing when paths contain capital Es

This was an issue in the command-line argument parsing. It was the cause of
the bug reported on the OE-core mailing list by Denys Dmytriyenko.

(From OE-Core rev: cbdf390806cf9fb7c0b0141a54abde372514b1cb)

Signed-off-by: Max Eliaser <max.eliaser@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodefault-distrovars.inc: Remove unused variable 'LIMIT_BUILT_LOCALES'
Jacob Kroon [Sun, 8 Jun 2014 11:52:56 +0000 (13:52 +0200)]
default-distrovars.inc: Remove unused variable 'LIMIT_BUILT_LOCALES'

This variable is a left-over from early glibc recipes.
It is not referenced anymore in oe-core, and its functionality
has been replaced with 'GLIBC_GENERATE_LOCALES'.

Also remove the reference to it in local.conf.sample.extended.

(From OE-Core rev: d668245991d1369e2906d1605c749c62274c0620)

Signed-off-by: Jacob Kroon <jacob.kroon@mikrodidakt.se>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodbus: fixed mode if systemd service file
Enrico Scholz [Thu, 12 Jun 2014 13:34:26 +0000 (15:34 +0200)]
dbus: fixed mode if systemd service file

systemd complains with

|  Configuration file /lib/systemd/system/dbus.socket is marked executable. Please remove executable permission bits. Proceeding anyway.
|  Configuration file /lib/systemd/system/dbus.service is marked executable. Please remove executable permission bits. Proceeding anyway.

else.

(From OE-Core rev: 67e966c2576b360ee132989bee32d3080305a099)

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodbus: disable usage of dbus-glib explicitly
Enrico Scholz [Thu, 12 Jun 2014 13:32:00 +0000 (15:32 +0200)]
dbus: disable usage of dbus-glib explicitly

on rebuilds, dbus-native can detect an already existing dbus-glib and
tries to link some tests against it.  As files were unstaged and due
to libtool insanities this fails with:

| /usr/bin/grep: .../sysroots/x86_64-oe-linux/usr/lib/libdbus-1.la: No such file or directory
| sed: can't read .../sysroots/x86_64-oe-linux/usr/lib/libdbus-1.la: No such file or directory
| x86_64-oe-linux-libtool: link: `.../sysroots/x86_64-oe-linux/usr/lib/libdbus-1.la' is not a valid libtool archive
| make[3]: *** [libdbus-testutils.la] Error 1
| make[3]: Leaving directory `.../work/x86_64-oe-linux/dbus-native/1.8.2-r0/build/test'

Make builds predicatable (and working) by disabling usage of dbus-glib
explicitly.

(From OE-Core rev: 0eeeb40d2af99448c3b94047f26d33a9983a221b)

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobluez5: Force obex.service in /usr/lib
Drew Moseley [Thu, 12 Jun 2014 18:26:13 +0000 (14:26 -0400)]
bluez5: Force obex.service in /usr/lib

Upstream bluez installs the obex.service file into /usr/lib
regardless of the multilib settings as does the current systemd
recipe.  Make sure it gets packaged properly.

(From OE-Core rev: 8b66eccc05a62f1e2267c1bdf1086d8328bb962c)

Signed-off-by: Drew Moseley <drew_moseley@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoelfutils: Fix debugedit failure in grub
Richard Purdie [Fri, 13 Jun 2014 07:58:30 +0000 (08:58 +0100)]
elfutils: Fix debugedit failure in grub

We've seeing occasional debugedit failures in grub during do_package
which in turn are coming from section alignment failures from libelf.
The failures occur when gold is used to link grub instead of ld.bfd.

"readelf -e uhci.module" shows:

Section Headers:
  [Nr] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
  [12] .note.GNU-stack   PROGBITS        00000000 0010ce 000000 00      0   0  1

in a good build and:

Section Headers:
  [Nr] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
  [24] .note.GNU-stack   PROGBITS        00000000 009180 000000 00      0   0  0

in a bad build. The problem is the "Al" (alignment) change from 1 to 0.
If its 0, debugedit complains.

As far as I can tell, the alignment of a zero length section is not
an issue and the check in libelf should check the section size and only
give alignment errors if there is some data to align.

(From OE-Core rev: b34447fa5223b4e0be49594aaf0254defd69bbd1)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agogit: fixed typo in 'libexecdir' varname
Enrico Scholz [Fri, 13 Jun 2014 10:04:47 +0000 (12:04 +0200)]
git: fixed typo in 'libexecdir' varname

variable is called 'libexecdir', not 'libxecdir'.

(From OE-Core rev: 92fc79690374aceaa3b821013cfe25604b1db18a)

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoscripts/test-remote-image: Add script for running runtime tests on remotely built...
Corneliu Stoicescu [Fri, 6 Jun 2014 19:14:38 +0000 (22:14 +0300)]
scripts/test-remote-image: Add script for running runtime tests on remotely built images

YB: #6254

Adding a new script that will fetch image files from a remote images repository.
These images will then be used for local runtime testing.

Use the '-h' option for more details on usage.

(From OE-Core rev: 5ebe9c57efb9715d58691d7fa75ccf06fb5d4b18)

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocontrollers/masterimage.py: Make testimage kernel naming pattern universal
Corneliu Stoicescu [Fri, 6 Jun 2014 19:14:37 +0000 (22:14 +0300)]
controllers/masterimage.py: Make testimage kernel naming pattern universal

YB: #6254

The QemuTargetControl class does not specify any kernel naming but the runqemu script it uses uses the " KERNEL_IMAGETYPE + MACHINE + '.bin' " naming scheme.
Modifying the other major target controller class, MasterImageHardwareTarget, to use the same kernel naming scheme.

This is usefull also to outside scripts that want to anticipate the kernel file name for all target controllers.

(From OE-Core rev: e8666e91a9633da6a560d5a9510bb53d0251b16d)

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooeqa/controllers/testtargetloader.py: add 'import os'
Corneliu Stoicescu [Fri, 6 Jun 2014 19:14:36 +0000 (22:14 +0300)]
oeqa/controllers/testtargetloader.py: add 'import os'

YB: #6254

This module uses os but relies on other modules to import it. Adding 'import os' in order to be self-sustained.

(From OE-Core rev: 26e4d5212ec5b2bcfdb0f42bbed31f468a17aca4)

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotargetcontrol.py: Add a classmethod to get extra files needed by the target controllers
Corneliu Stoicescu [Fri, 6 Jun 2014 19:14:35 +0000 (22:14 +0300)]
targetcontrol.py: Add a classmethod to get extra files needed by the target controllers

YB: #6254

Add a new classmethod that can be used by outside scripts to get the extra files needed by the target controllers.
An outside script can predict rootfs, manifest and kernel files needed by a target controller, but sometimes there are other files needed.

(From OE-Core rev: fea627022473cfb73299d0988628962ad8e80f89)

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocore-image-testmaster.bb: add bzip2 to image
Corneliu Stoicescu [Fri, 6 Jun 2014 19:14:34 +0000 (22:14 +0300)]
core-image-testmaster.bb: add bzip2 to image

YB: #6375

Some test image fstypes require bzip2 decompression.

(From OE-Core rev: 7b81fce3a80f7a1b94015a1da95d2349dac577ab)

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agomasterimage.py: enable dynamical determination of rootfs type
Corneliu Stoicescu [Fri, 6 Jun 2014 19:14:33 +0000 (22:14 +0300)]
masterimage.py: enable dynamical determination of rootfs type

YB: #6375

Adding support for get_image_fstype() in the MasterImageHardwareTarget and GummibootTarget classes.

(From OE-Core rev: 06ed50a2b8c311e56ac9f1c6f2145bc020d5d500)

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotargetcontrol.py: make possible dynamical determination of rootfs type
Corneliu Stoicescu [Fri, 6 Jun 2014 19:14:32 +0000 (22:14 +0300)]
targetcontrol.py: make possible dynamical determination of rootfs type

YB: #6375

Added a new method get_image_fstype() that autodetermines what fstype to use for the rootfs file.
This method uses a new list variable 'supported_image_fstypes' that contains image fstypes supported by the target controller.

This method is also a classmethod which means outside scripts can get the image fstype.

(From OE-Core rev: 39d5aa5c9f2916700f81d15adc220a30c6b120d1)

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokexec-tools: Refine kdump device_tree sort
Chong Lu [Tue, 10 Jun 2014 10:13:39 +0000 (18:13 +0800)]
kexec-tools: Refine kdump device_tree sort

The commit b02d735bf was to rearrange the device-tree entries, and
assumed that these entries are sorted in the ascending order. but
acctually when I was validating kexec and kdump, the order of
serial node still is changed. So the patch is to sort these entries
by the directory name in ascending order.

(From OE-Core rev: c8722b510f779cd20757477a7f7a7a2a35b9a9c5)

Signed-off-by: Yang Wei <Wei.Yang@windriver.com>
Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agooprofile: Determine the root home directory dynamically
Chong Lu [Tue, 10 Jun 2014 01:35:12 +0000 (09:35 +0800)]
oprofile: Determine the root home directory dynamically

This commit detects the root home directory dynamically with changes to
the opcontrol script and the oprofile gui app source.

The commit replaces an earlier fix that detected and adjusted a
'non-standard' root home directory at build time.  The advantage of this
patch is that the oprofile tools are adjusted to the current run-time
path to ~root, not the build time path.

(From OE-Core rev: 4fa57b42aa7ec3f77606ab3d3b5814f638c859d5)

Signed-off-by: Dave Lerner <dave.lerner@windriver.com>
Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoperf: split packging
Henning Heinold [Mon, 9 Jun 2014 21:21:29 +0000 (23:21 +0200)]
perf: split packging

* some fundamental perf commands can work
  without the dependency on perl, python or bash
  make them separate packages and RSUGGEST them

* bump PR

The patch was sponsored by sysmocom

(From OE-Core rev: 6d1c0cde05dbab5ca84b1bbd8abeecf8df49e37b)

Signed-off-by: Henning Heinold <henning@itconsulting-heinold.de>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoperf: fix broken shell comparsion in do_install
Henning Heinold [Mon, 9 Jun 2014 21:21:28 +0000 (23:21 +0200)]
perf: fix broken shell comparsion in do_install

The patch was sponsored by sysmocom

(From OE-Core rev: 17bf25adad715754de589d2ae54f97c07f5dafde)

Signed-off-by: Henning Heinold <henning@itconsulting-heinold.de>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agonfs-utils: Do not pass CFLAGS to gcc while building
Chong Lu [Thu, 12 Jun 2014 02:23:40 +0000 (10:23 +0800)]
nfs-utils: Do not pass CFLAGS to gcc while building

Do not pass CFLAGS/LDFLAGS to gcc while building, The needed flags has
been passed by xxx_CFLAGS=$(CFLAGS_FOR_BUILD).

(From OE-Core rev: e4b01d651cf94185cfb285a7b64292b26b74c6bb)

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosed: enable ptest support
Chong Lu [Mon, 9 Jun 2014 07:45:52 +0000 (15:45 +0800)]
sed: enable ptest support

Install sed test suite and run it as ptest.

(From OE-Core rev: de8cc3192eefafa639a9f34fcc35799be3286191)

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agov4 cups: Shouldn't link against libgcrypt without using gcrypt functions
Armin Kuster [Tue, 10 Jun 2014 01:11:55 +0000 (18:11 -0700)]
v4 cups: Shouldn't link against libgcrypt without using gcrypt functions

Backported from http://www.cups.org/strfiles.php/3308/cups-no-gcrypt.patch

This addresses the cryto dependency seen during build.

(From OE-Core rev: e5f9166302baad837244e5a93bedb2797ab17e57)

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotexinfo.bbclass: native/cross uses dummy texinfo; target uses host's Texinfo.
Max Eliaser [Tue, 10 Jun 2014 20:24:16 +0000 (13:24 -0700)]
texinfo.bbclass: native/cross uses dummy texinfo; target uses host's Texinfo.

To unpack that to more than a single line: -native and -cross recipes are made
to use the dummy Texinfo utilities provided by texinfo-dummy-native if they
invoke those utilities at build time. The target-architecture (cross-compiled)
recipes still use the genuine Texinfo utilites. Right now, they still use
the host system's Texinfo utilities, but could be made to use the
texinfo-native recipe we already ship with some config file changes.

(From OE-Core rev: 160087f754eabf5da90fb51997e19d2e585aac4a)

Signed-off-by: Max Eliaser <max.eliaser@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotexinfo-dummy-native: Create recipe w/ scripts to stand in for Texinfo utils.
Max Eliaser [Tue, 10 Jun 2014 20:24:15 +0000 (13:24 -0700)]
texinfo-dummy-native: Create recipe w/ scripts to stand in for Texinfo utils.

More work toward eliminating the dependency on the host system's Texinfo--
Python scripts that understand the same command-line options as the Texinfo
utilities, and create blank output files if appropriate, but don't actually
do any of the work done by those utilities.

This will be necessary to avoid circular dependencies when we start explicitly
tracking dependencies on texinfo-native; i.e. texinfo-native ->
autoconf-native -> texinfo-native. If we have all native recipes that inherit
texinfo.bbclass depend on texinfo-dummy-native instead of texinfo-native, the
cycle is broken.

It may also provide a performance gain by skipping the actual work of
formatting and generating documentation files.

(From OE-Core rev: 0d8d5a2d44988d32a5c8b995202a12ac106ba93c)

Signed-off-by: Max Eliaser <max.eliaser@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotexinfo: Use texinfo-replacement-native as an alias for texinfo-native.
Max Eliaser [Tue, 10 Jun 2014 20:24:14 +0000 (13:24 -0700)]
texinfo: Use texinfo-replacement-native as an alias for texinfo-native.

If texinfo-native is added to ASSUME_PROVIDED, this will be needed for two
reasons. First, a world build will still build the native texinfo recipe, so
it will still get test coverage and will not rot. Second, when the target
architecture texinfo recipe is built, the native recipe must be built first
so its makedoc binary can be extracted, ASSUME_PROVIDED or no.

(From OE-Core rev: af5cd3ad123f45170d1ba06a8f5c9ee4ce5c082e)

Signed-off-by: Max Eliaser <max.eliaser@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agorootfs.py: change the logic in _uninstall_unneeded
Chen Qi [Wed, 11 Jun 2014 09:29:27 +0000 (17:29 +0800)]
rootfs.py: change the logic in _uninstall_unneeded

Previously, if we have 'package-management' and 'read-only-rootfs'
both in IMAGE_FEATRUES, we would meet the following error at system
start-up.

rm: can't remove '/etc/rcS.d/S99run-postinsts': Read-only file system

However, what's really expected is that when there's no postinstall
script at system start-up, the /etc/rcS.d/S99run-postinsts should not
even be there.

Whether or not to remove the init script symlinks to run-postinsts should
not depend on whether we have 'package-management' in IMAGE_FEATURES; rather,
it should only depend on whether we have any postinstall script left to run
at system start-up.

This patch changes the _uninstall_unneeded function based on the logic
stated above.

[YOCTO #6257]

(From OE-Core rev: 6c2f7ecee754ff3f29fdde17c0363f5d138057ff)

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>
10 years agobitbake: toaster: build control functionality
Alexandru DAMIAN [Thu, 12 Jun 2014 11:57:22 +0000 (12:57 +0100)]
bitbake: toaster: build control functionality

We add the build control functionality to toaster.

* The bldcontrol application gains bbcontroller classes
that know how to manage a localhost build environment.

* The toaster UI now detects it is running under build
environment controller, and update the build controller
database and will shut down the bitbake server once
the build is complete.

* The toaster script can now run in standalone mode,
launching the build controller and the web interface instead
of just monitoring the build, as in the interactive mode.

* A fixture with the default build controller entry for
localhost is provided.

[YOCTO #5490]
[YOCTO #5491]
[YOCTO #5492]
[YOCTO #5493]
[YOCTO #5494]
[YOCTO #5537]

(Bitbake rev: 10988bd77c8c7cefad3b88744bc5d8a7e3c1f4cf)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toastergui: fix built ETA calculation
Alexandru DAMIAN [Wed, 11 Jun 2014 14:33:17 +0000 (15:33 +0100)]
bitbake: toastergui: fix built ETA calculation

We fix the calculation showing the estimated time
to build completion.

(Bitbake rev: dc1daae51ef5201475b5c1a69d966ae57b66dcb6)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: xmlrpc: add support for token reusing
Alexandru DAMIAN [Wed, 11 Jun 2014 09:19:03 +0000 (10:19 +0100)]
bitbake: xmlrpc: add support for token reusing

We add support to specify a connection token in the command line
and in the environment variable BBTOKEN.

When a client registers to a bitbake server, that client
will have exclusive access to the server. The client is identified
by a server-supplied token. If a client terminates, we cannot
reconnect to the server as the token is lost.

This patch adds the capability to specify the connection token
in the command line for xmlrpc clients. This allows us
to have bitbake work as an already-authenticated
client with the server and resume sending commands to a server.

(Bitbake rev: db5390940c0afbcdc9fbcf1225761968ae51d4a7)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: add function to get the database url
Alexandru DAMIAN [Wed, 11 Jun 2014 08:34:55 +0000 (09:34 +0100)]
bitbake: toaster: add function to get the database url

We add a function that returns the DATABASE_URL
for the current 'default' database settings. This
is useful to be able to start other toaster instances
with the same database settigns as the currently running
instance.

(Bitbake rev: 272a4bba0804bb6b5e0d498d3453321b5ed1dc76)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: create models for bldcontrol and enable it
Alexandru DAMIAN [Mon, 9 Jun 2014 11:55:53 +0000 (12:55 +0100)]
bitbake: toaster: create models for bldcontrol and enable it

We create the model classes that store information
about triggering builds, and the available build
environments.

We add a fixture with a default build environment
for build control, using a "build/" directory under
the poky checkout directory.

We enable the bldcontrol in toaster starting script
and in the toaster settings as to allow the actual database
to be kept in sync with the source code.

(Bitbake rev: d4bfe9059f765f11244b97e324c0131f32f8e400)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: toaster: initial bldcontrol application
Alexandru DAMIAN [Mon, 9 Jun 2014 11:05:26 +0000 (12:05 +0100)]
bitbake: toaster: initial bldcontrol application

The build features of Toaster will be contained into
a separate application, as to modularize the Toaster
project and provide multiple options for deployment.

This patch adds the application as a barebone Django
application in the Toaster project.

(Bitbake rev: 08556b79b7b2af08aaeedf8733b1b8996f387c4e)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: bb/utils: fix contains_any()
Ross Burton [Wed, 11 Jun 2014 10:04:44 +0000 (11:04 +0100)]
bitbake: bb/utils: fix contains_any()

"set1 in set2" doesn't do what you'd expect, and if it did do a subset test
that's not the logic required by contains_any().

Instead get the intersection of checkvalues and val and check if the resulting
set is empty or not (by evaluating it in a boolean context), which tells us if
there are any elements in common.

Based on a patch by Valentin Popa <valentin.popa@intel.com>.

(Bitbake rev: 2e742c03e8dfdfa67899e7f5d579ed14bd87e139)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: bb/tests/data.py: add tests for contains() and contains_any()
Ross Burton [Wed, 11 Jun 2014 10:04:43 +0000 (11:04 +0100)]
bitbake: bb/tests/data.py: add tests for contains() and contains_any()

contains_any is buggy so write a test case to demonstrate this.

(Bitbake rev: 25d10c349aab77bf99745c0a90dd8f9b90abccac)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: cache.py: print debug info when EXCLUDE_FROM_WORLD
Robert Yang [Fri, 6 Jun 2014 14:35:06 +0000 (10:35 -0400)]
bitbake: cache.py: print debug info when EXCLUDE_FROM_WORLD

This gives us an easy way to find out which recipes have been excluded
from world when there are many layers.

(Bitbake rev: cf33d4bfc53ae8dc6353fa295e1acd789d4fc2d2)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agorpm: Fix cpio 32 bit overflow issues on 64 bit inode filesystems
Richard Purdie [Tue, 10 Jun 2014 16:32:16 +0000 (17:32 +0100)]
rpm: Fix cpio 32 bit overflow issues on 64 bit inode filesystems

When building on XFS filesystems, the resulting rpms can be corrupted
with the same inode number being used for multiple hardlinked files.
There are two fixes, one to stop rpm crashing when accessing a broken
binary rpm, the other to stop generating them in the first places. Full
descriptions in the patch headers.

(From OE-Core rev: d20d3476157b7c949b0077cad0ab1e8716d6162a)

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