Re: [yocto] [meta-qt4][PATCH] Qt4 fails to configure ICU with ICU6X.

2018-05-28 Thread Alexander Kanavin

On 05/26/2018 09:27 PM, Michael Gloff wrote:

Remove -std=gnu++98 from QMAKE_CXXFLAGS and add where
necessary.


Thanks, pushed to master.

Alex
--
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Fwd: image-mklibs.bbclass fails

2018-05-28 Thread Ulf Samuelsson
Checked out poky
git checkout -b rocko origin/rocko
export MACHINE=beaglebone
. ./oe-init-build-env

Added to local.conf:
MKLIBS_OPTIMIZED_IMAGES_append = " core-image-minimal"

Result:

/core-image-minimal/1.0-r0/temp/run.mklibs_optimize_image.13363: line 133: i586-poky-linux-readelf: command not found
...
Exception: Cannot find lib/home/ulf/projects/poky-bb/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/recipe-sysroot/lib/ld-linux.so.2
WARNING: /home/ulf/projects/poky-bb/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/run.mklibs_optimize_image.13363:1 exit 1 from 'mklibs -v --ldlib ${dynamic_loader} --libdir lib --sysroot /home/ulf/projects/poky-bb/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/recipe-sysroot
 --gcc-options "--sysroot=/home/ulf/projects/poky-bb/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/recipe-sysroot" --root /home/ulf/projects/poky-bb/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs --target `echo i586-poky-linux-
 | sed 's/-$//' ` -d /home/ulf/projects/poky-bb/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/mklibs/dest `cat /home/ulf/projects/poky-bb/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/mklibs/executables.list`'
...



Looks like image-mklibs.bbclass has not been tested since the move to a local sysroot happened.

BR
Ulf Samuelsson






Parsing recipes: 100% |#| Time: 0:00:25
Parsing of 820 .bb files complete (0 cached, 820 parsed). 1279 targets, 44 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION   = "1.36.0"
BUILD_SYS= "x86_64-linux"
NATIVELSBSTRING  = "ubuntu-16.04"
TARGET_SYS   = "i586-poky-linux"
MACHINE  = "qemux86"
DISTRO   = "poky"
DISTRO_VERSION   = "2.4.3"
TUNE_FEATURES= "m32 i586"
TARGET_FPU   = ""
meta 
meta-poky
meta-yocto-bsp   = "rocko:7e7ee662f5dea4d090293045f7498093322802cc"

NOTE: Fetching uninative binary shim from http://downloads.yoctoproject.org/releases/uninative/1.9/x86_64-nativesdk-libc.tar.bz2;sha256sum=c26622a1f27dbf5b25de986b11584b5c5b2f322d9eb367f705a744f58a5561ec
Initialising tasks: 100% |##| Time: 0:00:03
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: cryptodev-linux-native-1.9-r0 do_fetch: Checksum mismatch for local file /home/ulf/projects/poky-bb/poky/build/downloads/cryptodev-linux-1.9.tar.gz
Cleaning and trying again.
WARNING: cryptodev-linux-native-1.9-r0 do_fetch: Renaming /home/ulf/projects/poky-bb/poky/build/downloads/cryptodev-linux-1.9.tar.gz to /home/ulf/projects/poky-bb/poky/build/downloads/cryptodev-linux-1.9.tar.gz_bad-checksum_5ed12cda871532668dd7edcb843645e0
WARNING: cryptodev-linux-native-1.9-r0 do_fetch: Checksum failure encountered with download of http://nwl.cc/pub/cryptodev-linux/cryptodev-linux-1.9.tar.gz - will attempt other sources if available
WARNING: popt-native-1.16-r3 do_fetch: Failed to fetch URL http://rpm5.org/files/popt/popt-1.16.tar.gz, attempting MIRRORS if available
Currently  7 running tasks (298 of 2470)  12% |   |
Currently  8 running tasks (298 of 2470)  12% |   |
WARNING: shadow-4.2.1-r0 do_fetch: Failed to fetch URL http://pkg-shadow.alioth.debian.org/releases/shadow-4.2.1.tar.xz, attempting MIRRORS if available
WARNING: libpng-native-1.6.31-r0 do_fetch: Failed to fetch URL http://downloads.sourceforge.net/project/libpng/libpng16/1.6.31/libpng-1.6.31.tar.xz, attempting MIRRORS if available
WARNING: libffi-native-3.2.1-r0 do_fetch: Failed to fetch URL ftp://sourceware.org/pub/libffi/libffi-3.2.1.tar.gz, attempting MIRRORS if available
WARNING: alsa-lib-native-1.1.4.1-r0 do_fetch: Failed to fetch URL ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.1.4.1.tar.bz2, attempting MIRRORS if available
WARNING: coreutils-8.27-r0 do_fetch: Failed to fetch URL http://distfiles.gentoo.org/distfiles/coreutils-8.27-man.tar.xz;name=manpages, attempting MIRRORS if available
ERROR: core-image-minimal-1.0-r0 do_image: Function failed: mklibs_optimize_image (log file is located at /home/ulf/projects/poky-bb/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_image.13363)
ERROR: Logfile of failure stored in: /home/ulf/projects/poky-bb/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_image.13363
Log data foll

[yocto] HELP: Release Candidate Build for yocto-2.4.3.rc2 now available.

2018-05-28 Thread Reyna, David
Hi Richard,

I apologize for sending this patch for Toaster for Roco 2.4.3 very late. I have 
been focused on Sumo and I thought I had more time.

The Toaster for Rocko is broken on HEAD. There are two patches that made it 
into master and Sumo, but missed Rocko.

I have just now sent the missing patch set to "bitbake-dev". The first patch 
fixes an error that breaks the initialization of Toaster. The second patches 
fixes a change in behavior for Django that creates an extra thread that blocks 
Toaster from shutting down.

Please accept these patches for Rocko. They are confined to Toaster and do not 
affect the rest of the release.

Thanks,
David


-Original Message-
From: yocto-boun...@yoctoproject.org [mailto:yocto-boun...@yoctoproject.org] On 
Behalf Of Richard Purdie
Sent: Thursday, May 24, 2018 1:16 AM
To: yocto
Cc: ota...@ossystems.com.br; CHAN, AARON CHUN YEW
Subject: [yocto] Release Candidate Build for yocto-2.4.3.rc2 now available.

A release candidate build for yocto-2.4.3.rc2 is now available at:


https://autobuilder.yocto.io/pub/releases/yocto-2.4.3.rc2


Please begin QA on this build as soon as possible.


Build hash information: 
meta-intel : f66ce51d059d291a441d896854be8db70de5a554 
meta-qt4 : e290738759ef3f39c9e079eaa9b606a62107e5ba 
meta-mingw : 1cc620b38f6f30a0bdd181783297998fe073387f 
meta-qt3 : 8ef7261a331e0869a0461ab2fb44e39980cedc02 
meta-gplv2 : f875c60ecd6f30793b80a431a2423c4b98e51548 
poky : 7e7ee662f5dea4d090293045f7498093322802cc 

This is an automated message from The Yocto Project Autobuilder
Git: git://git.yoctoproject.org/yocto-autobuilder
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[linux-yocto] [4.12] [PATCH 1/2] debugobjects: Make kmemleak ignore debug objects

2018-05-28 Thread quanyang.wang
From: Waiman Long 

commit caba4cbbd27d755572730801ac34fe063fc40a32 upstream

The allocated debug objects are either on the free list or in the
hashed bucket lists. So they won't get lost. However if both debug
objects and kmemleak are enabled and kmemleak scanning is done
while some of the debug objects are transitioning from one list to
the others, false negative reporting of memory leaks may happen for
those objects. For example,

[38687.275678] kmemleak: 12 new suspected memory leaks (see
/sys/kernel/debug/kmemleak)
unreferenced object 0x92e98aabeb68 (size 40):
  comm "ksmtuned", pid 4344, jiffies 4298403600 (age 906.430s)
  hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 d0 bc db 92 e9 92 ff ff  
01 00 00 00 00 00 00 00 38 36 8a 61 e9 92 ff ff  86.a
  backtrace:
[] kmemleak_alloc+0x4a/0xa0
[] kmem_cache_alloc+0xe9/0x320
[] __debug_object_init+0x3e6/0x400
[] debug_object_activate+0x131/0x210
[] __call_rcu+0x3f/0x400
[] call_rcu_sched+0x1d/0x20
[] put_object+0x2c/0x40
[] __delete_object+0x3c/0x50
[] delete_object_full+0x1d/0x20
[] kmemleak_free+0x32/0x80
[] kmem_cache_free+0x77/0x350
[] unlink_anon_vmas+0x82/0x1e0
[] free_pgtables+0xa1/0x110
[] exit_mmap+0xc1/0x170
[] mmput+0x80/0x150
[] do_exit+0x2a9/0xd20

The references in the debug objects may also hide a real memory leak.

As there is no point in having kmemleak to track debug object
allocations, kmemleak checking is now disabled for debug objects.

Signed-off-by: Waiman Long 
Signed-off-by: Thomas Gleixner 
Cc: Andrew Morton 
Link: 
http://lkml.kernel.org/r/1502718733-8527-1-git-send-email-long...@redhat.com
---
 init/main.c| 2 +-
 lib/debugobjects.c | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/init/main.c b/init/main.c
index 25c10c6..298e49f 100644
--- a/init/main.c
+++ b/init/main.c
@@ -634,8 +634,8 @@ asmlinkage __visible void __init start_kernel(void)
}
 #endif
page_ext_init();
-   debug_objects_mem_init();
kmemleak_init();
+   debug_objects_mem_init();
setup_per_cpu_pageset();
numa_policy_init();
if (late_time_init)
diff --git a/lib/debugobjects.c b/lib/debugobjects.c
index 17afb04..2f5349c 100644
--- a/lib/debugobjects.c
+++ b/lib/debugobjects.c
@@ -18,6 +18,7 @@
 #include 
 #include 
 #include 
+#include 
 
 #define ODEBUG_HASH_BITS   14
 #define ODEBUG_HASH_SIZE   (1 << ODEBUG_HASH_BITS)
@@ -110,6 +111,7 @@ static void fill_pool(void)
if (!new)
return;
 
+   kmemleak_ignore(new);
raw_spin_lock_irqsave(&pool_lock, flags);
hlist_add_head(&new->node, &obj_pool);
debug_objects_allocated++;
@@ -1080,6 +1082,7 @@ static int __init 
debug_objects_replace_static_objects(void)
obj = kmem_cache_zalloc(obj_cache, GFP_KERNEL);
if (!obj)
goto free;
+   kmemleak_ignore(obj);
hlist_add_head(&obj->node, &objects);
}
 
-- 
1.9.1

-- 
___
linux-yocto mailing list
linux-yo...@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto


[linux-yocto] [4.12] [PATCH 2/2] of: dynamic: fix memory leak related to properties of __of_node_dup

2018-05-28 Thread quanyang.wang
From: Lixin Wang 

commit 070ea018fa092f2ef41bef57896665a25f05d2d8 upstream

If a node with no properties is dynamically added, then a property is
dynamically added to the node, then the property is dynamically removed,
the result will be node->properties == NULL and node->deadprops != NULL.

Add a separate function to release the properties in both lists.

Signed-off-by: Lixin Wang 
Reviewed-by: Frank Rowand 
Signed-off-by: Rob Herring 
---
 drivers/of/dynamic.c | 26 ++
 1 file changed, 14 insertions(+), 12 deletions(-)

diff --git a/drivers/of/dynamic.c b/drivers/of/dynamic.c
index 888fdbc..509853a 100644
--- a/drivers/of/dynamic.c
+++ b/drivers/of/dynamic.c
@@ -315,6 +315,18 @@ int of_detach_node(struct device_node *np)
 }
 EXPORT_SYMBOL_GPL(of_detach_node);
 
+static void property_list_free(struct property *prop_list)
+{
+   struct property *prop, *next;
+
+   for (prop = prop_list; prop != NULL; prop = next) {
+   next = prop->next;
+   kfree(prop->name);
+   kfree(prop->value);
+   kfree(prop);
+   }
+}
+
 /**
  * of_node_release() - release a dynamically allocated node
  * @kref: kref element of the node to be released
@@ -324,7 +336,6 @@ int of_detach_node(struct device_node *np)
 void of_node_release(struct kobject *kobj)
 {
struct device_node *node = kobj_to_device_node(kobj);
-   struct property *prop = node->properties;
 
/* We should never be releasing nodes that haven't been detached. */
if (!of_node_check_flag(node, OF_DETACHED)) {
@@ -336,18 +347,9 @@ void of_node_release(struct kobject *kobj)
if (!of_node_check_flag(node, OF_DYNAMIC))
return;
 
-   while (prop) {
-   struct property *next = prop->next;
-   kfree(prop->name);
-   kfree(prop->value);
-   kfree(prop);
-   prop = next;
+   property_list_free(node->properties);
+   property_list_free(node->deadprops);
 
-   if (!prop) {
-   prop = node->deadprops;
-   node->deadprops = NULL;
-   }
-   }
kfree(node->full_name);
kfree(node->data);
kfree(node);
-- 
1.9.1

-- 
___
linux-yocto mailing list
linux-yo...@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto