]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
11 years agobuildstats: use TaskBase time for elapsed time
Marius Avram [Mon, 17 Mar 2014 15:04:10 +0000 (15:04 +0000)]
buildstats: use TaskBase time for elapsed time

To avoid any further inconsistencies between buildstats and buildinfohelper
from toaster, buildstats will measure task duration using the time field
from within the TaskBase events: TaskStarted and TaskSucceeded/TaskFailed.

Signed-off-by: Marius Avram <marius.avram@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agostaging: Save out provider information into the sysroot
Richard Purdie [Thu, 20 Mar 2014 11:39:20 +0000 (11:39 +0000)]
staging: Save out provider information into the sysroot

This patch saves out provider information into the sysroot for all providers
except those in MULTI_PROVIDER_WHITELIST. This means that we will start seeing
warnings when two providers for the same thing are installed into the sysroot.

In the future those warnings can be turned into errors.

Partially addresses [YOCTO #4102]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoarchiver.bbclass: emit patch series files for original src
Robert Yang [Mon, 24 Mar 2014 05:39:27 +0000 (13:39 +0800)]
archiver.bbclass: emit patch series files for original src

Emit patch series files for original src so that the user knows how to
apply the patch orderly.

[YOCTO #5113]

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoarchiver.bbclass: make it can filter the license
Robert Yang [Mon, 24 Mar 2014 05:39:26 +0000 (13:39 +0800)]
archiver.bbclass: make it can filter the license

* Filter the license (default: no), the recipe whose license in
  COPYLEFT_LICENSE_INCLUDE will be included, and in
  COPYLEFT_LICENSE_EXCLUDE will be excluded.

* The user can set the recipe type that would be archived (native,
  target, and so on), deafult to all.

The copyleft_filter.bbclass is come from copyleft_compliance.bbclass,
which is used by both copyleft_compliance.bbclass and archiver.bbclass.

[YOCTO #5740]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogtk-engines: move engine schemas to a dedicated package
Ross Burton [Fri, 21 Mar 2014 18:21:59 +0000 (18:21 +0000)]
gtk-engines: move engine schemas to a dedicated package

The GTK+ engine schemas are not insignicant in size but also mostly useless.
Put them in a sub-package instead of PN so they only get installed when
explicitly required.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogtk-engines: don't inherit gtk-icon-cache
Ross Burton [Fri, 21 Mar 2014 18:21:58 +0000 (18:21 +0000)]
gtk-engines: don't inherit gtk-icon-cache

This was accidently left in and can be removed.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoutil-linux: build setpriv requires libcap-ng
Robert Yang [Mon, 24 Mar 2014 09:24:17 +0000 (05:24 -0400)]
util-linux: build setpriv requires libcap-ng

There might a failure when build util-linux with the meta-selinux layer:

[snip]
sys-utils/setpriv.c:21:20: fatal error: cap-ng.h: No such file or directory
 #include <cap-ng.h>
                    ^
compilation terminated.
[snip]

Use PACKAGECONFIG to fix the problem.

[YOCTO #6026]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoconnman: upgrade to 1.22
Jonathan Liu [Mon, 24 Mar 2014 00:23:02 +0000 (11:23 +1100)]
connman: upgrade to 1.22

Highlights:
- If VPN is split routed and not the default service, then allow
  DNS queries also to be sent to VPN DNS server.
- Session API fixes
- Memory leak fixes
- Crash fixes
- NTP kiss-of-death packet support
- Support for full USB gadget networking. Now USB gadget network can
  be used without tethering.

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibsoup-2.4: fix compiling failed while mips-gcc optimization enabled
Hongxu Jia [Mon, 24 Mar 2014 08:38:35 +0000 (16:38 +0800)]
libsoup-2.4: fix compiling failed while mips-gcc optimization enabled

There was an error about mips-gcc optimization while compiling
libsoup-2.4 2.45.3 with DEBUG_OPTIMIZATION enabled.

The test code of libsoup-2.4 2.45.3 triggered gcc assert which located
in gcc/dwarf2out.c:20810:
...
20806       gcc_assert (prev
20807                   && (CALL_P (prev)
20808                       || (NONJUMP_INSN_P (prev)
20809                           && GET_CODE (PATTERN (prev)) == SEQUENCE
20810                           && CALL_P (XVECEXP (PATTERN (prev), 0, 0)))));
...

The issue test code is the C function 'do_qvalue_tests' located in
tests/header-parsing.c.

The 2.45.92 have refactored the test code and this issue has been fixed.
So backport the fix to 2.45.3.

[YOCTO #5512]
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoacl: fix the order of expected output of getfacl
Chong Lu [Mon, 24 Mar 2014 08:12:47 +0000 (16:12 +0800)]
acl: fix the order of expected output of getfacl

The result of getfacl is sorted by user id.
In Centos or RHEL, bin user id is 1 and daemon user id is 2.
But in our image, bin user id is 2 and daemon user id is 1.
The patch fixes this issue to make ptest pass.

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobusybox: disable fsck.minix and mkfs.minix
Jonathan Liu [Sun, 23 Mar 2014 04:35:53 +0000 (15:35 +1100)]
busybox: disable fsck.minix and mkfs.minix

The MINIX and MINIX 2 filesystems are not really used anymore.

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoclasses/image: ignore modules.* changing during multilib image construction
Paul Eggleton [Fri, 21 Mar 2014 18:02:39 +0000 (18:02 +0000)]
classes/image: ignore modules.* changing during multilib image construction

Since we now run depmod when building images (as the postinst that does
this is now on kernel-base instead of kernel-image) it is possible to
have module file differences between the two halves of the multilib image,
and the code that checks for such differences detects this and fails.
Whitelist this file to avoid the failure.

Specifically, modules.alias, modules.dep and modules.symbol can differ
along with their .bin counterparts.

Related to fix for [YOCTO #5392].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoclasses/kernel: move module postinst commands to kernel-base
Paul Eggleton [Fri, 21 Mar 2014 18:02:38 +0000 (18:02 +0000)]
classes/kernel: move module postinst commands to kernel-base

Since kernel-base is the package that contains the files that depmod
needs to run, we should be running depmod from the kernel-base
postinstall rather than kernel-image.

Fixes [YOCTO #5392].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogtk-engines: removed gnome inheritance
Ross Burton [Fri, 21 Mar 2014 00:25:07 +0000 (00:25 +0000)]
gtk-engines: removed gnome inheritance

Remove gconf class (via gnome) to fix WARN-QA message regarding
--disable-install-schemas option.  Add missing intltool-native build dependency
that previously came through gnome.bbclass.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoclasses/image: disable pam nullok_secure with debug-tweaks
Paul Eggleton [Fri, 21 Mar 2014 16:31:31 +0000 (16:31 +0000)]
classes/image: disable pam nullok_secure with debug-tweaks

If you want passwordless logins to work with pam enabled, then you can't
have "nullok_secure" enabled on pam_unix entries. Add some
postprocessing to change these to "nullok" when debug-tweaks is in
IMAGE_FEATURES, in order to make passwordless logins with PAM work
again.

Fixes [YOCTO #5973].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolocal.conf.sample.extended: update for the archiver
Robert Yang [Mon, 13 Jan 2014 13:15:47 +0000 (21:15 +0800)]
local.conf.sample.extended: update for the archiver

Updated it since we have refactored the archiver.bbclass.

[YOCTO #5113]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agoarchiver.bbclass: move a few code to copyleft_compliance.bbclass
Robert Yang [Mon, 13 Jan 2014 11:06:00 +0000 (19:06 +0800)]
archiver.bbclass: move a few code to copyleft_compliance.bbclass

Move the code which is only used by copyleft_compliance.bbclass from
archiver.bbclassc, and remove the "inherit archiver" from
copyleft_compliance.bbclass.

The archiver.bbclass is used for archiving various types of sources, but
the copyleft_compliance.bbclass is used for analysing the license, they
don't have much relationships.

[YOCTO #4986]
[YOCTO #5113]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agopackage_rpm.bbclass: archive the source to srpm package
Robert Yang [Mon, 13 Jan 2014 10:46:43 +0000 (18:46 +0800)]
package_rpm.bbclass: archive the source to srpm package

The archiver.bbclass will put the sources to ARCHIVER_OUTDIR according
to configuration, then the rpmbuild -bs will create the srpm.

[YOCTO #4986]
[YOCTO #5113]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agoarchiver.bbclass: refactor it
Robert Yang [Sun, 5 Jan 2014 14:58:09 +0000 (22:58 +0800)]
archiver.bbclass: refactor it

The archiver didn't work, and there were a few problems, for example:
1) There was no src_dir.org (or orig), but the diff command still use it
2) There were a few duplicated code
3) It didn't archive the source for the native or gcc
4) The work flow is not very well
5) The "subprocess.call('fakeroot cp xxxx'" should be removed
6) And others ...

So that we have to refactor it, the benefits are:
1) Fix the problems and make it work well.
2) Reduce more than 300 lines
3) Make it easy to use.

Hre are the explanation about the bbclass:
This bbclass is used for creating archive for:
1) original (or unpacked) source: ARCHIVER_MODE[src] = "original"
2) patched source: ARCHIVER_MODE[src] = "patched" (default)
3) configured source: ARCHIVER_MODE[src] = "configured"
4) The patches between do_unpack and do_patch:
   ARCHIVER_MODE[diff] = "1"
   And you can set the one that you'd like to exclude from the diff:
   ARCHIVER_MODE[diff-exclude] ?= ".pc autom4te.cache patches"
5) The environment data, similar to 'bitbake -e recipe':
   ARCHIVER_MODE[dumpdata] = "1"
6) The recipe (.bb and .inc): ARCHIVER_MODE[recipe] = "1"

All of the above can be packed into a .src.rpm package: (when PACKAGES
!= "")
ARCHIVER_MODE[srpm] = "1"

[YOCTO #4986]
[YOCTO #5113]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agoclasses/archive*.bbclass: remove archive-*-source.bbclass
Robert Yang [Sat, 4 Jan 2014 13:02:30 +0000 (21:02 +0800)]
classes/archive*.bbclass: remove archive-*-source.bbclass

Nearly all of the codes in the following 3 files are the same, we can
move the code to archiver.bbclass and remove them:

  archive-configured-source.bbclass
  archive-original-source.bbclass
  archive-patched-source.bbclass

[YOCTO #5113]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
11 years agognome-doc-utils: removed gconf inheritance
Alexandru Palalau [Tue, 11 Mar 2014 13:31:27 +0000 (13:31 +0000)]
gnome-doc-utils: removed gconf inheritance

In order to remove WARN-QA message regarding --disable-schemas-install configure option.

Signed-off-by: Alexandru Palalau <alexandrux.palalau@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogsettings-desktop-schemas: removed unneeded class inheritance
Alexandru Palalau [Tue, 11 Mar 2014 13:27:46 +0000 (13:27 +0000)]
gsettings-desktop-schemas: removed unneeded class inheritance

Removed gconf, gtk-icon-cache and mime classes as they are not needed

Signed-off-by: Alexandru Palalau <alexandrux.palalau@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agognome-mime-data: removed gconf and gtk-icon-cache inheritance
Alexandru Palalau [Tue, 11 Mar 2014 13:24:57 +0000 (13:24 +0000)]
gnome-mime-data: removed gconf and gtk-icon-cache inheritance

Should remove WARN-QA message regarding --disable-schemas-install.
gtk-icon-cache is not needed.

Signed-off-by: Alexandru Palalau <alexandrux.palalau@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogst-plugins-gl: removed gconf inheritance
Alexandru Palalau [Tue, 11 Mar 2014 13:19:21 +0000 (13:19 +0000)]
gst-plugins-gl: removed gconf inheritance

In order to remove WARN-QA message regarding --disable-schemas-install configure option.

Signed-off-by: Alexandru Palalau <alexandrux.palalau@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agognome-desktop: removed gconf inheritance
Alexandru Palalau [Tue, 11 Mar 2014 11:51:52 +0000 (11:51 +0000)]
gnome-desktop: removed gconf inheritance

In order to remove WARN-QA message regarding --disable-schemas-install configure option.

Signed-off-by: Alexandru Palalau <alexandrux.palalau@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agocore-image-minimal: allow user to set size
Trevor Woerner [Thu, 20 Mar 2014 21:06:38 +0000 (17:06 -0400)]
core-image-minimal: allow user to set size

Allow the user, in their local configuration, to override the size of the
final image. This is useful when creating an image for (for example) an SD
card and the user wants the image to fill up the card as much as possible.

Signed-off-by: Trevor Woerner <trevor.woerner@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopython3: sync module dependencies from 2.7
Paul Eggleton [Thu, 20 Mar 2014 17:41:39 +0000 (17:41 +0000)]
python3: sync module dependencies from 2.7

These have been added recently to 2.7 but were missing in the 3.3
script/inc file.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
11 years agogenerate-manifest-3.3.py: sync descriptions with 2.7 version
Paul Eggleton [Thu, 20 Mar 2014 17:23:08 +0000 (17:23 +0000)]
generate-manifest-3.3.py: sync descriptions with 2.7 version

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
11 years agolibsdl: add missing libglu dependency for openGL
Koen Kooi [Fri, 14 Mar 2014 14:31:27 +0000 (15:31 +0100)]
libsdl: add missing libglu dependency for openGL

Configure checks for glu.h to determine if openGL is available.

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agokernel-arch.bbclass: add arm64 support to U-Boot architecture map
Fathi Boudra [Thu, 20 Mar 2014 17:49:35 +0000 (19:49 +0200)]
kernel-arch.bbclass: add arm64 support to U-Boot architecture map

to define UBOOT_ARCH, we map kernel architectures to U-Boot architectures.
In the case of arm64 kernel, we should map to arm U-boot architecture.

This patch add the exception rule to the map_uboot_arch function.

Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agorunqemu: Add option for custom BIOS directory
Ricardo Neri [Thu, 20 Mar 2014 19:35:33 +0000 (12:35 -0700)]
runqemu: Add option for custom BIOS directory

Add support to specify a directory for custom BIOS, VGA BIOS and
keymaps as supported by qemu (-L option). Even though this can be
done through qemuparams, having this option provides better user
experience by not having to specify a long and cluttered path along
with other qemuparams that the user might want to specify.

This new options assumes first that the path provided is relative to
OECORE_NATIVE_SYSROOT and will check whether it exists before proceeding.
If not, it will treat the provided path as absolute. This provides
the user flexibility to use BIOS binaries generated inside or outside
the OE build environment.

Signed-off-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobase-files: use /dev/root in /etc/fstab for systemd support
Jonathan Liu [Wed, 19 Mar 2014 23:05:04 +0000 (10:05 +1100)]
base-files: use /dev/root in /etc/fstab for systemd support

systemd does not recognize "rootfs" in /etc/fstab so the root
filesystem is not checked. As a result, the following message
is logged by journalctl:
systemd-fstab-generator[68]: Checking was requested for "rootfs", but it
is not a device

Changing "rootfs" to "/dev/root" in /etc/fstab allows systemd to
check the root filesystem when the kernel is booted with the root
filesystem mounted read-only.

[YOCTO #5950]

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotclibc-uclibc: Changing assignment to conditional variable assignment
Andrey Belous [Wed, 12 Mar 2014 18:57:03 +0000 (14:57 -0400)]
tclibc-uclibc: Changing assignment to conditional variable assignment

Setting of a variable PREFERRED_PROVIDER_virtual/libc only if it doesn't have a value

Signed-off-by: Andrey Belous <abelous@broadcom.com>
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopulseaudio: Upgrade 4.0 -> 5.0
Khem Raj [Tue, 18 Mar 2014 17:04:44 +0000 (10:04 -0700)]
pulseaudio: Upgrade 4.0 -> 5.0

bluetooth-proximity has been removed in 5.0

pulseaudio now differentiates between bluez4 and bluez5

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosstate: list missing files for toaster
Alexandru DAMIAN [Mon, 17 Mar 2014 15:04:09 +0000 (15:04 +0000)]
sstate: list missing files for toaster

Toaster needs to record the attempts to restore
setscene tasks that don't have a sstate file.

We build a list of tasks for which we can't find an
sstate file, and if we're running under Toaster data
collection, we send it off with a MetadataEvent.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotoaster.bbclass: read the data needed for license manifest path
Cristiana Voicu [Mon, 17 Mar 2014 15:04:08 +0000 (15:04 +0000)]
toaster.bbclass: read the data needed for license manifest path

The license.manifest file is located in DEPLOY_DIR_IMAGE/licenses/
IMAGE_NAME dir. The data needed is collected after rootfs task.

[YOCTO #5649]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogcc-runtime: Build libatomic
Cosmin Paraschiv [Fri, 7 Mar 2014 13:39:04 +0000 (15:39 +0200)]
gcc-runtime: Build libatomic

GCC 4.8 includes a new runtime library, libatomic, which supports
atomic operations not supported by hardware or the OS. Build it,
so other packages can link against it, if needed.

Signed-off-by: Cosmin Paraschiv <cosmin.paraschiv@freescale.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoimage_types.bbclass: use 4096 instead of 8192 bytes-per-inode
Robert Yang [Wed, 19 Mar 2014 09:23:53 +0000 (17:23 +0800)]
image_types.bbclass: use 4096 instead of 8192 bytes-per-inode

The image not correctly created if 'ptest-pkgs' is in IMAGE_FEATURES,
this is because there is no free inode left. We can use 4096 instead of
8192 bytes-per-inode to fix the problem, and most of the distributions
us 4096, such as Ubuntu, Suse, Fedora and CentOS.

There are another problems:
* There are error message when there is no free inode left if we run the
  mke2fs command manually, but they are not in log.do_rootfs.

* The image generation doesn't stop when error happens because mke2fs
  doesn't return failed for this case.

Will fix them in other threads.

[YOCTO #5957]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobuildhistory.bbclass: create proper dependency files for SDK
Laurentiu Palcu [Tue, 18 Mar 2014 11:19:20 +0000 (11:19 +0000)]
buildhistory.bbclass: create proper dependency files for SDK

The old functions were calling the list_installed_packages() wrapper
function that only listed the packages in an image rootfs. Even for
target/host SDK. Also, a python crash was possible if 'bitbake -c
populate_sdk core-image-*' was called without calling 'bitbake
core-image-*' first. That's because the wrapper was always looking into
the image rootfs...

This commit fixes the problem and calls the right wrapper for image/sdk.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoimage.bbclass, license.bbclass: adjust the name of list_installed_packages()
Laurentiu Palcu [Tue, 18 Mar 2014 11:17:09 +0000 (11:17 +0000)]
image.bbclass, license.bbclass: adjust the name of list_installed_packages()

The old wrapper got renamed to image_list_installed_packages().

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agorootfs.py, sdk.py: adjust/create the wrappers for creating installed packages list
Laurentiu Palcu [Tue, 18 Mar 2014 11:09:56 +0000 (11:09 +0000)]
rootfs.py, sdk.py: adjust/create the wrappers for creating installed packages list

Since we created a new PkgsList object that will deal with listing the
installed packages in a rootfs, use the new class both for images and
SDKs in the wrapper functions.

The old list_installed_packages() wrapper listed only the packages inside
an image rootfs. It didn't deal with target/host SDK rootfs's.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackage_manager.py: create separate class for installed packages listing
Laurentiu Palcu [Tue, 18 Mar 2014 11:03:51 +0000 (11:03 +0000)]
package_manager.py: create separate class for installed packages listing

This commit creates a new class that has the only purpose to generate
various listings of installed packages in the rootfs.

Basically, the methods involved in listing the installed packages, that
were part of each backend PM class implementation, were moved to this
new class.

This change avoids instantiating a new PM object just to get the list of
installed packages in a certain rootfs.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-dummy: provide kernel-modules (empty) package
Matthieu Crapet [Wed, 19 Mar 2014 15:46:09 +0000 (16:46 +0100)]
linux-dummy: provide kernel-modules (empty) package

Like it is done in kernel.bbclass

Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agocogl-1.0 : Update to 1.16.2 release
Prabhu Sundararaj [Wed, 19 Mar 2014 16:24:42 +0000 (13:24 -0300)]
cogl-1.0 : Update to 1.16.2 release

Signed-off-by: Prabhu Sundararaj <prabhu.sundararaj@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogsettings-desktop-schemas: Updated to 3.10.1.bb
Prabhu Sundararaj [Wed, 19 Mar 2014 16:24:40 +0000 (13:24 -0300)]
gsettings-desktop-schemas: Updated to 3.10.1.bb

Signed-off-by: Prabhu Sundararaj <prabhu.sundararaj@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agocairo: Add 'egl' and 'glesv2' PACKAGECONFIG options
Otavio Salvador [Wed, 19 Mar 2014 16:24:41 +0000 (13:24 -0300)]
cairo: Add 'egl' and 'glesv2' PACKAGECONFIG options

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoscripts/cleanup-workdir: Fix a comment typo
Otavio Salvador [Wed, 19 Mar 2014 16:24:39 +0000 (13:24 -0300)]
scripts/cleanup-workdir: Fix a comment typo

 s/Romve/Remove/

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoe2fsprogs: return error when failed to populate fs
Robert Yang [Thu, 20 Mar 2014 06:08:43 +0000 (14:08 +0800)]
e2fsprogs: return error when failed to populate fs

We need return retval when "mke2fs -d" failed, otherwise the "$?" would
be 0 which is misleading.

[YOCTO #6011]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoalsa-tools: fix build when x11 and gtk+ not available
Simone Agresta [Tue, 18 Mar 2014 15:27:30 +0000 (15:27 +0000)]
alsa-tools: fix build when x11 and gtk+ not available

 Updated patch to work with alsa-tools version 1.0.27

Signed-off-by: Simone Agresta <simone.agresta@bticino.it>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoperf: add libexec and traceevent to packages
Bruce Ashfield [Wed, 12 Mar 2014 20:30:40 +0000 (20:30 +0000)]
perf: add libexec and traceevent to packages

Recent versions of perf may install files into /usr/libexec/perf-core and in
/usr/lib/traceevent. To avoid packaging QA errors, we add these two
directories to the FILES variables.

We also add: INHIBIT_PACKAGE_DEBUG_SPLIT="1" to avoid the following issue
(due to a trailing / being removed):

   ERROR: debugedit failed with exit code 256
   ...
   debugedit: canonicalization unexpectedly shrank by one character

And finally, we must ensure that the traceevent libraries are installed to
the proper multilib library path. If building some multlibs, the incorrect
library path will be selected by perf, since it triggers via: ifeq
($(ARCH),x86_64) (or similiar mechanism per arch).

In a 32 bit build, with a 64 bit multilib, the arch won't match and the
detection of a 64 bit build (and library) are not exected. To ensure that
libraries are installed to the correct location, we can make the substitution
in the config/Makefile. For non multilib builds, this has no impact.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agofontcache.bbclass: add fontconfig-utils runtime dependency
Matthieu Crapet [Thu, 20 Mar 2014 09:18:38 +0000 (10:18 +0100)]
fontcache.bbclass: add fontconfig-utils runtime dependency

In an image recipe, you can get a warning, for example:
WARNING: The postinstall intercept hook 'update_font_cache' failed (exit code: 1)! See log for details!
WARNING: The postinstalls for the following packages will be postponed for first boot: ttf-dejavu-sans-mono

(because /usr/bin/fc-cache is missing)

In OE-core, rdepend is correctly done in each recipe:
- ttf-fonts/liberation-fonts
- ttf-fonts/ttf-bitstream-vera

In meta-OE, rdepend is not done but packagegroup-fonts-truetype.bb includes fontconfig-utils:
- ttf-fonts/ttf-arphic-uming
- ttf-fonts/ttf-dejavu
- ttf-fonts/ttf-droid
- ttf-fonts/ttf-gentium
- ttf-fonts/ttf-hunkyfonts
- ttf-fonts/ttf-inconsolata
- ttf-fonts/ttf-liberation
- ttf-fonts/ttf-mplus
- ttf-fonts/ttf-sazanami
- ttf-fonts/ttf-ubuntu-font-family
- ttf-fonts/ttf-wqy-zenhei

Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogenext2fs: remove it
Robert Yang [Thu, 20 Mar 2014 09:37:41 +0000 (17:37 +0800)]
genext2fs: remove it

Remove genext2fs since we don't use it anymore, it can't support
ext4 well, either. We have used "mke2fs -d" to instead of it.

[YOCTO #6013]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogenerate-manifest-2.7.py: sync with python-2.7-manifest.inc
Paul Eggleton [Thu, 20 Mar 2014 19:24:35 +0000 (19:24 +0000)]
generate-manifest-2.7.py: sync with python-2.7-manifest.inc

Some changes were made earlier by me to SUMMARY values in
python-2.7-manifest.inc without changing the manifest script.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogenerate-manifest-*.py: set SUMMARY instead of DESCRIPTION
Paul Eggleton [Thu, 20 Mar 2014 19:24:34 +0000 (19:24 +0000)]
generate-manifest-*.py: set SUMMARY instead of DESCRIPTION

Typically what's being set here is a short description, so it makes much
more sense to set SUMMARY.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopython: add python-mmap to python-multiprocessing RDEPENDS
Paul Eggleton [Thu, 20 Mar 2014 19:24:33 +0000 (19:24 +0000)]
python: add python-mmap to python-multiprocessing RDEPENDS

The multiprocessing module needs the mmap module. We got away with not
having this for the build appliance because python-mmap was added to
packagegroup-self-hosted, but this is the proper place to have it.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agox264: add perlnative to inherit
Paul Eggleton [Thu, 20 Mar 2014 19:19:39 +0000 (19:19 +0000)]
x264: add perlnative to inherit

perl is run as part of the configure process, so we should ensure that
it's available.

Should fix [YOCTO #5768].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouseradd{-static}: Ignore useradds on nativesdk
Mark Hatle [Thu, 20 Mar 2014 19:19:02 +0000 (14:19 -0500)]
useradd{-static}: Ignore useradds on nativesdk

The code was supposed to ignore both native and nativesdk operations when
using the useradd and useradd-static code.  However, somewhere along the way
the code was dropped.  This didn't cause any issues until someone enabled the
enforcing mode in the new useradd-static and various nativesdk packages
started to fail.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoalsa-tools: fix build when x11 and gtk+ not available
Simone Agresta [Tue, 18 Mar 2014 11:25:38 +0000 (12:25 +0100)]
alsa-tools: fix build when x11 and gtk+ not available

 Updated patch to work with alsa-tools version 1.0.27

Signed-off-by: Simone Agresta <simone.agresta@bticino.it>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosgml-common-native: fix the generation of sgml-docbook.cat
Robert Yang [Tue, 18 Mar 2014 07:54:34 +0000 (15:54 +0800)]
sgml-common-native: fix the generation of sgml-docbook.cat

There would be build errors if multiple builds use the same SSTATE_DIR,
and the builds use the different versions' docbook-sgml-dtd-native, the
problems are: we have multiple versions docbook-sgml-dtd-native:

docbook-sgml-dtd-3.1-native
docbook-sgml-dtd-4.1-native
docbook-sgml-dtd-4.5-native

And they depend on sgml-common-native which installs the file
sysroot/etc/sgml/sgml-docbook.cat, this file is also included in the
sstate cache file (.tar.gz), but both the 3 versions
docbook-sgml-dtd-native may update the
sysroot/ect/sgml/sgml-docbook.cat, and it is a hardlink to
SYSROOT_DESTDIR/etc/sgml/sgml-docbook.cat, so the sgml-docbook.cat in
the sstate cache file may contain the
docbook-sgml-dtd-<version>-native's info, and there would be errors when
we mirror the sstate-cache to another build which uses a different
version.

Now we exclude the sgml-docbook.cat from the ${D}, and generate
sysroot/ect/sgml/sgml-docbook.cat dynamically will fix the problem, both
the sgml-common-native and docbook-sgml-dtd-<version>-native can update
it it correctly.

The similar to docbook-dsssl-stylesheets-native and openjade-native.

[YOCTO #5994]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoexpect: fix do_install failure on SLED 11.2
Chen Qi [Tue, 18 Mar 2014 07:12:08 +0000 (15:12 +0800)]
expect: fix do_install failure on SLED 11.2

Previously we were encountering do_install failures on older machines
like SLED 11.2. These machines have relatively lower versions of glibc.

     tclsh8.6: /lib64/libc.so.6: version `GLIBC_2.14' not found

The above failure is due to that fact that we are using the fixline1
tcl script to install commands under the example directory. The purpose
of fixline1 is to ensure that the installed scripts begin with '#!/bin/sh'.
However, the scripts under the example directory have already got
the correct first line. That's why we don't need to modify anything and could
just copy them.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackage_manager: Use apt-ftparchive for deb packages
Ricardo Ribalda Delgado [Mon, 17 Mar 2014 09:30:37 +0000 (09:30 +0000)]
package_manager: Use apt-ftparchive for deb packages

Use apt-ftparchive to create a Release file compatible with SecureApt.

apt-ftparchive is also a more efficient replacement of
dpkg-scanpackages:

root@neopili:~/curro/qtec/qt5022/build-qt5022-cesium/build/tmp/deploy/deb/bobcat
_64# time PSEUDO_UNLOAD=1 apt-ftparchive packages . >/tmp/kkk
real 0m26.873s
user 0m20.968s
sys 0m1.212s

root@neopili:~/curro/qtec/qt5022/build-qt5022-cesium/build/tmp/deploy/deb/bobcat
_64# time PSEUDO_UNLOAD=1 dpkg-scanpackages . >/tmp/kkk
dpkg-scanpackages: info: Wrote 6022 entries to output Packages file.
real 0m59.721s
user 0m16.668s
sys 0m11.164s

apt-ftparchive is not compatible with libpseudo. The calls to ftw()
returns the path in absolute format instead of relative. This
produces
wrong Packages and Release files.

ie:
MD5Sum:
d20227a958f6870137ce0e41b7b84307             1453
/home/ricardo/curro/qtec/qt5022/build-qt5022-cesium/build/tmp/deploy/deb/all/Release

This is why it is called with PSEUDO_UNLOAD.

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoopenssh: Update init file to add ED25519 Key generation
Saul Wold [Mon, 17 Mar 2014 18:32:18 +0000 (18:32 +0000)]
openssh: Update init file to add ED25519 Key generation

[YOCTO #5983]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotar: add knob whether acl.h are checked
Chong Lu [Mon, 17 Mar 2014 06:41:58 +0000 (06:41 +0000)]
tar: add knob whether acl.h are checked

Previously, it still was checked when there was no sys/acl.h in sysroots directory.
Add knob to decide whether acl.h are checked or not.

Fixed by using PACKAGECONFIG to check acl, with default disabled set.

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogettext-0.16.1: kill target m4 macros from sysroot
Christopher Larson [Mon, 17 Mar 2014 18:10:54 +0000 (18:10 +0000)]
gettext-0.16.1: kill target m4 macros from sysroot

Ever since the change to how aclocal files are copied (based on dependencies),
target m4 macros seem to more reliably be used in preference to native (which
they should), but in a non-gplv3 build, gettext is 0.16 while gettext-native is
0.18, causing a 0.16 po.m4 to be used with our 0.18 po/Makefile.in.in files,
causing at least some failed builds, including e2fsprogs.

Anyone inheriting gettext will have both gettext-native and gettext available,
and we don't want to use older macros from the target gettext in a non-gplv3
build, so kill them and let dependent recipes rely on gettext-native.

[YOCTO #5964]

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopulseaudio: Make it compatible with systemd-209
Martin Jansa [Sat, 22 Feb 2014 17:29:10 +0000 (18:29 +0100)]
pulseaudio: Make it compatible with systemd-209

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoUpgrade to systemd 211+
Khem Raj [Sun, 16 Mar 2014 05:42:32 +0000 (22:42 -0700)]
Upgrade to systemd 211+

Fixes [YOCTO #5940]

Fix checks for %ms format to be a link time check
runtime checks wont work in cross compiling

Add a patch to workaround missing _SC_PHYS_PAGES
in uclibc

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopixbufcache: Fix librsvg-native build
Richard Purdie [Tue, 18 Mar 2014 13:35:10 +0000 (13:35 +0000)]
pixbufcache: Fix librsvg-native build

bitbake librsvg-native would fail with an error about missing icu-native.
The reason is that bitbake doesn't directly parse setscene dependencies. This
change ensures bitbake does see the dependencies and avoids the error.

Ideally we'd teach bitbake about those but that is a significant and complex
change so this resolves the problem for now.

[YOCTO #5926]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoautotools: Exclude variables from autotools_copy_aclocals
Richard Purdie [Tue, 18 Mar 2014 13:31:56 +0000 (13:31 +0000)]
autotools: Exclude variables from autotools_copy_aclocals

The autotools aclocal copy function should not depend on various variables, these
are accounted for in other parts of the system. Therefore exclude them.

This was causing differences in sstate checksums between different systems and meaning
the sstate cache wasn't being reused as much as it should.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogettext: upgrade from 0.18.3.1 to 0.18.3.2
Chen Qi [Wed, 12 Mar 2014 01:57:48 +0000 (09:57 +0800)]
gettext: upgrade from 0.18.3.1 to 0.18.3.2

Upgrade gettext from 0.18.3.1 to 0.18.3.2.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogrep: upgrade from 2.16 to 2.18
Chen Qi [Wed, 12 Mar 2014 01:57:47 +0000 (09:57 +0800)]
grep: upgrade from 2.16 to 2.18

Upgrade grep from 2.16 to 2.18.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosudo: upgrade to 1.8.9p5
Chen Qi [Wed, 12 Mar 2014 01:57:46 +0000 (09:57 +0800)]
sudo: upgrade to 1.8.9p5

Upgrade sudo from 1.8.9p1 to 1.8.9p5.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoalsa-tools: update to version 1.0.27
Kai Kang [Wed, 12 Mar 2014 07:47:00 +0000 (15:47 +0800)]
alsa-tools: update to version 1.0.27

Update alsa-tools to latest version 1.0.27:

* remove PR
* update autotools.patch
* add build dependency gkt+3 that hdajackretask requires it.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agodirectfb-examples: update to 1.7.0
Kai Kang [Wed, 12 Mar 2014 07:46:59 +0000 (15:46 +0800)]
directfb-examples: update to 1.7.0

Update directfb-examples to latest version 1.7.0.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agodirectfb: update to 1.7.1
Kai Kang [Wed, 12 Mar 2014 07:46:58 +0000 (15:46 +0800)]
directfb: update to 1.7.1

Update directfb to 1.7.1:
* remove PR
* remove rename-no-instrument-function-macro.patch which is merged

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqmmp: update to 0.7.5
Kai Kang [Wed, 12 Mar 2014 07:46:57 +0000 (15:46 +0800)]
qmmp: update to 0.7.5

Update qmmp to 0.7.5 version

* update no-host-paths.patch
* remove no-sessionmanager.patch which is merged

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agodocbook-sgml-dtd-native: remove catalog file when do_clean
Robert Yang [Wed, 12 Mar 2014 05:58:47 +0000 (05:58 +0000)]
docbook-sgml-dtd-native: remove catalog file when do_clean

The docbook_sgml_dtd_sstate_postinst adds catalog file to
/etc/sgml/sgml-docbook.cat and sgml-docbook.bak, but the do_clean would not
remove the file, which would cause unexpected errors since we have multiple
versions of docbook-sgml-dtd:

docbook-sgml-dtd-3.1-native_3.1.bb
docbook-sgml-dtd-4.1-native_4.1.bb
docbook-sgml-dtd-4.5-native.bb

If we run:

$ bitbake docbook-sgml-dtd-4.1-native
$ bitbake docbook-sgml-dtd-4.1-native -ccleansstate && bitbake docbook-sgml-dtd-3.1-native
$ bitbake docbook-utils-native

We would get this error:

jade: cannot open "/path/to/etc/sgml/sgml-docbook-dtd-4.1.cat" (No such file or directory)
make[2]: *** [sgmldiff.html] Error 1

Remove the catalog entry when do_clean will fix the problem.

[YOCTO #5949]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoboost: Pass CFLAGS, CXXFLAGS and LDFLAGS correctly into boost.build
Mike Crowe [Thu, 13 Mar 2014 10:01:54 +0000 (10:01 +0000)]
boost: Pass CFLAGS, CXXFLAGS and LDFLAGS correctly into boost.build

The compileflags and linkflags do_boostconfig puts into user-config.jam are
having no effect. According to
http://www.boost.org/boost-build2/doc/html/bbv2/reference/tools.html the
correct syntax would be <compileflags>"the flags" <linkflags>"the flags".

Since the flags specified were having no effect they can't be necessary and
can be safely removed. We should be passing ${CFLAGS}, ${CXXFLAGS} and
${LDFLAGS} instead so that users of the recipe can pass arbitrary flags as
they choose.

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackagegroup-core-tools-testapps: added connman tools and tests
Cristian Iorga [Thu, 13 Mar 2014 11:12:41 +0000 (13:12 +0200)]
packagegroup-core-tools-testapps: added connman tools and tests

Added connman-tools and connman-tests packages.

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopackagegroup-core-tools-testapp: added 3G tools
Cristian Iorga [Thu, 13 Mar 2014 11:12:40 +0000 (13:12 +0200)]
packagegroup-core-tools-testapp: added 3G tools

Added ofono tests package.

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoapt-native: Install apt-ftparchive
Ricardo Ribalda Delgado [Thu, 13 Mar 2014 13:27:03 +0000 (14:27 +0100)]
apt-native: Install apt-ftparchive

apt-ftparchive is needed to create a Release file compatible with
SecureApt.

It is also a more efficient replacement of dpkg-scanpackages.

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agomips64-linux: set ac_cv_sizeof_ssize_t
Valentin Popa [Fri, 14 Mar 2014 11:12:25 +0000 (13:12 +0200)]
mips64-linux: set ac_cv_sizeof_ssize_t

Set ac_cv_sizeof_ssize_t for mips64;
mips-common will not overwrite it.

"ssize_t is a posix define which is architecture specific whose value
is signed size_t, glibc/uclibc for mips64/n64 linux platform defines
it to be equivalent of 'long' and long here is 8bytes because
mips64/n64 follows LP64 model. In OpenEmbedded our default ABI for
mips64 platforms is N64, having said that autoconf decides to poke at
the platform for finding these kind of sizes which fails when you are
doing cross compiling hence we have to cache it." - Khem Raj

[YOCTO #5935]

Signed-off-by: Valentin Popa <valentin.popa@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agomake: add 'inherit pkgconfig'
Valentin Popa [Fri, 14 Mar 2014 15:11:12 +0000 (17:11 +0200)]
make: add 'inherit pkgconfig'

Bitbaking make-native generates syntax error during
configure: 'PKG_PROG_PKG_CONFIG: command not found'.
Add 'inherit pkgconfig' to solve this issue.

Signed-off-by: Valentin Popa <valentin.popa@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-yocto-custom: Use SRCREV_machine
Darren Hart [Fri, 14 Mar 2014 21:15:20 +0000 (14:15 -0700)]
linux-yocto-custom: Use SRCREV_machine

The Yocto kernel tools look for SRCREV_machine in do_validate_branches,
if it's empty, it just returns and silently continues. This likely needs
at least a warning. However, this recipe should be using SRCREV_machine,
and not just SRCREV.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Reported-by: Saul Wold <sgw@linux.intel.com>
Cc: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolib/oe: turn oe into a namespace package
Christopher Larson [Sat, 15 Mar 2014 02:06:26 +0000 (19:06 -0700)]
lib/oe: turn oe into a namespace package

This will let folks extend the oe package with modules from other layers.
Given openembedded consists of more than just oe-core, I think this makes
sense, and adds some useful flexibility.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agointltool: Define DATADIRNAME=share for uclibc based systems
Khem Raj [Sun, 16 Mar 2014 05:42:31 +0000 (22:42 -0700)]
intltool: Define DATADIRNAME=share for uclibc based systems

This otherwise makes localedir to point to prefix/lib
which is wrong location for locale splitting and we end
with unpackaged locale files e.g. systemd throws this

WARNING: QA Issue: systemd: Files/directories were installed but not
shipped
  /usr/lib/locale
  /usr/lib/locale/fr
  /usr/lib/locale/pl
  /usr/lib/locale/ru
  /usr/lib/locale/it
  /usr/lib/locale/fr/LC_MESSAGES
  /usr/lib/locale/fr/LC_MESSAGES/systemd.mo
  /usr/lib/locale/pl/LC_MESSAGES
  /usr/lib/locale/pl/LC_MESSAGES/systemd.mo
  /usr/lib/locale/ru/LC_MESSAGES
  /usr/lib/locale/ru/LC_MESSAGES/systemd.mo
  /usr/lib/locale/it/LC_MESSAGES
  /usr/lib/locale/it/LC_MESSAGES/systemd.mo

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoutil-linux: scanf_cv_alloc_modifier changed from 'as' -> 'ms'
Khem Raj [Sun, 16 Mar 2014 05:42:30 +0000 (22:42 -0700)]
util-linux: scanf_cv_alloc_modifier changed from 'as' -> 'ms'

This patch actually makes sense for uclibc more than glibc
since if we did not cache scanf_cv_alloc_modifier configure
test will determine it correctly for glibc but the test does
not do proper job when uclibc is involved the reason is it
depends on define __GLIBC_ and uclibc unfortunately poses as
glibc and defines this variable.

%m is implemented in uclibc as well and we enable it so caching value of
'ms' specifier is going to work across all libcs

This fixes mounting errors we see with util-linux/mount on
uclibc/systemd

Mar 16 01:46:40 qemux86 systemd-remount-fs[124]: /bin/mount: /proc/self/mountinfo: parse error: ignore entry at line 21.
Mar 16 01:46:40 qemux86 systemd-remount-fs[124]: /bin/mount: /proc/self/mountinfo: parse error: ignore entry at line 22.
Mar 16 01:46:40 qemux86 systemd-remount-fs[124]: /bin/mount: can't find / in /etc/fstab

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoglib-2.0: Fix localedir expectations for uclibc
Khem Raj [Sun, 16 Mar 2014 05:42:29 +0000 (22:42 -0700)]
glib-2.0: Fix localedir expectations for uclibc

DATADIRNAME is used by many applications using autotools
to install locale data, we get a wrong value for uclibc
systems since it does not recognise it as proper linux
systems and start putting locale info in /usr/lib instead
of /usr/share

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agognutls: Link in pthread explicitly for uclibc
Khem Raj [Sun, 16 Mar 2014 05:42:28 +0000 (22:42 -0700)]
gnutls: Link in pthread explicitly for uclibc

Otherwise we end up with missing symbols from libpthread

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouclibc: Remove iconv.h
Khem Raj [Sun, 16 Mar 2014 05:42:27 +0000 (22:42 -0700)]
uclibc: Remove iconv.h

We get it from libiconv on uclibc anyway no need to
transplant uclibc one

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouclibc: Implement clock_adjtime()
Khem Raj [Sun, 16 Mar 2014 05:42:26 +0000 (22:42 -0700)]
uclibc: Implement clock_adjtime()

systemd needs it
Also update to latest master

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoeglibc: Update SRC_URI to point to final download location
Khem Raj [Wed, 12 Mar 2014 05:46:50 +0000 (22:46 -0700)]
eglibc: Update SRC_URI to point to final download location

We have been using interim location for the src_uri
now the tarballs are placed in usual location so update
the src_uri accordingly

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agowic: Use pseudo for ext mkfs command
Tom Zanussi [Wed, 12 Mar 2014 19:31:02 +0000 (19:31 +0000)]
wic: Use pseudo for ext mkfs command

The switchover from populate-exfs.sh to mke2fs forgot to preserve
pseudo, add it back.

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agowic: Use mke2fs to create the ext2/3/4 image
João Henrique Ferreira de Freitas [Sat, 8 Mar 2014 22:23:57 +0000 (22:23 +0000)]
wic: Use mke2fs to create the ext2/3/4 image

OE-core commit f3a95ca6886b55e5819b068bdbd2cceb882d91a6 removed the
populate-extfs.sh. So mke2fs should be used to create ext2/3/4 image.

Signed-off-by: João Henrique Ferreira de Freitas <joaohf@gmail.com>
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoCreate gstreamer-1.0 package groups
Sébastien Mennetrier [Wed, 12 Mar 2014 09:44:04 +0000 (10:44 +0100)]
Create gstreamer-1.0 package groups

This recipe is based on gst-meta-base

Signed-off-by: Sébastien Mennetrier <s.mennetrier@innotis.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agognomebase: remove trailing whitespace
Ross Burton [Wed, 12 Mar 2014 10:36:08 +0000 (10:36 +0000)]
gnomebase: remove trailing whitespace

It seems that the bitbake parser is incredibly forgiving of trailing whitespace
in multi-line variables, but delete it to be sure.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agooe-setup-builddir: small rework
Matthieu Crapet [Wed, 12 Mar 2014 09:15:26 +0000 (10:15 +0100)]
oe-setup-builddir: small rework

Changes:
- drop useless subshell creation in test:
if ! (test -r "$BUILDDIR/conf/local.conf"); then$
- replace "source" builtin by "." (bashsism)
- fix indentation 4 spaces (drop some tabs too)
- fix return => exit  (return is not allowed in main)
- drop "sed -i" (doesn't exist in BSD sed)
- for homogeneity, always use [ ] (instead of test)
- replace old [ "x" = "x$VAR" ] by [ -z "$VAR" ]

Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopopulate_sdk_deb: Fix meta-toolchain-sdk with amd64 ARCH
Ricardo Ribalda Delgado [Tue, 11 Mar 2014 17:22:37 +0000 (17:22 +0000)]
populate_sdk_deb: Fix meta-toolchain-sdk with amd64 ARCH

Map SDK_ARCH x86_64 to DEB_SDK_ARCH amd64

Without this patch meta-toolchain-gmae fails to do_populate_sdk

| The following packages have unmet dependencies:
|  nativesdk-packagegroup-sdk-host : Depends: nativesdk-autoconf but it
is not installable
|                                    Depends: nativesdk-libtool but it
is not installable
|                                    Depends: nativesdk-shadow but it is
not installable
|                                    Depends: nativesdk-unfs-server but
it is not installable
|                                    Depends: nativesdk-makedevs but it
is not installable
|                                    Depends: nativesdk-automake but it
is not installable
|                                    Depends: nativesdk-qemu but it is
not installable
|                                    Depends: nativesdk-pkgconfig but it
is not installable
|                                    Depends: nativesdk-pseudo but it is
not installable
|                                    Depends: nativesdk-qemu-helper but
it is not installable
|                                    Depends: nativesdk-opkg but it is
not installable
|  packagegroup-cross-canadian-qt5022 : Depends:
gdb-cross-canadian-x86-64 but it is not installable
|                                       Depends:
binutils-cross-canadian-x86-64 but it is not installable
|                                       Depends:
gcc-cross-canadian-x86-64 but it is not installable
|                                       Depends: meta-environment-qt5022
but it is not installable

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolsbtest: fix comparison bashism
Stefan Stanacar [Tue, 11 Mar 2014 15:40:09 +0000 (15:40 +0000)]
lsbtest: fix comparison bashism

== is a bashism use = instead.

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobtrfs: patch to allow for relative paths
Saul Wold [Tue, 11 Mar 2014 15:26:21 +0000 (15:26 +0000)]
btrfs: patch to allow for relative paths

This seems to address the btrfs image failure

[YOCTO #5146]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobind: Update to 9.9.5
Saul Wold [Tue, 4 Mar 2014 21:56:06 +0000 (13:56 -0800)]
bind: Update to 9.9.5

Remove CVE patches that are in bind
Updated COPYRIGHT includes date changes the NetBSD Copyright
Modifies the Base BSD License to 3-Clause (removes advertising clause)w
Add patch to disable running tests on host
Add python-core to RDEPENDS for dnssec-checkds and dnssec-coverage and fix path to python

Signed-off-by: Saul Wold <sgw@linux.intel.com>