Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/6] Fixes to get oe-core building
@ 2011-03-02  1:38 Khem Raj
  2011-03-02  1:38 ` [PATCH 1/6] sqlite3: Update version 3.7.3 -> 3.7.5 Khem Raj
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Khem Raj @ 2011-03-02  1:38 UTC (permalink / raw)
  To: openembedded-core

Hi


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

Thanks

-Khem




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

* [PATCH 1/6] sqlite3: Update version 3.7.3 -> 3.7.5
  2011-03-02  1:38 [PATCH 0/6] Fixes to get oe-core building Khem Raj
@ 2011-03-02  1:38 ` Khem Raj
  2011-03-02  1:48   ` Mark Hatle
  2011-03-02  1:38 ` [PATCH 2/6] lib/oe/path.py: Use bb.utils.mkdirhier instead of bb.mkdirhier Khem Raj
                   ` (4 subsequent siblings)
  5 siblings, 1 reply; 11+ messages in thread
From: Khem Raj @ 2011-03-02  1:38 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..30808a4 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] 11+ messages in thread

* [PATCH 2/6] lib/oe/path.py: Use bb.utils.mkdirhier instead of bb.mkdirhier
  2011-03-02  1:38 [PATCH 0/6] Fixes to get oe-core building Khem Raj
  2011-03-02  1:38 ` [PATCH 1/6] sqlite3: Update version 3.7.3 -> 3.7.5 Khem Raj
@ 2011-03-02  1:38 ` Khem Raj
  2011-03-02  1:38 ` [PATCH 3/6] linux-libc-headers_2.6.37.2.bb: Add checksums Khem Raj
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 11+ messages in thread
From: Khem Raj @ 2011-03-02  1:38 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] 11+ messages in thread

* [PATCH 3/6] linux-libc-headers_2.6.37.2.bb: Add checksums
  2011-03-02  1:38 [PATCH 0/6] Fixes to get oe-core building Khem Raj
  2011-03-02  1:38 ` [PATCH 1/6] sqlite3: Update version 3.7.3 -> 3.7.5 Khem Raj
  2011-03-02  1:38 ` [PATCH 2/6] lib/oe/path.py: Use bb.utils.mkdirhier instead of bb.mkdirhier Khem Raj
@ 2011-03-02  1:38 ` Khem Raj
  2011-03-02  1:38 ` [PATCH 4/6] distro_tracking_fields.inc: Use 2.6.37.2 instead of 2.6.36 for linux-libc-headers Khem Raj
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 11+ messages in thread
From: Khem Raj @ 2011-03-02  1:38 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] 11+ messages in thread

* [PATCH 4/6] distro_tracking_fields.inc: Use 2.6.37.2 instead of 2.6.36 for linux-libc-headers
  2011-03-02  1:38 [PATCH 0/6] Fixes to get oe-core building Khem Raj
                   ` (2 preceding siblings ...)
  2011-03-02  1:38 ` [PATCH 3/6] linux-libc-headers_2.6.37.2.bb: Add checksums Khem Raj
@ 2011-03-02  1:38 ` Khem Raj
  2011-03-02  1:38 ` [PATCH 5/6] qemu-0.13.0: Add patch to avoid mmap_min_addr Khem Raj
  2011-03-02  1:38 ` [PATCH 6/6] sanity.bbclass: Check for mmap_min_addr can be safely removed Khem Raj
  5 siblings, 0 replies; 11+ messages in thread
From: Khem Raj @ 2011-03-02  1:38 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] 11+ messages in thread

* [PATCH 5/6] qemu-0.13.0: Add patch to avoid mmap_min_addr
  2011-03-02  1:38 [PATCH 0/6] Fixes to get oe-core building Khem Raj
                   ` (3 preceding siblings ...)
  2011-03-02  1:38 ` [PATCH 4/6] distro_tracking_fields.inc: Use 2.6.37.2 instead of 2.6.36 for linux-libc-headers Khem Raj
@ 2011-03-02  1:38 ` Khem Raj
  2011-03-02  1:38 ` [PATCH 6/6] sanity.bbclass: Check for mmap_min_addr can be safely removed Khem Raj
  5 siblings, 0 replies; 11+ messages in thread
From: Khem Raj @ 2011-03-02  1:38 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] 11+ messages in thread

* [PATCH 6/6] sanity.bbclass: Check for mmap_min_addr can be safely removed
  2011-03-02  1:38 [PATCH 0/6] Fixes to get oe-core building Khem Raj
                   ` (4 preceding siblings ...)
  2011-03-02  1:38 ` [PATCH 5/6] qemu-0.13.0: Add patch to avoid mmap_min_addr Khem Raj
@ 2011-03-02  1:38 ` Khem Raj
  2011-03-02  1:47   ` Mark Hatle
  5 siblings, 1 reply; 11+ messages in thread
From: Khem Raj @ 2011-03-02  1:38 UTC (permalink / raw)
  To: openembedded-core

* QEMU is already patch to take care of it

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

diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 13940f8..2af6f4b 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -166,17 +166,6 @@ def check_sanity(e):
     if "." in data.getVar('PATH', e.data, True).split(":"):
         messages = messages + "PATH contains '.' which will break the build, please remove this"
 
-    if data.getVar('TARGET_ARCH', e.data, True) == "arm":
-        # This path is no longer user-readable in modern (very recent) Linux
-        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"
-                f.close()
-        except:
-            pass
-
     for util in required_utilities.split():
         if not check_app_exists( util, e.data ):
             missing = missing + "%s," % util
-- 
1.7.4.1




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

* Re: [PATCH 6/6] sanity.bbclass: Check for mmap_min_addr can be safely removed
  2011-03-02  1:38 ` [PATCH 6/6] sanity.bbclass: Check for mmap_min_addr can be safely removed Khem Raj
@ 2011-03-02  1:47   ` Mark Hatle
  2011-03-02  7:43     ` Khem Raj
  0 siblings, 1 reply; 11+ messages in thread
From: Mark Hatle @ 2011-03-02  1:47 UTC (permalink / raw)
  To: openembedded-core

If we set the value to 65536 in the other patch, I'd prefer this check remain
and check for 65536 instead.  (Or change the check to show that it has a high
probability of working.)

--Mark

On 3/1/11 7:38 PM, Khem Raj wrote:
> * QEMU is already patch to take care of it
> 
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
>  meta/classes/sanity.bbclass |   11 -----------
>  1 files changed, 0 insertions(+), 11 deletions(-)
> 
> diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
> index 13940f8..2af6f4b 100644
> --- a/meta/classes/sanity.bbclass
> +++ b/meta/classes/sanity.bbclass
> @@ -166,17 +166,6 @@ def check_sanity(e):
>      if "." in data.getVar('PATH', e.data, True).split(":"):
>          messages = messages + "PATH contains '.' which will break the build, please remove this"
>  
> -    if data.getVar('TARGET_ARCH', e.data, True) == "arm":
> -        # This path is no longer user-readable in modern (very recent) Linux
> -        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"
> -                f.close()
> -        except:
> -            pass
> -
>      for util in required_utilities.split():
>          if not check_app_exists( util, e.data ):
>              missing = missing + "%s," % util




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

* Re: [PATCH 1/6] sqlite3: Update version 3.7.3 -> 3.7.5
  2011-03-02  1:38 ` [PATCH 1/6] sqlite3: Update version 3.7.3 -> 3.7.5 Khem Raj
@ 2011-03-02  1:48   ` Mark Hatle
  2011-03-02  7:48     ` Khem Raj
  0 siblings, 1 reply; 11+ messages in thread
From: Mark Hatle @ 2011-03-02  1:48 UTC (permalink / raw)
  To: openembedded-core

On 3/1/11 7:38 PM, 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..30808a4 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}
> +}

Why is the above chunk needed?  This looks like an error to me if sqlite doesn't
use it's own sqlite3.h from the build directory vs the INCDIR.

(or should this actually be do_install_prepend as well?)

--Mark

> 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] 11+ messages in thread

* Re: [PATCH 6/6] sanity.bbclass: Check for mmap_min_addr can be safely removed
  2011-03-02  1:47   ` Mark Hatle
@ 2011-03-02  7:43     ` Khem Raj
  0 siblings, 0 replies; 11+ messages in thread
From: Khem Raj @ 2011-03-02  7:43 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Tue, Mar 1, 2011 at 5:47 PM, Mark Hatle <mark.hatle@windriver.com> wrote:
> If we set the value to 65536 in the other patch, I'd prefer this check remain
> and check for 65536 instead.  (Or change the check to show that it has a high
> probability of working.)

Yes its a better option I will redo this patch.

>
> --Mark
>
> On 3/1/11 7:38 PM, Khem Raj wrote:
>> * QEMU is already patch to take care of it
>>
>> Signed-off-by: Khem Raj <raj.khem@gmail.com>
>> ---
>>  meta/classes/sanity.bbclass |   11 -----------
>>  1 files changed, 0 insertions(+), 11 deletions(-)
>>
>> diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
>> index 13940f8..2af6f4b 100644
>> --- a/meta/classes/sanity.bbclass
>> +++ b/meta/classes/sanity.bbclass
>> @@ -166,17 +166,6 @@ def check_sanity(e):
>>      if "." in data.getVar('PATH', e.data, True).split(":"):
>>          messages = messages + "PATH contains '.' which will break the build, please remove this"
>>
>> -    if data.getVar('TARGET_ARCH', e.data, True) == "arm":
>> -        # This path is no longer user-readable in modern (very recent) Linux
>> -        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"
>> -                f.close()
>> -        except:
>> -            pass
>> -
>>      for util in required_utilities.split():
>>          if not check_app_exists( util, e.data ):
>>              missing = missing + "%s," % util
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>



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

* Re: [PATCH 1/6] sqlite3: Update version 3.7.3 -> 3.7.5
  2011-03-02  1:48   ` Mark Hatle
@ 2011-03-02  7:48     ` Khem Raj
  0 siblings, 0 replies; 11+ messages in thread
From: Khem Raj @ 2011-03-02  7:48 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Tue, Mar 1, 2011 at 5:48 PM, Mark Hatle <mark.hatle@windriver.com> wrote:
> On 3/1/11 7:38 PM, 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..30808a4 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}
>> +}
>
> Why is the above chunk needed?  This looks like an error to me if sqlite doesn't
> use it's own sqlite3.h from the build directory vs the INCDIR.
>
> (or should this actually be do_install_prepend as well?)

Nice you pointed it out. This do_compile_prepend is not required
infact. I will remove this hunk

>
> --Mark
>
>> 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] 11+ messages in thread

end of thread, other threads:[~2011-03-02  7:50 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-02  1:38 [PATCH 0/6] Fixes to get oe-core building Khem Raj
2011-03-02  1:38 ` [PATCH 1/6] sqlite3: Update version 3.7.3 -> 3.7.5 Khem Raj
2011-03-02  1:48   ` Mark Hatle
2011-03-02  7:48     ` Khem Raj
2011-03-02  1:38 ` [PATCH 2/6] lib/oe/path.py: Use bb.utils.mkdirhier instead of bb.mkdirhier Khem Raj
2011-03-02  1:38 ` [PATCH 3/6] linux-libc-headers_2.6.37.2.bb: Add checksums Khem Raj
2011-03-02  1:38 ` [PATCH 4/6] distro_tracking_fields.inc: Use 2.6.37.2 instead of 2.6.36 for linux-libc-headers Khem Raj
2011-03-02  1:38 ` [PATCH 5/6] qemu-0.13.0: Add patch to avoid mmap_min_addr Khem Raj
2011-03-02  1:38 ` [PATCH 6/6] sanity.bbclass: Check for mmap_min_addr can be safely removed Khem Raj
2011-03-02  1:47   ` Mark Hatle
2011-03-02  7:43     ` Khem Raj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox