Re: [OE-core] meta-toolchain-gmae can't build: Cannot create symlink from ./var/log to 'volatile/log': File exists

2011-12-05 Thread Richard Purdie
On Mon, 2011-12-05 at 15:35 +0800, Cui, Dexuan wrote:
 Hi, recently, I found meta-toolchain-gmae failed to build on poky master if I 
 use ipk packaging(I didn't try rpm/deb):
 
 task do_populate_sdk: Failed
 
 | Configuring avahi-dev.
 | Configuring task-core-standalone-gmae-sdk-target.
 | Configuring libtelepathy-dbg.
 | Configuring task-core-standalone-gmae-sdk-target-dbg.
 | Configuring util-linux-blkid.
 | Collected errors:
 |  * extract_archive: Cannot create symlink from ./var/log to 'volatile/log': 
 File exists.
 ERROR: Function 'do_populate_sdk' failed 
 
 Now I have no time to look into this issue at once. It would be great, if 
 somebody can give some quick hint.

Is this with the latest master?

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=f340e3937fd5ac3963de6c6b29d56dd92d962864

was added to avoid an error very like this that was showing up with
rpm...

Cheers,

Richard


___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Re: [OE-core] do_populate_lic_setscene when building LSB on edison

2011-12-05 Thread Richard Purdie
On Sun, 2011-12-04 at 18:44 +, McClintock Matthew-B29882 wrote:
 Can anyone comment if this issue has been resolved on master? It's
 very random which package it occurs on, it only seems to happen when
 building the LSB target, and it also appears to happen on my CentOS 5
 box and not my Ubuntu box (at least less often)... sometimes it
 happens only on one package in a build, sometimes it's 5-10
 packages...
 
 ERROR: Task 3209
 (/opt/yocto/cache-test/p2041rdb/meta/recipes-graphics/freetype/freetype_2.4.6.bb,
 do_populate_lic_setscene) failed with exit code '1'

What do the logfiles in the workdir/temp directories say for these
tasks?

Cheers,

Richard


___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 0/9] The patches to run gtk over directfb

2011-12-05 Thread Phil Blundell
On Thu, 2011-11-24 at 11:06 +0800, Xiaofeng Yan wrote:
 Xiaofeng Yan (9):
   qemu-config: Disable dbus-x11 when no x11 in DISTRO_FEATURES
   gconf: Disable dbus-x11 when x11 isn't in DISTRO_FEATURES
   gtk.inc: add directfb DISTRO_FEATURE
   gtk+: add demos to the configuation of gtk+
   cairo: add directfb DISTRO_FEATURE
   pango: add directfb DISTRO_FEATURE
   directfb-examples: add package directfb-examples to OE-core
   task-gtk-directfb.bb: Add task list to run gtk over directfb
   core-image-gtk-directfb.bb: add an image for gtk over directfb

What's the status of this patchset?  This would be useful for a project
I am working on at the moment so I am quite keen to see it get merged.
Are there any outstanding issues still?

p.



___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] openjade-native_1.3.2.bb: remove CONFIGUREOPTS as vardep for do_configure

2011-12-05 Thread Richard Purdie
On Sun, 2011-12-04 at 14:09 -0600, Matthew McClintock wrote:
 This variable was being expanded immediately and pulling in
 paths to the variable dependecies which causes it's sstate-cache
 to never be reused
 
 Signed-off-by: Matthew McClintock m...@freescale.com
 ---
  .../openjade/openjade-native_1.3.2.bb  |5 +
  1 files changed, 5 insertions(+), 0 deletions(-)

Merged to master, thanks.

Richard


___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCHv2] bitbake.conf: add default PRINC 0 to be able to increment it

2011-12-05 Thread Richard Purdie
On Fri, 2011-12-02 at 19:39 +0100, Martin Jansa wrote:
 Signed-off-by: Martin Jansa martin.ja...@gmail.com
 ---
  meta/classes/base.bbclass |2 +-
  meta/conf/bitbake.conf|1 +
  2 files changed, 2 insertions(+), 1 deletions(-)

Merged to master, thanks.

Richard


___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 2/2] xserver-kdrive: update to 1.11.2

2011-12-05 Thread Saul Wold

On 12/01/2011 09:27 PM, Xiaofeng Yan wrote:

From: Xiaofeng Yanxiaofeng@windriver.com

I didn't remove the old one because it is possible for the new version to \
have some bugs during using or testing.



Please work to test the new version better so that we can remove the old 
version.



Patches are commented by #. Some of them are obsolete.

If there are obsolete patches, they should be removed. And not just 
commented out in the recipe.


Sau!



crosscompile.patch is to avoid to seach /etc/X11/fontpath.d of host \
during configuring of cross-compiling. It is no use in the version.

enable-xcalibrate.patch is to avoid error of compiling tslib. \
No use in the new version.

nodolt.patch is no use too.
other patches are retained.

Signed-off-by: Xiaofeng Yanxiaofeng@windriver.com
---
  .../xserver-kdrive-1.11.2/disable-apm.patch|   22 +
  .../enable-builtin-fonts.patch |   16 +
  .../xserver-kdrive-1.11.2/extra-kmodes.patch   |   82 +++
  .../xserver-kdrive-1.11.2/fbdev_xrandr_ioctl.patch |   57 +++
  .../fix-newer-xorg-headers.patch   |   13 +
  .../hide-cursor-and-ppm-root.patch |  298 +++
  .../xserver-kdrive-1.11.2/kdrive-evdev.patch   |  520 
  .../xserver-kdrive-1.11.2/kdrive-use-evdev.patch   |   58 +++
  .../keyboard-resume-workaround.patch   |   26 +
  .../xserver-kdrive-1.11.2/no-serial-probing.patch  |   16 +
  .../xserver-kdrive-1.11.2/optional-xkb.patch   |   62 +++
  .../xorg-xserver/xserver-kdrive_1.11.2.bb  |   35 ++
  12 files changed, 1205 insertions(+), 0 deletions(-)
  create mode 100644 
meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.11.2/disable-apm.patch
  create mode 100644 
meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.11.2/enable-builtin-fonts.patch
  create mode 100644 
meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.11.2/extra-kmodes.patch
  create mode 100644 
meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.11.2/fbdev_xrandr_ioctl.patch
  create mode 100644 
meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.11.2/fix-newer-xorg-headers.patch
  create mode 100644 
meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.11.2/hide-cursor-and-ppm-root.patch
  create mode 100644 
meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.11.2/kdrive-evdev.patch
  create mode 100644 
meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.11.2/kdrive-use-evdev.patch
  create mode 100644 
meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.11.2/keyboard-resume-workaround.patch
  create mode 100644 
meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.11.2/no-serial-probing.patch
  create mode 100644 
meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.11.2/optional-xkb.patch
  create mode 100644 meta/recipes-graphics/xorg-xserver/xserver-kdrive_1.11.2.bb

diff --git 
a/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.11.2/disable-apm.patch 
b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.11.2/disable-apm.patch
new file mode 100644
index 000..e1d5622
--- /dev/null
+++ b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.11.2/disable-apm.patch
@@ -0,0 +1,22 @@
+Upstream-Status: Inappropriate [disable feature]
+
+Signed-off-by: Yu Keke...@intel.com
+
+--- xorg-server-1.11.1.901/hw/kdrive/linux/linux.c 2011-07-15 
21:26:40.0 +0800
 xorg-server-1.11.1.901/hw/kdrive/linux/linux.c.new 2011-10-24 
16:15:12.0 +0800
+@@ -251,6 +251,7 @@
+ /*
+  * Open the APM driver
+  */
++/*
+ LinuxApmFd = open (/dev/apm_bios, 2);
+ if (LinuxApmFd  0  errno == ENOENT)
+   LinuxApmFd = open (/dev/misc/apm_bios, 2);
+@@ -261,6 +262,7 @@
+   RegisterBlockAndWakeupHandlers (LinuxApmBlock, LinuxApmWakeup, 0);
+   AddEnabledDevice (LinuxApmFd);
+ }
++*/
+
+ /*
+  * now get the VT
diff --git 
a/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.11.2/enable-builtin-fonts.patch
 
b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.11.2/enable-builtin-fonts.patch
new file mode 100644
index 000..98d5176
--- /dev/null
+++ 
b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.11.2/enable-builtin-fonts.patch
@@ -0,0 +1,16 @@
+Upstream-Status: Pending
+
+Signed-off-by: Yu Keke...@intel.com
+
+--- xorg-server-X11R7.1-1.1.0/dix/dixfonts.c.orig  2006-06-08 
14:49:12.158684250 +0200
 xorg-server-X11R7.1-1.1.0/dix/dixfonts.c   2006-06-08 14:49:52.493205000 
+0200
+@@ -52,8 +52,8 @@
+ /* $Xorg: dixfonts.c,v 1.4 2000/08/17 19:48:18 cpqbld Exp $ */
+
+ #define NEED_REPLIES
+ #ifdef HAVE_DIX_CONFIG_H
+-#includedix-config.h
++#includekdrive-config.h
+ #endif
+
+ #includeX11/X.h
diff --git 
a/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.11.2/extra-kmodes.patch 
b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.11.2/extra-kmodes.patch
new file mode 100644
index 000..40298d0
--- /dev/null
+++ 
b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.11.2/extra-kmodes.patch
@@ -0,0 +1,82 

Re: [OE-core] [RFC PATCH 0/2] introduce buildhistory.bbclass

2011-12-05 Thread Richard Purdie
On Thu, 2011-12-01 at 23:56 +, Paul Eggleton wrote:
 Here is the initial version of buildhistory.bbclass. It provides (most
 of) the functionality of testlab.bbclass and all functionality of
 packagehistory.bbclass.
 
 Changes/improvements over testlab:
 * Supports both rpm and ipk-based images
 * Works even if packaging data is removed in the final image
 * File listing is tidier and excludes date/time info so changes are more
   obvious
 * Produces a separate package list with just the package names (i.e. not
   the full file name).
 * Optional git commit occurs at the end of the build and is done outside
   of fakeroot
 * Can optionally push git commit to a remote repository
 
 Todo items:
 * There is no recording of licenses into the build history, in favour of
   Beth Flanagan's upcoming work on license.bbclass. I appreciate some may
   want this tracked in buildhistory - please comment. Could be something
   to add afterwards when Beth's work is integrated.
 * Deb-based packaging is not supported because I am unable to test it
   (see Yocto bug #1802).
 
 Note that an earlier version of this was merged accidentally to OE-core;
 this was subsequently reverted to allow proper review.
 
 
 Please review the following changes for suitability for inclusion. If you have
 any objections or suggestions for improvement, please respond to the patches. 
 If
 you agree with the changes, please provide your Acked-by.
 
 The following changes since commit e57935dc18d576feb1003b48e7cdc72a444131b8:
 
   Revert classes/buildhistory: add new output history collection class 
 (2011-12-01 23:00:52 +)
 
 are available in the git repository at:
   git://git.openembedded.org/openembedded-core-contrib paule/buildhistory
   
 http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=paule/buildhistory
 
 Paul Eggleton (2):
   classes/buildhistory: add new output history collection class
   classes/buildhistory: merge in package history functionality

I've merged this. I don't think its perfect and I know Koen has found
one potential issue but it provides a base people can send patches
against :)

Cheers,

Richard


___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Re: [OE-core] [RFC PATCH 0/2] introduce buildhistory.bbclass

2011-12-05 Thread Koen Kooi

Op 5 dec. 2011, om 17:24 heeft Richard Purdie het volgende geschreven:

 On Thu, 2011-12-01 at 23:56 +, Paul Eggleton wrote:
 
 Paul Eggleton (2):
  classes/buildhistory: add new output history collection class
  classes/buildhistory: merge in package history functionality
 
 I've merged this. I don't think its perfect and I know Koen has found
 one potential issue but it provides a base people can send patches
 against :)

Awesome! 2 less patches for me to carry locally :)

regards,

Koen

signature.asc
Description: Message signed with OpenPGP using GPGMail
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 02/11] mdadm: fix CC definition in the Makefile

2011-12-05 Thread Kamble, Nitin A
Paul,
  Thanks for your feedback. I will try to incorporate your feedback in the 
commit.

Thanks,
Nitin

 -Original Message-
 From: openembedded-core-boun...@lists.openembedded.org
 [mailto:openembedded-core-boun...@lists.openembedded.org] On Behalf Of
 Paul Menzel
 Sent: Saturday, December 03, 2011 10:08 AM
 To: openembedded-core@lists.openembedded.org
 Subject: Re: [OE-core] [PATCH 02/11] mdadm: fix CC definition in the
 Makefile
 
 Dear Nitin,
 
 
 thank you for your patch.
 
 Am Freitag, den 02.12.2011, 12:20 -0800 schrieb
 nitin.a.kam...@intel.com:
  From: Nitin A Kamble nitin.a.kam...@intel.com
 
  By hardcoding CC's definition in the Makefile, all the gcc parameters
  set by tune settings are lost. Causing compile failure with x32
  toolchain
 
  As the bitbake defined CC is good, there is no need to redfine CC in
  the
 
 red*e*fine
 
  make file, hence removed it to fix the issue.
 
  This fixes bug: [YOCTO #1414]
 
  Signed-off-by: Nitin A Kamble nitin.a.kam...@intel.com
  ---
   .../mdadm/files/mdadm_fix_for_x32.patch|   24
 
   meta/recipes-extended/mdadm/mdadm_3.2.2.bb |3 +-
   2 files changed, 26 insertions(+), 1 deletions(-)  create mode
 100644
  meta/recipes-extended/mdadm/files/mdadm_fix_for_x32.patch
 
  diff --git a/meta/recipes-
 extended/mdadm/files/mdadm_fix_for_x32.patch
  b/meta/recipes-extended/mdadm/files/mdadm_fix_for_x32.patch
  new file mode 100644
  index 000..898e70b
  --- /dev/null
  +++ b/meta/recipes-extended/mdadm/files/mdadm_fix_for_x32.patch
  @@ -0,0 +1,24 @@
  +UpstreamStatus: pending
  +
  +By hardcoding CC's definition in the Makefile, all the gcc
 parameters
  +set by tune settings are lost. Causing compile failure with x32
  +toolchain
  +
  +As the bitbake defined CC is good, there is no need to redfine CC in
  +the make file, hence removed it to fix the issue.
  +
  +Signed-Off-By: Nitin A Kamble nitin.a.kam...@intel.com
  +2011/12/01
  +
  +Index: mdadm-3.2.2/Makefile
  +===
  +--- mdadm-3.2.2.orig/Makefile
   mdadm-3.2.2/Makefile
  +@@ -40,7 +40,7 @@ KLIBC=/home/src/klibc/klibc-0.77
  +
  + KLIBC_GCC = gcc -nostdinc -iwithprefix include
  + -I$(KLIBC)/klibc/include -I$(KLIBC)/linux/include
  + -I$(KLIBC)/klibc/arch/i386/include -I$(KLIBC)/klibc/include/bits32
  +
  +-CC = $(CROSS_COMPILE)gcc
  ++#CC = $(CROSS_COMPILE)gcc
 
 I would prefer to fix this the way it can be applied upstream. I could
 even ask them to apply it.
 
  + CXFLAGS = -ggdb
  + CWFLAGS = -Wall -Werror -Wstrict-prototypes -Wextra
  + -Wno-unused-parameter ifdef WARN_UNUSED
 
 […]
 
 
 Thanks,
 
 Paul
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 01/11] gst-fluendo-mpegdemux: rework the CC hack

2011-12-05 Thread Kamble, Nitin A
Hi Khem,
  Makes sense. Will try to change the fix accordingly.
Thanks,
Nitin


 -Original Message-
 From: openembedded-core-boun...@lists.openembedded.org
 [mailto:openembedded-core-boun...@lists.openembedded.org] On Behalf Of
 Khem Raj
 Sent: Saturday, December 03, 2011 9:53 AM
 To: Patches and discussions about the oe-core layer
 Cc: hjl.to...@gmail.com
 Subject: Re: [OE-core] [PATCH 01/11] gst-fluendo-mpegdemux: rework the
 CC hack
 
 On Fri, Dec 2, 2011 at 12:19 PM,  nitin.a.kam...@intel.com wrote:
  From: Nitin A Kamble nitin.a.kam...@intel.com
 
  This fixes bug: [YOCTO #1403]
 
  Earlier hack was breaking compiler parameters set by tune settings.
 And that caused x32
  build failure. Now previous CC parameters are kept intact while
 adding new -L parameter.
 
  Signed-off-by: Nitin A Kamble nitin.a.kam...@intel.com
  ---
   meta/recipes-multimedia/gstreamer/gst-fluendo.inc |    2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)
 
  diff --git a/meta/recipes-multimedia/gstreamer/gst-fluendo.inc
 b/meta/recipes-multimedia/gstreamer/gst-fluendo.inc
  index 203bdba..9615454 100644
  --- a/meta/recipes-multimedia/gstreamer/gst-fluendo.inc
  +++ b/meta/recipes-multimedia/gstreamer/gst-fluendo.inc
  @@ -14,5 +14,5 @@ FILES_${PN}-dev += ${libdir}/gstreamer-0.10/*.la
 ${libdir}/gstreamer-0.10/*.a
   EXTRA_OECONF = --disable-debug --disable-valgrind
 
   # Hack to get STAGING_LIBDIR into the linker path when building
  -CC = ${CCACHE} ${HOST_PREFIX}gcc -L${STAGING_LIBDIR}
  +CC += -L${STAGING_LIBDIR}
 
 This looks like part of LDFLAGS more than CC to me.
 
 ___
 Openembedded-core mailing list
 Openembedded-core@lists.openembedded.org
 http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


[OE-core] [PATCH 1/1] classes/buildhistory: do not save old packagehistory files by default

2011-12-05 Thread Paul Eggleton
Disable storing package history as version named files unless
BUILDHISTORY_KEEP_VERSIONS is set to 1; otherwise the adds of these
files that duplicate what is already in git anyway is just noise in the
git log.

Signed-off-by: Paul Eggleton paul.eggle...@linux.intel.com
---
 meta/classes/buildhistory.bbclass |9 +++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/meta/classes/buildhistory.bbclass 
b/meta/classes/buildhistory.bbclass
index 1859961..e4534e9 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -258,8 +258,13 @@ def write_latestlink(pkg, pe, pv, pr, d):
filedir = os.path.join(pkghistdir, pkg)
else:
filedir = pkghistdir
-   rm_link(os.path.join(filedir, latest))
-   shutil.copy(os.path.join(filedir, %s:%s-%s % (pe, pv, pr)), 
os.path.join(filedir, latest))
+   latest_file = os.path.join(filedir, latest)
+   ver_file = os.path.join(filedir, %s:%s-%s % (pe, pv, pr))
+   rm_link(latest_file)
+   if d.getVar('BUILDHISTORY_KEEP_VERSIONS', True) == '1':
+   shutil.copy(ver_file, latest_file)
+   else:
+   shutil.move(ver_file, latest_file)
 
 
 buildhistory_get_image_installed() {
-- 
1.7.5.4


___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


[OE-core] [PATCH] populate_sdk.bbclass: remap packages when generating sdk tarball

2011-12-05 Thread Matthew McClintock
This fixes the issue below:

| Generating solve db for 
/local/home/mattsm/git/poky/build_p4080ds_release/tmp/deploy/rpm/all...
|total:   1  0.00 MB  0.093784 secs
|fingerprint: 9  0.12 MB  0.000252 secs
|install: 3  0.00 MB  0.039092 secs
|dbadd:   3  0.00 MB  0.034837 secs
|dbget:  12  0.00 MB  0.62 secs
|dbput:   3  0.009532 MB  0.002731 secs
|readhdr:31  0.019160 MB  0.84 secs
|hdrload:15  0.027924 MB  0.000116 secs
|hdrget:494  0.00 MB  0.000691 secs
| Processing task-core-standalone-sdk-target...
| Processing glib-2.0...
| Unable to find package glib-2.0 (glib-2.0)!
| ERROR: Function 'do_populate_sdk' failed (see 
/local/home/mattsm/git/poky/build_p4080ds_release/tmp/work/ppce500mc-fsl-linux/fsl-toolchain-1.0-r6/temp/log.do_populate_sdk.16975
 for further information)

If you have:

TOOLCHAIN_TARGET_TASK += glib-2.0

The package name was not getting remapped correctly for the do_populate_sdk
case.

Signed-off-by: Matthew McClintock m...@freescale.com
---
 meta/classes/populate_sdk.bbclass |7 +++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/meta/classes/populate_sdk.bbclass 
b/meta/classes/populate_sdk.bbclass
index 1ef72cf..5aa8e92 100644
--- a/meta/classes/populate_sdk.bbclass
+++ b/meta/classes/populate_sdk.bbclass
@@ -18,6 +18,13 @@ PID = ${@os.getpid()}
 
 EXCLUDE_FROM_WORLD = 1
 
+python () {
+# If we don't do this we try and run the mapping hooks while parsing which 
is slow
+# bitbake should really provide something to let us know this...
+if bb.data.getVar('BB_WORKERCONTEXT', d, True) is not None:
+runtime_mapping_rename(TOOLCHAIN_TARGET_TASK, d)
+}
+
 fakeroot do_populate_sdk() {
rm -rf ${SDK_OUTPUT}
mkdir -p ${SDK_OUTPUT}
-- 
1.7.6.1



___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


[OE-core] [PATCH 3/4] oe.license: add license flattening code

2011-12-05 Thread Christopher Larson
This flattens a license tree by selecting one side of each OR operation
(chosen via the user supplied function).

Signed-off-by: Christopher Larson kerg...@gmail.com
---
 meta/lib/oe/license.py|   30 ++
 meta/lib/oe/tests/test_license.py |   30 ++
 2 files changed, 60 insertions(+), 0 deletions(-)

diff --git a/meta/lib/oe/license.py b/meta/lib/oe/license.py
index b230d3e..7ab66e7 100644
--- a/meta/lib/oe/license.py
+++ b/meta/lib/oe/license.py
@@ -30,3 +30,33 @@ class LicenseVisitor(ast.NodeVisitor):
 new_elements.append(element)
 
 self.visit(ast.parse(' '.join(new_elements)))
+
+class FlattenVisitor(LicenseVisitor):
+Flatten a license tree (parsed from a string) by selecting one of each
+set of OR options, in the way the user specifies
+def __init__(self, choose_licenses):
+self.choose_licenses = choose_licenses
+self.licenses = []
+LicenseVisitor.__init__(self)
+
+def visit_Str(self, node):
+self.licenses.append(node.s)
+
+def visit_BinOp(self, node):
+if isinstance(node.op, ast.BitOr):
+left = FlattenVisitor(self.choose_licenses)
+left.visit(node.left)
+
+right = FlattenVisitor(self.choose_licenses)
+right.visit(node.right)
+
+selected = self.choose_licenses(left.licenses, right.licenses)
+self.licenses.extend(selected)
+else:
+self.generic_visit(node)
+
+def flattened_licenses(licensestr, choose_licenses):
+Given a license string and choose_licenses function, return a flat list 
of licenses
+flatten = FlattenVisitor(choose_licenses)
+flatten.visit_string(licensestr)
+return flatten.licenses
diff --git a/meta/lib/oe/tests/test_license.py 
b/meta/lib/oe/tests/test_license.py
index cb949fc..c36 100644
--- a/meta/lib/oe/tests/test_license.py
+++ b/meta/lib/oe/tests/test_license.py
@@ -36,3 +36,33 @@ class TestSingleLicense(unittest.TestCase):
 with self.assertRaises(oe.license.InvalidLicense) as cm:
 self.parse(license)
 self.assertEqual(cm.exception.license, license)
+
+class TestSimpleCombinations(unittest.TestCase):
+tests = {
+FOOBAR: [FOO, BAR],
+BAZ  MOO: [BAZ, MOO],
+ALPHA|BETA: [ALPHA],
+BAZMOO|FOO: [FOO],
+FOOBAR|BAZ: [FOO, BAR],
+}
+preferred = [ALPHA, FOO, BAR]
+
+def test_tests(self):
+def choose(a, b):
+if all(lic in self.preferred for lic in b):
+return b
+else:
+return a
+
+for license, expected in self.tests.items():
+licenses = oe.license.flattened_licenses(license, choose)
+self.assertListEqual(licenses, expected)
+
+class TestComplexCombinations(TestSimpleCombinations):
+tests = {
+FOO  (BAR | BAZ)MOO: [FOO, BAR, MOO],
+(ALPHA|(BETATHETA)|OMEGA)DELTA: [OMEGA, DELTA],
+((ALPHA|BETA)FOO)|BAZ: [BETA, FOO],
+(GPL-2.0|Proprietary)BSD-4-clauseMIT: [GPL-2.0, BSD-4-clause, 
MIT],
+}
+preferred = [BAR, OMEGA, BETA, GPL-2.0]
-- 
1.7.8


___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


[OE-core] [PATCH 1/4] oe.test_types: move into an oe.tests package

2011-12-05 Thread Christopher Larson
Signed-off-by: Christopher Larson kerg...@gmail.com
---
 meta/lib/oe/{ = tests}/test_types.py |0
 1 files changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 meta/lib/oe/tests/__init__.py
 rename meta/lib/oe/{ = tests}/test_types.py (100%)

diff --git a/meta/lib/oe/tests/__init__.py b/meta/lib/oe/tests/__init__.py
new file mode 100644
index 000..e69de29
diff --git a/meta/lib/oe/test_types.py b/meta/lib/oe/tests/test_types.py
similarity index 100%
rename from meta/lib/oe/test_types.py
rename to meta/lib/oe/tests/test_types.py
-- 
1.7.8


___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


[OE-core] [PATCH 2/4] license: split license parsing into oe.license

2011-12-05 Thread Christopher Larson
In addition to moving this functionality to oe.license, makes the string
preparation more picky before passing it off to the ast compilation. This
ensures that LICENSE entries like 'GPL/BSD' are seen as invalid (due to the
presence of the unsupported '/').

Signed-off-by: Christopher Larson kerg...@gmail.com
---
 meta/classes/license.bbclass  |   59 
 meta/lib/oe/license.py|   32 
 meta/lib/oe/tests/test_license.py |   38 +++
 3 files changed, 90 insertions(+), 39 deletions(-)
 create mode 100644 meta/lib/oe/license.py
 create mode 100644 meta/lib/oe/tests/test_license.py

diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
index 4d036b1..8c6e2d2 100644
--- a/meta/classes/license.bbclass
+++ b/meta/classes/license.bbclass
@@ -1,17 +1,17 @@
 # Populates LICENSE_DIRECTORY as set in distro config with the license files 
as set by
-# LIC_FILES_CHKSUM. 
+# LIC_FILES_CHKSUM.
 # TODO:
 # - We should also enable the ability to put the generated license directory 
onto the
 #  rootfs
 # - Gather up more generic licenses
-# - There is a real issue revolving around license naming standards. See 
license names 
+# - There is a real issue revolving around license naming standards. See 
license names
 #  licenses.conf and compare them to the license names in the recipes. You'll 
see some
 #  differences and that should be corrected.
 
 LICENSE_DIRECTORY ??= ${DEPLOY_DIR}/licenses
 LICSSTATEDIR = ${WORKDIR}/license-destdir/
 
-addtask populate_lic after do_patch before do_package 
+addtask populate_lic after do_patch before do_package
 do_populate_lic[dirs] = ${LICSSTATEDIR}/${PN}
 do_populate_lic[cleandirs] = ${LICSSTATEDIR}
 
@@ -20,7 +20,7 @@ do_populate_lic[cleandirs] = ${LICSSTATEDIR}
 # break the non-standardized license names that we find in LICENSE, we'll set
 # up a bunch of VarFlags to accomodate non-SPDX license names.
 #
-# We should really discuss standardizing this field, but that's a longer term 
goal. 
+# We should really discuss standardizing this field, but that's a longer term 
goal.
 # For now, we can do this and it should grab the most common LICENSE naming 
variations.
 
 #GPL variations
@@ -57,37 +57,25 @@ python do_populate_lic() {
 import os
 import bb
 import shutil
-import ast
-
-class LicenseVisitor(ast.NodeVisitor):
-def generic_visit(self, node):
-ast.NodeVisitor.generic_visit(self, node)
+import oe.license
 
+class FindVisitor(oe.license.LicenseVisitor):
 def visit_Str(self, node):
 #
 # Until I figure out what to do with
 # the two modifiers I support (or greater = +
 # and with exceptions being *
-# we'll just strip out the modifier and put 
+# we'll just strip out the modifier and put
 # the base license.
 find_license(node.s.replace(+, ).replace(*, ))
-ast.NodeVisitor.generic_visit(self, node)
-
-def visit_BinOp(self, node):
-op = node.op
-if isinstance(op, ast.BitOr): 
-x = LicenseVisitor()
-x.visit(node.left)
-x.visit(node.right)
-else:   
-ast.NodeVisitor.generic_visit(self, node)
+self.generic_visit(node)
 
 def copy_license(source, destination, file_name):
 try:
 bb.copyfile(os.path.join(source, file_name), 
os.path.join(destination, file_name))
 except:
 bb.warn(%s: No generic license file exists for: %s at %s % (pn, 
file_name, source))
-pass 
+pass
 
 def link_license(source, destination, file_name):
 try:
@@ -108,8 +96,8 @@ python do_populate_lic() {
 # Great, there is an SPDXLICENSEMAP. We can copy!
 bb.note(We need to use a SPDXLICENSEMAP for %s % 
(license_type))
 spdx_generic = d.getVarFlag('SPDXLICENSEMAP', license_type)
-copy_license(generic_directory, gen_lic_dest, spdx_generic)

-link_license(gen_lic_dest, destdir, spdx_generic)
+copy_license(generic_directory, gen_lic_dest, spdx_generic)
+link_license(gen_lic_dest, destdir, spdx_generic)
 else:
 # And here is where we warn people that their licenses are 
lousy
 bb.warn(%s: No generic license file exists for: %s at %s % 
(pn, license_type, generic_directory))
@@ -117,7 +105,7 @@ python do_populate_lic() {
 pass
 elif os.path.isfile(os.path.join(generic_directory, license_type)):
 copy_license(generic_directory, gen_lic_dest, license_type)
-link_license(gen_lic_dest, destdir, license_type)
+link_license(gen_lic_dest, destdir, license_type)
 
 # All the license types for the package
 

[OE-core] [PATCH 4/4] Add copyleft compliance class

2011-12-05 Thread Christopher Larson
Deploys sources for recipes for compliance with copyleft-style licenses
Defaults to using symlinks, as it's a quick operation, and one can easily
follow the links when making use of the files (e.g. tar with the -h arg).

By default, includes all GPL and LGPL, and excludes CLOSED and Proprietary.

Signed-off-by: Christopher Larson kerg...@gmail.com
---
 meta/classes/copyleft_compliance.bbclass |   94 ++
 1 files changed, 94 insertions(+), 0 deletions(-)
 create mode 100644 meta/classes/copyleft_compliance.bbclass

diff --git a/meta/classes/copyleft_compliance.bbclass 
b/meta/classes/copyleft_compliance.bbclass
new file mode 100644
index 000..5d9ab11
--- /dev/null
+++ b/meta/classes/copyleft_compliance.bbclass
@@ -0,0 +1,94 @@
+# Deploy sources for recipes for compliance with copyleft-style licenses
+# Defaults to using symlinks, as it's a quick operation, and one can easily
+# follow the links when making use of the files (e.g. tar with the -h arg).
+#
+# By default, includes all GPL and LGPL, and excludes CLOSED and Proprietary.
+#
+# vi:sts=4:sw=4:et
+
+COPYLEFT_SOURCES_DIR ?= '${DEPLOY_DIR}/copyleft_sources'
+
+COPYLEFT_LICENSE_INCLUDE ?= 'GPL* LGPL*'
+COPYLEFT_LICENSE_INCLUDE[type] = 'list'
+COPYLEFT_LICENSE_INCLUDE[doc] = 'Space separated list of globs which include 
licenses'
+
+COPYLEFT_LICENSE_EXCLUDE ?= 'CLOSED Proprietary'
+COPYLEFT_LICENSE_EXCLUDE[type] = 'list'
+COPYLEFT_LICENSE_INCLUDE[doc] = 'Space separated list of globs which exclude 
licenses'
+
+
+def copyleft_should_include(d):
+Determine if this recipe's sources should be deployed for compliance
+import ast
+import oe.license
+from fnmatch import fnmatchcase as fnmatch
+
+if oe.utils.inherits(d, 'native', 'nativesdk', 'cross', 'crossdk'):
+# not a target recipe
+return
+
+include = oe.data.typed_value('COPYLEFT_LICENSE_INCLUDE', d)
+exclude = oe.data.typed_value('COPYLEFT_LICENSE_EXCLUDE', d)
+
+def include_license(license):
+if any(fnmatch(license, pattern) for pattern in exclude):
+return False
+if any(fnmatch(license, pattern) for pattern in include):
+return True
+return False
+
+def choose_licenses(a, b):
+Select the left option in an OR if all its licenses are to be 
included
+if all(include_license(lic) for lic in a):
+return a
+else:
+return b
+
+try:
+licenses = oe.license.flattened_licenses(d.getVar('LICENSE', True), 
choose_licenses)
+except oe.license.InvalidLicense as exc:
+bb.fatal('%s: %s' % (d.getVar('PF', True), exc))
+
+return all(include_license(lic) for lic in licenses)
+
+python do_prepare_copyleft_sources () {
+Populate a tree of the recipe sources and emit patch series files
+import os.path
+import shutil
+
+if not copyleft_should_include(d):
+return
+
+sources_dir = d.getVar('COPYLEFT_SOURCES_DIR', 1)
+src_uri = d.getVar('SRC_URI', 1).split()
+fetch = bb.fetch2.Fetch(src_uri, d)
+ud = fetch.ud
+
+locals = (fetch.localpath(url) for url in fetch.urls)
+localpaths = [local for local in locals if not local.endswith('.bb')]
+if not localpaths:
+return
+
+pf = d.getVar('PF', True)
+dest = os.path.join(sources_dir, pf)
+shutil.rmtree(dest, ignore_errors=True)
+bb.mkdirhier(dest)
+
+for path in localpaths:
+os.symlink(path, os.path.join(dest, os.path.basename(path)))
+
+patches = src_patches(d)
+for patch in patches:
+_, _, local, _, _, parm = bb.decodeurl(patch)
+patchdir = parm.get('patchdir')
+if patchdir:
+series = os.path.join(dest, 'series.subdir.%s' % 
patchdir.replace('/', '_'))
+else:
+series = os.path.join(dest, 'series')
+
+with open(series, 'a') as s:
+s.write('%s -p%s\n' % (os.path.basename(local), 
parm['striplevel']))
+}
+
+addtask prepare_copyleft_sources after do_fetch before do_build
+do_build[recrdeptask] += 'do_prepare_copyleft_sources'
-- 
1.7.8


___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 0/1] Make missing checksums an error

2011-12-05 Thread Joshua Lock
On 02/12/11 11:20, Joshua Lock wrote:
 NOTE: this requires a patch I sent to the BitBake list[1] to error cleanly,
 otherwise you'll see a Python backtrace and the build fail...

This patch has now been merged into BitBake master.

Cheers,
Joshua
-- 
Joshua Lock
Yocto Project Johannes factotum
Intel Open Source Technology Centre

___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


[OE-core] [PATCH v2] lzop-1.03: add recipe

2011-12-05 Thread Christopher Larson
From: Christopher Larson chris_lar...@mentor.com

This is needed by some kernels when CONFIG_KERNEL_LZO=y (specifically, given
the current defconfig, this affects linux-omap4 2.6 in the meta-ti layer).

Signed-off-by: Christopher Larson chris_lar...@mentor.com
---
 meta/recipes-support/lzop/lzop/acinclude.m4 |  390 +++
 meta/recipes-support/lzop/lzop_1.03.bb  |   25 ++
 2 files changed, 415 insertions(+), 0 deletions(-)
 create mode 100644 meta/recipes-support/lzop/lzop/acinclude.m4
 create mode 100644 meta/recipes-support/lzop/lzop_1.03.bb

diff --git a/meta/recipes-support/lzop/lzop/acinclude.m4 
b/meta/recipes-support/lzop/lzop/acinclude.m4
new file mode 100644
index 000..0029c19
--- /dev/null
+++ b/meta/recipes-support/lzop/lzop/acinclude.m4
@@ -0,0 +1,390 @@
+
+AC_DEFUN([mfx_ACC_CHECK_ENDIAN], [
+AC_C_BIGENDIAN([AC_DEFINE(ACC_ABI_BIG_ENDIAN,1,[Define to 1 if your machine is 
big endian.])],[AC_DEFINE(ACC_ABI_LITTLE_ENDIAN,1,[Define to 1 if your machine 
is little endian.])])
+])#
+
+AC_DEFUN([mfx_ACC_CHECK_HEADERS], [
+AC_HEADER_TIME
+AC_CHECK_HEADERS([assert.h ctype.h dirent.h errno.h fcntl.h float.h limits.h 
malloc.h memory.h setjmp.h signal.h stdarg.h stddef.h stdint.h stdio.h stdlib.h 
string.h strings.h time.h unistd.h utime.h sys/stat.h sys/time.h sys/types.h 
sys/wait.h])
+])#
+
+AC_DEFUN([mfx_ACC_CHECK_FUNCS], [
+AC_CHECK_FUNCS(access alloca atexit atoi atol chmod chown ctime difftime fstat 
gettimeofday gmtime localtime longjmp lstat memcmp memcpy memmove memset mktime 
qsort raise setjmp signal snprintf strcasecmp strchr strdup strerror strftime 
stricmp strncasecmp strnicmp strrchr strstr time umask utime vsnprintf)
+])#
+
+
+AC_DEFUN([mfx_ACC_CHECK_SIZEOF], [
+AC_CHECK_SIZEOF(short)
+AC_CHECK_SIZEOF(int)
+AC_CHECK_SIZEOF(long)
+
+AC_CHECK_SIZEOF(long long)
+AC_CHECK_SIZEOF(__int16)
+AC_CHECK_SIZEOF(__int32)
+AC_CHECK_SIZEOF(__int64)
+
+AC_CHECK_SIZEOF(void *)
+AC_CHECK_SIZEOF(size_t)
+AC_CHECK_SIZEOF(ptrdiff_t)
+])#
+
+
+# /***
+# // Check for ACC_conformance
+# /
+
+AC_DEFUN([mfx_ACC_ACCCHK], [
+mfx_tmp=$1
+mfx_save_CPPFLAGS=$CPPFLAGS
+dnl in Makefile.in $(INCLUDES) will be before $(CPPFLAGS), so we mimic this 
here
+test X$mfx_tmp = X || CPPFLAGS=$mfx_tmp $CPPFLAGS
+
+AC_MSG_CHECKING([whether your compiler passes the ACC conformance test])
+
+AC_LANG_CONFTEST([AC_LANG_PROGRAM(
+[[#define ACC_CONFIG_NO_HEADER 1
+#include acc/acc.h
+#include acc/acc_incd.h
+#undef ACCCHK_ASSERT
+#define ACCCHK_ASSERT(expr) ACC_COMPILE_TIME_ASSERT_HEADER(expr)
+#include acc/acc_chk.ch
+#undef ACCCHK_ASSERT
+static void test_acc_compile_time_assert(void) {
+#define ACCCHK_ASSERT(expr) ACC_COMPILE_TIME_ASSERT(expr)
+#include acc/acc_chk.ch
+#undef ACCCHK_ASSERT
+}
+#undef NDEBUG
+#include assert.h
+static int test_acc_run_time_assert(int r) {
+#define ACCCHK_ASSERT(expr) assert(expr);
+#include acc/acc_chk.ch
+#undef ACCCHK_ASSERT
+return r;
+}
+]], [[
+test_acc_compile_time_assert();
+if (test_acc_run_time_assert(1) != 1) return 1;
+]]
+)])
+
+mfx_tmp=FAILED
+_AC_COMPILE_IFELSE([], [mfx_tmp=yes])
+rm -f conftest.$ac_ext conftest.$ac_objext
+
+CPPFLAGS=$mfx_save_CPPFLAGS
+
+AC_MSG_RESULT([$mfx_tmp])
+case x$mfx_tmp in
+  xpassed | xyes) ;;
+  *)
+AC_MSG_NOTICE([])
+AC_MSG_NOTICE([Your compiler failed the ACC conformance test - for details 
see ])
+AC_MSG_NOTICE([`config.log'. Please check that log file and consider 
sending])
+AC_MSG_NOTICE([a patch or bug-report to ${PACKAGE_BUGREPORT}.])
+AC_MSG_NOTICE([Thanks for your support.])
+AC_MSG_NOTICE([])
+AC_MSG_ERROR([ACC conformance test failed. Stop.])
+dnlAS_EXIT
+;;
+esac
+])# mfx_ACC_ACCCHK
+
+
+# /***
+# // Check for ACC_conformance
+# /
+
+AC_DEFUN([mfx_MINIACC_ACCCHK], [
+mfx_tmp=$1
+mfx_save_CPPFLAGS=$CPPFLAGS
+dnl in Makefile.in $(INCLUDES) will be before $(CPPFLAGS), so we mimic this 
here
+test X$mfx_tmp = X || CPPFLAGS=$mfx_tmp $CPPFLAGS
+
+AC_MSG_CHECKING([whether your compiler passes the ACC conformance test])
+
+AC_LANG_CONFTEST([AC_LANG_PROGRAM(
+[[#define ACC_CONFIG_NO_HEADER 1
+#define ACC_WANT_ACC_INCD_H 1
+#include $2
+
+#define ACC_WANT_ACC_CHK_CH 1
+#undef ACCCHK_ASSERT
+#define ACCCHK_ASSERT(expr) ACC_COMPILE_TIME_ASSERT_HEADER(expr)
+#include $2
+
+#define ACC_WANT_ACC_CHK_CH 1
+#undef ACCCHK_ASSERT
+#define ACCCHK_ASSERT(expr) ACC_COMPILE_TIME_ASSERT(expr)
+static void test_acc_compile_time_assert(void) {
+#include $2
+}
+
+#undef NDEBUG
+#include assert.h
+#define ACC_WANT_ACC_CHK_CH 1
+#undef ACCCHK_ASSERT
+#define ACCCHK_ASSERT(expr)  assert(expr);
+static int test_acc_run_time_assert(int r) {
+#include $2
+return r;
+}
+]], [[
+test_acc_compile_time_assert();
+if 

Re: [OE-core] [PATCH 00/11] recipe fixes for x32 toolchain

2011-12-05 Thread Richard Purdie
On Fri, 2011-12-02 at 12:19 -0800, nitin.a.kam...@intel.com wrote:
 From: Nitin A Kamble nitin.a.kam...@intel.com
 
 These commits fixes building of various recipes with x32 toolchain
 for x32 target/machines. And these do not affect these recipes for
 other non-x32 targets.
 
 X32 is new ABI for x86-64 architecture.
 For more information refer: https://sites.google.com/site/x32abi/
 
 Thanks,
 Nitin
 
 The following changes since commit 9be6d59b78510443d0944513503d515df13caa45:
 
   dpkg-native: Fix perl path (2011-12-02 15:31:08 +)
 
 are available in the git repository at:
   git://git.pokylinux.org/poky-contrib nitin/x32
   http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=nitin.x32
 
 Nitin A Kamble (11):
   gst-fluendo-mpegdemux: rework the CC hack
   mdadm: fix CC definition in the Makefile

There was some feedback on these which I haven't looked into fully.

   openssl-1.0.0e: fix to wotk with x32 toolchain
   gmp: fix the recipe for x32 target
   mesa-dri, mesa-xlib: fix compilation with x32 toolchain
   glib-2.0: fix compilatoin with x32 toolchain
   libxt: fix compilatoin with x32 toolchain
   liboil: patch source code for x32
   xproto: fix compilation with x32 toolchain
   libaio: patch source code for x32
   libatomics-ops: patch source code for x32

These looked reasonable so I've merged them, thanks.

Richard


___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 1/1] classes/buildhistory: do not save old packagehistory files by default

2011-12-05 Thread Richard Purdie
On Mon, 2011-12-05 at 18:28 +, Paul Eggleton wrote:
 Disable storing package history as version named files unless
 BUILDHISTORY_KEEP_VERSIONS is set to 1; otherwise the adds of these
 files that duplicate what is already in git anyway is just noise in the
 git log.
 
 Signed-off-by: Paul Eggleton paul.eggle...@linux.intel.com
 ---
  meta/classes/buildhistory.bbclass |9 +++--
  1 files changed, 7 insertions(+), 2 deletions(-)

Merged to master, thanks.

Richard


___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 0/1] Make missing checksums an error

2011-12-05 Thread Richard Purdie
On Fri, 2011-12-02 at 11:20 -0800, Joshua Lock wrote:
 NOTE: this requires a patch I sent to the BitBake list[1] to error cleanly,
 otherwise you'll see a Python backtrace and the build fail...
 
 Per some discussion on the list recently this patch sets BB_STRICT_CHECKSUM
 in the default-distrovars.inc so that missing checksums in recipes raises an
 error.
 
 Cheers,
 Joshua

What's the state of master? If I merge this, how badly do things
explode?

Cheers,

Richard


___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 0/1] Make missing checksums an error

2011-12-05 Thread Joshua Lock
On 05/12/11 14:50, Richard Purdie wrote:
 On Fri, 2011-12-02 at 11:20 -0800, Joshua Lock wrote:
 NOTE: this requires a patch I sent to the BitBake list[1] to error cleanly,
 otherwise you'll see a Python backtrace and the build fail...

 Per some discussion on the list recently this patch sets BB_STRICT_CHECKSUM
 in the default-distrovars.inc so that missing checksums in recipes raises an
 error.

 Cheers,
 Joshua
 
 What's the state of master? If I merge this, how badly do things
 explode?

Let me run a universe fetchall and get back to you...

Joshua
-- 
Joshua Lock
Yocto Project Johannes factotum
Intel Open Source Technology Centre

___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Re: [OE-core] do_populate_lic_setscene when building LSB on edison

2011-12-05 Thread McClintock Matthew-B29882
On Mon, Dec 5, 2011 at 2:35 AM, Richard Purdie
richard.pur...@linuxfoundation.org wrote:
 On Sun, 2011-12-04 at 18:44 +, McClintock Matthew-B29882 wrote:
 Can anyone comment if this issue has been resolved on master? It's
 very random which package it occurs on, it only seems to happen when
 building the LSB target, and it also appears to happen on my CentOS 5
 box and not my Ubuntu box (at least less often)... sometimes it
 happens only on one package in a build, sometimes it's 5-10
 packages...

 ERROR: Task 3209
 (/opt/yocto/cache-test/p2041rdb/meta/recipes-graphics/freetype/freetype_2.4.6.bb,
 do_populate_lic_setscene) failed with exit code '1'

 What do the logfiles in the workdir/temp directories say for these
 tasks?

This is my own doing.

Basically what is going on is I switched sstate-cache to use xz
instead of gzip. Well what happens is when I come along and install
xz-native, then stuff starts failing because we are running xz from
sysroot instead of host and briefly all the librarys for xz are not in
place so it fails with:

xz: error while loading shared libraries: liblzma.so.5: cannot open
shared object file: No such file or directory

Is this a situation where it's just to just install this package
beforehand like we do for tar and pseudo?

-M

___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 0/1] Make missing checksums an error

2011-12-05 Thread Joshua Lock


On 05/12/11 14:55, Joshua Lock wrote:
 On 05/12/11 14:50, Richard Purdie wrote:
 On Fri, 2011-12-02 at 11:20 -0800, Joshua Lock wrote:
 NOTE: this requires a patch I sent to the BitBake list[1] to error cleanly,
 otherwise you'll see a Python backtrace and the build fail...

 Per some discussion on the list recently this patch sets BB_STRICT_CHECKSUM
 in the default-distrovars.inc so that missing checksums in recipes raises an
 error.

 Cheers,
 Joshua

 What's the state of master? If I merge this, how badly do things
 explode?
 
 Let me run a universe fetchall and get back to you...

Two recipes in oe-core require checksums adding, puzzles and
omap3-sgx-modules - a v2 of this request with those patches is incoming.

Joshua
-- 
Joshua Lock
Yocto Project Johannes factotum
Intel Open Source Technology Centre

___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


[OE-core] [PATCH 4/4] clutter-gst: upgrade to 1.4.4

2011-12-05 Thread Joshua Lock
Signed-off-by: Joshua Lock j...@linux.intel.com
---
 ...r-gst-1.8_1.4.2.bb = clutter-gst-1.8_1.4.4.bb} |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-graphics/clutter/{clutter-gst-1.8_1.4.2.bb = 
clutter-gst-1.8_1.4.4.bb} (80%)

diff --git a/meta/recipes-graphics/clutter/clutter-gst-1.8_1.4.2.bb 
b/meta/recipes-graphics/clutter/clutter-gst-1.8_1.4.4.bb
similarity index 80%
rename from meta/recipes-graphics/clutter/clutter-gst-1.8_1.4.2.bb
rename to meta/recipes-graphics/clutter/clutter-gst-1.8_1.4.4.bb
index 54b1fc1..a0616c7 100644
--- a/meta/recipes-graphics/clutter/clutter-gst-1.8_1.4.2.bb
+++ b/meta/recipes-graphics/clutter/clutter-gst-1.8_1.4.4.bb
@@ -13,8 +13,8 @@ SRC_URI = 
http://source.clutter-project.org/sources/clutter-gst/1.4/clutter-gst
 
 S = ${WORKDIR}/clutter-gst-${PV}
 
-SRC_URI[md5sum] = fd6b2a54f43d04382748e9e4d8a335c5
-SRC_URI[sha256sum] = 
b0e7ff76ee14307b6d26856972ec9e718f62aec2bc8807fb3f2960e508e578b5
+SRC_URI[md5sum] = c660649907785ee96f6e84d97f19d574
+SRC_URI[sha256sum] = 
23cb10e7629696a696ca8619614c517ff0a341e89a701075f2a123a2e26999e9
 
 do_configure_prepend () {
# Disable DOLT
-- 
1.7.7.3


___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


[OE-core] [PATCH 2/4] puzzles: set SRC_URI checksums

2011-12-05 Thread Joshua Lock
In order to set missing checksums as an error we need to ensure
all appropriate recipes have a checksum value set.

Signed-off-by: Joshua Lock j...@linux.intel.com
---
 meta/recipes-sato/puzzles/puzzles_r9306.bb |8 
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/meta/recipes-sato/puzzles/puzzles_r9306.bb 
b/meta/recipes-sato/puzzles/puzzles_r9306.bb
index d9b8e3e..14b0461 100644
--- a/meta/recipes-sato/puzzles/puzzles_r9306.bb
+++ b/meta/recipes-sato/puzzles/puzzles_r9306.bb
@@ -8,12 +8,12 @@ MOD_PV = ${@d.getVar('PV',1)[1:]}
 LICENSE = MIT
 LIC_FILES_CHKSUM = file://LICENCE;md5=9928b60f3b78be315b7ab699c1b03ff5
 
-SRC_URI = 
http://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-${PV}.tar.gz;
-
 # Upstream updates puzzles.tar.gz for the new release, so checksums seem to be 
changing regularly right now
-#SRC_URI[md5sum] = e8b4c7e2341264789f3cd6733857bf1c
-#SRC_URI[sha256sum] = 
69f37e497e63b2f7ab44e7bbd50aee078269c16dbc2d78ec1b00257678f2cbd2
 #SRC_URI = svn://ixion.tartarus.org/main;module=puzzles;rev=${MOD_PV}
+SRC_URI = 
http://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-${PV}.tar.gz;
+SRC_URI[md5sum] = fd1b05c0e0cfb752c6136ce2e4562416
+SRC_URI[sha256sum] = 
512aa26a0d11867a815030449bb903861f75512725886a70eece387bd8240ddd
+
 
 S = ${WORKDIR}/${BPN}-${PV}
 
-- 
1.7.7.3


___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


[OE-core] [PATCH 1/4] omap3-sgx-modules: set SRC_URI checksums

2011-12-05 Thread Joshua Lock
We'd like to make missing SRC_URI checksums an error, so all
appropriate recipes need to have a checksum value set.

Signed-off-by: Joshua Lock j...@linux.intel.com
---
 .../omap3-sgx-modules_1.3.13.1397.bb   |2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/meta/recipes-bsp/powervr-drivers/omap3-sgx-modules_1.3.13.1397.bb 
b/meta/recipes-bsp/powervr-drivers/omap3-sgx-modules_1.3.13.1397.bb
index 0e850bc..fba0e18 100644
--- a/meta/recipes-bsp/powervr-drivers/omap3-sgx-modules_1.3.13.1397.bb
+++ b/meta/recipes-bsp/powervr-drivers/omap3-sgx-modules_1.3.13.1397.bb
@@ -4,6 +4,8 @@ LICENSE = GPLv2
 inherit module
 
 SRC_URI = 
http://dominion.thruhere.net/koen/OE/omap3-sgx-modules-1.3.13.1397.tar.bz2;
+SRC_URI[md5sum] = 1b48bbb5df6b4c12ebb42b92ae1bf1f9
+SRC_URI[sha256sum] = 
908a69340b020f7d865acf70724e37837016a81a0cb499fb83441759cbef7616
 
 S = ${WORKDIR}/${BPN}-${PV}/eurasiacon/build/linux/omap3430_linux/kbuild/
 
-- 
1.7.7.3


___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


[OE-core] [PATCH 0/4] Make missing checksums an error v2 + clutter-gst update

2011-12-05 Thread Joshua Lock
NOTE: this requires a patch I sent to the BitBake list[1] to error cleanly,
otherwise you'll see a Python backtrace and the build fail...

This is v2 of a series to add set BB_STRICT_CHECKSUM in default-distrovars.inc
so that missing checksums in recipes raises an error.

Since v1 I've run a test over OE-core to ensure to ensure I can do world
fetches for each of the qemu machines and discovered that omap3-sgx-modules
and puzzles recipes needed checksums adding.

I've snuck an extra patch lying on my disk into the queue too, an update for
clutter-gst.

Regards,
Joshua


The following changes since commit 044324465bd54d53ae768f3c1e7468ae0e0c6200:

  dpkg-native: Fix perl path (2011-12-02 15:31:03 +)

are available in the git repository at:
  git://git.openembedded.org/openembedded-core-contrib josh/checksums
  
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=josh/checksums

Joshua Lock (4):
  omap3-sgx-modules: set SRC_URI checksums
  puzzles: set SRC_URI checksums
  default-distrovars: missing checksums should raise an error
  clutter-gst: upgrade to 1.4.4

 meta/conf/distro/include/default-distrovars.inc|3 +++
 .../omap3-sgx-modules_1.3.13.1397.bb   |2 ++
 ...r-gst-1.8_1.4.2.bb = clutter-gst-1.8_1.4.4.bb} |4 ++--
 meta/recipes-sato/puzzles/puzzles_r9306.bb |8 
 4 files changed, 11 insertions(+), 6 deletions(-)
 rename meta/recipes-graphics/clutter/{clutter-gst-1.8_1.4.2.bb = 
clutter-gst-1.8_1.4.4.bb} (80%)

-- 
1.7.7.3


___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


[OE-core] [PATCH 3/4] default-distrovars: missing checksums should raise an error

2011-12-05 Thread Joshua Lock
Set BB_STRICT_CHECKSUM in default-distrovars so that an error is raised
if no checksum is set.

Signed-off-by: Joshua Lock j...@linux.intel.com
---
 meta/conf/distro/include/default-distrovars.inc |3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/meta/conf/distro/include/default-distrovars.inc 
b/meta/conf/distro/include/default-distrovars.inc
index 6f5f1c0..e1594f3 100644
--- a/meta/conf/distro/include/default-distrovars.inc
+++ b/meta/conf/distro/include/default-distrovars.inc
@@ -48,3 +48,6 @@ NO32LIBS ??= 1
 BBINCLUDELOGS ??= yes
 SDK_VERSION ??= oe-core.0
 DISTRO_VERSION ??= oe-core.0
+
+# Missing checksums should raise an error
+BB_STRICT_CHECKSUM = 1
-- 
1.7.7.3


___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


[OE-core] [PATCH 1/6] tcmode-default: Remove pinning u-boot-mkimage-native to non-existing version

2011-12-05 Thread Khem Raj
2009.08 does not exist anywhere and ppc builds complain about
it.

Signed-off-by: Khem Raj raj.k...@gmail.com
---
 meta/conf/distro/include/tcmode-default.inc |3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/meta/conf/distro/include/tcmode-default.inc 
b/meta/conf/distro/include/tcmode-default.inc
index c22e7dc..997400c 100644
--- a/meta/conf/distro/include/tcmode-default.inc
+++ b/meta/conf/distro/include/tcmode-default.inc
@@ -23,9 +23,6 @@ EGLIBCVERSION ?= 2.13
 UCLIBCVERSION ?= 0.9.32
 LINUXLIBCVERSION ?= 3.1
 
-# Temporary preferred version overrides for PPC
-PREFERRED_VERSION_u-boot-mkimage-native_powerpc ?= 2009.08
-
 # Temporary workaround for gcc 4.6.0 ICE with beagleboard
 # gcc bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47719
 TARGET_CC_ARCH_arm_pn-mesa-xlib := 
${@'${TARGET_CC_ARCH}'.replace('armv7-a','armv5')}
-- 
1.7.5.4


___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


[OE-core] [PATCH 0/6] Enable cloog/ppl when compiling gcc

2011-12-05 Thread Khem Raj
This patchset contains

Changes to gcc where now it will be compiled with cloog/ppl support
and we have corresponding libraries build as -native and -nativesdk
recipes

Fixes the beagleboard ICE seen with mesa-xlib sometime ago
and removes the workaround for the same

Updates eglibc 2.14 to tip of SVN branch

Fixes gnutls build failure observed on uclibc

The following changes since commit 0a7a8597be05c8def8af58eecab49d963dc9d757:

  libsdl: Disable pulseaudio explicitly (2011-12-05 23:03:23 +)

are available in the git repository at:
  git://git.openembedded.org/openembedded-core-contrib kraj/gcc-graphite
  
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=kraj/gcc-graphite

Khem Raj (6):
  tcmode-default: Remove pinning u-boot-mkimage-native to non-existing
version
  cloog-ppl,ppl: Add new recipes
  gcc-4.6: Enable PPL and ClooG support
  gnutls: Fix fix-gettext-version.patch
  eglibc: Update 2.14 recipes to latest SVN tip
  gcc: Backport patch from trunk to fix ICE seen on armv7 with
mesa-xlib

 meta/conf/distro/include/tcmode-default.inc|7 -
 .../eglibc-2.14/glibc-2.14-libdl-crash.patch   |   66 +-
 meta/recipes-core/eglibc/eglibc_2.14.bb|2 +-
 meta/recipes-devtools/gcc/gcc-4.6.inc  |   14 +-
 .../gcc/gcc-4.6/gcc-arm-set-cost.patch |   34 +
 .../recipes-devtools/gcc/gcc-cross-canadian_4.6.bb |4 +-
 meta/recipes-support/cloog-ppl/cloog-ppl.inc   |6 +
 .../recipes-support/cloog-ppl/cloog-ppl_0.15.11.bb |   13 +
 .../gnutls-2.12.14/fix-gettext-version.patch   |   17 +-
 meta/recipes-support/gnutls/gnutls_2.12.14.bb  |2 +-
 .../ppl/ppl-0.11.2/ppl_autoreconf.patch|17034 
 meta/recipes-support/ppl/ppl.inc   |6 +
 meta/recipes-support/ppl/ppl_0.11.2.bb |   16 +
 meta/recipes-support/ppl/ppl_git.bb|   17 +
 14 files changed, 17188 insertions(+), 50 deletions(-)
 create mode 100644 meta/recipes-devtools/gcc/gcc-4.6/gcc-arm-set-cost.patch
 create mode 100644 meta/recipes-support/cloog-ppl/cloog-ppl.inc
 create mode 100644 meta/recipes-support/cloog-ppl/cloog-ppl_0.15.11.bb
 create mode 100644 meta/recipes-support/ppl/ppl-0.11.2/ppl_autoreconf.patch
 create mode 100644 meta/recipes-support/ppl/ppl.inc
 create mode 100644 meta/recipes-support/ppl/ppl_0.11.2.bb
 create mode 100644 meta/recipes-support/ppl/ppl_git.bb

-- 
1.7.5.4


___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


[OE-core] [PATCH 5/6] eglibc: Update 2.14 recipes to latest SVN tip

2011-12-05 Thread Khem Raj
Adjust patches to apply on new sourcebase

Signed-off-by: Khem Raj raj.k...@gmail.com
---
 .../eglibc-2.14/glibc-2.14-libdl-crash.patch   |   66 ++--
 meta/recipes-core/eglibc/eglibc_2.14.bb|2 +-
 2 files changed, 35 insertions(+), 33 deletions(-)

diff --git a/meta/recipes-core/eglibc/eglibc-2.14/glibc-2.14-libdl-crash.patch 
b/meta/recipes-core/eglibc/eglibc-2.14/glibc-2.14-libdl-crash.patch
index e1f135c..1c30c9d 100644
--- a/meta/recipes-core/eglibc/eglibc-2.14/glibc-2.14-libdl-crash.patch
+++ b/meta/recipes-core/eglibc/eglibc-2.14/glibc-2.14-libdl-crash.patch
@@ -12,11 +12,11 @@ 
http://mailman.archlinux.org/pipermail/arch-commits/2011-June/137142.html
 
http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/glibc/current/SOURCES/glibc-2.14-libdl-crash.patch?view=markuppathrev=691343
 
http://repos.archlinuxppc.org/wsvn/filedetails.php?repname=packagespath=%2Fglibc%2Ftrunk%2Fglibc-2.14-libdl-crash.patch
 
-diff --git a/elf/dl-close.c b/elf/dl-close.c
-index 73b2a2f..9bd91e3 100644
 a/elf/dl-close.c
-+++ b/elf/dl-close.c
-@@ -119,17 +119,8 @@ _dl_close_worker (struct link_map *map)
+Index: libc/elf/dl-close.c
+===
+--- libc.orig/elf/dl-close.c   2011-12-05 20:16:38.0 -0800
 libc/elf/dl-close.c2011-12-05 20:17:15.863326893 -0800
+@@ -119,17 +119,8 @@
if (map-l_direct_opencount  0 || map-l_type != lt_loaded
|| dl_close_state != not_pending)
  {
@@ -35,12 +35,12 @@ index 73b2a2f..9bd91e3 100644
 +  dl_close_state = rerun;
  
/* There are still references to this object.  Do nothing more.  */
-   if (__builtin_expect (GLRO(dl_debug_mask)  DL_DEBUG_FILES, 0))
-diff --git a/elf/dl-deps.c b/elf/dl-deps.c
-index 9e30594..3890d00 100644
 a/elf/dl-deps.c
-+++ b/elf/dl-deps.c
-@@ -478,6 +478,7 @@ _dl_map_object_deps (struct link_map *map,
+   if (__builtin_expect (GLRO_dl_debug_mask  DL_DEBUG_FILES, 0))
+Index: libc/elf/dl-deps.c
+===
+--- libc.orig/elf/dl-deps.c2011-12-05 20:16:38.0 -0800
 libc/elf/dl-deps.c 2011-12-05 20:19:33.179326877 -0800
+@@ -478,6 +478,7 @@
  nneeded * sizeof needed[0]);
  atomic_write_barrier ();
  l-l_initfini = l_initfini;
@@ -48,7 +48,7 @@ index 9e30594..3890d00 100644
}
  
/* If we have no auxiliary objects just go on to the next map.  */
-@@ -681,6 +682,7 @@ Filters not supported with LD_TRACE_PRELINKING));
+@@ -678,6 +679,7 @@
l_initfini[nlist] = NULL;
atomic_write_barrier ();
map-l_initfini = l_initfini;
@@ -56,18 +56,20 @@ index 9e30594..3890d00 100644
if (l_reldeps != NULL)
  {
atomic_write_barrier ();
-@@ -689,5 +691,5 @@ Filters not supported with LD_TRACE_PRELINKING));
+@@ -686,7 +688,7 @@
_dl_scope_free (old_l_reldeps);
  }
if (old_l_initfini != NULL)
 -  map-l_orig_initfini = old_l_initfini;
-+_dl_scope_free (old_l_initfini);
- }
-diff --git a/elf/dl-libc.c b/elf/dl-libc.c
-index 7be9483..a13fce3 100644
 a/elf/dl-libc.c
-+++ b/elf/dl-libc.c
-@@ -265,13 +265,13 @@ libc_freeres_fn (free_mem)
++  _dl_scope_free (old_l_initfini);
+ 
+   if (errno_reason)
+ _dl_signal_error (errno_reason == -1 ? 0 : errno_reason, objname,
+Index: libc/elf/dl-libc.c
+===
+--- libc.orig/elf/dl-libc.c2011-10-22 09:34:03.0 -0700
 libc/elf/dl-libc.c 2011-12-05 20:17:15.863326893 -0800
+@@ -265,13 +265,13 @@
  
for (Lmid_t ns = 0; ns  GL(dl_nns); ++ns)
  {
@@ -82,7 +84,7 @@ index 7be9483..a13fce3 100644
  while (lnp != NULL)
{
  struct libname_list *old = lnp;
-@@ -279,6 +279,10 @@ libc_freeres_fn (free_mem)
+@@ -279,6 +279,10 @@
  if (! old-dont_free)
free (old);
}
@@ -93,11 +95,11 @@ index 7be9483..a13fce3 100644
}
  
if (__builtin_expect (GL(dl_ns)[ns]._ns_global_scope_alloc, 0) != 0
-diff --git a/elf/rtld.c b/elf/rtld.c
-index 4a9109e..617e30e 100644
 a/elf/rtld.c
-+++ b/elf/rtld.c
-@@ -2251,6 +2251,7 @@ ERROR: ld.so: object '%s' cannot be loaded as audit 
interface: %s; ignored.\n,
+Index: libc/elf/rtld.c
+===
+--- libc.orig/elf/rtld.c   2011-10-22 09:34:03.0 -0700
 libc/elf/rtld.c2011-12-05 20:17:15.863326893 -0800
+@@ -2264,6 +2264,7 @@
  lnp-dont_free = 1;
  lnp = lnp-next;
}
@@ -105,11 +107,11 @@ index 4a9109e..617e30e 100644
  
  if (l != GL(dl_rtld_map))
_dl_relocate_object (l, l-l_scope, GLRO(dl_lazy) ? RTLD_LAZY : 0,
-diff --git a/include/link.h b/include/link.h
-index e877104..051b99a 100644
 a/include/link.h
-+++ b/include/link.h
-@@ -192,6 +192,9 @@ struct link_map
+Index: libc/include/link.h

[OE-core] [PATCH 6/6] gcc: Backport patch from trunk to fix ICE seen on armv7 with mesa-xlib

2011-12-05 Thread Khem Raj
This patch is a backport of http://patchwork.ozlabs.org/patch/110517/

Signed-off-by: Khem Raj raj.k...@gmail.com
---
 meta/conf/distro/include/tcmode-default.inc|4 --
 meta/recipes-devtools/gcc/gcc-4.6.inc  |3 +-
 .../gcc/gcc-4.6/gcc-arm-set-cost.patch |   34 
 3 files changed, 36 insertions(+), 5 deletions(-)
 create mode 100644 meta/recipes-devtools/gcc/gcc-4.6/gcc-arm-set-cost.patch

diff --git a/meta/conf/distro/include/tcmode-default.inc 
b/meta/conf/distro/include/tcmode-default.inc
index 997400c..5bb253e 100644
--- a/meta/conf/distro/include/tcmode-default.inc
+++ b/meta/conf/distro/include/tcmode-default.inc
@@ -23,10 +23,6 @@ EGLIBCVERSION ?= 2.13
 UCLIBCVERSION ?= 0.9.32
 LINUXLIBCVERSION ?= 3.1
 
-# Temporary workaround for gcc 4.6.0 ICE with beagleboard
-# gcc bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47719
-TARGET_CC_ARCH_arm_pn-mesa-xlib := 
${@'${TARGET_CC_ARCH}'.replace('armv7-a','armv5')}
-
 PREFERRED_VERSION_gcc ?= ${GCCVERSION}
 PREFERRED_VERSION_gcc-cross ?= ${GCCVERSION}
 PREFERRED_VERSION_gcc-cross-initial ?= ${GCCVERSION}
diff --git a/meta/recipes-devtools/gcc/gcc-4.6.inc 
b/meta/recipes-devtools/gcc/gcc-4.6.inc
index bc655fe..c163a46 100644
--- a/meta/recipes-devtools/gcc/gcc-4.6.inc
+++ b/meta/recipes-devtools/gcc/gcc-4.6.inc
@@ -1,6 +1,6 @@
 require gcc-common.inc
 
-PR = r19
+PR = r20
 
 # Third digit in PV should be incremented after a minor release
 # happens from this branch on gcc e.g. currently its 4.6.0
@@ -72,6 +72,7 @@ SRC_URI = 
svn://gcc.gnu.org/svn/gcc/branches;module=${BRANCH};proto=http \
   file://pr46934.patch \
   file://pr32219.patch \
   file://pr47551.patch \
+  file://gcc-arm-set-cost.patch \
  
 
 SRC_URI_append_sh3  =  file://sh3-installfix-fixheaders.patch 
diff --git a/meta/recipes-devtools/gcc/gcc-4.6/gcc-arm-set-cost.patch 
b/meta/recipes-devtools/gcc/gcc-4.6/gcc-arm-set-cost.patch
new file mode 100644
index 000..04dabaf
--- /dev/null
+++ b/meta/recipes-devtools/gcc/gcc-4.6/gcc-arm-set-cost.patch
@@ -0,0 +1,34 @@
+2011-08-18  Richard Sandiford  richard.sandif...@linaro.org
+
+   gcc/
+   Backport from mainline:
+ 
+   2011-08-18  Richard Sandiford  richard.sandif...@linaro.org
+
+   * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
+   (arm_size_rtx_costs): Likewise.
+
+=== modified file 'gcc/config/arm/arm.c'
+--- old/gcc/config/arm/arm.c   2011-08-12 08:08:31 +
 new/gcc/config/arm/arm.c   2011-08-18 13:53:37 +
+@@ -7464,6 +7464,9 @@
+   *total = COSTS_N_INSNS (4);
+   return true;
+ 
++case SET:
++  return false;
++
+ default:
+   *total = COSTS_N_INSNS (4);
+   return false;
+@@ -7811,6 +7814,9 @@
+   *total = COSTS_N_INSNS (1) + 1;
+   return true;
+ 
++case SET:
++  return false;
++
+ default:
+   if (mode != VOIDmode)
+   *total = COSTS_N_INSNS (ARM_NUM_REGS (mode));
+
-- 
1.7.5.4


___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


[OE-core] [PATCH 3/6] gcc-4.6: Enable PPL and ClooG support

2011-12-05 Thread Khem Raj
This will enable graphite framework in gcc
For more information
http://gcc.gnu.org/wiki/Graphite

Signed-off-by: Khem Raj raj.k...@gmail.com
---
 meta/recipes-devtools/gcc/gcc-4.6.inc  |   13 -
 .../recipes-devtools/gcc/gcc-cross-canadian_4.6.bb |4 ++--
 2 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/meta/recipes-devtools/gcc/gcc-4.6.inc 
b/meta/recipes-devtools/gcc/gcc-4.6.inc
index 7cd0850..bc655fe 100644
--- a/meta/recipes-devtools/gcc/gcc-4.6.inc
+++ b/meta/recipes-devtools/gcc/gcc-4.6.inc
@@ -1,6 +1,6 @@
 require gcc-common.inc
 
-PR = r18
+PR = r19
 
 # Third digit in PV should be incremented after a minor release
 # happens from this branch on gcc e.g. currently its 4.6.0
@@ -22,8 +22,8 @@ SRCREV = 181430
 BRANCH = gcc-4_6-branch
 FILESPATH = ${@base_set_filespath([ '${FILE_DIRNAME}/gcc-4.6' ], d)}
 
-DEPENDS =+ mpfr gmp libmpc
-NATIVEDEPS = mpfr-native gmp-native libmpc-native
+DEPENDS =+ mpfr gmp libmpc ppl cloog-ppl
+NATIVEDEPS = mpfr-native gmp-native libmpc-native ppl-native cloog-ppl-native
 
 LICENSE=GPL-3.0-with-GCC-exception  GPLv3
 
@@ -89,13 +89,16 @@ JAVA = 
 #  --disable-bootstrap \
 #  --disable-libgomp \
 #  --disable-libmudflap
-EXTRA_OECONF_BASE =  --enable-lto \
+EXTRA_OECONF_BASE =--enable-lto \
--enable-libssp \
--disable-bootstrap \
--disable-libgomp \
--disable-libmudflap \
--with-linker-hash-style=${LINKER_HASH_STYLE} \
-   --enable-cheaders=c_global 
+   --enable-cheaders=c_global \
+   --with-ppl \
+   --with-cloog \
+   
 
 EXTRA_OECONF_INITIAL = --disable-libmudflap \
--disable-libgomp \
diff --git a/meta/recipes-devtools/gcc/gcc-cross-canadian_4.6.bb 
b/meta/recipes-devtools/gcc/gcc-cross-canadian_4.6.bb
index da3210f..600d58f 100644
--- a/meta/recipes-devtools/gcc/gcc-cross-canadian_4.6.bb
+++ b/meta/recipes-devtools/gcc/gcc-cross-canadian_4.6.bb
@@ -5,8 +5,8 @@ require gcc-cross-canadian.inc
 require gcc-configure-sdk.inc
 require gcc-package-sdk.inc
 
-DEPENDS += gmp-nativesdk mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk
-RDEPENDS_${PN} += mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk
+DEPENDS += gmp-nativesdk mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk 
ppl-nativesdk cloog-ppl-nativesdk
+RDEPENDS_${PN} += mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk 
ppl-nativesdk cloog-ppl-nativesdk
 
 SYSTEMHEADERS = /usr/include
 SYSTEMLIBS = /lib/
-- 
1.7.5.4


___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


[OE-core] [PATCH 4/6] gnutls: Fix fix-gettext-version.patch

2011-12-05 Thread Khem Raj
This patch did not cover all places to remove references
to gettext 0.17 therefore updated it.

Signed-off-by: Khem Raj raj.k...@gmail.com
---
 .../gnutls-2.12.14/fix-gettext-version.patch   |   17 +++--
 meta/recipes-support/gnutls/gnutls_2.12.14.bb  |2 +-
 2 files changed, 16 insertions(+), 3 deletions(-)

diff --git 
a/meta/recipes-support/gnutls/gnutls-2.12.14/fix-gettext-version.patch 
b/meta/recipes-support/gnutls/gnutls-2.12.14/fix-gettext-version.patch
index 7a41120..a0da765 100644
--- a/meta/recipes-support/gnutls/gnutls-2.12.14/fix-gettext-version.patch
+++ b/meta/recipes-support/gnutls/gnutls-2.12.14/fix-gettext-version.patch
@@ -5,8 +5,8 @@ Signed-off-by: Saul Wold s...@linux.intel.com
 
 Index: gnutls-2.12.14/lib/po/Makefile.in.in
 ===
 gnutls-2.12.14.orig/lib/po/Makefile.in.in  2011-11-28 20:15:56.0 
-0800
-+++ gnutls-2.12.14/lib/po/Makefile.in.in   2011-11-28 20:17:21.386078977 
-0800
+--- gnutls-2.12.14.orig/lib/po/Makefile.in.in  2009-11-01 01:43:00.0 
-0800
 gnutls-2.12.14/lib/po/Makefile.in.in   2011-12-05 12:09:34.349552489 
-0800
 @@ -8,8 +8,8 @@
  # Please note that the actual code of GNU gettext is covered by the GNU
  # General Public License and is *not* in the public domain.
@@ -18,3 +18,16 @@ Index: gnutls-2.12.14/lib/po/Makefile.in.in
  
  PACKAGE = @PACKAGE@
  VERSION = @VERSION@
+Index: gnutls-2.12.14/lib/m4/po.m4
+===
+--- gnutls-2.12.14.orig/lib/m4/po.m4   2011-12-05 12:12:34.0 -0800
 gnutls-2.12.14/lib/m4/po.m42011-12-05 12:12:49.429552465 -0800
+@@ -29,7 +29,7 @@
+ 
+   dnl Release version of the gettext macros. This is used to ensure that
+   dnl the gettext macros and po/Makefile.in.in are in sync.
+-  AC_SUBST([GETTEXT_MACRO_VERSION], [0.17])
++  AC_SUBST([GETTEXT_MACRO_VERSION], [0.18])
+ 
+   dnl Perform the following tests also if --disable-nls has been given,
+   dnl because they are needed for make dist to work.
diff --git a/meta/recipes-support/gnutls/gnutls_2.12.14.bb 
b/meta/recipes-support/gnutls/gnutls_2.12.14.bb
index 385bb2c..f521f1a 100644
--- a/meta/recipes-support/gnutls/gnutls_2.12.14.bb
+++ b/meta/recipes-support/gnutls/gnutls_2.12.14.bb
@@ -1,6 +1,6 @@
 require gnutls.inc
 
-PR = ${INC_PR}.0
+PR = ${INC_PR}.1
 
 SRC_URI += file://gnutls-openssl.patch \
 file://configure-fix.patch \
-- 
1.7.5.4


___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


[OE-core] [PATCH 2/2] wget: Fix wget alternative path to be /usr/bin not /bin

2011-12-05 Thread Saul Wold
Signed-off-by: Saul Wold s...@linux.intel.com
---
 meta/recipes-extended/wget/wget.inc |6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-extended/wget/wget.inc 
b/meta/recipes-extended/wget/wget.inc
index d9eee80..91400cc 100644
--- a/meta/recipes-extended/wget/wget.inc
+++ b/meta/recipes-extended/wget/wget.inc
@@ -3,7 +3,7 @@ SECTION = console/network
 LICENSE = GPL
 LIC_FILES_CHKSUM = file://COPYING;md5=d32239bcb673463ab874e80d47fae504
 
-INC_PR = r10
+INC_PR = r11
 
 inherit autotools gettext update-alternatives
 
@@ -15,6 +15,6 @@ do_install_append () {
 }
 
 ALTERNATIVE_NAME = wget
-ALTERNATIVE_LINK = ${base_bindir}/wget
-ALTERNATIVE_PATH = ${base_bindir}/wget.${PN}
+ALTERNATIVE_LINK = ${bindir}/wget
+ALTERNATIVE_PATH = ${bindir}/wget.${PN}
 ALTERNATIVE_PRIORITY = 100
-- 
1.7.6.4


___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


[OE-core] [PATCH 1/2] distro_tracking: fix manual entries

2011-12-05 Thread Saul Wold
Signed-off-by: Saul Wold s...@linux.intel.com
---
 .../conf/distro/include/distro_tracking_fields.inc |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/conf/distro/include/distro_tracking_fields.inc 
b/meta/conf/distro/include/distro_tracking_fields.inc
index 3d502ee..f53fffa 100644
--- a/meta/conf/distro/include/distro_tracking_fields.inc
+++ b/meta/conf/distro/include/distro_tracking_fields.inc
@@ -5734,7 +5734,7 @@ RECIPE_NO_UPDATE_REASON_pn-groff = 1.18.1.4 is latest 
GPLv2 Version no 1.21
 RECIPE_STATUS_pn-eglibc = red
 RECIPE_LATEST_VERSION_pn-eglibc = 2.13-r15508
 RECIPE_LAST_UPDATE_pn-eglibc = Nov 16, 2011
-RECIPE_MANUAL_CHECK_DATE_pn = Nov 16, 2011
+RECIPE_MANUAL_CHECK_DATE_pn-eglibc = Nov 16, 2011
 
 RECIPE_STATUS_pn-lighttpd = red
 RECIPE_LAST_UPDATE_pn-lighttpd = Jul 28, 2011
@@ -5999,7 +5999,7 @@ RECIPE_STATUS_pn-ghostscript = red
 RECIPE_LATEST_VERSION_pn-ghostscript = 9.04
 RECIPE_MAINTAINER_pn-ghostscript = Kai Kang kai.k...@windriver.com
 RECIPE_LAST_UPDATE_pn-ghostscript = Oct 19, 2011
-RECIPE_MANUAL_CHECK_DATE_pn = Oct 19, 2011
+RECIPE_MANUAL_CHECK_DATE_pn-ghostscript = Oct 19, 2011
 
 RECIPE_STATUS_pn-createrepo = green
 RECIPE_LATEST_VERSION_pn-createrepo = 0.9.9
-- 
1.7.6.4


___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


[OE-core] [PATCH 0/2] Small fixes (could be for M1)

2011-12-05 Thread Saul Wold
Richard,

These are a couple of things I found in distro_tracking (with
Jiajun's help) and wget was pointing to the wrong place, would
be good for the self-hosted build.

Sau!

The following changes since commit 0a7a8597be05c8def8af58eecab49d963dc9d757:

  libsdl: Disable pulseaudio explicitly (2011-12-05 23:03:23 +)

are available in the git repository at:
  git://git.openembedded.org/openembedded-core-contrib sgw/fix
  http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=sgw/fix

Saul Wold (2):
  distro_tracking: fix manual entries
  wget: Fix wget alternative path to be /usr/bin not /bin

 .../conf/distro/include/distro_tracking_fields.inc |4 ++--
 meta/recipes-extended/wget/wget.inc|6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

-- 
1.7.6.4


___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Re: [OE-core] Uncommon source deployment policy of live555

2011-12-05 Thread Steffen Sledz
On 26.11.2011 06:49, Khem Raj wrote:
 On Fri, Nov 25, 2011 at 3:29 AM, Steffen Sledz sl...@dresearch-fe.de wrote:
 On 25.11.2011 12:21, Koen Kooi wrote:

 Op 25 nov. 2011, om 12:05 heeft Steffen Sledz het volgende geschreven:

 The LIVE555 project has a really uncommon source deployment policy. :(

 They publish *only* the latest tarball of their code [1]. And they don't 
 make the code available under a source code repository [2].

 I've asked to change this policy but they are not willing to do that [3].

 How can we handle this?
 Does OE provides a mirror server to provide the versions we're 
 referencing?

 Angstrom has had such a mirror ever since it started and it has the 
 following live555 releases:

 Great.

 So there's no need to change the recipes. This server is used automatically. 
 Right?

 
 for angstrom yes the mirror is a fallback
 
 
 live.2009.06.02.tar.gz
 live.2010.04.09.tar.gz
 live.2010.05.29.tar.gz
 live.2010.10.15.tar.gz
 live.2011.01.10.tar.gz
 live.2011.03.14.tar.gz

 I'd like to see the current live.2011.11.20.tar.gz there too. Who's 
 maintaining such requests?
 
 as another backup you can also put this up on
 sources.openemebedded.org, send it to ka6sox

I did not get an answer from ka6sox to my upload request until now. Can anybody 
else make to upload to sources.openemebedded.org?

Steffen

-- 
DResearch Fahrzeugelektronik GmbH
Otto-Schmirgal-Str. 3, 10319 Berlin, Germany
Tel: +49 30 515932-237 mailto:sl...@dresearch-fe.de
Fax: +49 30 515932-299
Geschäftsführer: Dr. Michael Weber, Werner Mögle;
Amtsgericht Berlin Charlottenburg; HRB 130120 B;
Ust.-IDNr. DE273952058

___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 0/1] Make missing checksums an error

2011-12-05 Thread Koen Kooi

Op 6 dec. 2011, om 03:13 heeft Joshua Lock het volgende geschreven:

 
 
 On 05/12/11 14:55, Joshua Lock wrote:
 On 05/12/11 14:50, Richard Purdie wrote:
 On Fri, 2011-12-02 at 11:20 -0800, Joshua Lock wrote:
 NOTE: this requires a patch I sent to the BitBake list[1] to error cleanly,
 otherwise you'll see a Python backtrace and the build fail...
 
 Per some discussion on the list recently this patch sets BB_STRICT_CHECKSUM
 in the default-distrovars.inc so that missing checksums in recipes raises 
 an
 error.
 
 Cheers,
 Joshua
 
 What's the state of master? If I merge this, how badly do things
 explode?
 
 Let me run a universe fetchall and get back to you...
 
 Two recipes in oe-core require checksums adding, puzzles and
 omap3-sgx-modules - a v2 of this request with those patches is incoming.

Omap3-sgx-modules has no place in OE-core, so it should get deleted.

regards,

KOen

signature.asc
Description: Message signed with OpenPGP using GPGMail
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 1/4] omap3-sgx-modules: set SRC_URI checksums

2011-12-05 Thread Koen Kooi

Op 6 dec. 2011, om 03:17 heeft Joshua Lock het volgende geschreven:

 We'd like to make missing SRC_URI checksums an error, so all
 appropriate recipes need to have a checksum value set.
 
 Signed-off-by: Joshua Lock j...@linux.intel.com

NAK, this recipe needs to get deleted from OE, it belongs in a BSP. FWIW, 
meta-ti already has a more up to date version of it.

regards,

Koe 

signature.asc
Description: Message signed with OpenPGP using GPGMail
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Re: [OE-core] meta-toolchain-gmae can't build: Cannot create symlink from ./var/log to 'volatile/log': File exists

2011-12-05 Thread Cui, Dexuan
Richard Purdie wrote on 2011-12-05:
 On Mon, 2011-12-05 at 15:35 +0800, Cui, Dexuan wrote:
 Hi, recently, I found meta-toolchain-gmae failed to build on poky
 master if I use ipk packaging(I didn't try rpm/deb):
 
 task do_populate_sdk: Failed
 
 | Configuring avahi-dev. | Configuring
 task-core-standalone-gmae-sdk-target. | Configuring libtelepathy-dbg. |
 Configuring task-core-standalone-gmae-sdk-target-dbg. | Configuring
 util-linux-blkid. | Collected errors: |  * extract_archive: Cannot
 create symlink from ./var/log to 'volatile/log': File exists. ERROR:
 Function 'do_populate_sdk' failed
 
 Now I have no time to look into this issue at once. It would be
 great, if
 somebody can give some quick hint.
 
 Is this with the latest master?
 
 http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=f340e3937fd5ac396 3
 de6c6b29d56dd92d962864
 
 was added to avoid an error very like this that was showing up with rpm...
Yes. I was using yesterday's latest poky master 
(9be6d59b78510443d0944513503d515df13caa45), so the fix you mentioned above was 
already in.
There must be some recent change that causes the issue, because IIRC it was 
fine in my side 2~3 weeks ago.

Thanks,
-- Dexuan



___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core