]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
9 years agoRevert "distrodata: Remove unnecessary include of package_regex.inc"
Ross Burton [Tue, 16 Jun 2015 09:31:29 +0000 (10:31 +0100)]
Revert "distrodata: Remove unnecessary include of package_regex.inc"

Instead of asking the user to include a number of configuration files, the class
can do this.  Next step is to fix the documentation.

This reverts commit 2a4ee94667d4d356cad2ca6d60a100a30c92737b.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolttng-modules: drop makefile patch
Nathan Lynch [Mon, 15 Jun 2015 18:37:24 +0000 (13:37 -0500)]
lttng-modules: drop makefile patch

The lttng-modules Makefile allows us to specify the kernel we're
building against via the KERNELDIR variable on the build command line.
Use that and drop the patch (which tends to need updating whenever the
upstream Makefile changes).

Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoinsane.bbclass: fix false negative in build-deps QA check
Patrick Ohly [Mon, 15 Jun 2015 16:05:13 +0000 (18:05 +0200)]
insane.bbclass: fix false negative in build-deps QA check

When a recipe called 'foobar-test' links against 'foobar' without
listing that in DEPENDS, the build-deps check misses that error
because it looks for 'foobar' in a package string containing (among
others) the 'foobar-test' name, leading to the incorrect conclusion
that the package is listed as dependency.

The 'packages' string needs to be split into individual package names
before the check. Doing that once directly after reading the value is
more efficient than splitting inside package_qa_check_rdepends() because
the caller also needs the individual components.

Also use a set to speed up the 'package in packages' check.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agocopyleft_filter.bbclass: Allow to filter on name
Mariano Lopez [Tue, 9 Jun 2015 12:46:48 +0000 (12:46 +0000)]
copyleft_filter.bbclass: Allow to filter on name

The archiver uses a license based filter to provide the source code.
This patch allows to search on name based on two new variables (COPYLEFT_PN_INCLUDE,
COPYLEFT_PN_EXCLUDE). Both variables are empty by default.
The filter by name has higher priority than the license filter.

[YOCTO # 6929]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogtk+: Upgrade 2.24.27 -> 2.24.28
Jussi Kukkonen [Mon, 15 Jun 2015 13:23:43 +0000 (16:23 +0300)]
gtk+: Upgrade 2.24.27 -> 2.24.28

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobase.class: warn for invalid PACKAGECONFIG
Robert Yang [Thu, 11 Jun 2015 09:08:41 +0000 (02:08 -0700)]
base.class: warn for invalid PACKAGECONFIG

There may be typos or out of date values in PACKAGECONFIG, check and
warn them.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibpcap: add a dummy PACKAGECONFIG for bluez5
Robert Yang [Thu, 11 Jun 2015 02:10:13 +0000 (19:10 -0700)]
libpcap: add a dummy PACKAGECONFIG for bluez5

The BLUEZ is default to bluez5, but there is only PACKAGECONFIG[bluez4],
no PACKAGECONFIG[bluez5], add a dummy PACKAGECONFIG for bluez5 to avoid
confusing the user, and avoid the warning.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9 years agobluez5: remove alsa from PACKAGECONFIG
Robert Yang [Thu, 11 Jun 2015 09:08:42 +0000 (02:08 -0700)]
bluez5: remove alsa from PACKAGECONFIG

The PACKAGECONFIG[alsa] had been removed when upgraded to 5.12 since it
was not supported any more.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibsdl2: PACKAGECONFIGize
Andreas Müller [Fri, 12 Jun 2015 20:50:43 +0000 (22:50 +0200)]
libsdl2: PACKAGECONFIGize

* DEPENDS + EXTRA_OECONF -> PACKAGECONFIG for directfb / opengl / x11
* added PACKAGECONFIG for gles2 / pulseaudio / tslib / wayland

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoneon: fix compat issues with gnutls 4.3
Armin Kuster [Mon, 1 Jun 2015 23:12:26 +0000 (16:12 -0700)]
neon: fix compat issues with gnutls 4.3

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agologging.bbclass: avoid bashism in bbdebug()
Patrick Ohly [Mon, 15 Jun 2015 08:20:49 +0000 (10:20 +0200)]
logging.bbclass: avoid bashism in bbdebug()

Checking the bbdebug() debug level parameter with a regular
test expression only works in bash. Using tr to filter out
digits and then checking whether anything is left achieves
the same result and is more portable.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agodistutils: regenerate pyc files after being modified by sed
Alejandro Hernandez [Thu, 11 Jun 2015 15:38:54 +0000 (15:38 +0000)]
distutils: regenerate pyc files after being modified by sed

py files are edited by sed and therefore *.pyc files are recreated on first boot, but if you have a read-only filesystem this is not possible. This patch creates pyc files directly after the py files are modified.

[YOCTO #7722]

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Thomas Roos <roosesweb@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosecurity_flags.inc: remove duplicated over-rides
Andre McCurdy [Fri, 12 Jun 2015 22:17:34 +0000 (15:17 -0700)]
security_flags.inc: remove duplicated over-rides

The following over-rides were both defined twice:

  SECURITY_CFLAGS_pn-grub-efi-x86-64-native
  SECURITY_CFLAGS_pn-ltp

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibxml2: Security Advisory - libxml2 - CVE-2015-1819
Yue Tao [Mon, 15 Jun 2015 01:18:52 +0000 (09:18 +0800)]
libxml2: Security Advisory - libxml2 - CVE-2015-1819

for CVE-2015-1819 Enforce the reader to run in constant memory

Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopiglit: Add missing inclusion of Xutil.h
Otavio Salvador [Mon, 15 Jun 2015 19:31:28 +0000 (16:31 -0300)]
piglit: Add missing inclusion of Xutil.h

The EGL tests rely on Xutil.h being included. Some EGL implementation
does not explitly include it by default and than the build fail.

This fixes the build in imx53qsb board, of meta-fsl-arm, but is a
generic fix.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agotzdata: update to 2015e
Armin Kuster [Sun, 14 Jun 2015 05:03:42 +0000 (22:03 -0700)]
tzdata: update to 2015e

merged inc back into recipe.

Changes affecting future time stamps

Morocco will suspend DST from 2015-06-14 03:00 through 2015-07-19 02:00,
not 06-13 and 07-18 as we had guessed.  (Thanks to Milamber.)

Assume Cayman Islands will observe DST starting next year, using US rules.
Although it isn't guaranteed, it is the most likely.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agotzcode-native: update to 2015e
Armin Kuster [Sun, 14 Jun 2015 05:03:41 +0000 (22:03 -0700)]
tzcode-native: update to 2015e

merged inc back into recipe.

Changes affecting code

When displaying data, tzselect converts it to the current locale's
encoding if the iconv command works.  (Problem reported by random832.)

tzselect no longer mishandles Dominica, fixing a bug introduced
in Release 2014f.  (Problem reported by Owen Leibman.)

zic -l no longer fails when compiled with -DTZDEFAULT=\"/etc/localtime\".
This fixes a bug introduced in Release 2014f.
(Problem reported by Leonardo Chiquitto.)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agodevtool: deploy: fix preservation of symlinks and permissions/ownership
Paul Eggleton [Tue, 16 Jun 2015 16:16:51 +0000 (17:16 +0100)]
devtool: deploy: fix preservation of symlinks and permissions/ownership

It turns out that scp can't be used to copy symlinks because it follows
them instead of copying them, and this is by design (since it emulates
rcp which also behaved this way); the unfortunate result is that
symlinks that point to valid files on the host translate into the host
file being copied to the target (yuck).  The simplest alternative that
does not have this undesirable behaviour is to use tar and pipe it over
ssh.

At the same time, it would be even better if we properly reflect file
permissions and ownership on the target that have been established
within the pseudo environment. We can do this by executing the copy
process under pseudo, which turns out to be quite easy with access to
the pseudo environment set up by the build system.

Fixes [YOCTO #7868].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
9 years agolib/oeqa/utils/commands: ensure get_bb_var() works when value contains =
Paul Eggleton [Wed, 17 Jun 2015 15:15:32 +0000 (16:15 +0100)]
lib/oeqa/utils/commands: ensure get_bb_var() works when value contains =

Only split on the first equals character so that values that contain
equals characters (such as FAKEROOTENV) can be retrieved.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
9 years agoclasses/externalsrc: handle tasks with existing lockfiles
Paul Eggleton [Tue, 16 Jun 2015 13:49:00 +0000 (14:49 +0100)]
classes/externalsrc: handle tasks with existing lockfiles

We need to ensure we add a leading space to the value we are prepending
here in case lockfiles already has a value.

Fixes [YOCTO #7813].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
9 years agorecipetool: appendfile: fix file command error handling
Paul Eggleton [Tue, 9 Jun 2015 16:08:43 +0000 (17:08 +0100)]
recipetool: appendfile: fix file command error handling

* It turns out that not all versions of the file command support the -E
  option - the version in Ubuntu 14.04 doesn't support it for example.
  This option is supposed to force file to return an error if the file
  can't be opened - since we can't rely upon it then fall back to
  looking at the output instead. (The results of this issue were simply
  that we didn't notice if the file was executable and give a warning,
  which tripped an oe-selftest failure - so it was minor.)
* If we receive an error there's not much point looking at the output to
  see what type was returned because there wasn't one.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
9 years agorecipetool: appendfile: clarify help text
Paul Eggleton [Tue, 26 May 2015 10:13:50 +0000 (11:13 +0100)]
recipetool: appendfile: clarify help text

Add a long description and tweak some of the argument descriptions so
that it's clearer what the appendfile subcommand does and how it works.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
9 years agodevtool: use DevtoolError for error handling
Markus Lehtonen [Wed, 27 May 2015 14:59:09 +0000 (17:59 +0300)]
devtool: use DevtoolError for error handling

Use DevtoolError exception more widely for handling error cases. This
exception is now caught in the main script and raising it can be used to
exit with an error. This hopefully simplifies error handling. The
change also makes exit codes more consistent, always returning '1' when
an error occurs.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agodevtool: remove some unused return values
Markus Lehtonen [Wed, 27 May 2015 14:40:49 +0000 (17:40 +0300)]
devtool: remove some unused return values

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agodevtool: split out 'patch' update mode into a separate function
Markus Lehtonen [Mon, 25 May 2015 12:12:43 +0000 (15:12 +0300)]
devtool: split out 'patch' update mode into a separate function

Continue refactoring of update_recipe() by splitting out the 'patch'
mode into a separate function.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agodevtool: split out 'srcrev' update mode into a separate function
Markus Lehtonen [Fri, 22 May 2015 13:41:27 +0000 (16:41 +0300)]
devtool: split out 'srcrev' update mode into a separate function

Refactor update_recipe() (i.e. the implementation of the update-recipe
command)  by splitting out the 'srcrev' into a distinct function.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agodevtool: slight simplification of path splitting logic
Markus Lehtonen [Thu, 28 May 2015 13:00:52 +0000 (16:00 +0300)]
devtool: slight simplification of path splitting logic

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agodevtool: simplify few conditionals a bit
Markus Lehtonen [Wed, 27 May 2015 14:27:56 +0000 (17:27 +0300)]
devtool: simplify few conditionals a bit

Just refactor the code.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agodevtool: simplify the logic of determining patches to be removed
Markus Lehtonen [Thu, 21 May 2015 15:04:01 +0000 (18:04 +0300)]
devtool: simplify the logic of determining patches to be removed

A slight simplification of the code.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agodevtool: update-recipe: do rev parsing in a separate function
Markus Lehtonen [Thu, 21 May 2015 12:46:14 +0000 (15:46 +0300)]
devtool: update-recipe: do rev parsing in a separate function

Split out the logic of determining "initial rev" and "update rev" into a
separate function.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agodevtool: refactor bb task execution into a separate class
Markus Lehtonen [Tue, 12 May 2015 13:39:31 +0000 (16:39 +0300)]
devtool: refactor bb task execution into a separate class

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agodevtool: fix wrong indentation
Markus Lehtonen [Thu, 21 May 2015 14:47:13 +0000 (17:47 +0300)]
devtool: fix wrong indentation

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agopackagedata: Fix to ensure variables expand correctly
Richard Purdie [Thu, 11 Jun 2015 22:06:56 +0000 (23:06 +0100)]
packagedata: Fix to ensure variables expand correctly

If we set unsuffixed variables here there is a chance they could clobber
override versions of that variable, e.g. DESCRIPTION could clobber
DESCRIPTION_<pkgname>. We therefore don't clobber for the unsuffixed
variable versions by using the parsing flag to setVar.

This becomes a problem with the modifications to bitbake to
have continual expansion of the datastore, its about the one place this
turns out to be problematic.

The parameter to setVar works with current bitbake even though
we don't have the new API since it gets swallowed by the logging code.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowayland: Fix hardlink corruption issue
Richard Purdie [Thu, 11 Jun 2015 22:03:28 +0000 (23:03 +0100)]
wayland: Fix hardlink corruption issue

The way this code was working, the m4 file is hardlinked to the
copies which would be packaged and could lead to the native m4
file being used in the target packages.

By removing the file first the hardlink is broken and this avoids
corruption (since cp uses open to change the file contents).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agomultilib_global: Stop empty space influencing RPROVIDES
Richard Purdie [Thu, 11 Jun 2015 22:01:48 +0000 (23:01 +0100)]
multilib_global: Stop empty space influencing RPROVIDES

If the resulting RPROVIDES is empty, don't set it. This streamlines
pkgdata slightly removing empty values and avoids other errors which
confuse the datastore when the variable is best left unset.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopackage_ipk/deb/rpm: Improve OVERRIDES handling
Richard Purdie [Tue, 2 Jun 2015 14:06:13 +0000 (14:06 +0000)]
package_ipk/deb/rpm: Improve OVERRIDES handling

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopulseaudio: fix version when building inside a dirty git checkout
Ross Burton [Thu, 11 Jun 2015 15:26:11 +0000 (16:26 +0100)]
pulseaudio: fix version when building inside a dirty git checkout

If the build directory is a subdirectory of a git clone, and that git clone is
dirty, PulseAudio will build thinking it's version is 6.0-dirty.  Fix
git-version-gen so it doesn't do the git checks for tarball builds.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibpostproc: pass correct libdir
Robert Yang [Tue, 9 Jun 2015 06:46:25 +0000 (23:46 -0700)]
libpostproc: pass correct libdir

When MACHINE=qemux86-64 and enable multilib:
ERROR: QA Issue: libpostproc: Files/directories were installed but not shipped in any package:
  /usr/lib
  /usr/lib/libpostproc.so.52.3.0
  /usr/lib/libpostproc.so
  /usr/lib/libpostproc.so.52
  /usr/lib/.debug
  /usr/lib/.debug/libpostproc.so.52.3.0
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install. [installed-vs-shipped]

Pass the right libdir to configure as otherwise it assumes $prefix/lib
which may be wrong.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoAdd license file XFree86-1.0
Kai Kang [Thu, 11 Jun 2015 05:50:38 +0000 (13:50 +0800)]
Add license file XFree86-1.0

Add license file XFree86-1.0 which is needed by packages such as hwdata.
It is from:

http://www.x.org/archive/X11R7.5/doc/LICENSE.html#AEN28

And add 'XFree86-1.0' to SRC_DISTRIBUTE_LICENSES.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogcc-source.inc: fix STAMPCLEAN to avoid race issue
Robert Yang [Tue, 9 Jun 2015 09:04:46 +0000 (02:04 -0700)]
gcc-source.inc: fix STAMPCLEAN to avoid race issue

Fixed race issue when build more than one gcc-source and inherit
rm_work, for example:
$ bitbake gcc-source-4.9.2 gcc-source-5.1.0

File "/path/to/bitbake/lib/bb/build.py", line 512, in exec_task
  return _exec_task(fn, task, d, quieterr)
File "/path/to/bitbake/lib/bb/build.py", line 489, in _exec_task
  make_stamp(task, localdata)
File "/path/to/bitbake/lib/bb/build.py", line 599, in make_stamp
  os.unlink(name)
OSError: [Errno 2] No such file or directory: '/path/to/tmp/stamps/work-shared/gcc-4.9.2-r0.do_rm_work_all.02cf1ed9b79d4edb0a51d3b913b7f9ba'

This is because make_stamp() uses glob.glob() to remove the old stamps
before create the new one, when gcc-source-5.1.0 removes gcc-4.9.2-r0's
stamp, we may get the error.

We can't use deltask do_rm_work_all as do_rm_work since it is a
recrdeptask, otherwise:
ERROR: Command execution failed: Traceback (most recent call last):
  File "/path/to/bitbake/lib/bb/command.py", line 102, in runAsyncCommand
    commandmethod(self.cmds_async, self, options)
  File "/path/to/bitbake/lib/bb/command.py", line 324, in generateDotGraph
    command.cooker.generateDotGraphFiles(pkgs_to_build, task)
  File "/path/to/bitbake/lib/bb/cooker.py", line 847, in generateDotGraphFiles
    depgraph = self.generateTaskDepTreeData(pkgs_to_build, task)
  File "/path/to/bitbake/lib/bb/cooker.py", line 672, in generateTaskDepTreeData
    rq.rqdata.prepare()
  File "/path/to/bitbake/lib/bb/runqueue.py", line 587, in prepare
    generate_recdeps(dep)
  File "/path/to/bitbake/lib/bb/runqueue.py", line 575, in generate_recdeps
    add_resolved_dependencies([taskData.tasks_fnid[t]], tasknames, newdeps)
TypeError: list indices must be integers, not NoneType

Update STAMPCLEAN to contain ${PV} to fix the problem.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/parselogs: Added some more errors to the whitelist.
Lucian Musat [Wed, 10 Jun 2015 15:46:49 +0000 (18:46 +0300)]
oeqa/parselogs: Added some more errors to the whitelist.

Signed-off-by: Lucian Musat <george.l.musat@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/parselogs: The logs are now copied and parsed locally.
Lucian Musat [Wed, 10 Jun 2015 15:32:50 +0000 (18:32 +0300)]
oeqa/parselogs: The logs are now copied and parsed locally.

This is to fix a problem with reaching the limit of the whitelist size.

Signed-off-by: Lucian Musat <george.l.musat@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibatomic-ops: 7.2 -> 7.4.2
Tanu Kaskinen [Wed, 10 Jun 2015 15:27:00 +0000 (18:27 +0300)]
libatomic-ops: 7.2 -> 7.4.2

The backported patch is included in the new version, so dropped the
patch.

Dropped DESCRIPTION, because it was redundant (same as SUMMARY).

Changed HOMEPAGE. libatomic_ops is nowadays maintained by Ivan
Maidanski.

doc/LICENSING.txt changed checksum, but there were only whitespace
changes. COPYING moved from doc/ to the top-level directory, but the
checksum stayed the same.

Dropped PR.

Signed-off-by: Tanu Kaskinen <tanu.kaskinen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopiglit: upgrade to more recent srvrev
Ross Burton [Wed, 10 Jun 2015 19:19:08 +0000 (20:19 +0100)]
piglit: upgrade to more recent srvrev

Upgrade to 126c7d from December 2014.  Still not the latest but it's got no
added build dependencies and importantly handles installs out of the box instead
of us having to hack and kludge, and builds with cmake 3.x.

The usage has changed: now there's a "piglit" binary that has run/resume/summary
subcommands, for example:

$ piglit run quick quick-results/

For reference the quick test suite on a IvyBridge NUC results in:

[27714/27714] crash: 3, fail: 326, pass: 18275, skip: 9107, warn: 3 -

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agocmake: extend CMAKE_MODULE_PATH instead of setting
Ross Burton [Thu, 11 Jun 2015 13:33:56 +0000 (14:33 +0100)]
cmake: extend CMAKE_MODULE_PATH instead of setting

Some (e.g. piglit) CMakeList.txt files will extend CMAKE_MODULE_PATH before
calling project(), which is when the toolchain.cmake file is parsed.  In this
situation the CMAKE_MODULE_PATH is overwritten, so handle this by appending in
toolchain.cmake instead of assigning.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/utils: Added timeout decorator for testcases.
Lucian Musat [Wed, 10 Jun 2015 10:52:40 +0000 (13:52 +0300)]
oeqa/utils: Added timeout decorator for testcases.

Signed-off-by: Lucian Musat <george.l.musat@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agocracklib:Fix an error in the patch
Lei Maohui [Tue, 9 Jun 2015 02:27:55 +0000 (10:27 +0800)]
cracklib:Fix an error in the patch

To fix an error in the patch.Otherwise,the dictionary would be wrong.

Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibgpg-error: Upgrade 1.18 -> 1.19
Leonardo Sandoval [Tue, 9 Jun 2015 12:36:52 +0000 (12:36 +0000)]
libgpg-error: Upgrade 1.18 -> 1.19

The patch pkgconfig.patch has not being integrated into upstream
repository, so rebasing it. Another change occurred inside the recipe,
the TUPLE's name changed for i586/i686 target architectures.

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoblktrace: 1.0.5 -> 1.1.0
Robert Yang [Mon, 8 Jun 2015 09:24:07 +0000 (02:24 -0700)]
blktrace: 1.0.5 -> 1.1.0

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9 years agosysstat: DEPENDS on base-passwd
Robert Yang [Wed, 10 Jun 2015 05:44:26 +0000 (22:44 -0700)]
sysstat: DEPENDS on base-passwd

Fixed:
| install -m 644 -g man man/sa1.8 /path/to/tmp/work/i586-poky-linux/sysstat/11.1.4-r0/image/usr/share/man/man8
| install: invalid group `man'

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9 years agomtools: add PACKAGECONFIG for libbsd
Robert Yang [Wed, 10 Jun 2015 06:14:56 +0000 (23:14 -0700)]
mtools: add PACKAGECONFIG for libbsd

Fixed:
ld: cannot find -lbsd
collect2: error: ld returned 1 exit status

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9 years agomultilib.bbclass: use package_qa_handle_error
Robert Yang [Wed, 10 Jun 2015 05:13:45 +0000 (22:13 -0700)]
multilib.bbclass: use package_qa_handle_error

Use package_qa_handle_error to handle the QA issue.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9 years agoupdate-rc.d.bbclass: add MLPREFIX when set RRECOMMENDS
Robert Yang [Wed, 10 Jun 2015 03:15:37 +0000 (20:15 -0700)]
update-rc.d.bbclass: add MLPREFIX when set RRECOMMENDS

Fixed when build with multilib:
WARNING: Multilib QA Issue: lib32-alsa-state package lib32-alsa-state - suspicious values 'update-rc.d' in RRECOMMENDS
WARNING: Multilib QA Issue: lib32-modutils-initscripts package lib32-modutils-initscripts - suspicious values 'update-rc.d' in RRECOMMENDS
WARNING: Multilib QA Issue: lib32-init-ifupdown package lib32-init-ifupdown - suspicious values 'update-rc.d' in RRECOMMENDS
WARNING: Multilib QA Issue: lib32-xserver-nodm-init package lib32-xserver-nodm-init - suspicious values 'update-rc.d' in RRECOMMENDS
WARNING: Multilib QA Issue: lib32-sysklogd package lib32-sysklogd - suspicious values 'update-rc.d' in RRECOMMENDS

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9 years agobind: ensure searching for json headers searches sysroot
Paul Gortmaker [Tue, 9 Jun 2015 16:13:51 +0000 (12:13 -0400)]
bind: ensure searching for json headers searches sysroot

Bind can fail configure by detecting headers w/o libs, or
it can fail the host contamination check.  More details
are within the commit log in the contained patch.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoxorg: fix VESA int10 error
Bruce Ashfield [Tue, 9 Jun 2015 19:20:10 +0000 (15:20 -0400)]
xorg: fix VESA int10 error

When falling back to the VESA server, X fails to start due to an error
reading the int10 vec.

We cherry-pick the following commit to fix the error:

   commit 0a78b599b34cc8b5fe6fe82f90e90234e8ab7a56
   Author: Jürg Billeter <j@bitron.ch>
   Date:   Sat Feb 7 18:13:21 2015 +0100

       int10: Fix error check for pci_device_map_legacy

       pci_device_map_legacy returns 0 on success.

Signed-off-by: Jürg Billeter <j@bitron.ch>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoneon: build the test suite to verify neon links
Ross Burton [Tue, 9 Jun 2015 18:57:52 +0000 (19:57 +0100)]
neon: build the test suite to verify neon links

Without building a binary it's impossible to tell if a library will link
correctly, so build the test suite in do_compile().

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agocups: clean up autotools use
Ross Burton [Tue, 9 Jun 2015 18:37:49 +0000 (19:37 +0100)]
cups: clean up autotools use

Instead of hand-rolling a do_configure() simply use autotools and disable
autoheader (upstream uses a hand-generated config.h.in).

Also do_compile() doesn't need to pass SSLLIBS as configure uses pkgconfig to
find gnutls, LIBPNG and LIBJPEG are not used anywhere in the build system, and
LIBZ is detected correctly.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agox264: r2265 -> r2491
Robert Yang [Tue, 9 Jun 2015 05:28:25 +0000 (22:28 -0700)]
x264: r2265 -> r2491

Update don-t-default-to-cortex-a9-with-neon.patch for aarch64.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9 years agoyasm: 1.2.0 -> 1.3.0
Robert Yang [Tue, 9 Jun 2015 02:59:02 +0000 (19:59 -0700)]
yasm: 1.2.0 -> 1.3.0

Its LIC_FILES_CHKSUM changes because the COPYING's year updates, the
content is the same.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9 years agolibevdev: 1.3 -> 1.4.2
Robert Yang [Mon, 8 Jun 2015 07:12:25 +0000 (00:12 -0700)]
libevdev: 1.3 -> 1.4.2

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9 years agoqmmp: 0.7.7 -> 0.8.5
Robert Yang [Mon, 8 Jun 2015 07:11:31 +0000 (00:11 -0700)]
qmmp: 0.7.7 -> 0.8.5

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9 years agogstreamer1.0-libav: fix build for i586 with gcc
Robert Yang [Tue, 9 Jun 2015 07:05:02 +0000 (00:05 -0700)]
gstreamer1.0-libav: fix build for i586 with gcc

Backport a patch from debian to fix the build for i586 with gcc, the
patch is similar to libav's
workaround-to-build-libav-for-i586-with-gcc.patch.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9 years agogpgme: 1.4.3 -> 1.5.4
Robert Yang [Mon, 8 Jun 2015 02:54:23 +0000 (19:54 -0700)]
gpgme: 1.4.3 -> 1.5.4

* Update pkgconfig.patch
* Remove gpgme-fix-CVE-2014-3564.patch since it is a backport patch
* The license checksum of src/gpgme.h.in is changed because it added the
  year 2014, the conten are the same.
* Remove --without-gpgsm --with-g13 --with-gpgconf --with-gpg from
  EXTRA_OECONF, it doesn't have these options any more, and the values will
  checked located at runtime.

9 years agodropbear: 2014.66 -> 2015.67
Robert Yang [Mon, 8 Jun 2015 02:51:08 +0000 (19:51 -0700)]
dropbear: 2014.66 -> 2015.67

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9 years agoaugeas: 1.2.0 -> 1.4.0
Robert Yang [Mon, 8 Jun 2015 02:46:00 +0000 (19:46 -0700)]
augeas: 1.2.0 -> 1.4.0

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9 years agoclutter-gst-3.0: 3.0.4 -> 3.0.6
Robert Yang [Mon, 8 Jun 2015 02:28:06 +0000 (19:28 -0700)]
clutter-gst-3.0: 3.0.4 -> 3.0.6

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9 years agolibpfm4: 4.3.0 -> 4.6.0
Robert Yang [Thu, 4 Jun 2015 09:31:41 +0000 (02:31 -0700)]
libpfm4: 4.3.0 -> 4.6.0

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
9 years agobusybox: fix the wrong help text for chown
Junling Zheng [Sun, 7 Jun 2015 07:52:20 +0000 (07:52 +0000)]
busybox: fix the wrong help text for chown

Only when DESKTOP is enabled, chown has -L, -H and -P options.

Backport a commit from upstream to fix it:
http://git.busybox.net/busybox/commit/?id=d291c2fdd5cb8616605c67ecbfb04274fa094242.

Signed-off-by: Junling Zheng <zhengjunling@huawei.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobusybox: fix double free error for ifconfig
Junling Zheng [Sun, 7 Jun 2015 07:52:19 +0000 (07:52 +0000)]
busybox: fix double free error for ifconfig

This patch backports a commit from upstream to fix a potential double
free error when executing ifconfig circularly:
http://git.busybox.net/busybox/commit/?id=a97777889328157bb7d06ec618bad16712a9c345.

Thanks to Chen Gang for reporting and analyzing this bug.

Signed-off-by: Junling Zheng <zhengjunling@huawei.com>
Signed-off-by: Chen Gang <cg.chen@huawei.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobusybox: sync the patches for git version
Junling Zheng [Sun, 7 Jun 2015 07:52:18 +0000 (07:52 +0000)]
busybox: sync the patches for git version

Synchronize the patches for busybox_git with busybox_1.23.2.

Signed-off-by: Junling Zheng <zhengjunling@huawei.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobuild-appliance-image: do_vmdkimg replaced by do_vmimg
Juro Bystricky [Wed, 3 Jun 2015 18:07:28 +0000 (11:07 -0700)]
build-appliance-image: do_vmdkimg replaced by do_vmimg

As a consequence of adding VDI image support, do_vmdkimg routine has been
replaced by a generic do_vmimg routine.

This also allows to build the build-appliance for VirtualBox,
providing IMAGE_FSTYPES is set to "vdi"

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoboot-direct.bbclass: Add support for VDI images
Juro Bystricky [Wed, 3 Jun 2015 18:07:27 +0000 (11:07 -0700)]
boot-direct.bbclass: Add support for VDI images

Same treatment for both  VMDK and VDI images.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosanity.bbclass: Prevent 'vdi' and 'live' to be built together
Juro Bystricky [Wed, 3 Jun 2015 18:07:26 +0000 (11:07 -0700)]
sanity.bbclass: Prevent 'vdi' and 'live' to be built together

Same reason and check as for vmdk.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agodocumentation.conf: Document do_vmimg
Juro Bystricky [Wed, 3 Jun 2015 18:07:25 +0000 (11:07 -0700)]
documentation.conf: Document do_vmimg

Changes due to new combined support for both vmdk and vdi files.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoqemu: Add support for UUID
Juro Bystricky [Wed, 3 Jun 2015 18:07:24 +0000 (11:07 -0700)]
qemu: Add support for UUID

Native qemu is used to to create VMDK and VDI images.
VDI images need support for UUID, otherwise the resulting
image will not boot.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoimage: Support for VDI
Juro Bystricky [Wed, 3 Jun 2015 18:07:23 +0000 (11:07 -0700)]
image: Support for VDI

Added support for VirtualBox VDI format. The support was
implemented by merging with the already existing VMDK support
for VM player by creating a new class image-vm.bbclass.
This class replaces the previous VMDK only image-vmdk.class.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic: Move validation of --ptable option to wks parser
Ed Bartosh [Fri, 5 Jun 2015 09:54:08 +0000 (12:54 +0300)]
wic: Move validation of --ptable option to wks parser

bootloader --ptable option has two valid choices: gpt and msdos
Moved this check to wks parser by changing option type to 'choice'.

Removed similar checks from 5 other places.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic: Add help for --part-type and --use-uuid options
Ed Bartosh [Fri, 5 Jun 2015 07:17:16 +0000 (10:17 +0300)]
wic: Add help for --part-type and --use-uuid options

Added help for two wks partition options specific to
GUID partition table and globally unique identificators (GUID).

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic: oe-selftest: Configure testing of gpt/UUID image
Ed Bartosh [Fri, 5 Jun 2015 07:17:15 +0000 (10:17 +0300)]
wic: oe-selftest: Configure testing of gpt/UUID image

Added runtime dependency to gptfdisk-native to wic test suite to
be able to test modified directdisk-gpt with UUID support.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic: Use partition UUID in directdisk-gpt
Ed Bartosh [Fri, 5 Jun 2015 07:17:14 +0000 (10:17 +0300)]
wic: Use partition UUID in directdisk-gpt

Used --use-uuid option for root partition in directdisk-gpt.wks
This is useful to have example of image with UUID support.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic: Set type GUID and UUID for partition
Ed Bartosh [Fri, 5 Jun 2015 07:17:13 +0000 (10:17 +0300)]
wic: Set type GUID and UUID for partition

Set type GUID and UUID for partition using sgdisk utility.

Type GUID can be specified for partition in .wks with
--part-type option.

UUID is generated when --use-uuid option is specified for
partition.

[YOCTO #7716]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic: Add parameter 'uuid' to Image.add_partition method
Ed Bartosh [Fri, 5 Jun 2015 07:17:12 +0000 (10:17 +0300)]
wic: Add parameter 'uuid' to Image.add_partition method

With this parameter it's possible to pass generated UUID
into Image class to set it for partition when it's created.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic: Refactored getting root device name
Ed Bartosh [Fri, 5 Jun 2015 07:17:11 +0000 (10:17 +0300)]
wic: Refactored getting root device name

Replaced DirectImageCreator._get_boot_config private method
with a 'rootdev' property.
Simplified the code and API.
Used 'uuid' property instead of incorrectly used 'part_type'.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic: Fix format string
Ed Bartosh [Fri, 5 Jun 2015 07:17:10 +0000 (10:17 +0300)]
wic: Fix format string

wic crashes with "TypeError: %d format: a number is required, not str"
Due to incorrect format used for Wic_PartData.extra_size attribute.
Using %s instead of %d should fix the crash.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic: Generate random uuid for partition
Ed Bartosh [Fri, 5 Jun 2015 07:17:09 +0000 (10:17 +0300)]
wic: Generate random uuid for partition

'uuid' attribute of partition object is set to generated uuid
when --use-uuid option is used for partition in .wks file.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic: Add --use-uuid partition option
Ed Bartosh [Fri, 5 Jun 2015 07:17:08 +0000 (10:17 +0300)]
wic: Add --use-uuid partition option

Added --use-uuid option to the configuration of wks parser.
Processing of this option will be implemented in the following
commits.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic: pylinted partitionedfs.py
Ed Bartosh [Fri, 5 Jun 2015 06:13:09 +0000 (09:13 +0300)]
wic: pylinted partitionedfs.py

Fixed some pylint findings in partitionedfs.py

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic: replaced __run_parted with exec_native_cmd
Ed Bartosh [Fri, 5 Jun 2015 06:13:08 +0000 (09:13 +0300)]
wic: replaced __run_parted with exec_native_cmd

There is no need for yet another wrapper around exec_native_cmd.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic: move checks to exec_native_cmd
Ed Bartosh [Fri, 5 Jun 2015 06:13:07 +0000 (09:13 +0300)]
wic: move checks to exec_native_cmd

Checked for return code and output of native commands
inside exec_native_cmd.

Removed similar code from a lot of places where
exec_native_cmd is called.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic: removed exec_cmd_quiet and exec_native_cmd_quiet
Ed Bartosh [Fri, 5 Jun 2015 06:13:06 +0000 (09:13 +0300)]
wic: removed exec_cmd_quiet and exec_native_cmd_quiet

These functions are not used anywhere.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic: Test creation of directdisk image with GPT table
Ed Bartosh [Tue, 2 Jun 2015 14:02:05 +0000 (17:02 +0300)]
wic: Test creation of directdisk image with GPT table

Added new wic testcase to the sute - creation of directdisk-gpt
image.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic: create directdisk-gpt.wks
Ed Bartosh [Tue, 2 Jun 2015 14:02:04 +0000 (17:02 +0300)]
wic: create directdisk-gpt.wks

directdisk-gpt is the same as directdisk with only one difference:
it uses GPT partition table.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
 create mode 100644 scripts/lib/image/canned-wks/directdisk-gpt.wks
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic: Make _ptable_format public
Ed Bartosh [Tue, 2 Jun 2015 14:02:03 +0000 (17:02 +0300)]
wic: Make _ptable_format public

Names with one leasding underscore considered protected in Python.
_ptable_format is accessed outside of its class.
Made it public by removing underscore.

This pylint warning should be fixed now:
Access to a protected member _ptable_format of a client class

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic: Use gptmbr.bin MBR for gpt partitions
Ed Bartosh [Tue, 2 Jun 2015 14:02:02 +0000 (17:02 +0300)]
wic: Use gptmbr.bin MBR for gpt partitions

Used proper syslinux MBR gptmbr.bin for GPT partitons.
Added check for unsupported partition formats.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic: Add gpt to the list of supported partition table formats
Ed Bartosh [Tue, 2 Jun 2015 14:02:01 +0000 (17:02 +0300)]
wic: Add gpt to the list of supported partition table formats

Only msdos partition table format was supported by wic source
plugins.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic: check if part_type is set only for msdos partition table
Ed Bartosh [Tue, 2 Jun 2015 14:02:00 +0000 (17:02 +0300)]
wic: check if part_type is set only for msdos partition table

Specifying partition type(GUID) makes sense for gpt partition table.

Current code checks if part-type is specified and throws exception
if it is. This makes sense to do only for msdos partition table.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic: set legacy_boot flag for gpt partitions
Ed Bartosh [Tue, 2 Jun 2015 14:01:59 +0000 (17:01 +0300)]
wic: set legacy_boot flag for gpt partitions

This flag is used to tell special purpose software that
the GPT partition may be bootable.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopython-smartpm: change "already installed" warnings into info messages
Paul Eggleton [Mon, 8 Jun 2015 10:13:50 +0000 (11:13 +0100)]
python-smartpm: change "already installed" warnings into info messages

It's possible to trigger "already installed" messages during normal
usage if you explicitly install something in the image through
IMAGE_INSTALL that has a dependency on some -dev packages and also have
dev-pkgs in IMAGE_FEATURES. Since we now check the do_rootfs log for
warnings, these are reported as warnings at the build system level.
This situation should not trigger warnings, nor is it really cause for
concern under any other circumstance if the user asks smart to install
something that's already installed, so make it an info message rather
than a warning.

Fixes [YOCTO #7840].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
9 years agolib/oe/rootfs: tidy up log warning reporting
Paul Eggleton [Mon, 8 Jun 2015 10:10:37 +0000 (11:10 +0100)]
lib/oe/rootfs: tidy up log warning reporting

* bb.warn() should only be called once per warning - UIs such as Toaster
  assume that this is the case, so adjust the output accordingly. (It's
  tricky here because we have to include "log_check" on every line or
  we'll end up looping forever as the log checking code's own messages
  retrigger the log check, sigh...)
* Iterating over a file already splits by line, there's no need to do it
  manually.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
9 years agoinsane: errors out on binaries installed by allarch-inherit recipes
Cristian Iorga [Mon, 8 Jun 2015 10:53:07 +0000 (13:53 +0300)]
insane: errors out on binaries installed by allarch-inherit recipes

If a prebuilt binary is installed via a recipe that
inherits allarch, an odd-looking traceback is thrown out.
Fixed by implementing a proper check and outputting an
error message that clarifies the issue.

Fixes [YOCTO #7662].

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>