Re: [OE-core] [PATCH] bind: Update to latest stable, 9.14.

2019-07-27 Thread Mittal, Anuj
This is causing errors:

| Makefile:557: recipe for target 'alloc.lo' failed
| make[2]: *** [alloc.lo] Error 1
| In file included from ../includes/dhcpd.h:91,
|  from conflex.c:29:
| ../includes/omapip/isclib.h:51:10: fatal error: isc/boolean.h: No
such file or directory
|51 | #include 
|   |  ^~~
| compilation terminated.
| Makefile:557: recipe for target 'dhcp4o6.lo' failed
| make[2]: *** [dhcp4o6.lo] Error 1
| In file included from ../includes/dhcpd.h:91,
|  from icmp.c:30:
| ../includes/omapip/isclib.h:51:10: fatal error: isc/boolean.h: No
such file or directory
|51 | #include 
|   |  ^~~
| compilation terminated.
| Makefile:557: recipe for target 'dispatch.lo' failed
| make[2]: *** [dispatch.lo] Error 1
| In file included from ../includes/dhcpd.h:91,
|  from bpf.c:35:
| ../includes/omapip/isclib.h:51:10: fatal error: isc/boolean.h: No
such file or directory
|51 | #include 
|   |  ^~~

https://autobuilder.yoctoproject.org/typhoon/#/builders/64/builds/871/steps/8/logs/step1b

Thanks,

Anuj

On Sat, 2019-07-27 at 13:49 -0700, Armin Kuster wrote:
> Even releases are stable and supported for 1 year.
> 
> Drop patches no longer needed.
> Refresh a few patches.
> Removed config options no longed supported.
> 
> Signed-off-by: Armin Kuster 
> ---
>  ...igure.in-remove-useless-L-use_openssl-lib.patch | 32 
> -
>  ...-gen.c-extend-DIRNAMESIZE-from-256-to-512.patch | 22 
> ---
>  .../0001-lib-dns-gen.c-fix-too-long-error.patch| 31 
> 
>  ...lwresd-V-and-start-log-hide-build-options.patch | 33 ++
> 
>  ...-searching-for-json-headers-searches-sysr.patch | 30 ++
> --
>  .../bind/{bind_9.11.5-P4.bb => bind_9.14.3.bb} | 24 ++
> --
>  6 files changed, 38 insertions(+), 134 deletions(-)
>  delete mode 100644 meta/recipes-connectivity/bind/bind/0001-
> configure.in-remove-useless-L-use_openssl-lib.patch
>  delete mode 100644 meta/recipes-connectivity/bind/bind/0001-gen.c-
> extend-DIRNAMESIZE-from-256-to-512.patch
>  delete mode 100644 meta/recipes-connectivity/bind/bind/0001-lib-dns-
> gen.c-fix-too-long-error.patch
>  rename meta/recipes-connectivity/bind/{bind_9.11.5-P4.bb =>
> bind_9.14.3.bb} (83%)
> 
> diff --git a/meta/recipes-connectivity/bind/bind/0001-configure.in-
> remove-useless-L-use_openssl-lib.patch b/meta/recipes-
> connectivity/bind/bind/0001-configure.in-remove-useless-L-
> use_openssl-lib.patch
> deleted file mode 100644
> index 871bb2a..000
> --- a/meta/recipes-connectivity/bind/bind/0001-configure.in-remove-
> useless-L-use_openssl-lib.patch
> +++ /dev/null
> @@ -1,32 +0,0 @@
> -From 950867d9fd3f690e271c8c807b6eed144b2935b2 Mon Sep 17 00:00:00
> 2001
> -From: Hongxu Jia 
> -Date: Mon, 27 Aug 2018 15:00:51 +0800
> -Subject: [PATCH] configure.in: remove useless `-L$use_openssl/lib'
> -
> -Since `--with-openssl=${STAGING_DIR_HOST}${prefix}' is used in bind
> recipe,
> -the `-L$use_openssl/lib' has a hardcoded suffix, removing it is
> harmless
> -and helpful for clean up host build path in isc-config.sh
> -
> -Upstream-Status: Inappropriate [oe-core specific]
> -
> -Signed-off-by: Hongxu Jia 
> 
> - configure.in | 2 +-
> - 1 file changed, 1 insertion(+), 1 deletion(-)
> -
> -diff --git a/configure.in b/configure.in
> -index 54efc55..76ac0eb 100644
>  a/configure.in
> -+++ b/configure.in
> -@@ -1691,7 +1691,7 @@ If you don't want OpenSSL, use --without-
> openssl])
> - fi
> - ;;
> - *)
> --DST_OPENSSL_LIBS="-L$use_openssl/lib
> -lcrypto"
> -+DST_OPENSSL_LIBS="-lcrypto"
> - ;;
> - esac
> - fi
> --- 
> -2.7.4
> -
> diff --git a/meta/recipes-connectivity/bind/bind/0001-gen.c-extend-
> DIRNAMESIZE-from-256-to-512.patch b/meta/recipes-
> connectivity/bind/bind/0001-gen.c-extend-DIRNAMESIZE-from-256-to-
> 512.patch
> deleted file mode 100644
> index a8d601d..000
> --- a/meta/recipes-connectivity/bind/bind/0001-gen.c-extend-
> DIRNAMESIZE-from-256-to-512.patch
> +++ /dev/null
> @@ -1,22 +0,0 @@
> -Upstream-Status: Pending
> -
> -Subject: gen.c: extend DIRNAMESIZE from 256 to 512
> -
> -Signed-off-by: Chen Qi 
> 
> - lib/dns/gen.c | 2 +-
> - 1 file changed, 1 insertion(+), 1 deletion(-)
> -
> -Index: bind-9.11.3/lib/dns/gen.c
> -===
>  bind-9.11.3.orig/lib/dns/gen.c
> -+++ bind-9.11.3/lib/dns/gen.c
> -@@ -130,7 +130,7 @@ static const char copyright[] =
> - #define TYPECLASSBUF (TYPECLASSLEN + 1)
> - #define TYPECLASSFMT "%" STR(TYPECLASSLEN) "[-0-9a-z]_%d"
> - #define ATTRIBUTESIZE 256
> --#define DIRNAMESIZE 256
> -+#define DIRNAMESIZE 512
> - 
> - static struct cc {
> - struct cc *next;
> diff 

[OE-core] [PATCH V2] weston: change to use meson build system

2019-07-27 Thread liu . ming50
From: Ming Liu 

The changes include:
- Drop all autotools related patches.
- Move weston-launch setuid-install to do_install task since it's not
  supported yet by meson build.
- Drop cairo-glesv2 package config, it's not supported by meson build,
  the recommended value is hard-coded to cairo-image for now in weston
  source.
- Introduce remoting package config, to give this option a explicit
  value, or else the build would run into gstreamer missing error since
  it defaults to be true but gstreamer is not in depends list.

Signed-off-by: Stefan Agner 
Signed-off-by: Ming Liu 
---
 .../wayland/weston/0001-make-error-portable.patch  | 34 
 ...ch-Provide-a-default-version-that-doesn-t.patch | 93 ++
 meta/recipes-graphics/wayland/weston_6.0.1.bb  | 48 +--
 3 files changed, 101 insertions(+), 74 deletions(-)

diff --git 
a/meta/recipes-graphics/wayland/weston/0001-make-error-portable.patch 
b/meta/recipes-graphics/wayland/weston/0001-make-error-portable.patch
index 0eb3d95..acea9db 100644
--- a/meta/recipes-graphics/wayland/weston/0001-make-error-portable.patch
+++ b/meta/recipes-graphics/wayland/weston/0001-make-error-portable.patch
@@ -9,27 +9,14 @@ kind of systemsi e.g. musl.
 Upstream-Status: Submitted
 
 Signed-off-by: Khem Raj 
-
+Signed-off-by: Ming Liu 
 ---
- configure.ac  |  2 ++
  libweston/weston-error.h  | 20 
  libweston/weston-launch.c |  2 +-
- 3 files changed, 23 insertions(+), 1 deletion(-)
+ meson.build   |  1 +
+ 3 files changed, 22 insertions(+), 1 deletion(-)
  create mode 100644 libweston/weston-error.h
 
-diff --git a/configure.ac b/configure.ac
-index c05ad01..6da6e04 100644
 a/configure.ac
-+++ b/configure.ac
-@@ -126,6 +126,8 @@ AC_CHECK_DECL(CLOCK_MONOTONIC,[],
- [AC_MSG_ERROR("CLOCK_MONOTONIC is needed to compile weston")],
- [[#include ]])
- 
-+AC_CHECK_HEADERS([error.h])
-+
- AC_CHECK_FUNCS([mkostemp strchrnul initgroups posix_fallocate])
- 
- # check for libdrm as a build-time dependency only
 diff --git a/libweston/weston-error.h b/libweston/weston-error.h
 new file mode 100644
 index 000..2089d02
@@ -76,3 +63,18 @@ index bf73e0d..9064439 100644
  
  #define DRM_MAJOR 226
  
+diff --git a/meson.build b/meson.build
+index 2155b7b..baa52d9 100644
+--- a/meson.build
 b/meson.build
+@@ -94,6 +94,7 @@ foreach func : optional_libc_funcs
+ endforeach
+ 
+ optional_system_headers = [
++  'error.h',
+   'linux/sync_file.h'
+ ]
+ foreach hdr : optional_system_headers
+-- 
+2.7.4
+
diff --git 
a/meta/recipes-graphics/wayland/weston/0001-weston-launch-Provide-a-default-version-that-doesn-t.patch
 
b/meta/recipes-graphics/wayland/weston/0001-weston-launch-Provide-a-default-version-that-doesn-t.patch
index a2f61bf..81cc025 100644
--- 
a/meta/recipes-graphics/wayland/weston/0001-weston-launch-Provide-a-default-version-that-doesn-t.patch
+++ 
b/meta/recipes-graphics/wayland/weston/0001-weston-launch-Provide-a-default-version-that-doesn-t.patch
@@ -15,44 +15,46 @@ Upstream-Status: Pending
 Signed-off-by: Tom Hochstein 
 Signed-off-by: Jussi Kukkonen 
 Signed-off-by: Denys Dmytriyenko 
-
+Signed-off-by: Ming Liu 
 ---
- configure.ac  |  9 +++--
+ libweston/meson.build | 16 
  libweston/weston-launch.c | 20 
- 2 files changed, 27 insertions(+), 2 deletions(-)
+ meson_options.txt |  7 +++
+ 3 files changed, 39 insertions(+), 4 deletions(-)
 
-diff --git a/configure.ac b/configure.ac
-index 6da6e04..681f7c8 100644
 a/configure.ac
-+++ b/configure.ac
-@@ -515,13 +515,17 @@ AC_ARG_ENABLE(resize-optimization,
- AS_IF([test "x$enable_resize_optimization" = "xyes"],
-   [AC_DEFINE([USE_RESIZE_POOL], [1], [Use resize memory pool as a 
performance optimization])])
- 
-+AC_ARG_WITH(pam,
-+AS_HELP_STRING([--with-pam], [Use PAM]),
-+[use_pam=$withval], [use_pam=yes])
- AC_ARG_ENABLE(weston-launch, [  --enable-weston-launch],, 
enable_weston_launch=yes)
- AM_CONDITIONAL(BUILD_WESTON_LAUNCH, test x$enable_weston_launch = xyes)
--if test x$enable_weston_launch = xyes; then
-+if test x$enable_weston_launch = xyes -a x$use_pam = xyes; then
-   WESTON_SEARCH_LIBS([PAM], [pam], [pam_open_session], [have_pam=yes], 
[have_pam=no])
-   if test x$have_pam = xno; then
--AC_ERROR([weston-launch requires pam])
-+AC_ERROR([PAM support is explicitly requested, but libpam couldn't be 
found])
-   fi
-+  AC_DEFINE([HAVE_PAM], [1], [Define if PAM is available])
- fi
- 
- AM_CONDITIONAL(HAVE_PANGO, test "x$have_pango" = "xyes")
-@@ -767,6 +771,7 @@ AC_MSG_RESULT([
-   Enable developer documentation  ${enable_devdocs}
- 
-   weston-launch utility   ${enable_weston_launch}
-+  PAM support ${use_pam}
-   systemd-login support   ${have_systemd_login}
-   systemd notify support  ${enable_systemd_notify}
- 
+diff --git 

Re: [OE-core] [PATCH] linux-yocto-dev: bump to v5.3-rc

2019-07-27 Thread Bruce Ashfield
Thanks for the patch, but please don't send these.

The version bumping of this kernel is something that I need to do.  I'm not
done integration testing with -dev, so the version can't be bumped. In
fact, I'm about to take it back to 5.2 temporarily while I work through
some other issues.

Cheers,

Bruce

On Sat, Jul 27, 2019 at 6:36 AM Piotr Tworek  wrote:

> Signed-off-by: Piotr Tworek 
> ---
>  meta/recipes-kernel/linux/linux-yocto-dev.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-kernel/linux/linux-yocto-dev.bb
> b/meta/recipes-kernel/linux/linux-yocto-dev.bb
> index 8c83620d39..96117ccf3f 100644
> --- a/meta/recipes-kernel/linux/linux-yocto-dev.bb
> +++ b/meta/recipes-kernel/linux/linux-yocto-dev.bb
> @@ -30,7 +30,7 @@ SRC_URI = "git://
> git.yoctoproject.org/linux-yocto-dev.git;branch=${KBRANCH};name
> 
>  SRCREV_machine ?=
> '${@oe.utils.conditional("PREFERRED_PROVIDER_virtual/kernel",
> "linux-yocto-dev", "${AUTOREV}",
> "29594404d7fe73cd80eaa4ee8c43dcc53970c60e", d)}'
>  SRCREV_meta ?=
> '${@oe.utils.conditional("PREFERRED_PROVIDER_virtual/kernel",
> "linux-yocto-dev", "${AUTOREV}",
> "29594404d7fe73cd80eaa4ee8c43dcc53970c60e", d)}'
>
> -LINUX_VERSION ?= "5.2-rc+"
> +LINUX_VERSION ?= "5.3-rc+"
>  LINUX_VERSION_EXTENSION ?= "-yoctodev-${LINUX_KERNEL_TYPE}"
>  PV = "${LINUX_VERSION}+git${SRCPV}"
>
> --
> 2.21.0
>
> --
> ___
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>


-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end
- "Use the force Harry" - Gandalf, Star Trek II
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] bind: Update to latest stable, 9.14.

2019-07-27 Thread Armin Kuster
Even releases are stable and supported for 1 year.

Drop patches no longer needed.
Refresh a few patches.
Removed config options no longed supported.

Signed-off-by: Armin Kuster 
---
 ...igure.in-remove-useless-L-use_openssl-lib.patch | 32 -
 ...-gen.c-extend-DIRNAMESIZE-from-256-to-512.patch | 22 ---
 .../0001-lib-dns-gen.c-fix-too-long-error.patch| 31 
 ...lwresd-V-and-start-log-hide-build-options.patch | 33 ++
 ...-searching-for-json-headers-searches-sysr.patch | 30 ++--
 .../bind/{bind_9.11.5-P4.bb => bind_9.14.3.bb} | 24 ++--
 6 files changed, 38 insertions(+), 134 deletions(-)
 delete mode 100644 
meta/recipes-connectivity/bind/bind/0001-configure.in-remove-useless-L-use_openssl-lib.patch
 delete mode 100644 
meta/recipes-connectivity/bind/bind/0001-gen.c-extend-DIRNAMESIZE-from-256-to-512.patch
 delete mode 100644 
meta/recipes-connectivity/bind/bind/0001-lib-dns-gen.c-fix-too-long-error.patch
 rename meta/recipes-connectivity/bind/{bind_9.11.5-P4.bb => bind_9.14.3.bb} 
(83%)

diff --git 
a/meta/recipes-connectivity/bind/bind/0001-configure.in-remove-useless-L-use_openssl-lib.patch
 
b/meta/recipes-connectivity/bind/bind/0001-configure.in-remove-useless-L-use_openssl-lib.patch
deleted file mode 100644
index 871bb2a..000
--- 
a/meta/recipes-connectivity/bind/bind/0001-configure.in-remove-useless-L-use_openssl-lib.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-From 950867d9fd3f690e271c8c807b6eed144b2935b2 Mon Sep 17 00:00:00 2001
-From: Hongxu Jia 
-Date: Mon, 27 Aug 2018 15:00:51 +0800
-Subject: [PATCH] configure.in: remove useless `-L$use_openssl/lib'
-
-Since `--with-openssl=${STAGING_DIR_HOST}${prefix}' is used in bind recipe,
-the `-L$use_openssl/lib' has a hardcoded suffix, removing it is harmless
-and helpful for clean up host build path in isc-config.sh
-
-Upstream-Status: Inappropriate [oe-core specific]
-
-Signed-off-by: Hongxu Jia 

- configure.in | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/configure.in b/configure.in
-index 54efc55..76ac0eb 100644
 a/configure.in
-+++ b/configure.in
-@@ -1691,7 +1691,7 @@ If you don't want OpenSSL, use --without-openssl])
-   fi
-   ;;
-   *)
--  DST_OPENSSL_LIBS="-L$use_openssl/lib -lcrypto"
-+  DST_OPENSSL_LIBS="-lcrypto"
-   ;;
-   esac
-   fi
--- 
-2.7.4
-
diff --git 
a/meta/recipes-connectivity/bind/bind/0001-gen.c-extend-DIRNAMESIZE-from-256-to-512.patch
 
b/meta/recipes-connectivity/bind/bind/0001-gen.c-extend-DIRNAMESIZE-from-256-to-512.patch
deleted file mode 100644
index a8d601d..000
--- 
a/meta/recipes-connectivity/bind/bind/0001-gen.c-extend-DIRNAMESIZE-from-256-to-512.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-Upstream-Status: Pending
-
-Subject: gen.c: extend DIRNAMESIZE from 256 to 512
-
-Signed-off-by: Chen Qi 

- lib/dns/gen.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-Index: bind-9.11.3/lib/dns/gen.c
-===
 bind-9.11.3.orig/lib/dns/gen.c
-+++ bind-9.11.3/lib/dns/gen.c
-@@ -130,7 +130,7 @@ static const char copyright[] =
- #define TYPECLASSBUF (TYPECLASSLEN + 1)
- #define TYPECLASSFMT "%" STR(TYPECLASSLEN) "[-0-9a-z]_%d"
- #define ATTRIBUTESIZE 256
--#define DIRNAMESIZE 256
-+#define DIRNAMESIZE 512
- 
- static struct cc {
-   struct cc *next;
diff --git 
a/meta/recipes-connectivity/bind/bind/0001-lib-dns-gen.c-fix-too-long-error.patch
 
b/meta/recipes-connectivity/bind/bind/0001-lib-dns-gen.c-fix-too-long-error.patch
deleted file mode 100644
index 01874a4..000
--- 
a/meta/recipes-connectivity/bind/bind/0001-lib-dns-gen.c-fix-too-long-error.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From 5bc3167a8b714ec0c4a3f1c7f3b9411296ec0a23 Mon Sep 17 00:00:00 2001
-From: Robert Yang 
-Date: Wed, 16 Sep 2015 20:23:47 -0700
-Subject: [PATCH] lib/dns/gen.c: fix too long error
-
-The 512 is a little short when build in deep dir, and cause "too long"
-error, use PATH_MAX if defined.
-
-Upstream-Status: Pending
-
-Signed-off-by: Robert Yang 

- lib/dns/gen.c |4 
- 1 file changed, 4 insertions(+)
-
-Index: bind-9.11.3/lib/dns/gen.c
-===
 bind-9.11.3.orig/lib/dns/gen.c
-+++ bind-9.11.3/lib/dns/gen.c
-@@ -130,7 +130,11 @@ static const char copyright[] =
- #define TYPECLASSBUF (TYPECLASSLEN + 1)
- #define TYPECLASSFMT "%" STR(TYPECLASSLEN) "[-0-9a-z]_%d"
- #define ATTRIBUTESIZE 256
-+#ifdef PATH_MAX
-+#define DIRNAMESIZE PATH_MAX
-+#else
- #define DIRNAMESIZE 512
-+#endif
- 
- static struct cc {
-   struct cc *next;
diff --git 
a/meta/recipes-connectivity/bind/bind/0001-named-lwresd-V-and-start-log-hide-build-options.patch
 

[OE-core] [PATCH 1/2] ltp: Fix build with glibc 2.30

2019-07-27 Thread Khem Raj
Signed-off-by: Khem Raj 
---
 ...me-check-for-getdents-getdents64-API.patch | 72 +++
 ...k-for-RES_USE_INET6-during-configure.patch | 68 ++
 ...e-getdents-getdents64-only-for-glibc.patch | 50 -
 meta/recipes-extended/ltp/ltp_20190517.bb |  3 +-
 4 files changed, 142 insertions(+), 51 deletions(-)
 create mode 100644 
meta/recipes-extended/ltp/ltp/0001-Add-configure-time-check-for-getdents-getdents64-API.patch
 create mode 100644 
meta/recipes-extended/ltp/ltp/0002-check-for-RES_USE_INET6-during-configure.patch
 delete mode 100644 
meta/recipes-extended/ltp/ltp/0005-getdents-define-getdents-getdents64-only-for-glibc.patch

diff --git 
a/meta/recipes-extended/ltp/ltp/0001-Add-configure-time-check-for-getdents-getdents64-API.patch
 
b/meta/recipes-extended/ltp/ltp/0001-Add-configure-time-check-for-getdents-getdents64-API.patch
new file mode 100644
index 00..bfceadb190
--- /dev/null
+++ 
b/meta/recipes-extended/ltp/ltp/0001-Add-configure-time-check-for-getdents-getdents64-API.patch
@@ -0,0 +1,72 @@
+From 404dfeb4faef213b0450f173b60cd7080edec349 Mon Sep 17 00:00:00 2001
+From: Khem Raj 
+Date: Fri, 26 Jul 2019 10:32:29 -0700
+Subject: [PATCH 1/2] Add configure time check for getdents/getdents64 APIs
+
+glibc 2.30 has added wrapper for getdents64 this will help in detecting
+right condition to use fallback
+
+Check for getdents API as well while here
+
+Upstream-Status: Submitted 
[http://lists.linux.it/pipermail/ltp/2019-July/012954.html]
+Signed-off-by: Khem Raj 
+---
+ configure.ac  | 2 ++
+ testcases/kernel/syscalls/getdents/getdents.h | 8 ++--
+ 2 files changed, 8 insertions(+), 2 deletions(-)
+
+--- a/configure.ac
 b/configure.ac
+@@ -65,6 +65,8 @@ AC_CHECK_FUNCS([ \
+ fallocate \
+ fchownat \
+ fstatat \
++getdents \
++getdents64 \
+ kcmp \
+ mkdirat \
+ mknodat \
+--- a/testcases/kernel/syscalls/getdents/getdents.h
 b/testcases/kernel/syscalls/getdents/getdents.h
+@@ -23,7 +23,7 @@
+ #include 
+ #include "test.h"
+ #include "lapi/syscalls.h"
+-
++#include "config.h"
+ /*
+  * See fs/compat.c struct compat_linux_dirent
+  */
+@@ -34,12 +34,17 @@ struct linux_dirent {
+   chard_name[];
+ };
+ 
++#if HAVE_GETDENTS
++#include 
++#else
+ static inline int
+ getdents(unsigned int fd, struct linux_dirent *dirp, unsigned int size)
+ {
+   return ltp_syscall(__NR_getdents, fd, dirp, size);
+ }
+ 
++#endif /* HAVE_GETDENTS */
++
+ struct linux_dirent64 {
+   uint64_td_ino;
+   int64_t d_off;
+@@ -48,10 +53,13 @@ struct linux_dirent64 {
+   chard_name[];
+ };
+ 
++#if HAVE_GETDENTS64
++#include 
++#else
+ static inline int
+ getdents64(unsigned int fd, struct linux_dirent64 *dirp64, unsigned int size)
+ {
+   return ltp_syscall(__NR_getdents64, fd, dirp64, size);
+ }
+-
++#endif /* HAVE_GETDENTS64 */
+ #endif /* GETDENTS_H */
diff --git 
a/meta/recipes-extended/ltp/ltp/0002-check-for-RES_USE_INET6-during-configure.patch
 
b/meta/recipes-extended/ltp/ltp/0002-check-for-RES_USE_INET6-during-configure.patch
new file mode 100644
index 00..12e47eb2b6
--- /dev/null
+++ 
b/meta/recipes-extended/ltp/ltp/0002-check-for-RES_USE_INET6-during-configure.patch
@@ -0,0 +1,68 @@
+From 7bc134545b7beb09717a60541530c20a1a5740d3 Mon Sep 17 00:00:00 2001
+From: Khem Raj 
+Date: Fri, 26 Jul 2019 10:55:28 -0700
+Subject: [PATCH 2/2] check for RES_USE_INET6 during configure
+
+glibc 2.30 has remove RES_USE_INET6 define which has been on its way out
+since 2.26 release, this check ensures that we detect it before using it
+
+Upstream-Status: Submitted 
[http://lists.linux.it/pipermail/ltp/2019-July/012955.html]
+Signed-off-by: Khem Raj 
+---
+ configure.ac| 13 +
+ testcases/network/multicast/mc_gethost/mc_gethost.c |  6 ++
+ 2 files changed, 19 insertions(+)
+
+diff --git a/configure.ac b/configure.ac
+index 2255b5c181..ed7acccb01 100644
+--- a/configure.ac
 b/configure.ac
+@@ -91,6 +91,19 @@ AC_CHECK_FUNCS([ \
+ vmsplice \
+ ])
+ 
++#check defines
++AC_MSG_CHECKING([for RES_USE_INET6])
++AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([[#include ]],
++  [[char dummy[RES_USE_INET6];]])],
++  [
++AC_MSG_RESULT([yes])
++AC_DEFINE_UNQUOTED([HAVE_RES_USE_INET6], 1, [Define to 1 if you have the 
RES_USE_INET6 macro.])
++  ],
++  [
++AC_MSG_RESULT([no])
++AC_DEFINE_UNQUOTED([HAVE_RES_USE_INET6], 0, [Define to 1 if you have the 
RES_USE_INET6 macro.])
++  ]
++)
+ # Tools knobs
+ 
+ # Expect
+diff --git a/testcases/network/multicast/mc_gethost/mc_gethost.c 
b/testcases/network/multicast/mc_gethost/mc_gethost.c
+index 9cc15d086b..d1cae5441a 100644
+--- a/testcases/network/multicast/mc_gethost/mc_gethost.c
 b/testcases/network/multicast/mc_gethost/mc_gethost.c
+@@ -17,6 +17,8 @@
+ #include 
+ #include 
+ 
++#include "config.h"
++
+ #ifndef LOG_PERROR
+ #define LOG_PERROR 0
+ 

[OE-core] [PATCH 2/2] lttng-tools: Fix build with glibc 2.30

2019-07-27 Thread Khem Raj
Signed-off-by: Khem Raj 
---
 ...heck-for-gettid-API-during-configure.patch | 55 +++
 .../lttng/lttng-tools_2.10.7.bb   |  1 +
 2 files changed, 56 insertions(+)
 create mode 100644 
meta/recipes-kernel/lttng/lttng-tools/0001-check-for-gettid-API-during-configure.patch

diff --git 
a/meta/recipes-kernel/lttng/lttng-tools/0001-check-for-gettid-API-during-configure.patch
 
b/meta/recipes-kernel/lttng/lttng-tools/0001-check-for-gettid-API-during-configure.patch
new file mode 100644
index 00..c494cee604
--- /dev/null
+++ 
b/meta/recipes-kernel/lttng/lttng-tools/0001-check-for-gettid-API-during-configure.patch
@@ -0,0 +1,55 @@
+From 69c62f5f3cc424b7dd0c8e4097743b39a9c48306 Mon Sep 17 00:00:00 2001
+From: Khem Raj 
+Date: Sat, 27 Jul 2019 08:48:13 -0700
+Subject: [lttng-tools][PATCH] check for gettid API during configure
+
+Add support for gettid() provided by glibc 2.30+
+
+Since version 2.30 glibc provides gettid and it causes conflicts with
+locally defined gettid(). Use the local definition of
+gettid only if system gettid is not available.
+
+https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=NEWS;hb=HEAD
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj 
+---
+ configure.ac| 2 +-
+ src/common/compat/tid.h | 3 ++-
+ 2 files changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 7b99f5c..e4bd82c 100644
+--- a/configure.ac
 b/configure.ac
+@@ -190,7 +190,7 @@ AC_CHECK_HEADERS([ \
+ # Basic functions check
+ AC_CHECK_FUNCS([ \
+   atexit bzero clock_gettime dup2 fdatasync fls ftruncate \
+-  gethostbyname gethostname getpagesize localtime_r memchr memset \
++  gethostbyname gethostname getpagesize gettid localtime_r memchr memset \
+   mkdir munmap putenv realpath rmdir socket strchr strcspn strdup \
+   strncasecmp strndup strnlen strpbrk strrchr strstr strtol strtoul \
+   strtoull dirfd gethostbyname2 getipnodebyname epoll_create1 \
+diff --git a/src/common/compat/tid.h b/src/common/compat/tid.h
+index 40f562f..aa07a85 100644
+--- a/src/common/compat/tid.h
 b/src/common/compat/tid.h
+@@ -25,6 +25,7 @@
+ #ifndef LTTNG_TID_H
+ #define LTTNG_TID_H
+ 
++#if !HAVE_GETTID
+ #ifdef __linux__
+ #include 
+ #endif
+@@ -47,5 +48,5 @@ static inline pid_t gettid(void)
+   return getpid();
+ }
+ #endif
+-
++#endif /* HAVE_GETTID */
+ #endif /* LTTNG_TID_H */
+-- 
+2.22.0
+
diff --git a/meta/recipes-kernel/lttng/lttng-tools_2.10.7.bb 
b/meta/recipes-kernel/lttng/lttng-tools_2.10.7.bb
index 469ad111c4..aa6d19d0fa 100644
--- a/meta/recipes-kernel/lttng/lttng-tools_2.10.7.bb
+++ b/meta/recipes-kernel/lttng/lttng-tools_2.10.7.bb
@@ -34,6 +34,7 @@ SRC_URI = 
"https://lttng.org/files/lttng-tools/lttng-tools-${PV}.tar.bz2 \
file://lttng-sessiond.service \
file://0001-Skip-when-testapp-is-not-present.patch \

file://0002-Fix-check-for-lttng-modules-presence-before-testing.patch \
+   file://0001-check-for-gettid-API-during-configure.patch \
"
 
 SRC_URI[md5sum] = "e7804d10e4cade381e241601f6047373"
-- 
2.22.0

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


[OE-core] [PATCH 00/30] Thud-next pull request

2019-07-27 Thread Armin Kuster
The following changes since commit f162d5bfe6eaeca24f441c83c87252c8d05744fc:

  core-image-sato-sdk-ptest: Tweak size to stay within 4GB limit (2019-05-17 
22:05:59 -0700)

are available in the git repository at:

  git://git.openembedded.org/openembedded-core-contrib stable/thud-next
  http://cgit.openembedded.org/openembedded-core-contrib/log/?h=stable/thud-next

Armin Kuster (16):
  glibc: Security fix CVE-2019-9169
  elfutils: Security fixes  CVE-2019-7146,7149,7150
  qemu: Several CVE fixes
  python: Update to 2.7.16
  busybox: Security fixes for CVE-2018-20679 CVE-2019-5747
  sqlite3: Security fixes for CVE-2018-20505 & 20506
  file: Multiple Secruity fixes
  go: update to minor update 1.11.10
  qemu: Security fix for CVE-2018-19489
  Tar: Security fix CVE-2019-0023
  glib-2.0: Security fix for CVE-2019-12450
  wget: Security fix for CVE-2019-5953
  Curl: Securiyt fix CVE-2019-5435 CVE-2019-5436
  qemu: Security fix for CVE-2019-12155
  qemu: Security fixes CVE-2018-20815 CVE-2019-9824
  glib: Security fix for CVE-2019-9633

Chen Qi (2):
  cups: upgrade to 2.2.9
  cups: upgrade to 2.2.10

Hongxu Jia (1):
  go-target.inc: fix go not found while multilib enabled

Joshua DeWeese (1):
  wpa_supplicant: Changed systemd template units

Khem Raj (1):
  go: Upgrade 1.11.1 -> 1.11.4 minor release

Martin Jansa (1):
  python: add a fix for CVE-2019-9948 and CVE-2019-9636

Richard Purdie (4):
  go-crosssdk: PN should use SDK_SYS, not TARGET_ARCH
  yocto-uninative: Update to 2.5 release
  uninative: Switch from bz2 to xz
  uninative: Update to 2.6 release

Robert Yang (1):
  uboot-sign.bbclass: Remove tab indentations in python code

Ross Burton (3):
  cairo: fix CVE-2018-19876 CVE-2019-6461 CVE-2019-6462
  lighttpd: fix CVE-2019-11072
  glibc: backport CVE fixes

 meta/classes/uboot-sign.bbclass|  20 +-
 meta/classes/uninative.bbclass |   4 +-
 meta/conf/distro/include/yocto-uninative.inc   |   8 +-
 ...place-systemd-install-Alias-with-WantedBy.patch |  52 
 .../wpa-supplicant/wpa-supplicant_2.6.bb   |   1 +
 .../busybox/busybox/CVE-2018-20679.patch   | 142 +
 .../busybox/busybox/CVE-2019-5747.patch|  60 
 meta/recipes-core/busybox/busybox_1.29.3.bb|   2 +
 .../glib-2.0/glib-2.0/CVE-2019-12450.patch |  59 
 .../glib-2.0/glib-2.0/CVE-2019-9633_p1.patch   | 316 +
 .../glib-2.0/glib-2.0/CVE-2019-9633_p2.patch   | 231 +++
 meta/recipes-core/glib-2.0/glib-2.0_2.58.0.bb  |   3 +
 meta/recipes-core/glibc/glibc/CVE-2016-10739.patch | 232 +++
 meta/recipes-core/glibc/glibc/CVE-2018-19591.patch |  48 
 meta/recipes-core/glibc/glibc/CVE-2019-9169.patch  |  63 
 meta/recipes-core/glibc/glibc_2.28.bb  |   3 +
 meta/recipes-devtools/elfutils/elfutils_0.175.bb   |   4 +
 .../elfutils/files/CVE-2019-7146_p1.patch  |  52 
 .../elfutils/files/CVE-2019-7146_p2.patch  |  65 +
 .../elfutils/files/CVE-2019-7149.patch | 148 ++
 .../elfutils/files/CVE-2019-7150.patch |  51 
 .../recipes-devtools/file/file/CVE-2019-8904.patch |  30 ++
 .../file/file/CVE-2019-8905_CVE-2019-8907.patch| 120 
 .../recipes-devtools/file/file/CVE-2019-8906.patch |  27 ++
 meta/recipes-devtools/file/file_5.34.bb|   3 +
 meta/recipes-devtools/go/go-1.11.inc   |   7 +-
 ...07-cmd-go-make-GOROOT-precious-by-default.patch |   6 +-
 .../0008-use-GOBUILDMODE-to-set-buildmode.patch|  13 +-
 meta/recipes-devtools/go/go-crosssdk.inc   |   2 +-
 meta/recipes-devtools/go/go-target.inc |   2 +-
 ...on-native_2.7.15.bb => python-native_2.7.16.bb} |   2 -
 meta/recipes-devtools/python/python.inc|  18 +-
 ...23-Use-XML_SetHashSalt-in-_elementtree-GH.patch |  96 ---
 ...ix-test_ssl-when-a-filename-cannot-be-enc.patch |  55 
 ...LS-1.3-ciphers-for-OpenSSL-1.1.1-GH-6976-.patch | 120 
 ...34540-Convert-shutil._call_external_zip-t.patch |  67 -
 ...dd-missing-closing-wrapper-in-test_tls1_3.patch |  37 ---
 ...ix-test_ssl.test_options-to-account-for-O.patch |  37 ---
 ...ix-test_default_ecdh_curve-needs-no-tlsv1.patch |  34 ---
 .../python/bpo-35907-cve-2019-9948-fix.patch   |  55 
 .../python/python/bpo-35907-cve-2019-9948.patch|  55 
 .../python/bpo-36216-cve-2019-9636-fix.patch   |  28 ++
 .../python/python/bpo-36216-cve-2019-9636.patch| 111 
 .../python/{python_2.7.15.bb => python_2.7.16.bb}  |   6 +-
 .../qemu/qemu/CVE-2018-16867.patch |  49 
 .../qemu/qemu/CVE-2018-16872.patch |  89 ++
 .../qemu/qemu/CVE-2018-18849.patch |  86 ++
 .../qemu/qemu/CVE-2018-19364_p1.patch  |  51 
 .../qemu/qemu/CVE-2018-19364_p2.patch  | 115 
 .../qemu/qemu/CVE-2018-19489.patch |  83 ++
 

[OE-core] [PATCH] linux-yocto-dev: bump to v5.3-rc

2019-07-27 Thread Piotr Tworek
Signed-off-by: Piotr Tworek 
---
 meta/recipes-kernel/linux/linux-yocto-dev.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-kernel/linux/linux-yocto-dev.bb 
b/meta/recipes-kernel/linux/linux-yocto-dev.bb
index 8c83620d39..96117ccf3f 100644
--- a/meta/recipes-kernel/linux/linux-yocto-dev.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-dev.bb
@@ -30,7 +30,7 @@ SRC_URI = 
"git://git.yoctoproject.org/linux-yocto-dev.git;branch=${KBRANCH};name
 SRCREV_machine ?= 
'${@oe.utils.conditional("PREFERRED_PROVIDER_virtual/kernel", 
"linux-yocto-dev", "${AUTOREV}", "29594404d7fe73cd80eaa4ee8c43dcc53970c60e", 
d)}'
 SRCREV_meta ?= '${@oe.utils.conditional("PREFERRED_PROVIDER_virtual/kernel", 
"linux-yocto-dev", "${AUTOREV}", "29594404d7fe73cd80eaa4ee8c43dcc53970c60e", 
d)}'
 
-LINUX_VERSION ?= "5.2-rc+"
+LINUX_VERSION ?= "5.3-rc+"
 LINUX_VERSION_EXTENSION ?= "-yoctodev-${LINUX_KERNEL_TYPE}"
 PV = "${LINUX_VERSION}+git${SRCPV}"
 
-- 
2.21.0

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


Re: [OE-core] [PATCH] mdadm:add mdmonitor.service

2019-07-27 Thread Richard Purdie
On Fri, 2019-07-26 at 10:22 +0800, Zang Ruochen wrote:
> -The original mdmonitor.service is wrong, so append new
> mdmonitor.service.

"wrong" how?

Wouldn't we want to patch it so its clear what the problem is rather
than just overwrite it?

Cheers,

Richard

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


Re: [OE-core] [RFC PATCH 3/3] classes/sstate: regenerate sstate when signing enabled

2019-07-27 Thread Richard Purdie
On Fri, 2019-07-26 at 11:26 +, Joshua Lock via Openembedded-core
wrote:
> This change ensures that the task signatures changes, and therefore
> sstate tasks are rerun, when signing is enabled. This has the
> positive outcome that if signing is enabled new signed shared state
> objects will be produced, rather than just signing shared state
> objects for tasks where no work has been performed yet.
> 
> The downside of this change is that enabling/disabling sstate object
> signing alters the taskhash and results in rebuilding the world.
> 
> Signed-off-by: Joshua Lock 
> ---
>  meta/classes/sstate.bbclass | 10 --
>  meta/lib/oe/gpg_sign.py | 10 ++
>  2 files changed, 18 insertions(+), 2 deletions(-)
> 
> diff --git a/meta/classes/sstate.bbclass
> b/meta/classes/sstate.bbclass
> index 3342c5ef50..b060e15053 100644
> --- a/meta/classes/sstate.bbclass
> +++ b/meta/classes/sstate.bbclass
> @@ -659,8 +659,12 @@ def sstate_package(ss, d):
>  if d.getVar('SSTATE_SKIP_CREATION') == '1':
>  return
>  
> +sstate_create_package = ['sstate_report_unihash',
> 'sstate_create_package']
> +if d.getVar('SSTATE_SIG_KEY'):
> +sstate_create_package.append('sstate_sign_package')
> +
>  for f in (d.getVar('SSTATECREATEFUNCS') or '').split() + \
> - ['sstate_report_unihash', 'sstate_create_package',
> 'sstate_sign_package'] + \
> + sstate_create_package + \
>   (d.getVar('SSTATEPOSTCREATEFUNCS') or '').split():
>  # All hooks should run in SSTATE_BUILDDIR.
>  bb.build.exec_func(f, d, (sstatebuild,))
> @@ -774,7 +778,7 @@ sstate_create_package () {
>  }
>  
>  python sstate_sign_package () {
> -from oe.gpg_sign import get_signer
> +from oe.gpg_sign import get_signer, SignFailedError
>  
>  if d.getVar('SSTATE_SIG_KEY'):
>  signer = get_signer(d, 'local')
> @@ -783,6 +787,8 @@ python sstate_sign_package () {
>  os.unlink(sstate_pkg + '.sig')
>  signer.detach_sign(sstate_pkg, d.getVar('SSTATE_SIG_KEY',
> False), None,
> d.getVar('SSTATE_SIG_PASSPHRASE'),
> armor=False)
> +else:
> +raise SignFailedError("Can't sign sstate packages without
> key, SSTATE_SIG_KEY empty")
>  }
>  
>  python sstate_report_unihash() {
> diff --git a/meta/lib/oe/gpg_sign.py b/meta/lib/oe/gpg_sign.py
> index 2fd8c3b1ac..ec5ace0dd0 100644
> --- a/meta/lib/oe/gpg_sign.py
> +++ b/meta/lib/oe/gpg_sign.py
> @@ -123,6 +123,16 @@ class LocalSigner(object):
>  return ret
>  
>  
> +class SignFailedError(bb.build.FuncFailed):
> +def __init__(self, description, name=None, logfile=None):
> +self.description = description
> +self.name = name
> +self.logfile = logfile
> +
> +def __str__(self):
> +return 'Signing failed: %s' % self.description
> +
> +

Whilst this subclass is quite pythonic, I'm not sure we want to do
this. At the back of my mind is the feeling that FuncFailed is a bit
pointless :/.

Put differently, what does this buy us that bb.fatal() doesn't?

We do have a few users of FuncFailed in OECore but not many (about
8)...

Cheers,

Richard



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


Re: [OE-core] [PATCH] core-image-sato-sdk: test image with 512M memory

2019-07-27 Thread Kang Kai

On 2019/7/27 上午5:40, richard.pur...@linuxfoundation.org wrote:

On Fri, 2019-07-26 at 05:23 -0400, kai.k...@windriver.com wrote:

From: Kai Kang 

When run do_testimage for core-image-sato-sdk, it fails to pass test
case:


RESULTS - systemd.SystemdBasicTests.test_systemd_failed: FAILED
(0.43s)

It is OOM issue and daemon rpc.statd is killed:


  [  531.306146] Out of memory: Kill process 193 (rpc.statd) score
200 or sacrifice child

Increase the memory of qemu to 512M to avoid such OOM issue.

Signed-off-by: Kai Kang 
---
  meta/recipes-sato/images/core-image-sato-sdk.bb | 1 +
  1 file changed, 1 insertion(+)

diff --git a/meta/recipes-sato/images/core-image-sato-sdk.bb
b/meta/recipes-sato/images/core-image-sato-sdk.bb
index d7cc52b52b..f7963d018e 100644
--- a/meta/recipes-sato/images/core-image-sato-sdk.bb
+++ b/meta/recipes-sato/images/core-image-sato-sdk.bb
@@ -9,3 +9,4 @@ IMAGE_FEATURES += "dev-pkgs tools-sdk \
  
  IMAGE_INSTALL += "kernel-devsrc"
  
+TEST_QEMUPARAMS = "-m 512"

Any idea what is using so much memory in the image when this happens?

Its rather sad that we can't have NFS+systemd with 256MB memory...


It caused by stap test case. I minimized the test cases to

TEST_SUITES = "ping date ssh systemd stap kernelmodule gcc "

which could reproduce the error.

And it PASSes testimage that remove stap test from default TEST_SUITES:

TEST_SUITES_remove = 'stap'

But I can't reproduce the OOM failure to run stap tests manually.


Regards,
Kai



Cheers,

Richard




--
Kai Kang

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


Re: [OE-core] [PATCH] core-image-sato-sdk: test image with 512M memory

2019-07-27 Thread Alexander Kanavin
I think you need to re-generate the image first (it goes to qemuboot config 
file). It is already used in ptest images, so it’s good to be consistent.

Alex

> On 27 Jul 2019, at 4.35, Kang Kai  wrote:
> 
>> On 2019/7/26 下午6:11, Alexander Kanavin wrote:
>> I think you need to use QB_MEM here.
> Used TEST_QEMUPARAMS because I found the following line in testimage.bbclass:
> 
> # TEST_QEMUPARAMS can be used to pass extra parameters to qemu, e.g. "-m 
> 1024" for setting the amount o f ram to 1 GB.
> 
> 
> 
> And it seems QB_MEM is not used when boot the qemu during testimage.
> 
> 
> 
>> 
>> Also, maybe we should just bump the 256M default?
> I hope so. 
> 
> 
> 
> Regards,
> Kai
> 
> 
> 
>> 
>> Alex
>> 
>>> On Fri, 26 Jul 2019 at 12:24,  wrote:
>>> From: Kai Kang 
>>> 
>>> When run do_testimage for core-image-sato-sdk, it fails to pass test
>>> case:
>>> 
>>> | RESULTS - systemd.SystemdBasicTests.test_systemd_failed: FAILED (0.43s)
>>> 
>>> It is OOM issue and daemon rpc.statd is killed:
>>> 
>>> |  [  531.306146] Out of memory: Kill process 193 (rpc.statd) score 200 or 
>>> sacrifice child
>>> 
>>> Increase the memory of qemu to 512M to avoid such OOM issue.
>>> 
>>> Signed-off-by: Kai Kang 
>>> ---
>>>  meta/recipes-sato/images/core-image-sato-sdk.bb | 1 +
>>>  1 file changed, 1 insertion(+)
>>> 
>>> diff --git a/meta/recipes-sato/images/core-image-sato-sdk.bb 
>>> b/meta/recipes-sato/images/core-image-sato-sdk.bb
>>> index d7cc52b52b..f7963d018e 100644
>>> --- a/meta/recipes-sato/images/core-image-sato-sdk.bb
>>> +++ b/meta/recipes-sato/images/core-image-sato-sdk.bb
>>> @@ -9,3 +9,4 @@ IMAGE_FEATURES += "dev-pkgs tools-sdk \
>>> 
>>>  IMAGE_INSTALL += "kernel-devsrc"
>>> 
>>> +TEST_QEMUPARAMS = "-m 512"
>>> -- 
>>> 2.20.0
>>> 
>>> -- 
>>> ___
>>> Openembedded-core mailing list
>>> Openembedded-core@lists.openembedded.org
>>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
> 
> -- 
> Kai Kang
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core