]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
10 years agoopkg-collateral: Simplify source files
Paul Barker [Fri, 19 Dec 2014 17:35:29 +0000 (17:35 +0000)]
opkg-collateral: Simplify source files

Instead of having the source files 'opkg.conf.comments', 'dest' and 'src', we
simply have one 'opkg.conf' file containing all the necessary configuration.

This does mean that replacing 'src' in a bbappend to define distro-specific
package feeds is no longer supported, but these feed configurations should be
packaged separately from the rest of the opkg configuration anyway so that
things can be updated independently. The best recipe to use for managing feed
configs is currently distro-feed-config in the meta-oe layer.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
10 years agoopkg-arch-config: Renamed from opkg-config-base
Paul Barker [Fri, 19 Dec 2014 17:31:16 +0000 (17:31 +0000)]
opkg-arch-config: Renamed from opkg-config-base

The name 'opkg-arch-config' is much more descriptive.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
10 years agoapr: Allow use in SDK
Timo Mueller [Mon, 2 Feb 2015 14:03:07 +0000 (15:03 +0100)]
apr: Allow use in SDK

This adds 'nativesdk' in the BBCLASSEXTEND.

Signed-off-by: Timo Mueller <timo.mueller@bmw-carit.de>
Signed-off-by: Lukas Bulwahn <lukas.bulwahn@oss.bmw-carit.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoinsane: add unknown-configure-option to default WARN_QA
Ross Burton [Wed, 21 Jan 2015 17:54:12 +0000 (17:54 +0000)]
insane: add unknown-configure-option to default WARN_QA

The unknown-configure-option check is generally useful and should be enabled by
default.

Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agobitbake.conf: don't remove WARN_QA and ERROR_QA from hashes
Ross Burton [Wed, 21 Jan 2015 17:53:31 +0000 (17:53 +0000)]
bitbake.conf: don't remove WARN_QA and ERROR_QA from hashes

Changing WARN_QA and ERROR_QA should cause do_package_qa to re-execute, so
removing them from the sstate hashes is harmful.

They were added back when sanity testing was part of packaging and this was the
lesser evil, compared to changing sanity tests causing a re-package of
everything.

Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agowayland: remove explicit class-native DEPENDS
Ross Burton [Mon, 2 Feb 2015 11:10:26 +0000 (11:10 +0000)]
wayland: remove explicit class-native DEPENDS

Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agonative: remove PN from DEPENDS automatically
Ross Burton [Mon, 2 Feb 2015 11:03:28 +0000 (11:03 +0000)]
native: remove PN from DEPENDS automatically

If a recipe (say, wayland) has DEPENDS=wayland-native and BBCLASSEXTEND=native,
when built as wayland-native it has DEPENDS=wayland-native which results in a
circular dependency.

Typically this is resolved by having explicit DEPENDS_class-native statements
but as this is duplication which can lead to inconsistent dependencies,
automatically remove the circular dependency.

Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agosystemd: Backports fixes to 216
Khem Raj [Thu, 29 Jan 2015 20:44:20 +0000 (12:44 -0800)]
systemd: Backports fixes to 216

Fix systemd-timesyncd assertion

when networkd is disabled then we now do not
create /run/systemd/netif/links but timesyncd needs it. So lets
manually create this file when networkd is disabled so timesyncd
can still function

When enabling systemd-timesyncd we need systemd-timesync user

Backport patches to enable timesyncd when resolved and networkd
are disabled

replace the resolv.conf symlinink patch with a proper backport

Change-Id: I53f1a53eec4e4a4dbdfb7e8cd155d544ee5d81ec
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agolsbinitscripts: fix the path for mountpoint
Jackie Huang [Fri, 30 Jan 2015 02:03:55 +0000 (10:03 +0800)]
lsbinitscripts: fix the path for mountpoint

mountpoint is installed in ${bindir}

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agolib/oe/terminal: add support for Terminology terminal emulator
Rodrigo Chiossi [Tue, 6 Jan 2015 14:18:54 +0000 (12:18 -0200)]
lib/oe/terminal: add support for Terminology terminal emulator

Terminology is the default Enlightenment terminal emulator

Signed-off-by: Rodrigo Chiossi <rodrigo.chiossi@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agopiglit: add x11 to required DISTRO_FEATURES
Martin Jansa [Wed, 28 Jan 2015 14:52:11 +0000 (15:52 +0100)]
piglit: add x11 to required DISTRO_FEATURES

* there is some pending work to resolve this unnecessary x11
  dependency, this can be reverted together with x11 dependency
  removal

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoxmlto-native: fixes slow creation of yocto docs
Alejandro Hernandez [Tue, 27 Jan 2015 23:26:31 +0000 (17:26 -0600)]
xmlto-native: fixes slow creation of yocto docs

Forces native RDEPENDS of xmlto-native to be built and installed
since those files are required when creating yocto-docs
if not found, they are downloaded from upstream everytime
significant time difference is achieved.

[YOCTO #7148]

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoxorg-driver: add x11 to required DISTRO_FEATURES
Martin Jansa [Wed, 28 Jan 2015 14:52:09 +0000 (15:52 +0100)]
xorg-driver: add x11 to required DISTRO_FEATURES

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agopackage_manager.py: fix rootfs failure with multilib enabled
Chen Qi [Thu, 29 Jan 2015 02:22:14 +0000 (10:22 +0800)]
package_manager.py: fix rootfs failure with multilib enabled

With the current code, if we use debian package backend and enable
multilib support, the do_rootfs process would always fail with error
messages like below.

    E: Unable to locate package packagegroup-core-boot

This patch fixes the above problem.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoopenssh: configuration updates
Dan McGregor [Thu, 15 Jan 2015 21:11:00 +0000 (15:11 -0600)]
openssh: configuration updates

Rebase sshd_config and ssh_config with openssh upstream.
Check for the ed25519 key in the systemd keygen service.

Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agopigz: Upgrade to 2.3.3
Khem Raj [Wed, 28 Jan 2015 17:20:38 +0000 (09:20 -0800)]
pigz: Upgrade to 2.3.3

Fix build issues due to libz being required but
is specified before use.

Change-Id: I1f26c8e656b330a4b5f1eeffee7ac13500fa98d0
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoterminal.py: fixes launching multiple windows of gnome-terminal
Alejandro Hernandez [Tue, 27 Jan 2015 23:36:59 +0000 (17:36 -0600)]
terminal.py: fixes launching multiple windows of gnome-terminal

When resolving a patch, a new process of gnome-terminal
is created for every patch to be resolved, it "waits"
for the previous one to end, instead of launching
multiple windows at the same time.

[YOCTO #7254]

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agorunqemu-internal: get rid of annoying but harmless error message
Chen Qi [Thu, 29 Jan 2015 05:44:18 +0000 (13:44 +0800)]
runqemu-internal: get rid of annoying but harmless error message

If tap0 interface has been created by other users on the system, we would
get error messages when using runqemu. Error messages are like below.
     Acquiring lockfile for tap0...
     touch: cannot touch ‘/tmp/qemu-tap-locks/tap0.lock’: Permission denied
     /buildarea2/chenqi/poky/scripts/runqemu-internal: line 139: /tmp/qemu-tap-locks/tap0.lock: Permission denied
     flock: 8: Bad file descriptor

The system can still boot up because runqemu would try to create a new tap
interface. So the error message above is harmless, yet somewhat annoying.

This patch fixes the above problem. With this patch, the output would be as
follows.

Acquiring lockfile for tap0...
Acquiring lockfile for /tmp/qemu-tap-locks/tap0.lock failed
Setting up tap interface under sudo
Acquiring lockfile for tap1...
Running qemu-system-arm...

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoimage.bbclass: make kernel depmod data optional
Dan McGregor [Tue, 27 Jan 2015 17:21:12 +0000 (11:21 -0600)]
image.bbclass: make kernel depmod data optional

This allows an image to skip the creation of kernel depmod
data. It is useful for creating an image that will run as a
container image inside a host with no knowledge of the parent's
kernel.

Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agobusybox: cve-2014-9645
Armin Kuster [Wed, 28 Jan 2015 01:19:28 +0000 (17:19 -0800)]
busybox: cve-2014-9645

modprobe,rmmod: reject module names with slashes

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agognutls: update to 3.3.12
Bian Naimeng [Wed, 28 Jan 2015 04:04:22 +0000 (12:04 +0800)]
gnutls: update to 3.3.12

update to 3.3.12 to fix some bugs.

http://article.gmane.org/gmane.comp.encryption.gpg.gnutls.devel/7967

Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agomingetty: fix SRC_URI
Robert Yang [Wed, 28 Jan 2015 05:38:18 +0000 (21:38 -0800)]
mingetty: fix SRC_URI

Fixed:
WARNING: Failed to fetch URL http://cdnetworks-kr-1.dl.sourceforge.net/project/mingetty/mingetty/1.08/mingetty-1.08.tar.gz, attempting MIRRORS if available

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
10 years agopcmciautils: fix SRC_URI and HOMEPAGE
Robert Yang [Wed, 28 Jan 2015 05:38:18 +0000 (21:38 -0800)]
pcmciautils: fix SRC_URI and HOMEPAGE

Fixed:
WARNING: Failed to fetch URL http://kernel.org/pub/linux/utils/kernel/pcmcia/pcmciautils-018.tar.bz2, attempting MIRRORS if available

The pcmciautils-018.tar.bz2 is gone from kernel.org.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
10 years agolatencytop: fix SRC_URI and HOMEPAGE
Robert Yang [Wed, 28 Jan 2015 05:38:18 +0000 (21:38 -0800)]
latencytop: fix SRC_URI and HOMEPAGE

Fixed:
WARNING: Failed to fetch URL http://www.latencytop.org/download/latencytop-0.5.tar.gz, attempting MIRRORS if available

Its homepage is also down, but can't find a proper one atm.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
10 years agopax: fix SRC_URI and HOMEPAGE
Robert Yang [Wed, 28 Jan 2015 05:38:18 +0000 (21:38 -0800)]
pax: fix SRC_URI and HOMEPAGE

Fixed:
WARNING: Failed to fetch URL ftp://ftp.suse.com/pub/people/kukuk/pax/pax-3.4.tar.bz2, attempting MIRRORS if available

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
10 years agoman: fix SRC_URI
Robert Yang [Wed, 28 Jan 2015 03:18:55 +0000 (19:18 -0800)]
man: fix SRC_URI

Fixed:
WARNING: Failed to fetch URL http://primates.ximian.com/~flucifredi/man/man-1.6g.tar.gz, attempting MIRRORS if available

Its HOMEPAGE is also down, but can't find one for it.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
10 years agocwautomacros: fix SRC_URI and HOMEPAGE
Robert Yang [Wed, 28 Jan 2015 03:01:12 +0000 (19:01 -0800)]
cwautomacros: fix SRC_URI and HOMEPAGE

Fixed:
WARNING: Failed to fetch URL http://download.berlios.de/cwautomacros/cwautomacros-20110201.tar.bz2, attempting MIRRORS if available

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
10 years agodosfstools: fix SRC_URI
Robert Yang [Wed, 28 Jan 2015 02:32:54 +0000 (18:32 -0800)]
dosfstools: fix SRC_URI

Fixed:
WARNING: Failed to fetch URL ftp://ftp.uni-erlangen.de/pub/Linux/LOCAL/dosfstools/dosfstools-2.11.src.tar.gz, attempting MIRRORS if available

And add a HOMEPAGE for it, there is no dosfstools 2.11 on its official
page (but 3.x).

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
10 years agobase-passwd: fix SRC_URI
Robert Yang [Wed, 28 Jan 2015 01:30:45 +0000 (17:30 -0800)]
base-passwd: fix SRC_URI

Fixed:
WARNING: Failed to fetch URL ftp://ftp.debian.org/debian/pool/main/b/base-passwd/base-passwd_3.5.29.tar.gz, attempting MIRRORS if available

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
10 years agocdrtools-native: fix HOMEPAGE and SRC_URI
Robert Yang [Tue, 20 Jan 2015 03:14:25 +0000 (19:14 -0800)]
cdrtools-native: fix HOMEPAGE and SRC_URI

The old ones are invalid, fixed:
WARNING: Failed to fetch URL ftp://ftp.berlios.de/pub/cdrecord/alpha/cdrtools-3.01a20.tar.bz2, attempting MIRRORS if available

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
10 years agoperf: add LIBNUMA_DEFINES
Robert Yang [Tue, 27 Jan 2015 01:56:50 +0000 (17:56 -0800)]
perf: add LIBNUMA_DEFINES

Fixed:
WARNING: QA Issue: perf rdepends on numactl, but it isn't a build dependency? [build-deps]

The numactl is in meta-oe.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
10 years agoscreen: add PACKAGECONFIG for libutempter
Robert Yang [Mon, 26 Jan 2015 09:11:28 +0000 (01:11 -0800)]
screen: add PACKAGECONFIG for libutempter

Fixed:
WARNING: QA Issue: screen rdepends on libutempter, but it isn't a build dependency? [build-deps]

The libutempter is in meta-oe.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
10 years agodpkg: add perl to RDEPENDS
Robert Yang [Mon, 19 Jan 2015 08:21:58 +0000 (00:21 -0800)]
dpkg: add perl to RDEPENDS

perl scripts:
packages-split/dpkg/usr/bin/dpkg-parsechangelog:#!/usr/bin/perl
packages-split/dpkg/usr/bin/dpkg-mergechangelogs:#!/usr/bin/perl
packages-split/dpkg/usr/bin/dpkg-architecture:#!/usr/bin/perl
packages-split/dpkg/usr/bin/dpkg-vendor:#!/usr/bin/perl
packages-split/dpkg/usr/bin/dpkg-shlibdeps:#!/usr/bin/perl
packages-split/dpkg/usr/bin/dpkg-scanpackages:#!/usr/bin/perl
packages-split/dpkg/usr/bin/dpkg-buildpackage:#!/usr/bin/perl
packages-split/dpkg/usr/bin/dpkg-genchanges:#!/usr/bin/perl
packages-split/dpkg/usr/bin/dpkg-gensymbols:#!/usr/bin/perl
packages-split/dpkg/usr/bin/dpkg-distaddfile:#!/usr/bin/perl
packages-split/dpkg/usr/bin/dpkg-buildflags:#!/usr/bin/perl
packages-split/dpkg/usr/bin/dpkg-checkbuilddeps:#!/usr/bin/perl
packages-split/dpkg/usr/bin/dpkg-gencontrol:#!/usr/bin/perl
packages-split/dpkg/usr/bin/dpkg-scansources:#!/usr/bin/perl
packages-split/dpkg/usr/bin/dpkg-source:#!/usr/bin/perl
packages-split/dpkg/usr/bin/dpkg-name:#!/usr/bin/perl
packages-split/dpkg/usr/lib/dpkg/parsechangelog/debian:#!/usr/bin/perl

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
10 years agolib/oe/image.py: add error checking for missing IMAGE_CMD
Paul Eggleton [Tue, 27 Jan 2015 10:02:38 +0000 (10:02 +0000)]
lib/oe/image.py: add error checking for missing IMAGE_CMD

An invalid value in IMAGE_FSTYPES was triggering a traceback. Add a
check and a reasonable error message instead.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
10 years agoclasses/image: ensure uninstalled packages do not appear in manifests
Paul Eggleton [Mon, 26 Jan 2015 14:40:40 +0000 (14:40 +0000)]
classes/image: ensure uninstalled packages do not appear in manifests

Since the rewrite of the image construction code in python a few
releases ago, we remove a couple of packages from the image as one of
the final steps when constructing the image (notably update-rc.d and
run-postinsts).  However, because of the order of operations, these
packages are still listed both in the buildhistory
installed_package*.txt files and in the manifest file created next to
the image, which is wrong.

There were two possible solutions to this: (1) change the order such
that the uninstallation occurs before calling ROOTFS_POSTPROCESS_COMMAND
or (2) add another hook variable in such that we can have the
package list collection code run at the right time. Because it's
currently possible (but very much not recommended) to install additional
packages within ROOTFS_POSTPROCESS_COMMAND, which may have postinstall
scripts and thus require the packages we would otherwise uninstall if we
were to take option 1, option 2 is really the least likely to cause
problems. Therefore, add ROOTFS_POSTUNINSTALL_COMMAND and make the image
and buildhistory classes use it.

Fixes [YOCTO #6479].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
10 years agoclasses/image: skip recipe on invalid IMAGE_FEATURES item
Paul Eggleton [Mon, 26 Jan 2015 15:32:23 +0000 (15:32 +0000)]
classes/image: skip recipe on invalid IMAGE_FEATURES item

If you add an item to EXTRA_IMAGE_FEATURES in your local.conf that is
not supported by image.bbclass itself (such as "tools-sdk" which is
implemented in core-image.bbclass), it can be somewhat annoying to have
the parse fall over if you have a recipe that inherits image.bbclass
only. Change the error from bb.fatal to skip the recipe instead so that
you only see the error when attempting to build the recipe, plus add a
bit of logic to report if the feature is coming in via
EXTRA_IMAGE_FEATURES.

Fixes [YOCTO #5023].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
10 years agolib/oe/rootfs.py: rename _uninstall_uneeded to fix spelling error
Paul Eggleton [Mon, 26 Jan 2015 15:56:06 +0000 (15:56 +0000)]
lib/oe/rootfs.py: rename _uninstall_uneeded to fix spelling error

Rename it to _uninstall_unneeded.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
10 years agoclasses/image: drop unused default of MACHINE_POSTPROCESS_COMMAND
Paul Eggleton [Tue, 27 Jan 2015 11:26:33 +0000 (11:26 +0000)]
classes/image: drop unused default of MACHINE_POSTPROCESS_COMMAND

In the daisy (1.6) timeframe, when we rewrote the image construction in
Python, we neglected to reimplement the support for the little used and
undocumented variable MACHINE_POSTPROCESS_COMMAND, and apparently nobody
noticed. We have a better method for implementing machine-specific image
formats that is in wider use (i.e. add a custom class which implements
the new image type, add the class to IMAGE_CLASSES and the type to
IMAGE_FSTYPES), and we now also have wic. Thus it makes more sense to
just call this variable unsupported now and drop the sole remaining
reference to it.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
10 years agorecipetool: replace version in S value
Paul Eggleton [Wed, 28 Jan 2015 12:02:26 +0000 (12:02 +0000)]
recipetool: replace version in S value

If a versioned recipe filename is specified, replace the version in the
value of S with ${PV} just as we do with SRC_URI to make future upgrades
of the recipe easier.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agolibtool: Fix tools path issues
Richard Purdie [Tue, 3 Feb 2015 14:24:58 +0000 (14:24 +0000)]
libtool: Fix tools path issues

If for example you build on a machine with /bin/grep, then restore that sstate
onto a machine with /usr/bin/grep, things will fail. Simply don't bother
hardcoding paths.

This was lost during the libtool upgrade:

http://git.yoctoproject.org/cgit.cgi/poky/diff/meta/recipes-devtools/libtool/libtool/avoid_absolute_paths_for_general_utils.patch?id=d4e1862453b2a4c12400de0f43f08a9871a4de60

since the path to the files changed. This restores the previous behaviour.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoreport-error: Catch un-readable log data
Michael Wood [Tue, 3 Feb 2015 14:20:12 +0000 (14:20 +0000)]
report-error: Catch un-readable log data

If a log data cannot be decoded to utf-8 or read then handle this
gracefully. This can happen if a log file contains binary or something
goes wrong with the file open process.

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobuild-appliance-image: Update to master head revision
Richard Purdie [Mon, 2 Feb 2015 14:57:40 +0000 (14:57 +0000)]
build-appliance-image: Update to master head revision

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolibtool: 2.4.4 -> 2.4.5
Richard Purdie [Mon, 2 Feb 2015 14:03:06 +0000 (14:03 +0000)]
libtool: 2.4.4 -> 2.4.5

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agopython: Disables SSLv3
Sona Sarmadi [Fri, 16 Jan 2015 10:16:03 +0000 (11:16 +0100)]
python: Disables SSLv3

This is related to "SSLv3 POODLE vulnerability" CVE-2014-3566

Building python without SSLv3 support when openssl is built without
any support for SSLv3 (e.g. by adding EXTRA_OECONF = " -no-ssl3" in
the openssl recipes).

Backport from:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=768611#22
[python2.7-nossl3.patch] only Modules/_ssl.c is backported.

References:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=7015
https://bugzilla.yoctoproject.org/show_bug.cgi?id=6843
http://bugs.python.org/issue22638
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-3566

Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosed-native: drop
Paul Eggleton [Thu, 29 Jan 2015 13:24:09 +0000 (13:24 +0000)]
sed-native: drop

This was added back in the depths of history (around 2006 in OE-Classic)
when apparently the host sed couldn't always be relied upon. We now call
the host sed all over the place without this dependency and don't have
any problems. On the other hand, having it around can lead to races
where we're calling sed in one task and staging it to the sysroot in
another, the result being nasty failures compiling binutils for example.
Since it isn't needed, let's just drop it completely.

Fixes [YOCTO #7264].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobtrfs: create an empty file to build the fs in
Saul Wold [Fri, 30 Jan 2015 20:44:11 +0000 (12:44 -0800)]
btrfs: create an empty file to build the fs in

The newer btrfs-utils needs an empty file to build the filesystem in, so
create an empty file and use it for the mkfs to build the fs in.

[YOCTO #6804]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotzdata: update to 2015a including leap second
Armin Kuster [Sat, 31 Jan 2015 01:15:50 +0000 (17:15 -0800)]
tzdata: update to 2015a including leap second

Changes affecting future time stamps

The Mexican state of Quintana Roo, represented by America/Cancun,
will shift from Central Time with DST to Eastern Time without DST
on 2015-02-01 at 02:00.  (Thanks to Steffen Thorsen and Gwillim Law.)

Chile will not change clocks in April or thereafter; its new standard time
will be its old daylight saving time.  This affects America/Santiago,
Pacific/Easter, and Antarctica/Palmer.  (Thanks to Juan Correa.)

New leap second 2015-06-30 23:59:60 UTC as per IERS Bulletin C 49.
(Thanks to Tim Parenti.)

Changes affecting past time stamps
Iceland observed DST in 1919 and 1921, and its 1939 fallback
transition was Oct. 29, not Nov. 29.  Remove incorrect data from
Shanks about time in Iceland between 1837 and 1908.

Some more zones have been turned into links, when they differed
from existing zones only for older time stamps.  As usual,
these changes affect UTC offsets in pre-1970 time stamps only.
Their old contents have been moved to the 'backzone' file.
The affected zones are: Asia/Aden, Asia/Bahrain, Asia/Kuwait,
and Asia/Muscat.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotzcode: update to 2015a leap second changes too
Armin Kuster [Sat, 31 Jan 2015 01:15:49 +0000 (17:15 -0800)]
tzcode: update to 2015a leap second changes too

Changes affecting code

tzalloc now scrubs time zone abbreviations compatibly with the way
that tzset always has, by replacing invalid bytes with '_' and by
shortening too-long abbreviations.

tzselect ports to POSIX awk implementations, no longer mishandles
POSIX TZ settings when GNU awk is used, and reports POSIX TZ
settings to the user.  (Thanks to Stefan Kuhn.)

Changes affecting build procedure

'make check' now checks for links to links in the data.
One such link (for Africa/Asmera) has been fixed.
(Thanks to Stephen Colebourne for pointing out the problem.)

Changes affecting commentary
The leapseconds file commentary now mentions the expiration date.
(Problem reported by Martin Burnicki.)

Update Mexican Library of Congress URL.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobuild-appliance-image: update to head afe85485fe185b663a1285b5c27de3160bf06cf7
Cristian Iorga [Mon, 2 Feb 2015 12:34:09 +0000 (14:34 +0200)]
build-appliance-image: update to head afe85485fe185b663a1285b5c27de3160bf06cf7

Build Appliance includes a more recent
version of poky, up to commit:
afe85485fe185b663a1285b5c27de3160bf06cf7.

Fixes [YOCTO #7228].

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoscripts/send-error-report: Set exit code if error occurs
Richard Purdie [Thu, 29 Jan 2015 14:32:15 +0000 (14:32 +0000)]
scripts/send-error-report: Set exit code if error occurs

If an error occurs, set an error exit code so the world knows about it. This fixes
issues where the autobuilder doesn't notice these failures.

[YOCTO #7265]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agokernel: Fix depmod for multilib
Richard Purdie [Thu, 29 Jan 2015 14:35:08 +0000 (14:35 +0000)]
kernel: Fix depmod for multilib

Using populate_sysroot for this data was a nice idea but flawed as it
doesn't work in multilib builds. Instead we can use PKGDATA_DIR since
this is consistent over multilib builds. It also turns out to be
slightly neater code too. Hopefully this resolves the problem once and
for all.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoimage: Add missing depends on virtual/kernel for depmod data
Richard Purdie [Tue, 27 Jan 2015 15:24:52 +0000 (15:24 +0000)]
image: Add missing depends on virtual/kernel for depmod data

We need the depmod data so that the kernel depmod command works successfully
at rootfs time. The fact this was working inconsistently is now highlighted
after the command was made to error out. A simple test case is:

bitbake virtual/kernel image
bitbake vrituak/kernel -c clean
bitbake image -c rootfs -f

We fix it by adding the missing dependency, the data is in PKGDATA_DIR and
hence we use packagedata.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agosecurity_flags: disable PIE on expect
Ross Burton [Wed, 28 Jan 2015 12:40:07 +0000 (12:40 +0000)]
security_flags: disable PIE on expect

Disable PIE in expect as otherwise it tries to link the shared library as an
executable.

Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agologrotate: fix missing acl and libselinux dependencies
Andre McCurdy [Tue, 13 Jan 2015 00:56:27 +0000 (16:56 -0800)]
logrotate: fix missing acl and libselinux dependencies

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agodpkg: fix host contamination
Dan McGregor [Thu, 15 Jan 2015 15:41:14 +0000 (09:41 -0600)]
dpkg: fix host contamination

Force dpkg to use "tar" on the target.

The dpkg configure script looks for gnutar, gtar, and
tar in order. If it finds gnutar or gtar on the host
it expects to use that as its tar program on the target.
Without this, if gtar exists (as it does on my system) then
dpkg will consistently fail on the target with an error about
gtar not being found.

Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agocombo-layer: support updating up to arbitrary commit
Markus Lehtonen [Wed, 7 Jan 2015 16:00:42 +0000 (18:00 +0200)]
combo-layer: support updating up to arbitrary commit

Support defining the top commit up to which to update. In other words,
this makes it possible to update up to certain point other than the
branch head. The update point (git commitish) is given on the command
line by appending the component name(s) with a colon and the commitish,
e.g.
 $ combo-layer update my_component:sha1

Only the "update" action supports this.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agocombo-layer: minor refactor
Markus Lehtonen [Wed, 7 Jan 2015 16:00:41 +0000 (18:00 +0200)]
combo-layer: minor refactor

Change get_repos() to assume a list of repository names instead of full
list of command line arguments.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agolibunwind: Fix test case link failure on PowerPC with Altivec
Ting Liu [Wed, 14 Jan 2015 05:26:14 +0000 (13:26 +0800)]
libunwind: Fix test case link failure on PowerPC with Altivec

Signed-off-by: Ting Liu <ting.liu@freescale.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoudev: remove obsolete dependency on acl
Andre McCurdy [Mon, 12 Jan 2015 22:25:31 +0000 (14:25 -0800)]
udev: remove obsolete dependency on acl

udev_acl was removed from udev in v182.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoudev: fix missing dependency on glib-2.0-native
Andre McCurdy [Mon, 12 Jan 2015 22:25:30 +0000 (14:25 -0800)]
udev: fix missing dependency on glib-2.0-native

udev compile requires glib-genmarshal and glib-mkenums

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agobitbake.conf: add PKGDATA_DIR to BB_HASHBASE_WHITELIST
Ting Liu [Wed, 14 Jan 2015 09:16:09 +0000 (17:16 +0800)]
bitbake.conf: add PKGDATA_DIR to BB_HASHBASE_WHITELIST

In meta/conf/bitbake.conf, PKGDATA_DIR is default to:
PKGDATA_DIR = "${STAGING_DIR_HOST}/pkgdata"

But in meta/conf/multilib.conf, PKGDATA_DIR is set as:
PKGDATA_DIR = "${STAGING_DIR}/${MACHINE}/pkgdata"

When multilib enabled, linux-libc-headers cache will be machine
specific:
$ bitbake-diffsigs sstate-cache/1a/sstate:linux-libc-headers:ppce6500-poky-linux:3.17.7:r0:ppce6500:3:1a0c3934d91479fd7242a5b1d407d155_package.tgz.siginfo sstate-cache/28/sstate:linux-libc-headers:ppce6500-poky-linux:3.17.7:r0:ppce6500:3:28c918e8f9f4a4cfceb3a38b258f7501_package.tgz.siginfo
basehash changed from 8d3158bbddcee612fa30badd05f47b8e to 68ac258fc6c8e489f360fde3123a5894
Variable MACHINE value changed from 'b4420qds' to 'b4860qds'

Signed-off-by: Ting Liu <ting.liu@freescale.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agolinux-dummy: provide empty shared_workdir method
Koen Kooi [Wed, 21 Jan 2015 09:07:35 +0000 (10:07 +0100)]
linux-dummy: provide empty shared_workdir method

Perf.bb (among others) requires access to the kernel source, so have linux-dummy fake that as well. As before, perf will fail to build, but there are use cases where this patch is needed. For example a perf.bbappend that will always build it from the debian linux-tools tarball.

Using linux-dummy is still a bad, bad idea, but it shouldn't start breaking existing use cases.

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoelfutils_0.148.bb: CVE-2014-9447 fix
Li xin [Thu, 22 Jan 2015 06:41:20 +0000 (14:41 +0800)]
elfutils_0.148.bb: CVE-2014-9447 fix

Reference: http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-9447

Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agorecipes-qt: add x11 to required DISTRO_FEATURES
Martin Jansa [Thu, 22 Jan 2015 16:39:46 +0000 (17:39 +0100)]
recipes-qt: add x11 to required DISTRO_FEATURES

* it's not complete, but recipes depending on virtual/libx11 are easiest
  to spot, I've long list of PNBLACKLIST for all recipes which cannot
  be built in distro without x11 in DISTRO_FEATURES

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agolibpng: Upgrade to 1.6.16
Khem Raj [Tue, 27 Jan 2015 06:56:13 +0000 (22:56 -0800)]
libpng: Upgrade to 1.6.16

License checksum changed because of date change like below

-libpng versions 1.2.6, August 15, 2004, through 1.6.13, August 21, 2014, are
+libpng versions 1.2.6, August 15, 2004, through 1.6.16, December 22, 2014, are

Change-Id: I7a2a950ef06c0bd8950a65b273bde5c214e6d3c7
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agogmp: Change the SRC_URI to reflect upstream changed location
Khem Raj [Tue, 27 Jan 2015 06:56:12 +0000 (22:56 -0800)]
gmp: Change the SRC_URI to reflect upstream changed location

This avoid warnings during parse though it gets it from
yocto mirrors builds dont fail.

Change-Id: Idc33d14802862196a2094ef712781530b8a9b35b
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoicu: Upgrade to v54
Khem Raj [Tue, 27 Jan 2015 06:56:10 +0000 (22:56 -0800)]
icu: Upgrade to v54

The license checksum changed because instead of having
the license text in the local html file it is now
referred to as a href to url

Change-Id: Ifd93cbf4d22d2842c97e8c0d72d8a6378cf3b095
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agousbutils: Fix typo in md5sum
Khem Raj [Tue, 27 Jan 2015 06:56:09 +0000 (22:56 -0800)]
usbutils: Fix typo in md5sum

Change-Id: I69b8df20e368de777bce3739dd766e9857625d10
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoxserver-xorg: Add the patch to fix subwindow in Xi emulated events
Jun Zhu [Tue, 27 Jan 2015 03:12:16 +0000 (11:12 +0800)]
xserver-xorg: Add the patch to fix subwindow in Xi emulated events

Signed-off-by: Jun Zhu <R01007@freescale.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoudev-cache: avoid using '-L' for stat
Chen Qi [Tue, 27 Jan 2015 05:35:23 +0000 (13:35 +0800)]
udev-cache: avoid using '-L' for stat

stat command from stat package doesn't support '-L' option, so avoid
using it to get rid of boot errors like below.

Populating dev cache
stat: invalid option -- 'L'
Usage: stat [-l] [-f] [-s] [-v] [-h] [-t] [-c format] file1 [file2 ...]

[YOCTO #7210]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoutil-linux: move readprofile to match busybox
Saul Wold [Mon, 26 Jan 2015 17:49:30 +0000 (09:49 -0800)]
util-linux: move readprofile to match busybox

This change moves readprofile from /sbin -> /usr/sbin to match busybox,
the change allows update-alternative to correctly setup the links

[YOCTO #7225]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agolibsm: remove dependency on e2fsprogs
Chen Qi [Tue, 30 Dec 2014 09:11:57 +0000 (17:11 +0800)]
libsm: remove dependency on e2fsprogs

This patch is to solve the following circular dependency problem.

     systemd -> dbus -> libsm -> e2fsprogs -> util-linux -> systemd

libsm doesn't have any dependency on e2fsprogs. It might be some dependency
on util-linux's libuuid, controlled by configure options. So e2fsprogs should
be removed from the DEPENDS variable.

Ideally, we should add a PACKAGECONFIG for 'libuuid' for libsm. However, if
libsm depends on util-linux, we would have the circular dependency described
above. That's why this patch explicitly set '--without-libuuid' in EXTRA_OECONF.
libsm would still be working well because it would fall back to an internal
algorithm to do the uuid stuff.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
10 years agosystemd: remove util-linux from DEPENDS
Chen Qi [Tue, 30 Dec 2014 09:05:35 +0000 (17:05 +0800)]
systemd: remove util-linux from DEPENDS

Remove 'util-linux' from DEPENDS so that we don't have the following circular
dependency issue.

    systemd <--> util-linux

This dependency was first introduced into the recipe without saying any reason
about it. After checking the source files in systemd, I can guess that the
reason might be udev making use of libblkid. However, we actually have
./src/udev/udev-builtin-blkid.c. So this dependency is not necessary and could
be safely removed.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
10 years agoutil-linux: upgrade to 2.25.2
Chen Qi [Tue, 30 Dec 2014 07:39:06 +0000 (15:39 +0800)]
util-linux: upgrade to 2.25.2

fix-configure.patch is removed as it's not appropriate, and the new
version of util-linux has solved the problem this patch is trying to solve.

util-linux-ensure-the-existence-of-directory-for-PAT.patch is removed as
the new version of util-linux has solved the problem this patch is trying
to solve.

util-linux-native.patch is rebased.

util-linux-ng-replace-siginterrupt.patch is rebased.

Add PACKAGECONFIG for 'pylibmount' to build out python bindings for libmount
optionally. util-linux-pylibmount is added to PACKAGES if PACKAGECONFIG has
'pylibmount' in it.

Fix PACAGECONFIG for 'systemd' as the new version has changed things related
to systemd. Now util-linux would have a dependency on systemd if 'systemd' is
in PACKAGECONFIG.

Fix SYSTEMD_PACKAGES, SYSTEMD_SERVICE and SYSTEMD_AUTO_ENABLE variable to match
the new version.

Four lines in do_compile task are deleted because they caused do_compile failure
and nowhere in util-linux are they used. Corresponding files are also removed.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
10 years agolibav: drop older 0.8.* and use libav-9 by default
Martin Jansa [Fri, 8 Aug 2014 14:02:37 +0000 (16:02 +0200)]
libav: drop older 0.8.* and use libav-9 by default

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
10 years agolibpostproc: import from meta-oe
Martin Jansa [Wed, 10 Dec 2014 14:14:44 +0000 (15:14 +0100)]
libpostproc: import from meta-oe

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
10 years agogst-ffmpeg: add dependency on libpostproc
Martin Jansa [Sun, 20 Jul 2014 19:51:23 +0000 (21:51 +0200)]
gst-ffmpeg: add dependency on libpostproc

* building with libav-9 fails with:
  | checking for POSTPROC... configure: error: Package requirements (libpostproc libavcodec libavutil) were not met:
  |
  | No package 'libpostproc' found

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
10 years agoudev: don't keep ptest testdata laying around
Max Krummenacher [Sun, 25 Jan 2015 15:33:39 +0000 (16:33 +0100)]
udev: don't keep ptest testdata laying around

Only unpack udev's testdata right before executing the tests and cleanup
afterwards.

udev's testsuite can be used by ptest. However currently the testdata against
which its functionality is tested is installed in the sysroot at udev install
time.
If the sysroot is used with qemu the testdata makes qemu entering an infinite
loop.
http://lists.openembedded.org/pipermail/openembedded-core/2014-September/097098.html

This has already been fixed for the systemd udev flavour.
https://bugzilla.yoctoproject.org/show_bug.cgi?id=5664

Signed-off-by: Max Krummenacher <max.oss.09@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoudev: fix ptest rule syntax check
Max Krummenacher [Sun, 25 Jan 2015 15:33:38 +0000 (16:33 +0100)]
udev: fix ptest rule syntax check

The ptest which checks for correct udev rules fails.
Missing files and paths for the build host caused this.

Signed-off-by: Max Krummenacher <max.oss.09@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoltp: update to 20150119 release
Maxin B. John [Mon, 26 Jan 2015 15:01:00 +0000 (16:01 +0100)]
ltp: update to 20150119 release

Update LTP to 20150119 release
1. Remove 2 upstreamed patches
2. Add 'expect' to run time dependency and install the tests which
   depend on it.
3. ffsb related configuration problem was fixed in this release.

Signed-off-by: Maxin B. John <maxin.john@enea.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoorc : Update to 0.4.23.
Philip Balister [Mon, 26 Jan 2015 11:46:36 +0000 (06:46 -0500)]
orc : Update to 0.4.23.

Orc has moved to freedesktop.org, so the fetch URL changed. Dropped the .inc
file and PR from the recipe.

This version fixes a bug that led to problems on armhf abi builds.

https://bugzilla.gnome.org/show_bug.cgi?id=727464

Signed-off-by: Philip Balister <philip@balister.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agokernel-yocto.bbclass: Bug Fix inside do_kernel_checkout()
Theodor Gherzan [Thu, 15 Jan 2015 17:47:44 +0000 (17:47 +0000)]
kernel-yocto.bbclass: Bug Fix inside do_kernel_checkout()

--047d7b3a7fac0eebee050cb47483
Content-Type: text/plain; charset="UTF-8"

 After we check the existence of 'machine_branch' with 'git show-ref'
 the following if statement should change the 'machine_branch'
 to the default (i.e. master) if the 'git show-ref' has returned an
 exit code that is not 0, not the other way around.

Signed-off-by: Theodor Gherzan <theodor@resin.io>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoarch-mips.inc: Change definition of TRANSLATED_TARGET_ARCH
Mark Hatle [Thu, 22 Jan 2015 04:45:28 +0000 (22:45 -0600)]
arch-mips.inc: Change definition of TRANSLATED_TARGET_ARCH

[YOCTO #7230]

In certain system configurations TRANSLATED_TARGET_ARCH will not
expand in the right order for gcc-cross-candian-mips64n32 to be
generated properly.

This will cause SDKs to fail to generate properly.

Changing the global definition of TRANSLATED_TARGET_ARCH always
expands the ABIEXTENSION, which causes the OVERRIDES to pick it up
as well.  This effectively defines a new class of overrides for the 'n32'.

The side effect is that we need to duplicate some mips64 overrides, and
redefine others that were previously 'n32' or 'mips64' exclusive to have
the correct semantics.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
10 years agofeature-arm-thumb.inc: Remove extra space on thumb override
Mark Hatle [Wed, 14 Jan 2015 19:30:42 +0000 (13:30 -0600)]
feature-arm-thumb.inc: Remove extra space on thumb override

The extra space makes the overrides look like "foo:bar: thumb:foobar".

This may prevent thumb from working properly, and the space was never
intended in the original fix.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
10 years agodmidecode: add powerpc64 to compatible host
Jackie Huang [Sat, 24 Jan 2015 07:52:43 +0000 (15:52 +0800)]
dmidecode: add powerpc64 to compatible host

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agogcc-sanitizers: fix licensing
Dan McGregor [Fri, 23 Jan 2015 19:05:15 +0000 (13:05 -0600)]
gcc-sanitizers: fix licensing

The sanitizer runtime library is dual-licensed under the NCSA
and MIT licenses.

Also make nativesdk-gcc-sanitizers use SDKGCCVERSION by default
instead of GCCVERSION

Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agobinconfig-disabled: install config scripts in sysroot
Patrick Ohly [Fri, 23 Jan 2015 14:48:18 +0000 (06:48 -0800)]
binconfig-disabled: install config scripts in sysroot

The purpose of binconfig-disabled is to manipulate config scripts such that
using them causes errors. But that only works when the modified config script
really gets installed in the sysroot. That is not the case with the staging
code in binconfig.bbclass.

Only patched config files get staged. For that reason it seemed more
appropriate to change binconfig-disabled instead of binconfig.

The reason for the change was the observation that the swig recipe needs
pcre-config installed on the host system. Staging pcre-config removes that
host dependency. swig did not actually end up *using* the pcre-config from the
host, because later during do_compile the patched configure.ac is used to
re-generate configure.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agobinconfig-disabled: try harder to prevent usage of config scripts
Patrick Ohly [Fri, 23 Jan 2015 14:48:17 +0000 (06:48 -0800)]
binconfig-disabled: try harder to prevent usage of config scripts

Returning a non-zero exit code is not enough to cause errors when configure
scripts call the patched config scripts: for example, swig's configure script
uses PCRE_LIBS=`$PCRE_CONFIG --libs` and does not abort on errors. Using empty
output may then succeed, for example when the required library is available
indirectly.

Returning some nonsense command line arguments covers such cases, because
using them will definitely lead to errors during compilation. The faked
arguments were chosen such that these errors can be linked back to the root
cause.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agolighttpd: Use PACKAGECONFIG to enable openssl
Qian Lei [Thu, 22 Jan 2015 06:01:09 +0000 (14:01 +0800)]
lighttpd: Use PACKAGECONFIG to enable openssl

Enabled openssl defalutly to use https, just like ubuntu do.

Signed-off-by: Qian Lei <qianl.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoeglibc-use-option-groups.patch: Various fixups
Juro Bystricky [Sun, 23 Nov 2014 17:44:17 +0000 (09:44 -0800)]
eglibc-use-option-groups.patch: Various fixups

Build suppport for mutibyte character handling only when
__OPTION_EGLIBC_LOCALE_CODE evaluates to 1.
Fixes missing .out suffix for several tests to be built.
Fixes building of locales needed for several tests. Do not use
cross-localedef to build locales. Use localedef built with the
newly built libgc instead.

Fixes:
[YOCTO #6809] [YOCTO #6796] [YOCTO #6797]

Signed-off-by: Juro Bystricky <jurobystricky@hotmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agopython-smartpm: Fix attemptonly builds when file conflicts occur
Mark Hatle [Thu, 22 Jan 2015 22:10:34 +0000 (16:10 -0600)]
python-smartpm: Fix attemptonly builds when file conflicts occur

[YOCTO #7299]

When file conflicts occur, the RPM transaction aborts.  Instead of
simply accepting the failure, we now identify, capture, and remove
the offending package(s) from the transaction and retry.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agou-boot-fw-utils: Fix the cross build
Otavio Salvador [Fri, 23 Jan 2015 01:18:27 +0000 (23:18 -0200)]
u-boot-fw-utils: Fix the cross build

This merges the u-boot-fw-utils-cross into the main u-boot-fw-utils
recipe and fixes the build failure seen since 2014.07 update.

The cross package now is handled using an extended class instead of a
duplicated recipe.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agolibidn_0.6.14: fix the QA Issue
Lei Maohui [Fri, 23 Jan 2015 04:15:11 +0000 (12:15 +0800)]
libidn_0.6.14: fix the QA Issue

To fix the QA Issue as following:
ERROR: QA Issue: libidn: Files/directories were installed but not shipped
  /usr/share/emacs
  /usr/share/emacs/site-lisp
  /usr/share/emacs/site-lisp/punycode.el
  /usr/share/emacs/site-lisp/idna.el [installed-vs-shipped]

Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoglibc: CVE-2014-9402 endless loop in getaddr_r
Armin Kuster [Wed, 21 Jan 2015 20:43:11 +0000 (12:43 -0800)]
glibc: CVE-2014-9402 endless loop in getaddr_r

The getnetbyname function in glibc 2.21 in earlier will enter an infinite loop
if the DNS backend is activated in the system Name Service Switch
configuration, and the DNS resolver receives a positive answer while processing
the network name.

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agonss: update package to 3.17.3 and build fix
Armin Kuster [Thu, 22 Jan 2015 07:48:21 +0000 (23:48 -0800)]
nss: update package to 3.17.3 and build fix

Update includes:
CVE-2014-1569
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-1569

for changelog information see
https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/NSS_3.17.3_release_notes

We had a build failure on 32 bit hosts so including a patch from:
 http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=mhatle/dora-misc

Wenzong Fan (1):
  nss: workaround multilib build on 32bit host

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoboost: Avoid to use local host configuration
Fabien Proriol [Thu, 22 Jan 2015 14:07:48 +0000 (15:07 +0100)]
boost: Avoid to use local host configuration

Signed-off-by: Fabien Proriol <fabien.proriol@jdsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoimage_types.bbclass: manage 'cpio_append' directory
Enrico Scholz [Thu, 22 Jan 2015 16:13:01 +0000 (17:13 +0100)]
image_types.bbclass: manage 'cpio_append' directory

For cpio images, do_rootfs() can operate on a dirty '${WORKDIR}/cpio_append'
directory which contains e.g. files from previous builds.  This can cause
unwanted files in the image or can break the build.

E.g. when there is a cpio_append/init -> /sbin/init symlink symlink, the
'ln -sf' can fail due to SELinux restrictions:

| $ ls -la cpio_append/init
| lrwxrwxrwx. 1 ensc ensc 10 22. Jan 16:26 cpio_append/init -> /sbin/init
|
| $ strace ln -sf /sbin/init cpio_append/init
| ...
| stat("cpio_append/init", 0x7fffbb9ca310) = -1 EACCES (Permission denied)
| exit_group(1)                           = ?

Patch cleans up 'cpio_append' before executing the 'do_rootfs' task by
adding it to 'cleandirs'.  An alternative implementation (which avoids
creation of this empty dir for non-cpio images) might remove it within
IMAGE_CMD_cpio, but this might break builds where people rely on the
existence of this directory (e.g. to add local files).

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agoimage_types.bbclass: fixed 'init' creation for cpio images
Enrico Scholz [Thu, 22 Jan 2015 16:13:00 +0000 (17:13 +0100)]
image_types.bbclass: fixed 'init' creation for cpio images

When /init is a dangling symlink or a symlink to a file which can not be
stated on the build system (e.g. due to SELinux restrictions), the '[ !
-e .../init ]' test will succeed which causes the manual creation of
/init.

E.g. here:

| $ ls -la cpio_append/init
| lrwxrwxrwx. 1 ensc ensc 10 22. Jan 16:26 cpio_append/init -> /sbin/init
|
| $ strace /bin/test -e  cpio_append/init
| stat("cpio_append/init", 0x7fff374a9db0) = -1 EACCES (Permission denied)
| exit_group(1)                           = ?

To test for the existence of a file, both '-L' and '-e' checks must be
executed and to prevent SELinux noise, the '-L' should happen before
'-e'.

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agokmod: new PACKAGECONFIG debug and logging to help reduce binary size.
Gustavo Sverzut Barbieri [Wed, 21 Jan 2015 20:00:57 +0000 (18:00 -0200)]
kmod: new PACKAGECONFIG debug and logging to help reduce binary size.

debug and logging will make kmod and its library bigger than expected
due many strings in the resulting binaries. While these are useful for
development, they are of no use for deployment.

With them enabled kmod is 154Kb, libkmod is 99Kb. Disabling reduces to
kmod 139Kb (10%) and libkmod 83Kb (19%) on i586 stripped.

Signed-off-by: Bruno Bottazzini <bruno.bottazzini@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
10 years agobase-passwd: Don't replace $ variables in passwd and group files
Pascal Bach [Wed, 21 Jan 2015 19:30:25 +0000 (11:30 -0800)]
base-passwd: Don't replace $ variables in passwd and group files

This allows the usage of "$type$salt$encrypted_password" passwords in the passwd file.

Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>