]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
13 years agouclibc: Fix bug exposed by udev 168+ for mips architecture
Khem Raj [Thu, 30 Jun 2011 08:07:15 +0000 (01:07 -0700)]
uclibc: Fix bug exposed by udev 168+ for mips architecture

newer udev uses sgnalfd + epoll and this exposed a bug
in uclibc for mips where SFD_NONBLOCK should be defined
with 0200 for mips but was using 04000. This would cause
random segfaults in udev during boot process

Tested on qemumips/angstrom console-image since angstrom
uses udev 171. It worked well when we did not use meta-oe
layer because udev in oe-core will then be used which is
at version 164.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoclasses/package.bbclass: Add fixup_perms
Mark Hatle [Mon, 20 Jun 2011 15:57:49 +0000 (10:57 -0500)]
classes/package.bbclass: Add fixup_perms

Add a new function that is responsible for fixing directory and file
permissions, owners and groups during the packaging process.  This will fix
various issues where two packages may create the same directory and end up
with different permissions, owner and/or group.

The issue being resolved is that if two packages conflict in their ownership
of a directory, the first installed into the rootfs sets the permissions.
This leads to a least potentially non-deterministic filesystems, at worst
security defects.

The user can specify their own settings via the configuration files
specified in FILESYSTEM_PERMS_TABLES.  If this is not defined, it will
fall back to loading files/fs-perms.txt from BBPATH.  The format of this
file is documented within the file.

By default all of the system directories, specified in bitbake.conf, will
be fixed to be 0755, root, root.

The fs-perms.txt contains a few default entries to correct documentation,
locale, headers and debug sources.  It was discovered these are often
incorrect due to being directly copied from the build user environment.

The entries needed to match the base-files package have also been added.

Also tweak a couple of warnings to provide more diagnostic information.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
13 years agobinutils: allow distro to select gold as default linker
Phil Blundell [Mon, 27 Jun 2011 15:51:16 +0000 (16:51 +0100)]
binutils: allow distro to select gold as default linker

But ensure that gcc-cross-intermediate always uses ld.bfd since
(e)glibc won't build with gold.

Signed-off-by: Phil Blundell <philb@gnu.org>
13 years agouclibc: Add UCLIBC_HAS_FLOATS=y to uClibc.distro
Khem Raj [Tue, 28 Jun 2011 01:40:53 +0000 (18:40 -0700)]
uclibc: Add UCLIBC_HAS_FLOATS=y to uClibc.distro

Remove unused uClibc.distro from topdir. It just creates
confusion

Signed-off-by: Khem Raj <raj.khem@gmail.com>
13 years agouclibc_git.bb: Untether UCLIBC_HAS_FPU from UCLIBC_HAS_FLOATS
Khem Raj [Tue, 28 Jun 2011 01:40:52 +0000 (18:40 -0700)]
uclibc_git.bb: Untether UCLIBC_HAS_FPU from UCLIBC_HAS_FLOATS

Signed-off-by: Khem Raj <raj.khem@gmail.com>
13 years agouclibc.inc: Use ARCH_WANTS_{LITTLE|BIG}_ENDIAN to denote endian
Khem Raj [Tue, 28 Jun 2011 01:40:51 +0000 (18:40 -0700)]
uclibc.inc: Use ARCH_WANTS_{LITTLE|BIG}_ENDIAN to denote endian

ARCH_{BIG|LITTLE}_ENDIAN is governed by ARCH_WANTS_{LITTLE|BIG}_ENDIAN
therefore we tame the superior

Signed-off-by: Khem Raj <raj.khem@gmail.com>
13 years agouclibc-config.inc: Fix regexp to determine big-endian arm
Khem Raj [Tue, 28 Jun 2011 01:40:50 +0000 (18:40 -0700)]
uclibc-config.inc: Fix regexp to determine big-endian arm

Without this even arm-*-* was being treated as big endian
but normal convention is the arm-*-* is little endian

Signed-off-by: Khem Raj <raj.khem@gmail.com>
13 years agouclibc: Remove redundant machine/arch configs
Khem Raj [Tue, 28 Jun 2011 01:40:49 +0000 (18:40 -0700)]
uclibc: Remove redundant machine/arch configs

Big endian counterparts are not needed since
we already add the proper endianness to final
config as seen in uclibc-config.inc

The difference between arm and armv5te configs
were also superficial since all it did was select
arm926t which made sure that right mtune and march
flags were passed to gcc when building uclibc
We already do that via passing them in
UCLIBC_EXTRA_CFLAGS.

Similarly for other architectures the features
are really taken care of in config mangler and
machine config fragments are no longer needed

Signed-off-by: Khem Raj <raj.khem@gmail.com>
13 years agoshadow-native: fix creation of home directories
Scott Garman [Tue, 28 Jun 2011 22:15:39 +0000 (15:15 -0700)]
shadow-native: fix creation of home directories

Pseudo was recently changed so that when system() calls are
made after a chroot(), the host binaries can no longer be found,
breaking the system("mkdir -p") approach when useradd creates
home directories.

Instead, use mkdir(2) to create home directories with a helper
function to ensure parent directories get created.

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
13 years agoAdd OECORE_ACLOCAL_OPTS to env setup scripts for autotool project using correct libto...
Jessica Zhang [Wed, 29 Jun 2011 21:18:20 +0000 (14:18 -0700)]
Add OECORE_ACLOCAL_OPTS to env setup scripts for autotool project using correct libtool 2.4

Signed-off-by: Jessica Zhang <jessica.zhang@intel.com>
13 years agoconsolekit 0.4.5: remove patch that forcibly disables consolekit
Koen Kooi [Sat, 25 Jun 2011 09:24:45 +0000 (11:24 +0200)]
consolekit 0.4.5: remove patch that forcibly disables consolekit

Polkit support is actually needed for consolekit to function properly, without you get things like:

** (gnome-panel:547): WARNING **: Could not ask session manager if shut down is available: Timeout was reached

Various applications will timeout and less well written ones will crash (e.g. the clock applet).

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
13 years agoconsolekit 0.4.5: add pam support based on distro features
Koen Kooi [Sat, 25 Jun 2011 09:24:44 +0000 (11:24 +0200)]
consolekit 0.4.5: add pam support based on distro features

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
13 years agowebkit-gtk: fix packaging
Koen Kooi [Fri, 24 Jun 2011 13:59:32 +0000 (15:59 +0200)]
webkit-gtk: fix packaging

Somewhere in the past webkit changed from webkit-x to webkitgtk-x but the person updating the recipe didn't catch that

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
13 years agodbus: update to 1.4.12
Koen Kooi [Thu, 23 Jun 2011 11:56:48 +0000 (13:56 +0200)]
dbus: update to 1.4.12

The tmpdir patch has been regenerated and can now be applied with git-am, no functional changes.

The biggest improvement is that dbus will log to syslog nowadays:

[   22.238708] <29>dbus[237]: [system] Activating service name='fi.w1.wpa_supplicant1' (using servicehelper)

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
13 years agolinux-libc-headers: add 2.6.39
Koen Kooi [Tue, 21 Jun 2011 13:00:23 +0000 (15:00 +0200)]
linux-libc-headers: add 2.6.39

The 2.6.37.2 version is kept to allow the qemu kernels and libc headers version to match

13 years agoccache: Remove duplicate 'ccache.inc' from 'meta/class/'
Wenzong Fan [Fri, 24 Jun 2011 07:57:12 +0000 (15:57 +0800)]
ccache: Remove duplicate 'ccache.inc' from 'meta/class/'

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
13 years agoccache: Add 'ccache' for SDK images
Wenzong Fan [Fri, 24 Jun 2011 07:51:38 +0000 (15:51 +0800)]
ccache: Add 'ccache' for SDK images

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
13 years agoccache: Set CCACHE on a per recipe basis
Wenzong Fan [Fri, 24 Jun 2011 07:42:14 +0000 (15:42 +0800)]
ccache: Set CCACHE on a per recipe basis

Set 'CCACHE_DIR' in 'bitbake.conf' and create the dirs for every
package before task 'do_configure' started.

[RP: Merge dirs variables into one]
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoccache: Integrate ccache-native to poky
Wenzong Fan [Fri, 24 Jun 2011 07:38:24 +0000 (15:38 +0800)]
ccache: Integrate ccache-native to poky

Add ccache as a native tool and put its recipe files to:
'meta/recipes-devtools/ccache'.

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
13 years agoAdd umask task control
Mark Hatle [Wed, 22 Jun 2011 04:56:25 +0000 (23:56 -0500)]
Add umask task control

Bitbake now allows the umask to be specified per task.  The
following tasks will have a umask of 022 set by default:

do_configure
do_compile
do_install
do_package
do_populate_sysroot
do_rootfs

do_configure and do_compile need a umask of 022 set because -many- recipes
directly copy generated files out of recipe's build directory.  Instead of
fixing each existing and future recipe, it was shown to be much easier to
just set the umask.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
13 years agolinux-firmware: Fix file permissions
Mark Hatle [Fri, 24 Jun 2011 18:29:29 +0000 (13:29 -0500)]
linux-firmware: Fix file permissions

The firmware was installed 0666 which could have been a security
issue.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
13 years agoscripts/runqemu: enable btrfs
Nitin A Kamble [Fri, 17 Jun 2011 00:58:39 +0000 (17:58 -0700)]
scripts/runqemu: enable btrfs

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
13 years agobase-files: add btrfs to /etc/filesystems
Nitin A Kamble [Fri, 17 Jun 2011 00:47:13 +0000 (17:47 -0700)]
base-files: add btrfs to /etc/filesystems

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
13 years agoimage_types.bbclass: enable btrfs as one of the image type
Nitin A Kamble [Tue, 21 Jun 2011 19:10:20 +0000 (12:10 -0700)]
image_types.bbclass: enable btrfs as one of the image type

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
13 years agoimage-types.bbclass: get the image size in the whole number
Nitin A Kamble [Tue, 21 Jun 2011 19:08:43 +0000 (12:08 -0700)]
image-types.bbclass: get the image size in the whole number

Avoid fractions like 80.72 and round them to whole numbers.

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
13 years agosanity.bbclass: pass the data object to the less frequent test harnesses
Joshua Lock [Thu, 28 Apr 2011 22:31:19 +0000 (15:31 -0700)]
sanity.bbclass: pass the data object to the less frequent test harnesses

By passing the data object to the less frequently run test harnesses
(check_sanity_tmpdir_change(), check_sanity_sstate_dir_change() and
check_sanity_version_change()) we can run tests against BitBake data here
too.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
13 years agodistro_tracking_field: update recipe maintainer
Yu Ke [Mon, 20 Jun 2011 04:47:48 +0000 (12:47 +0800)]
distro_tracking_field: update recipe maintainer

reassign Qing's recipe to other team member

Signed-off-by: Yu Ke <ke.yu@intel.com>
13 years agobtrfs-tools: new recipe for tools to operate on btrfs images
Nitin A Kamble [Fri, 10 Jun 2011 01:12:12 +0000 (18:12 -0700)]
btrfs-tools: new recipe for tools to operate on btrfs images

Added these patches to the recipe to get it to work as desired:

Upstream patches from tmp & for-dragonn branches of repository http://git.kernel.org/?p=linux/kernel/git/mason/btrfs-progs-unstable.git

Also included the debian patches.

Nitin's patch to make the makefile cross friendly

And Xin Zhong's patch to improve mkfs.btrfs

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
13 years agokernel: move menuconfig task after configure
Darren Hart [Wed, 29 Jun 2011 19:16:07 +0000 (12:16 -0700)]
kernel: move menuconfig task after configure

Fixes [YOCTO 1136]

linux-yocto adds some configure steps that are necessary to prepare the source
tree after the do_patch task. This causes a "-c menuconfig" to fail in a clean
build tree. Typical use of menuconfig should be to modify the config provided
by the recipe being built. It therefor makes sense for the menuconfig task to
come after the configure task. This also happens to fix the issue seen with the
linux-yocto kernel recipe.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
13 years agoutil-linux: Rebase remove-lscpu patch from non-gplv3
Saul Wold [Wed, 29 Jun 2011 23:52:52 +0000 (16:52 -0700)]
util-linux: Rebase remove-lscpu patch from non-gplv3

Signed-off-by: Saul Wold <sgw@linux.intel.com>
13 years agogcc-4.6: share work directories
Robert Yang [Tue, 28 Jun 2011 20:31:53 +0000 (14:31 -0600)]
gcc-4.6: share work directories

* Fix configure and Makefile to read the defaults.h and t-oe from ${B},
  so that the ${S} can be shared.

* Change ${S} to the shared source directory.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
13 years agogcc-4.5.1: share work directories
Robert Yang [Tue, 14 Jun 2011 08:58:32 +0000 (16:58 +0800)]
gcc-4.5.1: share work directories

Fix configure and Makefile to read the defaults.h and t-oe from ${B},
so that the ${S} can be shared.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
13 years agoShare gcc work directories
Robert Yang [Tue, 28 Jun 2011 20:31:04 +0000 (14:31 -0600)]
Share gcc work directories

This patched is derived from Richard, make gcc use the shared source
directory during the different building:

1) Make gcc-cross, gcc-cross-initial, gcc-cross-intermediate and
   gcc-runtime share the same source directory.

2) The source directory is ${TMPDIR}/work-shared/gcc-${PV}, for example:
   tmp/work-shared/gcc-4.5.1

3) Fix do_clean to clean the shared source directory and stamps

4) gcc uses sed and creates config files against ${S} which means the
   directory should not be shared. Change the way to make it work:

   * The configure option --with-headers=${STAGING_DIR_TARGET}${SYSTEMHEADERS}
     can replace the sed command, see the code in configure:

        if test "x$with_headers" != x; then
          glibc_header_dir=$with_headers

    This has the same effect as the sed command:

    sed -i 's:^\([  ]*\)glibc_header_dir=\"${with_build_sysroot}/usr/include\": ...

    so add the --with-headers=${STAGING_DIR_TARGET}${SYSTEMHEADERS} to
    gcc-configure-cross.inc( not add to gcc-configure-common.inc, since
    not all the gcc building need this, the one which has its own do_configure
    doesn't need it).

   * Move t-oe from ${T} to ${B}/gcc, so that the patched Makefile.in
     can read it easily, please see the commit for gcc-4.5.1 and
     gcc-4.6.0.

   * Use the defaults.h in ${B}/gcc instead of ${S}/gcc, and the patched
     configure.ac(configure) can read it correctly, please see the
     commit for gcc-4.5.1 and gcc-4.6.0.

   * The gcc-crosssdk.inc used sed to edit ${S}/config/*/linux*.h
     to change the GLIBC_DYNAMIC_LINKER, which made the source
     incompatible. To make the source compatible:
     - Use:
 sed -i ${S}/gcc/config/*/linux*.h -e \
's#\(GLIBC_DYNAMIC_LINKER[^ ]*\)\( *"/lib.*\)#\1 SYSTEMLIBS_DIR\2#'

so entries in the files that look like:
#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux-x86-64.so.2"
would become
#define GLIBC_DYNAMIC_LINKER64 SYSTEMLIBS_DIR"/ld-linux-x86-64.so.2"
and we define SYSTEMLIBS_DIR in defaults.h.

NOTE:
#define GLIBC_DYNAMIC_LINKER64 (SYSTEMLIBS_DIR "/ld-linux-x86-64.so.2")
doesn't work in in the following define:
#define LINUX_DYNAMIC_LINKER \
   CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER)
so use
#define GLIBC_DYNAMIC_LINKER64 SYSTEMLIBS_DIR"/ld-linux-x86-64.so.2"

5) Add do_configure_prepend to gcc-configure-common.inc and remove the
   one in gcc-crosssdk.inc, this makes it easy to share the source,
   otherwise we need do extra changes in gcc-configure-sdk.inc.

6) Use "cat > file <_EOF" to replace the "echo > file"

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
13 years agosanity.conf: Require bitbake version 1.13.2 at a minimum
Richard Purdie [Thu, 30 Jun 2011 19:36:26 +0000 (20:36 +0100)]
sanity.conf: Require bitbake version 1.13.2 at a minimum

13 years agoglibc-2.12: Add missing PR bump
Richard Purdie [Thu, 30 Jun 2011 15:56:07 +0000 (16:56 +0100)]
glibc-2.12: Add missing PR bump

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoeglibc-package.bbclass: Ensure localedef is only packaged in one location
Richard Purdie [Thu, 30 Jun 2011 15:45:20 +0000 (16:45 +0100)]
eglibc-package.bbclass: Ensure localedef is only packaged in one location

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoeglibc-package.bbclass: Fix unintended code changes
Richard Purdie [Thu, 30 Jun 2011 15:41:49 +0000 (16:41 +0100)]
eglibc-package.bbclass: Fix unintended code changes

Commit 477ede7472db0bacd5daacb96e97f849d1be84ee accidentally reverted
some code changes it shouldn't have done leading to continued eglibc
packaging issues. This patch corrects that damage.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agodistro_tracking_fields.inc: update RECIPE_MANUAL_CHECK_DATE for screen and tcf-agent
Dexuan Cui [Wed, 29 Jun 2011 12:59:06 +0000 (20:59 +0800)]
distro_tracking_fields.inc: update RECIPE_MANUAL_CHECK_DATE for screen and tcf-agent

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
13 years agolttng-ust: change the patch's Upstream-Status to Accepted.
Dexuan Cui [Wed, 29 Jun 2011 12:53:30 +0000 (20:53 +0800)]
lttng-ust: change the patch's Upstream-Status to Accepted.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
13 years agogrub: add -fno-reorder-functions into STAGE2_COMPILE
Dexuan Cui [Wed, 29 Jun 2011 12:32:32 +0000 (20:32 +0800)]
grub: add -fno-reorder-functions into STAGE2_COMPILE

This is used to work around a gcc-4.6's bug about the option.

[YOCTO #1099]

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
13 years agoglib-2.0,intltool,rpm,sgmlspl-native: Bump PR to resolve perl-native issue
Dexuan Cui [Fri, 17 Jun 2011 02:09:50 +0000 (10:09 +0800)]
glib-2.0,intltool,rpm,sgmlspl-native: Bump PR to resolve perl-native issue

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
13 years agotask-base: add 3G into DISTRO_FEATURE
Dongxiao Xu [Tue, 28 Jun 2011 07:59:06 +0000 (15:59 +0800)]
task-base: add 3G into DISTRO_FEATURE

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
13 years agoinitscript: Change some order of init scripts
Dongxiao Xu [Thu, 16 Jun 2011 08:59:03 +0000 (16:59 +0800)]
initscript: Change some order of init scripts

Move udev script to execute ealier since module autoload needs it to
create device nodes.

Also move sysfs before udev which has dependency on it.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
13 years agoconnman-gnome: Add 3G configuration support
Dongxiao Xu [Thu, 16 Jun 2011 08:58:20 +0000 (16:58 +0800)]
connman-gnome: Add 3G configuration support

Apply 3g.patch which add cellular config option in connman-gnome.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
13 years agoofono: upgrade to version 0.50
Dongxiao Xu [Tue, 28 Jun 2011 06:51:51 +0000 (14:51 +0800)]
ofono: upgrade to version 0.50

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
13 years agowpa-supplicant: remove the 0.6.10 version.
Dongxiao Xu [Thu, 16 Jun 2011 08:55:59 +0000 (16:55 +0800)]
wpa-supplicant: remove the 0.6.10 version.

Remove the 0.6.10 version since now 0.7.3 is the latest stable version.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
13 years agoconnman: Upgrade to version 0.75
Dongxiao Xu [Tue, 28 Jun 2011 07:58:40 +0000 (15:58 +0800)]
connman: Upgrade to version 0.75

Enable ofono plugin.
Adopt some logic in meta-oe on connman plugin runtime dependency.
Remove the fix-shutdown-ap-disconnect.patch since the original logic no longer exists.
Add Upstream-Status information for patches.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
13 years agodistro_tracking: update some manual checking fields
Dongxiao Xu [Wed, 29 Jun 2011 06:03:47 +0000 (14:03 +0800)]
distro_tracking: update some manual checking fields

linux-firmware
minicom
opkg
dpkg
wireless-tools
libgsmd
libsamplerate0

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
13 years agoweb-webkit: recommends glib-networking to access https web page
Zhai Edwin [Thu, 23 Jun 2011 23:58:18 +0000 (07:58 +0800)]
web-webkit: recommends glib-networking to access https web page

It is required by libsoup for TLS support.

[YOCTO #1037] got fixed

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
13 years agoUpstream-Status: update the status for some patches
Dongxiao Xu [Wed, 29 Jun 2011 08:43:22 +0000 (16:43 +0800)]
Upstream-Status: update the status for some patches

gypsy: fix-unused-but-set-variable-warning.patch
telepathy-python: parallel_make.patch
opkg-utils: mtime-int.patch
opkg: headerfix.patch
flac: flac-gcc43-fixes.patch
libsamplerate0: libsamplerate-0.1.7-macro-quoting.patch

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
13 years agoprelink_git.bb: Only block the postinst script when no image-prelink
Mark Hatle [Wed, 29 Jun 2011 01:36:11 +0000 (20:36 -0500)]
prelink_git.bb: Only block the postinst script when no image-prelink

If image-prelink is being used, the system will automatically prelink
the target image.  This avoids the need to run the postinst prelink
script at first boot.  However, if the user has not enabled image
prelinking -- then we do enable the script to run on first boot.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
13 years agosstate.bbclass: Fix an issue if the config changes
Mark Hatle [Wed, 29 Jun 2011 01:34:19 +0000 (20:34 -0500)]
sstate.bbclass: Fix an issue if the config changes

We need to check if we know of the task type, before we attempt
to process it.  In order to reproduce the problem build with:

PACKAGE_CLASSES = "package_ipk"

Then change it to:

PACKAGE_CLASSES = "package_rpm"

Build again -- and then try bitbake -c cleansstate <recipe>

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
13 years agofontconfig: specify font directory in EXTRA_OECONF
Phil Blundell [Mon, 27 Jun 2011 15:24:08 +0000 (16:24 +0100)]
fontconfig: specify font directory in EXTRA_OECONF

since, otherwise, fontconfig's builtin default may not match ${datadir}.

Signed-off-by: Phil Blundell <philb@gnu.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agosystemtap: add sqlite3 to DEPENDS
Saul Wold [Sun, 26 Jun 2011 03:15:36 +0000 (20:15 -0700)]
systemtap: add sqlite3 to DEPENDS

Signed-off-by: Saul Wold <sgw@linux.intel.com>
13 years agolibc locale split: fix some remaining problems
Koen Kooi [Wed, 29 Jun 2011 12:00:23 +0000 (14:00 +0200)]
libc locale split: fix some remaining problems

* libc-{common,package}.bbclass: fix shlib renaming for the C library
Without this you'd end up with eglibc_2.12.ipk instead of libc6_2.12.ipk as before

* eglibc-locale: don't make versions go backwards after split from eglibc
eglibc was way beyond PR = "r1" at the time of the split, so increase PR to make package upgrades work

[RP: Fixup PR merge conflict]
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoglibc/eglibc: Clean up package warnings and potentially broken data in -dev package
Richard Purdie [Wed, 29 Jun 2011 12:35:00 +0000 (13:35 +0100)]
glibc/eglibc: Clean up package warnings and potentially broken data in -dev package

These changes ensure files packaged in the -locale package aren't included
in the main do_install and also ensures the staging directory used for
the -locale package doesn't end up in the -dev package.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agolibc-locale: Fixup various packaging warnings
Richard Purdie [Wed, 29 Jun 2011 12:04:40 +0000 (13:04 +0100)]
libc-locale: Fixup various packaging warnings

After the recent locale changes there were warnings about many unpackaged files.
Fix this by directing libc-package.bbclass to operate directly on the files in
the sysroot and adding packaging for .debug files in this package.

Also sync up the eglibc and glibc versions of this code more closely.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoscripts/oe-setup-builddir: Fix Yocto documentation links and add a couple of other...
Richard Purdie [Wed, 29 Jun 2011 09:55:33 +0000 (10:55 +0100)]
scripts/oe-setup-builddir: Fix Yocto documentation links and add a couple of other example targets

This takes into account some feedback from Yocto's tech writer
as mentioned in the bugzilla.

[YOCTO #1182]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years ago[PATCH] u-boot-mkimage: bump version to 2011.03
Ilya Yanok [Tue, 28 Jun 2011 14:54:51 +0000 (16:54 +0200)]
[PATCH] u-boot-mkimage: bump version to 2011.03

This patch changes u-boot-mkimage version to 2011.03. Unfortunately
U-Boot 2011.03 release has some problems building tools from
unconfigured tree, so this patch aslo includes the backported fixes.

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agolibc-locale: Drop PN-locale packages
Richard Purdie [Tue, 28 Jun 2011 16:05:03 +0000 (17:05 +0100)]
libc-locale: Drop PN-locale packages

These never seem to have been generated and matched no known FILES anyhow.

This ensures localedef makes it into the correct package too.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agogcc-cross-kernel: update to match new toolchain sysroot layout
Koen Kooi [Mon, 27 Jun 2011 16:56:42 +0000 (18:56 +0200)]
gcc-cross-kernel: update to match new toolchain sysroot layout

The versioned gcc binary gets installed and the needed binutils symlinks are made.

To make it fully work again the following is needed in kernel recipes/classes:

PATH_prepend = "${STAGING_BINDIR_TOOLCHAIN}.gcc-cross-kernel:"

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoAdd PARALLEL_MAKE to BB_ENV_EXTRAWHITE
Darren Hart [Mon, 27 Jun 2011 21:11:58 +0000 (14:11 -0700)]
Add PARALLEL_MAKE to BB_ENV_EXTRAWHITE

As BB_NUMBER_THREADS is already whitelisted, it is consistent to
also allow PARALLEL_MAKE to be overridden via the environment. This
also simplifies performance testing where multiple combinations of
those two variables are a natural thing to do.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agobase.bbclass: Back off the fatal error to a warning for now and try and recover
Richard Purdie [Tue, 28 Jun 2011 13:47:10 +0000 (14:47 +0100)]
base.bbclass: Back off the fatal error to a warning for now and try and recover

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agodistro-tracking: Update manual check date for puzzles, gpgme, x11vnc..
Zhai Edwin [Tue, 28 Jun 2011 03:06:53 +0000 (11:06 +0800)]
distro-tracking: Update manual check date for puzzles, gpgme, x11vnc..

Also make maintainer name consistent.

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
13 years agoglib-networking: Add 2.28.7 as new recipe
Zhai Edwin [Fri, 24 Jun 2011 07:49:14 +0000 (15:49 +0800)]
glib-networking: Add 2.28.7 as new recipe

glib-networking contains the implementations of certain GLib networking
features that cannot be implemented directly in GLib itself because of their
dependencies. TLS/SSL support is one of them, which is needed for accessing SSL
web page.

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
13 years agosanity.bbclass: only run check_pseudo_wrapper for bitbake
Dexuan Cui [Sun, 19 Jun 2011 11:50:46 +0000 (19:50 +0800)]
sanity.bbclass: only run check_pseudo_wrapper for bitbake

This patch eliminates the warning "not been run using the bitbake wrapper..."
when we run bitbake-layers.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
13 years agogconf-dbus: Fix SRC_URI to tarball
Saul Wold [Thu, 16 Jun 2011 02:58:15 +0000 (19:58 -0700)]
gconf-dbus: Fix SRC_URI to tarball

Signed-off-by: Saul Wold <sgw@linux.intel.com>
13 years agodistro_tracking: update sudo tracking info
Scott Garman [Tue, 14 Jun 2011 17:02:41 +0000 (10:02 -0700)]
distro_tracking: update sudo tracking info

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
13 years agosudo: upgrade to v1.8.1p2
Scott Garman [Tue, 14 Jun 2011 16:49:18 +0000 (09:49 -0700)]
sudo: upgrade to v1.8.1p2

Upgrading to the latest stable release of sudo.

This version of sudo has reorganized its source code layout, hence
the LIC_FILES_CHKSUM related changes. Also, some of the individual
.c files we checksummed (nonunix.h, vasgroups.c) are no longer
shipped with the sources. Finally, an embedded copy of zlib is now
included in these sources, so Zlib is included as one of the
licenses. I could not find any evidence of MIT-licensed sources,
so that license has been removed.

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
13 years agooe.classutils: add module
Chris Larson [Tue, 29 Mar 2011 21:59:22 +0000 (14:59 -0700)]
oe.classutils: add module

This adds a ClassRegistry utility metaclass, as maintaining a class registry
is a fairly common thing to do.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
13 years agodistro_tracking: update mtools tracking info
Scott Garman [Thu, 16 Jun 2011 03:04:52 +0000 (20:04 -0700)]
distro_tracking: update mtools tracking info

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
13 years agomtools: upgrade to v4.0.16
Scott Garman [Thu, 16 Jun 2011 03:04:05 +0000 (20:04 -0700)]
mtools: upgrade to v4.0.16

Also added Upstream-Status: tag to a patch.

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
13 years agolib_package.bbclass: move static libraries to ${PN}-staticdev
Otavio Salvador [Thu, 16 Jun 2011 20:59:31 +0000 (20:59 +0000)]
lib_package.bbclass: move static libraries to ${PN}-staticdev

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
13 years agolibxml: extend nativesdk class
Otavio Salvador [Thu, 16 Jun 2011 21:07:14 +0000 (21:07 +0000)]
libxml: extend nativesdk class

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
13 years agodistrodata.bbclass: Get the extend recipe's information from non bbextended recipe
Mei Lei [Mon, 20 Jun 2011 09:29:36 +0000 (17:29 +0800)]
distrodata.bbclass: Get the extend recipe's information from non bbextended recipe

This patch will check whether the recipe is an extened recipe, if yes, some informaiton couldn't be got, so collect those information(like maintainer information or lastcheckversion) from non bbextended recipe.

Signed-off-by: Mei Lei <lei.mei@intel.com>
13 years agorpm: Change config option
Mark Hatle [Fri, 24 Jun 2011 18:27:09 +0000 (13:27 -0500)]
rpm: Change config option

For some reason --without-xz doesn't work the same as --with-xz=none.

We need this set to none, or configure will attempt to find an lzma
header which we might or might not have.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
13 years agomsmtp: Disable gnome keyring
Mark Hatle [Fri, 24 Jun 2011 18:28:39 +0000 (13:28 -0500)]
msmtp: Disable gnome keyring

Unless we explicitly disable the gnome keyring support, the system
will attemp to discover if it's available which changes the package
output.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
13 years agoprelink: Uprev prelink to latest version
Mark Hatle [Fri, 24 Jun 2011 18:30:15 +0000 (13:30 -0500)]
prelink: Uprev prelink to latest version

The latest cross-prelink version tracks the prelink r190 SVN.

Fix two minor issues as well.  If we remove the package, we would
unprelink the filesystem after the rm was finished.  This is
incorrect.. we need to do this prerm.

Move the cron and cron configuration file to a new package split.
This item is not valid for most embedded users.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
13 years agodhcp: don't try to move files from ${sbindir} to ${base_sbindir} if they are the...
Phil Blundell [Thu, 16 Jun 2011 13:27:43 +0000 (14:27 +0100)]
dhcp: don't try to move files from ${sbindir} to ${base_sbindir} if they are the same

Signed-off-by: Phil Blundell <philb@gnu.org>
13 years agolibtirpc: Upgrade 0.2.1 -> 0.2.2
Khem Raj [Thu, 23 Jun 2011 22:39:47 +0000 (15:39 -0700)]
libtirpc: Upgrade 0.2.1 -> 0.2.2

Additionally bring in the nis headers which will be
required when using eglibc 2.14 where rpc support
is removed.

Make it provide virtual/librpc

Signed-off-by: Khem Raj <raj.khem@gmail.com>
13 years agobase-passwd: remove login.defs references
Scott Garman [Tue, 21 Jun 2011 00:21:16 +0000 (17:21 -0700)]
base-passwd: remove login.defs references

login.defs is owned by shadow-utils, and doesn't belong here. The
shadow-sysroot recipe was created to handle the case this was
originally added for (useradd.bbclass support).

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
13 years agoshadow-sysroot: new recipe for useradd.bbclass support
Scott Garman [Tue, 21 Jun 2011 00:11:34 +0000 (17:11 -0700)]
shadow-sysroot: new recipe for useradd.bbclass support

Packaging login.defs with base-passwd causes problems due to the
file being included in target package installs. Instead, this
shadow-sysroot recipe can be used by useradd.bbclass to put
login.defs into the target sysroot without disturbing packages
intended for target devices.

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
13 years agogcc: Fix file ownership
Mark Hatle [Fri, 24 Jun 2011 18:26:11 +0000 (13:26 -0500)]
gcc: Fix file ownership

Most of the files that end up in the gcc include dir and other
misc files scattered throughout the install get the build users
uid and gid.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
13 years agobase/glib-2.0: Simplify USE_NLS handling for glib-2.0
Richard Purdie [Thu, 23 Jun 2011 10:32:19 +0000 (11:32 +0100)]
base/glib-2.0: Simplify USE_NLS handling for glib-2.0

Currently the only way to get anything to build is to set USE_NLS="yes"
for glib-2.0. We might as well do this in the recipe by default for
now and simpllify the code.

The magic handling of USE_NLS_<recipename> is also removed since this
can be done in the form USE_NLS_pn-<recipename> using overrides these
days.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoclasses/conf: Drop MULTIMACH_ARCH variable, it adds unused complexity and serves...
Richard Purdie [Wed, 22 Jun 2011 15:10:16 +0000 (16:10 +0100)]
classes/conf: Drop MULTIMACH_ARCH variable, it adds unused complexity and serves no useful purpose

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agobase.bbclass: Since we require python 2.6 which always contains hashlib we can drop...
Richard Purdie [Wed, 22 Jun 2011 15:08:29 +0000 (16:08 +0100)]
base.bbclass: Since we require python 2.6 which always contains hashlib we can drop this fallback code

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agobase.bbclass: Drop old style SRCDATE handling, we have pn- overrides now
Richard Purdie [Wed, 22 Jun 2011 15:07:43 +0000 (16:07 +0100)]
base.bbclass: Drop old style SRCDATE handling, we have pn- overrides now

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoglibc/eglibc: Add missing PR bump
Richard Purdie [Tue, 28 Jun 2011 12:44:09 +0000 (13:44 +0100)]
glibc/eglibc: Add missing PR bump

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoeglibc: Fix version 2.12 after locale changes
Richard Purdie [Tue, 28 Jun 2011 12:30:47 +0000 (13:30 +0100)]
eglibc: Fix version 2.12 after locale changes

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agobitbake wrapper: exit if python v3 is detected
Scott Garman [Wed, 15 Jun 2011 01:16:29 +0000 (18:16 -0700)]
bitbake wrapper: exit if python v3 is detected

Make sure we're not using python v3.x. This check can't go into
sanity.bbclass because bitbake's source code doesn't even pass
parsing stage when used with python v3, so we catch it here so we
can offer a meaningful error message.

This fixes bug [YOCTO #1128]

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
13 years agolibc-package.bbclass: Replace hard coded libdir.
Lianhao Lu [Thu, 23 Jun 2011 10:59:39 +0000 (18:59 +0800)]
libc-package.bbclass: Replace hard coded libdir.

Replace the hard coded libdir for locale generating to meet the multilib
requirement.

Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
13 years agolibc-locale: split locale handling from libc recipe.
Dongxiao Xu [Tue, 28 Jun 2011 06:58:15 +0000 (14:58 +0800)]
libc-locale: split locale handling from libc recipe.

*libc's do_package will cost a lot of time due to the locale handing,
which may delay the other recipe's do_package task and affect the build
performance.

This commit moves locale handling into a separate recipe *libc-locale.

[RP: Add fixup with recent eglibc commit conflict for FILES_pn-dbg and PACKAGES]
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 years agoqemuimagetest: update cvs and iptables to newer version for toolchain test
Jiajun Xu [Fri, 24 Jun 2011 07:53:45 +0000 (15:53 +0800)]
qemuimagetest: update cvs and iptables to newer version for toolchain test

The old versions of cvs and iptables may meet compile error under some architecture
- cvs 1.11.23 fails on x86-64 host and iptables 1.4.9 fails on arm host. Update them
to latest version could solve these build error.
Meanwhile, 240s timeout is set for sudoku becasue 120s is not enough to finish
compile.

Signed-off-by Jiajun Xu <jiajun.xu@intel.com>

13 years agocommon-licenses: Additions and corrections
Beth Flanagan [Wed, 15 Jun 2011 20:52:23 +0000 (13:52 -0700)]
common-licenses: Additions and corrections

I've added more licenses from SPDX and corrected the gcc license
so that it is a. parsable and b. accurate to the SPDX standard.

I've also done some cleanup of license text and gdb's LICENSE
field.

Signed-off-by: Beth Flanagan <elizabeth.flanagan@intel.com>
13 years agopython: Add python to the dependency to pygobject
Mark Hatle [Tue, 21 Jun 2011 00:04:13 +0000 (19:04 -0500)]
python: Add python to the dependency to pygobject

pygobject requires both python and pygobject-native for compilation.  Without
python pygobject may fail to compile.. and items that depend on pygobject will
fail to compile.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
13 years agodb: Fix file ownership
Mark Hatle [Tue, 21 Jun 2011 21:02:58 +0000 (16:02 -0500)]
db: Fix file ownership

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
13 years agognome-doc-utils: Fix the owner/group on select files
Mark Hatle [Mon, 20 Jun 2011 18:24:19 +0000 (13:24 -0500)]
gnome-doc-utils: Fix the owner/group on select files

All of the files in ${datadir}/xml/gnome/xslt were being given the uid/gid
of the build user.  Fix this for the target case, avoid it in the native.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
13 years agotzdata: Ensure all files are owned by root:root
Mark Hatle [Mon, 20 Jun 2011 18:23:21 +0000 (13:23 -0500)]
tzdata: Ensure all files are owned by root:root

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
13 years agolibtirpc: Fix owner/group of /etc/netconfig
Mark Hatle [Mon, 20 Jun 2011 18:19:36 +0000 (13:19 -0500)]
libtirpc: Fix owner/group of /etc/netconfig

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
13 years agoghostscript: Fix owner/group of /etc/cups
Mark Hatle [Mon, 20 Jun 2011 18:18:19 +0000 (13:18 -0500)]
ghostscript: Fix owner/group of /etc/cups

/etc/cups is owned by root:lp from the cups package, the associated
ghostscript was creating the /etc/cups directory as root:root.  /etc/cups
is the authoritative source.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>