Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 4/4] mesa: Upgrade 12.0.3 -> 13.0.1
From: Jussi Kukkonen @ 2016-11-16 13:15 UTC (permalink / raw)
  To: openembedded-core
In-Reply-To: <cover.1479301275.git.jussi.kukkonen@intel.com>

New major release with OpenGL 4.4 support. Dependency on libudev has
been removed.

Rebase replace_glibc_check_with_linux.patch.
Add patch to find native wayland-scanner.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
---
 .../0001-Use-wayland-scanner-in-the-path.patch     | 37 ++++++++++++++++++++++
 .../files/replace_glibc_check_with_linux.patch     | 25 ++++++++++-----
 .../mesa/{mesa-gl_12.0.3.bb => mesa-gl_13.0.1.bb}  |  0
 meta/recipes-graphics/mesa/mesa.inc                |  2 +-
 .../mesa/{mesa_12.0.3.bb => mesa_13.0.1.bb}        |  5 +--
 5 files changed, 58 insertions(+), 11 deletions(-)
 create mode 100644 meta/recipes-graphics/mesa/files/0001-Use-wayland-scanner-in-the-path.patch
 rename meta/recipes-graphics/mesa/{mesa-gl_12.0.3.bb => mesa-gl_13.0.1.bb} (100%)
 rename meta/recipes-graphics/mesa/{mesa_12.0.3.bb => mesa_13.0.1.bb} (75%)

diff --git a/meta/recipes-graphics/mesa/files/0001-Use-wayland-scanner-in-the-path.patch b/meta/recipes-graphics/mesa/files/0001-Use-wayland-scanner-in-the-path.patch
new file mode 100644
index 0000000..e49695b
--- /dev/null
+++ b/meta/recipes-graphics/mesa/files/0001-Use-wayland-scanner-in-the-path.patch
@@ -0,0 +1,37 @@
+From 2f68fcaaf4964e7feeb383f5c26851965cda037c Mon Sep 17 00:00:00 2001
+From: Jussi Kukkonen <jussi.kukkonen@intel.com>
+Date: Tue, 15 Nov 2016 15:20:49 +0200
+Subject: [PATCH] Simplify wayland-scanner lookup
+
+Don't use pkg-config to lookup the path of a binary that's in the path.
+
+Alternatively we'd have to prefix the path returned by pkg-config with
+PKG_CONFIG_SYSROOT_DIR.
+
+Upstream-Status: Pending
+Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
+---
+ configure.ac | 7 +------
+ 1 file changed, 1 insertion(+), 6 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index e56e35a..a92005a 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -2020,12 +2020,7 @@ if test "x$with_egl_platforms" != "x" -a "x$enable_egl" != xyes; then
+     AC_MSG_ERROR([cannot build egl state tracker without EGL library])
+ fi
+ 
+-PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner],
+-        WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`,
+-        WAYLAND_SCANNER='')
+-if test "x$WAYLAND_SCANNER" = x; then
+-    AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner])
+-fi
++AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner])
+ 
+ # Do per-EGL platform setups and checks
+ egl_platforms=`IFS=', '; echo $with_egl_platforms`
+-- 
+2.1.4
+
diff --git a/meta/recipes-graphics/mesa/files/replace_glibc_check_with_linux.patch b/meta/recipes-graphics/mesa/files/replace_glibc_check_with_linux.patch
index e4461ef..0280ee8 100644
--- a/meta/recipes-graphics/mesa/files/replace_glibc_check_with_linux.patch
+++ b/meta/recipes-graphics/mesa/files/replace_glibc_check_with_linux.patch
@@ -2,16 +2,25 @@ endianness check is OS wide and not specific to libc
 
 Signed-off-by: Khem Raj <raj.khem@gmail.com>
 Upstream-Status: Pending
-Index: mesa-11.1.1/src/gallium/include/pipe/p_config.h
-===================================================================
---- mesa-11.1.1.orig/src/gallium/include/pipe/p_config.h
-+++ mesa-11.1.1/src/gallium/include/pipe/p_config.h
-@@ -130,7 +130,7 @@
-  * Endian detection.
-  */
+
+Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
+---
+ src/util/u_endian.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/util/u_endian.h b/src/util/u_endian.h
+index b9d563d..2d5eab9 100644
+--- a/src/util/u_endian.h
++++ b/src/util/u_endian.h
+@@ -27,7 +27,7 @@
+ #ifndef U_ENDIAN_H
+ #define U_ENDIAN_H
  
--#ifdef __GLIBC__
+-#if defined(__GLIBC__) || defined(ANDROID)
 +#if defined(__linux__)
  #include <endian.h>
  
  #if __BYTE_ORDER == __LITTLE_ENDIAN
+-- 
+2.1.4
+
diff --git a/meta/recipes-graphics/mesa/mesa-gl_12.0.3.bb b/meta/recipes-graphics/mesa/mesa-gl_13.0.1.bb
similarity index 100%
rename from meta/recipes-graphics/mesa/mesa-gl_12.0.3.bb
rename to meta/recipes-graphics/mesa/mesa-gl_13.0.1.bb
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index e4880ff..2f5511e 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -14,7 +14,7 @@ LIC_FILES_CHKSUM = "file://docs/license.html;md5=899fbe7e42d494c7c8c159c7001693d
 
 PE = "2"
 
-DEPENDS = "expat makedepend-native flex-native bison-native libxml2-native udev"
+DEPENDS = "expat makedepend-native flex-native bison-native libxml2-native"
 
 PROVIDES = "virtual/libgl virtual/libgles1 virtual/libgles2 virtual/egl virtual/mesa"
 
diff --git a/meta/recipes-graphics/mesa/mesa_12.0.3.bb b/meta/recipes-graphics/mesa/mesa_13.0.1.bb
similarity index 75%
rename from meta/recipes-graphics/mesa/mesa_12.0.3.bb
rename to meta/recipes-graphics/mesa/mesa_13.0.1.bb
index acc8353..37ac15f 100644
--- a/meta/recipes-graphics/mesa/mesa_12.0.3.bb
+++ b/meta/recipes-graphics/mesa/mesa_13.0.1.bb
@@ -3,10 +3,11 @@ require ${BPN}.inc
 SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/${PV}/mesa-${PV}.tar.xz \
            file://replace_glibc_check_with_linux.patch \
            file://disable-asm-on-non-gcc.patch \
+           file://0001-Use-wayland-scanner-in-the-path.patch \
 "
 
-SRC_URI[md5sum] = "1113699c714042d8c4df4766be8c57d8"
-SRC_URI[sha256sum] = "1dc86dd9b51272eee1fad3df65e18cda2e556ef1bc0b6e07cd750b9757f493b1"
+SRC_URI[md5sum] = "72b7f4d0c2407f367484abd201cb8276"
+SRC_URI[sha256sum] = "71962fb2bf77d33b0ad4a565b490dbbeaf4619099c6d9722f04a73187957a731"
 
 #because we cannot rely on the fact that all apps will use pkgconfig,
 #make eglplatform.h independent of MESA_EGL_NO_X11_HEADER
-- 
2.1.4



^ permalink raw reply related

* [PATCH 3/4] piglit: Upgrade to current master head
From: Jussi Kukkonen @ 2016-11-16 13:15 UTC (permalink / raw)
  To: openembedded-core
In-Reply-To: <cover.1479301275.git.jussi.kukkonen@intel.com>

Remove upstreamed patches.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
---
 .../0001-cmake-Link-test-utils-with-ldl.patch      | 41 ----------------
 ...0001-cmake-Link-utils-with-xcb-explicitly.patch | 54 ----------------------
 meta/recipes-graphics/piglit/piglit_git.bb         |  6 +--
 3 files changed, 2 insertions(+), 99 deletions(-)
 delete mode 100644 meta/recipes-graphics/piglit/piglit/0001-cmake-Link-test-utils-with-ldl.patch
 delete mode 100644 meta/recipes-graphics/piglit/piglit/0001-cmake-Link-utils-with-xcb-explicitly.patch

diff --git a/meta/recipes-graphics/piglit/piglit/0001-cmake-Link-test-utils-with-ldl.patch b/meta/recipes-graphics/piglit/piglit/0001-cmake-Link-test-utils-with-ldl.patch
deleted file mode 100644
index 2e1c947..0000000
--- a/meta/recipes-graphics/piglit/piglit/0001-cmake-Link-test-utils-with-ldl.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-Backport patch to fix build with gold linker.
-
-Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
-Upstream-Status: Backport
-
-
-
-From 93a7113485cf1c55fd7076116faf5b3a690706b2 Mon Sep 17 00:00:00 2001
-From: Jussi Kukkonen <jussi.kukkonen@intel.com>
-Date: Tue, 30 Aug 2016 17:17:28 +0300
-Subject: [PATCH] cmake: Link test utils with "-ldl"
-
-Without this linking CXX executables (e.g. fbo-blit-stretch) fails
-with gold linker:
-
-| libpiglitutil_gl.so.0: error: undefined reference to 'dlsym'
-| libpiglitutil_gl.so.0: error: undefined reference to 'dlerror'
-| libpiglitutil_gl.so.0: error: undefined reference to 'dlopen'
-
-Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
-Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
----
- tests/util/CMakeLists.txt | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/tests/util/CMakeLists.txt b/tests/util/CMakeLists.txt
-index e1f8073..3d5bef5 100644
---- a/tests/util/CMakeLists.txt
-+++ b/tests/util/CMakeLists.txt
-@@ -11,6 +11,8 @@ set_source_files_properties(
- 	PROPERTIES GENERATED 1
- 	)
- 
-+link_libraries(${CMAKE_DL_LIBS})
-+
- if(HAVE_LIBCACA)
-     link_libraries(caca)
- endif()
--- 
-2.9.3
-
diff --git a/meta/recipes-graphics/piglit/piglit/0001-cmake-Link-utils-with-xcb-explicitly.patch b/meta/recipes-graphics/piglit/piglit/0001-cmake-Link-utils-with-xcb-explicitly.patch
deleted file mode 100644
index 845804d..0000000
--- a/meta/recipes-graphics/piglit/piglit/0001-cmake-Link-utils-with-xcb-explicitly.patch
+++ /dev/null
@@ -1,54 +0,0 @@
-From 73e4fbc5777eddd89bb0fb16e90343551fe3e0ef Mon Sep 17 00:00:00 2001
-From: Jussi Kukkonen <jussi.kukkonen@intel.com>
-Date: Tue, 5 Jul 2016 10:56:23 +0300
-Subject: [PATCH] cmake: Link utils with xcb explicitly
-
-Linking with g++ can reportedly lead to:
-
-libpiglitutil_gl.so.0: error: undefined reference to 'xcb_connect'
-libpiglitutil_gl.so.0: error: undefined reference to 'xcb_get_setup'
-libpiglitutil_gl.so.0: error: undefined reference to 'xcb_setup_roots_iterator'
-
-This may have appeared now because xcb-dri2 used to overlink publicly
-but now does not.
-
-Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
-Upstream-Status: Accepted
----
- CMakeLists.txt            | 1 +
- tests/util/CMakeLists.txt | 2 ++
- 2 files changed, 3 insertions(+)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 8e2abba..2e1a473 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -151,6 +151,7 @@ IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
- 
- 	pkg_check_modules(LIBDRM QUIET libdrm)
- 	pkg_check_modules(LIBDRM_INTEL QUIET libdrm_intel)
-+	pkg_check_modules(XCB QUIET xcb)
- 	pkg_check_modules(XCB_DRI2 QUIET xcb-dri2)
- 	pkg_check_modules(GLPROTO QUIET glproto)
- ELSEIF(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
-diff --git a/tests/util/CMakeLists.txt b/tests/util/CMakeLists.txt
-index fb22ffa..e1f8073 100644
---- a/tests/util/CMakeLists.txt
-+++ b/tests/util/CMakeLists.txt
-@@ -121,11 +121,13 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
- 
- 		list(APPEND UTIL_GL_LIBS
- 			${LIBDRM_LDFLAGS}
-+			${XCB_LDFLAGS}
- 			${XCB_DRI2_LDFLAGS}
- 		)
- 
- 		list(APPEND UTIL_GL_INCLUDES
- 			${LIBDRM_INCLUDE_DIRS}
-+			${XCB_INCLUDE_DIRS}
- 			${XCB_DRI2_INCLUDE_DIRS}
- 		)
- 
--- 
-2.1.4
-
diff --git a/meta/recipes-graphics/piglit/piglit_git.bb b/meta/recipes-graphics/piglit/piglit_git.bb
index 916154a..6533855 100644
--- a/meta/recipes-graphics/piglit/piglit_git.bb
+++ b/meta/recipes-graphics/piglit/piglit_git.bb
@@ -5,13 +5,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b2beded7103a3d8a442a2a0391d607b0"
 SRC_URI = "git://anongit.freedesktop.org/piglit \
            file://0001-cmake-install-bash-completions-in-the-right-place.patch \
            file://0001-tests-Use-FE_UPWARD-only-if-its-defined-in-fenv.h.patch \
-           file://0001-cmake-Link-utils-with-xcb-explicitly.patch \
-           file://0001-cmake-Link-test-utils-with-ldl.patch \
            file://piglit.sh \
            "
 
-# From 2016-07-07
-SRCREV = "c39e41a86551eb390b8da23232dc8577639403d0"
+# Head of master 2016-11-16
+SRCREV = "1619c37a88770c9c0d8467939e34ffd337241c14"
 # (when PV goes above 1.0 remove the trailing r)
 PV = "1.0+gitr${SRCPV}"
 
-- 
2.1.4



^ permalink raw reply related

* [PATCH 2/4] core-tools-testapps: Re-add piglit
From: Jussi Kukkonen @ 2016-11-16 13:15 UTC (permalink / raw)
  To: openembedded-core
In-Reply-To: <cover.1479301275.git.jussi.kukkonen@intel.com>

Piglit was removed from testapps in 9e227ecb3a because it made
sdk images massive. Add piglit back now that the installed size is
no longer humongous: it still needs 1.5 GB free space at runtime but
the image sizes stay reasonable.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
---
 meta/recipes-core/packagegroups/packagegroup-core-tools-testapps.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-core/packagegroups/packagegroup-core-tools-testapps.bb b/meta/recipes-core/packagegroups/packagegroup-core-tools-testapps.bb
index 3170978..69cfd57 100644
--- a/meta/recipes-core/packagegroups/packagegroup-core-tools-testapps.bb
+++ b/meta/recipes-core/packagegroups/packagegroup-core-tools-testapps.bb
@@ -17,6 +17,8 @@ KEXECTOOLS_nios2 ?= ""
 
 X11GLTOOLS = "\
     mesa-demos \
+    piglit \
+    piglit-generated-tests-compressed \
     "
 
 3GTOOLS = "\
-- 
2.1.4



^ permalink raw reply related

* [PATCH 1/4] piglit: Package tests in compressed form as well
From: Jussi Kukkonen @ 2016-11-16 13:15 UTC (permalink / raw)
  To: openembedded-core
In-Reply-To: <cover.1479301275.git.jussi.kukkonen@intel.com>

Modify packaging so that generated tests are available in two forms:
* piglit-generated-tests contains the tests as they are now (1.5GB
  when installed)
* piglit-generated-tests-compressed contains a tar.gz with the same
  files (45 MB when installed)

Add wrapper script that decompresses the tests at runtime: this
requires 1.5GB free space.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
---
 meta/recipes-graphics/piglit/piglit/piglit.sh | 20 ++++++++++++++++++++
 meta/recipes-graphics/piglit/piglit_git.bb    | 20 +++++++++++++++++++-
 2 files changed, 39 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-graphics/piglit/piglit/piglit.sh

diff --git a/meta/recipes-graphics/piglit/piglit/piglit.sh b/meta/recipes-graphics/piglit/piglit/piglit.sh
new file mode 100644
index 0000000..3308b70
--- /dev/null
+++ b/meta/recipes-graphics/piglit/piglit/piglit.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+# If we're using compressed generated tests we may need to
+# decompress first. This is going to require at least 1.5 GB of space
+if [[ /usr/lib/piglit/generated_tests.tar.gz -nt /usr/lib/piglit/generated_tests/ ]]; then
+    echo "Decompressing generated tests..."
+    tar -C /usr/lib/piglit/ -zxf /usr/lib/piglit/generated_tests.tar.gz || {
+        echo "Failed to decompress tests, exiting."
+        exit 1
+    }
+    touch /usr/lib/piglit/generated_tests
+fi
+
+if ! [[ -d /usr/lib/piglit/generated_tests ]]; then
+    echo "NOTE: No generated tests found, install piglit-generated-tests-compressed"
+    echo "      or piglit-generated-tests to include them in the tests."
+fi
+
+echo "Now running piglit..."
+PIGLIT_NO_WINDOW=1 piglit.real "$@"
diff --git a/meta/recipes-graphics/piglit/piglit_git.bb b/meta/recipes-graphics/piglit/piglit_git.bb
index 82adcde..916154a 100644
--- a/meta/recipes-graphics/piglit/piglit_git.bb
+++ b/meta/recipes-graphics/piglit/piglit_git.bb
@@ -7,6 +7,7 @@ SRC_URI = "git://anongit.freedesktop.org/piglit \
            file://0001-tests-Use-FE_UPWARD-only-if-its-defined-in-fenv.h.patch \
            file://0001-cmake-Link-utils-with-xcb-explicitly.patch \
            file://0001-cmake-Link-test-utils-with-ldl.patch \
+           file://piglit.sh \
            "
 
 # From 2016-07-07
@@ -39,9 +40,14 @@ do_configure_prepend() {
 }
 
 do_install() {
-	oe_runmake -C ${B} 'DESTDIR=${D}' install/strip
+    oe_runmake -C ${B} 'DESTDIR=${D}' install/strip
+    mv ${D}${bindir}/piglit ${D}${bindir}/piglit.real
+    install -m 755 ${WORKDIR}/piglit.sh ${D}${bindir}/piglit
+    tar -C ${D}${libdir}/piglit/ -czf ${D}${libdir}/piglit/generated_tests.tar.gz generated_tests/
 }
 
+PACKAGES =+ "${PN}-generated-tests ${PN}-generated-tests-compressed"
+
 RDEPENDS_${PN} = "waffle python3 python3-mako python3-json \
 	python3-subprocess python3-misc python3-importlib \
 	python3-unixadmin python3-xml python3-multiprocessing \
@@ -50,3 +56,15 @@ RDEPENDS_${PN} = "waffle python3 python3-mako python3-json \
 	"
 
 INSANE_SKIP_${PN} += "dev-so already-stripped"
+
+SUMMARY_${PN}-generated-tests = "Generated piglit tests (multiple GB)"
+FILES_${PN}-generated-tests = "${libdir}/piglit/generated_tests/*"
+CONFLICTS_${PN}-generated-tests = "${PN}-generated-tests-compressed"
+
+SUMMARY_${PN}-generated-tests-compressed = "Generated piglit tests in compressed archive"
+FILES_${PN}-generated-tests-compressed = "${libdir}/piglit/generated_tests.tar.gz"
+CONFLICTS_${PN}-generated-tests-compressed = "${PN}-generated-tests"
+pkg_postrm_${PN}-generated-tests-compressed () {
+    rm -rf $D${libdir}/piglit/generated_tests/
+}
+
-- 
2.1.4



^ permalink raw reply related

* [PATCH 0/4] Upgrade mesa, piglit
From: Jussi Kukkonen @ 2016-11-16 13:14 UTC (permalink / raw)
  To: openembedded-core

This includes
 * Mesa 13.0.1 upgrade
 * piglit master upgrade
 * piglit test compression patches that I sent earlier
All three are independent of each other.

This passes a quick smoke test and piglit results are ok:

           pass:   57334
           fail:     345
          crash:       1
           skip:    7558
           warn:       7
          total:   65245


Thanks,
 Jussi

The following changes since commit 7c3a47ed8965c3a3eb90a9a4678d5caedbba6337:

  bitbake: toaster: settings set ALLOWED_HOSTS to * in debug mode (2016-11-16 11:38:44 +0000)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib jku/mesa-piglit
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=jku/mesa-piglit

Jussi Kukkonen (4):
  piglit: Package tests in compressed form as well
  core-tools-testapps: Re-add piglit
  piglit: Upgrade to current master head
  mesa: Upgrade 12.0.3 -> 13.0.1

 .../packagegroup-core-tools-testapps.bb            |  2 +
 .../0001-Use-wayland-scanner-in-the-path.patch     | 37 +++++++++++++++
 .../files/replace_glibc_check_with_linux.patch     | 25 ++++++----
 .../mesa/{mesa-gl_12.0.3.bb => mesa-gl_13.0.1.bb}  |  0
 meta/recipes-graphics/mesa/mesa.inc                |  2 +-
 .../mesa/{mesa_12.0.3.bb => mesa_13.0.1.bb}        |  5 +-
 .../0001-cmake-Link-test-utils-with-ldl.patch      | 41 ----------------
 ...0001-cmake-Link-utils-with-xcb-explicitly.patch | 54 ----------------------
 meta/recipes-graphics/piglit/piglit/piglit.sh      | 20 ++++++++
 meta/recipes-graphics/piglit/piglit_git.bb         | 26 +++++++++--
 10 files changed, 101 insertions(+), 111 deletions(-)
 create mode 100644 meta/recipes-graphics/mesa/files/0001-Use-wayland-scanner-in-the-path.patch
 rename meta/recipes-graphics/mesa/{mesa-gl_12.0.3.bb => mesa-gl_13.0.1.bb} (100%)
 rename meta/recipes-graphics/mesa/{mesa_12.0.3.bb => mesa_13.0.1.bb} (75%)
 delete mode 100644 meta/recipes-graphics/piglit/piglit/0001-cmake-Link-test-utils-with-ldl.patch
 delete mode 100644 meta/recipes-graphics/piglit/piglit/0001-cmake-Link-utils-with-xcb-explicitly.patch
 create mode 100644 meta/recipes-graphics/piglit/piglit/piglit.sh

-- 
2.1.4



^ permalink raw reply

* Morty maintainer
From: Richard Purdie @ 2016-11-16 11:49 UTC (permalink / raw)
  To: openembedded-core

Armin has kindly volunteered to maintain the morty stable release
branch and has already put together a great series.

I don't want to overload Armin so if anyone else wants to step forward,
let me know and we can discuss it. Right now its looking likely Armin
will be the maintainer though (thanks Armin!).

Cheers,

Richard


^ permalink raw reply

* [PATCH] sanity: removed broken compiler check
From: Enrico Scholz @ 2016-11-16 11:39 UTC (permalink / raw)
  To: openembedded-core; +Cc: Enrico Scholz

From: Enrico Scholz <enrico.scholz@ensc.de>

The compiler check is broken because it checks for the existance of
${CC} as a file.  This fails with ccache with

|    Please install the following missing utilities: C Compiler (ccache
gcc ),C++ Compiler (ccache g++ )

Remove this check for now.

Signed-off-by: Enrico Scholz <enrico.scholz@ensc.de>
---
 meta/classes/sanity.bbclass | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 7388da6..46f54df 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -669,12 +669,6 @@ def check_sanity_version_change(status, d):
     if not check_app_exists("${MAKE}", d):
         missing = missing + "GNU make,"
 
-    if not check_app_exists('${BUILD_CC}', d):
-        missing = missing + "C Compiler (%s)," % d.getVar("BUILD_CC", True)
-
-    if not check_app_exists('${BUILD_CXX}', d):
-        missing = missing + "C++ Compiler (%s)," % d.getVar("BUILD_CXX", True)
-
     required_utilities = d.getVar('SANITY_REQUIRED_UTILITIES', True)
 
     for util in required_utilities.split():
-- 
2.7.4



^ permalink raw reply related

* [PATCH] binconfig: Use d.getVar
From: Richard Purdie @ 2016-11-16 11:18 UTC (permalink / raw)
  To: openembedded-core

The bb.data API is deprecated, use d.getVar instead.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

diff --git a/meta/classes/binconfig.bbclass b/meta/classes/binconfig.bbclass
index cbc4173..8591308 100644
--- a/meta/classes/binconfig.bbclass
+++ b/meta/classes/binconfig.bbclass
@@ -21,8 +21,8 @@ def get_binconfig_mangle(d):
         s += " -e 's:OEEXECPREFIX:${STAGING_DIR_HOST}${exec_prefix}:'"
         s += " -e 's:-I${WORKDIR}:-I${STAGING_INCDIR}:'"
         s += " -e 's:-L${WORKDIR}:-L${STAGING_LIBDIR}:'"
-        if bb.data.getVar("OE_BINCONFIG_EXTRA_MANGLE", d):
-            s += bb.data.getVar("OE_BINCONFIG_EXTRA_MANGLE", d)
+        if d.getVar("OE_BINCONFIG_EXTRA_MANGLE", False):
+            s += d.getVar("OE_BINCONFIG_EXTRA_MANGLE", True)
 
     return s
 




^ permalink raw reply related

* Re: \n in DESCRIPTION creates invalid (ipk) packages? (was: Re: [oe][meta-networking][PATCH 0/2] ncp - a fast file copy tool for LANs)
From: Martin Jansa @ 2016-11-16 10:59 UTC (permalink / raw)
  To: André Draszik; +Cc: openembedded-core
In-Reply-To: <1479287229.3131.10.camel@andred.net>

[-- Attachment #1: Type: text/plain, Size: 2026 bytes --]

On Wed, Nov 16, 2016 at 09:07:09AM +0000, André Draszik wrote:
> On Tue, 2016-11-15 at 17:19 +0000, André Draszik wrote:
> > On Tue, 2016-11-15 at 15:43 +0000, André Draszik wrote:
> > > "ncp" is a utility for copying files in a LAN. It has absolutely
> > > no security or integrity checking, no throttling, no features,
> > > except one:
> > >   you don't have to type the coordinates of your peer.
> > 
> > Hm, hold on. Something went wrong along the way. I can't actually install
> > it
> > anymore:
> > 
> > root@poky:~# opkg update
> > Package ncp-dbg version 1.2.4-r0 has no valid architecture, ignoring.
> > Package ncp-dev version 1.2.4-r0 has no valid architecture, ignoring.
> > Package ncp-doc version 1.2.4-r0 has no valid architecture, ignoring.
> > Package ncp version 1.2.4-r0 has no valid architecture, ignoring.
> > 
> > root@poky:~# opkg install ncp
> > Package ncp-dbg version 1.2.4-r0 has no valid architecture, ignoring.
> > Package ncp-dev version 1.2.4-r0 has no valid architecture, ignoring.
> > Package ncp-doc version 1.2.4-r0 has no valid architecture, ignoring.
> > Package ncp version 1.2.4-r0 has no valid architecture, ignoring.
> > Collected errors:
> >  * opkg_prepare_url_for_install: Couldn't find anything to satisfy 'ncp'.
> 
> It looks like this was caused by additional \n in the DESCRIPTION string. Is
> it expected that those cause the packaging process to create apparently
> invalid ipk packages?

Was the \n at the end of DESCRIPTION?
If it leads into empty line in status file, then it's considered
separator for next package, see:
http://git.yoctoproject.org/cgit/cgit.cgi/opkg-utils/commit/?id=7f0a7976c29b34feaf4f6b00f0a63626614d1c7d

> 
> 
> 
> 
> Cheers,
> Andre'
> 
> -- 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 169 bytes --]

^ permalink raw reply

* Re: [PATCH] package.bbclass: allow using EXCLUDE_FROM_SHLIBS for subpackages
From: Richard Purdie @ 2016-11-16 10:47 UTC (permalink / raw)
  To: Andrii Bordunov, openembedded-core
In-Reply-To: <1476118955-12401-1-git-send-email-aborduno@cisco.com>

On Mon, 2016-10-10 at 20:02 +0300, Andrii Bordunov wrote:
> Some packages containing shared libraries might be registered
> as shlib providers when they shouldn't (for example, the lib is for
> their private use and must not generate any dependency).
> 
> EXCLUDE_FROM_SHLIBS is targeted at that, but it could be set
> for entire recipe only.
> 
> This patch expands EXCLUDE_FROM_SHLIBS usage, so now it's possible
> to set it in a style similar with RDEPENDS. For example:
>  EXCLUDE_FROM_SHLIBS_${PN}-ptest = "1"
> 
> Signed-off-by: Andrii Bordunov <aborduno@cisco.com>
> ---
>  meta/classes/package.bbclass | 12 ++++++++++--
>  1 file changed, 10 insertions(+), 2 deletions(-)

My main concern here is actually performance. For a package with many
sub packages you just added many calls to getVar when that getVar is
extremely unlikely to find any value. Whilst not hugely slow, that
operation isn't trivial and hard to fix later.

I'm wondering if we could support the syntax

EXCLUDE_FROM_SHLIBS = "${PN}-ptest"

and then have "1", used in a couple of places as the special value to
mean all packages?

Also please use False, not 0 as the parameter to getVar.

Cheers,

Richard



^ permalink raw reply

* Re: [PATCH] package.bbclass: allow using EXCLUDE_FROM_SHLIBS for subpackages
From: Burton, Ross @ 2016-11-16 10:29 UTC (permalink / raw)
  To: Andrii Bordunov; +Cc: OE-core
In-Reply-To: <3c0307d1-0781-1d32-9a86-e5ff6fb44a2d@cisco.com>

[-- Attachment #1: Type: text/plain, Size: 242 bytes --]

On 15 November 2016 at 15:05, Andrii Bordunov <aborduno@cisco.com> wrote:

> Ping-2. Guys? Anything?
>

Sorry, missed this.  It looks reasonable and doesn't introduce any changes
to existing packaging, so it's in my queue now.

Ross

[-- Attachment #2: Type: text/html, Size: 655 bytes --]

^ permalink raw reply

* Re: libtool --with-libtool-sysroot
From: Jack Mitchell @ 2016-11-16 10:20 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core
In-Reply-To: <CAJTo0LZoieB7vWei+fM=3vWzm1j4wgGmvyxE_5X0H-ZYdsZmaw@mail.gmail.com>

On 11/11/16 17:33, Burton, Ross wrote:
>
> On 11 November 2016 at 17:31, Jack Mitchell <ml@embed.me.uk
> <mailto:ml@embed.me.uk>> wrote:
>
>     How would one check which libtool was being used, or influence which
>     one autotools chooses?
>
>
> One common problem is a makefile or configure using "libtool" directly
> instead of $(LIBTOOL).
>
> Grep the generated Makefiles for "libtool", the only instance where it
> is executed should be in an assignment to LIBTOOL.  For example, glib:
>
> LIBTOOL = $(top_builddir)/x86_64-poky-linux-libtool
>

I got to the bottom of this, I was switching between native and cross 
compiling but only running 'autoreconf -i' so it was detecting libtool 
was already present from previous native runs and not replacing it with 
our 'cross' version of libtool. I feel like there should be a binary 
compatibility check in there to auto overwrite if they don't match, but 
hey ho.

Always use autoreconf -if to force update of all the required autotools 
scripts in future.

Cheers,
Jack.


^ permalink raw reply

* [PATCH] nfs-utils: fix protocol minor version fall-back
From: Yi Zhao @ 2016-11-16 10:07 UTC (permalink / raw)
  To: openembedded-core

Mount nfs directory would fail if no specific nfsvers:
mount -t nfs IP:/foo/bar/ /mnt/
mount.nfs: an incorrect mount option was specified

mount.nfs currently expects mount(2) to fail with EPROTONOSUPPORT if
the kernel doesn't understand the requested NFS version.
Unfortunately if the requested minor is not known to the kernel
it returns -EINVAL.

Backport patch from nfs-utils-1.3.4 to fix this issue.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
 .../fix-protocol-minor-version-fall-back.patch     | 55 ++++++++++++++++++++++
 .../nfs-utils/nfs-utils_1.3.3.bb                   |  1 +
 2 files changed, 56 insertions(+)
 create mode 100644 meta/recipes-connectivity/nfs-utils/nfs-utils/fix-protocol-minor-version-fall-back.patch

diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/fix-protocol-minor-version-fall-back.patch b/meta/recipes-connectivity/nfs-utils/nfs-utils/fix-protocol-minor-version-fall-back.patch
new file mode 100644
index 0000000..683246c
--- /dev/null
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/fix-protocol-minor-version-fall-back.patch
@@ -0,0 +1,55 @@
+From 78bb645a42c216b37b8d930c7c849a3fa89babf8 Mon Sep 17 00:00:00 2001
+From: Takashi Iwai <tiwai@suse.com>
+Date: Sat, 16 Jan 2016 12:02:30 -0500
+Subject: [PATCH] Fix protocol minor version fall-back
+
+mount.nfs currently expects mount(2) to fail with EPROTONOSUPPORT if
+the kernel doesn't understand the requested NFS version.
+
+Unfortunately if the requested minor is not known to the kernel
+it returns -EINVAL.
+In kernels since 3.11 this can happen in nfs4_alloc_client(), if
+compiled without NFS_V4_2.
+
+More generally it can happen in in nfs_validate_text_mount_data()
+when nfs_parse_mount_options() returns 0 because
+nfs_parse_version_string()
+didn't recognise the version.
+
+EPROTONOSUPPORT is only returned if NFSv4 support is completely compiled
+out.
+
+So nfs_autonegotiate needs to check for EINVAL as well as
+EPROTONOSUPPORT.
+
+URL: https://bugzilla.opensuse.org/show_bug.cgi?id=959211
+Reported-by: Takashi Iwai <tiwai@suse.com>
+Signed-off-by: NeilBrown <neilb@suse.com>
+Signed-off-by: Steve Dickson <steved@redhat.com>
+
+
+Upstream-Status: Backport
+http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=patch;h=78bb645a42c216b37b8d930c7c849a3fa89babf8
+
+Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
+---
+ utils/mount/stropts.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/utils/mount/stropts.c b/utils/mount/stropts.c
+index c8f5a6d..86829a9 100644
+--- a/utils/mount/stropts.c
++++ b/utils/mount/stropts.c
+@@ -841,6 +841,9 @@ check_result:
+ 	case EPROTONOSUPPORT:
+ 		/* A clear indication that the server or our
+ 		 * client does not support NFS version 4 and minor */
++	case EINVAL:
++		/* A less clear indication that our client
++		 * does not support NFSv4 minor version. */
+ 		if (mi->version.v_mode == V_GENERAL &&
+ 			mi->version.minor == 0)
+ 				return result;
+-- 
+2.7.4
+
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.3.bb b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.3.bb
index 8540503..a2bebe0 100644
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.3.bb
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.3.bb
@@ -33,6 +33,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/nfs-utils/${PV}/nfs-utils-${PV}.tar.x
            file://nfs-utils-debianize-start-statd.patch \
            file://0001-nfs-utils-statd-fix-a-segfault-caused-by-improper-us.patch \
            file://bugfix-adjust-statd-service-name.patch \
+           file://fix-protocol-minor-version-fall-back.patch \
 "
 
 SRC_URI[md5sum] = "cd6b568c2e9301cc3bfac09d87fbbc0b"
-- 
2.7.4



^ permalink raw reply related

* [PATCH] openssl: Security fix CVE-2016-7055
From: Yi Zhao @ 2016-11-16 10:07 UTC (permalink / raw)
  To: openembedded-core

There is a carry propagating bug in the Broadwell-specific Montgomery
multiplication procedure that handles input lengths divisible by, but
longer than 256 bits.

External References:
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-7055
https://www.openssl.org/news/secadv/20161110.txt

Patch from:
https://github.com/openssl/openssl/commit/57c4b9f6a2f800b41ce2836986fe33640f6c3f8a

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
 .../openssl/openssl/CVE-2016-7055.patch            | 43 ++++++++++++++++++++++
 .../recipes-connectivity/openssl/openssl_1.0.2j.bb |  1 +
 2 files changed, 44 insertions(+)
 create mode 100644 meta/recipes-connectivity/openssl/openssl/CVE-2016-7055.patch

diff --git a/meta/recipes-connectivity/openssl/openssl/CVE-2016-7055.patch b/meta/recipes-connectivity/openssl/openssl/CVE-2016-7055.patch
new file mode 100644
index 0000000..83a74cd
--- /dev/null
+++ b/meta/recipes-connectivity/openssl/openssl/CVE-2016-7055.patch
@@ -0,0 +1,43 @@
+From 57c4b9f6a2f800b41ce2836986fe33640f6c3f8a Mon Sep 17 00:00:00 2001
+From: Andy Polyakov <appro@openssl.org>
+Date: Sun, 6 Nov 2016 18:33:17 +0100
+Subject: [PATCH] bn/asm/x86_64-mont.pl: fix for CVE-2016-7055 (Low severity).
+
+Reviewed-by: Rich Salz <rsalz@openssl.org>
+(cherry picked from commit 2fac86d9abeaa643677d1ffd0a139239fdf9406a)
+
+Upstream-Status: Backport [https://github.com/openssl/openssl/commit/57c4b9f6a2f800b41ce2836986fe33640f6c3f8a]
+CVE: CVE-2016-7055
+Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
+---
+ crypto/bn/asm/x86_64-mont.pl | 5 ++---
+ 1 file changed, 2 insertions(+), 3 deletions(-)
+
+diff --git a/crypto/bn/asm/x86_64-mont.pl b/crypto/bn/asm/x86_64-mont.pl
+index 044fd7e..80492d8 100755
+--- a/crypto/bn/asm/x86_64-mont.pl
++++ b/crypto/bn/asm/x86_64-mont.pl
+@@ -1148,18 +1148,17 @@ $code.=<<___;
+ 	mulx	2*8($aptr),%r15,%r13	# ...
+ 	adox	-3*8($tptr),%r11
+ 	adcx	%r15,%r12
+-	adox	$zero,%r12
++	adox	-2*8($tptr),%r12
+ 	adcx	$zero,%r13
++	adox	$zero,%r13
+ 
+ 	mov	$bptr,8(%rsp)		# off-load &b[i]
+-	.byte	0x67
+ 	mov	$mi,%r15
+ 	imulq	24(%rsp),$mi		# "t[0]"*n0
+ 	xor	%ebp,%ebp		# xor	$zero,$zero	# cf=0, of=0
+ 
+ 	mulx	3*8($aptr),%rax,%r14
+ 	 mov	$mi,%rdx
+-	adox	-2*8($tptr),%r12
+ 	adcx	%rax,%r13
+ 	adox	-1*8($tptr),%r13
+ 	adcx	$zero,%r14
+-- 
+2.7.4
+
diff --git a/meta/recipes-connectivity/openssl/openssl_1.0.2j.bb b/meta/recipes-connectivity/openssl/openssl_1.0.2j.bb
index 257e3cf..f2aca36 100644
--- a/meta/recipes-connectivity/openssl/openssl_1.0.2j.bb
+++ b/meta/recipes-connectivity/openssl/openssl_1.0.2j.bb
@@ -40,6 +40,7 @@ SRC_URI += "file://find.pl;subdir=${BP}/util/ \
             file://configure-musl-target.patch \
             file://parallel.patch \
             file://openssl-util-perlpath.pl-cwd.patch \
+            file://CVE-2016-7055.patch \
            "
 SRC_URI[md5sum] = "96322138f0b69e61b7212bc53d5e912b"
 SRC_URI[sha256sum] = "e7aff292be21c259c6af26469c7a9b3ba26e9abaaffd325e3dccc9785256c431"
-- 
2.7.4



^ permalink raw reply related

* Re: [PATCH] python3-mako: upgrade to 1.0.6
From: Burton, Ross @ 2016-11-16 10:06 UTC (permalink / raw)
  To: Edwin Plauchu; +Cc: Edwin Plauchu, OE-core
In-Reply-To: <20161114225241.2282-1-edwin.plauchu.camacho@linux.intel.com>

[-- Attachment #1: Type: text/plain, Size: 455 bytes --]

On 14 November 2016 at 22:52, Edwin Plauchu <
edwin.plauchu.camacho@linux.intel.com> wrote:

>  meta/recipes-devtools/python/python-mako.inc                          |
> 4 ++--
>  .../python/{python3-mako_1.0.4.bb => python3-mako_1.0.6.bb}           | 0
>  2 files changed, 2 insertions(+), 2 deletions(-)
>  rename meta/recipes-devtools/python/{python3-mako_1.0.4.bb =>
> python3-mako_1.0.6.bb} (100%)
>

Same problem as python3-git.

Ross

[-- Attachment #2: Type: text/html, Size: 1317 bytes --]

^ permalink raw reply

* Re: [PATCH] python3-setuptools: upgrade to 28.8.0
From: Burton, Ross @ 2016-11-16 10:05 UTC (permalink / raw)
  To: Edwin Plauchu; +Cc: Edwin Plauchu, OE-core
In-Reply-To: <20161115220735.23514-1-edwin.plauchu.camacho@linux.intel.com>

[-- Attachment #1: Type: text/plain, Size: 468 bytes --]

On 15 November 2016 at 22:07, Edwin Plauchu <
edwin.plauchu.camacho@linux.intel.com> wrote:

>  meta/recipes-devtools/python/python-setuptools.inc                  | 6
> +++---
>  .../{python3-setuptools_22.0.5.bb => python3-setuptools_28.8.0.bb}  | 0
>  2 files changed, 3 insertions(+), 3 deletions(-)
>  rename meta/recipes-devtools/python/{python3-setuptools_22.0.5.bb =>
> python3-setuptools_28.8.0.bb} (100%)
>

(same problem as python3-git)

Ross

[-- Attachment #2: Type: text/html, Size: 1325 bytes --]

^ permalink raw reply

* Re: [PATCH V2] python3-git: upgrade to 2.1.0
From: Burton, Ross @ 2016-11-16 10:05 UTC (permalink / raw)
  To: Edwin Plauchu; +Cc: Edwin Plauchu, OE-core
In-Reply-To: <20161114173309.1690-1-edwin.plauchu.camacho@linux.intel.com>

[-- Attachment #1: Type: text/plain, Size: 690 bytes --]

On 14 November 2016 at 17:33, Edwin Plauchu <
edwin.plauchu.camacho@linux.intel.com> wrote:

>  meta/recipes-devtools/python/python-git.inc                           |
> 4 ++--
>  .../python/{python3-git_2.0.7.bb => python3-git_2.1.0.bb}             | 0
>  2 files changed, 2 insertions(+), 2 deletions(-)
>  rename meta/recipes-devtools/python/{python3-git_2.0.7.bb =>
> python3-git_2.1.0.bb} (100%)
>

As both python-git and python3-git include python-git.inc this patch breaks
python-git.

A sensible fix would be to upgrade both python-git and python3-git, but
move the checksums out of the .inc into both .bb files, so that they can be
upgraded independently.

Ross

[-- Attachment #2: Type: text/html, Size: 1676 bytes --]

^ permalink raw reply

* \n in DESCRIPTION creates invalid (ipk) packages? (was: Re: [oe][meta-networking][PATCH 0/2] ncp - a fast file copy tool for LANs)
From: André Draszik @ 2016-11-16  9:07 UTC (permalink / raw)
  To: openembedded-core
In-Reply-To: <1479230361.3131.6.camel@andred.net>

On Tue, 2016-11-15 at 17:19 +0000, André Draszik wrote:
> On Tue, 2016-11-15 at 15:43 +0000, André Draszik wrote:
> > "ncp" is a utility for copying files in a LAN. It has absolutely
> > no security or integrity checking, no throttling, no features,
> > except one:
> >   you don't have to type the coordinates of your peer.
> 
> Hm, hold on. Something went wrong along the way. I can't actually install
> it
> anymore:
> 
> root@poky:~# opkg update
> Package ncp-dbg version 1.2.4-r0 has no valid architecture, ignoring.
> Package ncp-dev version 1.2.4-r0 has no valid architecture, ignoring.
> Package ncp-doc version 1.2.4-r0 has no valid architecture, ignoring.
> Package ncp version 1.2.4-r0 has no valid architecture, ignoring.
> 
> root@poky:~# opkg install ncp
> Package ncp-dbg version 1.2.4-r0 has no valid architecture, ignoring.
> Package ncp-dev version 1.2.4-r0 has no valid architecture, ignoring.
> Package ncp-doc version 1.2.4-r0 has no valid architecture, ignoring.
> Package ncp version 1.2.4-r0 has no valid architecture, ignoring.
> Collected errors:
>  * opkg_prepare_url_for_install: Couldn't find anything to satisfy 'ncp'.

It looks like this was caused by additional \n in the DESCRIPTION string. Is
it expected that those cause the packaging process to create apparently
invalid ipk packages?




Cheers,
Andre'



^ permalink raw reply

* Re: [PATCH] weston: upgrade from 1.11.1 to 1.12.0
From: Fathi Boudra @ 2016-11-16  5:04 UTC (permalink / raw)
  To: Andre McCurdy; +Cc: OE-core
In-Reply-To: <CAJ86T=UqQ0fP73OcLeWNG_iqS9nQQCMNgXyyEjFZbfVgAFRAVg@mail.gmail.com>

On 15 November 2016 at 23:16, Andre McCurdy <armccurdy@gmail.com> wrote:
> On Wed, Nov 9, 2016 at 6:41 AM, Fathi Boudra <fathi.boudra@linaro.org> wrote:
>> On 9 November 2016 at 14:15, Burton, Ross <ross.burton@intel.com> wrote:
>>>
>>> On 8 November 2016 at 13:54, Fathi Boudra <fathi.boudra@linaro.org> wrote:
>>>>
>>>>  FILES_${PN}-xwayland = "${libdir}/${BPN}/xwayland.so"
>>>
>>>
>>> Because you didn't fix this patch the weston-xwayland package is never
>>> built, buildhistory is huge and core-image-weston with X11 enabled doesn't
>>> build.
>>
>> I'll spin a v2 with Jussi suggested split.
>
> Would it be OK to split the version update and the packaging changes
> across two commits?

ok

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


^ permalink raw reply

* [PATCH] Test needed to verify postinst script order.
From: Francisco Pedraza @ 2016-11-16  0:50 UTC (permalink / raw)
  To: openembedded-core; +Cc: Francisco Pedraza

Will verify the following:
1. Compile a minimal image.
2. The compiled image will add the created layer with the
recipes postinstz postinsta postinstb postinstd postinstp postinstt
created previously at "meta-selftest/recipes-test"
2. Run qemu
3. Validate the task execution order.
V4

Signed-off-by: Francisco Pedraza <francisco.j.pedraza.gonzalez@intel.com>
---
 .../recipes-test/postinsta/postinsta_1.0.bb        | 20 +++++++++++
 .../recipes-test/postinstb/postinstb_1.0.bb        | 22 ++++++++++++
 .../recipes-test/postinstd/postinstd_1.0.bb        | 22 ++++++++++++
 .../recipes-test/postinstp/postinstp_1.0.bb        | 22 ++++++++++++
 .../recipes-test/postinstt/postinstt_1.0.bb        | 22 ++++++++++++
 .../recipes-test/postinstz/postinstz_1.0.bb        | 12 +++++++
 meta/lib/oeqa/selftest/runtime-test.py             | 40 ++++++++++++++++++++++
 7 files changed, 160 insertions(+)
 create mode 100644 meta-selftest/recipes-test/postinsta/postinsta_1.0.bb
 create mode 100644 meta-selftest/recipes-test/postinstb/postinstb_1.0.bb
 create mode 100644 meta-selftest/recipes-test/postinstd/postinstd_1.0.bb
 create mode 100644 meta-selftest/recipes-test/postinstp/postinstp_1.0.bb
 create mode 100644 meta-selftest/recipes-test/postinstt/postinstt_1.0.bb
 create mode 100644 meta-selftest/recipes-test/postinstz/postinstz_1.0.bb

diff --git a/meta-selftest/recipes-test/postinsta/postinsta_1.0.bb b/meta-selftest/recipes-test/postinsta/postinsta_1.0.bb
new file mode 100644
index 0000000..2e69a85
--- /dev/null
+++ b/meta-selftest/recipes-test/postinsta/postinsta_1.0.bb
@@ -0,0 +1,20 @@
+LICENSE = "MIT"
+
+RDEPENDS_${PN} = "postinstz"
+
+ALLOW_EMPTY_${PN} = "1"
+
+pkg_postinst_${PN} () {
+   if test "x$D" != "x"; then
+      # Need to run on first boot
+      exit 1
+   else
+      if test -e /etc/postinstz-test ; then
+          echo 'success' > /etc/postinsta-test
+      else
+          echo 'fail to install postinstz first!' >&2
+          exit 1
+      fi
+   fi
+}
+
diff --git a/meta-selftest/recipes-test/postinstb/postinstb_1.0.bb b/meta-selftest/recipes-test/postinstb/postinstb_1.0.bb
new file mode 100644
index 0000000..447d777
--- /dev/null
+++ b/meta-selftest/recipes-test/postinstb/postinstb_1.0.bb
@@ -0,0 +1,22 @@
+SUMMARY = "Device formfactor information"
+SECTION = "base"
+LICENSE = "MIT"
+
+RDEPENDS_${PN} = "postinsta"
+
+ALLOW_EMPTY_${PN} = "1"
+
+pkg_postinst_${PN} () {
+   if test "x$D" != "x"; then
+      # Need to run on first boot
+      exit 1
+   else
+      if test -e /etc/postinsta-test ; then
+          echo 'success' > /etc/postinstb-test
+      else
+          echo 'fail to install postinsta first!' >&2
+          exit 1
+      fi
+   fi
+}
+
diff --git a/meta-selftest/recipes-test/postinstd/postinstd_1.0.bb b/meta-selftest/recipes-test/postinstd/postinstd_1.0.bb
new file mode 100644
index 0000000..939f60e
--- /dev/null
+++ b/meta-selftest/recipes-test/postinstd/postinstd_1.0.bb
@@ -0,0 +1,22 @@
+SUMMARY = "Device formfactor information"
+SECTION = "base"
+LICENSE = "MIT"
+
+RDEPENDS_${PN} = "postinstb"
+
+ALLOW_EMPTY_${PN} = "1"
+
+pkg_postinst_${PN} () {
+   if test "x$D" != "x"; then
+      # Need to run on first boot
+      exit 1
+   else
+      if test -e /etc/postinstb-test ; then
+          echo 'success' > /etc/postinstd-test
+      else
+          echo 'fail to install postinstb first!' >&2
+          exit 1
+      fi
+   fi
+}
+
diff --git a/meta-selftest/recipes-test/postinstp/postinstp_1.0.bb b/meta-selftest/recipes-test/postinstp/postinstp_1.0.bb
new file mode 100644
index 0000000..a5210b1
--- /dev/null
+++ b/meta-selftest/recipes-test/postinstp/postinstp_1.0.bb
@@ -0,0 +1,22 @@
+SUMMARY = "Device formfactor information"
+SECTION = "base"
+LICENSE = "MIT"
+
+RDEPENDS_${PN} = "postinstd"
+
+ALLOW_EMPTY_${PN} = "1"
+
+pkg_postinst_${PN} () {
+   if test "x$D" != "x"; then
+      # Need to run on first boot
+      exit 1
+   else
+      if test -e /etc/z-test ; then
+          echo 'success' > /etc/postinstp-test
+      else
+          echo 'fail to install postinstd first!' >&2
+          exit 1
+      fi
+   fi
+}
+
diff --git a/meta-selftest/recipes-test/postinstt/postinstt_1.0.bb b/meta-selftest/recipes-test/postinstt/postinstt_1.0.bb
new file mode 100644
index 0000000..25c279b
--- /dev/null
+++ b/meta-selftest/recipes-test/postinstt/postinstt_1.0.bb
@@ -0,0 +1,22 @@
+SUMMARY = "Device formfactor information"
+SECTION = "base"
+LICENSE = "MIT"
+
+RDEPENDS_${PN} = "postinstp"
+
+ALLOW_EMPTY_${PN} = "1"
+
+pkg_postinst_${PN} () {
+   if test "x$D" != "x"; then
+      # Need to run on first boot
+      exit 1
+   else
+      if test -e /etc/postinstp-test ; then
+          echo 'success' > /etc/postinstt-test
+      else
+          echo 'fail to install postinstp first!' >&2
+          exit 1
+      fi
+   fi
+}
+
diff --git a/meta-selftest/recipes-test/postinstz/postinstz_1.0.bb b/meta-selftest/recipes-test/postinstz/postinstz_1.0.bb
new file mode 100644
index 0000000..79abd74
--- /dev/null
+++ b/meta-selftest/recipes-test/postinstz/postinstz_1.0.bb
@@ -0,0 +1,12 @@
+LICENSE = "MIT"
+
+ALLOW_EMPTY_${PN} = "1"
+pkg_postinst_${PN} (){
+    if test "x$D" != "x"' then
+        # Need to run on first boot
+        exit 1
+    else
+        echo "lets write postinst_z" > /etc/postinstz-test
+    fi
+}
+
diff --git a/meta/lib/oeqa/selftest/runtime-test.py b/meta/lib/oeqa/selftest/runtime-test.py
index c2d5b45..888493b 100644
--- a/meta/lib/oeqa/selftest/runtime-test.py
+++ b/meta/lib/oeqa/selftest/runtime-test.py
@@ -2,6 +2,7 @@ from oeqa.selftest.base import oeSelfTest
 from oeqa.utils.commands import runCmd, bitbake, get_bb_var, runqemu
 from oeqa.utils.decorators import testcase
 import os
+import re
 
 class TestExport(oeSelfTest):
 
@@ -103,3 +104,42 @@ class TestImage(oeSelfTest):
         # Build core-image-sato and testimage
         bitbake('core-image-full-cmdline socat')
         bitbake('-c testimage core-image-full-cmdline')
+
+class Postinst(oeSelfTest):
+    def test_verify_postinst(self):
+        """
+        Summary: The purpose of this test is to verify the execution order of postinst Bugzilla ID: [5319]
+        Expected 1. Compile a minimal image.
+        1. The compiled image will add the created layer with the recipes a b d p t z
+        2. Run qemux86
+        3. Validate the task execution order
+        """
+        features = 'INHERIT += "testimage"\n'
+        features += 'CORE_IMAGE_EXTRA_INSTALL += "postinstz postinsta postinstb postinstd postinstp postinstt"\n'
+        self.write_config(features)
+
+        bitbake('core-image-minimal -c cleansstate')
+        bitbake('core-image-minimal')
+
+        postinst_list = ['100-postinstz','101-postinsta','102-postinstb','103-postinstd','104-postinstp','105-postinstt']
+        path_workdir = get_bb_var('WORKDIR','core-image-minimal')
+        workspacedir = 'testimage/qemu_boot_log'
+        workspacedir = os.path.join(path_workdir, workspacedir)
+        rexp = re.compile("^Running postinst .*/(?P<postinst>.*)\.\.\.$")
+        with runqemu('core-image-minimal') as qemu:
+            with open(workspacedir) as f:
+                found = False
+                idx = 0 
+                for line in f.readlines():
+                    line = line.strip()
+                    line = line.replace("^M","")
+                    if not line: # To avoid empty lines
+                        continue
+                    m = rexp.search(line)
+                    if m:
+                        self.assertEqual(postinst_list[idx], m.group('postinst'), "Fail")
+                        idx = idx+1
+                        found = True
+                    elif found:
+                        self.assertEqual(idx, len(postinst_list), "Not found all postinsts")
+                        break
-- 
2.5.0



^ permalink raw reply related

* [PATCH 1/1] parselogs: Whitelist NUC6 firmware load error message on genericx86-64
From: California Sullivan @ 2016-11-15 23:31 UTC (permalink / raw)
  To: openembedded-core

This was already whitelisted, but the 4.8 kernel changed the error
message, causing it to get caught by parselogs again.

Fixes [YOCTO #10494].

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
---
 meta/lib/oeqa/runtime/parselogs.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/lib/oeqa/runtime/parselogs.py b/meta/lib/oeqa/runtime/parselogs.py
index 8efe2d1..58f62da 100644
--- a/meta/lib/oeqa/runtime/parselogs.py
+++ b/meta/lib/oeqa/runtime/parselogs.py
@@ -140,6 +140,7 @@ ignore_errors = {
         'Failed to load firmware i915',
         'Failed to fetch GuC',
         'Failed to initialize GuC',
+        'Failed to load DMC firmware',
         'The driver is built-in, so to load the firmware you need to',
         ] + x86_common,
     'edgerouter' : [
-- 
2.5.5



^ permalink raw reply related

* Re: [PATCH] ltp: 20160126 -> 20160920
From: lyang0 @ 2016-11-15 23:25 UTC (permalink / raw)
  To: Robert Yang, Lei, Maohui,
	openembedded-core@lists.openembedded.org
In-Reply-To: <8e957dab-f2ef-0345-c7f5-41f96a6bbeb3@windriver.com>

any update for it ?

Lei



On 2016年10月17日 17:44, Robert Yang wrote:
> Hi Maohui,
>
> Oe-core will release morty branch recently, so the package upgrades
> is pending atm.
>
> // Robert
>
> On 10/17/2016 05:05 PM, Lei, Maohui wrote:
>> Ping.
>>
>>
>>
>>> -----Original Message-----
>>> From: openembedded-core-bounces@lists.openembedded.org
>>> [mailto:openembedded-core-bounces@lists.openembedded.org] On Behalf Of
>>> Wang Xin
>>> Sent: Monday, September 26, 2016 4:18 PM
>>> To: openembedded-core@lists.openembedded.org
>>> Subject: [OE-core] [PATCH] ltp: 20160126 -> 20160920
>>>
>>> 1)Upgrade ltp from 20160126 to 20160920.
>>> 2)Delete some patches, since they are integrated upstream.
>>>     0001-ltp-Don-t-link-against-libfl.patch
>>>     0006-sendfile-Use-off64_t-instead-of-__off64_t.patch
>>>     0007-replace-SIGCLD-with-SIGCHLD.patch
>>>     0009-Guard-error.h-with-__GLIBC__.patch
>>>     0012-fsstress.c-Replace-__int64_t-with-int64_t.patch
>>>     0013-include-fcntl.h-for-getting-O_-definitions.patch
>>> 0014-hyperthreading-Include-sys-types.h-for-pid_t-definit.patch
>>>     0015-mincore01-Rename-PAGESIZE-to-pagesize.patch
>>>     0016-ustat-Change-header-from-ustat.h-to-sys-ustat.h.patch
>>>     0017-replace-sigval_t-with-union-sigval.patch
>>> 0019-tomoyo-Replace-canonicalize_file_name-with-realpath.patch
>>>     0022-include-sys-types.h.patch
>>>     0027-sysconf01-Use-_SC_2_C_VERSION-conditionally.patch
>>> 0028-rt_sigaction.h-Use-sighandler_t-instead-of-__sighand.patch
>>>     0029-trace_shed-Fix-build-with-musl.patch
>>> 0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch
>>> 0031-vma03-fix-page-size-offset-as-per-page-size-alignmen.patch
>>>     0032-regen.sh-Include-asm-unistd.h-explicitly.patch
>>>     0035-fix-test_proc_kill-hang.patch
>>> 3)Modify one patch, since the data has been changed.
>>>     0011-Rename-sigset-variable-to-sigset1.patch
>>> 4)Add some new patches.
>>>     0001-Define-__SIGRTMIN-and-__SIGRTMAX-on-musl.patch
>>>     0002-initialize-recursive-mutex-in-a-portable-way.patch
>>>     0003-lapi-Use-sig_t-instead-of-sighandler_t.patch
>>> 0004-rt_sigaction-rt_sigprocmark-Replace-SA_NOMASK-with-S.patch
>>>     0005-Fix-test_proc_kill-hanging.patch
>>>     0006-Remove-unused-__BEGIN_DECLS-and-__END_DECLS.patch
>>>
>>> Signed-off-by: Wang Xin <wangxin2015.fnst@cn.fujitsu.com>
>>> ---
>>>  ...-Define-__SIGRTMIN-and-__SIGRTMAX-on-musl.patch |  32 ++
>>>  .../ltp/0001-ltp-Don-t-link-against-libfl.patch    |  30 --
>>>  ...tialize-recursive-mutex-in-a-portable-way.patch | 167 +++++++++
>>>  ...3-lapi-Use-sig_t-instead-of-sighandler_t.patch} |  30 +-
>>>  ...n-rt_sigprocmark-Replace-SA_NOMASK-with-S.patch | 120 +++++++
>>>  ...patch => 0005-Fix-test_proc_kill-hanging.patch} |  25 +-
>>>  ...move-unused-__BEGIN_DECLS-and-__END_DECLS.patch |  48 +++
>>>  ...sendfile-Use-off64_t-instead-of-__off64_t.patch |  31 --
>>>  .../ltp/ltp/0007-replace-SIGCLD-with-SIGCHLD.patch | 394 -------------
>>> --------
>>>  .../ltp/0009-Guard-error.h-with-__GLIBC__.patch    | 270 -------------
>>> -
>>>  .../0011-Rename-sigset-variable-to-sigset1.patch   |  60 ++--
>>>  ...fsstress.c-Replace-__int64_t-with-int64_t.patch | 351 -------------
>>> -----
>>>  ...nclude-fcntl.h-for-getting-O_-definitions.patch |  67 ----
>>>  ...ing-Include-sys-types.h-for-pid_t-definit.patch |  56 ---
>>>  ...015-mincore01-Rename-PAGESIZE-to-pagesize.patch |  64 ----
>>>  ...Change-header-from-ustat.h-to-sys-ustat.h.patch |  45 ---
>>>  .../0017-replace-sigval_t-with-union-sigval.patch  |  88 -----
>>>  ...lace-canonicalize_file_name-with-realpath.patch |  32 --
>>>  .../ltp/ltp/0022-include-sys-types.h.patch         |  29 --
>>>  ...sconf01-Use-_SC_2_C_VERSION-conditionally.patch |  29 --
>>>  .../ltp/0029-trace_shed-Fix-build-with-musl.patch  |  32 --
>>>  ...READ_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch |  33 --
>>>  ...age-size-offset-as-per-page-size-alignmen.patch |  33 --
>>>  ...-regen.sh-Include-asm-unistd.h-explicitly.patch |  30 --
>>>  .../ltp/{ltp_20160126.bb => ltp_20160920.bb}       |  27 +-
>>>  25 files changed, 433 insertions(+), 1690 deletions(-)
>>>  create mode 100644 meta/recipes-extended/ltp/ltp/0001-Define-
>>> __SIGRTMIN-and-__SIGRTMAX-on-musl.patch
>>>  delete mode 100644 meta/recipes-extended/ltp/ltp/0001-ltp-Don-t-link-
>>> against-libfl.patch
>>>  create mode 100644 meta/recipes-extended/ltp/ltp/0002-initialize-
>>> recursive-mutex-in-a-portable-way.patch
>>>  rename meta/recipes-extended/ltp/ltp/{0028-rt_sigaction.h-Use-
>>> sighandler_t-instead-of-__sighand.patch => 0003-lapi-Use-sig_t-instead-
>>> of-sighandler_t.patch} (59%)
>>>  create mode 100644 meta/recipes-extended/ltp/ltp/0004-rt_sigaction-
>>> rt_sigprocmark-Replace-SA_NOMASK-with-S.patch
>>>  rename meta/recipes-extended/ltp/ltp/{0035-fix-test_proc_kill-
>>> hang.patch => 0005-Fix-test_proc_kill-hanging.patch} (52%)
>>>  create mode 100644 meta/recipes-extended/ltp/ltp/0006-Remove-unused-
>>> __BEGIN_DECLS-and-__END_DECLS.patch
>>>  delete mode 100644 meta/recipes-extended/ltp/ltp/0006-sendfile-Use-
>>> off64_t-instead-of-__off64_t.patch
>>>  delete mode 100644 meta/recipes-extended/ltp/ltp/0007-replace-SIGCLD-
>>> with-SIGCHLD.patch
>>>  delete mode 100644 meta/recipes-extended/ltp/ltp/0009-Guard-error.h-
>>> with-__GLIBC__.patch
>>>  delete mode 100644 meta/recipes-extended/ltp/ltp/0012-fsstress.c-
>>> Replace-__int64_t-with-int64_t.patch
>>>  delete mode 100644 meta/recipes-extended/ltp/ltp/0013-include-fcntl.h-
>>> for-getting-O_-definitions.patch
>>>  delete mode 100644 meta/recipes-extended/ltp/ltp/0014-hyperthreading-
>>> Include-sys-types.h-for-pid_t-definit.patch
>>>  delete mode 100644 meta/recipes-extended/ltp/ltp/0015-mincore01-
>>> Rename-PAGESIZE-to-pagesize.patch
>>>  delete mode 100644 meta/recipes-extended/ltp/ltp/0016-ustat-Change-
>>> header-from-ustat.h-to-sys-ustat.h.patch
>>>  delete mode 100644 meta/recipes-extended/ltp/ltp/0017-replace-
>>> sigval_t-with-union-sigval.patch
>>>  delete mode 100644 meta/recipes-extended/ltp/ltp/0019-tomoyo-Replace-
>>> canonicalize_file_name-with-realpath.patch
>>>  delete mode 100644 meta/recipes-extended/ltp/ltp/0022-include-sys-
>>> types.h.patch
>>>  delete mode 100644 meta/recipes-extended/ltp/ltp/0027-sysconf01-Use-
>>> _SC_2_C_VERSION-conditionally.patch
>>>  delete mode 100644 meta/recipes-extended/ltp/ltp/0029-trace_shed-Fix-
>>> build-with-musl.patch
>>>  delete mode 100644 meta/recipes-extended/ltp/ltp/0030-lib-Use-
>>> PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch
>>>  delete mode 100644 meta/recipes-extended/ltp/ltp/0031-vma03-fix-page-
>>> size-offset-as-per-page-size-alignmen.patch
>>>  delete mode 100644 meta/recipes-extended/ltp/ltp/0032-regen.sh-
>>> Include-asm-unistd.h-explicitly.patch
>>>  rename meta/recipes-extended/ltp/{ltp_20160126.bb => ltp_20160920.bb}
>>> (80%)
>>>
>>> diff --git a/meta/recipes-extended/ltp/ltp/0001-Define-__SIGRTMIN-and-
>>> __SIGRTMAX-on-musl.patch b/meta/recipes-extended/ltp/ltp/0001-Define-
>>> __SIGRTMIN-and-__SIGRTMAX-on-musl.patch
>>> new file mode 100644
>>> index 0000000..b035804
>>> --- /dev/null
>>> +++ b/meta/recipes-extended/ltp/ltp/0001-Define-__SIGRTMIN-and-
>>> __SIGRTMAX-on-musl.patch
>>> @@ -0,0 +1,32 @@
>>> +From f381b5d58ea02e9001a1885db99d577ef3e49da5 Mon Sep 17 00:00:00 2001
>>> +From: Khem Raj <raj.khem@gmail.com>
>>> +Date: Sat, 23 Jul 2016 05:25:32 +0000
>>> +Subject: [PATCH 17/17] Define __SIGRTMIN and __SIGRTMAX on musl
>>> +
>>> +These defines are glibc internal symbols
>>> +actually LTP should not have used it at all
>>> +even the header in glibc states that
>>> +
>>> +Signed-off-by: Khem Raj <raj.khem@gmail.com>
>>> +---
>>> + lib/Makefile | 4 ++++
>>> + 1 file changed, 4 insertions(+)
>>> +
>>> +diff --git a/lib/Makefile b/lib/Makefile
>>> +index 24d1faa..012a76f 100644
>>> +--- a/lib/Makefile
>>> ++++ b/lib/Makefile
>>> +@@ -26,6 +26,10 @@ include $(top_srcdir)/include/mk/env_pre.mk
>>> +
>>> + CFLAGS            += -I.
>>> +
>>> ++ifeq ($(LIBC),musl)
>>> ++CFLAGS            += -D__SIGRTMIN=32 -D__SIGRTMAX=64
>>> ++endif
>>> ++
>>> + FILTER_OUT_LIBSRCS    := mount_utils.c
>>> +
>>> + LIB            := libltp.a
>>> +--
>>> +2.7.4
>>> +
>>> diff --git a/meta/recipes-extended/ltp/ltp/0001-ltp-Don-t-link-against-
>>> libfl.patch b/meta/recipes-extended/ltp/ltp/0001-ltp-Don-t-link-
>>> against-libfl.patch
>>> deleted file mode 100644
>>> index 585b7cb..0000000
>>> --- a/meta/recipes-extended/ltp/ltp/0001-ltp-Don-t-link-against-
>>> libfl.patch
>>> +++ /dev/null
>>> @@ -1,30 +0,0 @@
>>> -From 14985fccf7428eaa0b45decc22bfd20fd780f621 Mon Sep 17 00:00:00 2001
>>> -From: Chong Lu <Chong.Lu@windriver.com>
>>> -Date: Tue, 11 Mar 2014 14:47:22 +0800
>>> -Subject: [PATCH 01/32] ltp: Don't link against libfl
>>> -
>>> -We have already defined yywrap function in scan.l file. After this, we
>>> no longer need to
>>> -link against libfl and so no longer get errors about undefined
>>> references to yylex.
>>> -
>>> -Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
>>> -Signed-off-by: Khem Raj <raj.khem@gmail.com>
>>> ----
>>> - pan/Makefile | 2 +-
>>> - 1 file changed, 1 insertion(+), 1 deletion(-)
>>> -
>>> -diff --git a/pan/Makefile b/pan/Makefile
>>> -index 4cc6466..a4b575b 100644
>>> ---- a/pan/Makefile
>>> -+++ b/pan/Makefile
>>> -@@ -31,7 +31,7 @@ CPPFLAGS        += -Wno-error
>>> -
>>> - CPPFLAGS        += -I$(abs_srcdir)
>>> -
>>> --LDLIBS            += -lm $(LEXLIB)
>>> -+LDLIBS            += -lm
>>> -
>>> - LFLAGS            += -l
>>> -
>>> ---
>>> -2.7.0
>>> -
>>> diff --git a/meta/recipes-extended/ltp/ltp/0002-initialize-recursive-
>>> mutex-in-a-portable-way.patch b/meta/recipes-extended/ltp/ltp/0002-
>>> initialize-recursive-mutex-in-a-portable-way.patch
>>> new file mode 100644
>>> index 0000000..3d01c90
>>> --- /dev/null
>>> +++ b/meta/recipes-extended/ltp/ltp/0002-initialize-recursive-mutex-in-
>>> a-portable-way.patch
>>> @@ -0,0 +1,167 @@
>>> +From 9ded0866313d7d59ea1833f318f2b5b42701422d Mon Sep 17 00:00:00 2001
>>> +From: Khem Raj <raj.khem@gmail.com>
>>> +Date: Thu, 21 Jul 2016 05:11:18 +0000
>>> +Subject: [PATCH 11/17] initialize recursive mutex in a portable way
>>> +
>>> +PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP is not in POSIX
>>> +
>>> +use the portable way instead: pthread_once was designed for such
>>> +cases.
>>> +
>>> +Link with libpthread wherever libltp is asked for
>>> +
>>> +Signed-off-by: Khem Raj <raj.khem@gmail.com>
>>> +---
>>> + include/mk/testcases.mk                    |  2 +-
>>> + lib/ltp.pc.in                              |  2 +-
>>> + lib/newlib_tests/Makefile                  |  2 +-
>>> + lib/tests/Makefile                         |  2 +-
>>> + lib/tst_res.c                              | 18 +++++++++++++++++-
>>> + testcases/kernel/containers/netns/Makefile |  2 +-
>>> + testcases/kernel/containers/share/Makefile |  2 +-
>>> + 7 files changed, 23 insertions(+), 7 deletions(-)
>>> +
>>> +diff --git a/include/mk/testcases.mk b/include/mk/testcases.mk
>>> +index ea26d4f..eff0eee 100644
>>> +--- a/include/mk/testcases.mk
>>> ++++ b/include/mk/testcases.mk
>>> +@@ -49,7 +49,7 @@ CPPFLAGS    += -I$(abs_top_builddir)/$(TKI_DIR)
>>> +
>>> + INSTALL_DIR    := testcases/bin
>>> +
>>> +-LDLIBS        += -lltp
>>> ++LDLIBS        += -lltp -lpthread
>>> +
>>> + $(APICMDS_DIR) $(LIBLTP_DIR) $(abs_top_builddir)/$(TKI_DIR): %:
>>> +     mkdir -p "$@"
>>> +diff --git a/lib/ltp.pc.in b/lib/ltp.pc.in
>>> +index 9620129..63cd5f4 100644
>>> +--- a/lib/ltp.pc.in
>>> ++++ b/lib/ltp.pc.in
>>> +@@ -6,5 +6,5 @@ libdir=@libdir@
>>> + Name: LTP
>>> + Description: Linux Test Project
>>> + Version: @VERSION@
>>> +-Libs: -L${libdir} -lltp
>>> ++Libs: -L${libdir} -lltp -lpthread
>>> + Cflags: -I${includedir}
>>> +diff --git a/lib/newlib_tests/Makefile b/lib/newlib_tests/Makefile
>>> +index 0e4eeb8..9dd69fd 100644
>>> +--- a/lib/newlib_tests/Makefile
>>> ++++ b/lib/newlib_tests/Makefile
>>> +@@ -3,7 +3,7 @@ top_srcdir        ?= ../..
>>> + include $(top_srcdir)/include/mk/env_pre.mk
>>> +
>>> + CFLAGS            += -W -Wall
>>> +-LDLIBS            += -lltp
>>> ++LDLIBS            += -lltp -lpthread
>>> +
>>> + test08: CFLAGS+=-pthread
>>> + test09: CFLAGS+=-pthread
>>> +diff --git a/lib/tests/Makefile b/lib/tests/Makefile
>>> +index 73a0f16..bc4476d 100644
>>> +--- a/lib/tests/Makefile
>>> ++++ b/lib/tests/Makefile
>>> +@@ -3,7 +3,7 @@ top_srcdir        ?= ../..
>>> + include $(top_srcdir)/include/mk/env_pre.mk
>>> +
>>> + CFLAGS            += -W
>>> +-LDLIBS            += -lltp
>>> ++LDLIBS            += -lltp -lpthread
>>> +
>>> + tst_cleanup_once: CFLAGS += -pthread
>>> +
>>> +diff --git a/lib/tst_res.c b/lib/tst_res.c
>>> +index b388d0d..ab995f8 100644
>>> +--- a/lib/tst_res.c
>>> ++++ b/lib/tst_res.c
>>> +@@ -79,7 +79,8 @@ int TEST_ERRNO;
>>> +     assert(strlen(buf) > 0);        \
>>> + } while (0)
>>> +
>>> +-static pthread_mutex_t tmutex =
>>> PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
>>> ++static pthread_once_t tmutex_once = PTHREAD_ONCE_INIT;
>>> ++static pthread_mutex_t tmutex;
>>> +
>>> + static void check_env(void);
>>> + static void tst_condense(int tnum, int ttype, const char *tmesg);
>>> +@@ -142,9 +143,20 @@ const char *strttype(int ttype)
>>> + #include "errnos.h"
>>> + #include "signame.h"
>>> +
>>> ++static void init_tmutex(void)
>>> ++{
>>> ++    pthread_mutexattr_t attr;
>>> ++
>>> ++    pthread_mutexattr_init(&attr);
>>> ++    pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
>>> ++    pthread_mutex_init(&tmutex, &attr);
>>> ++    pthread_mutexattr_destroy(&attr);
>>> ++}
>>> ++
>>> + static void tst_res__(const char *file, const int lineno, int ttype,
>>> +                       const char *arg_fmt, ...)
>>> + {
>>> ++    pthread_once(&tmutex_once, init_tmutex);
>>> +     pthread_mutex_lock(&tmutex);
>>> +
>>> +     char tmesg[USERMESG];
>>> +@@ -233,6 +245,7 @@ void tst_flush(void)
>>> + {
>>> +     NO_NEWLIB_ASSERT("Unknown", 0);
>>> +
>>> ++    pthread_once(&tmutex_once, init_tmutex);
>>> +     pthread_mutex_lock(&tmutex);
>>> +
>>> +     /*
>>> +@@ -369,6 +382,7 @@ void tst_exit(void)
>>> + {
>>> +     NO_NEWLIB_ASSERT("Unknown", 0);
>>> +
>>> ++    pthread_once(&tmutex_once, init_tmutex);
>>> +     pthread_mutex_lock(&tmutex);
>>> +
>>> +     tst_flush();
>>> +@@ -441,6 +455,7 @@ static int tst_brk_entered = 0;
>>> + static void tst_brk__(const char *file, const int lineno, int ttype,
>>> +                       void (*func)(void), const char *arg_fmt, ...)
>>> + {
>>> ++    pthread_once(&tmutex_once, init_tmutex);
>>> +     pthread_mutex_lock(&tmutex);
>>> +
>>> +     char tmesg[USERMESG];
>>> +@@ -505,6 +520,7 @@ void tst_resm_hexd_(const char *file, const int
>>> lineno, int ttype,
>>> + {
>>> +     NO_NEWLIB_ASSERT(file, lineno);
>>> +
>>> ++    pthread_once(&tmutex_once, init_tmutex);
>>> +     pthread_mutex_lock(&tmutex);
>>> +
>>> +     char tmesg[USERMESG];
>>> +diff --git a/testcases/kernel/containers/netns/Makefile
>>> b/testcases/kernel/containers/netns/Makefile
>>> +index 3756a55..b2411cd 100644
>>> +--- a/testcases/kernel/containers/netns/Makefile
>>> ++++ b/testcases/kernel/containers/netns/Makefile
>>> +@@ -22,6 +22,6 @@ top_srcdir              ?= ../../../..
>>> + include $(top_srcdir)/include/mk/testcases.mk
>>> + include $(abs_srcdir)/../Makefile.inc
>>> +
>>> +-LDLIBS                  := -lclone -lltp
>>> ++LDLIBS                  := -lclone -lltp -lpthread
>>> +
>>> + include $(top_srcdir)/include/mk/generic_leaf_target.mk
>>> +diff --git a/testcases/kernel/containers/share/Makefile
>>> b/testcases/kernel/containers/share/Makefile
>>> +index 962d688..cd79f99 100644
>>> +--- a/testcases/kernel/containers/share/Makefile
>>> ++++ b/testcases/kernel/containers/share/Makefile
>>> +@@ -17,6 +17,6 @@ top_srcdir              ?= ../../../..
>>> + include $(top_srcdir)/include/mk/testcases.mk
>>> + include $(abs_srcdir)/../Makefile.inc
>>> +
>>> +-LDLIBS                  := -lltp
>>> ++LDLIBS                  := -lltp -lpthread
>>> +
>>> + include $(top_srcdir)/include/mk/generic_leaf_target.mk
>>> +--
>>> +2.7.4
>>> +
>>> diff --git a/meta/recipes-extended/ltp/ltp/0028-rt_sigaction.h-Use-
>>> sighandler_t-instead-of-__sighand.patch b/meta/recipes-
>>> extended/ltp/ltp/0003-lapi-Use-sig_t-instead-of-sighandler_t.patch
>>> similarity index 59%
>>> rename from meta/recipes-extended/ltp/ltp/0028-rt_sigaction.h-Use-
>>> sighandler_t-instead-of-__sighand.patch
>>> rename to meta/recipes-extended/ltp/ltp/0003-lapi-Use-sig_t-instead-of-
>>> sighandler_t.patch
>>> index fc82ff9..e06ddf1 100644
>>> --- a/meta/recipes-extended/ltp/ltp/0028-rt_sigaction.h-Use-
>>> sighandler_t-instead-of-__sighand.patch
>>> +++ b/meta/recipes-extended/ltp/ltp/0003-lapi-Use-sig_t-instead-of-
>>> sighandler_t.patch
>>> @@ -1,43 +1,39 @@
>>> -From 94557fb7e1293c61145c959b8c5ffecf4a2b1069 Mon Sep 17 00:00:00 2001
>>> +From 30d08c5522e9913a4f59de5bfdc4a4f2e9a12035 Mon Sep 17 00:00:00 2001
>>>  From: Khem Raj <raj.khem@gmail.com>
>>>  Date: Fri, 8 Jan 2016 07:24:44 +0000
>>> -Subject: [PATCH 28/32] rt_sigaction.h: Use sighandler_t instead of
>>> - __sighandler_t
>>> +Subject: [PATCH 07/17] lapi: Use sig_t instead of sighandler_t
>>>
>>> -When _GNU_SOURCE is used then both typedefs are same and using
>>> -sighandler_t makes it work on musl too
>>> +sighandler_t is GNU specific
>>>
>>>  Signed-off-by: Khem Raj <raj.khem@gmail.com>
>>>  ---
>>>   include/lapi/rt_sigaction.h                      | 2 +-
>>> - testcases/kernel/syscalls/rt_sigsuspend/Makefile | 3 +++
>>> - 2 files changed, 4 insertions(+), 1 deletion(-)
>>> + testcases/kernel/syscalls/rt_sigsuspend/Makefile | 1 +
>>> + 2 files changed, 2 insertions(+), 1 deletion(-)
>>>
>>>  diff --git a/include/lapi/rt_sigaction.h b/include/lapi/rt_sigaction.h
>>> -index 3a5a763..870918c 100644
>>> +index 66ccb3e..ba064e9 100644
>>>  --- a/include/lapi/rt_sigaction.h
>>>  +++ b/include/lapi/rt_sigaction.h
>>> -@@ -34,7 +34,7 @@
>>> - #define INVAL_SA_PTR ((void *)-1)
>>> -
>>> +@@ -41,7 +41,7 @@ struct kernel_sigaction {
>>> + };
>>> + #else
>>>   struct kernel_sigaction {
>>>  -    __sighandler_t k_sa_handler;
>>> -+    sighandler_t k_sa_handler;
>>> ++    sig_t k_sa_handler;
>>>       unsigned long sa_flags;
>>>       void (*sa_restorer) (void);
>>>       sigset_t sa_mask;
>>>  diff --git a/testcases/kernel/syscalls/rt_sigsuspend/Makefile
>>> b/testcases/kernel/syscalls/rt_sigsuspend/Makefile
>>> -index 37bc3a9..2ca7f7c 100644
>>> +index 37bc3a9..2ef86f0 100644
>>>  --- a/testcases/kernel/syscalls/rt_sigsuspend/Makefile
>>>  +++ b/testcases/kernel/syscalls/rt_sigsuspend/Makefile
>>> -@@ -19,4 +19,7 @@
>>> +@@ -19,4 +19,5 @@
>>>   top_srcdir        ?= ../../../..
>>>
>>>   include $(top_srcdir)/include/mk/testcases.mk
>>>  +
>>> -+CFLAGS    += -D_GNU_SOURCE
>>> -+
>>>   include $(top_srcdir)/include/mk/generic_leaf_target.mk
>>>  --
>>> -2.7.0
>>> +2.7.4
>>>
>>> diff --git a/meta/recipes-extended/ltp/ltp/0004-rt_sigaction-
>>> rt_sigprocmark-Replace-SA_NOMASK-with-S.patch b/meta/recipes-
>>> extended/ltp/ltp/0004-rt_sigaction-rt_sigprocmark-Replace-SA_NOMASK-
>>> with-S.patch
>>> new file mode 100644
>>> index 0000000..870c598
>>> --- /dev/null
>>> +++ b/meta/recipes-extended/ltp/ltp/0004-rt_sigaction-rt_sigprocmark-
>>> Replace-SA_NOMASK-with-S.patch
>>> @@ -0,0 +1,120 @@
>>> +From 4665be95ffaae035fffb88a632b6156194e5c52d Mon Sep 17 00:00:00 2001
>>> +From: Khem Raj <raj.khem@gmail.com>
>>> +Date: Fri, 8 Jan 2016 07:14:58 +0000
>>> +Subject: [PATCH 04/15] rt_sigaction/rt_sigprocmark: Replace SA_NOMASK
>>> with
>>> + SA_NODEFER
>>> +
>>> +Fixes musl build failure e.g.
>>> +error: 'SA_NOMASK' undeclared here (not in a function)
>>> +
>>> +Signed-off-by: Khem Raj <raj.khem@gmail.com>
>>> +---
>>> + testcases/kernel/syscalls/rt_sigaction/rt_sigaction01.c | 4 ++--
>>> + testcases/kernel/syscalls/rt_sigaction/rt_sigaction02.c | 5 ++---
>>> + testcases/kernel/syscalls/rt_sigaction/rt_sigaction03.c | 4 ++--
>>> + testcases/kernel/syscalls/sigaction/sigaction02.c       | 2 +-
>>> + testcases/misc/crash/crash01.c                          | 4 ++--
>>> + testcases/misc/crash/crash02.c                          | 3 +--
>>> + 6 files changed, 10 insertions(+), 12 deletions(-)
>>> +
>>> +diff --git a/testcases/kernel/syscalls/rt_sigaction/rt_sigaction01.c
>>> b/testcases/kernel/syscalls/rt_sigaction/rt_sigaction01.c
>>> +index 5cf89cc..e07b974 100644
>>> +--- a/testcases/kernel/syscalls/rt_sigaction/rt_sigaction01.c
>>> ++++ b/testcases/kernel/syscalls/rt_sigaction/rt_sigaction01.c
>>> +@@ -57,10 +57,10 @@ static void setup(void)
>>> +
>>> + static int test_flags[] =
>>> +     { SA_RESETHAND | SA_SIGINFO, SA_RESETHAND, SA_RESETHAND |
>>> SA_SIGINFO,
>>> +-SA_RESETHAND | SA_SIGINFO, SA_NOMASK };
>>> ++SA_RESETHAND | SA_SIGINFO, SA_NODEFER };
>>> + char *test_flags_list[] =
>>> +     { "SA_RESETHAND|SA_SIGINFO", "SA_RESETHAND",
>>> "SA_RESETHAND|SA_SIGINFO",
>>> +-"SA_RESETHAND|SA_SIGINFO", "SA_NOMASK" };
>>> ++"SA_RESETHAND|SA_SIGINFO", "SA_NODEFER" };
>>> +
>>> + static void handler(int sig)
>>> + {
>>> +diff --git a/testcases/kernel/syscalls/rt_sigaction/rt_sigaction02.c
>>> b/testcases/kernel/syscalls/rt_sigaction/rt_sigaction02.c
>>> +index a1da743..594b260 100644
>>> +--- a/testcases/kernel/syscalls/rt_sigaction/rt_sigaction02.c
>>> ++++ b/testcases/kernel/syscalls/rt_sigaction/rt_sigaction02.c
>>> +@@ -55,10 +54,10 @@ void setup(void)
>>> +
>>> + static int test_flags[] =
>>> +     { SA_RESETHAND | SA_SIGINFO, SA_RESETHAND, SA_RESETHAND |
>>> SA_SIGINFO,
>>> +-SA_RESETHAND | SA_SIGINFO, SA_NOMASK };
>>> ++SA_RESETHAND | SA_SIGINFO, SA_NODEFER };
>>> + char *test_flags_list[] =
>>> +     { "SA_RESETHAND|SA_SIGINFO", "SA_RESETHAND",
>>> "SA_RESETHAND|SA_SIGINFO",
>>> +-"SA_RESETHAND|SA_SIGINFO", "SA_NOMASK" };
>>> ++"SA_RESETHAND|SA_SIGINFO", "SA_NODEFER" };
>>> +
>>> + static struct test_case_t {
>>> +     int exp_errno;
>>> +diff --git a/testcases/kernel/syscalls/rt_sigaction/rt_sigaction03.c
>>> b/testcases/kernel/syscalls/rt_sigaction/rt_sigaction03.c
>>> +index 175d220..991c87f 100644
>>> +--- a/testcases/kernel/syscalls/rt_sigaction/rt_sigaction03.c
>>> ++++ b/testcases/kernel/syscalls/rt_sigaction/rt_sigaction03.c
>>> +@@ -55,10 +55,10 @@ static void setup(void)
>>> +
>>> + static int test_flags[] =
>>> +     { SA_RESETHAND | SA_SIGINFO, SA_RESETHAND, SA_RESETHAND |
>>> SA_SIGINFO,
>>> +-SA_RESETHAND | SA_SIGINFO, SA_NOMASK };
>>> ++SA_RESETHAND | SA_SIGINFO, SA_NODEFER };
>>> + char *test_flags_list[] =
>>> +     { "SA_RESETHAND|SA_SIGINFO", "SA_RESETHAND",
>>> "SA_RESETHAND|SA_SIGINFO",
>>> +-"SA_RESETHAND|SA_SIGINFO", "SA_NOMASK" };
>>> ++"SA_RESETHAND|SA_SIGINFO", "SA_NODEFER" };
>>> +
>>> + static struct test_case_t {
>>> +     int exp_errno;
>>> +diff --git a/testcases/kernel/syscalls/sigaction/sigaction02.c
>>> b/testcases/kernel/syscalls/sigaction/sigaction02.c
>>> +index 641a04e..8641bfc 100644
>>> +--- a/testcases/kernel/syscalls/sigaction/sigaction02.c
>>> ++++ b/testcases/kernel/syscalls/sigaction/sigaction02.c
>>> +@@ -91,7 +91,7 @@ int set_handler(int sig, int sig_to_mask, int flag)
>>> +
>>> +     if (flag == 0) {
>>> +         sa.sa_sigaction = (void *)handler;
>>> +-        sa.sa_flags = SA_NOMASK;
>>> ++        sa.sa_flags = SA_NODEFER;
>>> +         sigemptyset(&sa.sa_mask);
>>> +         sigaddset(&sa.sa_mask, sig_to_mask);
>>> +         err = sigaction(sig, &sa, NULL);
>>> +diff --git a/testcases/misc/crash/crash01.c
>>> b/testcases/misc/crash/crash01.c
>>> +index 0574521..614b7e8 100644
>>> +--- a/testcases/misc/crash/crash01.c
>>> ++++ b/testcases/misc/crash/crash01.c
>>> +@@ -409,7 +409,7 @@ void my_signal(int sig, void (*func) ())
>>> +
>>> +     act.sa_handler = func;
>>> +     memset(&act.sa_mask, 0x00, sizeof(sigset_t));
>>> +-    act.sa_flags = SA_NOMASK | SA_RESTART;
>>> ++    act.sa_flags = SA_NODEFER | SA_RESTART;
>>> +     sigaction(sig, &act, 0);
>>> + }
>>> +
>>> +diff --git a/testcases/misc/crash/crash02.c
>>> b/testcases/misc/crash/crash02.c
>>> +index 00fee34..1aba3b9 100644
>>> +--- a/testcases/misc/crash/crash02.c
>>> ++++ b/testcases/misc/crash/crash02.c
>>> +@@ -49,7 +49,6 @@ TODO:
>>> +     * Does a syscall is supposed to send SIGSEGV?
>>> + */
>>> +
>>> +-#define _GNU_SOURCE
>>> + #include <sys/syscall.h>
>>> + #include <stdio.h>
>>> + #include <stdlib.h>
>>> +@@ -358,7 +357,7 @@ void my_signal(int sig, void (*func) ())
>>> +
>>> +     act.sa_handler = func;
>>> +     memset(&act.sa_mask, 0x00, sizeof(sigset_t));
>>> +-    act.sa_flags = SA_NOMASK | SA_RESTART;
>>> ++    act.sa_flags = SA_NODEFER | SA_RESTART;
>>> +     sigaction(sig, &act, 0);
>>> + }
>>> +
>>> +--
>>> +2.7.4
>>> +
>>> diff --git a/meta/recipes-extended/ltp/ltp/0035-fix-test_proc_kill-
>>> hang.patch b/meta/recipes-extended/ltp/ltp/0005-Fix-test_proc_kill-
>>> hanging.patch
>>> similarity index 52%
>>> rename from meta/recipes-extended/ltp/ltp/0035-fix-test_proc_kill-
>>> hang.patch
>>> rename to meta/recipes-extended/ltp/ltp/0005-Fix-test_proc_kill-
>>> hanging.patch
>>> index 32ae8aa..5d0a887 100644
>>> --- a/meta/recipes-extended/ltp/ltp/0035-fix-test_proc_kill-hang.patch
>>> +++ b/meta/recipes-extended/ltp/ltp/0005-Fix-test_proc_kill-
>>> hanging.patch
>>> @@ -1,23 +1,30 @@
>>> -Fix test_proc_kill hanging
>>> +From c6eaf473379e0ee56d94e5168a7f4f47e9c0b482 Mon Sep 17 00:00:00 2001
>>> +From: George Nita <george.nita@enea.com>
>>> +Date: Wed, 20 Jul 2016 20:04:59 -0700
>>> +Subject: [PATCH 10/17] Fix test_proc_kill hanging
>>>
>>>  Sometimes the signal is delivered to memcg_process before the
>>> framework took
>>>  into consideration its pid entered in the tasks. Fixed by delaying the
>>> signal
>>>  send command.
>>>
>>>  Signed-off-by: George Nita <george.nita@enea.com>
>>> -Upstream-Status: Pending
>>> +Signed-off-by: Khem Raj <raj.khem@gmail.com>
>>> +---
>>> + testcases/kernel/controllers/memcg/functional/memcg_lib.sh | 1 +
>>> + 1 file changed, 1 insertion(+)
>>>
>>>  diff --git
>>> a/testcases/kernel/controllers/memcg/functional/memcg_lib.sh
>>> b/testcases/kernel/controllers/memcg/functional/memcg_lib.sh
>>> -index ffbe006..e81bf74 100755
>>> +index b785fe3..2918cc5 100755
>>>  --- a/testcases/kernel/controllers/memcg/functional/memcg_lib.sh
>>>  +++ b/testcases/kernel/controllers/memcg/functional/memcg_lib.sh
>>> -@@ -220,8 +220,8 @@ test_proc_kill()
>>> -
>>> -     $TEST_PATH/memcg_process $2 -s $3 &
>>> +@@ -283,6 +283,7 @@ test_proc_kill()
>>>       pid=$!
>>> --    sleep 1
>>> +     TST_CHECKPOINT_WAIT 0
>>>       echo $pid > tasks
>>>  +    sleep 1
>>>
>>> -     kill -s USR1 $pid 2> /dev/null
>>> -     sleep 1
>>> +     signal_memcg_process $pid $3
>>> +
>>> +--
>>> +2.7.4
>>> +
>>> diff --git a/meta/recipes-extended/ltp/ltp/0006-Remove-unused-
>>> __BEGIN_DECLS-and-__END_DECLS.patch b/meta/recipes-
>>> extended/ltp/ltp/0006-Remove-unused-__BEGIN_DECLS-and-__END_DECLS.patch
>>> new file mode 100644
>>> index 0000000..92fbf8f
>>> --- /dev/null
>>> +++ b/meta/recipes-extended/ltp/ltp/0006-Remove-unused-__BEGIN_DECLS-
>>> and-__END_DECLS.patch
>>> @@ -0,0 +1,48 @@
>>> +From fc73b57669c81ea10c00e838be8931a4e58357ba Mon Sep 17 00:00:00 2001
>>> +From: Khem Raj <raj.khem@gmail.com>
>>> +Date: Thu, 7 Jan 2016 19:48:14 +0000
>>> +Subject: [PATCH 03/17] Remove unused __BEGIN_DECLS and __END_DECLS
>>> +
>>> +Replace __s32 definitions with int32_t
>>> +its not a generally available typedef
>>> +
>>> +Signed-off-by: Khem Raj <raj.khem@gmail.com>
>>> +---
>>> + testcases/kernel/syscalls/epoll2/include/epoll.h |  5 -----
>>> + utils/sctp/include/netinet/sctp.h                | 10 +++-------
>>> + 2 files changed, 3 insertions(+), 12 deletions(-)
>>> +
>>> +diff --git a/utils/sctp/include/netinet/sctp.h
>>> b/utils/sctp/include/netinet/sctp.h
>>> +index 51f5bfb..c302cdb 100644
>>> +--- a/utils/sctp/include/netinet/sctp.h
>>> ++++ b/utils/sctp/include/netinet/sctp.h
>>> +@@ -42,7 +42,7 @@
>>> + extern "C" {
>>> + #endif
>>> +
>>> +-typedef __s32 sctp_assoc_t;
>>> ++typedef int32_t sctp_assoc_t;
>>> +
>>> + /* Socket option layer for SCTP */
>>> + #ifndef SOL_SCTP
>>> +@@ -658,7 +656,7 @@ struct sctp_assoc_value {
>>> + struct sctp_paddrinfo {
>>> +     sctp_assoc_t        spinfo_assoc_id;
>>> +     struct sockaddr_storage    spinfo_address;
>>> +-    __s32            spinfo_state;
>>> ++    int32_t            spinfo_state;
>>> +     __u32            spinfo_cwnd;
>>> +     __u32            spinfo_srtt;
>>> +     __u32            spinfo_rto;
>>> +@@ -693,7 +691,7 @@ enum sctp_spinfo_state {
>>> +  */
>>> + struct sctp_status {
>>> +     sctp_assoc_t        sstat_assoc_id;
>>> +-    __s32            sstat_state;
>>> ++    int32_t            sstat_state;
>>> +     __u32            sstat_rwnd;
>>> +     __u16            sstat_unackdata;
>>> +     __u16            sstat_penddata;
>>> +--
>>> +2.7.4
>>> +
>>> diff --git a/meta/recipes-extended/ltp/ltp/0006-sendfile-Use-off64_t-
>>> instead-of-__off64_t.patch b/meta/recipes-extended/ltp/ltp/0006-
>>> sendfile-Use-off64_t-instead-of-__off64_t.patch
>>> deleted file mode 100644
>>> index 56a48ab..0000000
>>> --- a/meta/recipes-extended/ltp/ltp/0006-sendfile-Use-off64_t-instead-
>>> of-__off64_t.patch
>>> +++ /dev/null
>>> @@ -1,31 +0,0 @@
>>> -From fb8b895385a641d74f2186fe5f20a872209692ed Mon Sep 17 00:00:00 2001
>>> -From: Khem Raj <raj.khem@gmail.com>
>>> -Date: Thu, 7 Jan 2016 18:24:20 +0000
>>> -Subject: [PATCH 06/32] sendfile: Use off64_t instead of __off64_t
>>> -
>>> -__off64_t is specific to glibc where as off64_t is widely available
>>> -Add _GNU_SOURCE for off64_t defines from sys/types.h
>>> -Fixes
>>> -<command-line>:0:7: error: unknown type name 'off64_t'
>>> -sendfile02.c:97:18: note: in expansion of macro 'OFF_T'
>>> -
>>> -Signed-off-by: Khem Raj <raj.khem@gmail.com>
>>> ----
>>> - testcases/kernel/syscalls/sendfile/Makefile | 2 +-
>>> - 1 file changed, 1 insertion(+), 1 deletion(-)
>>> -
>>> -diff --git a/testcases/kernel/syscalls/sendfile/Makefile
>>> b/testcases/kernel/syscalls/sendfile/Makefile
>>> -index df7b63f..1bd1b57 100644
>>> ---- a/testcases/kernel/syscalls/sendfile/Makefile
>>> -+++ b/testcases/kernel/syscalls/sendfile/Makefile
>>> -@@ -21,6 +21,6 @@ top_srcdir        ?= ../../../..
>>> - include $(top_srcdir)/include/mk/testcases.mk
>>> - include $(abs_srcdir)/../utils/newer_64.mk
>>> -
>>> --%_64: CPPFLAGS += -D_FILE_OFFSET_BITS=64 -DOFF_T=__off64_t
>>> -+%_64: CPPFLAGS += -D_FILE_OFFSET_BITS=64 -DOFF_T=off64_t -
>>> D_GNU_SOURCE
>>> -
>>> - include $(top_srcdir)/include/mk/generic_leaf_target.mk
>>> ---
>>> -2.7.0
>>> -
>>> diff --git a/meta/recipes-extended/ltp/ltp/0007-replace-SIGCLD-with-
>>> SIGCHLD.patch b/meta/recipes-extended/ltp/ltp/0007-replace-SIGCLD-with-
>>> SIGCHLD.patch
>>> deleted file mode 100644
>>> index 4be906e..0000000
>>> --- a/meta/recipes-extended/ltp/ltp/0007-replace-SIGCLD-with-
>>> SIGCHLD.patch
>>> +++ /dev/null
>>> @@ -1,394 +0,0 @@
>>> -From 405c03171e4bf0edd698cb602cf7bd7fe1d0401a Mon Sep 17 00:00:00 2001
>>> -From: Khem Raj <raj.khem@gmail.com>
>>> -Date: Thu, 7 Jan 2016 19:33:53 +0000
>>> -Subject: [PATCH 07/32] replace SIGCLD with SIGCHLD
>>> -
>>> -its defined to use SIGCHLD anyway in
>>> -
>>> -bits/signum.h:#define     SIGCLD          SIGCHLD /* Same as SIGCHLD
>>> -(System V).  */
>>> -
>>> -plus it helps these tests compile with musl which adheres to posix
>>> -
>>> -Signed-off-by: Khem Raj <raj.khem@gmail.com>
>>> ----
>>> - lib/tst_sig.c                                   |  8 ++++----
>>> - testcases/kernel/connectors/pec/pec_listener.c  |  1 +
>>> - testcases/kernel/fs/doio/doio.c                 |  4 ++--
>>> - testcases/kernel/fs/doio/growfiles.c            |  2 +-
>>> - testcases/kernel/syscalls/fcntl/fcntl11.c       |  8 ++++----
>>> - testcases/kernel/syscalls/fcntl/fcntl17.c       |  8 ++++----
>>> - testcases/kernel/syscalls/fcntl/fcntl19.c       |  8 ++++----
>>> - testcases/kernel/syscalls/fcntl/fcntl20.c       |  8 ++++----
>>> - testcases/kernel/syscalls/fcntl/fcntl21.c       |  8 ++++----
>>> - testcases/kernel/syscalls/kill/kill02.c         |  6 +++---
>>> - testcases/kernel/syscalls/kill/kill12.c         |  8 ++++----
>>> - testcases/kernel/syscalls/mkdir/mkdir09.c       | 12 ++++++------
>>> - testcases/kernel/syscalls/sighold/sighold02.c   |  2 +-
>>> - testcases/network/tcp_cmds/perf_lan/pingpong.c  |  2 +-
>>> - testcases/network/tcp_cmds/perf_lan/pingpong6.c |  2 +-
>>> - 15 files changed, 44 insertions(+), 43 deletions(-)
>>> -
>>> -diff --git a/lib/tst_sig.c b/lib/tst_sig.c
>>> -index 3af5ffd..36565e1 100644
>>> ---- a/lib/tst_sig.c
>>> -+++ b/lib/tst_sig.c
>>> -@@ -49,7 +49,7 @@
>>> -         fork_flag - set to FORK or NOFORK depending upon whether
>>> the
>>> -             calling program executes a fork() system call. It
>>> -             is normally the case that the calling program treats
>>> --            SIGCLD as an expected signal if fork() is being used.
>>> -+            SIGCHLD as an expected signal if fork() is being used.
>>> -
>>> -         handler - a pointer to the unexpected signal handler to
>>> -             be executed after an unexpected signal has been
>>> -@@ -82,7 +82,7 @@ static void (*tst_setup_signal(int, void (*)(int)))
>>> (int);
>>> -
>>> -
>>> /**********************************************************************
>>> ******
>>> -  * tst_sig() : set-up to catch unexpected signals. fork_flag is set
>>> to NOFORK
>>> -- *    if SIGCLD is to be an "unexpected signal", otherwise it is set
>>> to
>>> -+ *    if SIGCHLD is to be an "unexpected signal", otherwise it is set
>>> to
>>> -  *    FORK.  cleanup points to a cleanup routine to be executed
>>> before
>>> -  *    tst_exit is called (cleanup is set to NULL if no cleanup is
>>> desired).
>>> -  *    handler is a pointer to the signal handling routine (if handler
>>> is
>>> -@@ -117,7 +117,7 @@ void tst_sig(int fork_flag, void (*handler) (),
>>> void (*cleanup) ())
>>> -     for (sig = 1; sig < NSIG; sig++) {
>>> -         /*
>>> -          * SIGKILL is never unexpected.
>>> --         * SIGCLD is only unexpected when
>>> -+         * SIGCHLD is only unexpected when
>>> -          *    no forking is being done.
>>> -          * SIGINFO is used for file quotas and should be expected
>>> -          */
>>> -@@ -205,7 +205,7 @@ void tst_sig(int fork_flag, void (*handler) (),
>>> void (*cleanup) ())
>>> - #endif
>>> -             break;
>>> -
>>> --        case SIGCLD:
>>> -+        case SIGCHLD:
>>> -             if (fork_flag == FORK)
>>> -                 continue;
>>> -
>>> -diff --git a/testcases/kernel/connectors/pec/pec_listener.c
>>> b/testcases/kernel/connectors/pec/pec_listener.c
>>> -index a1beb13..002750a 100644
>>> ---- a/testcases/kernel/connectors/pec/pec_listener.c
>>> -+++ b/testcases/kernel/connectors/pec/pec_listener.c
>>> -@@ -20,6 +20,7 @@
>>> - /*
>>> */
>>> -
>>> /**********************************************************************
>>> ********/
>>> -
>>> -+#define _GNU_SOURCE
>>> - #include <sys/socket.h>
>>> - #include <sys/poll.h>
>>> - #include <sys/types.h>
>>> -diff --git a/testcases/kernel/fs/doio/doio.c
>>> b/testcases/kernel/fs/doio/doio.c
>>> -index 4b0dec5..5f65ef9 100644
>>> ---- a/testcases/kernel/fs/doio/doio.c
>>> -+++ b/testcases/kernel/fs/doio/doio.c
>>> -@@ -573,7 +573,7 @@ int main(int argc, char **argv)
>>> -         case SIGTSTP:
>>> -         case SIGSTOP:
>>> -         case SIGCONT:
>>> --        case SIGCLD:
>>> -+        case SIGCHLD:
>>> -         case SIGBUS:
>>> -         case SIGSEGV:
>>> -         case SIGQUIT:
>>> -@@ -615,7 +615,7 @@ int main(int argc, char **argv)
>>> -     }
>>> -
>>> -     sigemptyset(&block_mask);
>>> --    sigaddset(&block_mask, SIGCLD);
>>> -+    sigaddset(&block_mask, SIGCHLD);
>>> -     sigprocmask(SIG_BLOCK, &block_mask, &omask);
>>> -
>>> -     /*
>>> -diff --git a/testcases/kernel/fs/doio/growfiles.c
>>> b/testcases/kernel/fs/doio/growfiles.c
>>> -index 09e7f35..bbad230 100644
>>> ---- a/testcases/kernel/fs/doio/growfiles.c
>>> -+++ b/testcases/kernel/fs/doio/growfiles.c
>>> -@@ -1640,7 +1640,7 @@ int set_sig(void)
>>> - #ifdef SIGRESTART
>>> -         case SIGRESTART:
>>> - #endif /* SIGRESTART */
>>> --        case SIGCLD:
>>> -+        case SIGCHLD:
>>> -             break;
>>> -
>>> -         default:
>>> -diff --git a/testcases/kernel/syscalls/fcntl/fcntl11.c
>>> b/testcases/kernel/syscalls/fcntl/fcntl11.c
>>> -index fa6ce53..2de2b6c 100644
>>> ---- a/testcases/kernel/syscalls/fcntl/fcntl11.c
>>> -+++ b/testcases/kernel/syscalls/fcntl/fcntl11.c
>>> -@@ -105,10 +105,10 @@ void setup(void)
>>> -     memset(&act, 0, sizeof(act));
>>> -     act.sa_handler = catch_child;
>>> -     sigemptyset(&act.sa_mask);
>>> --    sigaddset(&act.sa_mask, SIGCLD);
>>> --    if ((sigaction(SIGCLD, &act, NULL)) < 0)
>>> -+    sigaddset(&act.sa_mask, SIGCHLD);
>>> -+    if ((sigaction(SIGCHLD, &act, NULL)) < 0)
>>> -         tst_brkm(TBROK | TERRNO, cleanup,
>>> --             "sigaction(SIGCLD, ..) failed");
>>> -+             "sigaction(SIGCHLD, ..) failed");
>>> - }
>>> -
>>> - void do_child(void)
>>> -@@ -227,7 +227,7 @@ void stop_child(void)
>>> - {
>>> -     struct flock fl;
>>> -
>>> --    signal(SIGCLD, SIG_DFL);
>>> -+    signal(SIGCHLD, SIG_DFL);
>>> -     fl.l_type = STOP;
>>> -     parent_put(&fl);
>>> -     wait(0);
>>> -diff --git a/testcases/kernel/syscalls/fcntl/fcntl17.c
>>> b/testcases/kernel/syscalls/fcntl/fcntl17.c
>>> -index 5b03e39..6598b20 100644
>>> ---- a/testcases/kernel/syscalls/fcntl/fcntl17.c
>>> -+++ b/testcases/kernel/syscalls/fcntl/fcntl17.c
>>> -@@ -150,9 +150,9 @@ int setup(void)
>>> -     memset(&act, 0, sizeof(act));
>>> -     act.sa_handler = catch_child;
>>> -     sigemptyset(&act.sa_mask);
>>> --    sigaddset(&act.sa_mask, SIGCLD);
>>> --    if (sigaction(SIGCLD, &act, NULL) < 0) {
>>> --        tst_resm(TFAIL, "SIGCLD signal setup failed, errno: %d",
>>> errno);
>>> -+    sigaddset(&act.sa_mask, SIGCHLD);
>>> -+    if (sigaction(SIGCHLD, &act, NULL) < 0) {
>>> -+        tst_resm(TFAIL, "SIGCHLD signal setup failed, errno: %d",
>>> errno);
>>> -         return 1;
>>> -     }
>>> -     return 0;
>>> -@@ -381,7 +381,7 @@ void stop_children(void)
>>> - {
>>> -     int arg;
>>> -
>>> --    signal(SIGCLD, SIG_DFL);
>>> -+    signal(SIGCHLD, SIG_DFL);
>>> -     arg = STOP;
>>> -     child_free(child_pipe1[1], arg);
>>> -     child_free(child_pipe2[1], arg);
>>> -diff --git a/testcases/kernel/syscalls/fcntl/fcntl19.c
>>> b/testcases/kernel/syscalls/fcntl/fcntl19.c
>>> -index a542cfc..88c91d6 100644
>>> ---- a/testcases/kernel/syscalls/fcntl/fcntl19.c
>>> -+++ b/testcases/kernel/syscalls/fcntl/fcntl19.c
>>> -@@ -112,9 +112,9 @@ void setup(void)
>>> -     memset(&act, 0, sizeof(act));
>>> -     act.sa_handler = catch_child;
>>> -     sigemptyset(&act.sa_mask);
>>> --    sigaddset(&act.sa_mask, SIGCLD);
>>> --    if ((sigaction(SIGCLD, &act, NULL)) < 0) {
>>> --        tst_resm(TFAIL, "SIGCLD signal setup failed, errno: %d",
>>> errno);
>>> -+    sigaddset(&act.sa_mask, SIGCHLD);
>>> -+    if ((sigaction(SIGCHLD, &act, NULL)) < 0) {
>>> -+        tst_resm(TFAIL, "SIGCHLD signal setup failed, errno: %d",
>>> errno);
>>> -         fail = 1;
>>> -     }
>>> - }
>>> -@@ -265,7 +265,7 @@ void stop_child(void)
>>> - {
>>> -     struct flock fl;
>>> -
>>> --    signal(SIGCLD, SIG_DFL);
>>> -+    signal(SIGCHLD, SIG_DFL);
>>> -     fl.l_type = STOP;
>>> -     parent_put(&fl);
>>> -     wait(0);
>>> -diff --git a/testcases/kernel/syscalls/fcntl/fcntl20.c
>>> b/testcases/kernel/syscalls/fcntl/fcntl20.c
>>> -index aa06bab..99fd783 100644
>>> ---- a/testcases/kernel/syscalls/fcntl/fcntl20.c
>>> -+++ b/testcases/kernel/syscalls/fcntl/fcntl20.c
>>> -@@ -109,9 +109,9 @@ void setup(void)
>>> -     memset(&act, 0, sizeof(act));
>>> -     act.sa_handler = catch_child;
>>> -     sigemptyset(&act.sa_mask);
>>> --    sigaddset(&act.sa_mask, SIGCLD);
>>> --    if (sigaction(SIGCLD, &act, NULL) == -1)
>>> --        tst_brkm(TFAIL | TERRNO, cleanup, "SIGCLD signal setup
>>> failed");
>>> -+    sigaddset(&act.sa_mask, SIGCHLD);
>>> -+    if (sigaction(SIGCHLD, &act, NULL) == -1)
>>> -+        tst_brkm(TFAIL | TERRNO, cleanup, "SIGCHLD signal setup
>>> failed");
>>> - }
>>> -
>>> - void cleanup(void)
>>> -@@ -264,7 +264,7 @@ void stop_child(void)
>>> - {
>>> -     struct flock fl;
>>> -
>>> --    signal(SIGCLD, SIG_DFL);
>>> -+    signal(SIGCHLD, SIG_DFL);
>>> -     fl.l_type = STOP;
>>> -     parent_put(&fl);
>>> -     wait(0);
>>> -diff --git a/testcases/kernel/syscalls/fcntl/fcntl21.c
>>> b/testcases/kernel/syscalls/fcntl/fcntl21.c
>>> -index 5307021..8f1a67c 100644
>>> ---- a/testcases/kernel/syscalls/fcntl/fcntl21.c
>>> -+++ b/testcases/kernel/syscalls/fcntl/fcntl21.c
>>> -@@ -110,9 +110,9 @@ void setup(void)
>>> -     memset(&act, 0, sizeof(act));
>>> -     act.sa_handler = catch_child;
>>> -     sigemptyset(&act.sa_mask);
>>> --    sigaddset(&act.sa_mask, SIGCLD);
>>> --    if ((sigaction(SIGCLD, &act, NULL)) < 0) {
>>> --        tst_resm(TFAIL, "SIGCLD signal setup failed, errno: %d",
>>> errno);
>>> -+    sigaddset(&act.sa_mask, SIGCHLD);
>>> -+    if ((sigaction(SIGCHLD, &act, NULL)) < 0) {
>>> -+        tst_resm(TFAIL, "SIGCHLD signal setup failed, errno: %d",
>>> errno);
>>> -         fail = 1;
>>> -     }
>>> - }
>>> -@@ -272,7 +272,7 @@ void stop_child(void)
>>> - {
>>> -     struct flock fl;
>>> -
>>> --    signal(SIGCLD, SIG_DFL);
>>> -+    signal(SIGCHLD, SIG_DFL);
>>> -     fl.l_type = STOP;
>>> -     parent_put(&fl);
>>> -     wait(0);
>>> -diff --git a/testcases/kernel/syscalls/kill/kill02.c
>>> b/testcases/kernel/syscalls/kill/kill02.c
>>> -index 9d6cc68..08360dd 100644
>>> ---- a/testcases/kernel/syscalls/kill/kill02.c
>>> -+++ b/testcases/kernel/syscalls/kill/kill02.c
>>> -@@ -701,7 +701,7 @@ void setup(void)
>>> -
>>> -     /*
>>> -      *  Set to catch unexpected signals.
>>> --     *  SIGCLD is set to be ignored because we do not wait for
>>> termination status.
>>> -+     *  SIGCHLD is set to be ignored because we do not wait for
>>> termination status.
>>> -      *  SIGUSR1 is set to be ignored because this is the signal we
>>> are using for
>>> -      *  the test and we are not concerned with the parent getting it.
>>> -      */
>>> -@@ -713,9 +713,9 @@ void setup(void)
>>> -              "signal(SIGUSR1, SIG_IGN) failed");
>>> -     }
>>> -
>>> --    if (signal(SIGCLD, SIG_IGN) == SIG_ERR) {
>>> -+    if (signal(SIGCHLD, SIG_IGN) == SIG_ERR) {
>>> -         tst_brkm(TBROK | TERRNO, NULL,
>>> --             "signal(SIGCLD, SIG_IGN) failed");
>>> -+             "signal(SIGCHLD, SIG_IGN) failed");
>>> -     }
>>> -
>>> -     TEST_PAUSE;
>>> -diff --git a/testcases/kernel/syscalls/kill/kill12.c
>>> b/testcases/kernel/syscalls/kill/kill12.c
>>> -index 7a47a4a..d7c4147 100644
>>> ---- a/testcases/kernel/syscalls/kill/kill12.c
>>> -+++ b/testcases/kernel/syscalls/kill/kill12.c
>>> -@@ -98,7 +98,7 @@ int main(int argc, char **argv)
>>> -
>>> -     exno = 1;
>>> -
>>> --    if (sigset(SIGCLD, chsig) == SIG_ERR) {
>>> -+    if (sigset(SIGCHLD, chsig) == SIG_ERR) {
>>> -         fprintf(temp, "\tsigset failed, errno = %d\n", errno);
>>> -         fail_exit();
>>> -     }
>>> -@@ -128,7 +128,7 @@ int main(int argc, char **argv)
>>> -                 sleep(1);
>>> -
>>> -             kill(pid, sig);    /* child should ignroe this sig */
>>> --            kill(pid, SIGCLD);    /* child should exit */
>>> -+            kill(pid, SIGCHLD);    /* child should exit */
>>> -
>>> - #ifdef BCS
>>> -             while ((npid = wait(&status)) != pid
>>> -@@ -222,14 +222,14 @@ void do_child(void)
>>> -     int exno = 1;
>>> -
>>> - #ifdef UCLINUX
>>> --    if (sigset(SIGCLD, chsig) == SIG_ERR) {
>>> -+    if (sigset(SIGCHLD, chsig) == SIG_ERR) {
>>> -         fprintf(temp, "\tsigset failed, errno = %d\n", errno);
>>> -         fail_exit();
>>> -     }
>>> - #endif
>>> -
>>> -     sigset(sig, SIG_IGN);    /* set to ignore signal */
>>> --    kill(getppid(), SIGCLD);    /* tell parent we are ready */
>>> -+    kill(getppid(), SIGCHLD);    /* tell parent we are ready */
>>> -     while (!chflag)
>>> -         sleep(1);    /* wait for parent */
>>> -
>>> -diff --git a/testcases/kernel/syscalls/mkdir/mkdir09.c
>>> b/testcases/kernel/syscalls/mkdir/mkdir09.c
>>> -index 41c20e9..07b4fb8 100644
>>> ---- a/testcases/kernel/syscalls/mkdir/mkdir09.c
>>> -+++ b/testcases/kernel/syscalls/mkdir/mkdir09.c
>>> -@@ -122,10 +122,10 @@ int main(int argc, char *argv[])
>>> -
>>> -     }
>>> -
>>> --    /* Set up to catch SIGCLD signal */
>>> --    if (signal(SIGCLD, chld) == SIG_ERR) {
>>> -+    /* Set up to catch SIGCHLD signal */
>>> -+    if (signal(SIGCHLD, chld) == SIG_ERR) {
>>> -         tst_brkm(TFAIL, cleanup,
>>> --             "Error setting up SIGCLD signal, ERRNO = %d", errno);
>>> -+             "Error setting up SIGCHLD signal, ERRNO = %d",
>>> errno);
>>> -
>>> -     }
>>> -
>>> -@@ -236,9 +236,9 @@ int runtest(void)
>>> -         tst_brkm(TFAIL, cleanup,
>>> -              "Error resetting SIGTERM signal, ERRNO = %d", errno);
>>> -     }
>>> --    if (signal(SIGCLD, SIG_DFL) == SIG_ERR) {
>>> -+    if (signal(SIGCHLD, SIG_DFL) == SIG_ERR) {
>>> -         tst_brkm(TFAIL, cleanup,
>>> --             "Error resetting SIGCLD signal, ERRNO = %d", errno);
>>> -+             "Error resetting SIGCHLD signal, ERRNO = %d", errno);
>>> -     }
>>> -
>>> -     if (test_time) {
>>> -@@ -372,7 +372,7 @@ void term(int sig)
>>> -
>>> - void chld(int sig)
>>> - {
>>> --    /* Routine to handle SIGCLD signal. */
>>> -+    /* Routine to handle SIGCHLD signal. */
>>> -
>>> -     sigchld++;
>>> -     if (jump) {
>>> -diff --git a/testcases/kernel/syscalls/sighold/sighold02.c
>>> b/testcases/kernel/syscalls/sighold/sighold02.c
>>> -index e3076fb..be01874 100644
>>> ---- a/testcases/kernel/syscalls/sighold/sighold02.c
>>> -+++ b/testcases/kernel/syscalls/sighold/sighold02.c
>>> -@@ -77,7 +77,7 @@ static int sigs_map[NUMSIGS];
>>> - static int skip_sig(int sig)
>>> - {
>>> -     switch (sig) {
>>> --    case SIGCLD:
>>> -+    case SIGCHLD:
>>> -     case SIGKILL:
>>> -     case SIGALRM:
>>> -     case SIGSTOP:
>>> -diff --git a/testcases/network/tcp_cmds/perf_lan/pingpong.c
>>> b/testcases/network/tcp_cmds/perf_lan/pingpong.c
>>> -index 1196312..5b06798 100644
>>> ---- a/testcases/network/tcp_cmds/perf_lan/pingpong.c
>>> -+++ b/testcases/network/tcp_cmds/perf_lan/pingpong.c
>>> -@@ -182,7 +182,7 @@ int main(int argc, char *argv[])
>>> -
>>> -     /* Setup traps */
>>> -     signal(SIGINT, finish);
>>> --    signal(SIGCLD, finish);
>>> -+    signal(SIGCHLD, finish);
>>> -
>>> -     /* Fork a child process to continue sending packets */
>>> -     tst_resm(TINFO, "Create a child process to continue to send
>>> packets");
>>> -diff --git a/testcases/network/tcp_cmds/perf_lan/pingpong6.c
>>> b/testcases/network/tcp_cmds/perf_lan/pingpong6.c
>>> -index 9747f58..0a0fb1d 100644
>>> ---- a/testcases/network/tcp_cmds/perf_lan/pingpong6.c
>>> -+++ b/testcases/network/tcp_cmds/perf_lan/pingpong6.c
>>> -@@ -153,7 +153,7 @@ char *argv[];
>>> -
>>> -     /* Setup traps */
>>> -     signal(SIGINT, finish);
>>> --    signal(SIGCLD, finish);
>>> -+    signal(SIGCHLD, finish);
>>> -
>>> -     /* Fork a child process to continue sending packets */
>>> -     printf("Create a child process to continue to send packets \n");
>>> ---
>>> -2.7.0
>>> -
>>> diff --git a/meta/recipes-extended/ltp/ltp/0009-Guard-error.h-with-
>>> __GLIBC__.patch b/meta/recipes-extended/ltp/ltp/0009-Guard-error.h-
>>> with-__GLIBC__.patch
>>> deleted file mode 100644
>>> index e58e5a9..0000000
>>> --- a/meta/recipes-extended/ltp/ltp/0009-Guard-error.h-with-
>>> __GLIBC__.patch
>>> +++ /dev/null
>>> @@ -1,270 +0,0 @@
>>> -From 4ba19d64e95a874995d0b554b891b5ec35bd9495 Mon Sep 17 00:00:00 2001
>>> -From: Khem Raj <raj.khem@gmail.com>
>>> -Date: Thu, 7 Jan 2016 19:45:35 +0000
>>> -Subject: [PATCH 09/32] Guard error.h with __GLIBC__
>>> -
>>> -error API is specific to glibc so use the guard to make it conditional
>>> -on glibc
>>> -
>>> -Signed-off-by: Khem Raj <raj.khem@gmail.com>
>>> ----
>>> - testcases/kernel/syscalls/faccessat/faccessat01.c   | 2 ++
>>> - testcases/kernel/syscalls/fallocate/fallocate01.c   | 2 ++
>>> - testcases/kernel/syscalls/fchmodat/fchmodat01.c     | 2 ++
>>> - testcases/kernel/syscalls/fchownat/fchownat01.c     | 2 ++
>>> - testcases/kernel/syscalls/fchownat/fchownat02.c     | 2 ++
>>> - testcases/kernel/syscalls/fstatat/fstatat01.c       | 2 ++
>>> - testcases/kernel/syscalls/futimesat/futimesat01.c   | 2 ++
>>> - testcases/kernel/syscalls/linkat/linkat01.c         | 2 ++
>>> - testcases/kernel/syscalls/linkat/linkat02.c         | 2 ++
>>> - testcases/kernel/syscalls/mkdirat/mkdirat01.c       | 2 ++
>>> - testcases/kernel/syscalls/mknodat/mknodat01.c       | 2 ++
>>> - testcases/kernel/syscalls/mknodat/mknodat02.c       | 2 ++
>>> - testcases/kernel/syscalls/openat/openat01.c         | 2 ++
>>> - testcases/kernel/syscalls/readlinkat/readlinkat01.c | 2 ++
>>> - testcases/kernel/syscalls/renameat/renameat01.c     | 2 ++
>>> - testcases/kernel/syscalls/symlinkat/symlinkat01.c   | 2 ++
>>> - testcases/kernel/syscalls/unlinkat/unlinkat01.c     | 2 ++
>>> - 17 files changed, 34 insertions(+)
>>> -
>>> -diff --git a/testcases/kernel/syscalls/faccessat/faccessat01.c
>>> b/testcases/kernel/syscalls/faccessat/faccessat01.c
>>> -index 7f0e87a..c72dcf0 100644
>>> ---- a/testcases/kernel/syscalls/faccessat/faccessat01.c
>>> -+++ b/testcases/kernel/syscalls/faccessat/faccessat01.c
>>> -@@ -37,7 +37,9 @@
>>> - #include <sys/stat.h>
>>> - #include <fcntl.h>
>>> - #include <unistd.h>
>>> -+#ifdef __GLIBC__
>>> - #include <error.h>
>>> -+#endif
>>> - #include <stdlib.h>
>>> - #include <errno.h>
>>> - #include <string.h>
>>> -diff --git a/testcases/kernel/syscalls/fallocate/fallocate01.c
>>> b/testcases/kernel/syscalls/fallocate/fallocate01.c
>>> -index e72b123..643c0e2 100644
>>> ---- a/testcases/kernel/syscalls/fallocate/fallocate01.c
>>> -+++ b/testcases/kernel/syscalls/fallocate/fallocate01.c
>>> -@@ -96,7 +96,9 @@
>>> - #include <fcntl.h>
>>> - #include <sys/syscall.h>
>>> - #include <unistd.h>
>>> -+#ifdef __GLIBC__
>>> - #include <error.h>
>>> -+#endif
>>> - #include <inttypes.h>
>>> - #include <sys/utsname.h>
>>> -
>>> -diff --git a/testcases/kernel/syscalls/fchmodat/fchmodat01.c
>>> b/testcases/kernel/syscalls/fchmodat/fchmodat01.c
>>> -index 19e9ad5..ae6d807 100644
>>> ---- a/testcases/kernel/syscalls/fchmodat/fchmodat01.c
>>> -+++ b/testcases/kernel/syscalls/fchmodat/fchmodat01.c
>>> -@@ -37,7 +37,9 @@
>>> - #include <sys/stat.h>
>>> - #include <fcntl.h>
>>> - #include <unistd.h>
>>> -+#ifdef __GLIBC__
>>> - #include <error.h>
>>> -+#endif
>>> - #include <stdlib.h>
>>> - #include <errno.h>
>>> - #include <string.h>
>>> -diff --git a/testcases/kernel/syscalls/fchownat/fchownat01.c
>>> b/testcases/kernel/syscalls/fchownat/fchownat01.c
>>> -index b361253..a5218af 100644
>>> ---- a/testcases/kernel/syscalls/fchownat/fchownat01.c
>>> -+++ b/testcases/kernel/syscalls/fchownat/fchownat01.c
>>> -@@ -28,7 +28,9 @@
>>> - #include <sys/stat.h>
>>> - #include <fcntl.h>
>>> - #include <unistd.h>
>>> -+#ifdef __GLIBC__
>>> - #include <error.h>
>>> -+#endif
>>> - #include <stdlib.h>
>>> - #include <errno.h>
>>> - #include <string.h>
>>> -diff --git a/testcases/kernel/syscalls/fchownat/fchownat02.c
>>> b/testcases/kernel/syscalls/fchownat/fchownat02.c
>>> -index 6b0304c..8d2863f 100644
>>> ---- a/testcases/kernel/syscalls/fchownat/fchownat02.c
>>> -+++ b/testcases/kernel/syscalls/fchownat/fchownat02.c
>>> -@@ -26,7 +26,9 @@
>>> - #include <sys/stat.h>
>>> - #include <fcntl.h>
>>> - #include <unistd.h>
>>> -+#ifdef __GLIBC__
>>> - #include <error.h>
>>> -+#endif
>>> - #include <stdlib.h>
>>> - #include <errno.h>
>>> - #include <string.h>
>>> -diff --git a/testcases/kernel/syscalls/fstatat/fstatat01.c
>>> b/testcases/kernel/syscalls/fstatat/fstatat01.c
>>> -index 61531c6..e99fbd2 100644
>>> ---- a/testcases/kernel/syscalls/fstatat/fstatat01.c
>>> -+++ b/testcases/kernel/syscalls/fstatat/fstatat01.c
>>> -@@ -48,7 +48,9 @@
>>> - #include <sys/stat.h>
>>> - #include <sys/time.h>
>>> - #include <fcntl.h>
>>> -+#ifdef __GLIBC__
>>> - #include <error.h>
>>> -+#endif
>>> - #include <stdlib.h>
>>> - #include <errno.h>
>>> - #include <string.h>
>>> -diff --git a/testcases/kernel/syscalls/futimesat/futimesat01.c
>>> b/testcases/kernel/syscalls/futimesat/futimesat01.c
>>> -index ae8d4fe..316dd78 100644
>>> ---- a/testcases/kernel/syscalls/futimesat/futimesat01.c
>>> -+++ b/testcases/kernel/syscalls/futimesat/futimesat01.c
>>> -@@ -37,7 +37,9 @@
>>> - #include <sys/stat.h>
>>> - #include <sys/time.h>
>>> - #include <fcntl.h>
>>> -+#ifdef __GLIBC__
>>> - #include <error.h>
>>> -+#endif
>>> - #include <stdlib.h>
>>> - #include <errno.h>
>>> - #include <string.h>
>>> -diff --git a/testcases/kernel/syscalls/linkat/linkat01.c
>>> b/testcases/kernel/syscalls/linkat/linkat01.c
>>> -index fc0687b..83cbfe7 100644
>>> ---- a/testcases/kernel/syscalls/linkat/linkat01.c
>>> -+++ b/testcases/kernel/syscalls/linkat/linkat01.c
>>> -@@ -49,7 +49,9 @@
>>> - #include <sys/time.h>
>>> - #include <fcntl.h>
>>> - #include <unistd.h>
>>> -+#ifdef __GLIBC__
>>> - #include <error.h>
>>> -+#endif
>>> - #include <stdlib.h>
>>> - #include <errno.h>
>>> - #include <string.h>
>>> -diff --git a/testcases/kernel/syscalls/linkat/linkat02.c
>>> b/testcases/kernel/syscalls/linkat/linkat02.c
>>> -index e9a752a..8d7e431 100644
>>> ---- a/testcases/kernel/syscalls/linkat/linkat02.c
>>> -+++ b/testcases/kernel/syscalls/linkat/linkat02.c
>>> -@@ -23,7 +23,9 @@
>>> - #include <sys/stat.h>
>>> - #include <fcntl.h>
>>> - #include <unistd.h>
>>> -+#ifdef __GLIBC__
>>> - #include <error.h>
>>> -+#endif
>>> - #include <stdlib.h>
>>> - #include <errno.h>
>>> - #include <string.h>
>>> -diff --git a/testcases/kernel/syscalls/mkdirat/mkdirat01.c
>>> b/testcases/kernel/syscalls/mkdirat/mkdirat01.c
>>> -index 7e15947..1dbc038 100644
>>> ---- a/testcases/kernel/syscalls/mkdirat/mkdirat01.c
>>> -+++ b/testcases/kernel/syscalls/mkdirat/mkdirat01.c
>>> -@@ -30,7 +30,9 @@
>>> - #include <sys/types.h>
>>> - #include <sys/stat.h>
>>> - #include <fcntl.h>
>>> -+#ifdef __GLIBC__
>>> - #include <error.h>
>>> -+#endif
>>> - #include <stdlib.h>
>>> - #include <errno.h>
>>> - #include <string.h>
>>> -diff --git a/testcases/kernel/syscalls/mknodat/mknodat01.c
>>> b/testcases/kernel/syscalls/mknodat/mknodat01.c
>>> -index 26e5538..f034f05 100644
>>> ---- a/testcases/kernel/syscalls/mknodat/mknodat01.c
>>> -+++ b/testcases/kernel/syscalls/mknodat/mknodat01.c
>>> -@@ -29,7 +29,9 @@
>>> - #include <sys/types.h>
>>> - #include <fcntl.h>
>>> - #include <sys/stat.h>
>>> -+#ifdef __GLIBC__
>>> - #include <error.h>
>>> -+#endif
>>> - #include <stdlib.h>
>>> - #include <errno.h>
>>> - #include <string.h>
>>> -diff --git a/testcases/kernel/syscalls/mknodat/mknodat02.c
>>> b/testcases/kernel/syscalls/mknodat/mknodat02.c
>>> -index f6368fa..7d0f7c0 100644
>>> ---- a/testcases/kernel/syscalls/mknodat/mknodat02.c
>>> -+++ b/testcases/kernel/syscalls/mknodat/mknodat02.c
>>> -@@ -29,7 +29,9 @@
>>> - #include <sys/types.h>
>>> - #include <fcntl.h>
>>> - #include <sys/stat.h>
>>> -+#ifdef __GLIBC__
>>> - #include <error.h>
>>> -+#endif
>>> - #include <stdlib.h>
>>> - #include <errno.h>
>>> - #include <string.h>
>>> -diff --git a/testcases/kernel/syscalls/openat/openat01.c
>>> b/testcases/kernel/syscalls/openat/openat01.c
>>> -index 85f9a91..4ee0117 100644
>>> ---- a/testcases/kernel/syscalls/openat/openat01.c
>>> -+++ b/testcases/kernel/syscalls/openat/openat01.c
>>> -@@ -29,7 +29,9 @@
>>> - #include <sys/types.h>
>>> - #include <sys/stat.h>
>>> - #include <fcntl.h>
>>> -+#ifdef __GLIBC__
>>> - #include <error.h>
>>> -+#endif
>>> - #include <stdlib.h>
>>> - #include <errno.h>
>>> - #include <string.h>
>>> -diff --git a/testcases/kernel/syscalls/readlinkat/readlinkat01.c
>>> b/testcases/kernel/syscalls/readlinkat/readlinkat01.c
>>> -index 97a49e8..b162853 100644
>>> ---- a/testcases/kernel/syscalls/readlinkat/readlinkat01.c
>>> -+++ b/testcases/kernel/syscalls/readlinkat/readlinkat01.c
>>> -@@ -29,7 +29,9 @@
>>> - #include <sys/stat.h>
>>> - #include <sys/time.h>
>>> - #include <fcntl.h>
>>> -+#ifdef __GLIBC__
>>> - #include <error.h>
>>> -+#endif
>>> - #include <stdlib.h>
>>> - #include <errno.h>
>>> - #include <string.h>
>>> -diff --git a/testcases/kernel/syscalls/renameat/renameat01.c
>>> b/testcases/kernel/syscalls/renameat/renameat01.c
>>> -index f4cd51b..105a05b 100644
>>> ---- a/testcases/kernel/syscalls/renameat/renameat01.c
>>> -+++ b/testcases/kernel/syscalls/renameat/renameat01.c
>>> -@@ -42,7 +42,9 @@
>>> - #include <sys/stat.h>
>>> - #include <sys/time.h>
>>> - #include <fcntl.h>
>>> -+#ifdef __GLIBC__
>>> - #include <error.h>
>>> -+#endif
>>> - #include <stdlib.h>
>>> - #include <errno.h>
>>> - #include <string.h>
>>> -diff --git a/testcases/kernel/syscalls/symlinkat/symlinkat01.c
>>> b/testcases/kernel/syscalls/symlinkat/symlinkat01.c
>>> -index 5c238d8..cb7a7e8 100644
>>> ---- a/testcases/kernel/syscalls/symlinkat/symlinkat01.c
>>> -+++ b/testcases/kernel/syscalls/symlinkat/symlinkat01.c
>>> -@@ -37,7 +37,9 @@
>>> - #include <sys/stat.h>
>>> - #include <sys/time.h>
>>> - #include <fcntl.h>
>>> -+#ifdef __GLIBC__
>>> - #include <error.h>
>>> -+#endif
>>> - #include <stdlib.h>
>>> - #include <errno.h>
>>> - #include <string.h>
>>> -diff --git a/testcases/kernel/syscalls/unlinkat/unlinkat01.c
>>> b/testcases/kernel/syscalls/unlinkat/unlinkat01.c
>>> -index 31fe4e7..26f6d9a 100644
>>> ---- a/testcases/kernel/syscalls/unlinkat/unlinkat01.c
>>> -+++ b/testcases/kernel/syscalls/unlinkat/unlinkat01.c
>>> -@@ -37,7 +37,9 @@
>>> - #include <sys/stat.h>
>>> - #include <sys/time.h>
>>> - #include <fcntl.h>
>>> -+#ifdef __GLIBC__
>>> - #include <error.h>
>>> -+#endif
>>> - #include <stdlib.h>
>>> - #include <errno.h>
>>> - #include <string.h>
>>> ---
>>> -2.7.0
>>> -
>>> diff --git a/meta/recipes-extended/ltp/ltp/0011-Rename-sigset-variable-
>>> to-sigset1.patch b/meta/recipes-extended/ltp/ltp/0011-Rename-sigset-
>>> variable-to-sigset1.patch
>>> index 945280c..6eace63 100644
>>> --- a/meta/recipes-extended/ltp/ltp/0011-Rename-sigset-variable-to-
>>> sigset1.patch
>>> +++ b/meta/recipes-extended/ltp/ltp/0011-Rename-sigset-variable-to-
>>> sigset1.patch
>>> @@ -20,8 +20,8 @@ index 7203e9e..fce87d6 100644
>>>   /**************/
>>>
>>>   key_t key;
>>> --sigset_t sigset;
>>> -+sigset_t sigset1;
>>> +-sigset_t set;
>>> ++sigset_t set1;
>>>
>>>   #define  SIZE  16*1024
>>>
>>> @@ -29,12 +29,12 @@ index 7203e9e..fce87d6 100644
>>>
>>>       key = (key_t) getpid();
>>>
>>> --    sigemptyset(&sigset);
>>> --    sigaddset(&sigset, SIGUSR1);
>>> --    sigprocmask(SIG_BLOCK, &sigset, NULL);
>>> -+    sigemptyset(&sigset1);
>>> -+    sigaddset(&sigset1, SIGUSR1);
>>> -+    sigprocmask(SIG_BLOCK, &sigset1, NULL);
>>> +-    sigemptyset(&set);
>>> +-    sigaddset(&set, SIGUSR1);
>>> +-    sigprocmask(SIG_BLOCK, &set, NULL);
>>> ++    sigemptyset(&set1);
>>> ++    sigaddset(&set1, SIGUSR1);
>>> ++    sigprocmask(SIG_BLOCK, &set1, NULL);
>>>
>>>       pid = fork();
>>>       switch (pid) {
>>> @@ -42,8 +42,8 @@ index 7203e9e..fce87d6 100644
>>>       char *cp;
>>>       int sig;
>>>
>>> --    sigwait(&sigset, &sig);
>>> -+    sigwait(&sigset1, &sig);
>>> +-    sigwait(&set, &sig);
>>> ++    sigwait(&set1, &sig);
>>>       chld_pid = getpid();
>>>   /*--------------------------------------------------------*/
>>>
>>> @@ -55,8 +55,8 @@ index a3c9ca3..77b0fc9 100644
>>>   /**************/
>>>
>>>   key_t key;
>>> --sigset_t sigset;
>>> -+sigset_t sigset1;
>>> +-sigset_t set;
>>> ++sigset_t set1;
>>>
>>>   int child();
>>>   static int rm_shm(int);
>>> @@ -64,12 +64,12 @@ index a3c9ca3..77b0fc9 100644
>>>
>>>       key = (key_t) getpid();
>>>
>>> --    sigemptyset(&sigset);
>>> --    sigaddset(&sigset, SIGUSR1);
>>> --    sigprocmask(SIG_BLOCK, &sigset, NULL);
>>> -+    sigemptyset(&sigset1);
>>> -+    sigaddset(&sigset1, SIGUSR1);
>>> -+    sigprocmask(SIG_BLOCK, &sigset1, NULL);
>>> +-    sigemptyset(&set);
>>> +-    sigaddset(&set, SIGUSR1);
>>> +-    sigprocmask(SIG_BLOCK, &set, NULL);
>>> ++    sigemptyset(&set1);
>>> ++    sigaddset(&set1, SIGUSR1);
>>> ++    sigprocmask(SIG_BLOCK, &set1, NULL);
>>>
>>>       pid = fork();
>>>       switch (pid) {
>>> @@ -77,8 +77,8 @@ index a3c9ca3..77b0fc9 100644
>>>       char *cp;
>>>       int sig;
>>>
>>> --    sigwait(&sigset, &sig);
>>> -+    sigwait(&sigset1, &sig);
>>> +-    sigwait(&set, &sig);
>>> ++    sigwait(&set1, &sig);
>>>       chld_pid = getpid();
>>>
>>>       if ((shmid = shmget(key, SIZE, 0)) < 0) {
>>> @@ -90,8 +90,8 @@ index 20fca52..6fb1d57 100644
>>>   int sig_catch = 0;        /* variable to blocked/unblocked signals
>>> */
>>>
>>>   struct sigaction sa_new;    /* struct to hold signal info */
>>> --sigset_t sigset;        /* signal set to hold signal lists */
>>> -+sigset_t sigset1;        /* signal set to hold signal lists */
>>> +-sigset_t set;        /* signal set to hold signal lists */
>>> ++sigset_t set1;        /* signal set to hold signal lists */
>>>   sigset_t sigset2;
>>>
>>>   int main(int ac, char **av)
>>> @@ -99,8 +99,8 @@ index 20fca52..6fb1d57 100644
>>>            * so that, signal will not be delivered to
>>>            * the test process.
>>>            */
>>> --        TEST(sigprocmask(SIG_BLOCK, &sigset, 0));
>>> -+        TEST(sigprocmask(SIG_BLOCK, &sigset1, 0));
>>> +-        TEST(sigprocmask(SIG_BLOCK, &set, 0));
>>> ++        TEST(sigprocmask(SIG_BLOCK, &set1, 0));
>>>
>>>           /* Get the process id of test process */
>>>           my_pid = getpid();
>>> @@ -108,8 +108,8 @@ index 20fca52..6fb1d57 100644
>>>                    */
>>>                   errno = 0;
>>>                   if (sigprocmask(SIG_UNBLOCK,
>>> --                        &sigset, 0) == -1) {
>>> -+                        &sigset1, 0) == -1) {
>>> +-                        &set, 0) == -1) {
>>> ++                        &set1, 0) == -1) {
>>>                       tst_brkm(TFAIL, cleanup,
>>>                            "sigprocmask() failed "
>>>                            "to unblock signal, "
>>> @@ -117,8 +117,8 @@ index 20fca52..6fb1d57 100644
>>>        * Initialise the signal sets with the list that
>>>        * excludes/includes  all system-defined signals.
>>>        */
>>> --    if (sigemptyset(&sigset) == -1) {
>>> -+    if (sigemptyset(&sigset1) == -1) {
>>> +-    if (sigemptyset(&set) == -1) {
>>> ++    if (sigemptyset(&set1) == -1) {
>>>           tst_brkm(TFAIL, cleanup,
>>>                "sigemptyset() failed, errno=%d : %s",
>>>                errno, strerror(errno));
>>> @@ -126,8 +126,8 @@ index 20fca52..6fb1d57 100644
>>>        * Add specified signal (SIGINT) to the signal set
>>>        * which excludes system-defined signals.
>>>        */
>>> --    if (sigaddset(&sigset, SIGINT) == -1) {
>>> -+    if (sigaddset(&sigset1, SIGINT) == -1) {
>>> +-    if (sigaddset(&set, SIGINT) == -1) {
>>> ++    if (sigaddset(&set1, SIGINT) == -1) {
>>>           tst_brkm(TFAIL, cleanup,
>>>                "sigaddset() failed, errno=%d : %s",
>>>                errno, strerror(errno));
>>> diff --git a/meta/recipes-extended/ltp/ltp/0012-fsstress.c-Replace-
>>> __int64_t-with-int64_t.patch b/meta/recipes-extended/ltp/ltp/0012-
>>> fsstress.c-Replace-__int64_t-with-int64_t.patch
>>> deleted file mode 100644
>>> index e1532c1..0000000
>>> --- a/meta/recipes-extended/ltp/ltp/0012-fsstress.c-Replace-__int64_t-
>>> with-int64_t.patch
>>> +++ /dev/null
>>> @@ -1,351 +0,0 @@
>>> -From 54e098a366a1d773c4d7d4124f2f5aab976681c3 Mon Sep 17 00:00:00 2001
>>> -From: Khem Raj <raj.khem@gmail.com>
>>> -Date: Thu, 7 Jan 2016 19:58:08 +0000
>>> -Subject: [PATCH 12/32] fsstress.c: Replace __int64_t with int64_t
>>> -
>>> -int64_t is defined in ISO C99
>>> -include limits.h to get defintions of PATH_MAX
>>> -
>>> -Signed-off-by: Khem Raj <raj.khem@gmail.com>
>>> ----
>>> - testcases/kernel/fs/fsstress/fsstress.c       | 31 +++++++++---------
>>> - testcases/network/nfs/nfs_fsstress/fsstress.c | 47 ++++++++++++++----
>>> ---------
>>> - 2 files changed, 40 insertions(+), 38 deletions(-)
>>> -
>>> -diff --git a/testcases/kernel/fs/fsstress/fsstress.c
>>> b/testcases/kernel/fs/fsstress/fsstress.c
>>> -index 2f89903..89f0b19 100644
>>> ---- a/testcases/kernel/fs/fsstress/fsstress.c
>>> -+++ b/testcases/kernel/fs/fsstress/fsstress.c
>>> -@@ -36,6 +36,7 @@
>>> - #ifdef HAVE_SYS_PRCTL_H
>>> - # include <sys/prctl.h>
>>> - #endif
>>> -+#include <limits.h>
>>> -
>>> - #define XFS_ERRTAG_MAX        17
>>> -
>>> -@@ -1572,7 +1573,7 @@ void bulkstat_f(int opno, long r)
>>> -     __u64 last;
>>> -     __s32 nent;
>>> -     xfs_bstat_t *t;
>>> --    __int64_t total;
>>> -+    int64_t total;
>>> -     xfs_fsop_bulkreq_t bsr;
>>> -
>>> -     last = 0;
>>> -@@ -1764,14 +1765,14 @@ int setdirect(int fd)
>>> -
>>> - void dread_f(int opno, long r)
>>> - {
>>> --    __int64_t align;
>>> -+    int64_t align;
>>> -     char *buf = NULL;
>>> -     struct dioattr diob;
>>> -     int e;
>>> -     pathname_t f;
>>> -     int fd;
>>> -     size_t len;
>>> --    __int64_t lr;
>>> -+    int64_t lr;
>>> -     off64_t off;
>>> -     struct stat64 stb;
>>> -     int v;
>>> -@@ -1835,8 +1836,8 @@ void dread_f(int opno, long r)
>>> -         return;
>>> -     }
>>> - #endif
>>> --    align = (__int64_t) diob.d_miniosz;
>>> --    lr = ((__int64_t) random() << 32) + random();
>>> -+    align = (int64_t) diob.d_miniosz;
>>> -+    lr = ((int64_t) random() << 32) + random();
>>> -     off = (off64_t) (lr % stb.st_size);
>>> -     off -= (off % align);
>>> -     lseek64(fd, off, SEEK_SET);
>>> -@@ -1865,14 +1866,14 @@ void dread_f(int opno, long r)
>>> -
>>> - void dwrite_f(int opno, long r)
>>> - {
>>> --    __int64_t align;
>>> -+    int64_t align;
>>> -     char *buf = NULL;
>>> -     struct dioattr diob;
>>> -     int e;
>>> -     pathname_t f;
>>> -     int fd;
>>> -     size_t len;
>>> --    __int64_t lr;
>>> -+    int64_t lr;
>>> -     off64_t off;
>>> -     struct stat64 stb;
>>> -     int v;
>>> -@@ -1925,8 +1926,8 @@ void dwrite_f(int opno, long r)
>>> -         return;
>>> -     }
>>> - #endif
>>> --    align = (__int64_t) diob.d_miniosz;
>>> --    lr = ((__int64_t) random() << 32) + random();
>>> -+    align = (int64_t) diob.d_miniosz;
>>> -+    lr = ((int64_t) random() << 32) + random();
>>> -     off = (off64_t) (lr % MIN(stb.st_size + (1024 * 1024), 
>>> MAXFSIZE));
>>> -     off -= (off % align);
>>> -     lseek64(fd, off, SEEK_SET);
>>> -@@ -2224,7 +2225,7 @@ void read_f(int opno, long r)
>>> -     pathname_t f;
>>> -     int fd;
>>> -     size_t len;
>>> --    __int64_t lr;
>>> -+    int64_t lr;
>>> -     off64_t off;
>>> -     struct stat64 stb;
>>> -     int v;
>>> -@@ -2262,7 +2263,7 @@ void read_f(int opno, long r)
>>> -         close(fd);
>>> -         return;
>>> -     }
>>> --    lr = ((__int64_t) random() << 32) + random();
>>> -+    lr = ((int64_t) random() << 32) + random();
>>> -     off = (off64_t) (lr % stb.st_size);
>>> -     lseek64(fd, off, SEEK_SET);
>>> -     len = (random() % (getpagesize() * 32)) + 1;
>>> -@@ -2509,7 +2510,7 @@ void truncate_f(int opno, long r)
>>> - {
>>> -     int e;
>>> -     pathname_t f;
>>> --    __int64_t lr;
>>> -+    int64_t lr;
>>> -     off64_t off;
>>> -     struct stat64 stb;
>>> -     int v;
>>> -@@ -2530,7 +2531,7 @@ void truncate_f(int opno, long r)
>>> -         free_pathname(&f);
>>> -         return;
>>> -     }
>>> --    lr = ((__int64_t) random() << 32) + random();
>>> -+    lr = ((int64_t) random() << 32) + random();
>>> -     off = lr % MIN(stb.st_size + (1024 * 1024), MAXFSIZE);
>>> -     off %= maxfsize;
>>> -     e = truncate64_path(&f, off) < 0 ? errno : 0;
>>> -@@ -2626,7 +2627,7 @@ void write_f(int opno, long r)
>>> -     pathname_t f;
>>> -     int fd;
>>> -     size_t len;
>>> --    __int64_t lr;
>>> -+    int64_t lr;
>>> -     off64_t off;
>>> -     struct stat64 stb;
>>> -     int v;
>>> -@@ -2656,7 +2657,7 @@ void write_f(int opno, long r)
>>> -         close(fd);
>>> -         return;
>>> -     }
>>> --    lr = ((__int64_t) random() << 32) + random();
>>> -+    lr = ((int64_t) random() << 32) + random();
>>> -     off = (off64_t) (lr % MIN(stb.st_size + (1024 * 1024), 
>>> MAXFSIZE));
>>> -     off %= maxfsize;
>>> -     lseek64(fd, off, SEEK_SET);
>>> -diff --git a/testcases/network/nfs/nfs_fsstress/fsstress.c
>>> b/testcases/network/nfs/nfs_fsstress/fsstress.c
>>> -index ac91262..a34c416 100644
>>> ---- a/testcases/network/nfs/nfs_fsstress/fsstress.c
>>> -+++ b/testcases/network/nfs/nfs_fsstress/fsstress.c
>>> -@@ -31,6 +31,7 @@
>>> -  */
>>> -
>>> - #include "global.h"
>>> -+#include <limits.h>
>>> -
>>> - #define XFS_ERRTAG_MAX        17
>>> -
>>> -@@ -1368,7 +1369,7 @@ void allocsp_f(int opno, long r)
>>> -     pathname_t f;
>>> -     int fd;
>>> -     struct flock64 fl;
>>> --    __int64_t lr;
>>> -+    int64_t lr;
>>> -     off64_t off;
>>> -     struct stat64 stb;
>>> -     int v;
>>> -@@ -1398,7 +1399,7 @@ void allocsp_f(int opno, long r)
>>> -         close(fd);
>>> -         return;
>>> -     }
>>> --    lr = ((__int64_t) random() << 32) + random();
>>> -+    lr = ((int64_t) random() << 32) + random();
>>> -     off = (off64_t) (lr % MIN(stb.st_size + (1024 * 1024), 
>>> MAXFSIZE));
>>> -     off %= maxfsize;
>>> -     fl.l_whence = SEEK_SET;
>>> -@@ -1519,7 +1520,7 @@ void bulkstat_f(int opno, long r)
>>> -     __uint64_t last;
>>> -     int nent;
>>> -     xfs_bstat_t *t;
>>> --    __int64_t total;
>>> -+    int64_t total;
>>> -     xfs_fsop_bulkreq_t bsr;
>>> -
>>> -     last = 0;
>>> -@@ -1708,14 +1709,14 @@ int setdirect(int fd)
>>> -
>>> - void dread_f(int opno, long r)
>>> - {
>>> --    __int64_t align;
>>> -+    int64_t align;
>>> -     char *buf;
>>> -     struct dioattr diob;
>>> -     int e;
>>> -     pathname_t f;
>>> -     int fd;
>>> -     size_t len;
>>> --    __int64_t lr;
>>> -+    int64_t lr;
>>> -     off64_t off;
>>> -     struct stat64 stb;
>>> -     int v;
>>> -@@ -1775,8 +1776,8 @@ void dread_f(int opno, long r)
>>> -         return;
>>> -     }
>>> - #endif
>>> --    align = (__int64_t) diob.d_miniosz;
>>> --    lr = ((__int64_t) random() << 32) + random();
>>> -+    align = (int64_t) diob.d_miniosz;
>>> -+    lr = ((int64_t) random() << 32) + random();
>>> -     off = (off64_t) (lr % stb.st_size);
>>> -     off -= (off % align);
>>> -     lseek64(fd, off, SEEK_SET);
>>> -@@ -1798,14 +1799,14 @@ void dread_f(int opno, long r)
>>> -
>>> - void dwrite_f(int opno, long r)
>>> - {
>>> --    __int64_t align;
>>> -+    int64_t align;
>>> -     char *buf;
>>> -     struct dioattr diob;
>>> -     int e;
>>> -     pathname_t f;
>>> -     int fd;
>>> -     size_t len;
>>> --    __int64_t lr;
>>> -+    int64_t lr;
>>> -     off64_t off;
>>> -     struct stat64 stb;
>>> -     int v;
>>> -@@ -1854,8 +1855,8 @@ void dwrite_f(int opno, long r)
>>> -         return;
>>> -     }
>>> - #endif
>>> --    align = (__int64_t) diob.d_miniosz;
>>> --    lr = ((__int64_t) random() << 32) + random();
>>> -+    align = (int64_t) diob.d_miniosz;
>>> -+    lr = ((int64_t) random() << 32) + random();
>>> -     off = (off64_t) (lr % MIN(stb.st_size + (1024 * 1024), 
>>> MAXFSIZE));
>>> -     off -= (off % align);
>>> -     lseek64(fd, off, SEEK_SET);
>>> -@@ -1917,7 +1918,7 @@ void freesp_f(int opno, long r)
>>> -     pathname_t f;
>>> -     int fd;
>>> -     struct flock64 fl;
>>> --    __int64_t lr;
>>> -+    int64_t lr;
>>> -     off64_t off;
>>> -     struct stat64 stb;
>>> -     int v;
>>> -@@ -1947,7 +1948,7 @@ void freesp_f(int opno, long r)
>>> -         close(fd);
>>> -         return;
>>> -     }
>>> --    lr = ((__int64_t) random() << 32) + random();
>>> -+    lr = ((int64_t) random() << 32) + random();
>>> -     off = (off64_t) (lr % MIN(stb.st_size + (1024 * 1024), 
>>> MAXFSIZE));
>>> -     off %= maxfsize;
>>> -     fl.l_whence = SEEK_SET;
>>> -@@ -2145,7 +2146,7 @@ void read_f(int opno, long r)
>>> -     pathname_t f;
>>> -     int fd;
>>> -     size_t len;
>>> --    __int64_t lr;
>>> -+    int64_t lr;
>>> -     off64_t off;
>>> -     struct stat64 stb;
>>> -     int v;
>>> -@@ -2183,7 +2184,7 @@ void read_f(int opno, long r)
>>> -         close(fd);
>>> -         return;
>>> -     }
>>> --    lr = ((__int64_t) random() << 32) + random();
>>> -+    lr = ((int64_t) random() << 32) + random();
>>> -     off = (off64_t) (lr % stb.st_size);
>>> -     lseek64(fd, off, SEEK_SET);
>>> -     len = (random() % (getpagesize() * 32)) + 1;
>>> -@@ -2281,7 +2282,7 @@ void resvsp_f(int opno, long r)
>>> -     pathname_t f;
>>> -     int fd;
>>> -     struct flock64 fl;
>>> --    __int64_t lr;
>>> -+    int64_t lr;
>>> -     off64_t off;
>>> -     struct stat64 stb;
>>> -     int v;
>>> -@@ -2311,7 +2312,7 @@ void resvsp_f(int opno, long r)
>>> -         close(fd);
>>> -         return;
>>> -     }
>>> --    lr = ((__int64_t) random() << 32) + random();
>>> -+    lr = ((int64_t) random() << 32) + random();
>>> -     off = (off64_t) (lr % MIN(stb.st_size + (1024 * 1024), 
>>> MAXFSIZE));
>>> -     off %= maxfsize;
>>> -     fl.l_whence = SEEK_SET;
>>> -@@ -2428,7 +2429,7 @@ void truncate_f(int opno, long r)
>>> - {
>>> -     int e;
>>> -     pathname_t f;
>>> --    __int64_t lr;
>>> -+    int64_t lr;
>>> -     off64_t off;
>>> -     struct stat64 stb;
>>> -     int v;
>>> -@@ -2449,7 +2450,7 @@ void truncate_f(int opno, long r)
>>> -         free_pathname(&f);
>>> -         return;
>>> -     }
>>> --    lr = ((__int64_t) random() << 32) + random();
>>> -+    lr = ((int64_t) random() << 32) + random();
>>> -     off = (off64_t) (lr % MIN(stb.st_size + (1024 * 1024), 
>>> MAXFSIZE));
>>> -     off %= maxfsize;
>>> -     e = truncate64_path(&f, off) < 0 ? errno : 0;
>>> -@@ -2491,7 +2492,7 @@ void unresvsp_f(int opno, long r)
>>> -     pathname_t f;
>>> -     int fd;
>>> -     struct flock64 fl;
>>> --    __int64_t lr;
>>> -+    int64_t lr;
>>> -     off64_t off;
>>> -     struct stat64 stb;
>>> -     int v;
>>> -@@ -2521,7 +2522,7 @@ void unresvsp_f(int opno, long r)
>>> -         close(fd);
>>> -         return;
>>> -     }
>>> --    lr = ((__int64_t) random() << 32) + random();
>>> -+    lr = ((int64_t) random() << 32) + random();
>>> -     off = (off64_t) (lr % MIN(stb.st_size + (1024 * 1024), 
>>> MAXFSIZE));
>>> -     off %= maxfsize;
>>> -     fl.l_whence = SEEK_SET;
>>> -@@ -2543,7 +2544,7 @@ void write_f(int opno, long r)
>>> -     pathname_t f;
>>> -     int fd;
>>> -     size_t len;
>>> --    __int64_t lr;
>>> -+    int64_t lr;
>>> -     off64_t off;
>>> -     struct stat64 stb;
>>> -     int v;
>>> -@@ -2573,7 +2574,7 @@ void write_f(int opno, long r)
>>> -         close(fd);
>>> -         return;
>>> -     }
>>> --    lr = ((__int64_t) random() << 32) + random();
>>> -+    lr = ((int64_t) random() << 32) + random();
>>> -     off = (off64_t) (lr % MIN(stb.st_size + (1024 * 1024), 
>>> MAXFSIZE));
>>> -     off %= maxfsize;
>>> -     lseek64(fd, off, SEEK_SET);
>>> ---
>>> -2.7.0
>>> -
>>> diff --git a/meta/recipes-extended/ltp/ltp/0013-include-fcntl.h-for-
>>> getting-O_-definitions.patch b/meta/recipes-extended/ltp/ltp/0013-
>>> include-fcntl.h-for-getting-O_-definitions.patch
>>> deleted file mode 100644
>>> index 4266e4f..0000000
>>> --- a/meta/recipes-extended/ltp/ltp/0013-include-fcntl.h-for-getting-
>>> O_-definitions.patch
>>> +++ /dev/null
>>> @@ -1,67 +0,0 @@
>>> -From 1ef8c32317064438ec3b37a114f5d82957f4e0c6 Mon Sep 17 00:00:00 2001
>>> -From: Khem Raj <raj.khem@gmail.com>
>>> -Date: Thu, 7 Jan 2016 20:05:54 +0000
>>> -Subject: [PATCH 13/32] include fcntl.h for getting O_* definitions
>>> -
>>> -musl exposes this issue, with glibc fcntl.h is included via some other
>>> -header and this problem remained latent
>>> -
>>> -Signed-off-by: Khem Raj <raj.khem@gmail.com>
>>> ----
>>> - testcases/kernel/ipc/ipc_stress/shmem_test_03.c   | 1 +
>>> - testcases/kernel/syscalls/mq_notify/mq_notify01.c | 1 +
>>> - testcases/network/tcp_cmds/sendfile/testsf_c.c    | 1 +
>>> - testcases/network/tcp_cmds/sendfile/testsf_s.c    | 1 +
>>> - 4 files changed, 4 insertions(+)
>>> -
>>> -diff --git a/testcases/kernel/ipc/ipc_stress/shmem_test_03.c
>>> b/testcases/kernel/ipc/ipc_stress/shmem_test_03.c
>>> -index c1b11fd..8be156f 100644
>>> ---- a/testcases/kernel/ipc/ipc_stress/shmem_test_03.c
>>> -+++ b/testcases/kernel/ipc/ipc_stress/shmem_test_03.c
>>> -@@ -72,6 +72,7 @@
>>> - #include <string.h>
>>> - #include <unistd.h>
>>> - #include <limits.h>
>>> -+#include <fcntl.h>
>>> - #include <sys/file.h>
>>> - #include <sys/ipc.h>
>>> - #include <sys/mman.h>
>>> -diff --git a/testcases/kernel/syscalls/mq_notify/mq_notify01.c
>>> b/testcases/kernel/syscalls/mq_notify/mq_notify01.c
>>> -index 4728c70..5c7846c 100644
>>> ---- a/testcases/kernel/syscalls/mq_notify/mq_notify01.c
>>> -+++ b/testcases/kernel/syscalls/mq_notify/mq_notify01.c
>>> -@@ -41,6 +41,7 @@
>>> - #include <mqueue.h>
>>> - #include <signal.h>
>>> - #include <stdlib.h>
>>> -+#include <fcntl.h>
>>> -
>>> - #include "../utils/include_j_h.h"
>>> -
>>> -diff --git a/testcases/network/tcp_cmds/sendfile/testsf_c.c
>>> b/testcases/network/tcp_cmds/sendfile/testsf_c.c
>>> -index 449784f..38d3274 100644
>>> ---- a/testcases/network/tcp_cmds/sendfile/testsf_c.c
>>> -+++ b/testcases/network/tcp_cmds/sendfile/testsf_c.c
>>> -@@ -9,6 +9,7 @@
>>> - #include <sys/types.h>
>>> - #include <stdlib.h>
>>> - #include <string.h>
>>> -+#include <fcntl.h>
>>> - #include <sys/file.h>
>>> - #include <arpa/inet.h>
>>> - #include <netinet/in.h>
>>> -diff --git a/testcases/network/tcp_cmds/sendfile/testsf_s.c
>>> b/testcases/network/tcp_cmds/sendfile/testsf_s.c
>>> -index 17e98ad..bce8dd1 100644
>>> ---- a/testcases/network/tcp_cmds/sendfile/testsf_s.c
>>> -+++ b/testcases/network/tcp_cmds/sendfile/testsf_s.c
>>> -@@ -6,6 +6,7 @@
>>> - #include <stdio.h>
>>> - #include <stdlib.h>
>>> - #include <unistd.h>
>>> -+#include <fcntl.h>
>>> - #include <sys/file.h>
>>> - #include <errno.h>
>>> - #include <sys/signal.h>
>>> ---
>>> -2.7.0
>>> -
>>> diff --git a/meta/recipes-extended/ltp/ltp/0014-hyperthreading-Include-
>>> sys-types.h-for-pid_t-definit.patch b/meta/recipes-
>>> extended/ltp/ltp/0014-hyperthreading-Include-sys-types.h-for-pid_t-
>>> definit.patch
>>> deleted file mode 100644
>>> index 84d81e9..0000000
>>> --- a/meta/recipes-extended/ltp/ltp/0014-hyperthreading-Include-sys-
>>> types.h-for-pid_t-definit.patch
>>> +++ /dev/null
>>> @@ -1,56 +0,0 @@
>>> -From d63fefa86dac437c47b9ebbea0a82a1240aaba2c Mon Sep 17 00:00:00 2001
>>> -From: Khem Raj <raj.khem@gmail.com>
>>> -Date: Thu, 7 Jan 2016 20:09:56 +0000
>>> -Subject: [PATCH 14/32] hyperthreading: Include sys/types.h for pid_t
>>> - definition
>>> -
>>> -If sys/types.h is not included then it will not define pid_t_needed
>>> -and therefore typedef wont be included and we get errors about pid_t
>>> -being not known
>>> -
>>> -Signed-off-by: Khem Raj <raj.khem@gmail.com>
>>> ----
>>> - testcases/kernel/sched/hyperthreading/ht_affinity/ht_utils.h | 1 +
>>> - testcases/kernel/sched/hyperthreading/ht_enabled/ht_utils.h | 1 +
>>> - testcases/kernel/sched/hyperthreading/ht_interrupt/ht_utils.h | 1 +
>>> - 3 files changed, 3 insertions(+)
>>> -
>>> -diff --git
>>> a/testcases/kernel/sched/hyperthreading/ht_affinity/ht_utils.h
>>> b/testcases/kernel/sched/hyperthreading/ht_affinity/ht_utils.h
>>> -index 1ec9794..9084aa7 100644
>>> ---- a/testcases/kernel/sched/hyperthreading/ht_affinity/ht_utils.h
>>> -+++ b/testcases/kernel/sched/hyperthreading/ht_affinity/ht_utils.h
>>> -@@ -3,6 +3,7 @@
>>> - #define _HTUTILS_H_
>>> -
>>> - #include <stdlib.h>
>>> -+#include <sys/types.h>
>>> -
>>> - int is_cmdline_para(const char *para);
>>> -
>>> -diff --git
>>> a/testcases/kernel/sched/hyperthreading/ht_enabled/ht_utils.h
>>> b/testcases/kernel/sched/hyperthreading/ht_enabled/ht_utils.h
>>> -index 1ec9794..c03a124 100644
>>> ---- a/testcases/kernel/sched/hyperthreading/ht_enabled/ht_utils.h
>>> -+++ b/testcases/kernel/sched/hyperthreading/ht_enabled/ht_utils.h
>>> -@@ -2,6 +2,7 @@
>>> - #ifndef _HTUTILS_H_
>>> - #define _HTUTILS_H_
>>> -
>>> -+#include <sys/types.h>
>>> - #include <stdlib.h>
>>> -
>>> - int is_cmdline_para(const char *para);
>>> -diff --git
>>> a/testcases/kernel/sched/hyperthreading/ht_interrupt/ht_utils.h
>>> b/testcases/kernel/sched/hyperthreading/ht_interrupt/ht_utils.h
>>> -index 2977ad0..6b484e1 100644
>>> ---- a/testcases/kernel/sched/hyperthreading/ht_interrupt/ht_utils.h
>>> -+++ b/testcases/kernel/sched/hyperthreading/ht_interrupt/ht_utils.h
>>> -@@ -3,6 +3,7 @@
>>> - #define _HTUTILS_H_
>>> -
>>> - #include <stdlib.h>
>>> -+#include <sys/types.h>
>>> -
>>> - int is_cmdline_para(const char *para);
>>> -
>>> ---
>>> -2.7.0
>>> -
>>> diff --git a/meta/recipes-extended/ltp/ltp/0015-mincore01-Rename-
>>> PAGESIZE-to-pagesize.patch b/meta/recipes-extended/ltp/ltp/0015-
>>> mincore01-Rename-PAGESIZE-to-pagesize.patch
>>> deleted file mode 100644
>>> index 963536f..0000000
>>> --- a/meta/recipes-extended/ltp/ltp/0015-mincore01-Rename-PAGESIZE-to-
>>> pagesize.patch
>>> +++ /dev/null
>>> @@ -1,64 +0,0 @@
>>> -From f091839532f3afe0a58e8ba0b45615c899a43a47 Mon Sep 17 00:00:00 2001
>>> -From: Khem Raj <raj.khem@gmail.com>
>>> -Date: Thu, 7 Jan 2016 20:12:09 +0000
>>> -Subject: [PATCH 15/32] mincore01: Rename PAGESIZE to pagesize
>>> -
>>> -PAGESIZE conflicts with system headers on musl
>>> -
>>> -Signed-off-by: Khem Raj <raj.khem@gmail.com>
>>> ----
>>> - testcases/kernel/syscalls/mincore/mincore01.c | 10 +++++-----
>>> - 1 file changed, 5 insertions(+), 5 deletions(-)
>>> -
>>> -diff --git a/testcases/kernel/syscalls/mincore/mincore01.c
>>> b/testcases/kernel/syscalls/mincore/mincore01.c
>>> -index 97a3d95..fa426d1 100644
>>> ---- a/testcases/kernel/syscalls/mincore/mincore01.c
>>> -+++ b/testcases/kernel/syscalls/mincore/mincore01.c
>>> -@@ -45,7 +45,7 @@
>>> - #include "test.h"
>>> - #include "safe_macros.h"
>>> -
>>> --static int PAGESIZE;
>>> -+static int pagesize;
>>> - static rlim_t STACK_LIMIT = 10485760;
>>> -
>>> - static void cleanup(void);
>>> -@@ -146,7 +146,7 @@ static void setup4(struct test_case_t *tc)
>>> -     }
>>> -
>>> -     tc->addr = global_pointer;
>>> --    tc->len = as_lim.rlim_cur - (rlim_t)global_pointer + PAGESIZE;
>>> -+    tc->len = as_lim.rlim_cur - (rlim_t)global_pointer + pagesize;
>>> -     tc->vector = global_vec;
>>> -
>>> -     /*
>>> -@@ -161,7 +161,7 @@ static void setup(void)
>>> -     char *buf;
>>> -     int fd;
>>> -
>>> --    PAGESIZE = getpagesize();
>>> -+    pagesize = getpagesize();
>>> -
>>> -     tst_sig(NOFORK, DEF_HANDLER, cleanup);
>>> -
>>> -@@ -170,7 +170,7 @@ static void setup(void)
>>> -     TEST_PAUSE;
>>> -
>>> -     /* global_pointer will point to a mmapped area of global_len
>>> bytes */
>>> --    global_len = PAGESIZE * 2;
>>> -+    global_len = pagesize * 2;
>>> -
>>> -     buf = SAFE_MALLOC(cleanup, global_len);
>>> -     memset(buf, 42, global_len);
>>> -@@ -186,7 +186,7 @@ static void setup(void)
>>> -                    PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
>>> -
>>> -     global_vec = SAFE_MALLOC(cleanup,
>>> --                 (global_len + PAGESIZE - 1) / PAGESIZE);
>>> -+                 (global_len + pagesize - 1) / pagesize);
>>> -
>>> -     SAFE_CLOSE(cleanup, fd);
>>> - }
>>> ---
>>> -2.7.0
>>> -
>>> diff --git a/meta/recipes-extended/ltp/ltp/0016-ustat-Change-header-
>>> from-ustat.h-to-sys-ustat.h.patch b/meta/recipes-extended/ltp/ltp/0016-
>>> ustat-Change-header-from-ustat.h-to-sys-ustat.h.patch
>>> deleted file mode 100644
>>> index 1b5b93a..0000000
>>> --- a/meta/recipes-extended/ltp/ltp/0016-ustat-Change-header-from-
>>> ustat.h-to-sys-ustat.h.patch
>>> +++ /dev/null
>>> @@ -1,45 +0,0 @@
>>> -From 2b9be924bbad8a1f84ae553fdd1aa8391aa8d2f4 Mon Sep 17 00:00:00 2001
>>> -From: Khem Raj <raj.khem@gmail.com>
>>> -Date: Thu, 7 Jan 2016 20:15:07 +0000
>>> -Subject: [PATCH 16/32] ustat: Change header from ustat.h to
>>> sys/ustat.h
>>> -
>>> -makes it portable for musl, on glibc ustat.h is just including
>>> -sys/ustat.h too
>>> -
>>> -Signed-off-by: Khem Raj <raj.khem@gmail.com>
>>> ----
>>> - testcases/kernel/syscalls/ustat/ustat01.c | 2 +-
>>> - testcases/kernel/syscalls/ustat/ustat02.c | 2 +-
>>> - 2 files changed, 2 insertions(+), 2 deletions(-)
>>> -
>>> -diff --git a/testcases/kernel/syscalls/ustat/ustat01.c
>>> b/testcases/kernel/syscalls/ustat/ustat01.c
>>> -index 01b7688..494647b 100644
>>> ---- a/testcases/kernel/syscalls/ustat/ustat01.c
>>> -+++ b/testcases/kernel/syscalls/ustat/ustat01.c
>>> -@@ -20,8 +20,8 @@
>>> -  */
>>> -
>>> - #include <unistd.h>
>>> --#include <ustat.h>
>>> - #include <errno.h>
>>> -+#include <sys/ustat.h>
>>> - #include <sys/types.h>
>>> - #include <sys/stat.h>
>>> - #include "test.h"
>>> -diff --git a/testcases/kernel/syscalls/ustat/ustat02.c
>>> b/testcases/kernel/syscalls/ustat/ustat02.c
>>> -index 4e66236..edada31 100644
>>> ---- a/testcases/kernel/syscalls/ustat/ustat02.c
>>> -+++ b/testcases/kernel/syscalls/ustat/ustat02.c
>>> -@@ -21,8 +21,8 @@
>>> -  */
>>> -
>>> - #include <unistd.h>
>>> --#include <ustat.h>
>>> - #include <errno.h>
>>> -+#include <sys/ustat.h>
>>> - #include <sys/stat.h>
>>> - #include <sys/types.h>
>>> - #include "test.h"
>>> ---
>>> -2.7.0
>>> -
>>> diff --git a/meta/recipes-extended/ltp/ltp/0017-replace-sigval_t-with-
>>> union-sigval.patch b/meta/recipes-extended/ltp/ltp/0017-replace-
>>> sigval_t-with-union-sigval.patch
>>> deleted file mode 100644
>>> index ed25802..0000000
>>> --- a/meta/recipes-extended/ltp/ltp/0017-replace-sigval_t-with-union-
>>> sigval.patch
>>> +++ /dev/null
>>> @@ -1,88 +0,0 @@
>>> -From c882bcd18820b44a685f0d5edd7aaff77a88c912 Mon Sep 17 00:00:00 2001
>>> -From: Khem Raj <raj.khem@gmail.com>
>>> -Date: Thu, 7 Jan 2016 20:17:55 +0000
>>> -Subject: [PATCH 17/32] replace sigval_t with union sigval
>>> -
>>> -This makes it compatible across musl and glibc
>>> -
>>> -Signed-off-by: Khem Raj <raj.khem@gmail.com>
>>> ----
>>> - testcases/kernel/syscalls/timer_getoverrun/timer_getoverrun01.c | 2
>>> +-
>>> - testcases/kernel/syscalls/timer_gettime/timer_gettime01.c | 2
>>> +-
>>> - testcases/kernel/timers/timer_create/timer_create02.c | 4
>>> ++--
>>> - testcases/kernel/timers/timer_create/timer_create03.c | 4
>>> ++--
>>> - 4 files changed, 6 insertions(+), 6 deletions(-)
>>> -
>>> -diff --git
>>> a/testcases/kernel/syscalls/timer_getoverrun/timer_getoverrun01.c
>>> b/testcases/kernel/syscalls/timer_getoverrun/timer_getoverrun01.c
>>> -index d186c1f..bc03544 100644
>>> ---- a/testcases/kernel/syscalls/timer_getoverrun/timer_getoverrun01.c
>>> -+++ b/testcases/kernel/syscalls/timer_getoverrun/timer_getoverrun01.c
>>> -@@ -54,7 +54,7 @@ int main(int ac, char **av)
>>> -
>>> -     setup();
>>> -
>>> --    ev.sigev_value = (sigval_t) 0;
>>> -+    ev.sigev_value = (union sigval) 0;
>>> -     ev.sigev_signo = SIGALRM;
>>> -     ev.sigev_notify = SIGEV_SIGNAL;
>>> -     TEST(ltp_syscall(__NR_timer_create, CLOCK_REALTIME, &ev, 
>>> &timer));
>>> -diff --git a/testcases/kernel/syscalls/timer_gettime/timer_gettime01.c
>>> b/testcases/kernel/syscalls/timer_gettime/timer_gettime01.c
>>> -index b583aee..9371a6a 100644
>>> ---- a/testcases/kernel/syscalls/timer_gettime/timer_gettime01.c
>>> -+++ b/testcases/kernel/syscalls/timer_gettime/timer_gettime01.c
>>> -@@ -55,7 +55,7 @@ int main(int ac, char **av)
>>> -
>>> -     setup();
>>> -
>>> --    ev.sigev_value = (sigval_t) 0;
>>> -+    ev.sigev_value = (union sigval) 0;
>>> -     ev.sigev_signo = SIGALRM;
>>> -     ev.sigev_notify = SIGEV_SIGNAL;
>>> -     TEST(ltp_syscall(__NR_timer_create, CLOCK_REALTIME, &ev, 
>>> &timer));
>>> -diff --git a/testcases/kernel/timers/timer_create/timer_create02.c
>>> b/testcases/kernel/timers/timer_create/timer_create02.c
>>> -index 7f528ed..1127400 100644
>>> ---- a/testcases/kernel/timers/timer_create/timer_create02.c
>>> -+++ b/testcases/kernel/timers/timer_create/timer_create02.c
>>> -@@ -142,7 +142,7 @@ void setup_test(int option)
>>> - {
>>> -     switch (option) {
>>> -     case 0:
>>> --        evp.sigev_value = (sigval_t) 0;
>>> -+        evp.sigev_value = (union sigval) 0;
>>> -         evp.sigev_signo = SIGALRM;
>>> -         evp.sigev_notify = SIGEV_SIGNAL;
>>> -         evp_ptr = &evp;
>>> -@@ -151,7 +151,7 @@ void setup_test(int option)
>>> -         evp_ptr = NULL;
>>> -         break;
>>> -     case 2:
>>> --        evp.sigev_value = (sigval_t) 0;
>>> -+        evp.sigev_value = (union sigval) 0;
>>> -         evp.sigev_signo = SIGALRM;    /* any will do */
>>> -         evp.sigev_notify = SIGEV_NONE;
>>> -         evp_ptr = &evp;
>>> -diff --git a/testcases/kernel/timers/timer_create/timer_create03.c
>>> b/testcases/kernel/timers/timer_create/timer_create03.c
>>> -index 291fcfa..8b01bf7 100644
>>> ---- a/testcases/kernel/timers/timer_create/timer_create03.c
>>> -+++ b/testcases/kernel/timers/timer_create/timer_create03.c
>>> -@@ -129,7 +129,7 @@ void setup_test(int option)
>>> - {
>>> -     switch (option) {
>>> -     case 0:
>>> --        evp.sigev_value = (sigval_t) 0;
>>> -+        evp.sigev_value = (union sigval) 0;
>>> -         evp.sigev_signo = SIGALRM;
>>> -         evp.sigev_notify = SIGEV_SIGNAL;
>>> -         evp_ptr = &evp;
>>> -@@ -138,7 +138,7 @@ void setup_test(int option)
>>> -         evp_ptr = NULL;
>>> -         break;
>>> -     case 2:
>>> --        evp.sigev_value = (sigval_t) 0;
>>> -+        evp.sigev_value = (union sigval) 0;
>>> -         evp.sigev_signo = SIGALRM;    /* any will do */
>>> -         evp.sigev_notify = SIGEV_NONE;
>>> -         evp_ptr = &evp;
>>> ---
>>> -2.7.0
>>> -
>>> diff --git a/meta/recipes-extended/ltp/ltp/0019-tomoyo-Replace-
>>> canonicalize_file_name-with-realpath.patch b/meta/recipes-
>>> extended/ltp/ltp/0019-tomoyo-Replace-canonicalize_file_name-with-
>>> realpath.patch
>>> deleted file mode 100644
>>> index 0a4c5f0..0000000
>>> --- a/meta/recipes-extended/ltp/ltp/0019-tomoyo-Replace-
>>> canonicalize_file_name-with-realpath.patch
>>> +++ /dev/null
>>> @@ -1,32 +0,0 @@
>>> -From 721e94985b9cff3e2724af7ea5be7d005bc12dec Mon Sep 17 00:00:00 2001
>>> -From: Khem Raj <raj.khem@gmail.com>
>>> -Date: Fri, 8 Jan 2016 06:55:27 +0000
>>> -Subject: [PATCH 19/32] tomoyo: Replace canonicalize_file_name() with
>>> - realpath()
>>> -
>>> -canonicalize_file_name() API is specific to glibc
>>> -
>>> -Signed-off-by: Khem Raj <raj.khem@gmail.com>
>>> ----
>>> - testcases/kernel/security/tomoyo/tomoyo_filesystem_test.c | 4 ++--
>>> - 1 file changed, 2 insertions(+), 2 deletions(-)
>>> -
>>> -diff --git a/testcases/kernel/security/tomoyo/tomoyo_filesystem_test.c
>>> b/testcases/kernel/security/tomoyo/tomoyo_filesystem_test.c
>>> -index da4af0f..5c1a3ca 100644
>>> ---- a/testcases/kernel/security/tomoyo/tomoyo_filesystem_test.c
>>> -+++ b/testcases/kernel/security/tomoyo/tomoyo_filesystem_test.c
>>> -@@ -274,9 +274,9 @@ int main(int argc, char *argv[])
>>> -     /* Test mount(). */
>>> -     {
>>> -         static char buf[4096];
>>> --        char *dev_ram_path = canonicalize_file_name("/dev/ram0");
>>> -+        char *dev_ram_path = realpath("/dev/ram0", NULL);
>>> -         if (!dev_ram_path)
>>> --            dev_ram_path = canonicalize_file_name("/dev/ram");
>>> -+            dev_ram_path = realpath("/dev/ram", NULL);
>>> -         if (!dev_ram_path) {
>>> -             dev_ram_path = "/dev/ram0";
>>> -             mknod(dev_ram_path, S_IFBLK, MKDEV(1, 0));
>>> ---
>>> -2.7.0
>>> -
>>> diff --git a/meta/recipes-extended/ltp/ltp/0022-include-sys-
>>> types.h.patch b/meta/recipes-extended/ltp/ltp/0022-include-sys-
>>> types.h.patch
>>> deleted file mode 100644
>>> index 413b44a..0000000
>>> --- a/meta/recipes-extended/ltp/ltp/0022-include-sys-types.h.patch
>>> +++ /dev/null
>>> @@ -1,29 +0,0 @@
>>> -From 7ac6fd51991ac61d1d7594f601d87842060ee284 Mon Sep 17 00:00:00 2001
>>> -From: Khem Raj <raj.khem@gmail.com>
>>> -Date: Fri, 8 Jan 2016 07:06:11 +0000
>>> -Subject: [PATCH 22/32] include sys/types.h
>>> -
>>> -Fixes
>>> -
>>> -error: unknown type name 'uint'
>>> -
>>> -Signed-off-by: Khem Raj <raj.khem@gmail.com>
>>> ----
>>> - testcases/kernel/ipc/ipc_stress/shmem_test_04.c | 1 +
>>> - 1 file changed, 1 insertion(+)
>>> -
>>> -diff --git a/testcases/kernel/ipc/ipc_stress/shmem_test_04.c
>>> b/testcases/kernel/ipc/ipc_stress/shmem_test_04.c
>>> -index 72c2e60..e7e5f61 100644
>>> ---- a/testcases/kernel/ipc/ipc_stress/shmem_test_04.c
>>> -+++ b/testcases/kernel/ipc/ipc_stress/shmem_test_04.c
>>> -@@ -65,6 +65,7 @@
>>> - #include <signal.h>
>>> - #include <stdint.h>
>>> - #include <sys/mman.h>
>>> -+#include <sys/types.h>
>>> -
>>> - #ifdef _LINUX_
>>> - typedef unsigned long ulong_t;
>>> ---
>>> -2.7.0
>>> -
>>> diff --git a/meta/recipes-extended/ltp/ltp/0027-sysconf01-Use-
>>> _SC_2_C_VERSION-conditionally.patch b/meta/recipes-
>>> extended/ltp/ltp/0027-sysconf01-Use-_SC_2_C_VERSION-conditionally.patch
>>> deleted file mode 100644
>>> index b47d097..0000000
>>> --- a/meta/recipes-extended/ltp/ltp/0027-sysconf01-Use-_SC_2_C_VERSION-
>>> conditionally.patch
>>> +++ /dev/null
>>> @@ -1,29 +0,0 @@
>>> -From 4a74b275acc8158850f2500928a1467c3482c986 Mon Sep 17 00:00:00 2001
>>> -From: Khem Raj <raj.khem@gmail.com>
>>> -Date: Fri, 8 Jan 2016 07:23:11 +0000
>>> -Subject: [PATCH 27/32] sysconf01: Use _SC_2_C_VERSION conditionally
>>> -
>>> -_SC_2_C_VERSION is not available on musl
>>> -
>>> -Signed-off-by: Khem Raj <raj.khem@gmail.com>
>>> ----
>>> - testcases/kernel/syscalls/sysconf/sysconf01.c | 2 ++
>>> - 1 file changed, 2 insertions(+)
>>> -
>>> -diff --git a/testcases/kernel/syscalls/sysconf/sysconf01.c
>>> b/testcases/kernel/syscalls/sysconf/sysconf01.c
>>> -index 8542e77..e806943 100644
>>> ---- a/testcases/kernel/syscalls/sysconf/sysconf01.c
>>> -+++ b/testcases/kernel/syscalls/sysconf/sysconf01.c
>>> -@@ -102,7 +102,9 @@ int main(void)
>>> -     test_sysconf(_SC_ATEXIT_MAX);
>>> -     test_sysconf(_SC_2_C_BIND);
>>> -     test_sysconf(_SC_2_C_DEV);
>>> -+#ifdef __GLIBC__
>>> -     test_sysconf(_SC_2_C_VERSION);
>>> -+#endif
>>> -     /* 21 - 25 */
>>> -     test_sysconf(_SC_2_CHAR_TERM);
>>> -     test_sysconf(_SC_2_FORT_DEV);
>>> ---
>>> -2.7.0
>>> -
>>> diff --git a/meta/recipes-extended/ltp/ltp/0029-trace_shed-Fix-build-
>>> with-musl.patch b/meta/recipes-extended/ltp/ltp/0029-trace_shed-Fix-
>>> build-with-musl.patch
>>> deleted file mode 100644
>>> index f7ece9e..0000000
>>> --- a/meta/recipes-extended/ltp/ltp/0029-trace_shed-Fix-build-with-
>>> musl.patch
>>> +++ /dev/null
>>> @@ -1,32 +0,0 @@
>>> -From 2f8a57f66a94210d34dd0361659a8297cf3d813f Mon Sep 17 00:00:00 2001
>>> -From: Khem Raj <raj.khem@gmail.com>
>>> -Date: Fri, 8 Jan 2016 07:29:24 +0000
>>> -Subject: [PATCH 29/32] trace_shed: Fix build with musl
>>> -
>>> -Errors on musl are
>>> -
>>> -trace_sched.c:425:16: error: invalid operands to binary & (have
>>> -'thread_sched_t * {aka struct <anonymous> *}' and 'int')
>>> -      thrd_ndx, WEXITSTATUS(status));
>>> -
>>> -Signed-off-by: Khem Raj <raj.khem@gmail.com>
>>> ----
>>> - testcases/kernel/sched/tool/trace_sched.c | 2 +-
>>> - 1 file changed, 1 insertion(+), 1 deletion(-)
>>> -
>>> -diff --git a/testcases/kernel/sched/tool/trace_sched.c
>>> b/testcases/kernel/sched/tool/trace_sched.c
>>> -index 7815686..30dca5f 100644
>>> ---- a/testcases/kernel/sched/tool/trace_sched.c
>>> -+++ b/testcases/kernel/sched/tool/trace_sched.c
>>> -@@ -422,7 +422,7 @@ int main(int argc,        /* number of input
>>> parameters.                        */
>>> -             if (status == (thread_sched_t *) - 1) {
>>> -                 fprintf(stderr,
>>> -                     "thread [%d] - process exited with
>>> errors %d\n",
>>> --                    thrd_ndx, WEXITSTATUS(status));
>>> -+                    thrd_ndx, WEXITSTATUS((int)status));
>>> -                 exit(-1);
>>> -             } else {
>>> -                 exp_prio[thrd_ndx] = status->exp_prio;
>>> ---
>>> -2.7.0
>>> -
>>> diff --git a/meta/recipes-extended/ltp/ltp/0030-lib-Use-
>>> PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch b/meta/recipes-
>>> extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-
>>> PTHREAD_.patch
>>> deleted file mode 100644
>>> index d2d6d76..0000000
>>> --- a/meta/recipes-extended/ltp/ltp/0030-lib-Use-
>>> PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch
>>> +++ /dev/null
>>> @@ -1,33 +0,0 @@
>>> -From 77c95dacffe90382a1f131c801ac569120d95949 Mon Sep 17 00:00:00 2001
>>> -From: Khem Raj <raj.khem@gmail.com>
>>> -Date: Fri, 8 Jan 2016 07:32:24 +0000
>>> -Subject: [PATCH 30/32] lib: Use PTHREAD_MUTEX_RECURSIVE in place of
>>> - PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP for non-glibc
>>> -
>>> -e.g. musl does not implement the _NP mutex types
>>> -
>>> -Signed-off-by: Khem Raj <raj.khem@gmail.com>
>>> ----
>>> - lib/tst_res.c | 5 ++++-
>>> - 1 file changed, 4 insertions(+), 1 deletion(-)
>>> -
>>> -diff --git a/lib/tst_res.c b/lib/tst_res.c
>>> -index 5c1c58c..3244b5e 100644
>>> ---- a/lib/tst_res.c
>>> -+++ b/lib/tst_res.c
>>> -@@ -104,8 +104,11 @@ int TEST_ERRNO;
>>> -     assert(strlen(buf) > 0);        \
>>> - } while (0)
>>> -
>>> -+#ifdef __GLIBC__
>>> - static pthread_mutex_t tmutex =
>>> PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
>>> -- 
>>> -+#else
>>> -+static pthread_mutex_t tmutex = {  PTHREAD_MUTEX_RECURSIVE };
>>> -+#endif
>>> - /*
>>> -  * Define local function prototypes.
>>> -  */
>>> ---
>>> -2.7.0
>>> -
>>> diff --git a/meta/recipes-extended/ltp/ltp/0031-vma03-fix-page-size-
>>> offset-as-per-page-size-alignmen.patch b/meta/recipes-
>>> extended/ltp/ltp/0031-vma03-fix-page-size-offset-as-per-page-size-
>>> alignmen.patch
>>> deleted file mode 100644
>>> index 473ca4c..0000000
>>> --- a/meta/recipes-extended/ltp/ltp/0031-vma03-fix-page-size-offset-as-
>>> per-page-size-alignmen.patch
>>> +++ /dev/null
>>> @@ -1,33 +0,0 @@
>>> -From 293ff1da06748ed4c69be6ece262d42e562e7298 Mon Sep 17 00:00:00 2001
>>> -From: Khem Raj <raj.khem@gmail.com>
>>> -Date: Fri, 8 Jan 2016 07:36:19 +0000
>>> -Subject: [PATCH 31/32] vma03: fix page size offset as per page size
>>> alignment
>>> -
>>> -the offset the param of mmap2() doesn't align the page size, but,
>>> -this param allow must be a multiple of the page size as returned
>>> -by sysconf(_SC_PAGE_SIZE).meanwhile offset * 4096 must be a
>>> -multiple of the system page size, so modify the input param of offset
>>> -pgoff = (ULONG_MAX - 1)&(~((pgsz-1)>>12));
>>> -
>>> -Signed-off-by: Chuang Dong <Chuang.Dong@windriver.com>
>>> -Signed-off-by: Khem Raj <raj.khem@gmail.com>
>>> ----
>>> - testcases/kernel/mem/vma/vma03.c | 2 +-
>>> - 1 file changed, 1 insertion(+), 1 deletion(-)
>>> -
>>> -diff --git a/testcases/kernel/mem/vma/vma03.c
>>> b/testcases/kernel/mem/vma/vma03.c
>>> -index ad8a7b4..a539233 100644
>>> ---- a/testcases/kernel/mem/vma/vma03.c
>>> -+++ b/testcases/kernel/mem/vma/vma03.c
>>> -@@ -85,7 +85,7 @@ int main(int argc, char *argv[])
>>> -         if (fd == -1)
>>> -             tst_brkm(TBROK | TERRNO, NULL, "open %s", TESTFILE);
>>> -
>>> --        pgoff = ULONG_MAX - 1;
>>> -+        pgoff = (ULONG_MAX - 1)&(~((pgsz-1)>>12));
>>> -         map = mmap2(NULL, pgsz, PROT_READ | PROT_WRITE, MAP_PRIVATE,
>>> -                 fd, pgoff);
>>> -         if (map == MAP_FAILED)
>>> ---
>>> -2.7.0
>>> -
>>> diff --git a/meta/recipes-extended/ltp/ltp/0032-regen.sh-Include-asm-
>>> unistd.h-explicitly.patch b/meta/recipes-extended/ltp/ltp/0032-
>>> regen.sh-Include-asm-unistd.h-explicitly.patch
>>> deleted file mode 100644
>>> index 5c6bf91..0000000
>>> --- a/meta/recipes-extended/ltp/ltp/0032-regen.sh-Include-asm-unistd.h-
>>> explicitly.patch
>>> +++ /dev/null
>>> @@ -1,30 +0,0 @@
>>> -From 4f1905ff09c730091674818bd1b48ee221347101 Mon Sep 17 00:00:00 2001
>>> -From: Khem Raj <raj.khem@gmail.com>
>>> -Date: Fri, 8 Jan 2016 08:30:29 +0000
>>> -Subject: [PATCH 32/32] regen.sh: Include asm/unistd.h explicitly
>>> -
>>> -on musl this is not included indirectly and it results in errors like
>>> -testcases/kernel/include/linux_syscall_numbers.h:1035:25: error:
>>> -'__NR_SYSCALL_BASE' undeclared (first use in this function)
>>> -|  #  define __NR_readdir (__NR_SYSCALL_BASE+ 89)
>>> -
>>> -Signed-off-by: Khem Raj <raj.khem@gmail.com>
>>> ----
>>> - testcases/kernel/include/regen.sh | 1 +
>>> - 1 file changed, 1 insertion(+)
>>> -
>>> -diff --git a/testcases/kernel/include/regen.sh
>>> b/testcases/kernel/include/regen.sh
>>> -index f93f49b..ee790af 100755
>>> ---- a/testcases/kernel/include/regen.sh
>>> -+++ b/testcases/kernel/include/regen.sh
>>> -@@ -32,6 +32,7 @@ cat << EOF > "${output_pid}"
>>> -
>>> - #include <errno.h>
>>> - #include <sys/syscall.h>
>>> -+#include <asm/unistd.h>
>>> - #include "cleanup.c"
>>> -
>>> - #define ltp_syscall(NR, ...) ({ \\
>>> ---
>>> -2.7.0
>>> -
>>> diff --git a/meta/recipes-extended/ltp/ltp_20160126.bb b/meta/recipes-
>>> extended/ltp/ltp_20160920.bb
>>> similarity index 80%
>>> rename from meta/recipes-extended/ltp/ltp_20160126.bb
>>> rename to meta/recipes-extended/ltp/ltp_20160920.bb
>>> index 7631e0e..7d4efbc 100644
>>> --- a/meta/recipes-extended/ltp/ltp_20160126.bb
>>> +++ b/meta/recipes-extended/ltp/ltp_20160920.bb
>>> @@ -24,45 +24,32 @@ DEPENDS_append_libc-musl = " fts "
>>>  EXTRA_OEMAKE_append_libc-musl = " LIBC=musl "
>>>  CFLAGS_append_powerpc64 = " -D__SANE_USERSPACE_TYPES__"
>>>  CFLAGS_append_mips64 = " -D__SANE_USERSPACE_TYPES__"
>>> -SRCREV = "fce797676b14f50406718e7ef640b50da66c9b36"
>>> +SRCREV = "52f4cf73fc1304e1339136729cfc03960d2d7c85"
>>>
>>>  SRC_URI = "git://github.com/linux-test-project/ltp.git \
>>> -           file://0001-ltp-Don-t-link-against-libfl.patch \
>>> file://0002-Add-knob-to-control-whether-numa-support-
>>> should-be-c.patch \
>>> file://0003-Add-knob-to-control-tirpc-support.patch \
>>>             file://0004-build-Add-option-to-select-libc-
>>> implementation.patch \
>>> file://0005-kernel-controllers-Link-with-libfts-explicitly-
>>> on-mu.patch \
>>> - file://0006-sendfile-Use-off64_t-instead-of-__off64_t.patch
>>> \
>>> -           file://0007-replace-SIGCLD-with-SIGCHLD.patch \
>>> file://0008-Check-if-__GLIBC_PREREQ-is-defined-before-
>>> using-it.patch \
>>> -           file://0009-Guard-error.h-with-__GLIBC__.patch \
>>> file://0010-replace-__BEGIN_DECLS-and-__END_DECLS.patch \
>>> file://0011-Rename-sigset-variable-to-sigset1.patch \
>>> - file://0012-fsstress.c-Replace-__int64_t-with-int64_t.patch
>>> \
>>> -           file://0013-include-fcntl.h-for-getting-O_-
>>> definitions.patch \
>>> - file://0014-hyperthreading-Include-sys-types.h-for-pid_t-
>>> definit.patch \
>>> - file://0015-mincore01-Rename-PAGESIZE-to-pagesize.patch \
>>> - file://0016-ustat-Change-header-from-ustat.h-to-sys-
>>> ustat.h.patch \
>>> - file://0017-replace-sigval_t-with-union-sigval.patch \
>>>             file://0018-guard-mallocopt-with-__GLIBC__.patch \
>>> - file://0019-tomoyo-Replace-canonicalize_file_name-with-
>>> realpath.patch \
>>> file://0020-getdents-define-getdents-getdents64-only-for-
>>> glibc.patch \
>>>             file://0021-Define-_GNU_SOURCE-for-MREMAP_MAYMOVE-
>>> definition.patch \
>>> -           file://0022-include-sys-types.h.patch \
>>>             file://0023-ptrace-Use-int-instead-of-enum-
>>> __ptrace_request.patch \
>>>             file://0024-rt_sigaction-rt_sigprocmark-Define-
>>> _GNU_SOURCE.patch \
>>>             file://0025-mc_gethost-include-sys-types.h.patch \
>>>             file://0026-crash01-Define-_GNU_SOURCE.patch \
>>> -           file://0027-sysconf01-Use-_SC_2_C_VERSION-
>>> conditionally.patch \
>>> - file://0028-rt_sigaction.h-Use-sighandler_t-instead-of-
>>> __sighand.patch \
>>> -           file://0029-trace_shed-Fix-build-with-musl.patch \
>>> - file://0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-
>>> PTHREAD_.patch \
>>> - file://0031-vma03-fix-page-size-offset-as-per-page-size-
>>> alignmen.patch \
>>> - file://0032-regen.sh-Include-asm-unistd.h-explicitly.patch
>>> \
>>>             file://0033-shmat1-Cover-GNU-specific-code-under-
>>> __USE_GNU.patch \
>>>             file://0034-periodic_output.patch \
>>> -           file://0035-fix-test_proc_kill-hang.patch \
>>> file://0001-testcases-network-nfsv4-acl-acl1.c-Security-
>>> fix-on-s.patch \
>>> + file://0001-Define-__SIGRTMIN-and-__SIGRTMAX-on-musl.patch
>>> \
>>> + file://0002-initialize-recursive-mutex-in-a-portable-
>>> way.patch \
>>> + file://0003-lapi-Use-sig_t-instead-of-sighandler_t.patch \
>>> + file://0004-rt_sigaction-rt_sigprocmark-Replace-SA_NOMASK-
>>> with-S.patch \
>>> +           file://0005-Fix-test_proc_kill-hanging.patch \
>>> +           file://0006-Remove-unused-__BEGIN_DECLS-and-
>>> __END_DECLS.patch \
>>>             "
>>>
>>>  S = "${WORKDIR}/git"
>>> -- 
>>> 2.7.4
>>>
>>>
>>>
>>> -- 
>>> _______________________________________________
>>> Openembedded-core mailing list
>>> Openembedded-core@lists.openembedded.org
>>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>>
>>



^ permalink raw reply

* Re: [PATCH v2] libdbus-c++: added recipe for it
From: Burton, Ross @ 2016-11-15 23:05 UTC (permalink / raw)
  To: Thilo Cestonaro; +Cc: Thilo Cestonaro, OE-core
In-Reply-To: <20161115152158.7883-1-thilo.cestonaro@ts.fujitsu.com>

[-- Attachment #1: Type: text/plain, Size: 235 bytes --]

On 15 November 2016 at 15:21, Thilo Cestonaro <
thilo.cestonaro@ts.fujitsu.com> wrote:

> Patch goes into meta-oe of meta-openembedded.
>

meta-oe patches should go to openembedded-devel@lists.openembedded.org.

Thanks,
Ross

[-- Attachment #2: Type: text/html, Size: 742 bytes --]

^ permalink raw reply

* [PATCH] [V2] OpenSSL: CVE-2004-2761 replace MD5 hash algorithm
From: T.O. Radzy Radzykewycz @ 2016-11-15 22:14 UTC (permalink / raw)
  To: openembedded-core

Use SHA256 as default digest for OpenSSL instead of MD5.

CVE: CVE-2004-2761

    The MD5 Message-Digest Algorithm is not collision resistant,
    which makes it easier for context-dependent attackers to
    conduct spoofing attacks, as demonstrated by attacks on the
    use of MD5 in the signature algorithm of an X.509 certificate.

Upstream-Status: Backport
Backport from OpenSSL 2.0 to OpenSSL 1.0.2
Commit f8547f62c212837dbf44fb7e2755e5774a59a57b

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Signed-off-by: Zhang Xiao <xiao.zhang@windriver.com>
Signed-off-by: T.O. Radzy Radzykewycz <radzy@windriver.com>
---
 .../Use-SHA256-not-MD5-as-default-digest.patch     | 69 ++++++++++++++++++++++
 1 file changed, 69 insertions(+)
 create mode 100644 meta/recipes-connectivity/openssl/openssl/Use-SHA256-not-MD5-as-default-digest.patch

diff --git a/meta/recipes-connectivity/openssl/openssl/Use-SHA256-not-MD5-as-default-digest.patch b/meta/recipes-connectivity/openssl/openssl/Use-SHA256-not-MD5-as-default-digest.patch
new file mode 100644
index 000000000000..58c9ee784433
--- /dev/null
+++ b/meta/recipes-connectivity/openssl/openssl/Use-SHA256-not-MD5-as-default-digest.patch
@@ -0,0 +1,69 @@
+From d795f5f20a29adecf92c09459a3ee07ffac01a99 Mon Sep 17 00:00:00 2001
+From: Rich Salz <rsalz@akamai.com>
+Date: Sat, 13 Jun 2015 17:03:39 -0400
+Subject: [PATCH] Use SHA256 not MD5 as default digest.
+
+Commit f8547f62c212837dbf44fb7e2755e5774a59a57b upstream.
+
+Upstream-Status: Backport
+Backport from OpenSSL 2.0 to OpenSSL 1.0.2
+Commit f8547f62c212837dbf44fb7e2755e5774a59a57b   
+
+CVE: CVE-2004-2761
+
+    The MD5 Message-Digest Algorithm is not collision resistant,
+    which makes it easier for context-dependent attackers to            
+    conduct spoofing attacks, as demonstrated by attacks on the     
+    use of MD5 in the signature algorithm of an X.509 certificate.     
+
+Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
+Signed-off-by: Zhang Xiao <xiao.zhang@windriver.com>     
+Signed-off-by: T.O. Radzy Radzykewycz <radzy@windriver.com> 
+---
+ apps/ca.c   | 2 +-
+ apps/dgst.c | 2 +-
+ apps/enc.c  | 2 +-
+ 3 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/apps/ca.c b/apps/ca.c
+index 3b7336c..8f3a84b 100644
+--- a/apps/ca.c
++++ b/apps/ca.c
+@@ -1612,7 +1612,7 @@ static int certify_cert(X509 **xret, char *infile, EVP_PKEY *pkey, X509 *x509,
+     } else
+         BIO_printf(bio_err, "Signature ok\n");
+ 
+-    if ((rreq = X509_to_X509_REQ(req, NULL, EVP_md5())) == NULL)
++    if ((rreq = X509_to_X509_REQ(req, NULL, NULL)) == NULL)
+         goto err;
+ 
+     ok = do_body(xret, pkey, x509, dgst, sigopts, policy, db, serial, subj,
+diff --git a/apps/dgst.c b/apps/dgst.c
+index 95e5fa3..0d1529f 100644
+--- a/apps/dgst.c
++++ b/apps/dgst.c
+@@ -442,7 +442,7 @@ int MAIN(int argc, char **argv)
+             goto end;
+         }
+         if (md == NULL)
+-            md = EVP_md5();
++            md = EVP_sha256();
+         if (!EVP_DigestInit_ex(mctx, md, impl)) {
+             BIO_printf(bio_err, "Error setting digest %s\n", pname);
+             ERR_print_errors(bio_err);
+diff --git a/apps/enc.c b/apps/enc.c
+index 7b7c70b..a7d944c 100644
+--- a/apps/enc.c
++++ b/apps/enc.c
+@@ -344,7 +344,7 @@ int MAIN(int argc, char **argv)
+     }
+ 
+     if (dgst == NULL) {
+-        dgst = EVP_md5();
++        dgst = EVP_sha256();
+     }
+ 
+     if (bufsize != NULL) {
+-- 
+1.9.1
+
-- 
1.9.1



^ permalink raw reply related

* [PATCH] lib/oe/lsb: better handle missing fields
From: Joshua Lock @ 2016-11-15 22:08 UTC (permalink / raw)
  To: openembedded-core

Some rolling release distros, such as Arch Linux, don't include a
VERSION_ID field in their os-release file.

Change release_dict_osr() to better handle this optional field
being absent.

Further improve the resilience of the release_dict_*() methods by
always returning a dict and using dict.get() in distro_identifier()
to supply a default, empty string, value when then key is missing.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
---
 meta/lib/oe/lsb.py | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/meta/lib/oe/lsb.py b/meta/lib/oe/lsb.py
index 5a795a1..3a945e0 100644
--- a/meta/lib/oe/lsb.py
+++ b/meta/lib/oe/lsb.py
@@ -15,9 +15,6 @@ def release_dict_osr():
             if key == 'VERSION_ID':
                 data['DISTRIB_RELEASE'] = val.strip('"')
 
-    if len(data.keys()) != 2:
-        return None
-
     return data
 
 def release_dict_lsb():
@@ -27,7 +24,7 @@ def release_dict_lsb():
     try:
         output, err = bb.process.run(['lsb_release', '-ir'], stderr=PIPE)
     except bb.process.CmdError as exc:
-        return None
+        return {}
 
     lsb_map = { 'Distributor ID': 'DISTRIB_ID',
                 'Release': 'DISTRIB_RELEASE'}
@@ -51,7 +48,7 @@ def release_dict_lsb():
 
 def release_dict_file():
     """ Try to gather release information manually when other methods fail """
-    data = None
+    data = {}
     try:
         if os.path.exists('/etc/lsb-release'):
             data = {}
@@ -78,7 +75,7 @@ def release_dict_file():
                         break
 
     except IOError:
-        return None
+        return {}
     return data
 
 def distro_identifier(adjust_hook=None):
@@ -96,8 +93,8 @@ def distro_identifier(adjust_hook=None):
     if not distro_data:
         distro_data = release_dict_file()
 
-    distro_id = distro_data['DISTRIB_ID']
-    release = distro_data['DISTRIB_RELEASE']
+    distro_id = distro_data.get('DISTRIB_ID', '')
+    release = distro_data.get('DISTRIB_RELEASE', '')
 
     if adjust_hook:
         distro_id, release = adjust_hook(distro_id, release)
-- 
2.7.4



^ permalink raw reply related


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox