]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
9 years agobitbake-whatchanged: avoid double do_ task name prefix
Olof Johansson [Wed, 27 Jan 2016 10:14:32 +0000 (11:14 +0100)]
bitbake-whatchanged: avoid double do_ task name prefix

When used with --verbose, the heading for each task looks like

  === The verbose changes of example.do_do_compile:

This should instead be

  === The verbose changes of example.do_compile:

Signed-off-by: Olof Johansson <olof.johansson@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agonetbase: add ipv6 host to /etc/hosts
Roy Li [Wed, 27 Jan 2016 08:00:19 +0000 (16:00 +0800)]
netbase: add ipv6 host to /etc/hosts

There is a script in netbase, debian/netbase.postinst, which create
/etc/hosts, but it is not called, so ipv6 host is missing.

now copy them from Ubuntu; and add localhost as alias of ::1

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolinux-yocto/4.4: CVEs and preempt-rt update
Bruce Ashfield [Wed, 27 Jan 2016 04:27:49 +0000 (23:27 -0500)]
linux-yocto/4.4: CVEs and preempt-rt update

Integrating the following CVE update:

  Author: Yevgeny Pats <yevgeny@perception-point.io>
  Date:   Tue Jan 19 22:09:04 2016 +0000

      KEYS: Fix keyring ref leak in join_session_keyring()

      This fixes CVE-2016-0728.

We also integrate the 4.4-rt3 version.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolinux-yocto/4.1: update to 4.1.16
Bruce Ashfield [Wed, 27 Jan 2016 04:27:48 +0000 (23:27 -0500)]
linux-yocto/4.1: update to 4.1.16

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogstreamer1.0-plugins-bad: fix compiler warnings with -Os in 1.7.1
Andre McCurdy [Wed, 27 Jan 2016 00:23:32 +0000 (16:23 -0800)]
gstreamer1.0-plugins-bad: fix compiler warnings with -Os in 1.7.1

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogstreamer1.0-plugins-good: fix compiler warnings with -Os in 1.7.1
Andre McCurdy [Wed, 27 Jan 2016 00:23:31 +0000 (16:23 -0800)]
gstreamer1.0-plugins-good: fix compiler warnings with -Os in 1.7.1

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibsoup-2.4: add glib-2.0-native dependency
Andre McCurdy [Wed, 27 Jan 2016 00:17:58 +0000 (16:17 -0800)]
libsoup-2.4: add glib-2.0-native dependency

Building libsoup requires glib-mkenums.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibtirpc: remove stray .orig file from Use-netbsd-queue.h.patch
Andre McCurdy [Wed, 27 Jan 2016 00:16:54 +0000 (16:16 -0800)]
libtirpc: remove stray .orig file from Use-netbsd-queue.h.patch

The file 'src/clnt_bcast.c.orig' seems to have been accidentally
included when the Use-netbsd-queue.h.patch patch was created.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoptest-runner: Add ptest-runner_2.0 recipe.
Aníbal Limón [Mon, 25 Jan 2016 23:29:37 +0000 (17:29 -0600)]
ptest-runner: Add ptest-runner_2.0 recipe.

The ptest-runner 2.0 is C written program for run ptests of
Yocto/Openembedded, is fully compatible with previous version of
ptest-runner that was a shell script that runs ptests sequencially.

The mainly reason for the new ptest-runner in C is because is designed
for run in tiny systems also the old shell script version have problems
when certain ptest hang it becomes blocked indefinitely.

Now the ptest-runner 2.0 support the next features:

- Specify the directory for search ptests.
- List available ptests.
- Specify the timeout for avoid blocking indefinetly.
- Only run certain ptests.

Proposed features:

- Adds support for per ptest output file.
- Adds support for run ptests in parallel (review possible
  colisions in ptests).

[YOCTO #8021]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agomusl: Upgrade to tip of tree
Khem Raj [Thu, 21 Jan 2016 23:20:35 +0000 (15:20 -0800)]
musl: Upgrade to tip of tree

Add explicit runtime dep on bsd-headers-dev
so we dont miss them in dev images

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agolibdrm: Refresh patch to match upstream submission
Khem Raj [Fri, 22 Jan 2016 00:36:47 +0000 (00:36 +0000)]
libdrm: Refresh patch to match upstream submission

The version submitted upstream has been updated to this one
after feedback

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agofts: Correct LIC_FILES_CHKSUM
Khem Raj [Thu, 21 Jan 2016 23:18:04 +0000 (15:18 -0800)]
fts: Correct LIC_FILES_CHKSUM

It was using wrong keyword and let it point to section of header file

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopth: Delete
Khem Raj [Mon, 18 Jan 2016 21:23:33 +0000 (21:23 +0000)]
pth: Delete

replacement in npth is available in OE-core

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoelfutils: Fix build with uclibc/musl
Khem Raj [Sat, 26 Dec 2015 20:01:44 +0000 (20:01 +0000)]
elfutils: Fix build with uclibc/musl

Remove mempcpy patch its already in uclibc now
refresh libargp patch to match latest elfutils

Add ALLOW_EMPTY for musl

core-image-cmdline-full asks for elfutils package to be added to package
it has all eu-* tools but we dont build them on musl. nevertheless lets
satisfy the dependency so image can build for musl

Build libdw,libasm,libebl along with libelf

enhance the musl portability patch to compile every other library
except the eu-* tools

Fix build on aarch64/musl issues

Header inclusion ends up with duplicate definitions of iovec struct
since uclibc defines the same in usersapce, we have been depending upong
including the kernel header on aarch64, using sys/uio.h is the right
approach

Fix x86 build warning seen on musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogrub: Backport fix for largefile detection/use
Khem Raj [Tue, 12 Jan 2016 23:43:13 +0000 (23:43 +0000)]
grub: Backport fix for largefile detection/use

This is inspired by musl porting, where grub's configure is enabling
largefile support based on glibc versions, instead an upstream patch
turns it into autoconf check

Update git version recipe

arm platforms use this recipe to provide grub and it needed fixes from
upstream so upgrade to latest tip of git and forward port patches as
well as drop the ones already applied upstream

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agooeqa/runtime/rpm: be more verbose if test_rpm_query_nonroot fails
Ross Burton [Mon, 25 Jan 2016 16:26:17 +0000 (16:26 +0000)]
oeqa/runtime/rpm: be more verbose if test_rpm_query_nonroot fails

If some parts of this test fail put the failing output in the logs to help
debugging.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibc-package.bbclass: add LOCALE_UTF8_IS_DEFAULT
Richard Tollerton [Fri, 22 Jan 2016 01:46:53 +0000 (19:46 -0600)]
libc-package.bbclass: add LOCALE_UTF8_IS_DEFAULT

python hard-codes the encoding of many locales; for instance, en_US is
always assumed to be ISO-8859-1, regardless of the actual encoding of
the en_US locale on the system. cf
https://hg.python.org/cpython/file/7841e9b614eb/Lib/locale.py#l1049,
getdefaultlocale(), etc. This code appears to date back to python 2.0.
The source of this hard-coding is Xorg's locale.alias but is ultimately
justified by glibc's SUPPORTED.

This causes problems on OE, because any locale lacking an explicit
encoding suffix (e.g. en_US) is UTF-8. It has been this way from the
beginning (svn r1). That is not a bug, per se -- no specification
prohibits this AFAIK. But it seems to be at odds with virtually every
other glibc-based distribution in existence. To avoid needlessly
aggravating hidden bugs that nobody else might hit, it makes sense to
disable this behavior such that locales are named precisely as specified
by SUPPORTED.

I suppose that reasonable minds may disagree on whether or not the
current behavior is prudent; at the very least, this is likely to break
IMAGE_LINGUAS settings. So let's create a new distro variable
LOCALE_UTF8_IS_DEFAULT to allow either behavior. Set it to 0 and all
your locales get named exactly like they are in SUPPORTED. Leave it at 1
to preserve current OE locale naming conventions.

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolocal.conf.sample.extended: Update the info about BBMASK
Peter Kjellerstedt [Wed, 27 Jan 2016 17:23:31 +0000 (18:23 +0100)]
local.conf.sample.extended: Update the info about BBMASK

Update the info about BBMASK to reflect that it can now contain
multiple regular expressions.

Also correct a misspelled PREFERRED_VERSION in a comment.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodocumentation.conf: Update the help for BBMASK
Peter Kjellerstedt [Wed, 27 Jan 2016 17:23:30 +0000 (18:23 +0100)]
documentation.conf: Update the help for BBMASK

Since it is now possible to concatenate multiple regular expressions
into BBMASK, there is no longer any real reason to limit it to be
specified only in local.conf.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agocmake: update to 3.4.2
Alexander Kanavin [Fri, 22 Jan 2016 13:37:32 +0000 (15:37 +0200)]
cmake: update to 3.4.2

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoat-spi2-core: update to 2.18.3
Alexander Kanavin [Fri, 22 Jan 2016 13:37:57 +0000 (15:37 +0200)]
at-spi2-core: update to 2.18.3

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowebkitgtk: update to 2.10.5
Alexander Kanavin [Fri, 22 Jan 2016 13:51:29 +0000 (15:51 +0200)]
webkitgtk: update to 2.10.5

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibsecret: update to 0.18.4
Alexander Kanavin [Fri, 22 Jan 2016 13:51:46 +0000 (15:51 +0200)]
libsecret: update to 0.18.4

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agofreetype: update to 2.6.2
Alexander Kanavin [Fri, 22 Jan 2016 13:53:20 +0000 (15:53 +0200)]
freetype: update to 2.6.2

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogdk-pixbuf: update to 2.32.3
Alexander Kanavin [Fri, 22 Jan 2016 13:58:01 +0000 (15:58 +0200)]
gdk-pixbuf: update to 2.32.3

Drop backported libc_memfuncs.patch

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoglib-2.0: update to 2.46.2
Alexander Kanavin [Fri, 22 Jan 2016 14:03:31 +0000 (16:03 +0200)]
glib-2.0: update to 2.46.2

Drop backported 0001-gio-tests-Don-t-depend-on-a-data-file-that-s-not-bui.patch

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogtk+3: update to 3.18.6
Alexander Kanavin [Fri, 22 Jan 2016 14:09:17 +0000 (16:09 +0200)]
gtk+3: update to 3.18.6

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogtk+: update to 2.24.29
Alexander Kanavin [Fri, 22 Jan 2016 14:08:39 +0000 (16:08 +0200)]
gtk+: update to 2.24.29

Fix a do_configure() error (missing m4 macro) in puzzles recipe caused
by this update.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogtk-icon-utils-native: update to 3.18.6
Alexander Kanavin [Fri, 22 Jan 2016 14:11:46 +0000 (16:11 +0200)]
gtk-icon-utils-native: update to 3.18.6

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agolibsoup-2.4: update to 2.52.2
Alexander Kanavin [Fri, 22 Jan 2016 14:13:43 +0000 (16:13 +0200)]
libsoup-2.4: update to 2.52.2

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agowaffle: update to 1.5.2
Alexander Kanavin [Fri, 22 Jan 2016 14:25:20 +0000 (16:25 +0200)]
waffle: update to 1.5.2

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agovala: update to 0.30.0
Alexander Kanavin [Fri, 22 Jan 2016 14:27:12 +0000 (16:27 +0200)]
vala: update to 0.30.0

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agorxvt-unicode: update to 9.22
Alexander Kanavin [Mon, 25 Jan 2016 13:27:12 +0000 (15:27 +0200)]
rxvt-unicode: update to 9.22

License checksum change due to new copyright year.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobtrfs-tools: Disable backtrace on musl
Khem Raj [Sun, 10 Jan 2016 03:26:46 +0000 (19:26 -0800)]
btrfs-tools: Disable backtrace on musl

musl does not support backtrace APIs

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobsd-headers: Fix LICENCE and dev package RDEPENDS
Khem Raj [Thu, 21 Jan 2016 23:14:40 +0000 (15:14 -0800)]
bsd-headers: Fix LICENCE and dev package RDEPENDS

Clear out runtime deps for dev package, since PN is empty packager will
try to resolve to PN when building images with musl and error out since
PN is deleted as its empty

musl-dev explicitly depends upon it so it will get pulled into build
in right order

Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 years agogdb: Fix build failures on musl
Khem Raj [Wed, 20 Jan 2016 02:27:20 +0000 (18:27 -0800)]
gdb: Fix build failures on musl

mode_t is needed by gdbserver headers so include sys/types.h to get them

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoltp: Add rdep on ldd
Khem Raj [Wed, 20 Jan 2016 19:51:01 +0000 (11:51 -0800)]
ltp: Add rdep on ldd

Fixes runtime errors e.g.

/opt/ltp/ver_linux: line 50: ldd: command not found
awk: cmd. line:2: (FILENAME=- FNR=1) fatal: attempt to access field -1
/opt/ltp/ver_linux: line 54: ldd: command not found

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoargp-standalone: Fix build when S != B
Khem Raj [Tue, 19 Jan 2016 21:21:08 +0000 (21:21 +0000)]
argp-standalone: Fix build when S != B

accesses headers from source tree.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobusybox: fix stop -vs- start typo in rcS script
Andre McCurdy [Tue, 26 Jan 2016 19:16:24 +0000 (11:16 -0800)]
busybox: fix stop -vs- start typo in rcS script

Also make the rcS and rcK comments match the code.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agomtools: keep v3.9.9 recipe in sync with the v4.0.18 version
Andre McCurdy [Tue, 26 Jan 2016 19:14:34 +0000 (11:14 -0800)]
mtools: keep v3.9.9 recipe in sync with the v4.0.18 version

Changes are mostly cosmetic, but also include one important fix
to support builds using musl libc.

  http://git.openembedded.org/openembedded-core/commit/?id=9f5eb272784d3be17e7fe8e7cab511bd4086ba1e

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogen-lockedsig-cache: fix bad destination path joining
Paul Eggleton [Tue, 26 Jan 2016 00:20:24 +0000 (13:20 +1300)]
gen-lockedsig-cache: fix bad destination path joining

When copying the sstate-cache into the extensible SDK, if the source
path had a trailing / and the destination path did not, there would be a
missing / between the path and the subdirectory name, and you'd end up
with subdirectories like "sstate-cacheCentOS-6.7". There are functions
in os.path for this sort of thing so let's just use them and avoid the
problem.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agodistutils-common-base: do not set PACKAGES - use defaults from bitbake.conf
Andreas Müller [Mon, 25 Jan 2016 23:29:57 +0000 (00:29 +0100)]
distutils-common-base: do not set PACKAGES - use defaults from bitbake.conf

it took me a while to understand why PACKAGE_BEFORE_PN did not work...

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoinsane: remove unused variable assignment
Ross Burton [Tue, 26 Jan 2016 12:52:21 +0000 (12:52 +0000)]
insane: remove unused variable assignment

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agometa: fix capitalisation in Upstream-Status
Ross Burton [Tue, 15 Dec 2015 21:32:50 +0000 (21:32 +0000)]
meta: fix capitalisation in Upstream-Status

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agopixman: only check even upstream versions
Alexander Kanavin [Fri, 22 Jan 2016 14:18:38 +0000 (16:18 +0200)]
pixman: only check even upstream versions

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogcr: check only even upstream versions
Alexander Kanavin [Fri, 22 Jan 2016 13:45:51 +0000 (15:45 +0200)]
gcr: check only even upstream versions

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoavahi: Add patch to fix Win10 mDNS issues
bmouring@ni.com [Mon, 25 Jan 2016 14:49:20 +0000 (08:49 -0600)]
avahi: Add patch to fix Win10 mDNS issues

Windows 10 will respond to mDNS messages when it  really shouldn't,
resulting in a lot of logging. Pulling the change from avahi upstream.
This will be fixed in avahi 0.6.32

External References:
https://bugs.launchpad.net/ubuntu/+source/avahi/+bug/1342400
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=794145
https://bugzilla.redhat.com/show_bug.cgi?id=1240711
https://social.technet.microsoft.com/Forums/en-US/b334e797-ef80-4525-b74a-b4830420a14e/windows-10-spams-network-with-invalid-mdns-response-packets?forum=win10itpronetworking

Signed-off-by: Brad Mouring <brad.mouring@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoxf86-input-libinput: initial add 0.16.0
Andreas Müller [Mon, 25 Jan 2016 12:57:52 +0000 (13:57 +0100)]
xf86-input-libinput: initial add 0.16.0

Some distributions already use this as input default. It is planned to include
it in xorg server 1.20. To

* prepare usage now
* make merge more easier later

include it in oe-core now.

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoimage.bbclass: check INITRAMFS_MAXSIZE
Robert Yang [Mon, 25 Jan 2016 08:45:59 +0000 (00:45 -0800)]
image.bbclass: check INITRAMFS_MAXSIZE

Usually, the initramfs' maxsize can be 1/2 of ram size since modern
kernel uses tmpfs as initramfs by dafault, and tmpfs allocates 1/2 of
ram by default at boot time, which will be used to locate the initramfs.

Set INITRAMFS_MAXSIZE to 131072K (128M) by default (ram 256M), the
initramfs is small usually, for example, core-image-minimal-initramfs is
about 21M (uncompressed, 17M * 1.3) by default, but if the user add a
lot pkgs to initramfs, we can error and stop to let the user know ealier
rather than fail to boot (e.g., OOM-killer) at boot time.

Please see the bug for more info:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=5963

[YOCTO #5963]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agosystemd: make TEST_DIR configurable
Roy Li [Mon, 25 Jan 2016 03:04:33 +0000 (11:04 +0800)]
systemd: make TEST_DIR configurable

1. make TEST_DIR configurable, and configure it to ptest dir, since
the *.service for test are installed into ptest dir.
2. always follow symbolic links in SOURCE when copy test files
to install dir, since some *.service under test dir are linked to
../unit/*.service which are not installed into ptest dir

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobind: update to 9.10.3-P3
Derek Straka [Sun, 24 Jan 2016 13:13:04 +0000 (08:13 -0500)]
bind: update to 9.10.3-P3

Addresses CVE-2015-8704 and CVE-2015-8705

CVE-2015-8704
Allows remote authenticated users to cause a denial of service via a malformed Address Prefix List record

CVE-2015-8705:
When debug loggin is enabled, allows remote attackers to cause a denial of service or have possibly unspecified impact via OPT data or ECS option

[YOCTO 8966]

References:
https://kb.isc.org/article/AA-01346/0/BIND-9.10.3-P3-Release-Notes.html
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-8704
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-8705

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agouninative: handle UNINATIVE_URL being file:///
Ross Burton [Mon, 25 Jan 2016 15:08:23 +0000 (15:08 +0000)]
uninative: handle UNINATIVE_URL being file:///

If the local fetcher is used then files are not actually fetched into DL_DIR, so
check if this happened and if required add a symlink to the real file.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agouninative: fix path to patchelf-uninative
Ross Burton [Mon, 25 Jan 2016 15:07:18 +0000 (15:07 +0000)]
uninative: fix path to patchelf-uninative

When uninative was changed to use it's own sysroot the path to patchelf lost
${bindir_native}, so add it back.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoscripts/wipe-sysroot: also delete uninative sysroot
Ross Burton [Mon, 25 Jan 2016 15:04:39 +0000 (15:04 +0000)]
scripts/wipe-sysroot: also delete uninative sysroot

The uninative sysroot is in ${STAGING_DIR}-uninative so delete that alongwith
$STAGING_DIR.

Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agometa/lib: new module for handling GPG signing
Markus Lehtonen [Mon, 25 Jan 2016 12:21:34 +0000 (14:21 +0200)]
meta/lib: new module for handling GPG signing

Add a new Python module (oe.gpg_sign) for handling GPG signing
operations, i.e. currently package and package feed signing. The purpose
is to be able to more easily support various signing backends and to be
able to centralise signing functionality into one place (e.g.  package
signing and sstate signing). Currently, only local signing with gpg is
implemented.

[YOCTO #8755]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agodevtool: extract: use the correct datastore for builddir
Markus Lehtonen [Fri, 18 Dec 2015 08:39:41 +0000 (10:39 +0200)]
devtool: extract: use the correct datastore for builddir

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agobusybox: backport upstream truncate open mode fix
Andre McCurdy [Fri, 22 Jan 2016 20:39:08 +0000 (12:39 -0800)]
busybox: backport upstream truncate open mode fix

  https://git.busybox.net/busybox/commit/?h=1_24_stable&id=be729c1d3b5c923f10871dd68ea94156d0f8c803

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agogstreamer1.0-plugins-base.inc: drop obsolete dependency on liboil
Andre McCurdy [Fri, 22 Jan 2016 01:13:12 +0000 (17:13 -0800)]
gstreamer1.0-plugins-base.inc: drop obsolete dependency on liboil

liboil was replaced by Orc prior to the gst-plugins-base 0.10.30 release:

  http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=8e4314f0fbfa4957f8e84d46824d10178b106fe6

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
9 years agoe2fsprogs: disable blkid
Ross Burton [Mon, 25 Jan 2016 22:58:54 +0000 (22:58 +0000)]
e2fsprogs: disable blkid

Both e2fsprogs and util-linux can build blkid, but we want to always use
util-linux's for consistency.

(blkid was enabled again in a1f235)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopango.inc: drop obsolete FULL_OPTIMIZATION over-ride
Andre McCurdy [Tue, 26 Jan 2016 04:38:22 +0000 (20:38 -0800)]
pango.inc: drop obsolete FULL_OPTIMIZATION over-ride

Legacy workaround dating back to 2007, no longer required.

  http://git.openembedded.org/openembedded-core/commit/?id=975809901d32756a1abb03d23a459ab0c6eadc17

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: add configure-help subcommand
Paul Eggleton [Tue, 26 Jan 2016 02:53:54 +0000 (15:53 +1300)]
devtool: add configure-help subcommand

When you need to set EXTRA_OECONF for a recipe, you need to know what
options the configure script actually supports; the configure script
however is only accessible from within a devshell and (at least in the
case of autotooled software fetched from an SCM repository) may not
actually exist until do_configure has run. Thus, provide a "devtool
configure-help" subcommand that runs the configure script for a recipe
with --help and shows you the output through a pager (e.g. less),
prefaced by a header describing the current options being specified.

There is basic support for autotools, cmake and bare configure scripts.
The cmake support is a little hacky since cmake doesn't really have a
concise help option that lists user-defined knobs (without actually
running through the configure process), however that being a design
feature of cmake there's not much I can think of to do about that at
the moment.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: properly handle bb.build.FuncFailed when extracting source
Paul Eggleton [Tue, 26 Jan 2016 02:53:57 +0000 (15:53 +1300)]
devtool: properly handle bb.build.FuncFailed when extracting source

When we run the tasks required to extract the source for a recipe (e.g.
within "devtool modify" or "devtool extract") if one of those tasks
fails you get a bb.build.FuncFailed exception; handle this properly so
you don't see a traceback.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: add: warn if modified recipe found in attic directory
Paul Eggleton [Tue, 26 Jan 2016 02:53:56 +0000 (15:53 +1300)]
devtool: add: warn if modified recipe found in attic directory

If a recipe generated by "devtool add" has been modified since then when
you run "devtool reset", it will be moved into the "attic" subdirectory
of the workspace in case those modifications need to be preserved. It
seems natural that if those modifications were worth preserving we
should warn the user if such a file exists when they run "devtool add"
to create the same recipe again, so they can pick up where they left off
if they want to.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: build-image: allow specifying packages to add to image
Paul Eggleton [Tue, 26 Jan 2016 02:53:55 +0000 (15:53 +1300)]
devtool: build-image: allow specifying packages to add to image

Provide an option to devtool build-image to specify the list of packages
instead of taking the list of packages produced by recipes in the
workspace. Sometimes you don't want all of these packages; other times
you want to add more.

This is the most immediate fix for [YOCTO #8855], though it is a little
crude so I would like to provide better means of customising the image
contents later.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool: move edit-recipe to a separate module
Paul Eggleton [Tue, 26 Jan 2016 02:53:53 +0000 (15:53 +1300)]
devtool: move edit-recipe to a separate module

standard.py is getting a bit large; move the "utility" commands to
another module.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoimage: Don't create tasks with '.' in the name
Richard Purdie [Tue, 26 Jan 2016 18:02:21 +0000 (18:02 +0000)]
image: Don't create tasks with '.' in the name

Similarly to "-", "." doesn't work well in task names but is used in
some real world image classes. Work around this with some replacements
for now to unbreak layers.

(Issues don't show themselves until runtime, e.g. with --dry-run)

Tested-By: Otavio Salvador <otavio.salvador@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorootfs-postcommands: fix allow-empty-password on read-only rootfs
Ross Burton [Tue, 26 Jan 2016 16:20:00 +0000 (16:20 +0000)]
rootfs-postcommands: fix allow-empty-password on read-only rootfs

When a read-only rootfs is being used sshd uses a different sshd_config file,
which also needs to be editted.

[ YOCTO #8680 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agokernel: Clean DEPLOYDIR before do_deploy runs
Richard Purdie [Mon, 25 Jan 2016 15:07:34 +0000 (15:07 +0000)]
kernel: Clean DEPLOYDIR before do_deploy runs

If we don't do this, the deploy sstate object contains an every
increasing number of modules tarballs and kernel images, one per
execution of "-c deploy -f".

Cleaning the directory before we start makes things much tidier.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogcc-cross-canadian: Add missing DEPENDS on virtual/${HOST_PREFIX}gcc-crosssdk
Richard Purdie [Mon, 25 Jan 2016 15:06:01 +0000 (15:06 +0000)]
gcc-cross-canadian: Add missing DEPENDS on virtual/${HOST_PREFIX}gcc-crosssdk

The cross-canadian compiler needs the nativesdk compiler to build
but for some reason this was missing. Add the missing dependency.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibtirpc: Drop unneeded xz-native dependency
Richard Purdie [Mon, 25 Jan 2016 15:05:18 +0000 (15:05 +0000)]
libtirpc: Drop unneeded xz-native dependency

xz-native is needed to decompress the sources but DEPENDS isn't correct
for this, its needed at do_unpack time. base.bbclass already handles
this correctly so drop the unneeded dependency.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolibuser: Drop unneeded xz-native dependency
Richard Purdie [Mon, 25 Jan 2016 15:04:47 +0000 (15:04 +0000)]
libuser: Drop unneeded xz-native dependency

xz-native is needed to decompress the sources but DEPENDS isn't correct
for this, its needed at do_unpack time. base.bbclass already handles
this correctly so drop the unneeded dependency.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoRevert "xz: Allow to work with ASSUME_PROVIDED xz-native"
Richard Purdie [Mon, 25 Jan 2016 10:05:56 +0000 (10:05 +0000)]
Revert "xz: Allow to work with ASSUME_PROVIDED xz-native"

This reverts commit 5c69c561a76cb10d7896ae0a0399190f11b2e0ca.

The change was incomplete, not handling cases such as the fetcher
using xz, or linux-yocto, dpkg or apt or the lzma image type.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoacpid: upgrade to 2.0.26
Maxin B. John [Wed, 20 Jan 2016 15:58:47 +0000 (17:58 +0200)]
acpid: upgrade to 2.0.26

2.0.25 -> 2.0.26

a) Fixed an out of tree build error with musl
b) Updated HOMEPAGE and BUGTRACKER info

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuild-perf-test.sh: add eSDK testing
Markus Lehtonen [Thu, 21 Jan 2016 17:46:41 +0000 (19:46 +0200)]
build-perf-test.sh: add eSDK testing

Add simple initial eSDK test. Currently, only download size and
installation time of eSDK is measured. The eSDK to be tested is
generated from the same image that the other tests are run for. This
patch will add two new fields to the global results log and that needs
to be taken into account when examining the results.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobuild-perf-test.sh: more generic timing function
Markus Lehtonen [Thu, 21 Jan 2016 17:46:40 +0000 (19:46 +0200)]
build-perf-test.sh: more generic timing function

Make it possible to time also other than bitbake commands. The name of
the log file is changed from bitbake.log to commands.log.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopython3-pip: Upgrade to 8.0.0
Alejandro Hernandez [Thu, 21 Jan 2016 17:58:00 +0000 (17:58 +0000)]
python3-pip: Upgrade to 8.0.0

LIC_FILES_CHKSUM changed, but LICESE still applies, dates changed

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoorc: update HOMEPAGE
Andre McCurdy [Fri, 22 Jan 2016 03:23:53 +0000 (19:23 -0800)]
orc: update HOMEPAGE

The old entropywave.com URL no longer responds.

Also remove unnecessary 'name=orc' from SRC_URI.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agogstreamer1.0-plugins.inc: drop obsolete ${S}/po/Makefile.in.in workaround
Andre McCurdy [Fri, 22 Jan 2016 03:23:37 +0000 (19:23 -0800)]
gstreamer1.0-plugins.inc: drop obsolete ${S}/po/Makefile.in.in workaround

The workaround was originally added to the 0.10.x gst-plugins recipes
in late 2012 [1] and the root cause seems to have been fixed upstream
in late 2013 [2] (ie prior to the 1.4.0 release).

 [1] http://lists.openembedded.org/pipermail/openembedded-core/2012-November/071149.html
 [2] https://bugzilla.gnome.org/show_bug.cgi?id=705455

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agobusybox: Add support for busybox-init
Khem Raj [Fri, 22 Jan 2016 20:49:09 +0000 (20:49 +0000)]
busybox: Add support for busybox-init

in config metadata we can configure busybox based init and device
initializer ( mdev ) using e.g.

VIRTUAL-RUNTIME_dev_manager = "busybox-mdev"
VIRTUAL-RUNTIME_login_manager = "busybox"
VIRTUAL-RUNTIME_init_manager = "busybox"
VIRTUAL-RUNTIME_initscripts = "initscripts"
VIRTUAL-RUNTIME_keymaps = "keymaps"
DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"

busybox can be used to provide init system
combined with mdev it makes it a complete init
system for really tiny systems.

This patch uses above defines to configure features in busybox to enable
the init system and mdev in a configurable manner

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopulseaudio.inc: drop obsolete dependency on liboil
Andre McCurdy [Fri, 22 Jan 2016 03:23:45 +0000 (19:23 -0800)]
pulseaudio.inc: drop obsolete dependency on liboil

Pulseaudio dropped its dependency on liboil in 2009.

  http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/?id=25724cdd40283a00e6edd9449d0f3cf16823b41b

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosqlite3: update 3.10.0 -> 3.10.2
Andre McCurdy [Sat, 23 Jan 2016 01:26:05 +0000 (17:26 -0800)]
sqlite3: update 3.10.0 -> 3.10.2

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosqlite3.inc: add PACKAGECONFIG to support building against libedit
Andre McCurdy [Sat, 23 Jan 2016 01:26:04 +0000 (17:26 -0800)]
sqlite3.inc: add PACKAGECONFIG to support building against libedit

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosqlite3.inc: dynamically link the sqlite3 command-line utility
Andre McCurdy [Sat, 23 Jan 2016 01:26:03 +0000 (17:26 -0800)]
sqlite3.inc: dynamically link the sqlite3 command-line utility

By default, the sqlite3 command-line utility will be statically linked
with sqlite3. For OE, dynamic linking is probably more appropriate and
can be enabled by configuring with "--disable-static-shell".

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosqlite: formatting improvements, move more stuff into sqlite3.inc
Andre McCurdy [Sat, 23 Jan 2016 01:26:02 +0000 (17:26 -0800)]
sqlite: formatting improvements, move more stuff into sqlite3.inc

Reformatting only, no functional changes.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosqlite3.inc: drop obsolete config_BUILD_CC, etc exports
Andre McCurdy [Sat, 23 Jan 2016 01:26:01 +0000 (17:26 -0800)]
sqlite3.inc: drop obsolete config_BUILD_CC, etc exports

These exports date back to 2007, when sqlite needed patching
in order to cross compile:

  http://git.openembedded.org/openembedded-core/commit/?id=4ffe8f6b1ff640722880cf2cd88990956de87e30

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosqlite3.inc: fix readline PACKAGECONFIG
Andre McCurdy [Sat, 23 Jan 2016 01:26:00 +0000 (17:26 -0800)]
sqlite3.inc: fix readline PACKAGECONFIG

Make it clearer that readline support for the target build is now
disabled by default.

Since readline dependencies and configure options are now handled by
PACKAGECONFIG, avoid duplicating readline in DEPENDS or duplicating
--disable-readline in EXTRA_OECONF.

Also add --disable-editline to EXTRA_OECONF to avoid a potential
floating dependency, since the configure script checks for libedit
before it checks for libreadline.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agosqlite3: fix the parallel build fix patch
Andre McCurdy [Sat, 23 Jan 2016 01:25:59 +0000 (17:25 -0800)]
sqlite3: fix the parallel build fix patch

The previous parallel.patch broke dynamically linking sqlite3 with
libsqlite3.so (ie using the --disable-static-shell configure option).

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoweston: Add missing DEPENDS on wayland-native
Richard Purdie [Sun, 24 Jan 2016 10:49:14 +0000 (10:49 +0000)]
weston: Add missing DEPENDS on wayland-native

Weston needs wayland-scanner which comes from wayland-native. Add the missing
dependency to avoid build failures from:

bitbake wayland; bitbake wayland-native:do_clean weston:do_cleansstate; bitbake weston

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agouninative: Fix conflicts with normal sysroot
Richard Purdie [Fri, 22 Jan 2016 17:17:10 +0000 (17:17 +0000)]
uninative: Fix conflicts with normal sysroot

Currently this code installs into the standard sysroot, however this causes
some conflicts when linking since the linker can look specifically for
versioned .so files (e.g. like libpthreads.so.0). This breaks builds
of util-linux-native for example.

The easiest solution is to install uninative into its own separate sysroot.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoinsane: Drop do_stage test
Richard Purdie [Fri, 22 Jan 2016 13:07:32 +0000 (13:07 +0000)]
insane: Drop do_stage test

do_stage was obsoleted years ago, drop the test now.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopopulate_sdk: Use pixz instead of xz
Richard Purdie [Fri, 22 Jan 2016 13:06:50 +0000 (13:06 +0000)]
populate_sdk: Use pixz instead of xz

xz is slow at compressing the SDKs, we can speed it up by using the
parallel compressor, pixz.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolib/oe/sdk: Partially revert "sdk.py: fix conflicts of packages"
Richard Purdie [Fri, 22 Jan 2016 13:06:09 +0000 (13:06 +0000)]
lib/oe/sdk: Partially revert "sdk.py: fix conflicts of packages"

OE-Core rev: f2b64f725803ad8be7c2876c531e057a4fe5ca7c (poky
1362986886cc96c8cc11fb60795f729b41770414) unintentionally broke opkg/dpkg
multilib support within the SDK by making things not honour
self.install_order. This reinstates that code for opkg/dpkg but
not rpm where the original problem was.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agouninative: Add fetch capability
Richard Purdie [Fri, 22 Jan 2016 13:05:21 +0000 (13:05 +0000)]
uninative: Add fetch capability

Originally, the idea was that the init environment would handle
fetching or providing the binary shim that uninative needs.

This turns out to be ugly, especially when you consider proxy
environments and so on getting involved. Instead, lets therefore
support our fetcher which already handles all this.

The distro is expected to setup configuration like:

UNINATIVE_URL ?= "http://mydomain/mypath/"
UNINATIVE_CHECKSUM[i586] =
"md5sum1"
UNINATIVE_CHECKSUM[x86_64] = "md5sum2"

and then it should all work if the user inherits the uninative class.

This patch also improves the error handling in the class to give more
user readable error messages.

If the shim binary is already provided, the system will just use that
and ignore the url information.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agopixz: Add 1.0.6
Richard Purdie [Fri, 22 Jan 2016 12:58:11 +0000 (12:58 +0000)]
pixz: Add 1.0.6

xz gives better compression results than bzip/gz but is often slower.
Using parallel compression mitigates this somewhat and is particularly
useful for the SDK.

Whilst xz does have some parallel support, pixz appears to perform better
and supports parallel decompression as well as a simpler command line.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agoxz: Allow to work with ASSUME_PROVIDED xz-native
Richard Purdie [Fri, 22 Jan 2016 12:59:35 +0000 (12:59 +0000)]
xz: Allow to work with ASSUME_PROVIDED xz-native

At some point we may want to add xz-native to ASSUME_PROVIDED. This
allows that to work whilst still allowing access to liblzma for
those things which need it (e.g. pixz).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agolib/oe/package_manager: prevent testing an undefined variable
Joshua Lock [Fri, 22 Jan 2016 09:43:59 +0000 (09:43 +0000)]
lib/oe/package_manager: prevent testing an undefined variable

This prevents an error in do_populate_sdk when building
buildtools-tarball with ipk as the package manager:

Exception: UnboundLocalError: local variable 'pkg' referenced
before assignment

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: create: better fix for fetch error handling
Paul Eggleton [Fri, 22 Jan 2016 12:00:01 +0000 (01:00 +1300)]
recipetool: create: better fix for fetch error handling

I was a little bit hasty in OE-Core revision
c2cc5abe34169eae92067d97ce1e747e7c1413f5 - it turns out BitBake's
fetcher code is not consistent in whether it logs something useful or
not; when fetching from an http URL it does but with a git repository
it doesn't. In advance of any major reworking of fetch error handling in
BitBake, let's just print the text of the exception and then we know we
have shown something to the user.

Additionally, we were only catching FetchException here but there are
several other classes of exception that the fetcher can raise (e.g.
MalformedUrl); catch the parent BBFetchException class instead so we
avoid tracebacks for those other classes as well.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: create: fix extraction of name from URLs ending in /
Paul Eggleton [Fri, 22 Jan 2016 12:00:00 +0000 (01:00 +1300)]
recipetool: create: fix extraction of name from URLs ending in /

If the URL ends in a / then we want to strip that off the path we split
out of the URL before calling os.path.basename() on it.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agorecipetool: create: extract SRC_URI from local git repositories
Paul Eggleton [Fri, 22 Jan 2016 11:59:59 +0000 (00:59 +1300)]
recipetool: create: extract SRC_URI from local git repositories

If you specify a local directory which happens to be a git repository
with an origin remote (and it is in fact remote), we can use that for
SRC_URI rather than leaving it blank in the recipe.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9 years agodevtool / recipetool: support specifying a subdirectory within the fetched source
Paul Eggleton [Fri, 22 Jan 2016 11:59:58 +0000 (00:59 +1300)]
devtool / recipetool: support specifying a subdirectory within the fetched source

Sometimes you don't want to build an entire project, just a subdirectory
of it; add a --src-subdir option to make that easier. (We still look for
a single subdirectory in what gets unpacked, e.g. what you might find
within a tarball, so whatever you specify with this option is added onto
the end of that.)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>