All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V2 0/6] Fixes to get oe-core building
@ 2011-03-02  8:37 Khem Raj
  2011-03-02  8:37 ` [PATCH v2 1/7] sqlite3: Update version 3.7.3 -> 3.7.5 Khem Raj
                   ` (6 more replies)
  0 siblings, 7 replies; 17+ messages in thread
From: Khem Raj @ 2011-03-02  8:37 UTC (permalink / raw)
  To: openembedded-core

Hi


The attached patches are needed to get the OE core to build
Please provide feedback

V2: Fix the sanity test case to check for new limit
    Add patch to link gcc cross statically with prerequisite libs
    Remove do_compile_prepend from sqlite3 upgrade


Thanks

-Khem




^ permalink raw reply	[flat|nested] 17+ messages in thread

* [PATCH v2 1/7] sqlite3: Update version 3.7.3 -> 3.7.5
  2011-03-02  8:37 [PATCH V2 0/6] Fixes to get oe-core building Khem Raj
@ 2011-03-02  8:37 ` Khem Raj
  2011-03-02  8:56   ` Koen Kooi
                     ` (2 more replies)
  2011-03-02  8:37 ` [PATCH v2 2/7] lib/oe/path.py: Use bb.utils.mkdirhier instead of bb.mkdirhier Khem Raj
                   ` (5 subsequent siblings)
  6 siblings, 3 replies; 17+ messages in thread
From: Khem Raj @ 2011-03-02  8:37 UTC (permalink / raw)
  To: openembedded-core

* Imported from OE commit a2c3af2d608b1b713018d688b00e03873a538993
* native version of 3.7.3 does not build

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-support/sqlite/sqlite3.inc      |    7 ++++++-
 meta/recipes-support/sqlite/sqlite3_3.7.3.bb |    8 --------
 meta/recipes-support/sqlite/sqlite3_3.7.5.bb |   10 ++++++++++
 3 files changed, 16 insertions(+), 9 deletions(-)
 delete mode 100644 meta/recipes-support/sqlite/sqlite3_3.7.3.bb
 create mode 100644 meta/recipes-support/sqlite/sqlite3_3.7.5.bb

diff --git a/meta/recipes-support/sqlite/sqlite3.inc b/meta/recipes-support/sqlite/sqlite3.inc
index 92c4930..a5e6782 100644
--- a/meta/recipes-support/sqlite/sqlite3.inc
+++ b/meta/recipes-support/sqlite/sqlite3.inc
@@ -3,7 +3,7 @@ HOMEPAGE = "http://www.sqlite.org"
 SECTION = "libs"
 PRIORITY = "optional"
 DEPENDS = "readline ncurses tcl-native"
-DEPENDS_virtclass-native = "tcl-native"
+DEPENDS_virtclass-native = "tcl-native ncurses-native"
 LICENSE = "PD"
 
 SRC_URI = "http://www.sqlite.org/sqlite-${PV}.tar.gz \
@@ -32,3 +32,8 @@ FILES_lib${PN}-doc = "${docdir} ${mandir} ${infodir}"
 AUTO_LIBNAME_PKGS = "lib${PN}"
 
 BBCLASSEXTEND = "native nativesdk"
+
+#do_compile_prepend() {
+#        oe_runmake sqlite3.h
+#        install -m 0644 sqlite3.h ${STAGING_INCDIR}
+#}
diff --git a/meta/recipes-support/sqlite/sqlite3_3.7.3.bb b/meta/recipes-support/sqlite/sqlite3_3.7.3.bb
deleted file mode 100644
index 7296aba..0000000
--- a/meta/recipes-support/sqlite/sqlite3_3.7.3.bb
+++ /dev/null
@@ -1,8 +0,0 @@
-require sqlite3.inc
-
-LIC_FILES_CHKSUM = "file://src/main.c;endline=16;md5=86c9b824e9d68f8a26343a4b57f6d85a"
-
-PR = "r1"
-
-SRC_URI[md5sum] = "5437978aae90350cf984993091e0d695"
-SRC_URI[sha256sum] = "dbf352e8fbb74829f5e7a88f9f6ceeb80a709537f668c36e4b6cdfb271309ef6"
diff --git a/meta/recipes-support/sqlite/sqlite3_3.7.5.bb b/meta/recipes-support/sqlite/sqlite3_3.7.5.bb
new file mode 100644
index 0000000..212d9e2
--- /dev/null
+++ b/meta/recipes-support/sqlite/sqlite3_3.7.5.bb
@@ -0,0 +1,10 @@
+require sqlite3.inc
+
+LIC_FILES_CHKSUM = "file://sqlite3.c;endline=19;md5=c1b8048b783961c3ba387c43fd955dc6"
+
+SRC_URI = "http://www.sqlite.org/sqlite-autoconf-3070500.tar.gz"
+S = "${WORKDIR}/sqlite-autoconf-3070500"
+PR = "r0"
+
+SRC_URI[md5sum] = "a9604a82613ade2e7f4c303f233e477f"                                                 
+SRC_URI[sha256sum] = "cb5b86926ec9f65882b2dddd244f2d620337d911ec73411863f77e48cf6a2f94"              
-- 
1.7.4.1




^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH v2 2/7] lib/oe/path.py: Use bb.utils.mkdirhier instead of bb.mkdirhier
  2011-03-02  8:37 [PATCH V2 0/6] Fixes to get oe-core building Khem Raj
  2011-03-02  8:37 ` [PATCH v2 1/7] sqlite3: Update version 3.7.3 -> 3.7.5 Khem Raj
@ 2011-03-02  8:37 ` Khem Raj
  2011-03-02  8:37 ` [PATCH v2 3/7] linux-libc-headers_2.6.37.2.bb: Add checksums Khem Raj
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 17+ messages in thread
From: Khem Raj @ 2011-03-02  8:37 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/lib/oe/path.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/meta/lib/oe/path.py b/meta/lib/oe/path.py
index 4813860..08ddbf2 100644
--- a/meta/lib/oe/path.py
+++ b/meta/lib/oe/path.py
@@ -52,7 +52,7 @@ def copytree(src, dst):
     # If dst already has contents performance can be 15 time slower
     # This way we also preserve hardlinks between files in the tree.
 
-    bb.mkdirhier(dst)
+    bb.utils.mkdirhier(dst)
     cmd = 'tar -cf - -C %s -ps . | tar -xf - -C %s' % (src, dst)
     check_output(cmd, shell=True, stderr=subprocess.STDOUT)
 
-- 
1.7.4.1




^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH v2 3/7] linux-libc-headers_2.6.37.2.bb: Add checksums
  2011-03-02  8:37 [PATCH V2 0/6] Fixes to get oe-core building Khem Raj
  2011-03-02  8:37 ` [PATCH v2 1/7] sqlite3: Update version 3.7.3 -> 3.7.5 Khem Raj
  2011-03-02  8:37 ` [PATCH v2 2/7] lib/oe/path.py: Use bb.utils.mkdirhier instead of bb.mkdirhier Khem Raj
@ 2011-03-02  8:37 ` Khem Raj
  2011-03-02  8:37 ` [PATCH v2 4/7] distro_tracking_fields.inc: Use 2.6.37.2 instead of 2.6.36 for linux-libc-headers Khem Raj
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 17+ messages in thread
From: Khem Raj @ 2011-03-02  8:37 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 .../linux-libc-headers_2.6.37.2.bb                 |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_2.6.37.2.bb b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_2.6.37.2.bb
index dc9d49a..888d9e4 100644
--- a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_2.6.37.2.bb
+++ b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_2.6.37.2.bb
@@ -45,3 +45,5 @@ do_install() {
 }
 
 BBCLASSEXTEND = "nativesdk"
+SRC_URI[md5sum] = "89f681bc7c917a84aa7470da6eed5101"
+SRC_URI[sha256sum] = "2920c4cd3e87fe40ebee96d28779091548867e1c36f71c1fc3d07e6d5802161f"
-- 
1.7.4.1




^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH v2 4/7] distro_tracking_fields.inc: Use 2.6.37.2 instead of 2.6.36 for linux-libc-headers
  2011-03-02  8:37 [PATCH V2 0/6] Fixes to get oe-core building Khem Raj
                   ` (2 preceding siblings ...)
  2011-03-02  8:37 ` [PATCH v2 3/7] linux-libc-headers_2.6.37.2.bb: Add checksums Khem Raj
@ 2011-03-02  8:37 ` Khem Raj
  2011-03-02  8:37 ` [PATCH v2 5/7] qemu-0.13.0: Add patch to avoid mmap_min_addr Khem Raj
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 17+ messages in thread
From: Khem Raj @ 2011-03-02  8:37 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 .../conf/distro/include/distro_tracking_fields.inc |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta/conf/distro/include/distro_tracking_fields.inc b/meta/conf/distro/include/distro_tracking_fields.inc
index 1dab90a..beb18e2 100644
--- a/meta/conf/distro/include/distro_tracking_fields.inc
+++ b/meta/conf/distro/include/distro_tracking_fields.inc
@@ -2884,9 +2884,9 @@ RECIPE_LAST_UPDATE_pn-libtool = "Nov 8, 2010"
 RECIPE_MAINTAINER_pn-libtool = "Nitin A Kamble <nitin.a.kamble@intel.com>"
 
 RECIPE_STATUS_pn-linux-libc-headers="green" 
-RECIPE_LATEST_VERSION_pn-linux-libc-headers="2.6.36"
-RECIPE_LAST_UPDATE_pn-linux-libc-headers = "Nov 8, 2010"
-RECIPE_MAINTAINER_pn-linux-libc-headers = "Nitin A Kamble <nitin.a.kamble@intel.com>"
+RECIPE_LATEST_VERSION_pn-linux-libc-headers="2.6.37.2"
+RECIPE_LAST_UPDATE_pn-linux-libc-headers = "Mar 1, 2011"
+RECIPE_MAINTAINER_pn-linux-libc-headers = "Khem Raj <raj.khem@gmail.com>"
 
 RECIPE_STATUS_pn-lsof="green" 
 RECIPE_LATEST_VERSION_pn-lsof="4.84"
-- 
1.7.4.1




^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH v2 5/7] qemu-0.13.0: Add patch to avoid mmap_min_addr
  2011-03-02  8:37 [PATCH V2 0/6] Fixes to get oe-core building Khem Raj
                   ` (3 preceding siblings ...)
  2011-03-02  8:37 ` [PATCH v2 4/7] distro_tracking_fields.inc: Use 2.6.37.2 instead of 2.6.36 for linux-libc-headers Khem Raj
@ 2011-03-02  8:37 ` Khem Raj
  2011-03-02  8:37 ` [PATCH v2 6/7] gcc: Statically link in support libraries e.g. libmpfr libgmp etc Khem Raj
  2011-03-02  8:37 ` [PATCH v2 7/7] sanity.bbclass: Check for /proc/sys/vm/mmap_min_addr to be >= 65536 Khem Raj
  6 siblings, 0 replies; 17+ messages in thread
From: Khem Raj @ 2011-03-02  8:37 UTC (permalink / raw)
  To: openembedded-core

* This patch is taken from OE commit 40e293342ca76921904a43b03b635d9219432edf

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 .../fallback-to-safe-mmap_min_addr.patch           |   37 ++++++++++++++++++++
 meta/recipes-devtools/qemu/qemu_0.13.0.bb          |    6 ++-
 2 files changed, 41 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-devtools/qemu/qemu-0.13.0/fallback-to-safe-mmap_min_addr.patch

diff --git a/meta/recipes-devtools/qemu/qemu-0.13.0/fallback-to-safe-mmap_min_addr.patch b/meta/recipes-devtools/qemu/qemu-0.13.0/fallback-to-safe-mmap_min_addr.patch
new file mode 100644
index 0000000..7c782b9
--- /dev/null
+++ b/meta/recipes-devtools/qemu/qemu-0.13.0/fallback-to-safe-mmap_min_addr.patch
@@ -0,0 +1,37 @@
+From c313f89c33217ac0e471554dace2144718f86669 Mon Sep 17 00:00:00 2001
+From: Martin Jansa <Martin.Jansa@gmail.com>
+Date: Thu, 13 May 2010 12:23:40 +0200
+Subject: [PATCH] linux-user: use default mmap_min_addr 65536 when /proc/sys/vm/mmap_min_addr cannot be read
+
+* 65536 is default at least for ubuntu and fedora.
+---
+ linux-user/main.c |    5 +++++
+ 1 files changed, 5 insertions(+), 0 deletions(-)
+
+Index: qemu-0.13.0/linux-user/main.c
+===================================================================
+--- qemu-0.13.0.orig/linux-user/main.c
++++ qemu-0.13.0/linux-user/main.c
+@@ -36,6 +36,7 @@
+ #include "envlist.h"
+ 
+ #define DEBUG_LOGFILE "/tmp/qemu.log"
++#define MMAP_MIN_ADDR_DEFAULT 65536
+ 
+ char *exec_path;
+ 
+@@ -2973,8 +2974,14 @@ int main(int argc, char **argv, char **e
+             if (fscanf(fp, "%lu", &tmp) == 1) {
+                 mmap_min_addr = tmp;
+                 qemu_log("host mmap_min_addr=0x%lx\n", mmap_min_addr);
++            } else {
++                qemu_log("cannot read value from /proc/sys/vm/mmap_min_addr, assuming %d\n", MMAP_MIN_ADDR_DEFAULT);
++                mmap_min_addr = MMAP_MIN_ADDR_DEFAULT;
+             }
+             fclose(fp);
++        } else {
++            qemu_log("cannot open /proc/sys/vm/mmap_min_addr for reading, assuming %d\n", MMAP_MIN_ADDR_DEFAULT);
++            mmap_min_addr = MMAP_MIN_ADDR_DEFAULT;
+         }
+     }
+ 
diff --git a/meta/recipes-devtools/qemu/qemu_0.13.0.bb b/meta/recipes-devtools/qemu/qemu_0.13.0.bb
index 945c570..71b56b7 100644
--- a/meta/recipes-devtools/qemu/qemu_0.13.0.bb
+++ b/meta/recipes-devtools/qemu/qemu_0.13.0.bb
@@ -3,7 +3,7 @@ require qemu.inc
 LIC_FILES_CHKSUM = "file://COPYING;md5=441c28d2cf86e15a37fa47e15a72fbac \
                     file://COPYING.LIB;endline=24;md5=c04def7ae38850e7d3ef548588159913"
 
-PR = "r0"
+PR = "r1"
 
 FILESPATH = "${FILE_DIRNAME}/qemu-${PV}"
 FILESDIR = "${WORKDIR}"
@@ -26,7 +26,9 @@ SRC_URI = "\
     file://parallel_make.patch \
     file://wacom-tablet-fix.patch \
     file://port92_fix.patch \
-    file://powerpc_rom.bin"
+    file://powerpc_rom.bin \
+    file://fallback-to-safe-mmap_min_addr.patch \
+    "
 
 SRC_URI[md5sum] = "397a0d665da8ba9d3b9583629f3d6421"
 SRC_URI[sha256sum] = "1e6f5851b05cea6e377c835f4668408d4124cfb845f9948d922808743c5fd877"
-- 
1.7.4.1




^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH v2 6/7] gcc: Statically link in support libraries e.g. libmpfr libgmp etc.
  2011-03-02  8:37 [PATCH V2 0/6] Fixes to get oe-core building Khem Raj
                   ` (4 preceding siblings ...)
  2011-03-02  8:37 ` [PATCH v2 5/7] qemu-0.13.0: Add patch to avoid mmap_min_addr Khem Raj
@ 2011-03-02  8:37 ` Khem Raj
  2011-03-02  8:37 ` [PATCH v2 7/7] sanity.bbclass: Check for /proc/sys/vm/mmap_min_addr to be >= 65536 Khem Raj
  6 siblings, 0 replies; 17+ messages in thread
From: Khem Raj @ 2011-03-02  8:37 UTC (permalink / raw)
  To: openembedded-core

* This is helpful to get consistent behaviour with gcc on different
  hosts and linking the libraries in for cross gcc recipes should not
  be increasing the binary size alarmingly

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-devtools/gcc/gcc-configure-common.inc |    7 +++++++
 meta/recipes-devtools/gcc/gcc-configure-cross.inc  |   10 ++++++++++
 meta/recipes-devtools/gcc/gcc-configure-sdk.inc    |    8 ++++++++
 .../gcc/gcc-cross-canadian_4.3.3.bb                |    2 +-
 .../gcc/gcc-cross-canadian_4.5.1.bb                |    2 +-
 .../gcc/gcc-cross-initial_4.3.3.bb                 |    2 +-
 .../gcc/gcc-cross-initial_4.5.1.bb                 |    2 +-
 .../gcc/gcc-cross-intermediate_4.3.3.bb            |    2 +-
 .../gcc/gcc-cross-intermediate_4.5.1.bb            |    2 +-
 .../gcc/gcc-cross-kernel-3.4.4_csl-arm-2005q3.bb   |    2 +-
 meta/recipes-devtools/gcc/gcc-cross_4.3.3.bb       |    2 +-
 meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb       |    2 +-
 .../gcc/gcc-cross_csl-arm-2008q1.bb                |    2 +-
 .../gcc/gcc-crosssdk-initial_4.3.3.bb              |    2 +-
 .../gcc/gcc-crosssdk-initial_4.5.1.bb              |    2 +-
 .../gcc/gcc-crosssdk-intermediate_4.3.3.bb         |    2 +-
 .../gcc/gcc-crosssdk-intermediate_4.5.1.bb         |    2 +-
 meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb    |    2 +-
 meta/recipes-devtools/gcc/gcc-runtime_4.3.3.bb     |    2 +-
 meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb     |    2 +-
 meta/recipes-devtools/gcc/gcc_4.3.3.bb             |    2 +-
 meta/recipes-devtools/gcc/gcc_4.5.1.bb             |    2 +-
 meta/recipes-devtools/gcc/gcc_csl-arm-2008q1.bb    |    2 +-
 meta/recipes-devtools/gcc/libgcc_4.5.1.bb          |    2 +-
 24 files changed, 46 insertions(+), 21 deletions(-)

diff --git a/meta/recipes-devtools/gcc/gcc-configure-common.inc b/meta/recipes-devtools/gcc/gcc-configure-common.inc
index 4393777..cdb69fb 100644
--- a/meta/recipes-devtools/gcc/gcc-configure-common.inc
+++ b/meta/recipes-devtools/gcc/gcc-configure-common.inc
@@ -85,6 +85,11 @@ do_configure () {
 	export CXXFLAGS_FOR_BUILD="${BUILD_CXXFLAGS}"
 	export LDFLAGS_FOR_BUILD="${BUILD_LDFLAGS}"
 	export ARCH_FLAGS_FOR_TARGET="${ARCH_FLAGS_FOR_TARGET}"
+
+        # Make sure LDFLAGS are honored.
+        sed -i 's/^LDFLAGS = $/LDFLAGS = @LDFLAGS@/' ${S}/Makefile.in
+        sed -i 's/^LDFLAGS = $/LDFLAGS = @LDFLAGS@/' ${S}/Makefile.tpl
+
 	(cd ${S} && gnu-configize) || die "failure running gnu-configize"
 	
 	# teach gcc to find correct target includedir when checking libc ssp support
@@ -108,5 +113,7 @@ do_configure () {
 	echo "#endif /* ! GCC_DEFAULTS_H */" >> ${S}/gcc/defaults.h.new
 	mv ${S}/gcc/defaults.h.new ${S}/gcc/defaults.h
 	oe_runconf
+        # make sure that no @LDFLAG@ is left in the generated Makefile
+        sed -i "s/@LDFLAGS@//g" ${B}/Makefile
 }
 
diff --git a/meta/recipes-devtools/gcc/gcc-configure-cross.inc b/meta/recipes-devtools/gcc/gcc-configure-cross.inc
index 346d164..200cbe2 100644
--- a/meta/recipes-devtools/gcc/gcc-configure-cross.inc
+++ b/meta/recipes-devtools/gcc/gcc-configure-cross.inc
@@ -16,6 +16,16 @@ do_compile_prepend () {
 	export LD_FOR_TARGET="${TARGET_SYS}-ld"
 	export NM_FOR_TARGET="${TARGET_SYS}-nm"
 	export CC_FOR_TARGET="${CCACHE} ${TARGET_SYS}-gcc ${TARGET_CC_ARCH}"
+	export OBJDUMP_FOR_TARGET="${TARGET_SYS}-objdump"
+	export OBJCOPY_FOR_TARGET="${TARGET_SYS}-objcopy"
+	export STRIP_FOR_TARGET="${TARGET_SYS}-strip"
+	# Make sure we use GMP/MPFR statically
+	sed -i 's/^\(HOST_GMPLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.tpl
+	sed -i 's/^\(HOST_GMPLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.in
+	sed -i 's/^\(HOST_PPLLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.tpl
+	sed -i 's/^\(HOST_PPLLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.in
+	sed -i 's/^\(HOST_LIBELFLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.tpl
+	sed -i 's/^\(HOST_LIBELFLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.in
 }
 
 LIBGCCS_VAR = "-lgcc_s"
diff --git a/meta/recipes-devtools/gcc/gcc-configure-sdk.inc b/meta/recipes-devtools/gcc/gcc-configure-sdk.inc
index 756e74e..3eb8992 100644
--- a/meta/recipes-devtools/gcc/gcc-configure-sdk.inc
+++ b/meta/recipes-devtools/gcc/gcc-configure-sdk.inc
@@ -39,6 +39,14 @@ do_configure () {
 	export CPPFLAGS_FOR_BUILD="${BUILD_CPPFLAGS}"
 	export CXXFLAGS_FOR_BUILD="${BUILD_CXXFLAGS}"
 	export LDFLAGS_FOR_BUILD="${BUILD_LDFLAGS}"
+	export CC_FOR_TARGET="${CCACHE} ${TARGET_SYS}-gcc ${TARGET_CC_ARCH}"
+	# Make sure we use GMP/MPFR statically 
+	sed -i 's/^\(HOST_GMPLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.tpl
+	sed -i 's/^\(HOST_GMPLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.in
+	sed -i 's/^\(HOST_PPLLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.tpl 
+	sed -i 's/^\(HOST_PPLLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.in
+	sed -i 's/^\(HOST_LIBELFLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.tpl
+	sed -i 's/^\(HOST_LIBELFLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.in
 	(cd ${S} && gnu-configize) || die "failure running gnu-configize"
 	oe_runconf
 }
diff --git a/meta/recipes-devtools/gcc/gcc-cross-canadian_4.3.3.bb b/meta/recipes-devtools/gcc/gcc-cross-canadian_4.3.3.bb
index d420f80..8bf07d7 100644
--- a/meta/recipes-devtools/gcc/gcc-cross-canadian_4.3.3.bb
+++ b/meta/recipes-devtools/gcc/gcc-cross-canadian_4.3.3.bb
@@ -5,7 +5,7 @@ require gcc-cross-canadian.inc
 require gcc-configure-sdk.inc
 require gcc-package-sdk.inc
 
-PR = "r20"
+PR = "r21"
 
 DEPENDS += "gmp-nativesdk mpfr-nativesdk"
 RDEPENDS_${PN} += "mpfr-nativesdk"
diff --git a/meta/recipes-devtools/gcc/gcc-cross-canadian_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-cross-canadian_4.5.1.bb
index 3eea4bc..92708d4 100644
--- a/meta/recipes-devtools/gcc/gcc-cross-canadian_4.5.1.bb
+++ b/meta/recipes-devtools/gcc/gcc-cross-canadian_4.5.1.bb
@@ -5,7 +5,7 @@ require gcc-cross-canadian.inc
 require gcc-configure-sdk.inc
 require gcc-package-sdk.inc
 
-PR = "r3"
+PR = "r4"
 
 DEPENDS += "gmp-nativesdk mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk"
 RDEPENDS_${PN} += "mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk"
diff --git a/meta/recipes-devtools/gcc/gcc-cross-initial_4.3.3.bb b/meta/recipes-devtools/gcc/gcc-cross-initial_4.3.3.bb
index 28ac1ab..ef52845 100644
--- a/meta/recipes-devtools/gcc/gcc-cross-initial_4.3.3.bb
+++ b/meta/recipes-devtools/gcc/gcc-cross-initial_4.3.3.bb
@@ -1,5 +1,5 @@
 require gcc-cross_${PV}.bb
 require gcc-cross-initial.inc
 
-PR = "r5"
+PR = "r6"
 
diff --git a/meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb
index b2c257d..38e0964 100644
--- a/meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb
+++ b/meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb
@@ -1,5 +1,5 @@
 require gcc-cross_${PV}.bb
 require gcc-cross-initial.inc
 
-PR = "r2"
+PR = "r3"
 
diff --git a/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.3.3.bb b/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.3.3.bb
index a8473b0..deeee37 100644
--- a/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.3.3.bb
+++ b/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.3.3.bb
@@ -1,4 +1,4 @@
 require gcc-cross_${PV}.bb
 require gcc-cross-intermediate.inc
-PR = "r5"
+PR = "r6"
 
diff --git a/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.bb
index e65d5df..9a30cb5 100644
--- a/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.bb
+++ b/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.bb
@@ -1,4 +1,4 @@
 require gcc-cross_${PV}.bb
 require gcc-cross-intermediate.inc
-PR = "r3"
+PR = "r4"
 
diff --git a/meta/recipes-devtools/gcc/gcc-cross-kernel-3.4.4_csl-arm-2005q3.bb b/meta/recipes-devtools/gcc/gcc-cross-kernel-3.4.4_csl-arm-2005q3.bb
index 88e3842..462104f 100644
--- a/meta/recipes-devtools/gcc/gcc-cross-kernel-3.4.4_csl-arm-2005q3.bb
+++ b/meta/recipes-devtools/gcc/gcc-cross-kernel-3.4.4_csl-arm-2005q3.bb
@@ -9,7 +9,7 @@ require gcc-cross-kernel.inc
 
 DEFAULT_PREFERENCE = "-1"
 
-PR = "r4"
+PR = "r5"
 
 SRC_URI += "file://gcc-3.4.4-makefile-fix.patch;patch=1"
 
diff --git a/meta/recipes-devtools/gcc/gcc-cross_4.3.3.bb b/meta/recipes-devtools/gcc/gcc-cross_4.3.3.bb
index 5eaac5f..1a982f5 100644
--- a/meta/recipes-devtools/gcc/gcc-cross_4.3.3.bb
+++ b/meta/recipes-devtools/gcc/gcc-cross_4.3.3.bb
@@ -1,4 +1,4 @@
-PR = "r17"
+PR = "r18"
 
 require gcc-${PV}.inc
 require gcc-cross4.inc
diff --git a/meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb
index 399cdf9..78bb05a 100644
--- a/meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb
+++ b/meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb
@@ -1,4 +1,4 @@
-PR = "r2"
+PR = "r3"
 
 require gcc-${PV}.inc
 require gcc-cross4.inc
diff --git a/meta/recipes-devtools/gcc/gcc-cross_csl-arm-2008q1.bb b/meta/recipes-devtools/gcc/gcc-cross_csl-arm-2008q1.bb
index 89534f1..0e7a1ee 100644
--- a/meta/recipes-devtools/gcc/gcc-cross_csl-arm-2008q1.bb
+++ b/meta/recipes-devtools/gcc/gcc-cross_csl-arm-2008q1.bb
@@ -1,4 +1,4 @@
-PR = "r5"
+PR = "r6"
 
 require gcc-csl-arm-2008q1.inc
 require gcc-cross4.inc
diff --git a/meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.3.3.bb b/meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.3.3.bb
index b42de47..d3ddcb1 100644
--- a/meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.3.3.bb
+++ b/meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.3.3.bb
@@ -1,3 +1,3 @@
 require gcc-cross-initial_${PV}.bb
 require gcc-crosssdk-initial.inc
-PR = "r6"
+PR = "r7"
diff --git a/meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb
index 240caf5..fec53b9 100644
--- a/meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb
+++ b/meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb
@@ -1,4 +1,4 @@
 require gcc-cross-initial_${PV}.bb
 require gcc-crosssdk-initial.inc
 
-PR = "r2"
+PR = "r3"
diff --git a/meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.3.3.bb b/meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.3.3.bb
index cd1f966..2be05f1 100644
--- a/meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.3.3.bb
+++ b/meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.3.3.bb
@@ -1,3 +1,3 @@
 require gcc-cross-intermediate_${PV}.bb
 require gcc-crosssdk-intermediate.inc
-PR = "r8"
+PR = "r9"
diff --git a/meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bb
index a6653dd..161d870 100644
--- a/meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bb
+++ b/meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bb
@@ -1,4 +1,4 @@
 require gcc-cross-intermediate_${PV}.bb
 require gcc-crosssdk-intermediate.inc
 
-PR = "r2"
+PR = "r3"
diff --git a/meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb
index 129e8d3..7069088 100644
--- a/meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb
+++ b/meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb
@@ -1,4 +1,4 @@
 require gcc-cross_${PV}.bb
 require gcc-crosssdk.inc
 
-PR = "r2"
+PR = "r3"
diff --git a/meta/recipes-devtools/gcc/gcc-runtime_4.3.3.bb b/meta/recipes-devtools/gcc/gcc-runtime_4.3.3.bb
index 99f927a..2f5cfb5 100644
--- a/meta/recipes-devtools/gcc/gcc-runtime_4.3.3.bb
+++ b/meta/recipes-devtools/gcc/gcc-runtime_4.3.3.bb
@@ -1,4 +1,4 @@
-PR = "r18"
+PR = "r19"
 
 require gcc-${PV}.inc
 require gcc-configure-runtime.inc
diff --git a/meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb
index 093f9bf..c1e680d 100644
--- a/meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb
+++ b/meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb
@@ -1,4 +1,4 @@
-PR = "r2"
+PR = "r3"
 
 require gcc-${PV}.inc
 require gcc-configure-runtime.inc
diff --git a/meta/recipes-devtools/gcc/gcc_4.3.3.bb b/meta/recipes-devtools/gcc/gcc_4.3.3.bb
index f0471d4..ba6e7b2 100644
--- a/meta/recipes-devtools/gcc/gcc_4.3.3.bb
+++ b/meta/recipes-devtools/gcc/gcc_4.3.3.bb
@@ -1,4 +1,4 @@
-PR = "r11"
+PR = "r12"
 
 require gcc-${PV}.inc
 require gcc-configure-target.inc
diff --git a/meta/recipes-devtools/gcc/gcc_4.5.1.bb b/meta/recipes-devtools/gcc/gcc_4.5.1.bb
index 919d4b0..25e455c 100644
--- a/meta/recipes-devtools/gcc/gcc_4.5.1.bb
+++ b/meta/recipes-devtools/gcc/gcc_4.5.1.bb
@@ -1,4 +1,4 @@
-PR = "r2"
+PR = "r3"
 require gcc-${PV}.inc
 require gcc-configure-target.inc
 require gcc-package-target.inc
diff --git a/meta/recipes-devtools/gcc/gcc_csl-arm-2008q1.bb b/meta/recipes-devtools/gcc/gcc_csl-arm-2008q1.bb
index cc7540a..2df12ef 100644
--- a/meta/recipes-devtools/gcc/gcc_csl-arm-2008q1.bb
+++ b/meta/recipes-devtools/gcc/gcc_csl-arm-2008q1.bb
@@ -1,4 +1,4 @@
-PR = "r3"
+PR = "r4"
 
 require gcc-${PV}.inc
 require gcc-configure-target.inc
diff --git a/meta/recipes-devtools/gcc/libgcc_4.5.1.bb b/meta/recipes-devtools/gcc/libgcc_4.5.1.bb
index b6cf268..3f7ce0a 100644
--- a/meta/recipes-devtools/gcc/libgcc_4.5.1.bb
+++ b/meta/recipes-devtools/gcc/libgcc_4.5.1.bb
@@ -1,6 +1,6 @@
 require gcc-${PV}.inc
 
-PR = "r0"
+PR = "r1"
 
 INHIBIT_DEFAULT_DEPS = "1"
 DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++"
-- 
1.7.4.1




^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH v2 7/7] sanity.bbclass: Check for /proc/sys/vm/mmap_min_addr to be >= 65536
  2011-03-02  8:37 [PATCH V2 0/6] Fixes to get oe-core building Khem Raj
                   ` (5 preceding siblings ...)
  2011-03-02  8:37 ` [PATCH v2 6/7] gcc: Statically link in support libraries e.g. libmpfr libgmp etc Khem Raj
@ 2011-03-02  8:37 ` Khem Raj
  2011-03-02 22:23   ` Tom Rini
  6 siblings, 1 reply; 17+ messages in thread
From: Khem Raj @ 2011-03-02  8:37 UTC (permalink / raw)
  To: openembedded-core

* Now qemu can handle lower values we can chnage this sanity test
  to check of values if less than 65536

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/classes/sanity.bbclass |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 13940f8..4fba852 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -171,8 +171,8 @@ def check_sanity(e):
         try:
             if os.path.exists("/proc/sys/vm/mmap_min_addr"):
                 f = file("/proc/sys/vm/mmap_min_addr", "r")
-                if (f.read().strip() != "0"):
-                        messages = messages + "/proc/sys/vm/mmap_min_addr is not 0. This will cause problems with qemu so please fix the value (as root).\n\nTo fix this in later reboots, set vm.mmap_min_addr = 0 in /etc/sysctl.conf.\n"
+                if (int(f.read().strip()) < 65536):
+                        messages = messages + "/proc/sys/vm/mmap_min_addr is not >= 65536. This will cause problems with qemu so please fix the value (as root).\n\nTo fix this in later reboots, set vm.mmap_min_addr = 65536 in /etc/sysctl.conf.\n"
                 f.close()
         except:
             pass
-- 
1.7.4.1




^ permalink raw reply related	[flat|nested] 17+ messages in thread

* Re: [PATCH v2 1/7] sqlite3: Update version 3.7.3 -> 3.7.5
  2011-03-02  8:37 ` [PATCH v2 1/7] sqlite3: Update version 3.7.3 -> 3.7.5 Khem Raj
@ 2011-03-02  8:56   ` Koen Kooi
  2011-03-02 20:35     ` Khem Raj
  2011-03-02  9:48   ` Richard Purdie
  2011-03-02 14:28   ` Mark Hatle
  2 siblings, 1 reply; 17+ messages in thread
From: Koen Kooi @ 2011-03-02  8:56 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer


Op 2 mrt 2011, om 09:37 heeft Khem Raj het volgende geschreven:

> * Imported from OE commit a2c3af2d608b1b713018d688b00e03873a538993
> * native version of 3.7.3 does not build
> 
> 
> +
> +#do_compile_prepend() {
> +#        oe_runmake sqlite3.h
> +#        install -m 0644 sqlite3.h ${STAGING_INCDIR}
> +#}

Is that hunk needed? Looks OK otherwise



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH v2 1/7] sqlite3: Update version 3.7.3 -> 3.7.5
  2011-03-02  8:37 ` [PATCH v2 1/7] sqlite3: Update version 3.7.3 -> 3.7.5 Khem Raj
  2011-03-02  8:56   ` Koen Kooi
@ 2011-03-02  9:48   ` Richard Purdie
  2011-03-02 14:28   ` Mark Hatle
  2 siblings, 0 replies; 17+ messages in thread
From: Richard Purdie @ 2011-03-02  9:48 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Wed, 2011-03-02 at 00:37 -0800, Khem Raj wrote:
> diff --git a/meta/recipes-support/sqlite/sqlite3.inc b/meta/recipes-support/sqlite/sqlite3.inc
> index 92c4930..a5e6782 100644
> --- a/meta/recipes-support/sqlite/sqlite3.inc
> +++ b/meta/recipes-support/sqlite/sqlite3.inc
> @@ -3,7 +3,7 @@ HOMEPAGE = "http://www.sqlite.org"
>  SECTION = "libs"
>  PRIORITY = "optional"
>  DEPENDS = "readline ncurses tcl-native"
> -DEPENDS_virtclass-native = "tcl-native"
> +DEPENDS_virtclass-native = "tcl-native ncurses-native"
>  LICENSE = "PD"

This missing DEPENDS entry is deliberate since it increases the
bootstrap time for pseudo-native yet sqlite works fine without curses
support.

I assume some kind of failure triggered this update, what was it?

Cheers,

Richard




^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH v2 1/7] sqlite3: Update version 3.7.3 -> 3.7.5
  2011-03-02  8:37 ` [PATCH v2 1/7] sqlite3: Update version 3.7.3 -> 3.7.5 Khem Raj
  2011-03-02  8:56   ` Koen Kooi
  2011-03-02  9:48   ` Richard Purdie
@ 2011-03-02 14:28   ` Mark Hatle
  2011-03-02 20:41     ` Khem Raj
                       ` (2 more replies)
  2 siblings, 3 replies; 17+ messages in thread
From: Mark Hatle @ 2011-03-02 14:28 UTC (permalink / raw)
  To: openembedded-core

On 3/2/11 2:37 AM, Khem Raj wrote:
> * Imported from OE commit a2c3af2d608b1b713018d688b00e03873a538993
> * native version of 3.7.3 does not build
> 
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
>  meta/recipes-support/sqlite/sqlite3.inc      |    7 ++++++-
>  meta/recipes-support/sqlite/sqlite3_3.7.3.bb |    8 --------
>  meta/recipes-support/sqlite/sqlite3_3.7.5.bb |   10 ++++++++++
>  3 files changed, 16 insertions(+), 9 deletions(-)
>  delete mode 100644 meta/recipes-support/sqlite/sqlite3_3.7.3.bb
>  create mode 100644 meta/recipes-support/sqlite/sqlite3_3.7.5.bb
> 
> diff --git a/meta/recipes-support/sqlite/sqlite3.inc b/meta/recipes-support/sqlite/sqlite3.inc
> index 92c4930..a5e6782 100644
> --- a/meta/recipes-support/sqlite/sqlite3.inc
> +++ b/meta/recipes-support/sqlite/sqlite3.inc
> @@ -3,7 +3,7 @@ HOMEPAGE = "http://www.sqlite.org"
>  SECTION = "libs"
>  PRIORITY = "optional"
>  DEPENDS = "readline ncurses tcl-native"
> -DEPENDS_virtclass-native = "tcl-native"
> +DEPENDS_virtclass-native = "tcl-native ncurses-native"
>  LICENSE = "PD"

Sorry, I didn't notice this before either.  Is ncurses-native and tcl-native
actually needed here?

From what I understand of sqlite, the ncurses is only used when readline is
used.  Readline during a virtclass-native build is disabled in the sqlite3.inc
file.  (Similarly tcl is also disabled in the sqlite3.inc file.)


>  SRC_URI = "http://www.sqlite.org/sqlite-${PV}.tar.gz \
> @@ -32,3 +32,8 @@ FILES_lib${PN}-doc = "${docdir} ${mandir} ${infodir}"
>  AUTO_LIBNAME_PKGS = "lib${PN}"
>  
>  BBCLASSEXTEND = "native nativesdk"
> +
> +#do_compile_prepend() {
> +#        oe_runmake sqlite3.h
> +#        install -m 0644 sqlite3.h ${STAGING_INCDIR}
> +#}

Any reason to keep this, or can we just remove the code?

> diff --git a/meta/recipes-support/sqlite/sqlite3_3.7.3.bb b/meta/recipes-support/sqlite/sqlite3_3.7.3.bb
> deleted file mode 100644
> index 7296aba..0000000
> --- a/meta/recipes-support/sqlite/sqlite3_3.7.3.bb
> +++ /dev/null
> @@ -1,8 +0,0 @@
> -require sqlite3.inc
> -
> -LIC_FILES_CHKSUM = "file://src/main.c;endline=16;md5=86c9b824e9d68f8a26343a4b57f6d85a"
> -
> -PR = "r1"
> -
> -SRC_URI[md5sum] = "5437978aae90350cf984993091e0d695"
> -SRC_URI[sha256sum] = "dbf352e8fbb74829f5e7a88f9f6ceeb80a709537f668c36e4b6cdfb271309ef6"
> diff --git a/meta/recipes-support/sqlite/sqlite3_3.7.5.bb b/meta/recipes-support/sqlite/sqlite3_3.7.5.bb
> new file mode 100644
> index 0000000..212d9e2
> --- /dev/null
> +++ b/meta/recipes-support/sqlite/sqlite3_3.7.5.bb
> @@ -0,0 +1,10 @@
> +require sqlite3.inc
> +
> +LIC_FILES_CHKSUM = "file://sqlite3.c;endline=19;md5=c1b8048b783961c3ba387c43fd955dc6"
> +
> +SRC_URI = "http://www.sqlite.org/sqlite-autoconf-3070500.tar.gz"
> +S = "${WORKDIR}/sqlite-autoconf-3070500"
> +PR = "r0"
> +
> +SRC_URI[md5sum] = "a9604a82613ade2e7f4c303f233e477f"                                                 
> +SRC_URI[sha256sum] = "cb5b86926ec9f65882b2dddd244f2d620337d911ec73411863f77e48cf6a2f94"              




^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH v2 1/7] sqlite3: Update version 3.7.3 -> 3.7.5
  2011-03-02  8:56   ` Koen Kooi
@ 2011-03-02 20:35     ` Khem Raj
  0 siblings, 0 replies; 17+ messages in thread
From: Khem Raj @ 2011-03-02 20:35 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer; +Cc: Koen Kooi

On Wed, Mar 2, 2011 at 12:56 AM, Koen Kooi <koen@dominion.thruhere.net> wrote:
>
> Op 2 mrt 2011, om 09:37 heeft Khem Raj het volgende geschreven:
>
>> * Imported from OE commit a2c3af2d608b1b713018d688b00e03873a538993
>> * native version of 3.7.3 does not build
>>
>>
>> +
>> +#do_compile_prepend() {
>> +#        oe_runmake sqlite3.h
>> +#        install -m 0644 sqlite3.h ${STAGING_INCDIR}
>> +#}
>
> Is that hunk needed? Looks OK otherwise
>

No. its a lelftout will remove

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



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH v2 1/7] sqlite3: Update version 3.7.3 -> 3.7.5
  2011-03-02 14:28   ` Mark Hatle
@ 2011-03-02 20:41     ` Khem Raj
  2011-03-02 22:14     ` Tom Rini
  2011-03-03  5:29     ` Khem Raj
  2 siblings, 0 replies; 17+ messages in thread
From: Khem Raj @ 2011-03-02 20:41 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Wed, Mar 2, 2011 at 6:28 AM, Mark Hatle <mark.hatle@windriver.com> wrote:
> On 3/2/11 2:37 AM, Khem Raj wrote:
>> * Imported from OE commit a2c3af2d608b1b713018d688b00e03873a538993
>> * native version of 3.7.3 does not build
>>
>> Signed-off-by: Khem Raj <raj.khem@gmail.com>
>> ---
>>  meta/recipes-support/sqlite/sqlite3.inc      |    7 ++++++-
>>  meta/recipes-support/sqlite/sqlite3_3.7.3.bb |    8 --------
>>  meta/recipes-support/sqlite/sqlite3_3.7.5.bb |   10 ++++++++++
>>  3 files changed, 16 insertions(+), 9 deletions(-)
>>  delete mode 100644 meta/recipes-support/sqlite/sqlite3_3.7.3.bb
>>  create mode 100644 meta/recipes-support/sqlite/sqlite3_3.7.5.bb
>>
>> diff --git a/meta/recipes-support/sqlite/sqlite3.inc b/meta/recipes-support/sqlite/sqlite3.inc
>> index 92c4930..a5e6782 100644
>> --- a/meta/recipes-support/sqlite/sqlite3.inc
>> +++ b/meta/recipes-support/sqlite/sqlite3.inc
>> @@ -3,7 +3,7 @@ HOMEPAGE = "http://www.sqlite.org"
>>  SECTION = "libs"
>>  PRIORITY = "optional"
>>  DEPENDS = "readline ncurses tcl-native"
>> -DEPENDS_virtclass-native = "tcl-native"
>> +DEPENDS_virtclass-native = "tcl-native ncurses-native"
>>  LICENSE = "PD"
>
> Sorry, I didn't notice this before either.  Is ncurses-native and tcl-native
> actually needed here?
>
> From what I understand of sqlite, the ncurses is only used when readline is
> used.  Readline during a virtclass-native build is disabled in the sqlite3.inc
> file.  (Similarly tcl is also disabled in the sqlite3.inc file.)

I think its probably not needed. In my first build it could not find
ncurses shared library
to link in.  Now why it was looking for despite what you say I dont
know but I dont have
ncurses installed on host and I use no ASSUME_PROVIDED so whatever it needs has
to come from either native sysroot or from build host

my fallout were also related to having a trailing '/' in TMPDIR

TMPDIR = /scratch/oe and
TMPDIR = /scratch/oe/

are VERY different if I have the latter nothing works ORIGIN gets
wrong relative paths
and no binary from buildhost works this is also seen before

http://www.mail-archive.com/angstrom-distro-devel@linuxtogo.org/msg02922.html

but it may not be related to this thread but is something to solve
habing a trailing / should be a no op
>
>
>>  SRC_URI = "http://www.sqlite.org/sqlite-${PV}.tar.gz \
>> @@ -32,3 +32,8 @@ FILES_lib${PN}-doc = "${docdir} ${mandir} ${infodir}"
>>  AUTO_LIBNAME_PKGS = "lib${PN}"
>>
>>  BBCLASSEXTEND = "native nativesdk"
>> +
>> +#do_compile_prepend() {
>> +#        oe_runmake sqlite3.h
>> +#        install -m 0644 sqlite3.h ${STAGING_INCDIR}
>> +#}
>
> Any reason to keep this, or can we just remove the code?
>
>> diff --git a/meta/recipes-support/sqlite/sqlite3_3.7.3.bb b/meta/recipes-support/sqlite/sqlite3_3.7.3.bb
>> deleted file mode 100644
>> index 7296aba..0000000
>> --- a/meta/recipes-support/sqlite/sqlite3_3.7.3.bb
>> +++ /dev/null
>> @@ -1,8 +0,0 @@
>> -require sqlite3.inc
>> -
>> -LIC_FILES_CHKSUM = "file://src/main.c;endline=16;md5=86c9b824e9d68f8a26343a4b57f6d85a"
>> -
>> -PR = "r1"
>> -
>> -SRC_URI[md5sum] = "5437978aae90350cf984993091e0d695"
>> -SRC_URI[sha256sum] = "dbf352e8fbb74829f5e7a88f9f6ceeb80a709537f668c36e4b6cdfb271309ef6"
>> diff --git a/meta/recipes-support/sqlite/sqlite3_3.7.5.bb b/meta/recipes-support/sqlite/sqlite3_3.7.5.bb
>> new file mode 100644
>> index 0000000..212d9e2
>> --- /dev/null
>> +++ b/meta/recipes-support/sqlite/sqlite3_3.7.5.bb
>> @@ -0,0 +1,10 @@
>> +require sqlite3.inc
>> +
>> +LIC_FILES_CHKSUM = "file://sqlite3.c;endline=19;md5=c1b8048b783961c3ba387c43fd955dc6"
>> +
>> +SRC_URI = "http://www.sqlite.org/sqlite-autoconf-3070500.tar.gz"
>> +S = "${WORKDIR}/sqlite-autoconf-3070500"
>> +PR = "r0"
>> +
>> +SRC_URI[md5sum] = "a9604a82613ade2e7f4c303f233e477f"
>> +SRC_URI[sha256sum] = "cb5b86926ec9f65882b2dddd244f2d620337d911ec73411863f77e48cf6a2f94"
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH v2 1/7] sqlite3: Update version 3.7.3 -> 3.7.5
  2011-03-02 14:28   ` Mark Hatle
  2011-03-02 20:41     ` Khem Raj
@ 2011-03-02 22:14     ` Tom Rini
  2011-03-03  5:29     ` Khem Raj
  2 siblings, 0 replies; 17+ messages in thread
From: Tom Rini @ 2011-03-02 22:14 UTC (permalink / raw)
  To: openembedded-core

On 03/02/2011 07:28 AM, Mark Hatle wrote:
> On 3/2/11 2:37 AM, Khem Raj wrote:
>> * Imported from OE commit a2c3af2d608b1b713018d688b00e03873a538993
>> * native version of 3.7.3 does not build
>>
>> Signed-off-by: Khem Raj<raj.khem@gmail.com>
>> ---
>>   meta/recipes-support/sqlite/sqlite3.inc      |    7 ++++++-
>>   meta/recipes-support/sqlite/sqlite3_3.7.3.bb |    8 --------
>>   meta/recipes-support/sqlite/sqlite3_3.7.5.bb |   10 ++++++++++
>>   3 files changed, 16 insertions(+), 9 deletions(-)
>>   delete mode 100644 meta/recipes-support/sqlite/sqlite3_3.7.3.bb
>>   create mode 100644 meta/recipes-support/sqlite/sqlite3_3.7.5.bb
>>
>> diff --git a/meta/recipes-support/sqlite/sqlite3.inc b/meta/recipes-support/sqlite/sqlite3.inc
>> index 92c4930..a5e6782 100644
>> --- a/meta/recipes-support/sqlite/sqlite3.inc
>> +++ b/meta/recipes-support/sqlite/sqlite3.inc
>> @@ -3,7 +3,7 @@ HOMEPAGE = "http://www.sqlite.org"
>>   SECTION = "libs"
>>   PRIORITY = "optional"
>>   DEPENDS = "readline ncurses tcl-native"
>> -DEPENDS_virtclass-native = "tcl-native"
>> +DEPENDS_virtclass-native = "tcl-native ncurses-native"
>>   LICENSE = "PD"
>
> Sorry, I didn't notice this before either.  Is ncurses-native and tcl-native
> actually needed here?

tcl-native is required to build sqlite3 (target or native) as the build 
process itself uses tclsh to generate certain files.  I looked into this 
mid last month as part of a2c3af2d608b1b713018d688b00e03873a538993 in 
oe.dev (where I added readline/ncurses-native as they were in some but 
not all recipes).

-- 
Tom Rini
Mentor Graphics Corporation



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH v2 7/7] sanity.bbclass: Check for /proc/sys/vm/mmap_min_addr to be >= 65536
  2011-03-02  8:37 ` [PATCH v2 7/7] sanity.bbclass: Check for /proc/sys/vm/mmap_min_addr to be >= 65536 Khem Raj
@ 2011-03-02 22:23   ` Tom Rini
  2011-03-02 23:21     ` Khem Raj
  0 siblings, 1 reply; 17+ messages in thread
From: Tom Rini @ 2011-03-02 22:23 UTC (permalink / raw)
  To: openembedded-core

On 03/02/2011 01:37 AM, Khem Raj wrote:
> * Now qemu can handle lower values we can chnage this sanity test
>    to check of values if less than 65536
>
> Signed-off-by: Khem Raj<raj.khem@gmail.com>
> ---
>   meta/classes/sanity.bbclass |    4 ++--
>   1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
> index 13940f8..4fba852 100644
> --- a/meta/classes/sanity.bbclass
> +++ b/meta/classes/sanity.bbclass
> @@ -171,8 +171,8 @@ def check_sanity(e):
>           try:
>               if os.path.exists("/proc/sys/vm/mmap_min_addr"):
>                   f = file("/proc/sys/vm/mmap_min_addr", "r")
> -                if (f.read().strip() != "0"):
> -                        messages = messages + "/proc/sys/vm/mmap_min_addr is not 0. This will cause problems with qemu so please fix the value (as root).\n\nTo fix this in later reboots, set vm.mmap_min_addr = 0 in /etc/sysctl.conf.\n"
> +                if (int(f.read().strip())<  65536):
> +                        messages = messages + "/proc/sys/vm/mmap_min_addr is not>= 65536. This will cause problems with qemu so please fix the value (as root).\n\nTo fix this in later reboots, set vm.mmap_min_addr = 65536 in /etc/sysctl.conf.\n"
>                   f.close()
>           except:
>               pass

Does this work or fail in the case where the file is unreadable?  IIRC 
that's the case in certain cases.

-- 
Tom Rini
Mentor Graphics Corporation



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH v2 7/7] sanity.bbclass: Check for /proc/sys/vm/mmap_min_addr to be >= 65536
  2011-03-02 22:23   ` Tom Rini
@ 2011-03-02 23:21     ` Khem Raj
  0 siblings, 0 replies; 17+ messages in thread
From: Khem Raj @ 2011-03-02 23:21 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Wed, Mar 2, 2011 at 2:23 PM, Tom Rini <tom_rini@mentor.com> wrote:
> On 03/02/2011 01:37 AM, Khem Raj wrote:
>>
>> * Now qemu can handle lower values we can chnage this sanity test
>>   to check of values if less than 65536
>>
>> Signed-off-by: Khem Raj<raj.khem@gmail.com>
>> ---
>>  meta/classes/sanity.bbclass |    4 ++--
>>  1 files changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
>> index 13940f8..4fba852 100644
>> --- a/meta/classes/sanity.bbclass
>> +++ b/meta/classes/sanity.bbclass
>> @@ -171,8 +171,8 @@ def check_sanity(e):
>>          try:
>>              if os.path.exists("/proc/sys/vm/mmap_min_addr"):
>>                  f = file("/proc/sys/vm/mmap_min_addr", "r")
>> -                if (f.read().strip() != "0"):
>> -                        messages = messages + "/proc/sys/vm/mmap_min_addr
>> is not 0. This will cause problems with qemu so please fix the value (as
>> root).\n\nTo fix this in later reboots, set vm.mmap_min_addr = 0 in
>> /etc/sysctl.conf.\n"
>> +                if (int(f.read().strip())<  65536):
>> +                        messages = messages + "/proc/sys/vm/mmap_min_addr
>> is not>= 65536. This will cause problems with qemu so please fix the value
>> (as root).\n\nTo fix this in later reboots, set vm.mmap_min_addr = 65536 in
>> /etc/sysctl.conf.\n"
>>                  f.close()
>>          except:
>>              pass
>
> Does this work or fail in the case where the file is unreadable?  IIRC
> that's the case in certain cases.

Did not run into that situation but good point

>
> --
> Tom Rini
> Mentor Graphics Corporation
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH v2 1/7] sqlite3: Update version 3.7.3 -> 3.7.5
  2011-03-02 14:28   ` Mark Hatle
  2011-03-02 20:41     ` Khem Raj
  2011-03-02 22:14     ` Tom Rini
@ 2011-03-03  5:29     ` Khem Raj
  2 siblings, 0 replies; 17+ messages in thread
From: Khem Raj @ 2011-03-03  5:29 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On (02/03/11 08:28), Mark Hatle wrote:
> On 3/2/11 2:37 AM, Khem Raj wrote:
> > * Imported from OE commit a2c3af2d608b1b713018d688b00e03873a538993
> > * native version of 3.7.3 does not build
> > 
> > Signed-off-by: Khem Raj <raj.khem@gmail.com>
> > ---
> >  meta/recipes-support/sqlite/sqlite3.inc      |    7 ++++++-
> >  meta/recipes-support/sqlite/sqlite3_3.7.3.bb |    8 --------
> >  meta/recipes-support/sqlite/sqlite3_3.7.5.bb |   10 ++++++++++
> >  3 files changed, 16 insertions(+), 9 deletions(-)
> >  delete mode 100644 meta/recipes-support/sqlite/sqlite3_3.7.3.bb
> >  create mode 100644 meta/recipes-support/sqlite/sqlite3_3.7.5.bb
> > 
> > diff --git a/meta/recipes-support/sqlite/sqlite3.inc b/meta/recipes-support/sqlite/sqlite3.inc
> > index 92c4930..a5e6782 100644
> > --- a/meta/recipes-support/sqlite/sqlite3.inc
> > +++ b/meta/recipes-support/sqlite/sqlite3.inc
> > @@ -3,7 +3,7 @@ HOMEPAGE = "http://www.sqlite.org"
> >  SECTION = "libs"
> >  PRIORITY = "optional"
> >  DEPENDS = "readline ncurses tcl-native"
> > -DEPENDS_virtclass-native = "tcl-native"
> > +DEPENDS_virtclass-native = "tcl-native ncurses-native"

this hunk is not needed I have verified so I will remove it.



^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2011-03-03  5:30 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-02  8:37 [PATCH V2 0/6] Fixes to get oe-core building Khem Raj
2011-03-02  8:37 ` [PATCH v2 1/7] sqlite3: Update version 3.7.3 -> 3.7.5 Khem Raj
2011-03-02  8:56   ` Koen Kooi
2011-03-02 20:35     ` Khem Raj
2011-03-02  9:48   ` Richard Purdie
2011-03-02 14:28   ` Mark Hatle
2011-03-02 20:41     ` Khem Raj
2011-03-02 22:14     ` Tom Rini
2011-03-03  5:29     ` Khem Raj
2011-03-02  8:37 ` [PATCH v2 2/7] lib/oe/path.py: Use bb.utils.mkdirhier instead of bb.mkdirhier Khem Raj
2011-03-02  8:37 ` [PATCH v2 3/7] linux-libc-headers_2.6.37.2.bb: Add checksums Khem Raj
2011-03-02  8:37 ` [PATCH v2 4/7] distro_tracking_fields.inc: Use 2.6.37.2 instead of 2.6.36 for linux-libc-headers Khem Raj
2011-03-02  8:37 ` [PATCH v2 5/7] qemu-0.13.0: Add patch to avoid mmap_min_addr Khem Raj
2011-03-02  8:37 ` [PATCH v2 6/7] gcc: Statically link in support libraries e.g. libmpfr libgmp etc Khem Raj
2011-03-02  8:37 ` [PATCH v2 7/7] sanity.bbclass: Check for /proc/sys/vm/mmap_min_addr to be >= 65536 Khem Raj
2011-03-02 22:23   ` Tom Rini
2011-03-02 23:21     ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.