Re: [OE-core] [PATCH v2] python3: add tk support

2018-11-18 Thread Yu, Mingli

Ping.

Thanks,

On 2018年11月14日 17:36, mingli...@windriver.com wrote:

From: Mingli Yu 

Add support to enable tk via PACKAGECONFIG.
before this patch:
  # python3
  Python 3.5.6 (default, Nov  8 2018, 04:53:45)
  [GCC 8.2.0] on linux
  Type "help", "copyright", "credits" or "license" for more information.
  >>> import tkinter
  Traceback (most recent call last):
   File "", line 1, in 
   File "/usr/lib64/python3.5/tkinter/__init__.py", line 35, in 
 import _tkinter # If this fails your Python may not be configured for Tk
  ImportError: No module named '_tkinter'
  >>>

After this patch, if enable tk in PACKAGECONFIG, then
  # python3
  Python 3.5.6 (default, Nov  8 2018, 03:15:52)
  [GCC 8.2.0] on linux
  Type "help", "copyright", "credits" or "license" for more information.
  >>> import tkinter
  >>>

Signed-off-by: Mingli Yu 
---
  meta/recipes-devtools/python/python3-native_3.5.6.bb   | 3 ++-
  meta/recipes-devtools/python/python3/python3-manifest.json | 1 +
  meta/recipes-devtools/python/python3_3.5.6.bb  | 5 +++--
  3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-devtools/python/python3-native_3.5.6.bb 
b/meta/recipes-devtools/python/python3-native_3.5.6.bb
index d5953cf..1e98c03 100644
--- a/meta/recipes-devtools/python/python3-native_3.5.6.bb
+++ b/meta/recipes-devtools/python/python3-native_3.5.6.bb
@@ -12,7 +12,7 @@ file://130-readline-setup.patch \
  file://150-fix-setupterm.patch \
  file://python-3.3-multilib.patch \
  file://03-fix-tkinter-detection.patch \
-file://avoid_warning_about_tkinter.patch \
+${@bb.utils.contains('PACKAGECONFIG', 'tk', '', 
'file://avoid_warning_about_tkinter.patch', d)} \
  file://0001-h2py-Fix-issue-13032-where-it-fails-with-UnicodeDeco.patch \
  file://sysroot-include-headers.patch \
  file://unixccompiler.patch \
@@ -28,6 +28,7 @@ 
file://0003-bpo-32947-Fixes-for-TLS-1.3-and-OpenSSL-1.1.1-GH-876.patch \
  file://0004-bpo-33570-TLS-1.3-ciphers-for-OpenSSL-1.1.1-GH-6976.patch \
  file://0005-bpo-30714-ALPN-changes-for-OpenSSL-1.1.0f-2305.patch \
  "
+PACKAGECONFIG[tk] = ",,tk-native"

  EXTRANATIVEPATH += "bzip2-native"
  DEPENDS = "openssl-native bzip2-replacement-native zlib-native readline-native 
sqlite3-native gdbm-native"
diff --git a/meta/recipes-devtools/python/python3/python3-manifest.json 
b/meta/recipes-devtools/python/python3/python3-manifest.json
index 5329bf7..617256a 100644
--- a/meta/recipes-devtools/python/python3/python3-manifest.json
+++ b/meta/recipes-devtools/python/python3/python3-manifest.json
@@ -1060,6 +1060,7 @@
  "core"
  ],
  "files": [
+"${libdir}/python${PYTHON_MAJMIN}/lib-dynload/_tkinter.*.so",
  "${libdir}/python${PYTHON_MAJMIN}/tkinter"
  ],
  "cached": []
diff --git a/meta/recipes-devtools/python/python3_3.5.6.bb 
b/meta/recipes-devtools/python/python3_3.5.6.bb
index 31f8ead..5c80421 100644
--- a/meta/recipes-devtools/python/python3_3.5.6.bb
+++ b/meta/recipes-devtools/python/python3_3.5.6.bb
@@ -21,7 +21,7 @@ ${DISTRO_SRC_URI} \

  SRC_URI += "\
  file://03-fix-tkinter-detection.patch \
-file://avoid_warning_about_tkinter.patch \
+${@bb.utils.contains('PACKAGECONFIG', 'tk', '', 
'file://avoid_warning_about_tkinter.patch', d)} \
  file://cgi_py.patch \
  file://host_include_contamination.patch \
  file://python-3.3-multilib.patch \
@@ -82,6 +82,7 @@ PACKAGECONFIG ??= "readline 
${@bb.utils.contains('MACHINE_FEATURES', 'qemu-userm
  PACKAGECONFIG[readline] = ",,readline"
  # Use profile guided optimisation by running PyBench inside qemu-user
  PACKAGECONFIG[pgo] = "--enable-optimizations"
+PACKAGECONFIG[tk] = ",,tk"

  do_configure_append() {
rm -f ${S}/Makefile.orig
@@ -246,7 +247,7 @@ PACKAGES += "${PN}-man"
  FILES_${PN}-man = "${datadir}/man"

  RDEPENDS_${PN}-ptest = "${PN}-modules ${PN}-tests unzip bzip2"
-
+RDEPENDS_${PN}-tkinter += "${@bb.utils.contains('PACKAGECONFIG', 'tk', 'tk', '', 
d)}"
  RDEPENDS_${PN}-dev = ""

  BBCLASSEXTEND = "nativesdk"


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


Re: [OE-core] [PATCH v3] python: add tk support

2018-11-18 Thread Yu, Mingli

Ping.

Thanks,

On 2018年11月14日 17:38, mingli...@windriver.com wrote:

From: Mingli Yu 

Add support to enable tk via PACKGECONFIG.
before the patch:
  # python
  Python 2.7.15 (default, Nov  8 2018, 04:53:50)
  [GCC 8.2.0] on linux2
  Type "help", "copyright", "credits" or "license" for more information.
  >>> import Tkinter
  Traceback (most recent call last):
   File "", line 1, in 
   File "/usr/lib64/python2.7/lib-tk/Tkinter.py", line 39, in 
 import _tkinter # If this fails your Python may not be configured for Tk
  ImportError: No module named _tkinter
  >>>

After the patch, if enable tk in PACKGECONFIG, then
  # python
  Python 2.7.15 (default, Oct 25 2018, 08:12:45)
  [GCC 8.2.0] on linux2
  Type "help", "copyright", "credits" or "license" for more information.
  >>> import Tkinter
  >>>

Signed-off-by: Mingli Yu 
---
  meta/recipes-devtools/python/python/python2-manifest.json | 3 ++-
  meta/recipes-devtools/python/python_2.7.15.bb | 5 +++--
  2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-devtools/python/python/python2-manifest.json 
b/meta/recipes-devtools/python/python/python2-manifest.json
index 260fa6f..a9f3924 100644
--- a/meta/recipes-devtools/python/python/python2-manifest.json
+++ b/meta/recipes-devtools/python/python/python2-manifest.json
@@ -966,6 +966,7 @@
  "core"
  ],
  "files": [
+"${libdir}/python${PYTHON_MAJMIN}/lib-dynload/_tkinter.so",
  "${libdir}/python2.7/lib-tk"
  ]
  },
@@ -1043,4 +1044,4 @@
  "${libdir}/python2.7/lib-dynload/zlib.so"
  ]
  }
-}
\ No newline at end of file
+}
diff --git a/meta/recipes-devtools/python/python_2.7.15.bb 
b/meta/recipes-devtools/python/python_2.7.15.bb
index dd969d8..6a60aa7 100644
--- a/meta/recipes-devtools/python/python_2.7.15.bb
+++ b/meta/recipes-devtools/python/python_2.7.15.bb
@@ -21,7 +21,7 @@ SRC_URI += "\
file://setuptweaks.patch \
file://check-if-target-is-64b-not-host.patch \
file://search_db_h_in_inc_dirs_and_avoid_warning.patch \
-  file://avoid_warning_about_tkinter.patch \
+  ${@bb.utils.contains('PACKAGECONFIG', 'tk', '', 
'file://avoid_warning_about_tkinter.patch', d)} \
file://avoid_warning_for_sunos_specific_module.patch \
file://python-2.7.3-remove-bsdb-rpath.patch \
file://run-ptest \
@@ -45,6 +45,7 @@ EXTRA_OECONF += "ac_cv_file__dev_ptmx=yes 
ac_cv_file__dev_ptc=no"

  PACKAGECONFIG ??= "bdb"
  PACKAGECONFIG[bdb] = ",,db"
+PACKAGECONFIG[tk] = ",,tk"

  do_configure_append() {
rm -f ${S}/Makefile.orig
@@ -172,7 +173,7 @@ RDEPENDS_${PN}-modules += "${PN}-misc"

  # ptest
  RDEPENDS_${PN}-ptest = "${PN}-modules ${PN}-tests unzip"
-
+RDEPENDS_${PN}-tkinter += "${@bb.utils.contains('PACKAGECONFIG', 'tk', 'tk', '', 
d)}"
  # catch manpage
  PACKAGES += "${PN}-man"
  FILES_${PN}-man = "${datadir}/man"


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


[OE-core] ✗ patchtest: failure for classes/testsdk: Split implementation into classes (rev2)

2018-11-18 Thread Patchwork
== Series Details ==

Series: classes/testsdk: Split implementation into classes (rev2)
Revision: 2
URL   : https://patchwork.openembedded.org/series/14944/
State : failure

== Summary ==


Thank you for submitting this patch series to OpenEmbedded Core. This is
an automated response. Several tests have been executed on the proposed
series by patchtest resulting in the following failures:



* Issue Series does not apply on top of target branch 
[test_series_merge_on_head] 
  Suggested fixRebase your series on top of targeted branch
  Targeted branch  master (currently at 62fe04c245)



If you believe any of these test results are incorrect, please reply to the
mailing list (openembedded-core@lists.openembedded.org) raising your concerns.
Otherwise we would appreciate you correcting the issues and submitting a new
version of the patchset if applicable. Please ensure you add/increment the
version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
[PATCH v3] -> ...).

---
Guidelines: 
https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe

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


[OE-core] [PATCH v2] classes/testsdk: Split implementation into classes

2018-11-18 Thread Joshua Watt
Splits the SDK test implementation into configurable Python classes. The
classes used for the normal and extensible SDKs are
${TESTSDK_CLASS_NAME} and ${TESTSDKEXT_CLASS_NAME} respectively.

This allows SDK machines to override the classes used to implement the
tests. For the traditional SDK, a common "run()" function is provided by
the class (oeqa.sdk.testsdk.TestSDK), with several hook member functions
that can be overridden in child classes, making it easier to have
consistent behavior. The extensible SDK class
(oeqa.sdkext.testsdk.TestSDKEXT) also has a common "run()" function, but
no hooks have yet been added as there is not currently a known use case
for create derived classes.

[YOCTO #13020]

Signed-off-by: Joshua Watt 
---
 meta/classes/testsdk.bbclass| 227 +++-
 meta/lib/oeqa/sdk/testsdk.py| 141 
 meta/lib/oeqa/sdkext/testsdk.py | 104 +++
 3 files changed, 264 insertions(+), 208 deletions(-)
 create mode 100644 meta/lib/oeqa/sdk/testsdk.py
 create mode 100644 meta/lib/oeqa/sdkext/testsdk.py

diff --git a/meta/classes/testsdk.bbclass b/meta/classes/testsdk.bbclass
index 5b9bf7b2624..f4392337236 100644
--- a/meta/classes/testsdk.bbclass
+++ b/meta/classes/testsdk.bbclass
@@ -14,224 +14,35 @@
 #
 # where "" is an image like core-image-sato.
 
-def get_sdk_configuration(d, test_type):
-import platform
-from oeqa.utils.metadata import get_layers
-configuration = {'TEST_TYPE': test_type,
-'MACHINE': d.getVar("MACHINE"),
-'SDKMACHINE': d.getVar("SDKMACHINE"),
-'IMAGE_BASENAME': d.getVar("IMAGE_BASENAME"),
-'IMAGE_PKGTYPE': d.getVar("IMAGE_PKGTYPE"),
-'STARTTIME': d.getVar("DATETIME"),
-'HOST_DISTRO': 
('-'.join(platform.linux_distribution())).replace(' ', '-'),
-'LAYERS': get_layers(d.getVar("BBLAYERS"))}
-return configuration
-get_sdk_configuration[vardepsexclude] = "DATETIME"
+TESTSDK_CLASS_NAME ?= "oeqa.sdk.testsdk.TestSDK"
+TESTSDKEXT_CLASS_NAME ?= "oeqa.sdkext.testsdk.TestSDKExt"
 
-def get_sdk_json_result_dir(d):
-json_result_dir = os.path.join(d.getVar("LOG_DIR"), 'oeqa')
-custom_json_result_dir = d.getVar("OEQA_JSON_RESULT_DIR")
-if custom_json_result_dir:
-json_result_dir = custom_json_result_dir
-return json_result_dir
+def import_and_run(name, d):
+import importlib
 
-def get_sdk_result_id(configuration):
-return '%s_%s_%s_%s_%s' % (configuration['TEST_TYPE'], 
configuration['IMAGE_BASENAME'], configuration['SDKMACHINE'], 
configuration['MACHINE'], configuration['STARTTIME'])
+class_name = d.getVar(name)
+if class_name:
+module, cls = class_name.rsplit('.', 1)
+m = importlib.import_module(module)
+c = getattr(m, cls)()
+c.run(d)
+else:
+bb.warn('No tests were run because %s did not define a class' % name)
 
-def testsdk_main(d):
-import os
-import subprocess
-import json
-import logging
-
-from bb.utils import export_proxies
-from oeqa.sdk.context import OESDKTestContext, OESDKTestContextExecutor
-from oeqa.utils import make_logger_bitbake_compatible
-
-pn = d.getVar("PN")
-logger = make_logger_bitbake_compatible(logging.getLogger("BitBake"))
-
-# sdk use network for download projects for build
-export_proxies(d)
-
-tcname = d.expand("${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.sh")
-if not os.path.exists(tcname):
-bb.fatal("The toolchain %s is not built. Build it before running the 
tests: 'bitbake  -c populate_sdk' ." % tcname)
-
-tdname = d.expand("${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.testdata.json")
-test_data = json.load(open(tdname, "r"))
-
-target_pkg_manifest = OESDKTestContextExecutor._load_manifest(
-d.expand("${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.target.manifest"))
-host_pkg_manifest = OESDKTestContextExecutor._load_manifest(
-d.expand("${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.host.manifest"))
-
-processes = d.getVar("TESTIMAGE_NUMBER_THREADS") or 
d.getVar("BB_NUMBER_THREADS")
-if processes:
-try:
-import testtools, subunit
-except ImportError:
-bb.warn("Failed to import testtools or subunit, the testcases will 
run serially")
-processes = None
-
-sdk_dir = d.expand("${WORKDIR}/testimage-sdk/")
-bb.utils.remove(sdk_dir, True)
-bb.utils.mkdirhier(sdk_dir)
-try:
-subprocess.check_output("cd %s; %s < -c populate_sdk_ext' ." % tcname)
-
-tdname = d.expand("${SDK_DEPLOY}/${TOOLCHAINEXT_OUTPUTNAME}.testdata.json")
-test_data = json.load(open(tdname, "r"))
-
-target_pkg_manifest = OESDKExtTestContextExecutor._load_manifest(
-d.expand("${SDK_DEPLOY}/${TOOLCHAINEXT_OUTPUTNAME}.target.manifest"))
-host_pkg_manifest = OESDKExtTestContextExecutor._load_manifest(
-d.expand("${SDK_DEPLOY}/${TOOLC

Re: [OE-core] [PATCH] pseudo: fix link of sqlite3 using pkg-config

2018-11-18 Thread Seebs
On Sun, 18 Nov 2018 19:36:46 +0100
Jens Rehsack  wrote:

> + for sqlite_link_opt in $(pkg-config sqlite3 --libs --static)

Ugh, but yeah, I think this is probably needed. I'm a bit concerned
about libsqlite3 ending up with readline included, that really seems
like something that should only be ending up in the sqlite3 binary, not
in the library?

None of this affects client side (libpseudo doesn't get linked
against sqlite3), so it shouldn't cause problems for other programs. So
this looks good to me.

Sorry about the delay in getting to things, I am sorta swamped lately.

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


[OE-core] [PATCH] pseudo: fix link of sqlite3 using pkg-config

2018-11-18 Thread Jens Rehsack
If sqlite3 is built with FTS5 it uses log() from libm, it sqlite3 is built
with READLINE it uses tgetent from a curses lib and readline from libreadline,
if it is built using deflate from libz ... , but all that linkage is lost
if we manually statically link so explicitely extract extra static linking
options from pkg-config and force them into pseudo as well.

This commit obsoletes (so include the implicit revert)
e39fec613d pseudo: fix link with new sqlite3

Signed-off-by: Jens Rehsack 
---
 meta/recipes-devtools/pseudo/files/libm.patch | 33 ---
 meta/recipes-devtools/pseudo/pseudo.inc   | 19 +--
 meta/recipes-devtools/pseudo/pseudo_git.bb|  1 -
 3 files changed, 16 insertions(+), 37 deletions(-)
 delete mode 100644 meta/recipes-devtools/pseudo/files/libm.patch

diff --git a/meta/recipes-devtools/pseudo/files/libm.patch 
b/meta/recipes-devtools/pseudo/files/libm.patch
deleted file mode 100644
index 1a82979313..00
--- a/meta/recipes-devtools/pseudo/files/libm.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-If sqlite3 is built with FTS5 enabled then it links to libm.so for log(), but 
if
-we statically link to libsqlite3.a then this linkage is lost.
-
-Work around this by always linking to libm.so.
-
-Upstream-Status: Submitted
-Signed-off-by: Ross Burton 
-
-From 4633a8750f0966621d258548fba82bc6aa5aa997 Mon Sep 17 00:00:00 2001
-From: Ross Burton 
-Date: Tue, 6 Nov 2018 12:13:17 +
-Subject: [PATCH] Makefile: sqlite can need libm
-

- Makefile.in | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/Makefile.in b/Makefile.in
-index ad6541b..28b5ecb 100644
 a/Makefile.in
-+++ b/Makefile.in
-@@ -73,7 +73,7 @@ WRAPOBJS=pseudo_wrappers.o
- 
- # needed for anything that links with pseduo_client.o, pretty much
- CLIENT_LDFLAGS=-ldl -lpthread
--DB_LDFLAGS=@SQLITE_LDARG@ -lpthread
-+DB_LDFLAGS=@SQLITE_LDARG@ -lpthread -lm
- 
- PSEUDO=$(BIN)/pseudo
- PSEUDODB=$(BIN)/pseudodb
--- 
-2.11.0
-
diff --git a/meta/recipes-devtools/pseudo/pseudo.inc 
b/meta/recipes-devtools/pseudo/pseudo.inc
index cdc2a5823f..8b05735bb1 100644
--- a/meta/recipes-devtools/pseudo/pseudo.inc
+++ b/meta/recipes-devtools/pseudo/pseudo.inc
@@ -17,7 +17,7 @@ PROVIDES += "virtual/fakeroot"
 
 MAKEOPTS = ""
 
-inherit siteinfo
+inherit siteinfo pkgconfig
 
 do_configure () {
:
@@ -30,10 +30,23 @@ PSEUDO_EXTRA_OPTS ?= "--enable-force-async 
--without-passwd-fallback --enable-ep
 
 # Compile for the local machine arch...
 do_compile () {
+SQLITE_LDADD='$(SQLITE)/$(SQLITE_LIB)/libsqlite3.a'
+   for sqlite_link_opt in $(pkg-config sqlite3 --libs --static)
+   do
+   case "$sqlite_link_opt" in
+   -lsqlite3)
+   ;;
+   -l*)
+   SQLITE_LDADD="${SQLITE_LDADD} ${sqlite_link_opt}"
+   ;;
+   *)
+   ;;
+   esac
+   done
if [ "${SITEINFO_BITS}" = "64" ]; then
- ${S}/configure ${PSEUDO_EXTRA_OPTS} --prefix=${prefix} 
--libdir=${prefix}/lib/pseudo/lib${SITEINFO_BITS} --with-sqlite-lib=${baselib} 
--with-sqlite=${STAGING_DIR_TARGET}${exec_prefix} --cflags="${CFLAGS}" 
--bits=${SITEINFO_BITS} --enable-static-sqlite --without-rpath
+ ${S}/configure ${PSEUDO_EXTRA_OPTS} --prefix=${prefix} 
--libdir=${prefix}/lib/pseudo/lib${SITEINFO_BITS} --with-sqlite-lib=${baselib} 
--with-sqlite=${STAGING_DIR_TARGET}${exec_prefix} --cflags="${CFLAGS}" 
--bits=${SITEINFO_BITS} --with-static-sqlite="$SQLITE_LDADD" --without-rpath
else
- ${S}/configure ${PSEUDO_EXTRA_OPTS} --prefix=${prefix} 
--libdir=${prefix}/lib/pseudo/lib --with-sqlite-lib=${baselib} 
--with-sqlite=${STAGING_DIR_TARGET}${exec_prefix} --cflags="${CFLAGS}" 
--bits=${SITEINFO_BITS} --enable-static-sqlite --without-rpath
+ ${S}/configure ${PSEUDO_EXTRA_OPTS} --prefix=${prefix} 
--libdir=${prefix}/lib/pseudo/lib --with-sqlite-lib=${baselib} 
--with-sqlite=${STAGING_DIR_TARGET}${exec_prefix} --cflags="${CFLAGS}" 
--bits=${SITEINFO_BITS} --with-static-sqlite="$SQLITE_LDADD" --without-rpath
fi
oe_runmake ${MAKEOPTS}
 }
diff --git a/meta/recipes-devtools/pseudo/pseudo_git.bb 
b/meta/recipes-devtools/pseudo/pseudo_git.bb
index c9a4ecd2e2..79e0b6bd21 100644
--- a/meta/recipes-devtools/pseudo/pseudo_git.bb
+++ b/meta/recipes-devtools/pseudo/pseudo_git.bb
@@ -2,7 +2,6 @@ require pseudo.inc
 
 SRC_URI = "git://git.yoctoproject.org/pseudo \
file://0001-configure-Prune-PIE-flags.patch \
-   file://libm.patch \
file://fallback-passwd \
file://fallback-group \
file://moreretries.patch \
-- 
2.17.1

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


[OE-core] [PATCH] sqlite3: Update 3.25.2 -> 3.25.3

2018-11-18 Thread Jens Rehsack
Update SQLite3 from 3.25.2 to 3.25.3 to fix following issues:

* Disallow the use of window functions in the recursive part of a CTE.
* Fix the behavior of typeof() and length() on virtual tables.
* Strengthen defenses against deliberately corrupted database files.
* Fix a problem in the query planner that results when a row-value
  expression is used with a PRIMARY KEY with redundant columns.
* Fix the query planner so that it works correctly for IS NOT NULL
  operators in the ON clause of a LEFT JOIN with the
  SQLITE_ENABLE_STAT4 compile-time option.

Also introduce PACKAGECONFIG tunables to enable/disable e.g. index
and search functions to allow shrinking the library for very small
targets.

Signed-off-by: Jens Rehsack 
---
 meta/recipes-support/sqlite/sqlite3.inc   | 12 ++--
 meta/recipes-support/sqlite/sqlite3_3.25.2.bb | 10 --
 meta/recipes-support/sqlite/sqlite3_3.25.3.bb | 10 ++
 3 files changed, 20 insertions(+), 12 deletions(-)
 delete mode 100644 meta/recipes-support/sqlite/sqlite3_3.25.2.bb
 create mode 100644 meta/recipes-support/sqlite/sqlite3_3.25.3.bb

diff --git a/meta/recipes-support/sqlite/sqlite3.inc 
b/meta/recipes-support/sqlite/sqlite3.inc
index 1834867d10..daf3db5e9f 100644
--- a/meta/recipes-support/sqlite/sqlite3.inc
+++ b/meta/recipes-support/sqlite/sqlite3.inc
@@ -21,11 +21,19 @@ CVE_PRODUCT = "sqlite"
 
 inherit autotools pkgconfig
 
-PACKAGECONFIG ?= ""
-PACKAGECONFIG_class-native = ""
+# enable those which are enabled by default in configure
+PACKAGECONFIG ?= "fts4 fts5 json1 rtree dyn_ext"
+PACKAGECONFIG_class-native ?= "fts4 fts5 json1 rtree dyn_ext"
 
 PACKAGECONFIG[editline] = "--enable-editline,--disable-editline,libedit"
 PACKAGECONFIG[readline] = "--enable-readline,--disable-readline,readline 
ncurses"
+PACKAGECONFIG[fts3] = "--enable-fts3,--disable-fts3"
+PACKAGECONFIG[fts4] = "--enable-fts4,--disable-fts4"
+PACKAGECONFIG[fts5] = "--enable-fts5,--disable-fts5"
+PACKAGECONFIG[json1] = "--enable-json1,--disable-json1"
+PACKAGECONFIG[rtree] = "--enable-rtree,--disable-rtree"
+PACKAGECONFIG[session] = "--enable-session,--disable-session"
+PACKAGECONFIG[dyn_ext] = 
"--enable-dynamic-extensions,--disable-dynamic-extensions"
 
 EXTRA_OECONF = " \
 --enable-shared \
diff --git a/meta/recipes-support/sqlite/sqlite3_3.25.2.bb 
b/meta/recipes-support/sqlite/sqlite3_3.25.2.bb
deleted file mode 100644
index 31c9a6f2d2..00
--- a/meta/recipes-support/sqlite/sqlite3_3.25.2.bb
+++ /dev/null
@@ -1,10 +0,0 @@
-require sqlite3.inc
-
-LICENSE = "PD"
-LIC_FILES_CHKSUM = 
"file://sqlite3.h;endline=11;md5=786d3dc581eff03f4fd9e4a77ed00c66"
-
-SRC_URI = "\
-  http://www.sqlite.org/2018/sqlite-autoconf-${SQLITE_PV}.tar.gz \
-  "
-SRC_URI[md5sum] = "bfade31d59f58badc51aeaa6ae26a5de"
-SRC_URI[sha256sum] = 
"da9a1484423d524d3ac793af518cdf870c8255d209e369bd6a193e9f9d0e3181"
diff --git a/meta/recipes-support/sqlite/sqlite3_3.25.3.bb 
b/meta/recipes-support/sqlite/sqlite3_3.25.3.bb
new file mode 100644
index 00..a7cf6d1b81
--- /dev/null
+++ b/meta/recipes-support/sqlite/sqlite3_3.25.3.bb
@@ -0,0 +1,10 @@
+require sqlite3.inc
+
+LICENSE = "PD"
+LIC_FILES_CHKSUM = 
"file://sqlite3.h;endline=11;md5=786d3dc581eff03f4fd9e4a77ed00c66"
+
+SRC_URI = "\
+  http://www.sqlite.org/2018/sqlite-autoconf-${SQLITE_PV}.tar.gz \
+  "
+SRC_URI[md5sum] = "06db8206bc8febf07141b78ad58595ea"
+SRC_URI[sha256sum] = 
"00ebf97be13928941940cc71de3d67e9f852698233cd98ce2d178fd08092f3dd"
-- 
2.17.1

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


Re: [OE-core] [PATCH] python3{,-native}: update to 3.7.1

2018-11-18 Thread Jens Rehsack


> Am 18.11.2018 um 11:36 schrieb Jens Rehsack :
> 
> That's something I can try to investigate.
> 
>> Am 14.11.2018 um 11:47 schrieb Burton, Ross > >:
>> 
>> Getting reports that this breaks cross builds, for example python3-dbus.
>> 
>> tmp-glibc/work/cortexa7hf-neon-vfpv4-oe-linux-gnueabi/python3-dbus/1.2.6-r0/recipe-sysroot-native/usr/lib/libpython3.7m.so
>>  : file not recognized: File format not recognized
>> With 3.5.6 the python3-dbus do_configure lokks like 
>> "-L/home/dev/medusa/build/yocto/build/tmp-glibc/work/cortexa7hf-neon-vfpv4-oe-linux-gnueabi/python3-dbus/1.2.6-r0/recipe-sysroot/usr/lib
>>  -lpython3.5m"
>> With the patch 3.7.1 from the ml, it looks like 
>> "L/home/dev/medusa-test/build/yocto/build/tmp-glibc/work/cortexa7hf-neon-vfpv4-oe-linux-gnueabi/python3-dbus/1.2.6-r0/recipe-sysroot-native/usr/lib
>>  -lpython3.7m"
>> 
>> Looks like the cross/sysconfig/etc code regressed and it's picking up the 
>> native sysroot libraries for a cross build.

Indeed.
It's because of 
https://github.com/python/cpython/commit/409482251b06fe75c4ee56e85ffbb4b23d934159
 

 and work based on that.

In Python 3.5 above patch was applied to target version only, python3-native 
used the old method for getting vars relying on Makefile and config.h parsing.
The Makefile and config.h were chosen based on STAGING_INCDIR and 
STAGING_LIBDIR - but the method in Python 3.7 is using "import 
_sysconfigdata_{abi}_{platform}_{multiarch}" which might need a dedicated 
wrapper to "tune" some include path variables.

I could hack something like 
meta/recipes-devtools/perl/perl/perl-configpm-switch.patch - but maybe someone 
who is better in Python could do that smoother ;)
Please drop me a note ...

Cheers
--
Jens Rehsack - rehs...@gmail.com



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


Re: [OE-core] [AUH] Upgrade status: 2018-11-17

2018-11-18 Thread Marek Vasut
On 11/18/2018 10:32 AM, Alexander Kanavin wrote:
> On Sat, 17 Nov 2018 at 22:42, Marek Vasut  wrote:
>> Is there any chance AUH will be fixed to update U-Boot properly, that
>> is, all recipes at once ? Now it updates it partly and fails, obviously.
> 
> The issue is that all recipes include uboot-PV.inc (that carries the
> git revision), and updating one recipe breaks the others. AUH relies
> on devtool to do the upgrade, and devtool operates only on one recipe
> at a time, so I don't think it's feasible.

So AUH cannot update multiple recipes in lockstep ? I'd expect that to
be needed quite often.

> Perhaps you can take those
> emails as a reminder to do the upgrade manually, or alternatively I
> can blacklist u-boot recipes so that auh skips them (but then you have
> to remember to do the updates anyway).

Heh, I spent quite some time to make sure U-Boot builds on the targets
AUH uses for it's auto update stuff, exactly to let it update U-Boot so
I won't have to do it manually.

Perhaps we can fix AUH somehow ?

-- 
Best regards,
Marek Vasut
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [AUH] Upgrade status: 2018-11-17

2018-11-18 Thread Alexander Kanavin
On Sat, 17 Nov 2018 at 22:42, Marek Vasut  wrote:
> Is there any chance AUH will be fixed to update U-Boot properly, that
> is, all recipes at once ? Now it updates it partly and fails, obviously.

The issue is that all recipes include uboot-PV.inc (that carries the
git revision), and updating one recipe breaks the others. AUH relies
on devtool to do the upgrade, and devtool operates only on one recipe
at a time, so I don't think it's feasible. Perhaps you can take those
emails as a reminder to do the upgrade manually, or alternatively I
can blacklist u-boot recipes so that auh skips them (but then you have
to remember to do the updates anyway).

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