ltp upgrade and out of tree builds with distutils
v2 cover ltp upgrade and out of tree builds with distutils
changes since v1:
- ltp build on mips64 is fixed
- use [dirs] to denote current dirs
The following changes since commit 2ff6c2ca2e22eaef37ccb4025bc0b78c42695eed:
linux-yocto/4.1: galileo backports and support (2016-02-11 22:56:43 +0000)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib kraj/pu
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=kraj/pu
Khem Raj (2):
distutils: Consider S != B case
ltp: Upgrade to 20160126 and fix build on musl
meta/classes/distutils.bbclass | 24 +-
meta/classes/distutils3.bbclass | 19 +-
.../ltp/ltp/0001-Fix-compilation-for-gcc-5.x.patch | 79 -----
...tests_noltp.sh-script-so-have-unique-name.patch | 202 -----------
...tch => 0001-ltp-Don-t-link-against-libfl.patch} | 11 +-
...-control-whether-numa-support-should-be-c.patch | 43 +++
...> 0003-Add-knob-to-control-tirpc-support.patch} | 20 +-
...-Add-option-to-select-libc-implementation.patch | 147 ++++++++
...rollers-Link-with-libfts-explicitly-on-mu.patch | 45 +++
...sendfile-Use-off64_t-instead-of-__off64_t.patch | 31 ++
.../ltp/ltp/0007-replace-SIGCLD-with-SIGCHLD.patch | 394 +++++++++++++++++++++
...__GLIBC_PREREQ-is-defined-before-using-it.patch | 279 +++++++++++++++
.../ltp/0009-Guard-error.h-with-__GLIBC__.patch | 270 ++++++++++++++
...010-replace-__BEGIN_DECLS-and-__END_DECLS.patch | 73 ++++
.../0011-Rename-sigset-variable-to-sigset1.patch | 136 +++++++
...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 +++++
.../ltp/0018-guard-mallocopt-with-__GLIBC__.patch | 32 ++
...lace-canonicalize_file_name-with-realpath.patch | 32 ++
...define-getdents-getdents64-only-for-glibc.patch | 48 +++
..._GNU_SOURCE-for-MREMAP_MAYMOVE-definition.patch | 71 ++++
.../ltp/ltp/0022-include-sys-types.h.patch | 29 ++
...-Use-int-instead-of-enum-__ptrace_request.patch | 48 +++
...gaction-rt_sigprocmark-Define-_GNU_SOURCE.patch | 68 ++++
.../ltp/0025-mc_gethost-include-sys-types.h.patch | 28 ++
.../ltp/ltp/0026-crash01-Define-_GNU_SOURCE.patch | 29 ++
...sconf01-Use-_SC_2_C_VERSION-conditionally.patch | 29 ++
...n.h-Use-sighandler_t-instead-of-__sighand.patch | 43 +++
.../ltp/0029-trace_shed-Fix-build-with-musl.patch | 32 ++
...READ_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch | 33 ++
...ge-size-offset-as-per-page-size-alignmen.patch} | 17 +-
...-regen.sh-Include-asm-unistd.h-explicitly.patch | 30 ++
.../ltp/ltp/add-knob-for-numa.patch | 39 --
.../ltp/ltp/make-setregid02-work.patch | 61 ----
.../ltp/{ltp_20150903.bb => ltp_20160126.bb} | 45 ++-
39 files changed, 2731 insertions(+), 427 deletions(-)
delete mode 100644 meta/recipes-extended/ltp/ltp/0001-Fix-compilation-for-gcc-5.x.patch
delete mode 100644 meta/recipes-extended/ltp/ltp/0001-Rename-runtests_noltp.sh-script-so-have-unique-name.patch
rename meta/recipes-extended/ltp/ltp/{ltp-Do-not-link-against-libfl.patch => 0001-ltp-Don-t-link-against-libfl.patch} (76%)
create mode 100644 meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch
rename meta/recipes-extended/ltp/ltp/{add-knob-for-tirpc.patch => 0003-Add-knob-to-control-tirpc-support.patch} (54%)
create mode 100644 meta/recipes-extended/ltp/ltp/0004-build-Add-option-to-select-libc-implementation.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0005-kernel-controllers-Link-with-libfts-explicitly-on-mu.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0006-sendfile-Use-off64_t-instead-of-__off64_t.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0007-replace-SIGCLD-with-SIGCHLD.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0008-Check-if-__GLIBC_PREREQ-is-defined-before-using-it.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0009-Guard-error.h-with-__GLIBC__.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0010-replace-__BEGIN_DECLS-and-__END_DECLS.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0011-Rename-sigset-variable-to-sigset1.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0012-fsstress.c-Replace-__int64_t-with-int64_t.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0013-include-fcntl.h-for-getting-O_-definitions.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0014-hyperthreading-Include-sys-types.h-for-pid_t-definit.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0015-mincore01-Rename-PAGESIZE-to-pagesize.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0016-ustat-Change-header-from-ustat.h-to-sys-ustat.h.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0017-replace-sigval_t-with-union-sigval.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0018-guard-mallocopt-with-__GLIBC__.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0019-tomoyo-Replace-canonicalize_file_name-with-realpath.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0020-getdents-define-getdents-getdents64-only-for-glibc.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0021-Define-_GNU_SOURCE-for-MREMAP_MAYMOVE-definition.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0022-include-sys-types.h.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0023-ptrace-Use-int-instead-of-enum-__ptrace_request.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0024-rt_sigaction-rt_sigprocmark-Define-_GNU_SOURCE.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0025-mc_gethost-include-sys-types.h.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0026-crash01-Define-_GNU_SOURCE.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0027-sysconf01-Use-_SC_2_C_VERSION-conditionally.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0028-rt_sigaction.h-Use-sighandler_t-instead-of-__sighand.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0029-trace_shed-Fix-build-with-musl.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch
rename meta/recipes-extended/ltp/ltp/{0001-ltp-vma03-fix-the-alginment-of-page-size.patch => 0031-vma03-fix-page-size-offset-as-per-page-size-alignmen.patch} (71%)
create mode 100644 meta/recipes-extended/ltp/ltp/0032-regen.sh-Include-asm-unistd.h-explicitly.patch
delete mode 100644 meta/recipes-extended/ltp/ltp/add-knob-for-numa.patch
delete mode 100644 meta/recipes-extended/ltp/ltp/make-setregid02-work.patch
rename meta/recipes-extended/ltp/{ltp_20150903.bb => ltp_20160126.bb} (59%)Signature · 1 line
2.7.1
PATCH v2 1/2 distutils: Consider S != B case
out of tree builds can break the assumption about setup.py being in the current directory, seen especially with devtool when using externalsrc many python modules cant build since it cant find setup.py in devtool workspace
--- meta/classes/distutils.bbclass | 24 ++++++++++++++---------- meta/classes/distutils3.bbclass | 19 ++++++++++++------- 2 files changed, 26 insertions(+), 17 deletions(-)
meta/classes/distutils.bbclass +14 -10
@@ -7,18 +7,23 @@ DISTUTILS_STAGE_ALL_ARGS ?= "--prefix=${STAGING_DIR_HOST}${prefix} \ DISTUTILS_INSTALL_ARGS ?= "--prefix=${D}/${prefix} \ --install-data=${D}/${datadir}" +do_compile[dirs] = "${S}" +stage_headers[dirs] = "${S}" +stage_all[dirs] = "${S}" +do_install[dirs] = "${S}" + distutils_do_compile() { - STAGING_INCDIR=${STAGING_INCDIR} \ - STAGING_LIBDIR=${STAGING_LIBDIR} \ - BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ - ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py build ${DISTUTILS_BUILD_ARGS} || \ - bbfatal "${PYTHON_PN} setup.py build execution failed." + STAGING_INCDIR=${STAGING_INCDIR} \ + STAGING_LIBDIR=${STAGING_LIBDIR} \ + BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ + ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} ${S}/setup.py build --build-base=${B} ${DISTUTILS_BUILD_ARGS} || \ + bbfatal "${PYTHON_PN} setup.py build execution failed." } distutils_stage_headers() { install -d ${STAGING_DIR_HOST}${PYTHON_SITEPACKAGES_DIR} BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ - ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py install_headers ${DISTUTILS_STAGE_HEADERS_ARGS} || \ + ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} ${S}/setup.py install_headers ${DISTUTILS_STAGE_HEADERS_ARGS} || \ bbfatal "${PYTHON_PN} setup.py install_headers execution failed." }
@@ -28,7 +33,7 @@ distutils_stage_all() { install -d ${STAGING_DIR_HOST}${PYTHON_SITEPACKAGES_DIR} PYTHONPATH=${STAGING_DIR_HOST}${PYTHON_SITEPACKAGES_DIR} \ BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ - ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py install ${DISTUTILS_STAGE_ALL_ARGS} || \ + ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} ${S}/setup.py install ${DISTUTILS_STAGE_ALL_ARGS} || \ bbfatal "${PYTHON_PN} setup.py install (stage) execution failed." }
@@ -38,14 +43,14 @@ distutils_do_install() { STAGING_LIBDIR=${STAGING_LIBDIR} \ PYTHONPATH=${D}${PYTHON_SITEPACKAGES_DIR} \ BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ - ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py install --install-lib=${D}/${PYTHON_SITEPACKAGES_DIR} ${DISTUTILS_INSTALL_ARGS} || \ + ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} ${S}/setup.py install --install-lib=${D}/${PYTHON_SITEPACKAGES_DIR} ${DISTUTILS_INSTALL_ARGS} || \ bbfatal "${PYTHON_PN} setup.py install execution failed." # support filenames with *spaces* # only modify file if it contains path and recompile it find ${D} -name "*.py" -exec grep -q ${D} {} \; -exec sed -i -e s:${D}::g {} \; -exec ${STAGING_BINDIR_NATIVE}/python-native/python -mcompileall {} \; - if test -e ${D}${bindir} ; then + if test -e ${D}${bindir} ; then for i in ${D}${bindir}/* ; do \ if [ ${PN} != "${BPN}-native" ]; then sed -i -e s:${STAGING_BINDIR_NATIVE}/python-native/python:${bindir}/env\ python:g $i
@@ -65,7 +70,6 @@ distutils_do_install() { rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/easy-install.pth rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/site.py* - # # FIXME: Bandaid against wrong datadir computation #
meta/classes/distutils3.bbclass +12 -7
@@ -8,6 +8,11 @@ DISTUTILS_STAGE_ALL_ARGS ?= "--prefix=${STAGING_DIR_HOST}${prefix} \ DISTUTILS_INSTALL_ARGS ?= "--prefix=${D}/${prefix} \ --install-data=${D}/${datadir}" +do_compile[dirs] = "${S}" +stage_headers[dirs] = "${S}" +stage_all[dirs] = "${S}" +do_install[dirs] = "${S}" + distutils3_do_compile() { if [ ${BUILD_SYS} != ${HOST_SYS} ]; then SYS=${MACHINE}
@@ -17,8 +22,8 @@ distutils3_do_compile() { STAGING_INCDIR=${STAGING_INCDIR} \ STAGING_LIBDIR=${STAGING_LIBDIR} \ BUILD_SYS=${BUILD_SYS} HOST_SYS=${SYS} \ - ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py \ - build ${DISTUTILS_BUILD_ARGS} || \ + ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} ${S}/setup.py \ + build -build-base=${B} ${DISTUTILS_BUILD_ARGS} || \ bbfatal "${PYTHON_PN} setup.py build_ext execution failed." } distutils3_do_compile[vardepsexclude] = "MACHINE"
@@ -31,7 +36,7 @@ distutils3_stage_headers() { SYS=${HOST_SYS} fi BUILD_SYS=${BUILD_SYS} HOST_SYS=${SYS} \ - ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py install_headers ${DISTUTILS_STAGE_HEADERS_ARGS} || \ + ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} ${S}/setup.py install_headers ${DISTUTILS_STAGE_HEADERS_ARGS} || \ bbfatal "${PYTHON_PN} setup.py install_headers execution failed." } distutils3_stage_headers[vardepsexclude] = "MACHINE"
@@ -47,7 +52,7 @@ distutils3_stage_all() { install -d ${STAGING_DIR_HOST}${PYTHON_SITEPACKAGES_DIR} PYTHONPATH=${STAGING_DIR_HOST}${PYTHON_SITEPACKAGES_DIR} \ BUILD_SYS=${BUILD_SYS} HOST_SYS=${SYS} \ - ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py install ${DISTUTILS_STAGE_ALL_ARGS} || \ + ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} ${S}/setup.py install ${DISTUTILS_STAGE_ALL_ARGS} || \ bbfatal "${PYTHON_PN} setup.py install (stage) execution failed." } distutils3_stage_all[vardepsexclude] = "MACHINE"
@@ -63,13 +68,13 @@ distutils3_do_install() { STAGING_LIBDIR=${STAGING_LIBDIR} \ PYTHONPATH=${D}${PYTHON_SITEPACKAGES_DIR} \ BUILD_SYS=${BUILD_SYS} HOST_SYS=${SYS} \ - ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py install --install-lib=${D}/${PYTHON_SITEPACKAGES_DIR} ${DISTUTILS_INSTALL_ARGS} || \ + ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} ${S}/setup.py install --install-lib=${D}/${PYTHON_SITEPACKAGES_DIR} ${DISTUTILS_INSTALL_ARGS} || \ bbfatal "${PYTHON_PN} setup.py install execution failed." # support filenames with *spaces* find ${D} -name "*.py" -exec grep -q ${D} {} \; -exec sed -i -e s:${D}::g {} \; - if test -e ${D}${bindir} ; then + if test -e ${D}${bindir} ; then for i in ${D}${bindir}/* ; do \ sed -i -e s:${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN}:${bindir}/env\ ${PYTHON_PN}:g $i sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g $i
@@ -84,7 +89,7 @@ distutils3_do_install() { fi rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/easy-install.pth - + # # FIXME: Bandaid against wrong datadir computation #
Signature · 1 line
2.7.1
PATCH v2 2/2 ltp: Upgrade to 20160126 and fix build on musl
pass -D__SANE_USERSPACE_TYPES__ to CFLAGS
MIPS64/PPC64 uses long long for u64 in the kernel, but powerpc's asm/types.h prevents 64-bit userland from seeing this definition, instead defaulting to u64 == long in userspace. Define __SANE_USERSPACE_TYPES__ to get int-ll64.h included.
---
.../ltp/ltp/0001-Fix-compilation-for-gcc-5.x.patch | 79 -----
...tests_noltp.sh-script-so-have-unique-name.patch | 202 -----------
...tch => 0001-ltp-Don-t-link-against-libfl.patch} | 11 +-
...-control-whether-numa-support-should-be-c.patch | 43 +++
...> 0003-Add-knob-to-control-tirpc-support.patch} | 20 +-
...-Add-option-to-select-libc-implementation.patch | 147 ++++++++
...rollers-Link-with-libfts-explicitly-on-mu.patch | 45 +++
...sendfile-Use-off64_t-instead-of-__off64_t.patch | 31 ++
.../ltp/ltp/0007-replace-SIGCLD-with-SIGCHLD.patch | 394 +++++++++++++++++++++
...__GLIBC_PREREQ-is-defined-before-using-it.patch | 279 +++++++++++++++
.../ltp/0009-Guard-error.h-with-__GLIBC__.patch | 270 ++++++++++++++
...010-replace-__BEGIN_DECLS-and-__END_DECLS.patch | 73 ++++
.../0011-Rename-sigset-variable-to-sigset1.patch | 136 +++++++
...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 +++++
.../ltp/0018-guard-mallocopt-with-__GLIBC__.patch | 32 ++
...lace-canonicalize_file_name-with-realpath.patch | 32 ++
...define-getdents-getdents64-only-for-glibc.patch | 48 +++
..._GNU_SOURCE-for-MREMAP_MAYMOVE-definition.patch | 71 ++++
.../ltp/ltp/0022-include-sys-types.h.patch | 29 ++
...-Use-int-instead-of-enum-__ptrace_request.patch | 48 +++
...gaction-rt_sigprocmark-Define-_GNU_SOURCE.patch | 68 ++++
.../ltp/0025-mc_gethost-include-sys-types.h.patch | 28 ++
.../ltp/ltp/0026-crash01-Define-_GNU_SOURCE.patch | 29 ++
...sconf01-Use-_SC_2_C_VERSION-conditionally.patch | 29 ++
...n.h-Use-sighandler_t-instead-of-__sighand.patch | 43 +++
.../ltp/0029-trace_shed-Fix-build-with-musl.patch | 32 ++
...READ_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch | 33 ++
...ge-size-offset-as-per-page-size-alignmen.patch} | 17 +-
...-regen.sh-Include-asm-unistd.h-explicitly.patch | 30 ++
.../ltp/ltp/add-knob-for-numa.patch | 39 --
.../ltp/ltp/make-setregid02-work.patch | 61 ----
.../ltp/{ltp_20150903.bb => ltp_20160126.bb} | 45 ++-
37 files changed, 2705 insertions(+), 410 deletions(-)
delete mode 100644 meta/recipes-extended/ltp/ltp/0001-Fix-compilation-for-gcc-5.x.patch
delete mode 100644 meta/recipes-extended/ltp/ltp/0001-Rename-runtests_noltp.sh-script-so-have-unique-name.patch
rename meta/recipes-extended/ltp/ltp/{ltp-Do-not-link-against-libfl.patch => 0001-ltp-Don-t-link-against-libfl.patch} (76%)
create mode 100644 meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch
rename meta/recipes-extended/ltp/ltp/{add-knob-for-tirpc.patch => 0003-Add-knob-to-control-tirpc-support.patch} (54%)
create mode 100644 meta/recipes-extended/ltp/ltp/0004-build-Add-option-to-select-libc-implementation.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0005-kernel-controllers-Link-with-libfts-explicitly-on-mu.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0006-sendfile-Use-off64_t-instead-of-__off64_t.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0007-replace-SIGCLD-with-SIGCHLD.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0008-Check-if-__GLIBC_PREREQ-is-defined-before-using-it.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0009-Guard-error.h-with-__GLIBC__.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0010-replace-__BEGIN_DECLS-and-__END_DECLS.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0011-Rename-sigset-variable-to-sigset1.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0012-fsstress.c-Replace-__int64_t-with-int64_t.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0013-include-fcntl.h-for-getting-O_-definitions.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0014-hyperthreading-Include-sys-types.h-for-pid_t-definit.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0015-mincore01-Rename-PAGESIZE-to-pagesize.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0016-ustat-Change-header-from-ustat.h-to-sys-ustat.h.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0017-replace-sigval_t-with-union-sigval.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0018-guard-mallocopt-with-__GLIBC__.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0019-tomoyo-Replace-canonicalize_file_name-with-realpath.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0020-getdents-define-getdents-getdents64-only-for-glibc.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0021-Define-_GNU_SOURCE-for-MREMAP_MAYMOVE-definition.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0022-include-sys-types.h.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0023-ptrace-Use-int-instead-of-enum-__ptrace_request.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0024-rt_sigaction-rt_sigprocmark-Define-_GNU_SOURCE.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0025-mc_gethost-include-sys-types.h.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0026-crash01-Define-_GNU_SOURCE.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0027-sysconf01-Use-_SC_2_C_VERSION-conditionally.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0028-rt_sigaction.h-Use-sighandler_t-instead-of-__sighand.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0029-trace_shed-Fix-build-with-musl.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch
rename meta/recipes-extended/ltp/ltp/{0001-ltp-vma03-fix-the-alginment-of-page-size.patch => 0031-vma03-fix-page-size-offset-as-per-page-size-alignmen.patch} (71%)
create mode 100644 meta/recipes-extended/ltp/ltp/0032-regen.sh-Include-asm-unistd.h-explicitly.patch
delete mode 100644 meta/recipes-extended/ltp/ltp/add-knob-for-numa.patch
delete mode 100644 meta/recipes-extended/ltp/ltp/make-setregid02-work.patch
rename meta/recipes-extended/ltp/{ltp_20150903.bb => ltp_20160126.bb} (59%)meta/recipes-extended/ltp/ltp/0001-Fix-compilation-for-gcc-5.x.patch deleted +0 -79
@@ -1,79 +0,0 @@ -From 40a2457cb8ec42a05a2f96b0810057efdb2a55f5 Mon Sep 17 00:00:00 2001 -From: Kai Kang <[email protected]> -Date: Wed, 16 Sep 2015 13:23:43 +0200 -Subject: [PATCH] Fix compilation for gcc-5.x - -The gcc-5.x defaults to -std=gnu11 instead of -std=gnu89 which causes -semantics for inline functions changes. - -GNU89 inline: Same as C99 extern inline. - -So the standalone 'inline' causes error such as: - -git/testcases/kernel/syscalls/kill/kill10.c:355: undefined reference to `k_sigaction' - -Replace inline with static inline to fix this issue. - -Ref: -https://gcc.gnu.org/gcc-5/porting_to.html - -Upstream-Status: Backport -Signed-off-by: Kai Kang <[email protected]> -Acked-by: Cyril Hrubis <[email protected]> ---- - testcases/kernel/controllers/libcontrollers/libcontrollers.c | 2 +- - testcases/kernel/controllers/libcontrollers/libcontrollers.h | 2 +- - testcases/kernel/syscalls/kill/kill10.c | 4 ++-- - 3 files changed, 4 insertions(+), 4 deletions(-) - -diff --git a/testcases/kernel/controllers/libcontrollers/libcontrollers.c b/testcases/kernel/controllers/libcontrollers/libcontrollers.c -index 844c5bc..75766fc 100644 ---- a/testcases/kernel/controllers/libcontrollers/libcontrollers.c -+++ b/testcases/kernel/controllers/libcontrollers/libcontrollers.c -@@ -158,7 +158,7 @@ int read_file(char *filepath, int action, unsigned int *value) - * Prints error message and returns -1 - */ - --inline void error_function(char *msg1, char *msg2) -+static inline void error_function(char *msg1, char *msg2) - { - fprintf(stdout, "ERROR: %s ", msg1); - fprintf(stdout, "%s\n", msg2); -diff --git a/testcases/kernel/controllers/libcontrollers/libcontrollers.h b/testcases/kernel/controllers/libcontrollers/libcontrollers.h -index bd8e2d8..cdde9f9 100644 ---- a/testcases/kernel/controllers/libcontrollers/libcontrollers.h -+++ b/testcases/kernel/controllers/libcontrollers/libcontrollers.h -@@ -70,7 +70,7 @@ enum{ - GET_TASKS - }; - --inline void error_function(char *msg1, char *msg2); -+static inline void error_function(char *msg1, char *msg2); - - int read_shares_file(char *filepath); - -diff --git a/testcases/kernel/syscalls/kill/kill10.c b/testcases/kernel/syscalls/kill/kill10.c -index 982d9da..33dbcd3 100644 ---- a/testcases/kernel/syscalls/kill/kill10.c -+++ b/testcases/kernel/syscalls/kill/kill10.c -@@ -185,7 +185,7 @@ int child_checklist_total = 0; - int checklist_cmp(const void *a, const void *b); - void checklist_reset(int bit); - --inline int k_sigaction(int sig, struct sigaction *sa, struct sigaction *osa); -+static inline int k_sigaction(int sig, struct sigaction *sa, struct sigaction *osa); - - char *TCID = "kill10"; - int TST_TOTAL = 1; -@@ -756,7 +756,7 @@ void checklist_reset(int bit) - - } - --inline int k_sigaction(int sig, struct sigaction *sa, struct sigaction *osa) -+static inline int k_sigaction(int sig, struct sigaction *sa, struct sigaction *osa) - { - int ret; - if ((ret = sigaction(sig, sa, osa)) == -1) { --- -1.9.1 -
meta/recipes-extended/ltp/ltp/0001-Rename-runtests_noltp.sh-script-so-have-unique-name.patch deleted +0 -202
202 lines not on this page · raw message
meta/recipes-extended/ltp/ltp/0001-ltp-Don-t-link-against-libfl.patch renamed from meta/recipes-extended/ltp/ltp/ltp-Do-not-link-against-libfl.patch +5 -6
@@ -1,16 +1,15 @@ -From 5bda9c0af56869c6ff2c25d38ea087179c946bc6 Mon Sep 17 00:00:00 2001 +From 14985fccf7428eaa0b45decc22bfd20fd780f621 Mon Sep 17 00:00:00 2001 From: Chong Lu <[email protected]> Date: Tue, 11 Mar 2014 14:47:22 +0800 -Subject: [PATCH] ltp: Don't link against libfl +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. -Upstream-Status: Pending - Signed-off-by: Chong Lu <[email protected]> +Signed-off-by: Khem Raj <[email protected]> --- - pan/Makefile | 2 +- + pan/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pan/Makefile b/pan/Makefile
@@ -27,5 +26,5 @@ index 4cc6466..a4b575b 100644 LFLAGS += -l -- -1.7.9.5 +2.7.0
meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch new file +43 -0
43 lines not on this page · raw message
meta/recipes-extended/ltp/ltp/0003-Add-knob-to-control-tirpc-support.patch renamed from meta/recipes-extended/ltp/ltp/add-knob-for-tirpc.patch +14 -6
@@ -1,14 +1,19 @@ -[PATCH] add knob to control whether tirpc support should be checked +From b193011da301b3d944e8fddcf4817513c31c5b88 Mon Sep 17 00:00:00 2001 +From: Fathi Boudra <[email protected]> +Date: Thu, 7 Jan 2016 17:36:19 +0000 +Subject: [PATCH 03/32] Add knob to control tirpc support -Upstream-Status: Pending - -tirpc support is broken upstream. in the meantime, allow to disable tirpc. +allow to disable tirpc. Helps to disable it at top level for eg. musl it +does not yet work. Signed-off-by: Fathi Boudra <[email protected]> +Signed-off-by: Khem Raj <[email protected]> --- - configure.ac | 9 +++++++++ + configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) +diff --git a/configure.ac b/configure.ac +index cc50397..9e2936b 100644 --- a/configure.ac +++ b/configure.ac @@ -98,6 +98,13 @@ if test "x$with_python" = xyes; then
@@ -25,7 +30,7 @@ Signed-off-by: Fathi Boudra <[email protected]> # END tools knobs # Testsuites knobs -@@ -182,7 +189,9 @@ LTP_CHECK_RENAMEAT +@@ -169,7 +176,9 @@ LTP_CHECK_RENAMEAT2 LTP_CHECK_FALLOCATE LTP_CHECK_SYSCALL_FCNTL LTP_CHECK_SYSCALL_PERF_EVENT_OPEN
@@ -35,3 +40,6 @@ Signed-off-by: Fathi Boudra <[email protected]> LTP_CHECK_TEE LTP_CHECK_SPLICE LTP_CHECK_VMSPLICE +-- +2.7.0 +
meta/recipes-extended/ltp/ltp/0004-build-Add-option-to-select-libc-implementation.patch new file +147 -0
147 lines not on this page · raw message
meta/recipes-extended/ltp/ltp/0005-kernel-controllers-Link-with-libfts-explicitly-on-mu.patch new file +45 -0
45 lines not on this page · raw message
meta/recipes-extended/ltp/ltp/0006-sendfile-Use-off64_t-instead-of-__off64_t.patch new file +31 -0
@@ -0,0 +1,31 @@ +From fb8b895385a641d74f2186fe5f20a872209692ed Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +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 <[email protected]> +--- + 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 +
meta/recipes-extended/ltp/ltp/0007-replace-SIGCLD-with-SIGCHLD.patch new file +394 -0
394 lines not on this page · raw message
meta/recipes-extended/ltp/ltp/0008-Check-if-__GLIBC_PREREQ-is-defined-before-using-it.patch new file +279 -0
279 lines not on this page · raw message
meta/recipes-extended/ltp/ltp/0009-Guard-error.h-with-__GLIBC__.patch new file +270 -0
270 lines not on this page · raw message
meta/recipes-extended/ltp/ltp/0010-replace-__BEGIN_DECLS-and-__END_DECLS.patch new file +73 -0
73 lines not on this page · raw message
meta/recipes-extended/ltp/ltp/0011-Rename-sigset-variable-to-sigset1.patch new file +136 -0
136 lines not on this page · raw message
meta/recipes-extended/ltp/ltp/0012-fsstress.c-Replace-__int64_t-with-int64_t.patch new file +351 -0
351 lines not on this page · raw message
meta/recipes-extended/ltp/ltp/0013-include-fcntl.h-for-getting-O_-definitions.patch new file +67 -0
67 lines not on this page · raw message
meta/recipes-extended/ltp/ltp/0014-hyperthreading-Include-sys-types.h-for-pid_t-definit.patch new file +56 -0
56 lines not on this page · raw message
meta/recipes-extended/ltp/ltp/0015-mincore01-Rename-PAGESIZE-to-pagesize.patch new file +64 -0
64 lines not on this page · raw message
meta/recipes-extended/ltp/ltp/0016-ustat-Change-header-from-ustat.h-to-sys-ustat.h.patch new file +45 -0
45 lines not on this page · raw message
meta/recipes-extended/ltp/ltp/0017-replace-sigval_t-with-union-sigval.patch new file +88 -0
88 lines not on this page · raw message
meta/recipes-extended/ltp/ltp/0018-guard-mallocopt-with-__GLIBC__.patch new file +32 -0
@@ -0,0 +1,32 @@ +From f42b060e80c9f40627c712d4d56d45221bd7d9fa Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 8 Jan 2016 06:51:20 +0000 +Subject: [PATCH 18/32] guard mallocopt() with __GLIBC__ + +mallocopt is not available on non glibc implementations + +Signed-off-by: Khem Raj <[email protected]> +--- + utils/benchmark/ebizzy-0.3/ebizzy.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/utils/benchmark/ebizzy-0.3/ebizzy.c b/utils/benchmark/ebizzy-0.3/ebizzy.c +index 5bb8eff..934d951 100644 +--- a/utils/benchmark/ebizzy-0.3/ebizzy.c ++++ b/utils/benchmark/ebizzy-0.3/ebizzy.c +@@ -215,10 +215,10 @@ static void read_options(int argc, char *argv[]) + "\"never mmap\" option specified\n"); + usage(); + } +- ++#ifdef __GLIBC__ + if (never_mmap) + mallopt(M_MMAP_MAX, 0); +- ++#endif + if (chunk_size < record_size) { + fprintf(stderr, "Chunk size %u smaller than record size %u\n", + chunk_size, record_size); +-- +2.7.0 +
meta/recipes-extended/ltp/ltp/0019-tomoyo-Replace-canonicalize_file_name-with-realpath.patch new file +32 -0
@@ -0,0 +1,32 @@ +From 721e94985b9cff3e2724af7ea5be7d005bc12dec Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +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 <[email protected]> +--- + 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 +
meta/recipes-extended/ltp/ltp/0020-getdents-define-getdents-getdents64-only-for-glibc.patch new file +48 -0
48 lines not on this page · raw message
meta/recipes-extended/ltp/ltp/0021-Define-_GNU_SOURCE-for-MREMAP_MAYMOVE-definition.patch new file +71 -0
71 lines not on this page · raw message
meta/recipes-extended/ltp/ltp/0022-include-sys-types.h.patch new file +29 -0
@@ -0,0 +1,29 @@ +From 7ac6fd51991ac61d1d7594f601d87842060ee284 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +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 <[email protected]> +--- + 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 +
meta/recipes-extended/ltp/ltp/0023-ptrace-Use-int-instead-of-enum-__ptrace_request.patch new file +48 -0
48 lines not on this page · raw message
meta/recipes-extended/ltp/ltp/0024-rt_sigaction-rt_sigprocmark-Define-_GNU_SOURCE.patch new file +68 -0
68 lines not on this page · raw message
meta/recipes-extended/ltp/ltp/0025-mc_gethost-include-sys-types.h.patch new file +28 -0
@@ -0,0 +1,28 @@ +From 9d14edfc12eefac900dd54729a88b3ccf91c1c43 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 8 Jan 2016 07:18:15 +0000 +Subject: [PATCH 25/32] mc_gethost: include sys/types.h + +Fix build on musl +error: unknown type name 'u_char' + +Signed-off-by: Khem Raj <[email protected]> +--- + testcases/network/multicast/mc_gethost/mc_gethost.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/testcases/network/multicast/mc_gethost/mc_gethost.c b/testcases/network/multicast/mc_gethost/mc_gethost.c +index 5b9a790..c799e2a 100644 +--- a/testcases/network/multicast/mc_gethost/mc_gethost.c ++++ b/testcases/network/multicast/mc_gethost/mc_gethost.c +@@ -6,6 +6,7 @@ + + #include <sys/param.h> + #include <sys/socket.h> ++#include <sys/types.h> + #include <netinet/in.h> + #include <arpa/inet.h> + #include <arpa/nameser.h> +-- +2.7.0 +
meta/recipes-extended/ltp/ltp/0026-crash01-Define-_GNU_SOURCE.patch new file +29 -0
@@ -0,0 +1,29 @@ +From 0133a2b29d6f48d8e2bba6a3be581cdfa91311a6 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 8 Jan 2016 07:21:05 +0000 +Subject: [PATCH 26/32] crash01: Define _GNU_SOURCE + +Fixes musl build errors like +error: 'SA_NOMASK' undeclared (first use in this function) + +Signed-off-by: Khem Raj <[email protected]> +--- + testcases/misc/crash/crash01.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/testcases/misc/crash/crash01.c b/testcases/misc/crash/crash01.c +index 0574521..08a02e7 100644 +--- a/testcases/misc/crash/crash01.c ++++ b/testcases/misc/crash/crash01.c +@@ -49,7 +49,7 @@ stress test at the same time you run other tests, like a multi-user + benchmark. + + */ +- ++#define _GNU_SOURCE + #include <stdio.h> + #include <stdlib.h> + #include <string.h> +-- +2.7.0 +
meta/recipes-extended/ltp/ltp/0027-sysconf01-Use-_SC_2_C_VERSION-conditionally.patch new file +29 -0
@@ -0,0 +1,29 @@ +From 4a74b275acc8158850f2500928a1467c3482c986 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +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 <[email protected]> +--- + 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 +
meta/recipes-extended/ltp/ltp/0028-rt_sigaction.h-Use-sighandler_t-instead-of-__sighand.patch new file +43 -0
43 lines not on this page · raw message
meta/recipes-extended/ltp/ltp/0029-trace_shed-Fix-build-with-musl.patch new file +32 -0
@@ -0,0 +1,32 @@ +From 2f8a57f66a94210d34dd0361659a8297cf3d813f Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +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 <[email protected]> +--- + 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 +
meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch new file +33 -0
@@ -0,0 +1,33 @@ +From 77c95dacffe90382a1f131c801ac569120d95949 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +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 <[email protected]> +--- + 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 +
meta/recipes-extended/ltp/ltp/0031-vma03-fix-page-size-offset-as-per-page-size-alignmen.patch renamed from meta/recipes-extended/ltp/ltp/0001-ltp-vma03-fix-the-alginment-of-page-size.patch +8 -9
@@ -1,7 +1,7 @@ -From 243881d71d2d49027c3dc15fe27ebe7f4ee68700 Mon Sep 17 00:00:00 2001 -From: Chuang Dong <[email protected]> -Date: Wed, 10 Jun 2015 09:51:09 +0800 -Subject: [PATCH] ltp: vma03 fix the alginment of page size +From 293ff1da06748ed4c69be6ece262d42e562e7298 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +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
@@ -9,18 +9,17 @@ 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)); -Upstream-Status: Submitted - Signed-off-by: Chuang Dong <[email protected]> +Signed-off-by: Khem Raj <[email protected]> --- 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 6af9960..b86d7ce 100644 +index ad8a7b4..a539233 100644 --- a/testcases/kernel/mem/vma/vma03.c +++ b/testcases/kernel/mem/vma/vma03.c -@@ -89,7 +89,7 @@ int main(int argc, char *argv[]) +@@ -85,7 +85,7 @@ int main(int argc, char *argv[]) if (fd == -1) tst_brkm(TBROK | TERRNO, NULL, "open %s", TESTFILE);
@@ -30,5 +29,5 @@ index 6af9960..b86d7ce 100644 fd, pgoff); if (map == MAP_FAILED) -- -1.8.5.2.233.g932f7e4 +2.7.0
meta/recipes-extended/ltp/ltp/0032-regen.sh-Include-asm-unistd.h-explicitly.patch new file +30 -0
@@ -0,0 +1,30 @@ +From 4f1905ff09c730091674818bd1b48ee221347101 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +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
Lines of this file are not shown. View the raw message.
meta/recipes-extended/ltp/ltp/add-knob-for-numa.patch deleted +0 -39
Lines of this file are not shown. View the raw message.
meta/recipes-extended/ltp/ltp/make-setregid02-work.patch deleted +0 -61
61 lines not on this page · raw message
meta/recipes-extended/ltp/ltp_20160126.bb renamed from meta/recipes-extended/ltp/ltp_20150903.bb +37 -8
45 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.7.1
Part of the diff is not shown here. View the raw message.