Fixes to get oe-core building
cover Fixes to get oe-core building
Hi
The attached patches are needed to get the OE core to build Please provide feedback
Thanks
-Khem
PATCH 1/6 sqlite3: Update version 3.7.3 -> 3.7.5
* Imported from OE commit a2c3af2d608b1b713018d688b00e03873a538993
* native version of 3.7.3 does not build
--- 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
meta/recipes-support/sqlite/sqlite3.inc +6 -1
@@ -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} +}
meta/recipes-support/sqlite/sqlite3_3.7.3.bb deleted +0 -8
@@ -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"
meta/recipes-support/sqlite/sqlite3_3.7.5.bb new file +10 -0
@@ -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"
Signature · 1 line
1.7.4.1
Re: [PATCH 1/6] sqlite3: Update version 3.7.3 -> 3.7.5
Quoted 26 lines · Khem Raj
* Imported from OE commit
a2c3af2d608b1b713018d688b00e03873a538993
* native version of 3.7.3 does not buildSigned-off-by Khem Raj <[email protected]>--- 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.bbmeta/recipes-support/sqlite/sqlite3.inc +1
-1@@ -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 \
meta/recipes-support/sqlite/sqlite3.inc FILES_lib${PN}-doc = "${docdir} ${mandir} ${infodir}" · line 39
Quoted 8 lines
meta/recipes-support/sqlite/sqlite3.inc +5
-0@@ -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
Quoted 30 lines
meta/recipes-support/sqlite/sqlite3_3.7.3.bb deleted +0
-8@@ -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"meta/recipes-support/sqlite/sqlite3_3.7.5.bb new file +10
-0@@ -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"
Re: [PATCH 1/6] sqlite3: Update version 3.7.3 -> 3.7.5
Quoted 39 lines · Mark Hatle
Quoted 29 lines · Khem Raj
* Imported from OE commit
a2c3af2d608b1b713018d688b00e03873a538993
* native version of 3.7.3 does not buildSigned-off-by Khem Raj <[email protected]>---
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
meta/recipes-support/sqlite/sqlite3.inc +0
-0@@ -3,7 +3,7 @@ HOMEPAGE = "http://www.sqlite.org"SECTION = "libs"
PRIORITY = "optional"
DEPENDS = "readline ncurses tcl-native"meta/recipes-support/sqlite/sqlite3.inc +1
-1-DEPENDS_virtclass-native = "tcl-native" +DEPENDS_virtclass-native = "tcl-native ncurses-native"LICENSE = "PD"
SRC_URI = "http://www.sqlite.org/sqlite-${PV}.tar.gz \
meta/recipes-support/sqlite/sqlite3.inc +0
-0@@ -32,3 +32,8 @@ FILES_lib${PN}-doc = "${docdir} ${mandir} ${infodir}"AUTO_LIBNAME_PKGS = "lib${PN}"
BBCLASSEXTEND = "native nativesdk"
meta/recipes-support/sqlite/sqlite3.inc FILES_lib${PN}-doc = "${docdir} ${mandir} ${infodir}" · line 39
Quoted 5 lines
meta/recipes-support/sqlite/sqlite3.inc +5
-0+ +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.hfrom the build directory vs the INCDIR.
Quoted 1 line
(or should this actually be
do_install_prependas well?)
Nice you pointed it out. This do_compile_prepend is not required infact. I will remove this hunk
Quoted 40 lines
--Mark
Quoted 20 lines
meta/recipes-support/sqlite/sqlite3_3.7.3.bb deleted +0
-8@@ -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"meta/recipes-support/sqlite/sqlite3_3.7.5.bb new file +0
-0meta/recipes-support/sqlite/sqlite3_3.7.5.bb line 10
Quoted 10 lines
meta/recipes-support/sqlite/sqlite3_3.7.5.bb new file +10
-0@@ -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
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
PATCH 2/6 lib/oe/path.py: Use bb.utils.mkdirhier instead of bb.mkdirhier
In reply to Khem Raj--- meta/lib/oe/path.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
meta/lib/oe/path.py +1 -1
@@ -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)
Signature · 1 line
1.7.4.1
PATCH 3/6 linux-libc-headers_2.6.37.2.bb: Add checksums
In reply to Khem Raj--- .../linux-libc-headers_2.6.37.2.bb | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
meta/recipes-kernel/linux-libc-headers/linux-libc-headers_2.6.37.2.bb +2 -0
@@ -45,3 +45,5 @@ do_install() { } BBCLASSEXTEND = "nativesdk" +SRC_URI[md5sum] = "89f681bc7c917a84aa7470da6eed5101" +SRC_URI[sha256sum] = "2920c4cd3e87fe40ebee96d28779091548867e1c36f71c1fc3d07e6d5802161f"
Signature · 1 line
1.7.4.1
PATCH 4/6 distro_tracking_fields.inc: Use 2.6.37.2 instead of 2.6.36 for linux-libc-headers
In reply to Khem Raj--- .../conf/distro/include/distro_tracking_fields.inc | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
meta/conf/distro/include/distro_tracking_fields.inc +3 -3
@@ -2884,9 +2884,9 @@ RECIPE_LAST_UPDATE_pn-libtool = "Nov 8, 2010" RECIPE_MAINTAINER_pn-libtool = "Nitin A Kamble <[email protected]>" 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 <[email protected]>" +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 <[email protected]>" RECIPE_STATUS_pn-lsof="green" RECIPE_LATEST_VERSION_pn-lsof="4.84"
Signature · 1 line
1.7.4.1
PATCH 5/6 qemu-0.13.0: Add patch to avoid mmap_min_addr
In reply to Khem Raj* This patch is taken from OE commit 40e293342ca76921904a43b03b635d9219432edf
--- .../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
meta/recipes-devtools/qemu/qemu-0.13.0/fallback-to-safe-mmap_min_addr.patch new file +37 -0
@@ -0,0 +1,37 @@ +From c313f89c33217ac0e471554dace2144718f86669 Mon Sep 17 00:00:00 2001 +From: Martin Jansa <[email protected]> +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; + } + } +
meta/recipes-devtools/qemu/qemu_0.13.0.bb +4 -2
@@ -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"
Signature · 1 line
1.7.4.1
PATCH 6/6 sanity.bbclass: Check for mmap_min_addr can be safely removed
In reply to Khem Raj* QEMU is already patch to take care of it
--- meta/classes/sanity.bbclass | 11 ----------- 1 files changed, 0 insertions(+), 11 deletions(-)
meta/classes/sanity.bbclass +0 -11
@@ -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
Signature · 1 line
1.7.4.1
Re: [PATCH 6/6] sanity.bbclass: Check for mmap_min_addr can be safely removed
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
Quoted 29 lines · Khem Raj
* QEMU is already patch to take care of it
Signed-off-by Khem Raj <[email protected]>--- meta/classes/sanity.bbclass | 11 ----------- 1 files changed, 0 insertions(+), 11 deletions(-)meta/classes/sanity.bbclass +0
-11@@ -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
Re: [PATCH 6/6] sanity.bbclass: Check for mmap_min_addr can be safely removed
Quoted 3 lines · Mark Hatle
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.
Quoted 40 lines
--Mark
Quoted 15 lines · Khem Raj
* QEMU is already patch to take care of it
Signed-off-by Khem Raj <[email protected]>---
meta/classes/sanity.bbclass | 11 -----------1 files changed, 0 insertions(+), 11 deletions(-)meta/classes/sanity.bbclass +0
-0@@ -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"Quoted 14 lines
- if
data.getVar('TARGET_ARCH', e.data, True)== "arm":
- # This path is no longer user-readable in modern (very recent) Linux
- try:
- ifos.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_addris 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 inrequired_utilities.split():
if notcheck_app_exists( util, e.data ):
missing = missing + "%s," % util_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core