]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
9 years agolttng-tools: Revert wrong enforcement of Python 3.0 use
Otavio Salvador [Fri, 11 Dec 2015 17:32:56 +0000 (15:32 -0200)]
lttng-tools: Revert wrong enforcement of Python 3.0 use

The code has support and checks for Python 2 and Python 3 however
during the development of 2.7 release a requirement for Python 3 was
included.

The Python 3 is required for runtime tests to run however those are
not in use now so we can just disable the enforcement for now.

This reverts the commit restoring the Python 2 support.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoattr: Add patch to account for use of internal glibc header
Khem Raj [Thu, 19 Nov 2015 01:07:21 +0000 (01:07 +0000)]
attr: Add patch to account for use of internal glibc header

based on suggestions on musl FAQ
http://wiki.musl-libc.org/wiki/FAQ

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibpam: Fix build with musl
Khem Raj [Thu, 19 Nov 2015 01:04:49 +0000 (01:04 +0000)]
libpam: Fix build with musl

Define strndupa if not available in libc additionally fix headers
to explicitly needed include files which glibc was including indirectly

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoopenssl: Add musl configuration support
Khem Raj [Thu, 19 Nov 2015 01:03:14 +0000 (01:03 +0000)]
openssl: Add musl configuration support

use termios instead of termio

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobusybox: Add config for musl
Khem Raj [Thu, 19 Nov 2015 00:59:33 +0000 (00:59 +0000)]
busybox: Add config for musl

Default config is enabling additional features that dont compile with
musl so lets disable them for musl case

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogettext: Delete libintl.h and charset.alias
Khem Raj [Thu, 19 Nov 2015 00:26:26 +0000 (00:26 +0000)]
gettext: Delete libintl.h and charset.alias

libintl.h is already provided by musl and charset.alias is regenerated
by packages themselves

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosysvinit: Fix build with musl
Khem Raj [Thu, 19 Nov 2015 00:10:03 +0000 (00:10 +0000)]
sysvinit: Fix build with musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agomusl: Add recipe
Khem Raj [Thu, 19 Nov 2015 00:07:58 +0000 (00:07 +0000)]
musl: Add recipe

musl is posix compliant C library for linux

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agomtools: Use proper glibc override to add glibc packages to recommendations
Khem Raj [Wed, 18 Nov 2015 23:26:12 +0000 (23:26 +0000)]
mtools: Use proper glibc override to add glibc packages to recommendations

Helps building mtools on musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosquashfs-tools: Define FNM_EXTMATCH if not defined
Khem Raj [Wed, 18 Nov 2015 23:25:24 +0000 (23:25 +0000)]
squashfs-tools: Define FNM_EXTMATCH if not defined

helps compiling when using musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agomtd-utils: Backport and create patches to support musl
Khem Raj [Wed, 18 Nov 2015 23:24:32 +0000 (23:24 +0000)]
mtd-utils: Backport and create patches to support musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogdb: Fix build with musl
Khem Raj [Wed, 18 Nov 2015 23:23:46 +0000 (23:23 +0000)]
gdb: Fix build with musl

This is a patch that has been submitted upstream as well

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoautoconf: Add musl support
Khem Raj [Wed, 18 Nov 2015 23:23:03 +0000 (23:23 +0000)]
autoconf: Add musl support

Support musl triplets

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogcc: Add support for building musl configuration
Khem Raj [Wed, 18 Nov 2015 17:10:48 +0000 (17:10 +0000)]
gcc: Add support for building musl configuration

Most of these patches are already in gcc 6.0/master but we still need them for
older gcc, they have been tested in meta-musl for quite some time

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogstreamer1.0: Split bash completion information into separate package
Mike Crowe [Thu, 10 Dec 2015 13:59:46 +0000 (13:59 +0000)]
gstreamer1.0: Split bash completion information into separate package

Many targets won't even have bash installed so the completion
information is completely useless. Follow the lead of other recipes and
put it in a separate -bash-completion package.

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoattr: add attr dependency to attr-ptest
Ross Burton [Thu, 10 Dec 2015 15:49:27 +0000 (15:49 +0000)]
attr: add attr dependency to attr-ptest

If attr-ptest is explicitly installed it will fail as attr isn't a dependency.

[ YOCTO #8766 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agovalgrind: import Debian link_tool patch for MIPS
Andre McCurdy [Wed, 9 Dec 2015 18:52:48 +0000 (10:52 -0800)]
valgrind: import Debian link_tool patch for MIPS

Without this patch, valgrind 3.10.1 fails to run on MIPS:

 | root@bcm97425vms:~# valgrind /bin/ls
 | valgrind: mmap(0x400000, 700416) failed in UME with error 22 (Invalid argument).
 | valgrind: this can be caused by executables with very large text, data or bss segments.

Original Debian bug report:

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=777704

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoslang: update upstream URI to (official) jedsoft.org
Alexander Kanavin [Mon, 7 Dec 2015 17:47:17 +0000 (19:47 +0200)]
slang: update upstream URI to (official) jedsoft.org

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosubversion: update to 1.9.2
Alexander Kanavin [Mon, 7 Dec 2015 17:46:49 +0000 (19:46 +0200)]
subversion: update to 1.9.2

Drop backported CVE fix patches
libtool2.patch has been rebased and renamed to 0001-Fix-libtool-name-in-configure.ac.patch
LICENSE checksum has been updated because more 3rd party attributions have been added to it,
it's otherwise still Apache 2.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agojson-c: add manual upstream version check
Alexander Kanavin [Fri, 4 Dec 2015 13:42:13 +0000 (15:42 +0200)]
json-c: add manual upstream version check

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agomirrors: replace references to archive.apache.org
Alexander Kanavin [Fri, 4 Dec 2015 13:40:27 +0000 (15:40 +0200)]
mirrors: replace references to archive.apache.org

archive.apache.org does not contain current releases, only historical ones,
so upstream checks aren't accurate. It's replaced with official mirrors
containing current versions.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agomobile-broadband-provider-info: update to current commit
Alexander Kanavin [Fri, 4 Dec 2015 13:38:12 +0000 (15:38 +0200)]
mobile-broadband-provider-info: update to current commit

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agonspr: update to 4.11
Alexander Kanavin [Fri, 4 Dec 2015 13:37:05 +0000 (15:37 +0200)]
nspr: update to 4.11

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopython-setuptools: update to 18.7.1
Alexander Kanavin [Fri, 4 Dec 2015 13:35:38 +0000 (15:35 +0200)]
python-setuptools: update to 18.7.1

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoopenssl: update to 1.0.2e
Alexander Kanavin [Wed, 9 Dec 2015 13:37:59 +0000 (15:37 +0200)]
openssl: update to 1.0.2e

[YOCTO #8765]
[YOCTO #8758]

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agodropbear.inc: drop legacy CFLAGS and LD tweaks
Andre McCurdy [Tue, 8 Dec 2015 21:42:50 +0000 (13:42 -0800)]
dropbear.inc: drop legacy CFLAGS and LD tweaks

The CFLAGS and LD tweaks in dropbear.inc date back to 2005/2006 and
whatever issue they worked around back then seems to have been fixed
in the latest versions of dropbear.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agodropbear: update 2015.70 -> 2015.71
Andre McCurdy [Tue, 8 Dec 2015 21:42:49 +0000 (13:42 -0800)]
dropbear: update 2015.70 -> 2015.71

2015.71 - 3 December 2015

- Fix "bad buf_incrpos" when data is transferred, broke in 2015.69

- Fix crash on exit when -p address:port is used, broke in 2015.68

- Fix building with only ENABLE_CLI_REMOTETCPFWD given, patch from Konstantin Tokarev

- Fix bad configure script test which didn't work with dash shell, patch from Juergen Daubert,
  broke in 2015.70

- Fix server race condition that could cause sessions to hang on exit,
  https://github.com/robotframework/SSHLibrary/issues/128

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agotexinfo: don't create dependency on INHERIT variable
Martin Jansa [Wed, 9 Dec 2015 08:48:13 +0000 (09:48 +0100)]
texinfo: don't create dependency on INHERIT variable

* we don't want the do_package signature depending on INHERIT variable
* e.g. just adding the own-mirrors causes texinfo to rebuild:
  # bitbake-diffsigs BUILD/sstate-diff/*/*/texinfo/*do_package.sig*
  basehash changed from 015df2fd8e396cc1e15622dbac843301 to 9f1d06c4f238c70a99ccb6d8da348b6a
  Variable INHERIT value changed from
  ' rm_work blacklist blacklist report-error ${PACKAGE_CLASSES} ${USER_CLASSES} ${INHERIT_DISTRO} ${INHERIT_BLACKLIST} sanity'
  to
  ' rm_work own-mirrors blacklist blacklist report-error ${PACKAGE_CLASSES} ${USER_CLASSES} ${INHERIT_DISTRO} ${INHERIT_BLACKLIST} sanity'

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosudo: upgrade to 1.8.15
Fan Xin [Wed, 9 Dec 2015 07:57:54 +0000 (16:57 +0900)]
sudo: upgrade to 1.8.15

1. upgrade to 1.8.15
2. delete patch file due to the bug has been fixed in sudo 1.8.15
(http://bugzilla.sudo.ws/show_bug.cgi?id=708)

Signed-off-by: Fan Xin <fan.xin@jp.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolinux-firmware: update to latest revision bbe4917
Armin Kuster [Tue, 8 Dec 2015 15:57:05 +0000 (07:57 -0800)]
linux-firmware: update to latest revision bbe4917

Update to latest linux-firmware
Fix ar3k license to be QualcommAtheros
Add ath10K firmware package

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobluez5: upgrade to 5.36
Cristian Iorga [Mon, 7 Dec 2015 13:06:03 +0000 (15:06 +0200)]
bluez5: upgrade to 5.36

Backported a fix for a segfault crash.

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosudo: remove libdir INSANE_SKIP
Ross Burton [Tue, 8 Dec 2015 10:52:42 +0000 (10:52 +0000)]
sudo: remove libdir INSANE_SKIP

Now that the libdir check allows libraries in libexecdir, remove INSANE_SKIP.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibsdl: expand PACKAGECONFIG and enable native builds
Ross Burton [Mon, 30 Nov 2015 11:31:14 +0000 (11:31 +0000)]
libsdl: expand PACKAGECONFIG and enable native builds

Use PACKAGECONFIG instead of using logic in DEPENDS and EXTRA_OECONF, adding new
options for PulseAudio, tslib, DirectFB, OpenGL and X11.  Pass
--disable-x11-shared so that it links to the X libraries instead of using
dlopen().

Disable tslib by default as the kernel event input subsystem is generally used.

SDL's OpenGL support requires X11 so check for both x11 and opengl, and merge
the dependencies.

Finally enable native builds, with a minimal PACKAGECONFIG that will build from
oe-core for native and nativesdk.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobuildtools-tarball.bb: 32bit tools need pseudo 32bit library
Juro Bystricky [Thu, 3 Dec 2015 23:09:55 +0000 (15:09 -0800)]
buildtools-tarball.bb: 32bit tools need pseudo 32bit library

"pseudo" does not build 32 bit library by default on 64 bit host, but the
32 bit library is needed when using 32 bit development tools (buildtools-tarball)
running on a 64 bit host. Building of the library can be forced if the
environment variable NO32LIBS is set to "0".

Hence for 32 bit buildtools we export the environment variable NO32LIBS="0"
and NO32LIBS is also added into BB_ENV_EXTRAWHITE (if not already there).

[YOCTO#8581]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorpm: fix file conflicts for MIPS64 N32
Robert Yang [Wed, 2 Dec 2015 11:39:27 +0000 (03:39 -0800)]
rpm: fix file conflicts for MIPS64 N32

The following error can occur:
  smart install libc6-2.22-r0.1@lib32_mips32r2octeon3 libc6-dbg-2.22-r0.1@lib32_mips32r2octeon3
error: file /sbin/ldconfig conflicts between attempted installs of libc6-2.22-r0.1.lib32_mips32r2octeon3 and libc6-2.22-r0.1.octeon3_n32
error: file /sbin/.debug/ldconfig conflicts between attempted installs of libc6-dbg-2.22-r0.1.lib32_mips32r2octeon3 and libc6-dbg-2.22-r0.1.octeon3_n32

This was because:
transactions_color = 001 (ELF32) & 010 (ELF64) & 100 (ELF32 N32 MIPS64)
FColor = Current file color (001) & transaction_color (111)
oFcolor = Previous file color (100) & transaction_color (111)

There are two places where the conflict comparisons occur.  In both places
the 'else' clause was too restrictive (opposite of the 'positive' clause).
This caused the system to only permit a binary comparison - "new preferred" or
"old preferred".  It did not permissing "neither preferred".  By removing the
else comparison the system will now perform a 'last-in-wins' resolution when
"neither is preferred".

Note, if _transaction_color is 3, MIPS64 N32 will be skipped (pretend as
installed).

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorpm: Enable MIPS64 N32 transactions
Mark Hatle [Wed, 2 Dec 2015 11:39:26 +0000 (03:39 -0800)]
rpm: Enable MIPS64 N32 transactions

In a multilib install RPM will break a conflict using the transaction color.
However, by default MIPS64 N32 transactions are not enabled.

This change always enables them.  This is effectively a no-op on non-MIPS
systems, and required if we need to support N32 on MIPS.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobash: fix testcase run-coproc/run-execscript/run-test/run-heredoc failed
Hongxu Jia [Sat, 28 Nov 2015 06:53:40 +0000 (14:53 +0800)]
bash: fix testcase run-coproc/run-execscript/run-test/run-heredoc failed

Add user 'test' to fix the failure of 'the test suite should not
be run as root'(run-execscript and run-test)

Backport test case from git://git.sv.gnu.org/bash.git to fix run-execscript
and run-heredoc

Still failed cases:
FAIL: run-intl
FAIL: run-lastpipe
FAIL: run-trap

YOCTO: 5698

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agocpio: fix test case of symlink-bad-length
Chen Qi [Tue, 1 Dec 2015 02:13:55 +0000 (10:13 +0800)]
cpio: fix test case of symlink-bad-length

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolinux-libc-headers: update default KORG_ARCHIVE_COMPRESSION bz2 -> xz
Andre McCurdy [Tue, 1 Dec 2015 22:08:14 +0000 (14:08 -0800)]
linux-libc-headers: update default KORG_ARCHIVE_COMPRESSION bz2 -> xz

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolinux-libc-headers.inc: remove '-e MAKEFLAGS=' from EXTRA_OEMAKE
Andre McCurdy [Tue, 1 Dec 2015 21:13:03 +0000 (13:13 -0800)]
linux-libc-headers.inc: remove '-e MAKEFLAGS=' from EXTRA_OEMAKE

These OE default make flags are not required for KBuild packages.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogcc-4.9: import patch fixing compilation in thumb mode
Dmitry Eremin-Solenikov [Thu, 26 Nov 2015 16:40:53 +0000 (19:40 +0300)]
gcc-4.9: import patch fixing compilation in thumb mode

Import patch fixing a bug that caused ICE when compiling some packages
(e.g. ICU) in Thumb-1 model.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogcc-5.2: import patch fixing compilation in thumb mode
Dmitry Eremin-Solenikov [Thu, 26 Nov 2015 16:40:52 +0000 (19:40 +0300)]
gcc-5.2: import patch fixing compilation in thumb mode

Import patch fixing a bug that caused ICE when compiling some packages
(e.g. ICU) in Thumb-1 model.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agodropbear: Upgrade 2015.68 -> 2015.70
Jussi Kukkonen [Wed, 2 Dec 2015 12:11:38 +0000 (14:11 +0200)]
dropbear: Upgrade 2015.68 -> 2015.70

Tweak a pam patch to make it apply on current source.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogcc-cross-initial: make dependency on gnu-config-native and autoconf-native explicit
Yuanjie Huang [Fri, 27 Nov 2015 09:31:20 +0000 (17:31 +0800)]
gcc-cross-initial: make dependency on gnu-config-native and autoconf-native explicit

When a project is configure to use sstate cache and has the host tool sysroot
cleaned, gcc-cross-initial may fail to be configured due to lack of
gnu-configize tool.

gcc-cross-initial recipe has autotools dependency inhibited, and the same flag
variable also excludes the gnu-config-native.  Though there is an indirect
dependency through libmpc-native, it's not safe with sstate cache being used.

Moreover, gnu-config-native requires a perl package from autoconf-native to
run, otherwise it will fail with "Can't locate Autom4te/ChannelDefs.pm in @INC"
message.

This patch makes both dependencies explicit for gcc-cross-initial's
configuration.

Signed-off-by: Yuanjie Huang <yuanjie.huang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoweston-init: add a native systemd unit file
Alexander Kanavin [Tue, 1 Dec 2015 15:35:56 +0000 (17:35 +0200)]
weston-init: add a native systemd unit file

Previously weston was started by systemd via a classic init script

[YOCTO #5582]

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopython: Fix cross compiling issue
Jackie Huang [Fri, 27 Nov 2015 10:22:51 +0000 (18:22 +0800)]
python: Fix cross compiling issue

If the target and host have the same type, the system
may try to execute the instructions from the target
version.  This can lead to illegal instructions
as well as the wrong copy of the code running.

Add CROSSPYTHONPATH for PYTHON_FOR_BUILD and export
the correct path to fix it.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoicu: Upgrade 55.1 -> 56.1
Mike Crowe [Fri, 27 Nov 2015 14:50:27 +0000 (14:50 +0000)]
icu: Upgrade 55.1 -> 56.1

Upgrade ICU from v55.1 to v56.1 and backport a later patch that is
necessary to avoid errors during the build.

Signed-off-by: Mike Crowe <mac@mcrowe.com>
9 years agokernel.bbclass: drop unnecessary 'eval' from kernel_do_configure()
Andre McCurdy [Wed, 9 Dec 2015 23:45:03 +0000 (15:45 -0800)]
kernel.bbclass: drop unnecessary 'eval' from kernel_do_configure()

KERNEL_CONFIG_COMMAND will be expanded by bitbake, so can be
used directly in kernel_do_configure()

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoinsane: in libdir test allow libraries in libexecdir
Juro Bystricky [Tue, 8 Dec 2015 10:51:39 +0000 (10:51 +0000)]
insane: in libdir test allow libraries in libexecdir

Some recipes, such as sudo and gcc, put libraries into libexecdir.  Allow this
in the sanity test so that we don't have to whitelist the libdir check.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorootfs.py: Change logic to unistall packages
Mariano Lopez [Thu, 26 Nov 2015 09:34:59 +0000 (09:34 +0000)]
rootfs.py: Change logic to unistall packages

In the current state some of the base utils (update-rc.d,
base-passwd, shadow, and update-alternatives) are unistalled
when there is no package manager in the image. Checking for
previous commits, the unistall of these utils were to be
done in a read-only filesystem.

It is a valid option to have these utils without a package
manager, and also make sense to remove them when building a
read-only filesystem.

This changes the check logic from having a package mananger
to if is a read-only filesystem to remove the utils.

Another change implemented with this patch is that delayed
post installs now doesn't depend if there is a package manager.
Also it is a valid option to have post install scripts without
package manger.

[YOCTO #8235]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/systemd: get runtest target boot time and log
Benjamin Esquivel [Thu, 3 Dec 2015 22:02:27 +0000 (16:02 -0600)]
oeqa/systemd: get runtest target boot time and log

oeqa.runtime.systemd.SystemdJournalTests.test_systemd_boot_time
this test will query the target boot time from journactl and will
print it to the output, if the time is obtained, the test passes

it then compares the boot time against the default systemd's
timeout TimeoutStartSec and if the boot time is greater than the
it will print it too

this test prints the startup time in the test log like:
...
test_systemd_boot_time (oeqa.runtime.systemd.SystemdJournalTests) ...
Startup finished in 6.922s (kernel) + 52.089s (userspace) = 59.011s.

Signed-off-by: Benjamin Esquivel <benjamin.esquivel@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooeqa/systemd: journalctl helper function
Benjamin Esquivel [Thu, 3 Dec 2015 22:02:26 +0000 (16:02 -0600)]
oeqa/systemd: journalctl helper function

a function to request for the journalctl output to the current target
system with l_match_units support

Signed-off-by: Benjamin Esquivel <benjamin.esquivel@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoscripts: oe-selftest Added new features.
Daniel Istrate [Wed, 2 Dec 2015 14:40:53 +0000 (16:40 +0200)]
scripts: oe-selftest Added new features.

[YOCTO #8750] Allow oe-selftest to run custom test suites based on different criteria

1. Can run custom lists of tests based on different criteria:
   --run-tests-by <name|class|module|id|tag> <list of tests|classes|modules|ids|tags>
   eg: --run-tests-by module imagefeatures signing recipetool
       --run-tests-by id 1377 1273 935
       --run-tests-by tag wic sstate bitbake
2. Can list tests based on different criteria:
   --list-tests-by <name|class|module|id|tag> <list of tests|classes|modules|ids|tags>
   eg: --list-tests-by module imagefeatures signing recipetool
       --list-tests-by id 1377 1273 935
       --list-tests-by tag wic sstate bitbake
3. Can list all tags that have been set to test cases:
   --list-tags
   The list of tags should be kept as minimal as possible.
   This helps preview the tags used so far.

   To take advantage of the 'tag' feature:
   - add @tag(feature=<>) to testcases
   eg: @tag(feature='signing') for a single tag
       @tag(feature=(('signing', 'sstate')) or
       @tag(feature=['signing', 'sstate']) for multiple tags

Signed-off-by: Daniel Istrate <daniel.alexandrux.istrate@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agooe-buildenv-internal: preserve existing BB_ENV_EXTRAWHITE
Juro Bystricky [Thu, 3 Dec 2015 23:09:56 +0000 (15:09 -0800)]
oe-buildenv-internal: preserve existing BB_ENV_EXTRAWHITE

According to the BitBake User Manual the environment variable BB_ENV_EXTRAWHITE
specifies an additional set of variables to allow through (whitelist) from the
external environment into BitBake's datastore. However, running:

  $ source oe-init-build-env build-name

will overwrite any pre-existing BB_ENV_EXTRAWHITE variables.
This patch modifies this behaviour: all oe-build-internal BB_ENV_EXTRAWHITE
variables are appended to any potentially already existing BB_ENV_EXTRAWHITE
variables. (The variables are only appended if not already in BB_ENV_EXTRAWHITE)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agotoolchain-shar-extract.sh: fix ~ not working in path
Paul Eggleton [Fri, 11 Dec 2015 03:11:48 +0000 (16:11 +1300)]
toolchain-shar-extract.sh: fix ~ not working in path

Fix a second regression in the extensible SDK installation caused by
OE-Core revision 6d2074d477596971dc52027dd87b02af7f39138d - the HOME
environment variable was being cleared, thus using ~/ in the install
path (which is in the default path for the extensible SDK) resulted in a
directory named '~' being created in the current directory.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agonativesdk-buildtools-perl-dummy: properly set PACKAGE_ARCH
Paul Eggleton [Fri, 11 Dec 2015 00:51:31 +0000 (13:51 +1300)]
nativesdk-buildtools-perl-dummy: properly set PACKAGE_ARCH

Turns out I did a silly thing in OE-Core revision
9b1831cf4a2940dca1d23f14dff460ff5a50a520 and forgot to remove the
explicit setting of PACKAGE_ARCH outside of the anonymous python
function; the original bug was apparently fixed but the functionality of
allarch.bbclass was being disabled because it was able to see that
PACKAGE_ARCH was not set to "all" - which was what I was trying to
ensure.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Wed, 9 Dec 2015 08:49:13 +0000 (08:49 +0000)]
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocmake: Add nios2 support
Marek Vasut [Thu, 26 Nov 2015 20:43:05 +0000 (21:43 +0100)]
cmake: Add nios2 support

Add the necessary bits for nios2 support into cmake.

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: Ross Burton <ross.burton@intel.com>
9 years agoboost: adjust hard-coded path after python3 upgrade
Lukas Bulwahn [Mon, 7 Dec 2015 07:36:50 +0000 (08:36 +0100)]
boost: adjust hard-coded path after python3 upgrade

When using `PACKAGECONFIG = "python"` in the boost recipe, `bitbake boost`
fails at do_compile with:

    ./boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: No such file or directory
    compilation terminated.

This issue is due to the recent version upgrade from python 3.4 to 3.5:

701ec1977ced1bb08461e6de98b4f63d21cba8a6 python3: Upgrade from 3.4.3 to 3.5

The boost.inc file modifies the boost build configuration with a path
containing the python3 major version, which is hard-coded in the boost.inc
file. Hence after the python3 update, the path points to the outdated
location and it needs to be updated to the new location.

This issue was unrevealed by an internal continuous integration system
for the meta-ros application layer. Further manual bisecting lead to the
critical commit 701ec1977ced1bb08461e6de98b4f63d21cba8a6.

Signed-off-by: Lukas Bulwahn <lukas.bulwahn@oss.bmw-carit.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosdk.py / OpkgSdk: remove_packaging_data() after install
Haris Okanovic [Tue, 1 Dec 2015 15:22:33 +0000 (09:22 -0600)]
sdk.py / OpkgSdk: remove_packaging_data() after install

Run remove_packaging_data() on both host and target sysroots to wipe
opkg state after install, similar to what RpmSdk does.

Use case:

Opkg may download local package indexes (I.e. file:// URLs) by
sym-linking them into /var/lib/opkg/lists/ instead of copying [1].
This leaves behind broken symlinks under the lists directory when
using opkg to build SDK sysroots.

The -h option may be set via SDKTAROPTS in some configurations to create
symlink-less SDK archives for Windows file systems. Sysroots containing
broken symlinks will fail to archive under this configuration.

Testing:

Verified /var/lib/opkg/ is empty after running populate_sdk() in a Fido
based distribution.

[1] http://git.yoctoproject.org/cgit/cgit.cgi/opkg/commit/?h=opkg-0.3.x&id=f9022a8520fcde8f1b71424d26a652c218fce685

Signed-off-by: Haris Okanovic <haris.okanovic@ni.com>
Reviewed-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
Natinst-ReviewBoard-ID: 119065
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agodevtool: extract: update SRCTREECOVEREDTASKS for kernel
Markus Lehtonen [Thu, 3 Dec 2015 13:54:25 +0000 (15:54 +0200)]
devtool: extract: update SRCTREECOVEREDTASKS for kernel

Add 'do_kernel_configme' and 'do_kernel_configcheck' to
SRCTREECOVEREDTASKS of kernel packages. These tasks should not be run
because kernel meta in the srctree is not necessarily up-to-date or
even present which causes build failures and/or invalid kernel config.
Especially so because 'do_patch' which is a dependency of
'do_kernel_configme' is not being run.

We now store .config in the srctree and 'do_configure' task is able to
run successfully.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agodevtool: extract: copy kernel config to srctree
Markus Lehtonen [Thu, 3 Dec 2015 13:54:24 +0000 (15:54 +0200)]
devtool: extract: copy kernel config to srctree

This makes the correct kernel config to be used when building kernel
from srctree (extrernalsrc). If no kernel config is present in the
builddir 'do_configure' task copies .config from the srctree.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolib/oe/package_manager: Introducing PACKAGE_FEED_BASE_PATHS/PACKAGE_FEED_ARCHS
Leonardo Sandoval [Mon, 5 Oct 2015 13:12:23 +0000 (13:12 +0000)]
lib/oe/package_manager: Introducing PACKAGE_FEED_BASE_PATHS/PACKAGE_FEED_ARCHS

The recently introduced PACKAGE_FEED_PREFIX is not flexible enough for
constructing URIs, because the same PREFIX is used for all PACKAGE_FEED_URIS.
Also, the string 'PREFIX' is confusing because it is not at the beginning of
the URI. The variable PACKAGE_FEED_BASE_PATHS replaces PACKAGE_FEED_PREFIX,
allowing multiple base paths to be appended on each PACKAGE_FEED_URIS. In the
other hand, a new variable called PACKAGE_FEED_ARCHS, similar in concept to
PACKAGE_BASE_PATHS, defines package architectures defined by the user.

To demonstrate the usage of the PACKAGE_FEED_URIS, PACKAGE_FEED_BASE_PATHS and
PACKAGE_FEED_ARCHS, let's assume these variables are set on local.conf

    PACKAGE_FEED_URIS = "https://example.com/packagerepos/release \
                         https://example.com/packagerepos/updates"
    PACKAGE_FEED_BASE_PATHS = "rpm rpm-dev"
    PACKAGE_FEED_ARCHS = "all core2-64"

the resulting feeds would be

    https://example.com/packagerepos/release/rpm/all
    https://example.com/packagerepos/release/rpm/core2-64
    https://example.com/packagerepos/release/rpm-dev/all
    https://example.com/packagerepos/release/rpm-dev/core2-64
    https://example.com/packagerepos/updates/rpm/all
    https://example.com/packagerepos/updates/rpm/core2-64
    https://example.com/packagerepos/updates/rpm-dev/all
    https://example.com/packagerepos/updates/rpm-dev/core2-64

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoselftest/wic.py: Add test for custom bootloader config
Mariano Lopez [Tue, 1 Dec 2015 08:48:53 +0000 (08:48 +0000)]
selftest/wic.py: Add test for custom bootloader config

This change just add anoher test to the wic module.
It will try to create a image with a custom bootloader
configuration. This test will use the example image
directdisk-bootloader-config to test the configfile
option for the bootloaders.

[YOCTO #8728]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agodirectdisk-bootloader-config.wks: Add example for custom bootloader config
Mariano Lopez [Tue, 1 Dec 2015 08:10:20 +0000 (08:10 +0000)]
directdisk-bootloader-config.wks: Add example for custom bootloader config

Add new wks file as a example for a custom bootloader configuration.
This change also includes the configuration that file that will be
used.

This example is using syslinux with MBR, the configuration file is
almost the same as the one generated by wic. As stated before this
is just an example.

[YOCTO #8728]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic/help.py: Document the new option "configfile"
Mariano Lopez [Tue, 1 Dec 2015 08:02:11 +0000 (08:02 +0000)]
wic/help.py: Document the new option "configfile"

This just adds the "configfile" option for the bootloader
to wic help.

[YOCTO #8728]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic: Allow to use a custom config for bootloaders
Mariano Lopez [Tue, 1 Dec 2015 07:43:35 +0000 (07:43 +0000)]
wic: Allow to use a custom config for bootloaders

This change will allow to use a user defined file as the
configuration for the bootloaders (grub, gummiboot, syslinux).

The config file is defined in the wks file with the "configfile"
option in the bootloader line.

[YOCTO #8728]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic/utils/misc.py: Added function to search for files in canned-wks
Mariano Lopez [Tue, 1 Dec 2015 07:14:53 +0000 (07:14 +0000)]
wic/utils/misc.py: Added function to search for files in canned-wks

This change add two new function to search for files in the
canned-wks folder for all the layers included in bblayers.conf.
This will be used to search for custom configuration files for
the bootloaders.

There are similar functions in the wic engine, but these are
focused in wks files only, so it was needed to create new ones.

[YOCTO #8728]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowic: Prepare wicboot to allow custom bootloader config
Mariano Lopez [Wed, 18 Nov 2015 07:39:07 +0000 (07:39 +0000)]
wic: Prepare wicboot to allow custom bootloader config

Currently wic does the bootloader configuration file on the fly.
This change introduce a configfile variable for the bootloader;
this is to have a user defined configuration file for the
bootloaders (grub, syslinux, and gummiboot). This is particular
useful when having a multiboot system or scripts embedded in the
configuration file.

[YOCTO #8728]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopackage_ipk: allow to specify OPKG_ARGS in local.conf
Vladimir Zapolskiy [Wed, 2 Dec 2015 04:48:38 +0000 (06:48 +0200)]
package_ipk: allow to specify OPKG_ARGS in local.conf

If user specific parameters to opkg are set in local.conf, they are
rewritten in package_ipk.bbclass and ignored, instead append
package_ipk specific arguments to the user defined ones.

The change is needed, if a user has to pass an alternative path to a
temporary directory for opkg, e.g.

  OPKG_ARGS = "--tmp-dir=${TOPDIR}/tmp-opkg"

The default /tmp directory may be unusable for do_rootfs task, for
example if there is no enough space or /tmp is mounted with noexec
mount option, then an alternative path allows to complete do_rootfs
and fix the problems like this:

  ERROR: Unable to install packages.
  ...
  sh: /tmp/opkg-5jPLag/run-postinsts-UsUtaI/preinst: /bin/sh: bad interpreter: Permission denied
  sh: /tmp/opkg-5jPLag/base-files-4hFwQS/preinst: /bin/sh: bad interpreter: Permission denied
  sh: /tmp/opkg-5jPLag/run-postinsts-UsUtaI/preinst: /bin/sh: bad interpreter: Permission denied
  sh: /tmp/opkg-5jPLag/busybox-syslog-sJmfbw/preinst: /bin/sh: bad interpreter: Permission denied
  ...

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosystemd.bbclass: Allow enabling of parameterised services
Bob Ham [Thu, 19 Nov 2015 11:24:00 +0000 (11:24 +0000)]
systemd.bbclass: Allow enabling of parameterised services

Currently the systemd.class will check whether a service exists when it is
requested to enabled it.  However, its check does not take into account that a
service like 'foo@eth0.service' can be enabled from a service named
'foo@.service'.  This patch alters the check function in systemd.class to look
for 'foo@.service' if the normal check fails.

Signed-off-by: Bob Ham <bob.ham@collabora.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobase: check for existing prefix when expanding names in PACKAGECONFIG
Ross Burton [Tue, 1 Dec 2015 09:01:28 +0000 (09:01 +0000)]
base: check for existing prefix when expanding names in PACKAGECONFIG

When the DEPENDS are added as part of the PACKAGECONFIG logic the list of
packages are expanded so that any required nativesdk-/-native/multilib prefixes
and suffixes are added.

However the special handling of virtual/foo names doesn't check that the prefix
already exists, which breaks under nativesdk as in that situation there's an
explicit nativesdk- prefix *and* MLPREFIX is set to nativesdk-.  This results in
the same prefix being applied twice, and virtual packages such as virtual/libx11
ending up as virtual/nativesdk-nativesdk-libx11.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolinux-yocto/4.1: Fix kernel oops on qemuarm boot
Bruce Ashfield [Tue, 8 Dec 2015 13:57:48 +0000 (08:57 -0500)]
linux-yocto/4.1: Fix kernel oops on qemuarm boot

Backporting two mainline commits to address kernel oops:

   Internal error: Oops: 17 [#1] PREEMPT ARM
   Modules linked in:
   CPU: 0 PID: 42 Comm: jbd2/vda-8 Not tainted 4.1.8-yocto-standard #1
   Hardware name: ARM-Versatile PB
   task: c7223300 ti: c725e000 task.ti: c725e000
   PC is at blk_mq_tag_to_rq+0x24/0x78
   LR is at bt_for_each+0x70/0xc4
   pc : [<c0364458>]    lr : [<c0368118>]    psr: 20000113
   sp : c725fa18  ip : c725fa30  fp : c725fa2c
   r10: c0365ce0  r9 : 00000020  r8 : c7104200
   r7 : c70ee5ac  r6 : 00000001  r5 : 00000021  r4 : c7122da0
   r3 : c7104000  r2 : 00000000  r1 : 00000021  r0 : 00000000
   Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
   Control: 00093177  Table: 072f4000  DAC: 00000017
   Process jbd2/vda-8 (pid: 42, stack limit = 0xc725e190)
   Stack: (0xc725fa18 to 0xc7260000)

[YOCTO #8663]

Signed-off-by: Alimon Limon <anibal.limon@linux.intel.com
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agotoolchain-shar-extract.sh: ensure cleaned environment will work for ext SDK
Paul Eggleton [Tue, 8 Dec 2015 02:42:38 +0000 (15:42 +1300)]
toolchain-shar-extract.sh: ensure cleaned environment will work for ext SDK

In OE-Core revision 6d2074d477596971dc52027dd87b02af7f39138d we added a
line which re-executes the script with a cleaned environment using
env -i; unfortunately that caused a regression in the extensible SDK on
Ubuntu 14.04 - strangely, there it seems that the value you get for PATH
under env -i contains '.' which triggers a sanity check failure when
preparing the build system. Do a belt-and-braces fix - source
/etc/environment if it exists (so you get a more complete PATH value)
and then filter any nastiness out of PATH for good measure. (Ubuntu
15.04 doesn't seem to suffer from the same problem.)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoinitramfs-framework: create directory /var/run
Wills Wang [Thu, 3 Dec 2015 05:52:12 +0000 (13:52 +0800)]
initramfs-framework: create directory /var/run

The following error occurs when udevd startup:
udevd[146]: bind failed: No such file or directory
error binding udev control socket
udevd[146]: error binding udev control socket

Signed-off-by: Wills Wang <wills.wang@live.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibpcre: drop UPSTREAM_CHECK_ variables
Ross Burton [Mon, 7 Dec 2015 13:37:17 +0000 (13:37 +0000)]
libpcre: drop UPSTREAM_CHECK_ variables

Now the SRC_URI is the canonical FTP server, the update-detection logic works
automatically.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibpcre: upgrade to 8.38
Fan Xin [Mon, 7 Dec 2015 08:26:28 +0000 (17:26 +0900)]
libpcre: upgrade to 8.38

This is the latest release in the 8.xx series.
It fixes 46 bugs as listed:
http://vcs.pcre.org/pcre/code/trunk/ChangeLog?view=markup

Vulnerabilities from CVE-2015-8380 to CVE-2015-8395 have been fixed in 8.38.

Signed-off-by: Fan Xin <fan.xin@jp.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibpng: update 1.6.19 -> 1.6.20 (CVE-2015-8126)
Andre McCurdy [Fri, 4 Dec 2015 05:16:35 +0000 (21:16 -0800)]
libpng: update 1.6.19 -> 1.6.20 (CVE-2015-8126)

Version 1.6.20beta01 [November 20, 2015]
  Avoid potential pointer overflow/underflow in png_handle_sPLT() and
    png_handle_pCAL() (Bug report by John Regehr).

Version 1.6.20beta02 [November 23, 2015]
  Fixed incorrect implementation of png_set_PLTE() that uses png_ptr
    not info_ptr, that left png_set_PLTE() open to the CVE-2015-8126
    vulnerability.

Version 1.6.20beta03 [November 24, 2015]
  Backported tests from libpng-1.7.0beta69.

Version 1.6.20rc01 [November 26, 2015]
  Fixed an error in handling of bad zlib CMINFO field in pngfix, found by
    American Fuzzy Lop, reported by Brian Carpenter.  inflate() doesn't
    immediately fault a bad CMINFO field; instead a 'too far back' error
    happens later (at least some times).  pngfix failed to limit CMINFO to
    the allowed values but then assumed that window_bits was in range,
    triggering an assert. The bug is mostly harmless; the PNG file cannot
    be fixed.

Version 1.6.20rc02 [November 29, 2015]
  In libpng 1.6 zlib initialization was changed to use the window size
    in the zlib stream, not a fixed value. This causes some invalid images,
    where CINFO is too large, to display 'correctly' if the rest of the
    data is valid.  This provides a workaround for zlib versions where the
    error arises (ones that support the API change to use the window size
    in the stream).

Version 1.6.20 [December 3, 2015]
  No changes.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoghostscript: add dependency for pnglibconf.h
Joe Slater [Fri, 4 Dec 2015 23:13:15 +0000 (15:13 -0800)]
ghostscript: add dependency for pnglibconf.h

When using parallel make jobs, we need to be sure that
pnglibconf.h is created before we try to reference it,
so add a rule to png.mak.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopackage_regex.inc: split the rest of the entries to their recipes
Alexander Kanavin [Mon, 16 Nov 2015 16:05:13 +0000 (18:05 +0200)]
package_regex.inc: split the rest of the entries to their recipes

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopackage_regex.inc: split entries which blacklist specific versions to their recipes
Alexander Kanavin [Mon, 16 Nov 2015 14:34:03 +0000 (16:34 +0200)]
package_regex.inc: split entries which blacklist specific versions to their recipes

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopackage_regex.inc: split sourceforge related entries to their own recipes
Alexander Kanavin [Mon, 16 Nov 2015 14:08:36 +0000 (16:08 +0200)]
package_regex.inc: split sourceforge related entries to their own recipes

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopackage_regex.inc: split PyPi related entries to their own recipes
Alexander Kanavin [Mon, 16 Nov 2015 13:26:42 +0000 (15:26 +0200)]
package_regex.inc: split PyPi related entries to their own recipes

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopackage_regex.inc: split Debian-related entries into their own recipes
Alexander Kanavin [Thu, 12 Nov 2015 13:00:18 +0000 (15:00 +0200)]
package_regex.inc: split Debian-related entries into their own recipes

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopackage_regex.inc: split GITTAGREGEX entries into recipe files
Alexander Kanavin [Wed, 11 Nov 2015 15:15:09 +0000 (17:15 +0200)]
package_regex.inc: split GITTAGREGEX entries into recipe files

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopackage_regex.inc: split entries with odd-even versioning into their own recipes
Alexander Kanavin [Wed, 11 Nov 2015 14:32:16 +0000 (16:32 +0200)]
package_regex.inc: split entries with odd-even versioning into their own recipes

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopackage_regex.inc: deprecate the file
Alexander Kanavin [Wed, 11 Nov 2015 13:30:28 +0000 (15:30 +0200)]
package_regex.inc: deprecate the file

New entries should be added to recipes themselves.  Also update the comment to
reflect the new variable names.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogstreamer: really fix the helper install race
Ross Burton [Fri, 4 Dec 2015 14:42:11 +0000 (14:42 +0000)]
gstreamer: really fix the helper install race

My previous fix wasn't enough and just made the race rarer.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoneard: fix libdir/libexecdir confusion
Ross Burton [Thu, 2 May 2013 13:35:29 +0000 (14:35 +0100)]
neard: fix libdir/libexecdir confusion

These binaries are installed to $libexecdir/nfc not $libdir/$BPN.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoglibc: fix libdir/libexecdir path confusion
Ross Burton [Tue, 3 Jun 2014 10:11:18 +0000 (11:11 +0100)]
glibc: fix libdir/libexecdir path confusion

$libdir/glibc is deleted if it doesn't exist but this is incorrectly assuming
what variables are used to create this directory.  In fact libexecdir is being
used in the Makefile so use that in the recipe too.

This fixes builds where libexecdir is changed.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosudo: handle libexecdir != libdir/PN.
Ross Burton [Tue, 23 Jun 2015 11:10:22 +0000 (12:10 +0100)]
sudo: handle libexecdir != libdir/PN.

sudo has somewhat special file installation logic and installs the modules and
libraries to $libexecdir/sudo, with special handling for the case when
libexecdir already contains /sudo (which it does by default in current oe-core
where libexecdir=$libdir/$PN).

As setting libexecdir to /usr/libexec should work, add both possibilities to
FILES to be sure the right files are captured, and add INSANE_SKIP for the
libdir warning that libraries are outside of /usr/lib/ (arguably, this should be
fixed in insane).

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoutil-linux: Add ptest
Tudor Florea [Thu, 3 Dec 2015 03:08:00 +0000 (04:08 +0100)]
util-linux: Add ptest

Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibav: Correctly handle prefix=""
Mike Crowe [Wed, 2 Dec 2015 15:54:08 +0000 (15:54 +0000)]
libav: Correctly handle prefix=""

libav's build system seems to think that prefix="" means that it should
use its default of /usr/local. Setting a prefix of "/" appears to be
sufficient to make it do the right thing.

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibav: Add PACKAGECONFIG options: avdevice, avfilter, avplay, gpl
Mike Crowe [Wed, 2 Dec 2015 10:45:11 +0000 (10:45 +0000)]
libav: Add PACKAGECONFIG options: avdevice, avfilter, avplay, gpl

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibav: Remove deprecated --disable-avserver
Mike Crowe [Wed, 2 Dec 2015 10:45:10 +0000 (10:45 +0000)]
libav: Remove deprecated --disable-avserver

./configure --help says:

  --disable-avserver       deprecated, does nothing

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobusybox: backport upstream fixes for unzip
Andre McCurdy [Wed, 2 Dec 2015 18:41:46 +0000 (10:41 -0800)]
busybox: backport upstream fixes for unzip

  http://git.busybox.net/busybox/commit/?h=1_24_stable&id=6767af17f11144c7cd3cfe9ef799d7f89a78fe65
  http://git.busybox.net/busybox/commit/?h=1_24_stable&id=092fabcf1df5d46cd22be4ffcd3b871f6180eb9c

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoqt4-4.8.7: fix build for mips n32
Robert Yang [Fri, 27 Nov 2015 03:35:19 +0000 (19:35 -0800)]
qt4-4.8.7: fix build for mips n32

Issue: LIN8-1720

If _ABIN32 is defined, it should go into 32 bit branch.

Fixed:
./wtf/StdLibExtras.h: In instantiation of 'TO WTF::bitwise_cast(FROM) [with TO = int; FROM = double]':
runtime/JSValueInlineMethods.h:495:44:   required from here
./wtf/Assertions.h:326:47: error: size of array is negative
 #define COMPILE_ASSERT(exp, name) typedef int dummy##name [(exp) ? 1 : -1]

(LOCAL REV: NOT UPSTREAM) -- Sent to oe-core on 20151127

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogstreamer1.0: Convert tests and valgrind config opts to PACKAGECONFIGs
Fabrice Coulon [Wed, 2 Dec 2015 10:10:30 +0000 (11:10 +0100)]
gstreamer1.0: Convert tests and valgrind config opts to PACKAGECONFIGs

I need to be able to run unit tests and build with valgrind support.

Signed-off-by: Fabrice Coulon <fabrice.coulon@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agocracklib: fix for base_libdir == libdir
Joshua Lock [Tue, 1 Dec 2015 21:41:00 +0000 (21:41 +0000)]
cracklib: fix for base_libdir == libdir

Don't try and move the python packages from base_libdir to libdir
if they are the same location.

Signed-off-by: Joshua Lock <joshua.lock@collabora.co.uk>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibbsd: Upgrade to 0.8.0
Marek Vasut [Tue, 1 Dec 2015 16:55:50 +0000 (17:55 +0100)]
libbsd: Upgrade to 0.8.0

Upgrade the library version to recently released 0.8.0 .

The COPYING file changed again, but the changes are just new names
added to the Copyright (C) YYYY John Doe <...> section, no changes
to the license itself.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Khem Raj <raj.khem@gmail.com>
Cc: Saul Wold <sgw@linux.intel.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>