]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
11 years agoinit-live.sh: fix automount failed occasionally
Hongxu Jia [Tue, 18 Jun 2013 12:14:14 +0000 (20:14 +0800)]
init-live.sh: fix automount failed occasionally

Reboot system repeatedly, occasionally found usb automount failed, a
low probability but it happens.
$ df
Filesystem           1K-blocks      Used Available Use% Mounted on
none                   1024972         4   1024968   0% /dev
/dev/sda3              7689384   3540940   3757840  49% /media/sda3
/dev/sda2            146127424   1238432 137466120   1% /media/sda2
/dev/sda1                17845     14570      2354  86% /media/sda1
/dev/sdb                293400    288560      4840  98% /media/sdb
/dev/sdc4               457632        32    457600   0% /media/sdc4
/dev/sdc1               475018      2321    447749   1% /media/sdc1
/dev/sdd               1382298   1382298         0 100% /media/sdd
/dev/sdc2               475694      2320    448374   1% /media/sdc2
/dev/loop0              270649    181249     75644  71% /
df: /media/sdc3: No such file or directory
tmpfs                  1029352         0   1029352   0% /dev/shm
tmpfs                  1029352      2816   1026536   0% /run
tmpfs                  1029352         0   1029352   0% /sys/fs/cgroup
tmpfs                  1029352         4   1029348   0% /tmp
tmpfs                  1029352         0   1029352   0% /media/ram
tmpfs                  1029352       116   1029236   0% /var/volatile

When boot media has been found, udev will be killed. If udev is busy
to mount other medias at the killing time (especially medias is many),
the above issue will occur occasionally.

Invoke `udevadm settle' before killing udev will resolve this
issue, it watches the udev event queue, and exits if all current
events are handled.

Use variable `_UDEV_DAEMON' to replace hardcoded `udevd' to keep
consistent with previous.

[YOCTO #4745]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agosanity.bbclass: Fix COREBASE sanity tests
Richard Purdie [Thu, 27 Jun 2013 11:47:09 +0000 (11:47 +0000)]
sanity.bbclass: Fix COREBASE sanity tests

We need to expand the COREBASE variable, no idea how these tests were
previously working at all...

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosanity.bbclass: Add check for @ character in build directory name
Richard Purdie [Tue, 25 Jun 2013 17:08:01 +0000 (18:08 +0100)]
sanity.bbclass: Add check for @ character in build directory name

The @ character is not escaped properly in too many places within the system
to easily support it so add the character to the list of blacklisted characters.

Also tweak the other messages and ensure that all appropriate error messages
are disabled in one go.

[YOCTO #4772]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopopulate_sdk_base, adt_installer: abort install if path contains spaces
Laurentiu Palcu [Tue, 25 Jun 2013 11:59:05 +0000 (14:59 +0300)]
populate_sdk_base, adt_installer: abort install if path contains spaces

Spaces are not handled properly in some parts of oe-core and it's safer
to abort toolchain installation if path contains spaces. Even though
we fix space handling in the toolchain installation script, there are
various other parts in the toolchain (perl scripts, sysroot path passed to
toolchain binaries, shebang lines) that would need special handling. So,
for now, just bail out if path contains spaces.

The checking for spaces in the path is done after expanding relative
paths to absolute and tilde conversion.

[YOCTO #4488]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogdk-pixbuf: add a wrapper for gdk-pixbuf-pixdata
Ross Burton [Tue, 25 Jun 2013 11:46:04 +0000 (12:46 +0100)]
gdk-pixbuf: add a wrapper for gdk-pixbuf-pixdata

gdk-pixbuf 2.26 added a new binary gdk-pixbuf-pixdata, but no wrapper script was
added for it.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agocleanup-workdir: fix typo
Kai Kang [Tue, 25 Jun 2013 09:08:36 +0000 (17:08 +0800)]
cleanup-workdir: fix typo

Fix typo.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobase-files: create /usr/lib/locale dir
Roy.Li [Wed, 19 Jun 2013 06:37:10 +0000 (06:37 +0000)]
base-files: create /usr/lib/locale dir

Lsbtest shows that /usr/lib/locale dir is lost, so create it

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoghostscript: upgrade to 9.07
Wenzong Fan [Tue, 25 Jun 2013 02:56:26 +0000 (22:56 -0400)]
ghostscript: upgrade to 9.07

Remove unuseful patch:
  * 0001-make-ghostscript-work-with-long-building-directory.patch

Port applicable patches:
  * ghostscript-9.02-genarch.patch
  * ghostscript-9.02-parallel-make.patch
  * ghostscript-9.02-prevent_recompiling.patch
  * ghostscript-9.05-NOT-check-endian.patch
  * ghostscript-native-fix-disable-system-libtiff.patch

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agochrpath: Fix SRC_URI to correct location
Saul Wold [Mon, 24 Jun 2013 23:10:50 +0000 (16:10 -0700)]
chrpath: Fix SRC_URI to correct location

Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agobuildtools-tarball: Add nativesdk-make
Mark Hatle [Mon, 24 Jun 2013 14:45:49 +0000 (09:45 -0500)]
buildtools-tarball: Add nativesdk-make

Recently it was discovered that many Fedora hosts have a broken version of
make 3.82.  Add make to the buildtools-tarball, as well ad modify make to
support building a special nativesdk version.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agomake: Fix second part of bug Savannah 30612
Mark Hatle [Mon, 24 Jun 2013 14:45:48 +0000 (09:45 -0500)]
make: Fix second part of bug Savannah 30612

The Savannah bug 30612 describes two different issue.  The first,
previously fixed, errors parsing multiple objects in parenthesis.
The second, (this issue), extra white space contained in the
parenthesis.

The fix was backported from the current make git tree:
http://git.savannah.gnu.org/cgit/make.git/commit/?id=b06b8c64a29a5ba3a8daecd829fa2f98d42cb285

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agobusybox: Add ptest
Björn Stenberg [Mon, 24 Jun 2013 14:52:21 +0000 (16:52 +0200)]
busybox: Add ptest

Install busybox test suite and run it as ptest.

Signed-off-by: Anders Roxell <anders.roxell@enea.com>
Signed-off-by: Björn Stenberg <bjst@enea.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agobuildtools-tarball: Change the way the SDK is sanitized
Mark Hatle [Mon, 24 Jun 2013 14:47:15 +0000 (09:47 -0500)]
buildtools-tarball: Change the way the SDK is sanitized

The previous method of shrinking down the scale of the environment-setup
file would not work properly when the target is configured with multilibs.

In addition, the configured machine name and similar settings could leak
into the SDK naming.  This was resolved by clearing the SDK generated
files and generating our own custom files.

Note, the name of the environment-setup now is suffixed with the SDK_SYS.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agogcc: When cross compiling a target gcc, target flags may be used on the host
Mark Hatle [Mon, 24 Jun 2013 14:44:30 +0000 (09:44 -0500)]
gcc: When cross compiling a target gcc, target flags may be used on the host

The original fix worked some of the time, but not on all machines.  Fix
this by applying the change in a different way.  Following the example of
the existing BUILD_CFLAGS.

Below is the commit message from the original change to help explain why
this is needed:

Configure identifies a number of warning flags (WARN_CFLAGS and
WARN_CXXFLAGS) from the $CC value.  The cross compiler may be different
from the host compiler and may not support the same set of flags.  This
leads to problems such as:

cc1plus: error: unrecognized command line option "-Wno-narrowing"
cc1plus: error: unrecognized command line option "-Wno-overlength-strings"

Work around this problem by removing the warning flags from the
BUILD_CXXFLAGS value, in a way similar to the BUILD_CFLAGS.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agosystemtap: Systemtap can not be build w -O0 optimization
Mark Hatle [Mon, 24 Jun 2013 14:44:56 +0000 (09:44 -0500)]
systemtap: Systemtap can not be build w -O0 optimization

Systemtap will fail with:

../usr/include/features.h:330:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp]
|  #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)

Use the same technique that eglibc uses to catch and correct the optimization
level, changing to -O2.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agolinux-firmware: Package some iwlwifi firmware separately
Richard Purdie [Mon, 24 Jun 2013 14:27:03 +0000 (15:27 +0100)]
linux-firmware: Package some iwlwifi firmware separately

Taken from meta-intel, might as well merge this into the core recipe.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agogst-plugins-bad: element selection rationalisation
Ross Burton [Mon, 24 Jun 2013 10:26:28 +0000 (11:26 +0100)]
gst-plugins-bad: element selection rationalisation

Using --with-plugins means you only get the elements you enable, so we were
dropping vast numbers of useful plugins such as the MPEG muxers.

Instead, follow gst-plugins-base by using PACKAGECONFIG to enable/disable
plugins with optional dependencies.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agogst-plugins-base: element selection rationalisation
Ross Burton [Mon, 24 Jun 2013 10:26:27 +0000 (11:26 +0100)]
gst-plugins-base: element selection rationalisation

Use PACKAGECONFIG to control the X11 elements, and add statements for the
elements that we don't always enable.

Remove the freetype dependency as it's apparently (but not really) only needed
by the examples.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agogst-plugins-bad: tremor was moved from here to -base
Ross Burton [Mon, 24 Jun 2013 10:26:26 +0000 (11:26 +0100)]
gst-plugins-bad: tremor was moved from here to -base

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agogst-plugins-bad: use correct option when enabling librsvg
Ross Burton [Mon, 24 Jun 2013 10:26:25 +0000 (11:26 +0100)]
gst-plugins-bad: use correct option when enabling librsvg

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agobash ptest: Sed away the Makefile dependency to remove error messages.
Björn Stenberg [Mon, 24 Jun 2013 07:45:52 +0000 (09:45 +0200)]
bash ptest: Sed away the Makefile dependency to remove error messages.

The bash Makefile defines a dependency on itself and tries to run configure,
causing error messages when running ptest on target:

make: *** No rule to make target `configure.in', needed by `configure'.
make: *** No rule to make target `aclocal.m4', needed by `configure'.
make: *** No rule to make target `config.h.in', needed by `configure'.
make: *** No rule to make target `Makefile.in', needed by `Makefile'.
make: Failed to remake makefile `Makefile'.

This patch edits out this dependency in the Makefile installed for ptest,
to get rid of these messages.

Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoqt-mobility: remove /usr/lib from ld rpath-link option
Roy.Li [Mon, 24 Jun 2013 05:08:03 +0000 (13:08 +0800)]
qt-mobility: remove /usr/lib from ld rpath-link option

Remove /usr/lib from ld rpath-link option to fix the below build error:

       bitbake_build/tmp/sysroots/x86-kvm-guest/usr/lib/libpng16.so.16:
        undefined reference to `inflateReset2@ZLIB_1.2.3.4'

since sysroot seems not work for rpath-link, and "rpath-link,/usr/lib" makes
ld to search host libraries for target libraries, once host has different
version zlib, the error will happen.

qmake uses QT_MOBILITY_LIB to generate "rpath-link,/usr/lib" when do_configure
but we can not add sysroot into QT_MOBILITY_LIB, since QT_MOBILITY_LIB is dir
which libraries will be installed to, so I remove this dir from rpath-link
before do_compile

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agolibbsd: Add recipes for libbsd - utility functions from BSD systems
Khem Raj [Mon, 24 Jun 2013 03:10:05 +0000 (20:10 -0700)]
libbsd: Add recipes for libbsd - utility functions from BSD systems

When building BSD programs this library provides common
BSD functions that are missing on other OSes e.g. Linux

This library is elemental for porting large set of BSD applications
current consumer of this are in meta-networking/openbsd-netcat
but once we have it in OE-Core more recipes depending on it in different layers
can be added.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agogst-ffmpeg: fix libav config error for ppc
Jesse Zhang [Mon, 24 Jun 2013 01:44:55 +0000 (09:44 +0800)]
gst-ffmpeg: fix libav config error for ppc

Pass --cpu to libav config when we're building ppc, or else there are
errors like:

    You need a compiler that supports {} in AltiVec vector declarations.

Also patch libav configure to have knowledge of more ppc CPUs.

Signed-off-by: Jesse Zhang <sen.zhang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agosystemctl: Support all unit types in the directives.
Randy Witt [Fri, 21 Jun 2013 04:12:57 +0000 (00:12 -0400)]
systemctl: Support all unit types in the directives.

The Alias and WantedBy directives can accept all valid unit types when
using the systemctl from systemd. And since the systemctl script should
match the behavior of systemd as much as possible, add the current set
of unit types listed at
http://www.freedesktop.org/software/systemd/man/systemd.unit.html
to the Alias and WantedBy directives.

The deficiency was exposed when trying to use:
    Alias=default.target
in a foo.target. No symlink was created by running
"systemctl enable foo.target" during the package's postinst.

Signed-off-by: Randy Witt <rewitt@declaratino.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoltp: update to new release
Jesse Zhang [Fri, 21 Jun 2013 07:35:29 +0000 (15:35 +0800)]
ltp: update to new release

Signed-off-by: Jesse Zhang <sen.zhang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoudev-cache: fix to use udev-cache correctly
Chen Qi [Tue, 18 Jun 2013 04:48:17 +0000 (12:48 +0800)]
udev-cache: fix to use udev-cache correctly

Previouly, the udev-cache has no real effect even if it's installed
into the system. The key problem here is that at first boot, the
/etc/dev.tar is not present, thus resulting /dev/shm/udev.cache not
created on first boot even if udev-cache is enabled.

This patch fixes this problem. The /dev/shm/udev.cache will be created
if necessary, that is, on first boot or when some part of the system is
changed. In the latter case, the udev cache may not be valid.

[YOCTO #4738]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agolibpam: check if PAM is enabled when building
Ross Burton [Thu, 20 Jun 2013 16:38:24 +0000 (17:38 +0100)]
libpam: check if PAM is enabled when building

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agolibpam: fix whitespace in shell function
Ross Burton [Thu, 20 Jun 2013 16:38:23 +0000 (17:38 +0100)]
libpam: fix whitespace in shell function

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agologrotate: fix for CVE-2011-1548
Wenzong Fan [Tue, 18 Jun 2013 02:28:50 +0000 (22:28 -0400)]
logrotate: fix for CVE-2011-1548

If a logfile is a symlink, it may be read when being compressed, being
copied (copy, copytruncate) or mailed. Secure data (eg. password files)
may be exposed.

Portback nofollow.patch from:
http://logrotate.sourcearchive.com/downloads/3.8.1-5/logrotate_3.8.1-5.debian.tar.gz

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agort-tests: fix error check in hackbench
Jesse Zhang [Mon, 17 Jun 2013 08:49:13 +0000 (16:49 +0800)]
rt-tests: fix error check in hackbench

Add a patch to fix when an unsigned number is taken as a negative error
code.

Signed-off-by: Jesse Zhang <sen.zhang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agolibproxy_0.4.7 do_unpack failed of qemuppc_world
Jackie Huang [Mon, 17 Jun 2013 06:30:22 +0000 (14:30 +0800)]
libproxy_0.4.7 do_unpack failed of qemuppc_world

The tarball from upstream shows many lines of....

   tar: Ignoring unknown extended header keyword
      `LIBARCHIVE.xattr.security.selinux'
   tar: Ignoring unknown extended header keyword `SCHILY.dev'
   tar: Ignoring unknown extended header keyword `SCHILY.ino'
   tar: Ignoring unknown extended header keyword `SCHILY.nlink'

Replacing it with the .zip file from upstream

Signed-off-by: Amy Fong <amy.fong@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agocore-image-weston: add clutter examples
Ross Burton [Thu, 20 Jun 2013 15:46:51 +0000 (16:46 +0100)]
core-image-weston: add clutter examples

Now that Clutter supports Wayland too, add the Clutter example app to the image.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoclutter: add Wayland support
Ross Burton [Thu, 20 Jun 2013 14:43:05 +0000 (15:43 +0100)]
clutter: add Wayland support

Add PACKAGECONFIG stanzas for Wayland client and server, and respect the x11 and
wayland DISTRO_FEATURES to enable the relevant backends as appropriate by
default.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agocogl: add Wayland support
Ross Burton [Thu, 20 Jun 2013 14:42:58 +0000 (15:42 +0100)]
cogl: add Wayland support

Add PACKAGECONFIG stanzas for Wayland client and server, and respect the x11 and
wayland DISTRO_FEATURES to enable the relevant backends as appropriate by
default.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoweston: move mtdev dependency to the DRM backend, where it belongs
Ross Burton [Thu, 20 Jun 2013 11:31:24 +0000 (12:31 +0100)]
weston: move mtdev dependency to the DRM backend, where it belongs

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agomesa: remove a redundant do_install tweak
Ross Burton [Thu, 20 Jun 2013 11:04:36 +0000 (12:04 +0100)]
mesa: remove a redundant do_install tweak

Mesa isn't incorrectly installing GLU headers anymore, so we don't need to
delete them.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoweston: add patches to make weston-launch work
Ross Burton [Wed, 19 Jun 2013 14:51:03 +0000 (15:51 +0100)]
weston: add patches to make weston-launch work

Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoweston-init: fix a typo in a user-visible message
Ross Burton [Wed, 19 Jun 2013 10:57:05 +0000 (11:57 +0100)]
weston-init: fix a typo in a user-visible message

This is the weston init script, not X.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agopython-pygtk: fix parallel compile issue
Kai Kang [Wed, 19 Jun 2013 11:49:42 +0000 (07:49 -0400)]
python-pygtk: fix parallel compile issue

defs.c dependes on gdk-types.defs and gtk-types.defs. When parallel
compile, it may fails with:
"IOError: [Errno 2] No such file or directory: 'gtk-types.defs'"

Add them to dependences of defs.c to fix this issue.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agopython-pygobject: disable parallel install
Kai Kang [Wed, 19 Jun 2013 10:33:07 +0000 (06:33 -0400)]
python-pygobject: disable parallel install

The installation of __glib.so is invoked by install-data-am target
which are generated by automake. installing libpyglib-2.0-python is
invoked by install-exec-am.

"make install" will firstly install libpyglib-2.0-python, then install
__glib.so, the sequence should not be broken, since _glib.so has
dependence on libpyglib-2.0-python. But when enable parallel install,
the sequence maybe break then installation fails with:
 "/usr/bin/ld: cannot find -lpyglib-2.0-python"

Disable parallel install to fix this issue.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoopenjade-native: fix build failure
Kai Kang [Wed, 19 Jun 2013 09:05:42 +0000 (05:05 -0400)]
openjade-native: fix build failure

Fix openjade-native build failure when build directory name contains the
characters ".a".

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agotinylogin: remove recipe
Chen Qi [Thu, 6 Jun 2013 08:23:35 +0000 (16:23 +0800)]
tinylogin: remove recipe

tinylogin has been deprecated and the functionality ported into busybox.
We now use busybox as the login manager, so the tinylogin recipe could
be deleted.

[YOCTO #4207]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agomingetty: lower the ALTERNATIVE_PRIORITY
Chen Qi [Thu, 6 Jun 2013 08:04:18 +0000 (16:04 +0800)]
mingetty: lower the ALTERNATIVE_PRIORITY

mingetty doesn't work with serial consoles. Currently, it has the
same ALTERNATIVE_PRIORITY with busybox. So if it is installed with
busybox together, it's possible that the getty is linked to the
mingetty, causing failures when we login to the serial consoles.

Lower the its ALTERNATIVE_PRIORITY to solve this problem.

[YOCTO #4207]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agopackagegroup-core-basic: set the default login manager
Chen Qi [Thu, 6 Jun 2013 07:53:19 +0000 (15:53 +0800)]
packagegroup-core-basic: set the default login manager

Set the default login manager to 'busybox', drop the mingetty in
the RDEPENDS, use ${VIRTUAL-RUNTIME_login_manager} instead.

mingetty doesn't work with serial consoles, so if the login console
is ttyS0 for example, we get error messages on screen and cannot login
on ttyS0.

The login manager, no matter it's tinylogin or busybox, provides
getty, so we can just rdepend on it.

[YOCTO #4207]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agopackagegroup-core-boot: use busybox as the default login manager
Chen Qi [Thu, 6 Jun 2013 07:48:04 +0000 (15:48 +0800)]
packagegroup-core-boot: use busybox as the default login manager

tinylogin has been deprecated and the functionality ported into busybox,
so we switch to using busybox as the default login manager.

[YOCTO #4207]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agobusybox: add the ability to split the busybox binary
Chen Qi [Mon, 17 Jun 2013 04:47:20 +0000 (12:47 +0800)]
busybox: add the ability to split the busybox binary

This patch enables us to split the busybox into two binaries, one
containing suid applications, and the other containing nosuid apps.

Add a variable, BUSYBOX_SPLIT_SUID, to control whether to split the
busybox binary into two parts. We default it to "1" to enable the
splitting, but users could still override it to disable the splitting.
After all, busybox has no internal support for this suid apps splitting,
so there might be users out there who want just one busybox binary.

The basic idea here is to build the busybox twice, each with the correct
configuration items. We extract the non-app part of the original .config
file, and merge this part with the suid-app part to form a .config which
contains only suid apps. The same strategy applies to the non-suid apps.

[YOCTO #4207]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agobusybox: enable to list suid and non-suid app configs
Chen Qi [Mon, 17 Jun 2013 03:20:06 +0000 (11:20 +0800)]
busybox: enable to list suid and non-suid app configs

This patch, written by Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>,
adds the ability to busybox to list configuration items of suid apps
and non-suid apps separately.

`make busybox.cfg.suid' generates a file containing config items of the
suid apps.

'make busybox.cfg.nosuid' generates a file containing config items of
the non-suid apps.

This patch helps to separate busybox into two binaries, the suid one and
the non-suid one.

[YOCTO #4207]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agobusybox: add a config fragment to enable login utilities
Chen Qi [Thu, 6 Jun 2013 06:11:16 +0000 (14:11 +0800)]
busybox: add a config fragment to enable login utilities

Create a config fragment to enable the login/passwd utilities of busybox.

[YOCTO #4207]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agobusybox: add support for CONFIG_FEATURE_INDIVIDUAL
Chen Qi [Thu, 6 Jun 2013 05:59:23 +0000 (13:59 +0800)]
busybox: add support for CONFIG_FEATURE_INDIVIDUAL

Previously, if CONFIG_FEATURE_INDIVIDUAL was enabled for busybox,
yocto-based systems could start correctly.

This is because if busybox is built as individual apps, '/bin/busybox'
may not be present, so setting the default ALTERNATIVE_TARGET to
'/bin/busybox' is not appropriate and could lead to errors.

This patch fixes this problem by checking the existence of '/bin/busybox'
before setting the ALTERNATIVE_TARGET to '/bin/busybox'.

After this change, if busybox is built as individual apps, we'll have
links like '/bin/ls -> /bin/ls.busybox', otherwise, we'll have links
like '/bin/ls -> /bin/busybox'.

Note there's a grep expression change in this patch. The old expression
doesn't work well, it has an unwanted underscore, so I changed it to make
it work.

[YOCTO #4570]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agobusybox: remove the postinst part of the recipe
Chen Qi [Thu, 6 Jun 2013 05:53:19 +0000 (13:53 +0800)]
busybox: remove the postinst part of the recipe

Remove the pkg_postinst_${PN} from this recipe, as it's redundant.
It basically wants to do the same thing as the update-alternatives
does. But it doesn't do it well.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agosanity.bbclass: Various improvements
Richard Purdie [Fri, 21 Jun 2013 16:45:33 +0000 (17:45 +0100)]
sanity.bbclass: Various improvements

I started trying to make some changes in sanity.bbclass and couldn't stand
the current code. This patch splits out the one big function into a number
of smaller units and adds a status class which handles queuing of messages
and issues like network errors and whether a reparse is required. It also
cleans up some syntax and obsolete code.

The other fundamental change is the tests are split into ones which run
once and those which run at every build. This was always the way the
class was intended to work but that got lost somewhere along the way.
This patch fixes that.

Its still far from perfect but it is hopefully an improvement
and sets the scene for other improvements to be built on top of this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosanity.bbclass: Drop horrible obsolete minversion hack
Richard Purdie [Fri, 21 Jun 2013 16:44:08 +0000 (17:44 +0100)]
sanity.bbclass: Drop horrible obsolete minversion hack

We once needed to do this, things seem to work fine without this now,
thankfully.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoSync with PRINC removal from meta-intel
Richard Purdie [Mon, 24 Jun 2013 13:47:57 +0000 (13:47 +0000)]
Sync with PRINC removal from meta-intel

PRINC usage is removed from meta-intel, bump core PR values to ensure
no version regressions.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopsplash: Bump PR to allow removal of PRINC from meta-yocto
Richard Purdie [Fri, 21 Jun 2013 13:23:16 +0000 (14:23 +0100)]
psplash: Bump PR to allow removal of PRINC from meta-yocto

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agostrace: add configure options libaio and acl
Kai Kang [Fri, 21 Jun 2013 08:12:21 +0000 (16:12 +0800)]
strace: add configure options libaio and acl

Add strace configure options libaio and acl to enable or disable build
with them. Then PACKAGECONFIG can be used to handle dependency.

Set "libaio" as a default feature of PACKAGECONFIG.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agostrace: update to 4.8
Kai Kang [Fri, 21 Jun 2013 08:12:20 +0000 (16:12 +0800)]
strace: update to 4.8

Update strace to 4.8:

* Update License file.
* Remove the backport patches which are already in version 4.8.
* Add file git-version-gen from git repo. Without this file configure
  fails.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobase.bbclass: Ensure finalised data is displayed in build banner
Richard Purdie [Thu, 20 Jun 2013 15:48:23 +0000 (16:48 +0100)]
base.bbclass: Ensure finalised data is displayed in build banner

The build banner displayed at the start of builds can be misleading since
the data store has not been finalised. As easy way to illustrate this is
to use something like:

DEFAULTTUNE = "i586"
DEFAULTTUNE_<machineoverride> = "core2"

and the banner will display the i586 tune yet the core2 tune will be
used. We can avoid this if we finalise a copy of the data before
displaying it.

[YOCTO #4225]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqt4: add eglibc-gconv-utf-16 to QtCore RRECOMMENDS when using glibc
Jonathan Liu [Thu, 20 Jun 2013 13:19:53 +0000 (23:19 +1000)]
qt4: add eglibc-gconv-utf-16 to QtCore RRECOMMENDS when using glibc

This fixes the following warnings when running Qt applications:
QIconvCodec::convertFromUnicode: using Latin-1 for conversion, iconv_open failed
QIconvCodec::convertToUnicode: using Latin-1 for conversion, iconv_open failed

Qt's QString class stores strings internally using UTF-16 encoding.
The UTF-16 iconv module is needed to convert between the system's local
8-bit representation and QString's UTF-16 encoding.

For example, the following functions would be affected:
QString::fromLocal8Bit(...)
QString::toLocal8Bit(...)

If the UTF-16 iconv module couldn't be loaded, it would use Latin-1
encoding instead of the system's encoding for conversion.

[YOCTO #349]

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotcl: fix unit test boundary year issue
Kai Kang [Thu, 20 Jun 2013 13:38:25 +0000 (21:38 +0800)]
tcl: fix unit test boundary year issue

Unit test clock.test check the boundary year 2099 which is not
inclusive. Include 2099 to be a valide year number.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotcl: remove hardcoded library install path
Kai Kang [Thu, 20 Jun 2013 13:38:24 +0000 (21:38 +0800)]
tcl: remove hardcoded library install path

Remove hardcoded library install path and then install library to
${libdir}.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoqemu: fix segfault in Xorg when not using kvm
Laurentiu Palcu [Thu, 20 Jun 2013 13:59:10 +0000 (16:59 +0300)]
qemu: fix segfault in Xorg when not using kvm

This backported patch will fix this Xorg issue and, probably, many
others which didn't show up yet.

[YOCTO #4737]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoutility-tasks/distrodata: Add recideptask flag for fetchall/checkuriall
Richard Purdie [Wed, 19 Jun 2013 13:05:17 +0000 (13:05 +0000)]
utility-tasks/distrodata: Add recideptask flag for fetchall/checkuriall

See the bitbake commit adding the recideptask flag for details of the
problem but in summary, we weren't seeing the [depends] of tasks like
do_rootfs being taking into account for fetchall. This was leading
to not all sources being fetched and this is the OE-Core part of the
fix for this problem.

BB_DEFAULT_TASK is the default task used since this is the one that
most commands would end up targeting and is how users expect the command
to behave.

[YOCTO #4597]

(From OE-Core rev: abf468963a087244887384122fd5202909e7f118)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoclasses/buildhistory: fix error when no packages are installed
Paul Eggleton [Wed, 19 Jun 2013 16:53:06 +0000 (17:53 +0100)]
classes/buildhistory: fix error when no packages are installed

"xargs -n1 basename" will execute basename even if there are no lines
piped into it, causing a "basename: missing operand" error if no
packages are installed, which will happen for the target portion of
buildtools-tarball.

(xargs' -r option could have been used here, but it is a GNU extension
and I thought it best to avoid that for the sake of future
interoperability).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobdwgc-native: Add missing pkgconfig DEPENDS
Richard Purdie [Wed, 19 Jun 2013 15:20:50 +0000 (16:20 +0100)]
bdwgc-native: Add missing pkgconfig DEPENDS

This fixes configure errors like:

| configure.ac:70: error: possibly undefined macro: AC_MSG_ERROR
|       If this token and others are legitimate, please use m4_pattern_allow.
|       See the Autoconf documentation.
| configure.ac:358: error: possibly undefined macro: AS_IF

Reproduced with bitbake bdwgc-native pkgconfig-native -c clean; bitbake bdwgc-native

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoclasses/package_tar: fix file ownership within tarballs
Paul Eggleton [Wed, 19 Jun 2013 13:15:52 +0000 (14:15 +0100)]
classes/package_tar: fix file ownership within tarballs

The fakeroot flag wasn't correctly set leading to files within the
output tarballs having uid/gid values from the build host instead of the
desired target permissions.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agowget: Add missing DEPENDS on zlib
Hongxu Jia [Wed, 19 Jun 2013 02:45:45 +0000 (10:45 +0800)]
wget: Add missing DEPENDS on zlib

Create a new build enviroment, build wget failed
...
configure:34512: checking for libssl
configure:34542: i586-poky-linux-gcc  -m32 -march=i586 --sysroot=/home/jiahongxu/yocto/build-20130613-qemu/tmp/sysroots/qemux86 -o conftest - O2 -pipe -g -feliminate-unused-debug-types  -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed conftest.c -ldl  -lssl /home/jiahongxu/yocto/build-  20130613-qemu/tmp/sysroots/qemux86/lib/libcrypto.so -lz >&5
/home/jiahongxu/yocto/build-20130613-qemu/tmp/sysroots/x86_64-linux/usr/libexec/i586-poky-linux/gcc/i586-poky-linux/4.7.2/ld: cannot find -lz collect2: error: ld returned 1 exit status
...

>From log as we known, the reason is link zlib failed, it isn't
explicitly in wget's DEPENDS. Add zlib to wget's DEPENDS.

[YOCTO #4749]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoautogen-native: fix build failure on overloaded hosts
Kai Kang [Wed, 19 Jun 2013 05:34:57 +0000 (13:34 +0800)]
autogen-native: fix build failure on overloaded hosts

On some overloaded hosts, shell commands of autogen may can not
finish in 5 secs. This has caused many build failures, so increase
the timeout limit to fix this.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolibpam: Fix for CVE-2010-4708
Wenzong Fan [Wed, 19 Jun 2013 03:21:29 +0000 (23:21 -0400)]
libpam: Fix for CVE-2010-4708

Change default for user_readenv to 0 and document the
new default for user_readenv.

This fix from:
http://pam.cvs.sourceforge.net/viewvc/pam/Linux-PAM/modules/pam_env
/pam_env.c?r1=1.22&r2=1.23&view=patch
http://pam.cvs.sourceforge.net/viewvc/pam/Linux-PAM/modules/pam_env
/pam_env.8.xml?r1=1.7&r2=1.8&view=patch

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoprocps: fix that top will quit after cpu offline
Wenzong Fan [Wed, 19 Jun 2013 03:21:11 +0000 (23:21 -0400)]
procps: fix that top will quit after cpu offline

top utiliy fails to read /proc/stat after cpu offline, because Cpu_tot
is still the original cpu numbers when calling cpus_refresh, in which
it is trying to read and sscanf Cpu_tot times /proc/stat.

The patch is from procps-3.2.8-2.fc12.src.rpm

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agocore-image-weston: add weston-examples to the image
Ross Burton [Tue, 18 Jun 2013 09:16:10 +0000 (10:16 +0100)]
core-image-weston: add weston-examples to the image

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosystemd-udevd: fix invoking init script failed
Hongxu Jia [Tue, 18 Jun 2013 12:25:14 +0000 (20:25 +0800)]
systemd-udevd: fix invoking init script failed

root@emenlow-noemgd:~# /etc/init.d/systemd-udevd restart
Stopping udevd
Starting udev
corrupt queue file
root@emenlow-noemgd:~# /etc/init.d/systemd-udevd status
udevd is stopped
root@emenlow-noemgd:~# ps
3805 root      8728 S    /lib/systemd/systemd-udevd

The process name is systemd-udevd rather than udev which is
used in systemd-udevd's init script.

[YOCTO #4746]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolinux-yocto/3.8: fix gcc 4.8 ARM boot issues
Bruce Ashfield [Tue, 18 Jun 2013 15:20:01 +0000 (11:20 -0400)]
linux-yocto/3.8: fix gcc 4.8 ARM boot issues

Updating the linux-yocto-3.8 SRCREVs to fix a boot issue with ARM boards
when gcc 4.8 is used.

Without the following mainline backports:

  f200475 ARM: 7670/1: fix the memset fix
  8215b0e ARM: 7668/1: fix memset-related crashes caused by recent GCC (4.7.2) optimizations

The following trap will be seen on boot:

    [<c00fc3b8>] (kmem_cache_alloc_trace+0x54/0x210) from [<c039f074>] (con_insert_unipair+0xcc/0x11c)
    [<c039f074>] (con_insert_unipair+0xcc/0x11c) from [<c039fec8>] (con_set_default_unimap+0xfc/0x198)
    [<c039fec8>] (con_set_default_unimap+0xfc/0x198) from [<c07ee258>] (console_map_init+0x44/0x58)
    [<c07ee258>] (console_map_init+0x44/0x58) from [<c07ee738>] (vty_init+0x16c/0x1b0)
    [<c07ee738>] (vty_init+0x16c/0x1b0) from [<c07edb68>] (tty_init+0x108/0x148)
    [<c07edb68>] (tty_init+0x108/0x148) from [<c07eead0>] (chr_dev_init+0xb4/0xd8)
    [<c07eead0>] (chr_dev_init+0xb4/0xd8) from [<c0008a18>] (do_one_initcall+0x11c/0x18c)
    [<c0008a18>] (do_one_initcall+0x11c/0x18c) from [<c07d89d0>] (kernel_init_freeable+0x16c/0x254)
    [<c07d89d0>] (kernel_init_freeable+0x16c/0x254) from [<c05a3810>] (kernel_init+0x18/0x160)
    [<c05a3810>] (kernel_init+0x18/0x160) from [<c000e530>] (ret_from_fork+0x14/0x20)
    Code: e593a000 e35a0000 0a000020 e5943014 (e79a1003)
    ---[ end trace e6c62de166779f86 ]---
    Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b

Moderate stress and board testing shows the fix to hold, and it is good for
broader testing.

[YOCTO #4549]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosato-screenshot: bump SRCREV for linkage fixes
Ross Burton [Tue, 18 Jun 2013 08:27:52 +0000 (09:27 +0100)]
sato-screenshot: bump SRCREV for linkage fixes

Newer toolchains are stricter with linking.  Patches have been merged upstream
so bump the SRCREV to use them.

fix_ldadd_order was also merged upstream, so delete it.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agomatchbox-panel: bump SRCREV for linkage fixes
Ross Burton [Tue, 18 Jun 2013 08:27:51 +0000 (09:27 +0100)]
matchbox-panel: bump SRCREV for linkage fixes

Newer toolchains are stricter with linking.  Patches have been merged upstream
so bump the SRCREV to use them.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogcc-4.8: Backport fix for ICE triggered in pixman
Martin Jansa [Tue, 11 Jun 2013 22:31:16 +0000 (00:31 +0200)]
gcc-4.8: Backport fix for ICE triggered in pixman

* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57329

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopseudo: drop version 1.4.5 recipe
Paul Eggleton [Mon, 17 Jun 2013 15:50:51 +0000 (16:50 +0100)]
pseudo: drop version 1.4.5 recipe

We've been using 1.5.1 for a while now with success, so in line with the
OE-Core policy of avoiding multiple versions of the same recipe let's
drop this version.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoopkg: put libopkg header files into libopkg-dev
Paul Barker [Mon, 17 Jun 2013 00:22:03 +0000 (01:22 +0100)]
opkg: put libopkg header files into libopkg-dev

The header files for libopkg belong in the package libopkg-dev rather than
opkg-dev where they are placed by default.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoopkg: fix header installation for libopkg
Paul Barker [Mon, 17 Jun 2013 00:22:02 +0000 (01:22 +0100)]
opkg: fix header installation for libopkg

When opkg is built outside the source directory, libopkg headers aren't all
installed as the search path for headers only includes the directory that make
is being ran in, not the source directory. So we fix this by adding
$(srcdir)/*.h to the list of header files to install.

Without this patch, "/usr/include/libopkg" will only include the file config.h.
With this patch, other files such as "opkg.h" are present which are needed to
compile software which uses libopkg.

The new patch has also been submitted upstream as a fix to opkg itself.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agooe-buildenv-internal: Ensure error messages got to stderr
Richard Purdie [Mon, 17 Jun 2013 15:38:24 +0000 (16:38 +0100)]
oe-buildenv-internal: Ensure error messages got to stderr

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoalsa-lib: check if wordexp is supported in libc
Jesse Zhang [Mon, 17 Jun 2013 12:23:18 +0000 (12:23 +0000)]
alsa-lib: check if wordexp is supported in libc

eglibc could be configured to build without the wordexp feature.  To
ensure that the wordexp feature could be used, the configure script must
check if wordexp() is supported in libc in addition to checking if
wordexp.h exists.

Signed-off-by: Hong H. Pham <hong.pham@windriver.com>
Signed-off-by: Jesse Zhang <sen.zhang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoalsa-lib: Change function type to "static __inline__"
Jesse Zhang [Mon, 17 Jun 2013 12:22:38 +0000 (12:22 +0000)]
alsa-lib: Change function type to "static __inline__"

"extern __inline__ function()" is the inlined version that
can be used in this compilation unit, but there will be another
definition of this function somewhere, so compiler will not emit
any code for the function body. This causes problem in -O0,
where functions are never inlined, the function call is preserved,
but linker can't find the symbol, thus the error happens.

since no packages provide atomic_add and atomic_sub, and -O0
Optimize is hoped to keep for debug, we can change extern to
static to fix this problem.

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
Signed-off-by: Jesse Zhang <sen.zhang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agopython: Add nativesdk wrapper to handle terminfo
Richard Purdie [Mon, 17 Jun 2013 14:57:49 +0000 (15:57 +0100)]
python: Add nativesdk wrapper to handle terminfo

Currently if you build nativesdk-python, install it and try and run it,
you see it search in the default nativesdk path for terminfo files
when the readline module is used.

If terminfo files cannot be found, or if the ones found are incorrect,
the system may emit control characters which confuse commandline
processing.

This patch sets the TERMINFO_DIRS variable to ensure the correct locations
are searched for terminfo files, starting with the nativesdk terminfo files
and falling back to the host systtem's.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoutils.bbclass: Tweak create_wrapper
Richard Purdie [Mon, 17 Jun 2013 14:57:03 +0000 (15:57 +0100)]
utils.bbclass: Tweak create_wrapper

Currently the full path is specified to exec however this may incorporate a
build path which in the nativesdk case, is not transformed to a target system
path. This leads to failures due to incorrect paths.

This patch ensures the full build path is not encoded into the wrapper script.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoclasses/externalsrc: enable global inherit and simplify usage
Paul Eggleton [Mon, 17 Jun 2013 13:46:03 +0000 (14:46 +0100)]
classes/externalsrc: enable global inherit and simplify usage

This class can now be inherited globally using INHERIT += rather than
needing to inherit it in the recipe itself. Additionally, instead of
setting S (and optionally B), set EXTERNALSRC (and optionally
EXTERNALSRC_BUILD) to point to the external source and build locations
respectively.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agolicences: Add SGI license
Diego Rondini [Thu, 13 Jun 2013 08:49:17 +0000 (10:49 +0200)]
licences: Add SGI license

Add SGI license used, for example, in glmark2

Signed-off-by: Diego Rondini <diego.ml@zoho.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoatk: inherit gnomebase
Ross Burton [Fri, 14 Jun 2013 17:30:41 +0000 (18:30 +0100)]
atk: inherit gnomebase

This recipe was missing a dependency on gnome-common, so lets just inherit
gnomebase and get both it and GNOME SRC_URI handling for free.

Signed-off-by: Ross Burton <ross.burton@intel.com>
[sgw - atk: add archive tag to SRC_URI checksums]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agolibcap: do not pass CFLAGS to gcc
Jackie Huang [Fri, 14 Jun 2013 08:09:33 +0000 (16:09 +0800)]
libcap: do not pass CFLAGS to gcc

During do_configure(), we modify the BUILD_CFLAGS used
but do not remove the default inclusion of CFLAGS
in BUILD_CFLAGS.  This fix removes CFLAGS inclusion
by modifying do_configure().

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agodirectfb:filter out -fno-omit-frame-pointer option on x86 arch
Roy.Li [Fri, 14 Jun 2013 07:15:22 +0000 (15:15 +0800)]
directfb:filter out -fno-omit-frame-pointer option on x86 arch

directfb need -fomit-frame-pointer option of gcc to build some inline
asm code about mmx. But once -fno-omit-frame-pointer was added
into TARGET_CFLAGS. That will cause directfb build error on x86 arch.

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoopenssh: obey 'tcp-wrappers' PACKAGECONFIG
Roy.Li [Fri, 14 Jun 2013 07:02:52 +0000 (15:02 +0800)]
openssh: obey 'tcp-wrappers' PACKAGECONFIG

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoopenssh: fix a unaligned memory access issue
Roy.Li [Fri, 14 Jun 2013 07:02:51 +0000 (15:02 +0800)]
openssh: fix a unaligned memory access issue

Backport patch to fix segment fault due to unaligned memory access

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoopenssl: Add fix for cipher des-ede3-cfb1
Muhammad Shakeel [Thu, 13 Jun 2013 11:41:20 +0000 (16:41 +0500)]
openssl: Add fix for cipher des-ede3-cfb1

Add patch file for one of the ciphers used in openssl, namely the cipher
des-ede3-cfb1. Details of the bug, without this patch, can be found here.
http://rt.openssl.org/Ticket/Display.html?id=2867

Signed-off-by: Muhammad Shakeel <muhammad_shakeel@mentor.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agobind: backport six CVE patches
Roy.Li [Thu, 13 Jun 2013 05:51:51 +0000 (13:51 +0800)]
bind: backport six CVE patches

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agoarchiver.bbclass: check if package contains a copyleft license
Kevin Strasser [Wed, 12 Jun 2013 20:27:15 +0000 (13:27 -0700)]
archiver.bbclass: check if package contains a copyleft license

The copyleft filter is only excluding packages that contain a
closed source license. This is because oe.license.is_included()
returns a boolean value that indicates if the license is excluded,
and a string that contains the matched included licenses. If the
string is empty it indicates that no licenses were matched.

Reject packages that do not contain a copyleft license.

[YOCTO 4630]

Signed-off-by: Kevin Strasser <kevin.strasser@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agowebkit-gtk: Support build on mips64
Khem Raj [Wed, 12 Jun 2013 17:56:05 +0000 (10:56 -0700)]
webkit-gtk: Support build on mips64

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agodhcp: drop noattrmode.patch
Kevin Strasser [Wed, 12 Jun 2013 17:40:31 +0000 (10:40 -0700)]
dhcp: drop noattrmode.patch

This change no longer needs to be backported now that a newer version
of dhcp is being used. The patch isn't causing errors because it is not
included in the dhcp recipe's SRC_URI.

Signed-off-by: Kevin Strasser <kevin.strasser@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agodhcp: drop fixincludes.patch
Kevin Strasser [Wed, 12 Jun 2013 17:40:30 +0000 (10:40 -0700)]
dhcp: drop fixincludes.patch

Recent versions of dhcp have swapped out use of __u16 for u_int16_t and
therefor asm/types.h no longer needs to be included. Drop fixincludes.patch
from dhcp recipe.

Signed-off-by: Kevin Strasser <kevin.strasser@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agogtk+3: fix repainting under Weston 1.1
Ross Burton [Fri, 31 May 2013 14:22:38 +0000 (15:22 +0100)]
gtk+3: fix repainting under Weston 1.1

Weston 1.1 is stricter with the protocol, so fix the behaviour in GTK+.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agogtk+3: clean up libtool link creation to avoid errors in configure log
Ross Burton [Wed, 29 May 2013 18:15:16 +0000 (19:15 +0100)]
gtk+3: clean up libtool link creation to avoid errors in configure log

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
11 years agogtk+3: split into .bb/.inc
Ross Burton [Wed, 29 May 2013 15:45:58 +0000 (16:45 +0100)]
gtk+3: split into .bb/.inc

I plan on introducing a git master version for automatically testing upstream
development, so this split makes things a lot easier.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>