]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
9 years agouninative: Add a fix for icu-native to use the correct ABI
Richard Purdie [Sat, 12 Mar 2016 08:57:07 +0000 (08:57 +0000)]
uninative: Add a fix for icu-native to use the correct ABI

If no -std= option is passed to icu's configure, it defaults to CXX11.
This isn't what we want for uninative, so pass an explicit option
which selects an older ABI on newer versions of g++.

This avoids the __cxa_bad_array_new_length@CXXABI_1.3.8 symbol
being used.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoscripts/oe-selftest: Add short names to most common options
Humberto Ibarra [Fri, 11 Mar 2016 16:54:03 +0000 (10:54 -0600)]
scripts/oe-selftest: Add short names to most common options

Add short names to most common options in oe-selftest. The options
changed were --run-tests, --run-all-tests, --list-tests and
--list-modules.

[Yocto #9079]

Signed-off-by: Humberto Ibarra <humberto.ibarra.lopez@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogcc: Fix the license on GNU OpenMP
Helio Chissini de Castro [Fri, 11 Mar 2016 14:24:44 +0000 (15:24 +0100)]
gcc: Fix the license on GNU OpenMP

Poky jethro has libgomp ( GNU OpenMP ) license marked as GPL-3.0,
where's in fact the correct is GPL-3.0 with GCC Library Runtime Exception

As stated on https://github.com/gcc-mirror/gcc/blob/master/libgomp/libgomp.h
header license:
 ...
   Under Section 7 of GPL version 3, you are granted additional
   permissions described in the GCC Runtime Library Exception, version
   3.1, as published by the Free Software Foundation.
 ...

Signed-off-by: Helio Chissini de Castro <helio.castro@bmw-carit.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoRevert "gcc: Fix the license on GNU OpenMP"
Ross Burton [Fri, 11 Mar 2016 17:01:19 +0000 (17:01 +0000)]
Revert "gcc: Fix the license on GNU OpenMP"

This reverts commit 892fbe373c5cff7b2f28b58aa2508b47e53d3e63.

9 years agoperl: fix missing dependency for perl-misc
Catalin Enache [Fri, 11 Mar 2016 09:41:26 +0000 (11:41 +0200)]
perl: fix missing dependency for perl-misc

"perl-misc" package is adding tens of perl utilities which have
depencies on perl-modules.

For example, in order for "prove" to work correctly following modules
are needed:

RDEPENDS_perl-misc += "perl perl-module-app-prove
perl-module-overloading perl-module-tap-base perl-module-file-glob
perl-module-tap-formatter-console perl-module-tap-formatter-base
perl-module-tap-formatter-file perl-module-tap-formatter-session
perl-module-tap-parser perl-module-tap-parser-aggregator
perl-module-tap-parser-scheduler"

If we compile a list of modules needed by the utilities added by
"perl-misc" we may end up having to add hundreds of modules to
RDEPENDS_perl-misc.

Rather than adding hundreds of dependencies only perl-modules was added.

Signed-off-by: Catalin Enache <catalin.enache@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoclasses/buildhistory: record a few more variables for extensible SDK
Paul Eggleton [Fri, 11 Mar 2016 03:10:57 +0000 (16:10 +1300)]
classes/buildhistory: record a few more variables for extensible SDK

We've recently added SDK_EXT_TYPE and SDK_RECRDEP_TASKS and these will
have an effect on the size and functionality of the SDK, so record them
in sdk-info.txt.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopackage-deb: Ignore circular dependencies
Ricardo Ribalda Delgado [Thu, 10 Mar 2016 13:47:09 +0000 (14:47 +0100)]
package-deb: Ignore circular dependencies

If a package depends on itself apt-get fails to install it with the
error attached to this patch.

This patch checks for this conditions and notifies the user so the
recipe maintainer can fix his RDEPENDS variable.

root@qt5022:~# apt-get install perl-module-cpan
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  perl-module-cpan
0 upgraded, 640 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/5964 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
E: Internal error: MaxLoopCount reached in SmartUnPack (2) for
perl-module-cpan:amd64, aborting
E: Internal error, packages left unconfigured. perl-module-cpan:amd64
root@qt5022:~# apt-get install perl-modules

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopackage_deb: Fix python runtime error
Ricardo Ribalda Delgado [Thu, 10 Mar 2016 13:47:08 +0000 (14:47 +0100)]
package_deb: Fix python runtime error

The dictionary cannot be used for iteration if its size may change
during the loop.

ERROR: Error executing a python function in
/home/ricardo/curro/qt5022/build-qt5022/repo/yocto/meta/recipes-devtools/perl/perl_5.22.0.bb:
Exception: RuntimeError: dictionary changed size during iteration

Acked-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopython-numpy: fix buildpaths QA issue
Hongxu Jia [Fri, 26 Feb 2016 01:45:01 +0000 (20:45 -0500)]
python-numpy: fix buildpaths QA issue

Remove build path in comments:

Without the fix:
...
|This file is generated by /buildarea/raid0/hjia/build-20160225-yocto-
buildpath/tmp/work/core2-64-poky-linux/python-numpy/1.10.4-r0/numpy
-1.10.4/setup.py
...

With the fix:
...
|This file is generated by /numpy-1.10.4/setup.py
...

[YOCTO #7058]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopython: move ast module into python-core
Ross Burton [Tue, 8 Mar 2016 17:03:18 +0000 (17:03 +0000)]
python: move ast module into python-core

The compile() method returns objects that inherit from ast.AST so it's best that
python-core contains this class.

[YOCTO #8684]

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoxserver: require sufficiently new libdrm
Johannes Pointner [Mon, 7 Mar 2016 22:51:46 +0000 (23:51 +0100)]
xserver: require sufficiently new libdrm

This fixes the check of the libdrm version in the configure script.

Signed-off-by: Johannes Pointner <johannes.pointner@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopackage_manager.py: Fix race condition in OpkgIndexer.write_index()
Mariano Lopez [Fri, 11 Mar 2016 07:29:17 +0000 (07:29 +0000)]
package_manager.py: Fix race condition in OpkgIndexer.write_index()

When writing the index using ipk packages there could be a race condition
when populate the index. This happens because the architectures
are repeated (specially all) and the commands generated to write the index
run in parallel.

This change avoid the duplication of commands using a set instead of a list.

[YOCTO #8924]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoscripts/oe-selftest: Add search expression matching to run/list options
Humberto Ibarra [Fri, 11 Mar 2016 16:28:24 +0000 (10:28 -0600)]
scripts/oe-selftest: Add search expression matching to run/list options

The oe-selftest script required an exact matching for the parameters
passed to its run-tests-by and list-tests-by options. Many tests
can be retrieved here and filtering is a must.

This patch add this filtering functionality by enabling the use
of wildcards such as "*".

[Yocto #8916]

Signed-off-by: Humberto Ibarra <humberto.ibarra.lopez@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoglib-2.0: relocate the GIO module directory for native builds
Ross Burton [Fri, 11 Mar 2016 15:35:55 +0000 (15:35 +0000)]
glib-2.0: relocate the GIO module directory for native builds

Glib hard-codes the install path in search path for GIO modules, which causes
problems when glib-2.0-native is restored from sstate with a different build
directory.

In the future we should relocate symbols directly using the same system that the
eSDK uses, but for now use dladdr() to look up where the library was loaded from
to build the search path.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage-buildinfo.bbclass: fix performance problems
Patrick Ohly [Fri, 11 Mar 2016 15:10:53 +0000 (16:10 +0100)]
image-buildinfo.bbclass: fix performance problems

Inheriting image-buildinfo.bbclass primarily slowed down image
building for two reasons:
1. The content of the shell command "buildinfo" gets expanded
   multiple times, each time again checking the state of all
   layers.
2. When expanded as part of the actual image creation, git
   is invoked under pseudo, which makes the check quite a bit
   slower (from a few seconds to a minute with many layers).

To fix this, buildinfo now is a Python method which calls the checks
only when really executed. Pseudo is told to unload itself when
starting git.

In addition, "git diff" is invoked with "--quiet", which avoids
producing output that is just getting thrown away. As before, any kind
of problem or output causes the layer to be marked as "modified".

[Revision 2 of the change with some dead code removed]

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/4.4: gpio-pca953x: add "drive" property
Bruce Ashfield [Thu, 10 Mar 2016 22:01:23 +0000 (17:01 -0500)]
linux-yocto/4.4: gpio-pca953x: add "drive" property

Integrating the following commit for the 4.4 kernel:

[
    gpio-pca953x: add "drive" property

    Galileo gen 2 has support for setting GPIO modes. Expose these
    properties through the GPIO sysfs interface. This approach is
    bit hacky, since it changes the interface semantics.

    The original patch was by Josef Ahmad <josef.ahmad@linux.intel.com>
    and  made on top of kernel 3.8.
]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython3: fix do_configure check platform triplet error
Hongxu Jia [Fri, 11 Mar 2016 07:40:22 +0000 (02:40 -0500)]
python3: fix do_configure check platform triplet error

For p1022ds bsp, the MULTIARCH is powerpc-linux-gnuspev1 and
python3 did not recognize the extra 'v1' which caused python3
configure error for the platform triplet.

Q:Why Python3 check platform triplet?

A:Under Linux, GNU/KFreeBSD and the Hurd, C extensions now include
the architecture triplet in the extension name, to make it easy to
test builds for different ABIs in the same working tree.

vim config.log
...
EXT_SUFFIX='.cpython-35m-powerpc-linux-gnuspe.so'
...

Here is the generated C extensions which take platform triplet into account.
...
|image/usr/lib/python3.5/lib-dynload/_datetime.cpython-35m-powerpc-linux-gnuspe.so
...

https://bugs.python.org/issue22980
https://www.python.org/dev/peps/pep-3149/
https://bugs.python.org/review/22980/patch/14593/54808

[YOCTO #9226]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoncurses_6: Fix an install race condition
Juro Bystricky [Fri, 11 Mar 2016 02:07:36 +0000 (18:07 -0800)]
ncurses_6: Fix an install race condition

Both targets install.libs and install.includes install the same
files, resulting in a race condition when running parallel make.
This race is addressed in a patch file, making sure only one
of the targets (install.includes) installes the include files.
This will work properly (i.e.ncurses will install as intended
by the recipe) as long as we always install both targets.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuild-appliance: make the inclusion of downloaded sources optional
Joshua Lock [Fri, 11 Mar 2016 12:13:32 +0000 (12:13 +0000)]
build-appliance: make the inclusion of downloaded sources optional

Including the entirety of DL_DIR in the generated build appliance
image adds a significant amount of space and makes the build
appliance image more awkward to distribute. Add a configuration
option to make the inclusion of sources option and default to
disabling this functionality.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuilder: remove hob from autostart
Joshua Lock [Fri, 11 Mar 2016 12:13:31 +0000 (12:13 +0000)]
builder: remove hob from autostart

hob has been removed so don't try and autostart it with the mini-x
session in the build appliance.

Remove the please_wait_dialog program which informed the user to
wait for Hob to start.

Rename the mini-x autostart file to reflect the removal of hob, we
now just start a matchbox-terminal with the environment configured.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoRevert "gstreamer1.0-plugins-XXX: move inherit gettext into common .inc file"
Peter Kjellerstedt [Mon, 7 Mar 2016 14:34:31 +0000 (15:34 +0100)]
Revert "gstreamer1.0-plugins-XXX: move inherit gettext into common .inc file"

Do not assume that the recipes in OE-Core are the only ones using
gstreamer1.0-plugins.inc or that all GStreamer plugins support
localization. Without this reversal, all our GStreamer plugin recipes
started spewing out:

configure: WARNING: unrecognized options: --disable-nls

This reverts commit 282fa5ff059db6f6daa108d5ec4ea3d0bfbe0fe2.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agomusl: disable building of gobject introspection data
Alexander Kanavin [Wed, 9 Mar 2016 15:02:10 +0000 (17:02 +0200)]
musl: disable building of gobject introspection data

When musl is in use, GLib binaries crash on assertion failures under qemu

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agomachine/include/arch-x86: Make x32 ABI not supporting gobject-introspection-data
Richard Purdie [Wed, 9 Mar 2016 15:02:09 +0000 (17:02 +0200)]
machine/include/arch-x86: Make x32 ABI not supporting gobject-introspection-data

x32 isn't supported by user mode qemu so we can't build
gobject-introspection-data, so disable it in this case.

(From OE-Core rev: 4ee1eb8ddd3fbe144fbaeb32e07b66e191aa7548)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake.conf: add 'gobject-introspection-data' to DISTRO/MACHINE_FEATURES_BACKFILL
Alexander Kanavin [Wed, 9 Mar 2016 15:02:08 +0000 (17:02 +0200)]
bitbake.conf: add 'gobject-introspection-data' to DISTRO/MACHINE_FEATURES_BACKFILL

This means that introspection data will be generated using qemu by default.

If this causes trouble (qemu does not always emulate target architectures
perfectly), then add
MACHINE_FEATURES_BACKFILL_CONSIDERED = "gobject-introspection-data"
to machine configuration or
DISTRO_FEATURES_BACKFILL_CONSIDERED = "gobject-introspection-data"
to distro configuration.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopackagegroup-core-x11-sato: add python-pygobject and gtk+3
Alexander Kanavin [Wed, 9 Mar 2016 15:02:07 +0000 (17:02 +0200)]
packagegroup-core-x11-sato: add python-pygobject and gtk+3

This allows easy testing of introspection for example using
http://python-gtk-3-tutorial.readthedocs.org/en/latest/introduction.html

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowebkitgtk: enable gobject introspection
Alexander Kanavin [Wed, 9 Mar 2016 15:02:06 +0000 (17:02 +0200)]
webkitgtk: enable gobject introspection

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipes-gnome: fix introspection support
Alexander Kanavin [Wed, 9 Mar 2016 15:02:05 +0000 (17:02 +0200)]
recipes-gnome: fix introspection support

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython-pygobject: update to 3.18.2
Alexander Kanavin [Wed, 9 Mar 2016 15:02:04 +0000 (17:02 +0200)]
python-pygobject: update to 3.18.2

The new version of pygobject relies in gobject introspection;
this has prevented the update previously.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agognomebase.bbclass: do not disable gobject introspection
Alexander Kanavin [Wed, 9 Mar 2016 15:02:03 +0000 (17:02 +0200)]
gnomebase.bbclass: do not disable gobject introspection

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogstreamer: enable gobject introspection
Alexander Kanavin [Wed, 9 Mar 2016 15:02:02 +0000 (17:02 +0200)]
gstreamer: enable gobject introspection

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibsoup-2.4: enable gobject introspection
Alexander Kanavin [Wed, 9 Mar 2016 15:02:01 +0000 (17:02 +0200)]
libsoup-2.4: enable gobject introspection

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclutter: enable gobject introspection
Alexander Kanavin [Wed, 9 Mar 2016 15:02:00 +0000 (17:02 +0200)]
clutter: enable gobject introspection

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogtk+3: enable gobject-introspection
Alexander Kanavin [Wed, 9 Mar 2016 15:01:59 +0000 (17:01 +0200)]
gtk+3: enable gobject-introspection

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogtk+: enable gobject introspection
Alexander Kanavin [Wed, 9 Mar 2016 15:01:58 +0000 (17:01 +0200)]
gtk+: enable gobject introspection

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoavahi: enable gobject-introspection
Alexander Kanavin [Wed, 9 Mar 2016 15:01:57 +0000 (17:01 +0200)]
avahi: enable gobject-introspection

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython-pygtk: remove the recipe
Alexander Kanavin [Wed, 9 Mar 2016 15:01:56 +0000 (17:01 +0200)]
python-pygtk: remove the recipe

python-pygtk hasn't been updated in several years, is incompatible
with the current version of pygobject, and is generally obsolete as
all modern python gtk apps use introspection directly.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoavahi-ui: remove the dependency on python-pygtk by disabling avahi-discover
Alexander Kanavin [Wed, 9 Mar 2016 15:01:55 +0000 (17:01 +0200)]
avahi-ui: remove the dependency on python-pygtk by disabling avahi-discover

python-pygtk is removed in a separate commit; the reasons for
that are explained in that commit's message.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agovala.bbclass: remove pre-packaged vapigen.m4 from tarballs
Alexander Kanavin [Wed, 9 Mar 2016 15:01:54 +0000 (17:01 +0200)]
vala.bbclass: remove pre-packaged vapigen.m4 from tarballs

We need to make sure that our fixed vapigen.m4 is used instead.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agovala: enable the use of vapigen by packages with vala support
Alexander Kanavin [Wed, 9 Mar 2016 15:01:53 +0000 (17:01 +0200)]
vala: enable the use of vapigen by packages with vala support

Now that gobject-introspection is supported, generation of .vapi
files for develeloping Vala code against gobject-based libraries
should be supported as well.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogobject-introspection.bbclass: add a class that enables gobject introspection
Alexander Kanavin [Wed, 9 Mar 2016 15:01:52 +0000 (17:01 +0200)]
gobject-introspection.bbclass: add a class that enables gobject introspection

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogtk-doc-stub: remove introspection stubs
Alexander Kanavin [Wed, 9 Mar 2016 15:01:51 +0000 (17:01 +0200)]
gtk-doc-stub: remove introspection stubs

As we provide the full introspection support, we need to remove
the stubs from this package that conflict with it.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogobject-introspection: Override GIO_MODULE_DIR when scanning
Richard Purdie [Wed, 9 Mar 2016 16:38:54 +0000 (16:38 +0000)]
gobject-introspection: Override GIO_MODULE_DIR when scanning

This is to stop GLib linking to GConf and other modules (e.g gnutls).

If for example gconf is installed in the sysroot then GLib will use it by
default for the GSettings backend.  This will pull a lot more libraries into the
scanner processes and expands the potential for runtime issues since dependencies
may be missing of change since they're not in the dependency chain.

Use an invalid modules directory so we avoid loading any modules or the
libraries they link against which the system may be in the process of rebuilding.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogobject-introspection: add the recipe
Alexander Kanavin [Wed, 9 Mar 2016 15:01:50 +0000 (17:01 +0200)]
gobject-introspection: add the recipe

The recipe has comments that explain what is going on and why.

Also, there are patches necessary to make it work in Yocto cross-compilation environment;
they will be submitted upstream.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agometa: toolchain-shar-relocate.sh: Fix for extracting SDK in the same directory as...
Zawadzki, Krzysztof (Nokia - PL/Wroclaw) [Tue, 8 Mar 2016 19:53:28 +0000 (19:53 +0000)]
meta: toolchain-shar-relocate.sh: Fix for extracting SDK in the same directory as SDK script.

If SDK will be extracted in the same folder as sdk shar script.
The shar_relocate will substitute SDK.sh script SDKPATH with extract destination path.
After that operation no one will be able use this sdk script as paths in it will be different.
To fix this we need to filter out sdk script and relocate_sdk scripts from  SDKPATH substitution

Signed-off-by: Krzysztof Zawadzki <krzysztof.zawadzki@nokia.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agonettle: The variable named p in the patch file was incorrectly named.
ngutzmann [Wed, 9 Mar 2016 16:17:31 +0000 (09:17 -0700)]
nettle: The variable named p in the patch file was incorrectly named.

The variable in question should have been called ecc->p. The patch has been updated
so that the compilation of the nettle recipe would complete successfully. The backport
originated from this commit https://git.lysator.liu.se/nettle/nettle/commit/c71d2c9d20eeebb985e3872e4550137209e3ce4d

Signed-off-by: ngutzmann <nathangutzmann@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agovalgrind: Make dep on glibc-utils conditional on TCLIBC = glibc
Khem Raj [Thu, 10 Mar 2016 03:48:32 +0000 (03:48 +0000)]
valgrind: Make dep on glibc-utils conditional on TCLIBC = glibc

This helps with building valgrind for non-glibc systems

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agomake 4.1: fix segfault when ttyname fails
Chang Rebecca Swee Fun [Thu, 10 Mar 2016 04:01:48 +0000 (12:01 +0800)]
make 4.1: fix segfault when ttyname fails

GNU make segfaults when run in a chroot environment because
of a known bug in GNU make 4.1. See [1] for details.

Works if /dev/pts is mounted before chroot.

[1] http://savannah.gnu.org/bugs/?43434

[YOCTO #9067]

Reported-by: Alexander Larsson <alexl@redhat.com>
Signed-off-by: Anuj Mittal <anujx.mittal@intel.com>
Signed-off-by: Chang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogcc: Disable libitm for MicroBlaze
Nathan Rossi [Thu, 10 Mar 2016 04:29:31 +0000 (14:29 +1000)]
gcc: Disable libitm for MicroBlaze

Disable libitm as it is not supported on MicroBlaze.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosign_package_feed: add feed signature type
Ioan-Adrian Ratiu [Thu, 10 Mar 2016 10:03:00 +0000 (12:03 +0200)]
sign_package_feed: add feed signature type

Signing package feeds will default to ascii armored signatures (ASC) the
other option being binary (BIN). This is for both rpm and ipk backends.

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopackage_manager: sign IPK package feeds
Ioan-Adrian Ratiu [Thu, 10 Mar 2016 10:02:59 +0000 (12:02 +0200)]
package_manager: sign IPK package feeds

Create gpg signed ipk package feeds using the gpg backend if configured

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosigning-keys: create ipk package
Ioan-Adrian Ratiu [Thu, 10 Mar 2016 10:02:58 +0000 (12:02 +0200)]
signing-keys: create ipk package

Store the ascii armored pubkey generated using gpg_sign.export_pubkey()
in its own package.

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogpg_sign: export_pubkey: add signature type support
Ioan-Adrian Ratiu [Thu, 10 Mar 2016 10:02:57 +0000 (12:02 +0200)]
gpg_sign: export_pubkey: add signature type support

Add support for multiple types of signatures (binary or ascii)
in export_pubkey(). There is no change in behaviour for the function,
the previous implicit default is the new parameter "armor" default.

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogpg_sign: detach_sign: fix gpg > 2.1 STDIN file descriptor
Ioan-Adrian Ratiu [Thu, 10 Mar 2016 10:02:56 +0000 (12:02 +0200)]
gpg_sign: detach_sign: fix gpg > 2.1 STDIN file descriptor

Starting from v2.1 passing passwords directly to gpg does not work
anymore [1], instead a loopback interface must be used otherwise
gpg >2.1 will error out with:
"gpg: signing failed: Inappropriate ioctl for device"

gpg <2.1 does not work with the new --pinentry-mode arg and gives an
invalid option error, so we detect what is the running version of gpg
and pass it accordingly.

[1] https://wiki.archlinux.org/index.php/GnuPG#Unattended_passphrase

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogpg_sign: add local ipk package signing functionality
Ioan-Adrian Ratiu [Thu, 10 Mar 2016 10:02:55 +0000 (12:02 +0200)]
gpg_sign: add local ipk package signing functionality

Implement ipk signing inside the sign_ipk bbclass using the gpg_sign
module and configure signing similar to how rpm does it. sign_ipk uses
gpg_sign's detach_sign because its functionality is identical to package
feed signing.

IPK signing process is a bit different from rpm:
    - Signatures are stored outside ipk files; opkg connects to a feed
server and downloads them to verify a package.
    - Signatures are of two types (both supported by opkg): binary or
ascii armoured. By default we sign using ascii armoured.
    - Public keys are stored on targets to verify ipks using the
opkg-keyrings recipe.

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosystemd: add comment stating that resolved needs gcrypt
Ross Burton [Thu, 10 Mar 2016 16:35:41 +0000 (16:35 +0000)]
systemd: add comment stating that resolved needs gcrypt

The resolved support requires that gcrypt is enabled.  PACKAGECONFIG doesn't
support dependencies, so add a comment.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoselftest/bblayers.py: Remove harcoded recipe files
Mariano Lopez [Thu, 10 Mar 2016 10:29:22 +0000 (10:29 +0000)]
selftest/bblayers.py: Remove harcoded recipe files

Currently the recipe files are hardcoded and if the recipe
change the version, the test will fail.

This will change from using a harcoded file to look for the
file using bitbake-layers. Now, just the recipe name must
be specified.

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoselftest/prservice.py: Sanitize package version when looking for stamp
Mariano Lopez [Thu, 10 Mar 2016 10:29:21 +0000 (10:29 +0000)]
selftest/prservice.py: Sanitize package version when looking for stamp

Currently when using a git version the check for the stamp, using regex,
will fail because of plus sign in the version.

With this change the version is escaped before adding it to the regex.

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolsof: update UPSTREAM_CHECK_URI
Maxin B. John [Thu, 10 Mar 2016 11:56:11 +0000 (13:56 +0200)]
lsof: update UPSTREAM_CHECK_URI

Set UPSTREAM_CHECK_URI to the below listed URL:
http://www.mirrorservice.org/sites/lsof.itap.purdue.edu/pub/tools/unix/lsof

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoeudev: provide UPSTREAM_CHECK_URI
Maxin B. John [Thu, 10 Mar 2016 11:56:12 +0000 (13:56 +0200)]
eudev: provide UPSTREAM_CHECK_URI

Provide UPSTREAM_CHECK_URI to perform checkpkg task.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotoaster.bbclass: show packages that were setscened into existence too
brian avery [Thu, 10 Mar 2016 15:55:54 +0000 (15:55 +0000)]
toaster.bbclass: show packages that were setscened into existence too

We were previously ignoring pkgs that came in from a setscene like from
an sstate mirror).  With this patch we can use pkgs than come from sstate
for image customisation as well.

Also remove unused variable.

[YOCTO #9137]

Signed-off-by: brian avery <brian.avery@intel.com>
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc: Fix the license on GNU OpenMP
Helio Chissini de Castro [Thu, 10 Mar 2016 14:07:04 +0000 (15:07 +0100)]
gcc: Fix the license on GNU OpenMP

Poky jethro has libgomp ( GNU OpenMP ) license marked as GPL-3.0,
where's in fact the correct is GPL-3.0 with GCC Library Runtime Exception

Signed-off-by: Helio Chissini de Castro <helio.castro@bmw-carit.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/4.4: Galileo updates
Bruce Ashfield [Thu, 10 Mar 2016 17:06:33 +0000 (12:06 -0500)]
linux-yocto/4.4: Galileo updates

Integrating the following patches for improved galileo support:

  66009f8977a6 adc1x8s102: support ACPI-based enumeration.
  903003b78c13 staging:iio: add support for ADC1x8s102.
  cd83f4095b23 spi-pxa2xx: fixed ACPI-based enumeration of SPI devices.
  c4efe23b7f93 pca9685: PCA9685 PWM and GPIO multi-function device.
  81e166ec0a35 gpio: pca953x: provide GPIO base based on _UID
  4086f8c34956 acpi: added a custom DSDT file.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agositeinfo: Add ppc64le support.
Chris Austen [Mon, 7 Mar 2016 17:48:49 +0000 (11:48 -0600)]
siteinfo: Add ppc64le support.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agonettle: disable static for 2.7.1
Ross Burton [Wed, 9 Mar 2016 11:10:05 +0000 (11:10 +0000)]
nettle: disable static for 2.7.1

9 years agonettle: Security fix CVE-2015-8804
Armin Kuster [Fri, 5 Feb 2016 16:41:24 +0000 (08:41 -0800)]
nettle: Security fix CVE-2015-8804

(From OE-Core master rev: 7474c7dbf98c1a068bfd9b14627b604da5d79b67)

minor tweak to get x86_64/ecc-384-modp.asm to apply

(From OE-Core rev: d1903e264ab62d34daeb652c89c6fb67e7c9b42d)

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agonettle: Security fix CVE-2015-8803 and CVE-2015-8805
Armin Kuster [Fri, 5 Feb 2016 16:37:29 +0000 (08:37 -0800)]
nettle: Security fix CVE-2015-8803 and CVE-2015-8805

(From OE-Core master rev: f62eb452244c3124cc88ef01c14116dac43f377a)

hand applied changes for ecc-256.c

(From OE-Core rev: cb03397ac97bfa99df6b72c80e1e03214e059e6e)

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoglib-2.0: silence warnings when parsing headers for introspection
Ross Burton [Wed, 9 Mar 2016 16:44:00 +0000 (16:44 +0000)]
glib-2.0: silence warnings when parsing headers for introspection

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoqemu: Limit paths searched during user mode emulation
Richard Purdie [Wed, 9 Mar 2016 22:49:02 +0000 (22:49 +0000)]
qemu: Limit paths searched during user mode emulation

By default qemu builds a complete list of directories within the user
emulation sysroot (-L option). The OE sysroot directory is large and
this is confusing, for example it indexes all pkgdata. In particular this
confuses strace of qemu binaries with tons of irrelevant paths.

This patch stops the code indexing up front and instead only indexes
things if/as/when it needs to. This drastically reduces the files it
reads and reduces memory usage and cleans up strace.

It would also avoid the infinite directory traversal bug in [YOCTO #6996]
although the code could still be vulnerable if it parsed those specific
paths.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage-mklibs: handle position independent binaries
Tyler Hall [Wed, 9 Mar 2016 02:07:40 +0000 (21:07 -0500)]
image-mklibs: handle position independent binaries

Executables built with -fpie have the ELF type DYN rather than EXEC
which makes them difficult to distinguish from shared libraries.
Currently when building the list of executables we omit these binaries
so they might fail to run on the resultant rootfs due to missing
symbols. One of these is systemd which builds -fpie unconditionally, so
mklibs breaks images containing systemd.

Modify the search to catch all executable files that are ELF and have an
interpreter set. Omit libc and libpthread as special cases because they
have an interpreter and are directly executable but treating them as
such is antithetical to the pupose of mklibs.

Signed-off-by: Tyler Hall <tylerwhall@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibpam: define limits.conf as CONFFILES of package libpam-runtime
Zhixiong Chi [Wed, 9 Mar 2016 09:19:40 +0000 (17:19 +0800)]
libpam: define limits.conf as CONFFILES of package libpam-runtime

Based as security reason, the system must limit users to
simultaneous system logins, or a site-defined number.
To avoid overwriting the /etc/security/limits.conf file after
upgrading this rpm package, we will define the file as
CONFFILES of package libpam-runtime.

Signed-off-by: Zhixiong Chi <Zhixiong.Chi@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoperl-rdepends: Remove circular dependencies
Ricardo Ribalda Delgado [Wed, 9 Mar 2016 17:39:50 +0000 (18:39 +0100)]
perl-rdepends: Remove circular dependencies

Packages should not depend on themselves, otherwise it could lead to
circular dependencies on the package manager.

I have added a line on the proposed bash script that should add this
check on future versions.

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorpm: Sync CVS to regular version
Mark Hatle [Wed, 9 Mar 2016 19:58:42 +0000 (13:58 -0600)]
rpm: Sync CVS to regular version

A previous fix for a python dep issue was not merged to the CVS version.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorpm: Fix musl integration with RPM5
Mark Hatle [Wed, 9 Mar 2016 19:58:41 +0000 (13:58 -0600)]
rpm: Fix musl integration with RPM5

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc: Disable libitm for nios2
Marek Vasut [Wed, 9 Mar 2016 11:30:48 +0000 (12:30 +0100)]
gcc: Disable libitm for nios2

The libitm is not supported on nios2, so disable it.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Ley Foon Tan <lftan@altera.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Ross Burton <ross.burton@intel.com>
Cc: Thomas Chou <thomas@wytron.com.tw>
Cc: Walter Goossens <waltergoossens@home.nl>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopopulate_sdk_ext: Correct commit 8b81bb56c69aabdea984352f8e267a9783c0bdbc
Richard Purdie [Wed, 9 Mar 2016 22:31:15 +0000 (22:31 +0000)]
populate_sdk_ext: Correct commit 8b81bb56c69aabdea984352f8e267a9783c0bdbc

Commit 8b81bb56c69aabdea984352f8e267a9783c0bdbc was accidentally merged.
The DL_DIR piece was simply incorrect and should be removed.

The patch commit message should have mentioned that the changes were
to update populate_sdk_ext after the changes to uninative now the
download is placed into a specific directory in DL_DIR. We also
need to specify the uninative tarball checksum.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: create: shrinkwrap and lockdown npm modules
Paul Eggleton [Wed, 9 Mar 2016 04:48:55 +0000 (17:48 +1300)]
recipetool: create: shrinkwrap and lockdown npm modules

"npm shrinkwrap" creates a file that ensures that the exact same
versions get fetched the next time the recipe is built. lockdown is
similar but also includes sha1sums of the modules thus validating they
haven't changed between builds. These ensure that the build is
reproducible.

Fixes [YOCTO #9225].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: create: support creation of additional files by plugins
Paul Eggleton [Wed, 9 Mar 2016 04:48:54 +0000 (17:48 +1300)]
recipetool: create: support creation of additional files by plugins

Allow plugins to create additional files to go alongside the recipe. The
plugins don't know what the output filename is going to be, so they need
to put the files in a temporary location and add them to an "extrafiles"
dict within extravalues where the destination filename is the key and
the temporary path is the value.

devtool add was also extended to ensure these files get moved in and
preserved upon reset if they've been edited by the user.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: create: check if npm available if npm:// URL specified
Paul Eggleton [Wed, 9 Mar 2016 04:48:53 +0000 (17:48 +1300)]
recipetool: create: check if npm available if npm:// URL specified

If the user specifies an npm:// URL then the fetcher needs npm to be
available to run, so check if it's available early rather than failing
later.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: create: split npm module dependencies into packages
Paul Eggleton [Wed, 9 Mar 2016 04:48:52 +0000 (17:48 +1300)]
recipetool: create: split npm module dependencies into packages

Rather than rolling all of an npm module's dependencies into the same
package, split them into one module per package, setting the SUMMARY and
PKGV values from the package.json file for each package. Additionally,
mark each package with the appropriate license using the license
scanning we already do, falling back to the license stated in the
package.json file for the module if unknown. All of this is mostly in
aid of ensuring all modules and their licenses now show up in the
manifests for the image.

Additionally we set the main LICENSE value more concretely once we've
calculated the per-package licenses, since we have more information at
that point.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: create: add license file crunching
Paul Eggleton [Wed, 9 Mar 2016 04:48:51 +0000 (17:48 +1300)]
recipetool: create: add license file crunching

Matching license texts directly to md5sums only goes so far. Some
licenses make the copyright statement an intrinsic part of the license
statement (e.g. MIT) which of course varies between projects. Also,
people often seem to take standard license texts such as GPLv2 and
reformat them cosmetically - re-wrapping lines at a different width or
changing quoting styles are seemingly popular examples. In order to
match license files to their actual licenses more effectively, "crunch"
out these elements before comparing to an md5sum. (The existing plain
md5sum matching has been left in since it's a shortcut, and our list of
crunched md5sums isn't a complete replacement for it.)

As always, this code isn't providing any guarantees (legal or otherwise)
that it will always get the license correct - as indicated by the
accompanying comments the LICENSE values it writes out to the recipe are
indicative and you should verify them yourself by looking at the
documentation supplied from upstream for the software being built if you
have any concerns.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: create: match *LICENSE* as a license file
Paul Eggleton [Wed, 9 Mar 2016 04:48:50 +0000 (17:48 +1300)]
recipetool: create: match *LICENSE* as a license file

For example, this picks up a file named MIT-LICENSE.txt.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: create: improve mapping for autotools program macros
Paul Eggleton [Wed, 9 Mar 2016 04:48:49 +0000 (17:48 +1300)]
recipetool: create: improve mapping for autotools program macros

Make the following improvements to mapping items specified in
AC_CHECK_PROG, AC_PATH_PROG and AX_WITH_PROG to recipes/classes:

* Produce a map of native recipe -> binary for all binaries currently in
  STAGING_BINDIR_NATIVE and use this when mapping items
* Add some more entries to the class map
* Ignore autotools binaries since they are covered by the inherit of
  autotools
* Ignore coreutils-native since that would almost always be a bogus
  dependency

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: create: be more tolerant of spacing in configure.ac
Paul Eggleton [Wed, 9 Mar 2016 04:48:48 +0000 (17:48 +1300)]
recipetool: create: be more tolerant of spacing in configure.ac

Allow for whitespace in appropriate places, and ensure we match all
whitespace chars not just the space character.

(This fixes extracting dependencies from tmux's configure.ac, for
example.)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolib/sstatesig: skip shared_workdir when checking locked sigs
Joshua Lock [Wed, 9 Mar 2016 13:15:25 +0000 (13:15 +0000)]
lib/sstatesig: skip shared_workdir when checking locked sigs

do_shared_workdir is not a proper sstate task, it always reruns if
needed, so special-case it in warnings when checking locked sigs.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython3: fix patching get_python_lib() in distutils/sysconfig.py
Alexander Kanavin [Wed, 9 Mar 2016 15:01:49 +0000 (17:01 +0200)]
python3: fix patching get_python_lib() in distutils/sysconfig.py

Previous, two things were wrong:
1) lib_basename was set from STAGING_LIBDIR only if prefix parameter was empty or missing
2) if prefix was not empty, lib_basename reverted to sys.lib, even if STAGING_LIBDIR
should've overriden it

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython3-native: use the previous version of python-config script
Alexander Kanavin [Wed, 9 Mar 2016 15:01:48 +0000 (17:01 +0200)]
python3-native: use the previous version of python-config script

In python 3.4 python-config was rewritten in shell, ironically
to support cross-compilation:
https://bugs.python.org/issue16235

This new shell version is broken in several ways, and doesn't
have our oe-specific tweaks. Let's revert to the old script,
which is still provided.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoqemu.bbclass: add qemu_wrapper_cmdline()
Alexander Kanavin [Wed, 9 Mar 2016 15:01:47 +0000 (17:01 +0200)]
qemu.bbclass: add qemu_wrapper_cmdline()

The class had qemu_run_binary() which was not suitable for gobject-introspection,
as it required the name of the binary to run.

qemu_wrapper_cmdline() returns just the command line string needed to run
binaries, and does not require the binary name.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodb: remove the NO_UPDATE_REASON and replace it a comment about RPM
Mark Hatle [Mon, 29 Feb 2016 15:37:43 +0000 (09:37 -0600)]
db: remove the NO_UPDATE_REASON and replace it a comment about RPM

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
9 years agorpmresolve: It is not necessary to manually specify -lpopt
Mark Hatle [Fri, 4 Mar 2016 19:02:50 +0000 (13:02 -0600)]
rpmresolve: It is not necessary to manually specify -lpopt

Popt may be internal or external to rpm.  Either way the rpm libraries
will link properly with or without -lpopt.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
9 years agorpm: A number of the patches have been submitted upstream
Mark Hatle [Thu, 25 Feb 2016 16:54:37 +0000 (10:54 -0600)]
rpm: A number of the patches have been submitted upstream

Note the upstream submission in the patches.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
9 years agorpm: Enable specific crypto and digest settings via variables
Mark Hatle [Thu, 25 Feb 2016 15:49:57 +0000 (09:49 -0600)]
rpm: Enable specific crypto and digest settings via variables

Allow the user to set the specific digest and non-repudiable signature
algorithms.  This should be done on a distribution wide basis.

See recipe for exact instructions, but values are now set using:
RPM_FILE_DIGEST_ALGO (default 1 - md5)
RPM_SELF_SIGN_ALGO   (default DSA)

Also, change the PACKAGECONFIG to define the default crypto engine for
RPM5.  Not just the available crypto engines.  If a crypto engine is not
selected, the system will default to the internal beecrypt version.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
9 years agosecurity_flags.inc: Special flags are needed for RPM
Mark Hatle [Fri, 4 Mar 2016 19:03:52 +0000 (13:03 -0600)]
security_flags.inc: Special flags are needed for RPM

RPM interally has support to build and work with the stack protector.
This is disabled by default in the RPM package, and the proper settings
should be specified in the security_flags.  Using the default setting of
stack-protector-strong causes linking problems due to issues with libtool
selecting the wrong GCC objections to link against.

Falling back to the RPM values of stack-protector will permit linking to
work properly, and some level of protection.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
9 years agorpm: Uprev to rpm-5.4.16 (pre) and rpm-5.4+cvs to current CVS head
Mark Hatle [Tue, 23 Feb 2016 17:28:21 +0000 (11:28 -0600)]
rpm: Uprev to rpm-5.4.16 (pre) and rpm-5.4+cvs to current CVS head

meta/lib/oe/package_manager.py was also updated.  This ensures that any
diagnostic messages are ignored from the output of rpmresolve.

The patches have been split into bug fixes (things that belong upstream)
and local changes that are OE specific.

The following patches are obsolete and have been removed:

rpm-remove-sykcparse-decl.patch
fstack-protector-configure-check.patch
rpm-disable-Wno-override-init.patch
rpm-lua-fix-print.patch
rpm-rpmpgp-fix.patch
verify-fix-broken-logic-for-ghost-avoidance-Mark-Hat.patch

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
9 years agolinux-yocto/4.4: explicitly enable ftrace in tracing fragment
Bruce Ashfield [Tue, 8 Mar 2016 04:22:22 +0000 (23:22 -0500)]
linux-yocto/4.4: explicitly enable ftrace in tracing fragment

The recent split/factoring between production and development
kernel configurations, EXPERT, EMBEDDED and DEBUG_KERNEL are no longer
selected for all kernel types. This means that ftrace is no longer
selected by default in in standard BSPs, causing breakage in things
that relied on it.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/4.4: iwlwifi: mvm: don't allow sched scans without matches to be started
Bruce Ashfield [Mon, 7 Mar 2016 16:45:41 +0000 (11:45 -0500)]
linux-yocto/4.4: iwlwifi: mvm: don't allow sched scans without matches to be started

Integrating the following commit for improved iwlwifi support:

    iwlwifi: mvm: don't allow sched scans without matches to be started

    commit 5e56276e7555b34550d51459a801ff75eca8b907 upstream.

    The firmware can perform a scheduled scan with not matchsets passed,
    but it can't send notification that results were found.  Since the
    userspace then cannot know when we got new results and the firmware
    wouldn't trigger a wake in case we are sleeping, it's better not to
    allow scans without matchsets.

    This fixes https://bugzilla.kernel.org/show_bug.cgi?id=110831

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolinux-yocto/kernel-meta: ktype refactoring: move DEBUG_KERNEL, EXPERT and EMBEDDED
Bruce Ashfield [Fri, 4 Mar 2016 18:21:16 +0000 (13:21 -0500)]
linux-yocto/kernel-meta: ktype refactoring: move DEBUG_KERNEL, EXPERT and EMBEDDED

Integrating the folliwing patch series from Cal:

  This patch series refactors the ktypes so that base and standard ktypes
  do not enable EMBEDDED, EXPERT, or DEBUG_KERNEL. The reason this
  decision was made is because production platforms likely do not want
  DEBUG_KERNEL enabled, and EMBEDDED selects EXPERT which selects
  DEBUG_KERNEL.

  A new ktype called "developer" was also created. This ktype
  enables the options now missing from standard and base, making it easy
  to maintain the functionality of a BSP through simply swapping the ktype
  from standard to developer. The preempt-rt ktype is now based off of
  developer in order to maintain its functionality.

  The new standard ktype does not include EMBEDDED, EXPERT, or
  DEBUG_KERNEL. Without DEBUG_KERNEL it loses a number of debug features
  that are selected by default. Without EXPERT it gains RFKILL_INPUT and
  DEBUG_MEMORY_INIT, while losing VMSPLIT_3G. These are only available to
  configure with CONFIG_EXPERT=y and default to EXPERT or !EXPERT. Not
  selecting EMBEDDED has no apparent impacts.

  Some coordination is required for this change, as existing BSPs WILL be
  affected, and will either need to accept the changes in the standard
  ktype or move to the developer ktype.

  California Sullivan (12):
    features/debug: add debug-kernel feature
    ktypes: add developer ktype
    ktypes/base: Disable EMBEDDED and DEBUG_KERNEL
    CONFIG_PROCESSOR_SELECT: do not enable
    intel-common-drivers.scc: move profiling and latencytop to a new file
    romley.scc remove profiling and latencytop features
    bsp/intel-common: add intel-core* developer BSPs
    preempt-rt.scc: include developer ktype instead of standard
    intel-common: add intel-developer-drivers.scc to preempt-rt BSPs
    CONFIG_I2C_I801: set option to yes in intel-core* BSPs
    bsp: add developer common-pc BSPs
    bsp: remove profiling and latencytop from non-developer common-pc BSPs

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoxmlto: tell xmlto where cp is
Ross Burton [Tue, 8 Mar 2016 11:27:35 +0000 (11:27 +0000)]
xmlto: tell xmlto where cp is

xmlto looks for a cp binary, and on e.g. Fedora 23 will find it at /usr/bin/cp
but most other distros have it at /bin/cp.  This causing problems with sharing
sstate between distributions, but as /bin is a symlink on F23 we can safely
force the path to /bin/cp.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotoaster.bbclass: improve how we gather buildstats for Toaster
Elliot Smith [Tue, 8 Mar 2016 11:27:24 +0000 (11:27 +0000)]
toaster.bbclass: improve how we gather buildstats for Toaster

Clean up the code which gathers buildstats for Toaster,
and modify the field names so that the correct parts of the
buildstats files are used to derive the CPU usage values.

Also derive elapsed time for the build here, rather than in
Toaster, as we have ready access to the data in the correct
format.

[YOCTO #8842]

Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage-prelink: use STAGING_*_NATIVE variables
Ross Burton [Tue, 1 Mar 2016 08:54:38 +0000 (08:54 +0000)]
image-prelink: use STAGING_*_NATIVE variables

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agostrace: Backport fixes for compiling with clang
Khem Raj [Mon, 29 Feb 2016 19:41:43 +0000 (19:41 +0000)]
strace: Backport fixes for compiling with clang

Backport fixes needed to avoid use of VLAs which is not available
on clang/llvm

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