Re: [OE-core] [PATCH 26/30] ltp: update to 20190930

2019-12-14 Thread Khem Raj
musl build fails on aarch64

https://errors.yoctoproject.org/Errors/Details/297288/

On Thu, Dec 12, 2019 at 10:18 AM Alexander Kanavin
 wrote:
>
> Drop a big pile of backports.
>
> Add a patch to address absent string formatting error.
>
> Signed-off-by: Alexander Kanavin 
> ---
>  ...me-check-for-getdents-getdents64-API.patch |  72 
>  ...option-to-select-libc-implementation.patch |  27 ++-
>  ...-17052-Avoid-unsafe-exits-in-threads.patch |  64 ---
>  ...meltdown.c-Fix-kernel-symbol-finding.patch |  81 -
>  ...y-update-for-mm-fix-false-positive-O.patch |  57 ---
>  ...medwait01-Fix-wrong-sigset-length-fo.patch |  46 -
>  ...3-wait-for-defunct-tid-to-get-detach.patch |  75 
>  ...es-fix-an-absent-format-string-issue.patch |  24 +++
>  ...thon3-everywhere-to-run-python-scrip.patch | 161 --
>  ...x-EFAULT-in-32bit-compatibility-mode.patch |  36 
>  ...k-for-RES_USE_INET6-during-configure.patch |  68 
>  ...BC_PREREQ-is-defined-before-using-it.patch |  27 ++-
>  ...se-hardcoded-index-0-for-SHM_STAT-te.patch |  82 -
>  ...11-direct_io-diotest4-drop-MAP_FIXED.patch |  56 --
>  ...st-a-bit-of-code-to-compatiable-with.patch |  64 ---
>  .../ltp/{ltp_20190517.bb => ltp_20190930.bb}  |  15 +-
>  16 files changed, 51 insertions(+), 904 deletions(-)
>  delete mode 100644 
> meta/recipes-extended/ltp/ltp/0001-Add-configure-time-check-for-getdents-getdents64-API.patch
>  delete mode 100644 
> meta/recipes-extended/ltp/ltp/0001-cve-2017-17052-Avoid-unsafe-exits-in-threads.patch
>  delete mode 100644 
> meta/recipes-extended/ltp/ltp/0001-cve-meltdown.c-Fix-kernel-symbol-finding.patch
>  delete mode 100644 
> meta/recipes-extended/ltp/ltp/0001-overcommit_memory-update-for-mm-fix-false-positive-O.patch
>  delete mode 100644 
> meta/recipes-extended/ltp/ltp/0001-syscall-rt_sigtimedwait01-Fix-wrong-sigset-length-fo.patch
>  delete mode 100644 
> meta/recipes-extended/ltp/ltp/0001-syscalls-tgkill03-wait-for-defunct-tid-to-get-detach.patch
>  create mode 100644 
> meta/recipes-extended/ltp/ltp/0001-testcases-fix-an-absent-format-string-issue.patch
>  delete mode 100644 
> meta/recipes-extended/ltp/ltp/0001-testcases-use-python3-everywhere-to-run-python-scrip.patch
>  delete mode 100644 
> meta/recipes-extended/ltp/ltp/0001-ustat02-Fix-EFAULT-in-32bit-compatibility-mode.patch
>  delete mode 100644 
> meta/recipes-extended/ltp/ltp/0002-check-for-RES_USE_INET6-during-configure.patch
>  delete mode 100644 
> meta/recipes-extended/ltp/ltp/0010-shmctl01-don-t-use-hardcoded-index-0-for-SHM_STAT-te.patch
>  delete mode 100644 
> meta/recipes-extended/ltp/ltp/0011-direct_io-diotest4-drop-MAP_FIXED.patch
>  delete mode 100644 
> meta/recipes-extended/ltp/ltp/0012-getrlimit03-adjust-a-bit-of-code-to-compatiable-with.patch
>  rename meta/recipes-extended/ltp/{ltp_20190517.bb => ltp_20190930.bb} (84%)
>
> 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
> deleted file mode 100644
> index bfceadb190d..000
> --- 
> a/meta/recipes-extended/ltp/ltp/0001-Add-configure-time-check-for-getdents-getdents64-API.patch
> +++ /dev/null
> @@ -1,72 +0,0 @@
> -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 li

Re: [OE-core] [PATCH 21/30] lttng-ust: update to 2.11.0

2019-12-14 Thread Khem Raj
some undefined symbols

https://errors.yoctoproject.org/Errors/Details/297311/


On Thu, Dec 12, 2019 at 10:18 AM Alexander Kanavin
 wrote:
>
> Remove patch as issue addressed upstream.
>
> Signed-off-by: Alexander Kanavin 
> ---
>  .../lttng-ust-doc-examples-disable.patch| 17 -
>  ...{lttng-ust_2.10.5.bb => lttng-ust_2.11.0.bb} |  9 +
>  2 files changed, 5 insertions(+), 21 deletions(-)
>  delete mode 100644 
> meta/recipes-kernel/lttng/lttng-ust/lttng-ust-doc-examples-disable.patch
>  rename meta/recipes-kernel/lttng/{lttng-ust_2.10.5.bb => 
> lttng-ust_2.11.0.bb} (89%)
>
> diff --git 
> a/meta/recipes-kernel/lttng/lttng-ust/lttng-ust-doc-examples-disable.patch 
> b/meta/recipes-kernel/lttng/lttng-ust/lttng-ust-doc-examples-disable.patch
> deleted file mode 100644
> index bff852799d0..000
> --- a/meta/recipes-kernel/lttng/lttng-ust/lttng-ust-doc-examples-disable.patch
> +++ /dev/null
> @@ -1,17 +0,0 @@
> -Upstream-Status: Inappropriate [embedded specific]
> -
> -Don't build the doc examples - we don't need them and in fact they
> -never successfully built in previous iterations of the lttng-ust
> -recipe anyway.
> -
> -Signed-off-by: Tom Zanussi 
> -
> -Index: lttng-ust-2.9.1/doc/Makefile.am
> -===
>  lttng-ust-2.9.1.orig/doc/Makefile.am
> -+++ lttng-ust-2.9.1/doc/Makefile.am
> -@@ -1,3 +1,3 @@
> --SUBDIRS = . man examples
> -+SUBDIRS = . man
> -
> - dist_doc_DATA = java-agent.txt
> diff --git a/meta/recipes-kernel/lttng/lttng-ust_2.10.5.bb 
> b/meta/recipes-kernel/lttng/lttng-ust_2.11.0.bb
> similarity index 89%
> rename from meta/recipes-kernel/lttng/lttng-ust_2.10.5.bb
> rename to meta/recipes-kernel/lttng/lttng-ust_2.11.0.bb
> index cfaad30b694..6d7c05e65e3 100644
> --- a/meta/recipes-kernel/lttng/lttng-ust_2.10.5.bb
> +++ b/meta/recipes-kernel/lttng/lttng-ust_2.11.0.bb
> @@ -15,6 +15,8 @@ PYTHON_OPTION = 
> "am_cv_python_pyexecdir='${PYTHON_SITEPACKAGES_DIR}' \
>
>  inherit autotools lib_package manpages python3native
>
> +EXTRA_OECONF = "--disable-numa"
> +
>  DEPENDS = "liburcu util-linux"
>  RDEPENDS_${PN}-bin = "python3-core"
>
> @@ -26,12 +28,11 @@ RCONFLICTS_${PN} = "lttng2-ust"
>  PE = "2"
>
>  SRC_URI = "https://lttng.org/files/lttng-ust/lttng-ust-${PV}.tar.bz2 \
> -   file://lttng-ust-doc-examples-disable.patch \
> 
> file://0001-python-lttngust-Makefile.am-Add-install-lib-to-setup.patch \
> -  "
> +   "
>
> -SRC_URI[md5sum] = "f0c86a9fa7dcfd0205fb42584a310b1c"
> -SRC_URI[sha256sum] = 
> "06f9ed9b2198855b1c7fcbf15fe57297ee259409ffa1b3bad87321412d98bc35"
> +SRC_URI[md5sum] = "99823cfeb76562d753ffe67880e9cc59"
> +SRC_URI[sha256sum] = 
> "683280cfe5e12021e64c32cef9eeb0128f1f23dec32ba28adb5a2074be37c4d8"
>
>  CVE_PRODUCT = "ust"
>
> --
> 2.17.1
>
> --
> ___
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 29/30] nfs-utils: update to 2.4.2

2019-12-14 Thread Khem Raj
clang format patch is still needed see

https://errors.yoctoproject.org/Errors/Details/297313/

On Thu, Dec 12, 2019 at 10:19 AM Alexander Kanavin
 wrote:
>
> Drop backports, and a musl patch that is no longer needed.
>
> Signed-off-by: Alexander Kanavin 
> ---
>  ...de-order-between-config.h-and-stat.h.patch | 156 ---
>  .../nfs-utils/clang-format-string.patch   | 183 --
>  .../nfs-utils-musl-res_querydomain.patch  |  46 -
>  ...{nfs-utils_2.4.1.bb => nfs-utils_2.4.2.bb} |   9 +-
>  4 files changed, 3 insertions(+), 391 deletions(-)
>  delete mode 100644 
> meta/recipes-connectivity/nfs-utils/nfs-utils/0001-Fix-include-order-between-config.h-and-stat.h.patch
>  delete mode 100644 
> meta/recipes-connectivity/nfs-utils/nfs-utils/clang-format-string.patch
>  delete mode 100644 
> meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-utils-musl-res_querydomain.patch
>  rename meta/recipes-connectivity/nfs-utils/{nfs-utils_2.4.1.bb => 
> nfs-utils_2.4.2.bb} (94%)
>
> diff --git 
> a/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-Fix-include-order-between-config.h-and-stat.h.patch
>  
> b/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-Fix-include-order-between-config.h-and-stat.h.patch
> deleted file mode 100644
> index 7b0f93535f9..000
> --- 
> a/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-Fix-include-order-between-config.h-and-stat.h.patch
> +++ /dev/null
> @@ -1,156 +0,0 @@
> -From 2fbc62e2a13fc22b6ae4910e295a2c10fb790486 Mon Sep 17 00:00:00 2001
> -From: Zoltan Karcagi 
> -Date: Mon, 12 Aug 2019 13:27:16 -0400
> -Subject: [PATCH] Fix include order between config.h and stat.h
> -
> -At least on Arch linux ARM, the definition of struct stat in stat.h depends
> -on __USE_FILE_OFFSET64. This symbol comes from config.h when defined,
> -therefore config.h must always be included before stat.h. Fix all
> -occurrences where the order is wrong by moving config.h to the top.
> -
> -This fixes the client side error "Stale file handle" when mounting from
> -a server running Arch Linux ARM.
> -
> -Signed-off-by: Zoltan Karcagi 
> -Signed-off-by: Steve Dickson 
> -
> -Upstream-Status: Backport
> -[http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commit;h=2fbc62e2a13fc22b6ae4910e295a2c10fb790486]
> -
> -Signed-off-by: Yi Zhao 
> 
> - support/misc/nfsd_path.c | 5 -
> - support/misc/xstat.c | 5 -
> - support/nfs/conffile.c   | 8 +++-
> - utils/blkmapd/device-discovery.c | 8 
> - utils/idmapd/idmapd.c| 8 
> - 5 files changed, 23 insertions(+), 11 deletions(-)
> -
> -diff --git a/support/misc/nfsd_path.c b/support/misc/nfsd_path.c
> -index 84e4802..f078a66 100644
>  a/support/misc/nfsd_path.c
> -+++ b/support/misc/nfsd_path.c
> -@@ -1,3 +1,7 @@
> -+#ifdef HAVE_CONFIG_H
> -+#include 
> -+#endif
> -+
> - #include 
> - #include 
> - #include 
> -@@ -5,7 +9,6 @@
> - #include 
> - #include 
> -
> --#include "config.h"
> - #include "conffile.h"
> - #include "xmalloc.h"
> - #include "xlog.h"
> -diff --git a/support/misc/xstat.c b/support/misc/xstat.c
> -index fa04788..4c997ee 100644
>  a/support/misc/xstat.c
> -+++ b/support/misc/xstat.c
> -@@ -1,3 +1,7 @@
> -+#ifdef HAVE_CONFIG_H
> -+#include 
> -+#endif
> -+
> - #include 
> - #include 
> - #include 
> -@@ -5,7 +9,6 @@
> - #include 
> - #include 
> -
> --#include "config.h"
> - #include "xstat.h"
> -
> - #ifdef HAVE_FSTATAT
> -diff --git a/support/nfs/conffile.c b/support/nfs/conffile.c
> -index b6400be..6ba8a35 100644
>  a/support/nfs/conffile.c
> -+++ b/support/nfs/conffile.c
> -@@ -500,7 +500,7 @@ conf_readfile(const char *path)
> -
> -   if ((stat (path, &sb) == 0) || (errno != ENOENT)) {
> -   char *new_conf_addr = NULL;
> --  size_t sz = sb.st_size;
> -+  off_t sz;
> -   int fd = open (path, O_RDONLY, 0);
> -
> -   if (fd == -1) {
> -@@ -517,6 +517,11 @@ conf_readfile(const char *path)
> -
> -   /* only after we have the lock, check the file size ready to 
> read it */
> -   sz = lseek(fd, 0, SEEK_END);
> -+  if (sz < 0) {
> -+  xlog_warn("conf_readfile: unable to determine file 
> size: %s",
> -+strerror(errno));
> -+  goto fail;
> -+  }
> -   lseek(fd, 0, SEEK_SET);
> -
> -   new_conf_addr = malloc(sz+1);
> -@@ -2162,6 +2167,7 @@ conf_write(const char *filename, const char *section, 
> const char *arg,
> -   ret = 0;
> -
> - cleanup:
> -+  flush_outqueue(&inqueue, NULL);
> -   flush_outqueue(&outqueue, NULL);
> -
> -   if (buff)
> -diff --git a/utils/blkmapd/device-discovery.c 
> b/utils/blkmapd/device-discovery.c
> -index e811703..f5f9b10 100644
>  a/utils/blkmapd/device-discovery.c
> -+++ b/utils/blkmapd/device-discovery.c
> -@@ -26,6 +26,10 @@
> -  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF S

Re: [OE-core] [PATCH 07/30] gstreamer1.0-python: add a patch to fix python 3.8 builds

2019-12-14 Thread Khem Raj
this fails with python 3.7

https://errors.yoctoproject.org/Errors/Details/297314/

On Thu, Dec 12, 2019 at 10:15 AM Alexander Kanavin
 wrote:
>
> Signed-off-by: Alexander Kanavin 
> ---
>  ...son.build-fix-builds-with-python-3.8.patch | 24 +++
>  .../gstreamer/gstreamer1.0-python_1.16.1.bb   |  4 +++-
>  2 files changed, 27 insertions(+), 1 deletion(-)
>  create mode 100644 
> meta/recipes-multimedia/gstreamer/gstreamer1.0-python/0001-meson.build-fix-builds-with-python-3.8.patch
>
> diff --git 
> a/meta/recipes-multimedia/gstreamer/gstreamer1.0-python/0001-meson.build-fix-builds-with-python-3.8.patch
>  
> b/meta/recipes-multimedia/gstreamer/gstreamer1.0-python/0001-meson.build-fix-builds-with-python-3.8.patch
> new file mode 100644
> index 000..053108ad50b
> --- /dev/null
> +++ 
> b/meta/recipes-multimedia/gstreamer/gstreamer1.0-python/0001-meson.build-fix-builds-with-python-3.8.patch
> @@ -0,0 +1,24 @@
> +From 61cfd1b49dc82baf14bb36d88b6c5be7b8c3d23a Mon Sep 17 00:00:00 2001
> +From: Alexander Kanavin 
> +Date: Mon, 2 Dec 2019 18:16:41 +0100
> +Subject: [PATCH] meson.build: fix builds with python 3.8
> +
> +Upstream-Status: Submitted 
> [https://gitlab.freedesktop.org/gstreamer/gst-python/merge_requests/14]
> +Signed-off-by: Alexander Kanavin 
> +---
> + meson.build | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/meson.build b/meson.build
> +index 1da81d5..3e0db38 100644
> +--- a/meson.build
>  b/meson.build
> +@@ -24,7 +24,7 @@ pygobject_dep = dependency('pygobject-3.0', fallback: 
> ['pygobject', 'pygobject_d
> +
> + pymod = import('python')
> + python = pymod.find_installation(get_option('python'))
> +-python_dep = python.dependency(required : true)
> ++python_dep = dependency('python3-embed', required : true)
> +
> + python_abi_flags = python.get_variable('ABIFLAGS', '')
> + pylib_loc = get_option('libpython-dir')
> diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-python_1.16.1.bb 
> b/meta/recipes-multimedia/gstreamer/gstreamer1.0-python_1.16.1.bb
> index b770ec060e1..0382360ec26 100644
> --- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-python_1.16.1.bb
> +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-python_1.16.1.bb
> @@ -5,7 +5,9 @@ SECTION = "multimedia"
>  LICENSE = "LGPLv2.1"
>  LIC_FILES_CHKSUM = "file://COPYING;md5=c34deae4e395ca07e725ab0076a5f740"
>
> -SRC_URI = 
> "https://gstreamer.freedesktop.org/src/${PNREAL}/${PNREAL}-${PV}.tar.xz";
> +SRC_URI = 
> "https://gstreamer.freedesktop.org/src/${PNREAL}/${PNREAL}-${PV}.tar.xz \
> +   file://0001-meson.build-fix-builds-with-python-3.8.patch \
> +   "
>  SRC_URI[md5sum] = "499645fbd1790c5845c02a3998dccc1b"
>  SRC_URI[sha256sum] = 
> "b469c8955126f41b8ce0bf689b7029f182cd305f422b3a8df35b780bd8347489"
>
> --
> 2.17.1
>
> --
> ___
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 19/30] acl/attr: update to latest upstream releases

2019-12-14 Thread Khem Raj
breaks pseudo-native

http://errors.yoctoproject.org/Errors/Details/297280/

On Thu, Dec 12, 2019 at 10:18 AM Alexander Kanavin
 wrote:
>
> The latest release use standard autotools, so drop all
> the build system related hacks and patches.
>
> Ptests have been rewritten, with 100% pass rate for both.
>
> Signed-off-by: Alexander Kanavin 
> ---
>  .../0001-test-patch-out-failing-bits.patch|  63 ++
>  ...dcode-the-build-path-into-a-helper-l.patch |  24 +
>  ...file-libacl-should-depend-on-include.patch |  51 --
>  ...-order-of-expected-output-of-getfacl.patch | 198 --
>  meta/recipes-support/attr/acl/configure.ac|  49 --
>  meta/recipes-support/attr/acl/run-ptest   |  60 +-
>  .../acl/test-fix-directory-permissions.patch  |  37 -
>  .../test-fix-insufficient-quoting-of.patch| 100 ---
>  ...-SELinux-machines-for-root-testcases.patch |  84 ---
>  meta/recipes-support/attr/acl_2.2.52.bb   |  52 --
>  meta/recipes-support/attr/acl_2.2.53.bb   |  60 ++
>  meta/recipes-support/attr/attr.inc|  41 +-
>  .../0001-Use-stdint-types-consistently.patch  |  69 --
>  .../attr/attr/attr-Missing-configure.ac.patch |  63 --
>  .../attr/attr/dont-use-decl-macros.patch  |  56 --
>  meta/recipes-support/attr/attr/run-ptest  |   3 +
>  meta/recipes-support/attr/attr_2.4.47.bb  |  15 -
>  meta/recipes-support/attr/attr_2.4.48.bb  |   6 +
>  meta/recipes-support/attr/ea-acl.inc  |  52 --
>  ...option-to-enable-disable-static-libr.patch |  70 --
>  ...e-attr.5-man-page-moved-to-man-pages.patch | 240 ---
>  .../Remove-the-section-2-man-pages.patch  | 666 --
>  .../attr/files/relative-libdir.patch  |  25 -
>  meta/recipes-support/attr/files/run-ptest |   5 -
>  24 files changed, 182 insertions(+), 1907 deletions(-)
>  create mode 100644 
> meta/recipes-support/attr/acl/0001-test-patch-out-failing-bits.patch
>  create mode 100644 
> meta/recipes-support/attr/acl/0001-tests-do-not-hardcode-the-build-path-into-a-helper-l.patch
>  delete mode 100644 
> meta/recipes-support/attr/acl/Makefile-libacl-should-depend-on-include.patch
>  delete mode 100644 
> meta/recipes-support/attr/acl/acl-fix-the-order-of-expected-output-of-getfacl.patch
>  delete mode 100644 meta/recipes-support/attr/acl/configure.ac
>  delete mode 100644 
> meta/recipes-support/attr/acl/test-fix-directory-permissions.patch
>  delete mode 100644 
> meta/recipes-support/attr/acl/test-fix-insufficient-quoting-of.patch
>  delete mode 100644 
> meta/recipes-support/attr/acl/test-fixups-on-SELinux-machines-for-root-testcases.patch
>  delete mode 100644 meta/recipes-support/attr/acl_2.2.52.bb
>  create mode 100644 meta/recipes-support/attr/acl_2.2.53.bb
>  delete mode 100644 
> meta/recipes-support/attr/attr/0001-Use-stdint-types-consistently.patch
>  delete mode 100644 
> meta/recipes-support/attr/attr/attr-Missing-configure.ac.patch
>  delete mode 100644 meta/recipes-support/attr/attr/dont-use-decl-macros.patch
>  create mode 100644 meta/recipes-support/attr/attr/run-ptest
>  delete mode 100644 meta/recipes-support/attr/attr_2.4.47.bb
>  create mode 100644 meta/recipes-support/attr/attr_2.4.48.bb
>  delete mode 100644 meta/recipes-support/attr/ea-acl.inc
>  delete mode 100644 
> meta/recipes-support/attr/files/0001-Added-configure-option-to-enable-disable-static-libr.patch
>  delete mode 100644 
> meta/recipes-support/attr/files/Remove-the-attr.5-man-page-moved-to-man-pages.patch
>  delete mode 100644 
> meta/recipes-support/attr/files/Remove-the-section-2-man-pages.patch
>  delete mode 100644 meta/recipes-support/attr/files/relative-libdir.patch
>  delete mode 100644 meta/recipes-support/attr/files/run-ptest
>
> diff --git 
> a/meta/recipes-support/attr/acl/0001-test-patch-out-failing-bits.patch 
> b/meta/recipes-support/attr/acl/0001-test-patch-out-failing-bits.patch
> new file mode 100644
> index 000..ba2ffee5d27
> --- /dev/null
> +++ b/meta/recipes-support/attr/acl/0001-test-patch-out-failing-bits.patch
> @@ -0,0 +1,63 @@
> +From 9e08219e0e99ee2589cf35fa8d52cef3515accce Mon Sep 17 00:00:00 2001
> +From: Alexander Kanavin 
> +Date: Thu, 12 Dec 2019 15:47:49 +0100
> +Subject: [PATCH] test: patch out failing bits
> +
> +I have confirmed on the host distro (Ubuntu 18.04) that they
> +fail as well; upstream probably haven't noticed because the
> +test is only executed under sudo.
> +
> +Upstream-Status: Inappropriate [disabling tests instead of fixing them 
> properly]
> +Signed-off-by: Alexander Kanavin 
> +---
> + test/root/permissions.test | 13 -
> + 1 file changed, 13 deletions(-)
> +
> +diff --git a/test/root/permissions.test b/test/root/permissions.test
> +index 8f8f825..21e8a95 100644
> +--- a/test/root/permissions.test
>  b/test/root/permissions.test
> +@@ -50,10 +50,6 @@ User daemon is a member in the owning group, which has 
> only read access.
> + Verify this.
> +
> +   $ su daemon
> +-  $ cat f
> +-  > root
> +-  > bin
> +-
> + 

Re: [OE-core] [PATCH] nss: 3.45 -> 3.47.1

2019-12-14 Thread Andreas Müller
On Sat, Dec 14, 2019 at 7:28 PM Alexander Kanavin
 wrote:
>
> On Sat, 14 Dec 2019 at 17:29, Khem Raj  wrote:
>>
>> > This option is only available with gyp, and not plain Makefiles 
>> > unfortunately. And the way I read it,
>> > it's not actually possible to disable :-/
>> >
>>
>> nss is used in quite a few apps, and disabling armv7a is not a good
>> option, plus hw crypto is only in armv8
>> thing.
>
>
> I guess I could patch that bit to make it conditional then. It is not 
> actually mandatory, it's just that they don't have a config switch to disable 
> it.
>
> In oe-core the only user of nss is rpm, and we're going to switch it over to 
> openssl or gcrypt.
Grepped around a bit and there are some recipes: most prominent are
firefox / chromium and V8 derived as qtwebengine / some recipes in
meta-netwoerking. / libreoffice

I bet there workarounds for those recipes possible but if Alex can add
some configuration it would save at us trouble/efforts.

Still am not convinced that armv7 was kicked out by intention. Am no
expert but what hardware do moz-people have in mind when writing in
their Makefile:

ifeq ($(CPU_ARCH),arm)
$(OBJDIR)/$(PROG_PREFIX)aes-armv8$(OBJ_SUFFIX): CFLAGS +=
-march=armv8-a -mfpu=crypto-neon-fp-armv8
$(OBJDIR)/$(PROG_PREFIX)gcm-arm32-neon$(OBJ_SUFFIX): CFLAGS += -mfpu=neon
endif

Maybe I should ask ask them...

CU

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


Re: [OE-core] [PATCH] nss: 3.45 -> 3.47.1

2019-12-14 Thread Alexander Kanavin
On Sat, 14 Dec 2019 at 17:29, Khem Raj  wrote:

> > This option is only available with gyp, and not plain Makefiles
> unfortunately. And the way I read it,
> > it's not actually possible to disable :-/
> >
>
> nss is used in quite a few apps, and disabling armv7a is not a good
> option, plus hw crypto is only in armv8
> thing.
>

I guess I could patch that bit to make it conditional then. It is not
actually mandatory, it's just that they don't have a config switch to
disable it.

In oe-core the only user of nss is rpm, and we're going to switch it over
to openssl or gcrypt.

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


[OE-core] [PATCH] mesa: Upgrade to 19.3.0

2019-12-14 Thread Alistair Francis
Signed-off-by: Alistair Francis 
---
 ...ck-for-all-linux-host_os-combinations.patch | 18 +-
 ...002-meson.build-make-TLS-ELF-optional.patch | 18 +-
 ...-Allow-enable-DRI-without-DRI-drivers.patch | 10 +-
 ...ble-asm-unconditionally-now-that-gen_.patch | 10 +-
 .../{mesa-gl_19.2.4.bb => mesa-gl_19.3.0.bb}   |  0
 .../mesa/{mesa_19.2.4.bb => mesa_19.3.0.bb}|  4 ++--
 6 files changed, 30 insertions(+), 30 deletions(-)
 rename meta/recipes-graphics/mesa/{mesa-gl_19.2.4.bb => mesa-gl_19.3.0.bb} 
(100%)
 rename meta/recipes-graphics/mesa/{mesa_19.2.4.bb => mesa_19.3.0.bb} (86%)

diff --git 
a/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
 
b/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
index 1869e11059..085254323c 100644
--- 
a/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
+++ 
b/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
@@ -1,6 +1,6 @@
-From b6d9bc97cb0e8c540a45dba5440b036fb940ff95 Mon Sep 17 00:00:00 2001
-From: Alistair Francis 
-Date: Mon, 11 Nov 2019 09:38:15 -0800
+From 0d9ed002eff176b902da266d89829a9b0cb10946 Mon Sep 17 00:00:00 2001
+From: Alistair Francis 
+Date: Thu, 14 Nov 2019 13:04:49 -0800
 Subject: [PATCH] meson.build: check for all linux host_os combinations
 
 Make sure that we are also looking for our host_os combinations like
@@ -13,30 +13,30 @@ Upstream-Status: Pending
 Signed-off-by: Anuj Mittal 
 Signed-off-by: Fabio Berton 
 Signed-off-by: Otavio Salvador 
-Signed-off-by: Alistair Francis 
+Signed-off-by: Alistair Francis 
 
 ---
  meson.build | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
 
 diff --git a/meson.build b/meson.build
-index d584152..a1f098c 100644
+index 898d025..09e3759 100644
 --- a/meson.build
 +++ b/meson.build
-@@ -117,7 +117,7 @@ with_any_opengl = with_opengl or with_gles1 or with_gles2
+@@ -124,7 +124,7 @@ with_any_opengl = with_opengl or with_gles1 or with_gles2
  # Only build shared_glapi if at least one OpenGL API is enabled
- with_shared_glapi = get_option('shared-glapi') and with_any_opengl
+ with_shared_glapi = with_shared_glapi and with_any_opengl
  
 -system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'gnu/kfreebsd', 
'dragonfly', 'linux', 'sunos'].contains(host_machine.system())
 +system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 
'dragonfly'].contains(host_machine.system()) or 
host_machine.system().startswith('linux')
  
  dri_drivers = get_option('dri-drivers')
  if dri_drivers.contains('auto')
-@@ -856,7 +856,7 @@ if cc.compiles('__uint128_t foo(void) { return 0; }',
+@@ -884,7 +884,7 @@ if cc.compiles('__uint128_t foo(void) { return 0; }',
  endif
  
  # TODO: this is very incomplete
--if ['linux', 'cygwin', 'gnu', 'gnu/kfreebsd'].contains(host_machine.system())
+-if ['linux', 'cygwin', 'gnu', 'freebsd', 
'gnu/kfreebsd'].contains(host_machine.system())
 +if ['cygwin', 'gnu', 'gnu/kfreebsd'].contains(host_machine.system()) or 
host_machine.system().startswith('linux')
pre_args += '-D_GNU_SOURCE'
  elif host_machine.system() == 'sunos'
diff --git 
a/meta/recipes-graphics/mesa/files/0002-meson.build-make-TLS-ELF-optional.patch 
b/meta/recipes-graphics/mesa/files/0002-meson.build-make-TLS-ELF-optional.patch
index 199ed572d5..cd35a1f850 100644
--- 
a/meta/recipes-graphics/mesa/files/0002-meson.build-make-TLS-ELF-optional.patch
+++ 
b/meta/recipes-graphics/mesa/files/0002-meson.build-make-TLS-ELF-optional.patch
@@ -1,13 +1,13 @@
-From af6923544de02ded648a736e07b9bd8b7c52dba9 Mon Sep 17 00:00:00 2001
-From: Alistair Francis 
-Date: Wed, 23 Oct 2019 09:46:28 -0700
+From df835389699b32bb6610b39972502e323f8e09e5 Mon Sep 17 00:00:00 2001
+From: Alistair Francis 
+Date: Thu, 14 Nov 2019 13:08:31 -0800
 Subject: [PATCH] meson.build: make TLS ELF optional
 
 USE_ELF_TLS has replaced GLX_USE_TLS so this patch is the original "make
 TLS GLX optional again" patch updated to the latest mesa.
 
 Upstream-Status: Inappropriate [configuration]
-Signed-off-by: Alistair Francis 
+Signed-off-by: Alistair Francis 
 
 ---
  meson.build   | 2 +-
@@ -15,23 +15,23 @@ Signed-off-by: Alistair Francis 
  2 files changed, 7 insertions(+), 1 deletion(-)
 
 diff --git a/meson.build b/meson.build
-index a1f098c..1e31eb4 100644
+index 09e3759..a954118 100644
 --- a/meson.build
 +++ b/meson.build
-@@ -378,7 +378,7 @@ if with_egl and not (with_platform_drm or 
with_platform_surfaceless or with_plat
+@@ -387,7 +387,7 @@ if with_egl and not (with_platform_drm or 
with_platform_surfaceless or with_plat
  endif
  
  # Android uses emutls for versions <= P/28. For USE_ELF_TLS we need ELF TLS.
--if not with_platform_android or get_option('platform-sdk-version') >= 29
+-if host_machine.system() != 'windows' and (not with_platform_android or 
get_option('platform-sdk-version') >= 29)
 +if (not with_platform_android or

Re: [OE-core] [PATCH] nss: 3.45 -> 3.47.1

2019-12-14 Thread Khem Raj
On Fri, Dec 13, 2019 at 7:21 AM Alexander Kanavin
 wrote:
>
> On Fri, 13 Dec 2019 at 15:46, Andreas Müller  wrote:
>>
>> >> Fails on beaglebone:
>> >>
>> >> https://autobuilder.yoctoproject.org/typhoon/#/builders/65/builds/1327
>> >
>> >
>> > I had a look into this: the issue is that new versions of nss require 
>> > hardware crypto capabilities on ARM (both 32 and 64 bit).
>> Do you have an link for this?
>
>
> Yes. We are using plain Makefiles to build (and not gyp), so the link is:
>
> https://github.com/nss-dev/nss/blob/4703a817f8b90cc3423620e5c7606bdbcedbcf2e/lib/freebl/Makefile#L782
>
>>
>> I think we should not do that because:
>>
>> Build log says:
>> | cc1: error: switch '-mcpu=cortex-a8' conflicts with '-march=armv8-a'
>> switch [-Werror]
>> | cc1: all warnings being treated as errors
>>
>> Nss sets '-march=armv8-a'. Checked in their sources and found that
>> this is done in lib/freebl source path [1]. With latests sources from
>> gihub-shadow they introduced 'disable_arm_hw_aes' [1]. Have no idea if
>> 3.47.1 already supports that but we should use it as packageconfig.
>
>
> This option is only available with gyp, and not plain Makefiles 
> unfortunately. And the way I read it,
> it's not actually possible to disable :-/
>

nss is used in quite a few apps, and disabling armv7a is not a good
option, plus hw crypto is only in armv8
thing.

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


[OE-core] [PATCH v3] tune-cortexa72-cortexa53: Add tunes

2019-12-14 Thread Joshua Watt
Adds tunes for Cortex-A72 Cortex-A53 big.LITTLE SoCs (with and without
crypto extensions), e.g. Rockchip RK3399

Signed-off-by: Joshua Watt 
---
 .../include/tune-cortexa72-cortexa53.inc  | 23 +++
 1 file changed, 23 insertions(+)
 create mode 100644 meta/conf/machine/include/tune-cortexa72-cortexa53.inc

diff --git a/meta/conf/machine/include/tune-cortexa72-cortexa53.inc 
b/meta/conf/machine/include/tune-cortexa72-cortexa53.inc
new file mode 100644
index 000..0d43531be70
--- /dev/null
+++ b/meta/conf/machine/include/tune-cortexa72-cortexa53.inc
@@ -0,0 +1,23 @@
+DEFAULTTUNE ?= "cortexa72-cortexa53"
+
+require conf/machine/include/arm/arch-armv8a.inc
+
+TUNEVALID[cortexa72-cortexa53] = "Enable big.LITTLE Cortex-A72.Cortex-A53 
specific processor optimizations"
+
+TUNECONFLICTS[aarch64] = "armv4 armv5 armv6 armv7 armv7a"
+
+MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", 
"cortexa72-cortexa53", "cortexa72-cortexa53:", "" ,d)}"
+
+TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "cortexa72-cortexa53", " 
-mtune=cortex-a72.cortex-a53", "", d)}"
+
+# cortexa72.cortexa53 implies crc support
+AVAILTUNES += "cortexa72-cortexa53 cortexa72-cortexa53-crypto"
+ARMPKGARCH_tune-cortexa72-cortexa53  = "cortexa72-cortexa53"
+ARMPKGARCH_tune-cortexa72-cortexa53-crypto   = "cortexa72-cortexa53"
+TUNE_FEATURES_tune-cortexa72-cortexa53   = 
"${TUNE_FEATURES_tune-armv8a-crc}"
+TUNE_FEATURES_tune-cortexa72-cortexa53-crypto= 
"${TUNE_FEATURES_tune-armv8a-crc-crypto}"
+PACKAGE_EXTRA_ARCHS_tune-cortexa72-cortexa53 = 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc}cortexa72-cortexa53"
+PACKAGE_EXTRA_ARCHS_tune-cortexa72-cortexa53-crypto  = 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa72-cortexa53 
cortexa72-cortexa53-crypto"
+BASE_LIB_tune-cortexa72-cortexa53= "lib64"
+BASE_LIB_tune-cortexa72-cortexa53-crypto = "lib64"
+
-- 
2.23.0

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