]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
9 years agocombo-layer: only allow fast-forward when pulling
Markus Lehtonen [Wed, 8 Jul 2015 10:59:48 +0000 (13:59 +0300)]
combo-layer: only allow fast-forward when pulling

Only allow fast-forward merges in the component repositories when doing
git-pull. This makes it possible to spot problems (i.e. rewriting of
history) in the component upstream . Also, this change prevents the
creation of local-only merge commits in the component repositories.
These merges cause "last_revision" field of the combo-layer config to
point to a git commit that is only present in the users local component
repository but nowhere in upstream.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoapr: Fix packet discards HTTP redirect
Li Wang [Wed, 8 Jul 2015 07:53:19 +0000 (15:53 +0800)]
apr: Fix packet discards HTTP redirect

Disconnect the connection by poll() timeout.
If timeout=0 and apr_wait_for_io_or_timeout()=APR_TIMEUP then
apr_socket_recv() returns EAGAIN.

Signed-off-by: Noriaki Yoshitane <yoshitane.nrs@cnt.ncos.nec.co.jp>
Signed-off-by: Li Wang <li.wang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopython-io: Add runtime dependency on contextlib
Ash Charles [Tue, 7 Jul 2015 21:22:54 +0000 (14:22 -0700)]
python-io: Add runtime dependency on contextlib

The python-io package includes ssl.py module which imports the
contextlib library.

This applied to Python 2.7.9 but not 3.3.

Signed-off-by: Ash Charles <ashcharles@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosanity.bbclass: Check if /tmp is writable
Mariano Lopez [Tue, 7 Jul 2015 11:17:40 +0000 (11:17 +0000)]
sanity.bbclass: Check if /tmp is writable

Used mkstemp instead of raw open file call.
Also added the exception message to the output of
the sanity check.

[YOCTO #7922]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobuildhistory.bbclass: Check output folder is present before creating files-in-$pkg.txt
Leonardo Sandoval [Tue, 30 Jun 2015 11:19:40 +0000 (11:19 +0000)]
buildhistory.bbclass: Check output folder is present before creating files-in-$pkg.txt

This is just a safe check to make sure the output folder is present, before
creating the files-in-$pkg.txt file.

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agodbus-ptest: set INSANE_SKIP for build-deps
Robert Yang [Mon, 13 Jul 2015 10:02:42 +0000 (03:02 -0700)]
dbus-ptest: set INSANE_SKIP for build-deps

Skip the warning for dbus-ptest:
dbus-1.8.18: dbus-ptest rdepends on dbus-test-ptest, but it isn't a build dependency? [build-deps]

We add dbus-test to dbus' DEPENDS to fix the problem usually, but
dbus-test DEPENDS on dbus, so we can't do that, use INSANE_SKIP to fix
the problem.

(From OE-Core rev: 7bf27752cdfcb83a951086d6e5609593c79437c3)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoxserver-xorg: remove invalid ac_cv_file__usr_share_sgml_X11_defs_ent
Robert Yang [Mon, 13 Jul 2015 10:04:32 +0000 (03:04 -0700)]
xserver-xorg: remove invalid ac_cv_file__usr_share_sgml_X11_defs_ent

There is no ac_cv_file__usr_share_sgml_X11_defs_ent in configure, can't
find it in config.log after remove, either.

(From OE-Core rev: 27bd0a27a879cfc31062fbb2b1a04431d5541c55)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoapt: remove invalid ac_cv_glibc_ver
Robert Yang [Mon, 13 Jul 2015 10:04:31 +0000 (03:04 -0700)]
apt: remove invalid ac_cv_glibc_ver

There is no ac_cv_glibc_ver in configure, can't find it
in config.log after remove, either.

(From OE-Core rev: 945e2bf6845b052eeb5101033c4770d766142bb1)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoglibc: remove invalid ac_cv_path_KSH
Robert Yang [Mon, 13 Jul 2015 10:04:30 +0000 (03:04 -0700)]
glibc: remove invalid ac_cv_path_KSH

There is no ac_cv_path_KSH in configure, can't find it
in config.log after remove, either.

(From OE-Core rev: 6b58670d8b8f2d1c1a7d5043652f48a364a0df5d)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogit: remove invalid ac_cv_c_c99_format=yes
Robert Yang [Mon, 13 Jul 2015 10:04:29 +0000 (03:04 -0700)]
git: remove invalid ac_cv_c_c99_format=yes

There is no c_c99_format in configure, and there is no
ac_cv_c_c99_format in config.log after removed.

(From OE-Core rev: ef84b14ec0d1c7a7e5da278d8a4fe189806a1af2)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agomc: Upgrade to release 4.8.14
Amarnath Valluri [Mon, 13 Jul 2015 11:49:15 +0000 (14:49 +0300)]
mc: Upgrade to release 4.8.14

Not using mc-CTRL.patch, as it was merged to upstream.
Upstream commit-id: e78b636eba9d23e9f5f066b022bd5640c85409be.

(From OE-Core rev: cee0d8f8d8ed43cc6b5cf16d713be73dd468007d)

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoalsa-plugins, pulseaudio: depend on speexdsp, not speex
Tanu Kaskinen [Thu, 9 Jul 2015 10:43:15 +0000 (13:43 +0300)]
alsa-plugins, pulseaudio: depend on speexdsp, not speex

Speexdsp was split off from speex, and alsa-plugins and pulseaudio
only depend on the speexdsp library.

alsa-plugins needs also a patch, because it has so far relied on
speex_types.h, which was renamed to speexdsp_types.h when speexdsp was
split off, to not collide with the file that is included in speex.

(From OE-Core rev: 4ee8f0dd4e9cb493d074c762bf6ff7169bcf3466)

Signed-off-by: Tanu Kaskinen <tanu.kaskinen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agospeex: 1.2rc1 -> 1.2rc2
Tanu Kaskinen [Thu, 9 Jul 2015 10:43:14 +0000 (13:43 +0300)]
speex: 1.2rc1 -> 1.2rc2

Dropped speex-fpu.inc, since it's simpler to put the logic directly in
the .bb file.

LIC_FILES_CHKSUM changed due to whitespace changes only.

Dropped PR.

Added a dependency on speexdsp. The speexdsp functionality used to be
included in speex, but upstream split the speexdsp package off into a
separate source tree. speexdsp could otherwise be an optional
dependency, but the upstream configure script doesn't support
disabling it explicitly, and relying on automatic detection would
make builds nondeterministic, so it's better to always enable it.

--enable-fixed-point was previously included in the configure options
unconditionally, but the option should be used only when TARGET_FPU is
set to "soft".

--with-ogg-libraries, --with-ogg-includes and --disable-oggtest aren't
supported anymore, since speex now uses pkg-config to find libogg.

(From OE-Core rev: c79cc4ab8455652d2ebd1132fdc868cf80ff81d0)

Signed-off-by: Tanu Kaskinen <tanu.kaskinen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agospeexdsp: initial recipe
Tanu Kaskinen [Thu, 9 Jul 2015 10:43:13 +0000 (13:43 +0300)]
speexdsp: initial recipe

speexdsp was split off from speex in 1.2rc2, so we need a separate
recipe for speexdsp when before we can upgrade speex.

The speex recipe has so far used the --enable-fixed-point configure
option unconditionally, but I believe that was a mistake, so I
dropped that. The option is still enabled if TARGET_FPU is set to
"soft". Commit e8f707f16a38d85535593a32efff6dcbf4ddb203 added the
TARGET_FPU check, and I think that commit should have removed
--enable-fixed-point from the static configure options, like it
removed --disable-float-api.

The NEON code caused a build failure on qemuarm64. As a workaround,
I disabled NEON optimizations when building for aarch64.

I added a patch that fixes a build failure in alsa-plugins. Compiling
alsa-plugins against the new speexdsp version without the patch
resulted in this error:

In file included from .../usr/include/speex/speexdsp_types.h:122:0,
                 from .../usr/include/speex/speex_preprocess.h:46,
                 from .../alsa-plugins-1.0.29/speex/pcm_speex.c:23:

.../usr/include/speex/speexdsp_config_types.h:13:9: error: unknown type name 'uint16_t'
 typedef uint16_t spx_uint16_t;
         ^

(From OE-Core rev: bb826645d188e5ea78718f3ad4b2e420eec3b354)

Signed-off-by: Tanu Kaskinen <tanu.kaskinen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodpkg: Fix for Fedora22 and new versions of tar
Richard Purdie [Mon, 13 Jul 2015 11:04:52 +0000 (12:04 +0100)]
dpkg: Fix for Fedora22 and new versions of tar

They managed to 'break' tar. Again. Sorry, they fixed a regression
which broke dpkg-deb.

The addition of:
http://git.savannah.gnu.org/cgit/tar.git/commit/?id=163e96a0e619a900eab6de827c7c5749ecc9d3f2
("Bugfix: entries read from the -T file did not get proper matching_flag.")
means that the no-recursion option gets lost. This leads to many files getting included
multiple times, along with files which shouldn't be there.

The commit message is horrendous. The patch actually makes the option positional
(as documnted since 2003) and therefore doesn't affect the input from the -T option.

Moving the --no-reursion option to earlier in the command avoids the bug.

The bug was not present in tar 1.28 however it has been backported in at least
Fedora 22 and heading into Fedora 21.

Redhat reports of issue:
https://bugzilla.redhat.com/show_bug.cgi?id=1230762 [tar]
https://bugzilla.redhat.com/show_bug.cgi?id=1241508 [dpkg]

Discussion of bug in upstream tar:
http://www.mail-archive.com/bug-tar@gnu.org/msg04799.html

[YOCTO #7988]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotar: Add symlink to tar from gtar
Richard Purdie [Mon, 13 Jul 2015 11:04:46 +0000 (12:04 +0100)]
tar: Add symlink to tar from gtar

dpkg-deb accesses tar via "gtar", add a symlink to ensure that nativesdk
for example correctly catches these accesses to tar (for buildtools-tarball).
This likely also fixes on target dpkg-deb usage.

[YOCTO #7988]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/sstate.bbclass: Improve checkstatus using connection cache.
Aníbal Limón [Tue, 23 Jun 2015 22:55:29 +0000 (17:55 -0500)]
classes/sstate.bbclass: Improve checkstatus using connection cache.

Use FetcherConnectionCache to improve times when do checkstatus over
sstate resources.

[YOCTO #7796]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopython-smartpm: Have native smart use nativepython
Randy Witt [Fri, 10 Jul 2015 21:03:21 +0000 (14:03 -0700)]
python-smartpm: Have native smart use nativepython

Currently when trying to use smart via devshell or in the bitbake
environment, it will fail without inheriting pythonnative. Since the
native tools should "just work" use nativepython in the shebang line for
smart.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoopkg-build: Ignore tar error due to hardlinks issue when creating ipk files
Alejandro Hernandez [Fri, 10 Jul 2015 20:42:12 +0000 (13:42 -0700)]
opkg-build: Ignore tar error due to hardlinks issue when creating ipk files

 If a the number of hard links decreases or increases while creating the tar
 files used for an ipk package, tar fails with error code 1, we use hardlinks
 on package/ and packages-split/ to decrease disk  usage, sometimes other
 parts of the build can cause a change in the link  count, since this happens
 in a controlled environment we can safely ignore the error and continue to
 create the ipk file, fixed some typos from old version.

[YOCTO #7933]

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc: remove EXTRA_OECONF_INTERMEDIATE
Robert Yang [Mon, 6 Jul 2015 10:35:34 +0000 (03:35 -0700)]
gcc: remove EXTRA_OECONF_INTERMEDIATE

The gcc-intermediate had been gone, so remove EXTRA_OECONF_INTERMEDIATE.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agonetbase: add rpcbind as an alias to sunrpc
Li Wang [Fri, 10 Jul 2015 05:35:57 +0000 (13:35 +0800)]
netbase: add rpcbind as an alias to sunrpc

the patch comes from:
https://bugs.archlinux.org/task/20273

Signed-off-by: Li Wang <li.wang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooe/recipeutils.py: get_recipe_upstream_version returns 1.0 when not SRC_URI
Aníbal Limón [Thu, 9 Jul 2015 23:15:43 +0000 (18:15 -0500)]
oe/recipeutils.py: get_recipe_upstream_version returns 1.0 when not SRC_URI

Recipes that don't have SRC_URI means that don't use upstream sources
so returns 1.0.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agointltool: Upgrade 0.50.2 -> 0.51.0
Jussi Kukkonen [Wed, 8 Jul 2015 20:01:23 +0000 (21:01 +0100)]
intltool: Upgrade 0.50.2 -> 0.51.0

* Remove uclibc.patch as the whole localedir guessing code has been
  removed upstream.

* Add patch to fix deprecation warnings (and the resulting broken install paths)
  when using Perl 5.22 (RB)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoharfbuzz: upgrade to 0.9.41
Cristian Iorga [Wed, 8 Jul 2015 17:57:53 +0000 (20:57 +0300)]
harfbuzz: upgrade to 0.9.41

Fix hb-coretext with trailing whitespace in right-to-left.
New API: hb_buffer_reverse_range().
Allow implementing atomic ops in config.h.
Fix hb_language_t in language bindings.
Misc fixes.

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclasses/logging: make shell message functions output to the console
Paul Eggleton [Fri, 10 Jul 2015 13:56:03 +0000 (14:56 +0100)]
classes/logging: make shell message functions output to the console

Use the FIFO that is now set up when executing tasks within BitBake to
make bbdebug/bbnote/bbwarn/bbplain/bberror/bbfatal output to the console
through BitBake's UI (as their python counterparts do) instead of only
outputting to the task log.

Note that this requires the corresponding change in BitBake that creates
the FIFO; without it such messages will end up in a file where the FIFO
should have been (but won't cause any other ill effects).

Remainder of the fix for [YOCTO #5275].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoqt4: fixes for sed command
Robert Yang [Fri, 10 Jul 2015 07:14:58 +0000 (00:14 -0700)]
qt4: fixes for sed command

* There is no $$QT_BUILD_TREE/bin/lrelease in any .pro file, so remove
  the sed command.
* Only translations/translations.pro has "qtPrepareTool(LRELEASE", so
  use the file name directly rather than find all the .pro files.
* The SEDME in linux.conf had been gone in 2010, and no
  '-Wl,-rpath-link' in linux.conf either, so remove the sed commands.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocups: remove invalid sed command
Robert Yang [Fri, 10 Jul 2015 07:14:57 +0000 (00:14 -0700)]
cups: remove invalid sed command

There is no STRIP in Makedefs, no serial in backend/Makefile either, so
remove the sed commands.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoperf: remove invalid sed command
Robert Yang [Fri, 10 Jul 2015 07:14:56 +0000 (00:14 -0700)]
perf: remove invalid sed command

The current kernel supports WERROR now, and there is no Werror in
tools/perf/Makefile, remove both sed commands.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython-pygtk: remove invalid sed command
Robert Yang [Fri, 10 Jul 2015 07:14:55 +0000 (00:14 -0700)]
python-pygtk: remove invalid sed command

* There is no 'tests docs' in Makefile.am any more, so remove:
    sed -i 's:tests docs:tests:' ${S}/Makefile.am
* Remove the invalid sed command in do_install_append, only the one for
  pygtk-demo is needed.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython: remove invalid sed command
Robert Yang [Fri, 10 Jul 2015 07:14:54 +0000 (00:14 -0700)]
python: remove invalid sed command

There is no ccache in Makefile any more.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoperl: remove invalid sed command
Robert Yang [Fri, 10 Jul 2015 07:14:53 +0000 (00:14 -0700)]
perl: remove invalid sed command

There is no match of sed pattern any more.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agomdadm: remove do_configure_prepend
Robert Yang [Fri, 10 Jul 2015 07:14:52 +0000 (00:14 -0700)]
mdadm: remove do_configure_prepend

There is no '.*ansidecl.h.*/d' in sha1.h any more.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorpm: remove invalid sed command
Robert Yang [Fri, 10 Jul 2015 07:14:51 +0000 (00:14 -0700)]
rpm: remove invalid sed command

There is no __check_files in rpm/macros any more, so remove the sed
command.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoqemu: remove invalid sed command
Robert Yang [Fri, 10 Jul 2015 07:14:50 +0000 (00:14 -0700)]
qemu: remove invalid sed command

The sed command was used for editting to code added by
linker-flags.patch, but the patch had been gone in 2013, and verified
that there is no -lX11 in Makefile.target, so remove the
sed command.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoglibc-initial: remove invalid sed command
Robert Yang [Fri, 10 Jul 2015 07:14:49 +0000 (00:14 -0700)]
glibc-initial: remove invalid sed command

There is no "{ (exit 1); exit 1; }; }" in configure any more, and also
remove chmod since sed command is removed.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoopkg: remove do_configure_prepend
Robert Yang [Fri, 10 Jul 2015 07:14:48 +0000 (00:14 -0700)]
opkg: remove do_configure_prepend

There is no -Werror in libopkg/Makefile.am any more.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoelfutils 0.163: remove do_configure_prepend
Robert Yang [Fri, 10 Jul 2015 07:14:47 +0000 (00:14 -0700)]
elfutils 0.163: remove do_configure_prepend

It is derived from elfutils 0.148, but 0.162 doesn't need them, it
doesn't need i386_dis.h or x86_64_dis.h either, there are the same two
files in the source, so move elfutils/i386_dis.h to
elfutils-0.148/i386_dis.h and elfutils/x86_64_dis.h to
elfutils-0.148/x86_64_dis.h for elfutils 0.148 only.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoi2c-tools: uprev to 3.1.2
Randy MacLeod [Wed, 8 Jul 2015 23:36:28 +0000 (19:36 -0400)]
i2c-tools: uprev to 3.1.2

The only changes based on the CHANGES file are:
  decode-dimms: Fix DDR3 extended temp range refresh rate decoding
  py-smbus: Add support for python 3
The python3 changes use python3 as the default and 2 as the fallback.
py-smbus is not currently built so no python changes have been made.

The local copy of Module.mk is unchanged aside from moving it to
a directory that is not version specific to avoid uprev noise.

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agognome-icon-theme: inherit allarch
Ross Burton [Wed, 8 Jul 2015 21:44:58 +0000 (22:44 +0100)]
gnome-icon-theme: inherit allarch

The intltool 0.51 doesn't do compile tests in the autoconf macros, so this
recipe can be allarch again.

Remove dependency on target glib-2.0, it doesn't appear to be required.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoarchiver.bbclass: add do_deploy_all_archives
Patrick Ohly [Thu, 9 Jul 2015 08:35:26 +0000 (10:35 +0200)]
archiver.bbclass: add do_deploy_all_archives

When working specifically on source archiving, it is useful
to trigger that for all recipes required by something like an
image recipe, without actually having to build that.

"bitbake -c deploy_all_archives <target>" does that now.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopopulate_sdk_base.bbclass: don't inherit toolchain-scripts.bbclass
Robert Yang [Thu, 9 Jul 2015 08:49:10 +0000 (01:49 -0700)]
populate_sdk_base.bbclass: don't inherit toolchain-scripts.bbclass

Fixed when enable multilib:
require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "x86"

$ bitbake core-image-minimal
No lib32 package should be built since we don't build
lib32-core-image-minimal, but a lot them are built:
lib32-opkg-utils
lib32-cryptodev-linux
lib32-sqlite3
lib32-libtool-cross
lib32-ncurses
lib32-db
lib32-diffutils
lib32-zlib
lib32-gcc-cross-i686
lib32-gcc-cross-initial-i686
lib32-flex
lib32-libgcc-initial
lib32-libffi
lib32-linux-libc-headers
lib32-expat
lib32-openssl
lib32-glibc
lib32-binutils-cross-i686
lib32-gcc-runtime

The are introduced by toolchain-scripts.bbclass' anonymous function (the
MULTILIB_VARIANTS), but it doesn't need toolchain-scripts.bbclass, in
fact, so remove it to fix the problem.

[YOCTO #7961]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuildtools-tarball: Add inherit toolchain-scripts
Richard Purdie [Fri, 10 Jul 2015 21:31:32 +0000 (22:31 +0100)]
buildtools-tarball: Add inherit toolchain-scripts

The core class used to have this inherit but its being phased out, add
the inherit directly where we need it instead.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclutter-gtk-1.0: Upgrade 1.4.4 -> 1.6.2
Jussi Kukkonen [Thu, 9 Jul 2015 07:52:46 +0000 (10:52 +0300)]
clutter-gtk-1.0: Upgrade 1.4.4 -> 1.6.2

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoclutter-1.0: Upgrade 1.20.0 -> 1.22.4
Jussi Kukkonen [Thu, 9 Jul 2015 07:52:45 +0000 (10:52 +0300)]
clutter-1.0: Upgrade 1.20.0 -> 1.22.4

* Update test TAP output patch

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocogl-1.0: Upgrade 1.18.2 -> 1.20.0
Jussi Kukkonen [Thu, 9 Jul 2015 07:52:44 +0000 (10:52 +0300)]
cogl-1.0: Upgrade 1.18.2 -> 1.20.0

* Backport patch that fixes build with GLES2

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoxproto: Upgrade 7.0.27 -> 7.0.28
Jussi Kukkonen [Thu, 9 Jul 2015 07:52:42 +0000 (10:52 +0300)]
xproto: Upgrade 7.0.27 -> 7.0.28

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc-5: Backport patches for -Wno-narrowing behaviour fixes
Khem Raj [Thu, 9 Jul 2015 17:52:39 +0000 (10:52 -0700)]
gcc-5: Backport patches for -Wno-narrowing behaviour fixes

Chromium/CEF reveals these warnings which are then treated as errors
which has been fixed on gcc_5 branch upsteam. We backport the relevant
commits

Change-Id: I088a1480d49cdb439c72f0e159bee6de8ba94258
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc-4.9: Upgrade to 4.9.3
Khem Raj [Thu, 9 Jul 2015 17:52:38 +0000 (10:52 -0700)]
gcc-4.9: Upgrade to 4.9.3

Drop upsteamed patch for
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66483 which is already in
4.9.3

rename 0063-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch
to 0062-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch to
keep the sequence

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobluez5: upgrade to 5.32
Cristian Iorga [Thu, 9 Jul 2015 14:28:10 +0000 (17:28 +0300)]
bluez5: upgrade to 5.32

Mostly a bug fix release.

Fixes in several different areas, including OPP,
ATT and advertising (instance number handling in particular).
Fix for handling a sudden disconnect when a connection setup
process hasn’t yet completed.
New feature: ability to select between letting the stack
handle ATT security elevation or doing the respective
error handling in higher layers.

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/sstatetests: Add NATIVELSB sstate signature equivalence test
Richard Purdie [Fri, 10 Jul 2015 13:07:25 +0000 (14:07 +0100)]
oeqa/sstatetests: Add NATIVELSB sstate signature equivalence test

The sstate checksums should be independent of whichever NATIVELSBSTRING is
detected. Add an automated QA test which tests this using bitbake -S.

To make this possible, we need to be able to override the value of
NATIVELSBSTRING so make a small change to allow this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool/append: Fix selftest failure with multilib
Richard Purdie [Fri, 10 Jul 2015 13:12:46 +0000 (14:12 +0100)]
recipetool/append: Fix selftest failure with multilib

If you have multilib enabled, it finds lib32-base-files instead of
base-files for test_recipetool_appendfile_basic causing a test
failure. Add a fix for this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolib/oe/recipeutils: Ensure order of data store doesn't influence the result
Richard Purdie [Fri, 10 Jul 2015 13:11:16 +0000 (14:11 +0100)]
lib/oe/recipeutils: Ensure order of data store doesn't influence the result

The order of the keys from the data store is not prescribed. If
target_datadir comes before datadir the selftests fail since the 'wrong'
variable is used for substitutions. This highlights an issue with the
replace_dir_vars() function. Fix this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agowic: Set default set of bitbake variables
Ed Bartosh [Fri, 10 Jul 2015 11:08:26 +0000 (14:08 +0300)]
wic: Set default set of bitbake variables

Set default set of bitbake variables to the set of variables
for the first parsed image.

This allows wic to find proper bitbake varibale values
if it's called with '-e <image>' even without specifying
image in the call of get_bitbake_var.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoopenssl: upgrade to 1.0.2d
Jan Wetter [Thu, 9 Jul 2015 15:33:48 +0000 (17:33 +0200)]
openssl: upgrade to 1.0.2d

This upgrade fixes CVE-2015-1793
Removed openssl-fix-link.patch. The linking issue has been fixed in openssl.

Signed-off-by: Jan Wetter <jan.wetter@mikrom.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibtool: Fix regression from previous commit
Richard Purdie [Thu, 9 Jul 2015 16:52:44 +0000 (17:52 +0100)]
libtool: Fix regression from previous commit

Commit http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=f44aa10ec122df309d9810d4d25fbb8f799107d2
inadvertently moved the m4 macros to the -dev package. These need to be
in the main package since libtoolize is useless without them.

Move them back (as the commented code implies was always needed)

[YOCTO #7889]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotestimage: Add support for test suites manifest files
zjh [Fri, 3 Jul 2015 09:32:35 +0000 (17:32 +0800)]
testimage: Add support for test suites manifest files

Allow the list of TEST_SUITES to be read from a list of manifest files
in the TEST_SUITES_MANIFEST variable.

[YOCTO #7848]

Signed-off-by: zjh <junhuix.zhang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotestimage: Support full TC path such oeqa.runtime.pnp.get_memory_size in TEST_SUITES
zjh [Tue, 23 Jun 2015 07:54:26 +0000 (15:54 +0800)]
testimage: Support full TC path such oeqa.runtime.pnp.get_memory_size in TEST_SUITES

If a TC name start with "oeqa", it is thought as a full TC path. if not,
follow original logic (assume under oeqa.runtime)

For example:

TEST_SUITES = "oeqa.runtime.pnp.get_memory_size oeqa.runtime.sanity.reboot"

will run these two case when bitbake -c testimage

[YOCTO #7834]

Signed-off-by: zjh <junhuix.zhang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobootchart2: add runtime dependency
Roy Li [Wed, 1 Jul 2015 01:54:14 +0000 (09:54 +0800)]
bootchart2: add runtime dependency

Bootchartd needs the command lsb_release and pidof to run, pidof maybe
provided by sysvinit or procpus;
To native bootchart2, only pybootchartgui is used, and which is not needed
both pidof and lsb_release

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/selftest: Added 2 testcases and updated setup for other two in imagefeatures.
Daniel Istrate [Tue, 7 Jul 2015 11:36:58 +0000 (14:36 +0300)]
oeqa/selftest: Added 2 testcases and updated setup for other two in imagefeatures.

Automated 2 oe-selftest testcases:
- 1116: Check if clutter image can be built
- 1117: Check Wayland support in image

Updated setup for test_efi_gummiboot_images_can_be_build and
test_wic_command_can_create_efi_gummiboot_installation_images
to accomodate latest wic changes.

Signed-off-by: Daniel Istrate <daniel.alexandrux.istrate@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosystemd: add PACKAGECONFIG selinux
Kai Kang [Wed, 8 Jul 2015 06:26:01 +0000 (14:26 +0800)]
systemd: add PACKAGECONFIG selinux

Add PACKAGECONFIG 'selinux' for systemd. debug-shell.service starts
different shell according whether selinux is enabled.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoinitscripts: add /sbin/sushell for systemd service debug-shell
Kai Kang [Wed, 8 Jul 2015 06:26:00 +0000 (14:26 +0800)]
initscripts: add /sbin/sushell for systemd service debug-shell

Add file /sbin/sushell for systemd service debug-shell which starts with
/bin/sushell when SELinux is enabled. Copy and add sushell file from
Fedora 22.

Add runtime dependency bash as well when systemd is enabled to eliminate
QA warning:

WARNING: QA Issue: /sbin/sushell_initscripts contained in package initscripts
requires /bin/bash, but no providers found in its RDEPENDS [file-rdeps]

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoopkg-build: Ignore tar error due to hardlinks issue when creating ipk files
Alejandro Hernandez [Mon, 6 Jul 2015 10:17:19 +0000 (10:17 +0000)]
opkg-build: Ignore tar error due to hardlinks issue when creating ipk files

If a the number of hard links decreases or increases while creating
the tar files used for an ipk package, tar fails with error code 1,
if this is the case we ignore the error and continue to create the ipk file

[YOCTO #7933]

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocoreutils: upgrade to 8.24
Chen Qi [Tue, 7 Jul 2015 03:08:51 +0000 (11:08 +0800)]
coreutils: upgrade to 8.24

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoqemu: fix CVE-2015-3209
Kai Kang [Tue, 7 Jul 2015 09:43:02 +0000 (17:43 +0800)]
qemu: fix CVE-2015-3209

Backport patch to fix CVE-2015-3209.

http://git.qemu.org/?p=qemu.git;a=commit;h=9f7c594

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorpm: disable external key server
yzhu1 [Wed, 8 Jul 2015 03:30:57 +0000 (11:30 +0800)]
rpm: disable external key server

When RPM experiences a signed package, with a signature that it does NOT know.
By default it will send the -fingerprint- (and only the 16 digit fingerprint)
to an external HKP server, trying to get the key down.

This is probably not a reasonable default behavior for the system to do,
instead it should simply fail the key lookup.  If someone wants to enable the
HKP server it's easy enough to do by enabling the necessary macros.

Signed-off-by: yzhu1 <yanjun.zhu@windriver.com>
Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogdb: Fix detection of 64-bit PPC inferior in gdbserver
Yuanjie Huang [Wed, 8 Jul 2015 03:15:11 +0000 (11:15 +0800)]
gdb: Fix detection of 64-bit PPC inferior in gdbserver

Fix 64-bit detection according to PowerISA Boot III-S.

https://sourceware.org/ml/gdb-patches/2014-12/msg00239.html
Written by: Yao Qi <yao@codesourcery.com>

Signed-off-by: Yuanjie Huang <yuanjie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython-smartpm: 1.4.1 -> 1.5
Robert Yang [Wed, 8 Jul 2015 07:23:48 +0000 (00:23 -0700)]
python-smartpm: 1.4.1 -> 1.5

* Remove the following patches since the are already in the source:
smart-config-ignore-all-recommends.patch
smart-conflict-provider.patch
smart-dflags.patch
smart-filename-NAME_MAX.patch
smart-flag-exclude-packages.patch
smart-flag-ignore-recommends.patch
smart-metadata-match.patch
smart-multilib-fixes.patch
smart-rpm-extra-macros.patch
smart-rpm-md-parse.patch
smart-rpm-root.patch
smart-tmpdir.patch
smart-yaml-error.patch

* Update the following patches, part of the code are already in the
  source:
smart-attempt.patch
smart-improve-error-reporting.patch
smart-recommends.patch
smartpm-rpm5-nodig.patch

* Use github and git repo as the SRC_URI.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoelfutils: 0.162 -> 0.163
Robert Yang [Wed, 8 Jul 2015 07:23:47 +0000 (00:23 -0700)]
elfutils: 0.162 -> 0.163

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoless: 471 -> 478
Robert Yang [Wed, 8 Jul 2015 07:23:46 +0000 (00:23 -0700)]
less: 471 -> 478

* Remove backport patch 0001-Fix-possible-buffer-overrun-with-invalid-UTF-8.patch.
* The LICENSE's checksum changed because of year changed, the contents
  are the same.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agonfs-utils: fix to start nfs-server correctly in systemd
Chen Qi [Wed, 8 Jul 2015 08:52:45 +0000 (16:52 +0800)]
nfs-utils: fix to start nfs-server correctly in systemd

Add /etc/modules-load.d/nfsd.conf so that the system loads nfsd at start-up.

Add proc-fs-nfsd.mount systemd unit file because it's needed for nfs server
to start correctly.

After this change, in a systemd based image, we can use `systemctl start
nfs-server' to start the nfs server and things would work correctly.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoltp: Add inhibit of split
Yue Tao [Wed, 8 Jul 2015 09:01:07 +0000 (17:01 +0800)]
ltp: Add inhibit of split

With the recent change to allow strip and split of packages
to be controlled seperately, ltp will sometimes fail to build
properly. So in addition to the existing inhibit strip, we
also want to inhibit split.

Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosystemd: fix immediate unmount of mountpoints not in fstab
Joshua Lock [Wed, 8 Jul 2015 09:35:55 +0000 (10:35 +0100)]
systemd: fix immediate unmount of mountpoints not in fstab

Systemd 219 immediately unmounts any mounts which don't exist
in fstab. See FDo bug #89383:
https://bugs.freedesktop.org/show_bug.cgi?id=89383

Patch from Fedora:
http://pkgs.fedoraproject.org/cgit/systemd.git/commit/?h=f22&id=9bbe0e92dc59d5a42258c729b105a7d9901eb35e

Signed-off-by: Joshua Lock <joshua.lock@collabora.co.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoreport-error: expand all variables
Ross Burton [Wed, 8 Jul 2015 10:53:44 +0000 (11:53 +0100)]
report-error: expand all variables

BUILDNAME is now composed from ${DATE} and ${TIME} so needs to be expanded to
useful.  Whilst fixing this some other variables were explicitly not expanded
for no clear reason, so expand those too.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobitbake.conf: Add BUILD_ARCH and SSTATE_PKGARCH to HASHBASE whitelist
Richard Purdie [Wed, 8 Jul 2015 11:57:39 +0000 (12:57 +0100)]
bitbake.conf: Add BUILD_ARCH and SSTATE_PKGARCH to HASHBASE whitelist

As Chris Larson points out in the bug, "BUILD_ARCH changing doesn't change
native/cross sstate checksums, because its calculated in ${@}, so just its
unexpanded form is in the signature. But BUILD_ARCH ends up included in the
sstate filenames, so changes to BUILD_ARCH will result in rebuilds of
native/cross but not rebuilds of the target recipes which depend on
them, which is just what we want."

However it does mean we can't easily test 32 and 64 bit signatures. In order
to make the tests work, we need to add BUILD_ARCH to the HASHBASE whitelist.
BUILD_ARCH is used in the workdir paths and so on so changing it does still
rebuild when we need it to.

With improvements to function dependency tracking, a dependency on SSTATE_PKGARCH
was also introduced causing problems for 32/64 bit build signature equivalence.
Since this is reflected in the sstate filenames, we can safely whitelist this too.

[YOCTO #5970]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopseudo: Exclude SITEINFO_BITS from checksums
Richard Purdie [Wed, 8 Jul 2015 11:56:44 +0000 (12:56 +0100)]
pseudo: Exclude SITEINFO_BITS from checksums

We really want the same sstate checksums for pseudo-native on 32 and 64 bit platforms
but the use of SITEINFO_BITS prevents this. Since other things would change if
the bit size changes, we can safely exclude this variable and rely on others
(e.g. BUILD_ARCH included in WORKDIR) to handle this.

[YOCTO #5970]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/sstatetests: Add test for comparing 32 and 64 bit sstate checksums
Richard Purdie [Wed, 8 Jul 2015 11:56:13 +0000 (12:56 +0100)]
oeqa/sstatetests: Add test for comparing 32 and 64 bit sstate checksums

The sstate checksums for both native and target should not vary whether
they're built on a 32 or 64 bit system. Rather than requiring two different
build machines and running a builds, override the variables calling uname()
manually and check using bitbake -S.

[YOCTO #5970]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agooeqa/bbtests: Fix to ensure DL_DIR is set
Richard Purdie [Wed, 8 Jul 2015 11:55:28 +0000 (12:55 +0100)]
oeqa/bbtests: Fix to ensure DL_DIR is set

write_config overwrites the config rather than appends to it, so
ensure we write both variables in one go.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agofile: fix long-options
Robert Yang [Mon, 6 Jul 2015 10:00:35 +0000 (03:00 -0700)]
file: fix long-options

Backport two patches to fix bug with long options:
* 0001-Fix-bug-with-long-options-and-explicitly-number-them.patch
* 0002-fix-bug-with-5.23-long-options.patch

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoca-certificates: remove Debianism in run-parts invocation
Ross Burton [Mon, 6 Jul 2015 14:19:41 +0000 (15:19 +0100)]
ca-certificates: remove Debianism in run-parts invocation

ca-certificates comes from Debian but not all distros (i.e. Fedora) have a
leaner run-parts that doesn't support the -- separator between options and
paths, which causes this error:

| Running hooks in [...]/rootfs/etc/ca-certificates/update.d...
| [...]/usr/sbin/update-ca-certificates: line 194: Not: command not found

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoimage_types.bbclass: add support for multiple ubi sizes
Pushpal Sidhu [Sat, 25 Apr 2015 00:32:22 +0000 (17:32 -0700)]
image_types.bbclass: add support for multiple ubi sizes

Add new FSTYPE called 'multiubi'. This new type has the ability to
create multple ubi's, something that's extremely useful on boards that
can include varying flash sizes (e.g. 256MB vs 2GB).

Because we don't want to reuse code, I extracted the mkfs and ubinize
commands out to a new function that will handle the creation of both
multiple ubi's, as well as the 'ubi' FSTYPE (so as not to break current
boards).

Due to the single processes nature of the OE when doing it's
'create_image', this new multiubi_mkfs function also creates it's own
symlinks as well as cleans up it's own cfg file.

Signed-off-by: Pushpal Sidhu <psidhu@gateworks.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosubversion_1.8.13.bb: Regex modified to allow '-D' in paths
Jose Lamego [Fri, 3 Jul 2015 07:34:50 +0000 (07:34 +0000)]
subversion_1.8.13.bb: Regex modified to allow '-D' in paths

Modified the regex sed in serf.m4 to allow the use of '-D' characters
in project folder names without having compilation error from
subversion-native.

[YOCTO #7874]

Signed-off-by: Jose Lamego <jose.a.lamego@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agomklibs-native: two fixes
Yuanjie Huang [Fri, 3 Jul 2015 05:42:31 +0000 (13:42 +0800)]
mklibs-native: two fixes

1. Show GNU unique symbols as provided symbols
2. Remove dependency on dpkg
Both have been submitted to mklibs maillist:
https://lists.debian.org/debian-boot/2015/07/msg00018.html
https://lists.debian.org/debian-boot/2015/07/msg00004.html

Signed-off-by: Yuanjie Huang <yuanjie.huang@windriver.com>
Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosecurity_flags: eliminate FORTIFY_SOURCE for debug builds
Joe Slater [Thu, 2 Jul 2015 09:10:51 +0000 (17:10 +0800)]
security_flags: eliminate FORTIFY_SOURCE for debug builds

If -D_FORTIFY_SOURCE=2 is included in CFLAGS for debug builds,
many warnings will be generated and some packages will fail to
build.  So, only conditionally include it.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoUpdate alternatives of man pages
Kai Kang [Fri, 3 Jul 2015 07:23:49 +0000 (15:23 +0800)]
Update alternatives of man pages

Update alternatives of man pages in several packages.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoman: replace ',' with '#'
Yue Tao [Fri, 3 Jul 2015 08:53:56 +0000 (16:53 +0800)]
man: replace ',' with '#'

Sometimes, the parameters of CC/BUILD_CC contains the ',', which
cause the sed command failed, so replace the ',' with '#'

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 agoldconfig-native: Add 64-bit flag for ELF64 entries
Yuanjie Huang [Fri, 3 Jul 2015 01:48:37 +0000 (09:48 +0800)]
ldconfig-native: Add 64-bit flag for ELF64 entries

ldconfig-native was grepped from an old version of glibc, and its output
lacks neccessary 64bit flag in entries.
Due to this defect, ctypes.util.find_library() python function fails to
detect any library due to the old file format that ldconfig-native
creates. This fix sets architecture-dependent 64bit flags for 64-bit ELF.

Since the host's elf.h may not have definition for new AArch64 machine
type, a work-around is added to correctly flag 64-bit ARM libraries.

Signed-off-by: Yuanjie Huang <yuanjie.huang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agocombo-layer: modified to generate better commit messages.
Puustinen, Ismo [Fri, 3 Jul 2015 11:36:15 +0000 (14:36 +0300)]
combo-layer: modified to generate better commit messages.

This patch includes support for a global section in combo-layer.conf
called [combo-layer-settings]. Supported in this section is key
"commit_msg"; its value is the template for the git commit message
that updates the last_revision. The template can include substitution
for the updated component list: ${components}. The substituted value
will either be a comma-separated list of components or "all components",
if combo-layer was invoked without component list argument.

If the key is not present, the old default value is used for the commit
message.

Configuration file example:

[combo-layer-settings]
commit_msg = pulled in the latest changes for ${components}.

Signed-off-by: Ismo Puustinen <ismo.puustinen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agomesa-demos: rename clear
Li xin [Fri, 3 Jul 2015 09:53:42 +0000 (17:53 +0800)]
mesa-demos: rename clear

ncurses have already provided clear,so rename it to clear.mesa-demos.

[ RB - check that clear exists before moving ]

Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibdrm: remove git recipe, merge inc
Ross Burton [Fri, 3 Jul 2015 10:18:00 +0000 (11:18 +0100)]
libdrm: remove git recipe, merge inc

The git recipe hasn't been touched since 2012 and is out of date, so simplify
the recipe by removing the git form and merging the remaining bb and inc file.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolsbinitscripts: avoid exit 1 in functions script
Chen Qi [Fri, 3 Jul 2015 06:32:58 +0000 (14:32 +0800)]
lsbinitscripts: avoid exit 1 in functions script

If 'rc.debug' is not in kernel parameters, the functions script would
exit 1 which causes other init scripts that source it exit 1. This is
not what we want.

[YOCTO #7948]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorpm: check if the argument(rootpath) exists or be writable
Zhixiong Chi [Wed, 1 Jul 2015 07:54:21 +0000 (15:54 +0800)]
rpm: check if the argument(rootpath) exists or be writable

When user execute the command "rpm -qai --root=$dir",if $dir doesn't
exist or is unwritable as result of making a typo in rootpath,then
it will create dirent $dir and subdirectory.
So we should add the check function to fix it before creating relational
subdirectory,and warn the incorrect rootpath to user. It just checks the
rootpath reasonableness when the user input the argument(--root=/-r=).

Signed-off-by: Zhixiong Chi <zchi@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoimage_types_uboot: remove the middle file
Yue Tao [Thu, 2 Jul 2015 07:18:59 +0000 (15:18 +0800)]
image_types_uboot: remove the middle file

The .gz, .bz2 or .lzma are middle files for making gz.u-boot,
bz2.u-boot, or lzma.u-boot. It should be removed once the final
image is generated. Otherwise, even RM_OLD_IMAGE = 1, it can't
be removed, moreover more and more middle files are genrated via
'bitbake *-image'

Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibav: update i586 TARGET_ARCH test to also handle i686
Andre McCurdy [Tue, 30 Jun 2015 22:28:50 +0000 (15:28 -0700)]
libav: update i586 TARGET_ARCH test to also handle i686

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolsb: update i586 TARGET_ARCH tests to also handle i686
Andre McCurdy [Tue, 30 Jun 2015 22:28:49 +0000 (15:28 -0700)]
lsb: update i586 TARGET_ARCH tests to also handle i686

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogcc: update i586 TARGET_ARCH tests to also handle i686
Andre McCurdy [Tue, 30 Jun 2015 22:28:48 +0000 (15:28 -0700)]
gcc: update i586 TARGET_ARCH tests to also handle i686

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agomultilib_global: expand multilib pref values properly
Christopher Larson [Wed, 1 Jul 2015 15:18:21 +0000 (08:18 -0700)]
multilib_global: expand multilib pref values properly

This ensures that in cases where the preference value changes when the
multilib override is applied, we correctly expand it in that context.

For example, for `PREFERRED_PROVIDER_${TARGET_PREFIX}gcc
= "gcc-external-cross-${TARGET_ARCH}"`, when it sets the prefixed version of
this, we want TARGET_ARCH expanded with the multilib applied, otherwise the
arch suffix will be incorrect for that context.

We ran into this trying to use preferences in meta-sourcery along with
multilibs. We worked around it there via PNBLACKLIST, but this fix should
still go into the core.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agocore-image-kernel-dev: Define a correct subset of TEST_SUITES to run for this image
Saul Wold [Tue, 30 Jun 2015 22:48:02 +0000 (15:48 -0700)]
core-image-kernel-dev: Define a correct subset of TEST_SUITES to run for this image

Since this image can be built with both poky and poky-lsb, ensure the correct
tests are run in both cases, the auto detection does not quite work right in the
poky-lsb case since not all the Posix cmdline utilites are added. Add connman and
connman test for network sanity

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoperl: Undefine finitel for musl
Khem Raj [Thu, 2 Jul 2015 03:52:23 +0000 (20:52 -0700)]
perl: Undefine finitel for musl

finitel is not implemented in musl and since its not posix, it wont be
implemented in future too
Fixes perl 5.22 build error

perl/5.22.0-r0/perl-5.22.0/sv.c:12135: undefined reference to `finitel'
 | collect2: error: ld returned 1 exit status

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agovalgrind: build with altivec only if it supported
Kai Kang [Thu, 2 Jul 2015 08:40:51 +0000 (16:40 +0800)]
valgrind: build with altivec only if it supported

Signed-off-by: Ting Liu <ting.liu@freescale.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Cherry-pick from branch dizzy.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosquashfs-tools: upgrade to newer revision from git
Martin Jansa [Thu, 4 Jun 2015 12:44:37 +0000 (14:44 +0200)]
squashfs-tools: upgrade to newer revision from git

* 4.3 release has nasty hard to reproduce bug in LZO compression
  which in few cases results in one of these 2 errors:
  1) Lseek failure when creating the FS:
    | writer: Lseek on destination failed because Bad file descriptor, offset=0x1f72306
    | FATAL ERROR:Probably out of space on output filesystem
    | Parallel mksquashfs: Using 32 processors
    | Creating 4.0 filesystem on rootfs.squashfs, block size 262144.
    ..
  2) failing to read the filesystem in runtime, kernel 3.16.0 showing
    errors like this:
    [   46.720568] SQUASHFS error: lzo decompression failed, data probably corrupt
    [   46.730003] SQUASHFS error: squashfs_read_data failed to read block 0x1f72305
    [   46.740076] SQUASHFS error: Unable to read fragment cache entry [1f72305]
  it's fixed in upstream git repo:
  https://github.com/plougher/squashfs-tools/commit/de03266983ceb62e5365aac84fcd3b2fd4d16e6f
  https://github.com/plougher/squashfs-tools/commit/9c1db6d13a51a2e009f0027ef336ce03624eac0d
  the official repo is:
  https://git.kernel.org/cgit/fs/squashfs/squashfs-tools.git
  but author's github is kept in sync so we can use just that

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>