Skip to contentSkip to conversation

Upgrade uclibc/musl to latest

PATCH Superseded Khem Raj 4 participants 19 messages Feb 10, 2016 – Feb 13, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

cover Upgrade uclibc/musl to latest

ltp upgrade is prerequisite for glibc 2.23 patches to fix more musl recipes
distutils patch to let pythonic recipes work with devtool

The following changes since commit 8092aa8ff63d9b2016bff138ec05ceb0d0155869:

ptest-runner: Explicitly set EXTRA_OEMAKE as required (2016-02-10 15:51:05 +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

Andre McCurdy (4):
strace: build fix for MIPS + musl libc
gdb: build fix for MIPS + musl libc
gdb: drop unnecessary CC_FOR_BUILD etc exports nettle.inc: drop duplicate LIC_FILES_CHKSUM and SRC_URI hashes

Khem Raj (4):
distutils: Consider S != B case
ltp: Upgrade to 20160126 and fix build on musl
musl: Upgrade to tip of tree
uclibc-ng: Bump up to 1.0.12 release

Ross Burton (1):
uclibc: fetch from master branch not 1.0

 meta/classes/distutils.bbclass                     |  27 +-
 meta/classes/distutils3.bbclass                    |  26 +-
 meta/recipes-core/musl/musl_git.bb                 |   2 +-
 meta/recipes-core/uclibc/uclibc-git.inc            |   6 +-
 meta/recipes-devtools/gdb/gdb-common.inc           |   7 +-
 meta/recipes-devtools/gdb/gdb.inc                  |   1 +
 .../gdb/gdb/0001-use-asm-sgidefs.h.patch           |  35 ++
 .../strace/strace/use-asm-sgidefs.h.patch          |  51 +++
 meta/recipes-devtools/strace/strace_4.11.bb        |   1 +
 .../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}       |  44 ++-
 meta/recipes-support/nettle/nettle.inc             |  12 +-
 47 files changed, 2835 insertions(+), 447 deletions(-)
 create mode 100644 meta/recipes-devtools/gdb/gdb/0001-use-asm-sgidefs.h.patch
 create mode 100644 meta/recipes-devtools/strace/strace/use-asm-sgidefs.h.patch
 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} (60%)
Signature · 1 line
2.7.1
author
#1 lore raw

PATCH 1/9 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  | 27 +++++++++++++++++----------
 meta/classes/distutils3.bbclass | 26 +++++++++++++++++++-------
 2 files changed, 36 insertions(+), 17 deletions(-)
meta/classes/distutils.bbclass +17 -10
index cd06713..d9e0086 100644
@@ -8,44 +8,51 @@ DISTUTILS_INSTALL_ARGS ?= "--prefix=${D}/${prefix} \
     --install-data=${D}/${datadir}"
 
 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."
+        cwd=$PWD;cd ${S}
+        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."
+        cd $cwd
 }
 
 distutils_stage_headers() {
+        cwd=$PWD;cd ${S}
         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."
+        cd $cwd
 }
 
 distutils_stage_all() {
+        cwd=$PWD;cd ${S}
         STAGING_INCDIR=${STAGING_INCDIR} \
         STAGING_LIBDIR=${STAGING_LIBDIR} \
         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."
+        cd $cwd
 }
 
 distutils_do_install() {
+        cwd=$PWD;cd ${S}
         install -d ${D}${PYTHON_SITEPACKAGES_DIR}
         STAGING_INCDIR=${STAGING_INCDIR} \
         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 +72,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
         #
@@ -79,6 +85,7 @@ distutils_do_install() {
 	   rm ${D}${PYTHON_SITEPACKAGES_DIR}/backports/__init__.py;
 	   rm ${D}${PYTHON_SITEPACKAGES_DIR}/backports/__init__.pyc;
 	fi
+        cd $cwd
 }
 
 EXPORT_FUNCTIONS do_compile do_install
meta/classes/distutils3.bbclass +19 -7
index 443bf3a..47cbf72 100644
@@ -9,6 +9,8 @@ DISTUTILS_INSTALL_ARGS ?= "--prefix=${D}/${prefix} \
     --install-data=${D}/${datadir}"
 
 distutils3_do_compile() {
+        cwd=$PWD
+        cd ${S}
         if [ ${BUILD_SYS} != ${HOST_SYS} ]; then
                 SYS=${MACHINE}
         else
@@ -17,13 +19,16 @@ 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."
+        cd $cwd
 }
 distutils3_do_compile[vardepsexclude] = "MACHINE"
 
 distutils3_stage_headers() {
+        cwd=$PWD
+        cd ${S}
         install -d ${STAGING_DIR_HOST}${PYTHON_SITEPACKAGES_DIR}
         if [ ${BUILD_SYS} != ${HOST_SYS} ]; then
                 SYS=${MACHINE}
@@ -31,12 +36,15 @@ 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."
+        cd $cwd
 }
 distutils3_stage_headers[vardepsexclude] = "MACHINE"
 
 distutils3_stage_all() {
+        cwd=$PWD
+        cd ${S}
         if [ ${BUILD_SYS} != ${HOST_SYS} ]; then
                 SYS=${MACHINE}
         else
@@ -47,12 +55,15 @@ 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."
+        cd $cwd
 }
 distutils3_stage_all[vardepsexclude] = "MACHINE"
 
 distutils3_do_install() {
+        cwd=$PWD
+        cd ${S}
         install -d ${D}${PYTHON_SITEPACKAGES_DIR}
         if [ ${BUILD_SYS} != ${HOST_SYS} ]; then
                 SYS=${MACHINE}
@@ -63,13 +74,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 +95,7 @@ distutils3_do_install() {
         fi
 
         rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/easy-install.pth
-        
+
         #
         # FIXME: Bandaid against wrong datadir computation
         #
@@ -92,6 +103,7 @@ distutils3_do_install() {
             mv -f ${D}${datadir}/share/* ${D}${datadir}/
             rmdir ${D}${datadir}/share
         fi
+        cd $cwd
 }
 distutils3_do_install[vardepsexclude] = "MACHINE"
 
Signature · 1 line
2.7.1
author
#2 lore raw

PATCH 2/9 ltp: Upgrade to 20160126 and fix build on musl

---
 .../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}       |  44 ++-
 37 files changed, 2704 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} (60%)
meta/recipes-extended/ltp/ltp/0001-Fix-compilation-for-gcc-5.x.patch deleted +0 -79
deleted file mode 100644
index 9407a34..0000000
@@ -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
similarity index 76%
rename from meta/recipes-extended/ltp/ltp/ltp-Do-not-link-against-libfl.patch
rename to meta/recipes-extended/ltp/ltp/0001-ltp-Don-t-link-against-libfl.patch
index 20fd4c3..585b7cb 100644
@@ -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
similarity index 54%
rename from meta/recipes-extended/ltp/ltp/add-knob-for-tirpc.patch
rename to meta/recipes-extended/ltp/ltp/0003-Add-knob-to-control-tirpc-support.patch
index 36ff4c7..bf1176f 100644
@@ -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
new file mode 100644
index 0000000..56a48ab
@@ -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
new file mode 100644
index 0000000..5198fe9
@@ -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
new file mode 100644
index 0000000..0a4c5f0
@@ -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
new file mode 100644
index 0000000..413b44a
@@ -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
new file mode 100644
index 0000000..aad3cb0
@@ -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
new file mode 100644
index 0000000..58b8ed4
@@ -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
new file mode 100644
index 0000000..b47d097
@@ -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
new file mode 100644
index 0000000..f7ece9e
@@ -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
new file mode 100644
index 0000000..d2d6d76
@@ -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
similarity index 71%
rename from meta/recipes-extended/ltp/ltp/0001-ltp-vma03-fix-the-alginment-of-page-size.patch
rename to meta/recipes-extended/ltp/ltp/0031-vma03-fix-page-size-offset-as-per-page-size-alignmen.patch
index 905eafb..473ca4c 100644
@@ -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
new file mode 100644
index 0000000..5c6bf91
@@ -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
[… more lines in the raw message]

Lines of this file are not shown. View the raw message.

meta/recipes-extended/ltp/ltp/add-knob-for-numa.patch deleted +0 -39
deleted file mode 100644
index 064f00a..0000000

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 +36 -8

44 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.

author
#5 lore raw

PATCH 3/9 musl: Upgrade to tip of tree

In reply to Khem Raj

Add explicit runtime dep on bsd-headers-dev
so we dont miss them in dev images

---
 meta/recipes-core/musl/musl_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/musl/musl_git.bb +1 -1
index c731a8f..d4413f5 100644
@@ -3,7 +3,7 @@
 
 require musl.inc
 
-SRCREV = "369b22f9c4aebba2b8fe905db8469b2667572ee1"
+SRCREV = "756c8af8589265e99e454fe3adcda1d0bc5e1963"
 
 PV = "1.1.12+git${SRCPV}"
 
Signature · 1 line
2.7.1
author
#6 lore raw

PATCH 4/9 uclibc-ng: Bump up to 1.0.12 release

In reply to Khem Raj

Here are changes between 1.0.11 and 1.0.12

release 1.0.12 - Chimay Brune

Leonid Lisovskiy (5):
libdl: dlopen() mustn't forget RTLD_NODELETE flag
tests: Extend OMIT LDFLAGS logic to test binaries too Provide __adjtimex() alias, like glibc.
ldso: Fix fail of $ORIGIN expansion in case of RTLD_NOLOAD
ldso: Use single rtld_flags interpretation through all the calls

Waldemar Brodkorb (11):
Suppress warning "_GNU_SOURCE" redefined
hppa: unbreak toolchain building
test: disable tests requiring math headers
nios2: allow to build toolchain
add exp10() from glibc
Do not follow compressed items forever.
Make sure to always terminate decoded string
add $ORIGIN test-case
mips64: fix memcpy, patch from glibc
mips: fix clashing symbols
bump version for release

---
 meta/recipes-core/uclibc/uclibc-git.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-core/uclibc/uclibc-git.inc +2 -2
index 490dfcb..0509a6c 100644
@@ -1,6 +1,6 @@
-SRCREV = "94493929f674f4410c2743fa3dd82fd37b70c58f"
+SRCREV = "003b266cbeb370a8eae91dc256197f00798c6f93"
 
-PV = "1.0.11+git${SRCPV}"
+PV = "1.0.12+git${SRCPV}"
 
 FILESEXTRAPATHS =. "${FILE_DIRNAME}/uclibc-git:"
 
Signature · 1 line
2.7.1
author
#8 lore raw

PATCH 5/9 uclibc: fetch from master branch not 1.0

In reply to Khem Raj

From: Ross Burton <[email protected]>

The SRC_URI was fetching from the "1.0" branch but the uclibc maintainers appear to have removed this, presumably because it's synonymous with master as all of the releases are also on the master branch.

[ YOCTO #9074 ]

---
 meta/recipes-core/uclibc/uclibc-git.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/uclibc/uclibc-git.inc +1 -1
index 0509a6c..a56fa7c 100644
@@ -4,7 +4,7 @@ PV = "1.0.12+git${SRCPV}"
 
 FILESEXTRAPATHS =. "${FILE_DIRNAME}/uclibc-git:"
 
-SRC_URI = "git://uclibc-ng.org/git/uclibc-ng;branch=1.0 \
+SRC_URI = "git://uclibc-ng.org/git/uclibc-ng \
         file://0001-Disable-lrount_tes-function.patch \
         file://uClibc.machine \
         file://uClibc.distro \
Signature · 1 line
2.7.1
author
#9 lore raw

PATCH 6/9 strace: build fix for MIPS + musl libc

In reply to Khem Raj

From: Andre McCurdy <[email protected]>

The MIPS specific header <sgidefs.h> is provided by glibc and uclibc but not by musl. Regardless of the libc, the kernel headers provide <asm/sgidefs.h> which provides the same definitions, so use that instead.

---
 .../strace/strace/use-asm-sgidefs.h.patch          | 51 ++++++++++++++++++++++
 meta/recipes-devtools/strace/strace_4.11.bb        |  1 +
 2 files changed, 52 insertions(+)
 create mode 100644 meta/recipes-devtools/strace/strace/use-asm-sgidefs.h.patch
meta/recipes-devtools/strace/strace/use-asm-sgidefs.h.patch new file +51 -0
new file mode 100644
index 0000000..db83d11
@@ -0,0 +1,51 @@
+From 2995245d7e3f46e8b3995002995ebd28beca7d55 Mon Sep 17 00:00:00 2001
+From: Andre McCurdy <[email protected]>
+Date: Fri, 5 Feb 2016 14:00:00 -0800
+Subject: [PATCH] use <asm/sgidefs.h>
+
+Build fix for MIPS with musl libc.
+
+The MIPS specific header <sgidefs.h> is provided by glibc and uclibc
+but not by musl. Regardless of the libc, the kernel headers provide
+<asm/sgidefs.h> which provides the same definitions, so use that
+instead.
+
+Upstream-Status: Pending
+
+Signed-off-by: Andre McCurdy <[email protected]>
+---
+ configure.ac | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 1524b9b..287e03d 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -196,20 +196,20 @@ AC_SUBST(arch_mx32)
+ if test "$arch" = mips; then
+ 	AC_CACHE_CHECK([for _MIPS_SIM], [st_cv__MIPS_SIM],
+ 		       [AC_COMPUTE_INT([st_cv__MIPS_SIM], [_MIPS_SIM],
+-				       [#include <sgidefs.h>],
++				       [#include <asm/sgidefs.h>],
+ 				       [AC_MSG_ERROR([_MIPS_SIM cannot be determined])])])
+ 
+ 	AC_CACHE_CHECK([for MIPS ABI], [st_cv_mips_abi],
+ 		[AC_COMPILE_IFELSE(
+-			[AC_LANG_PROGRAM([[#include <sgidefs.h>]],
++			[AC_LANG_PROGRAM([[#include <asm/sgidefs.h>]],
+ 					 [[int i[_MIPS_SIM == _MIPS_SIM_ABI32 ? 1 : - 1];]])],
+ 			[st_cv_mips_abi=o32],
+ 		[AC_COMPILE_IFELSE(
+-			[AC_LANG_PROGRAM([[#include <sgidefs.h>]],
++			[AC_LANG_PROGRAM([[#include <asm/sgidefs.h>]],
+ 					 [[int i[_MIPS_SIM == _MIPS_SIM_NABI32 ? 1 : - 1];]])],
+ 			[st_cv_mips_abi=n32],
+ 		[AC_COMPILE_IFELSE(
+-			[AC_LANG_PROGRAM([[#include <sgidefs.h>]],
++			[AC_LANG_PROGRAM([[#include <asm/sgidefs.h>]],
+ 					 [[int i[_MIPS_SIM == _MIPS_SIM_ABI64 ? 1 : - 1];]])],
+ 			[st_cv_mips_abi=n64],
+ 			[st_cv_mips_abi=unknown])])])])
+-- 
+1.9.1
+
meta/recipes-devtools/strace/strace_4.11.bb +1 -0
index a72a1f9..95d13e6 100644
@@ -8,6 +8,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/strace/strace-${PV}.tar.xz \
            file://disable-git-version-gen.patch \
            file://more-robust-test-for-m32-mx32-compile-support.patch \
            file://update-gawk-paths.patch \
+           file://use-asm-sgidefs.h.patch \
            file://Makefile-ptest.patch \
            file://run-ptest \
           "
Signature · 1 line
2.7.1
author
#10 lore raw

PATCH 7/9 gdb: build fix for MIPS + musl libc

In reply to Khem Raj

From: Andre McCurdy <[email protected]>

The MIPS specific header <sgidefs.h> is provided by glibc and uclibc but not by musl. Regardless of the libc, the kernel headers provide <asm/sgidefs.h> which provides the same definitions, so use that instead.

---
 meta/recipes-devtools/gdb/gdb.inc                  |  1 +
 .../gdb/gdb/0001-use-asm-sgidefs.h.patch           | 35 ++++++++++++++++++++++
 2 files changed, 36 insertions(+)
 create mode 100644 meta/recipes-devtools/gdb/gdb/0001-use-asm-sgidefs.h.patch
meta/recipes-devtools/gdb/gdb.inc +1 -0
index 4ea14c1..1dd6551 100644
@@ -6,6 +6,7 @@ SRC_URI += "file://0002-Change-order-of-CFLAGS.patch \
             file://0003-Add-support-for-Renesas-SH-sh4-architecture.patch \
             file://0001-Use-exported-definitions-of-SIGRTMIN.patch \
             file://0001-include-sys-types.h-for-mode_t.patch \
+            file://0001-use-asm-sgidefs.h.patch \
            "
 #LDFLAGS_append = " -s"
 #export CFLAGS_append=" -L${STAGING_LIBDIR}"
meta/recipes-devtools/gdb/gdb/0001-use-asm-sgidefs.h.patch new file +35 -0
new file mode 100644
index 0000000..eaec390
@@ -0,0 +1,35 @@
+From 677b5b56135141c0d259e370aacd0e11c810aa15 Mon Sep 17 00:00:00 2001
+From: Andre McCurdy <[email protected]>
+Date: Fri, 5 Feb 2016 14:00:00 -0800
+Subject: [PATCH] use <asm/sgidefs.h>
+
+Build fix for MIPS with musl libc
+
+The MIPS specific header <sgidefs.h> is provided by glibc and uclibc
+but not by musl. Regardless of the libc, the kernel headers provide
+<asm/sgidefs.h> which provides the same definitions, so use that
+instead.
+
+Upstream-Status: Pending
+
+Signed-off-by: Andre McCurdy <[email protected]>
+---
+ gdb/mips-linux-nat.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/gdb/mips-linux-nat.c b/gdb/mips-linux-nat.c
+index a36bb63..fd5c705 100644
+--- a/gdb/mips-linux-nat.c
++++ b/gdb/mips-linux-nat.c
+@@ -31,7 +31,7 @@
+ #include "gdb_proc_service.h"
+ #include "gregset.h"
+ 
+-#include <sgidefs.h>
++#include <asm/sgidefs.h>
+ #include <sys/ptrace.h>
+ #include <asm/ptrace.h>
+ 
+-- 
+1.9.1
+
Signature · 1 line
2.7.1
author
#11 lore raw

PATCH 8/9 gdb: drop unnecessary CC_FOR_BUILD etc exports

In reply to Khem Raj

From: Andre McCurdy <[email protected]>

These exports are all provided by autotool.bbclass

http://git.openembedded.org/openembedded-core/commit/?id=edf30561184ec42e5692a55fdf93304fac0fdb1b

---
 meta/recipes-devtools/gdb/gdb-common.inc | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
meta/recipes-devtools/gdb/gdb-common.inc +1 -6
index 6baeb0b..06272a9 100644
@@ -22,16 +22,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
 		file://COPYING.LIB;md5=9f604d8a4f8e74f4f5140845a21b6674 \
 		file://COPYING3;md5=d32239bcb673463ab874e80d47fae504 \
 		file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6"
+
 inherit autotools texinfo
 
 SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.gz \
           "
-export CC_FOR_BUILD = "${BUILD_CC}"
-export CXX_FOR_BUILD = "${BUILD_CXX}"
-export CPP_FOR_BUILD = "${BUILD_CPP}"
-export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}"
-export CXXFLAGS_FOR_BUILD = "${BUILD_CXXFLAGS}"
-export CPPFLAGS_FOR_BUILD = "${BUILD_CPPFLAGS}"
 
 B = "${WORKDIR}/build-${TARGET_SYS}"
 
Signature · 1 line
2.7.1
author
#12 lore raw

PATCH 9/9 nettle.inc: drop duplicate LIC_FILES_CHKSUM and SRC_URI hashes

In reply to Khem Raj

From: Andre McCurdy <[email protected]>

LIC_FILES_CHKSUM and the SRC_URI hashes are both set from within the recipe files, so should not be duplicated in nettle.inc.

---
 meta/recipes-support/nettle/nettle.inc | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)
meta/recipes-support/nettle/nettle.inc +2 -10
index ba97ddb..af51fb6 100644
@@ -2,10 +2,6 @@ SUMMARY = "A low level cryptographic library"
 HOMEPAGE = "http://www.lysator.liu.se/~nisse/nettle/"
 SECTION = "libs"
 
-LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \
-                    file://serpent-decrypt.c;beginline=53;endline=67;md5=bcfd4745d53ca57f82907089898e390d \
-                    file://serpent-set-key.c;beginline=56;endline=70;md5=bcfd4745d53ca57f82907089898e390d"
-
 DEPENDS += "gmp"
 
 SRC_URI = "http://www.lysator.liu.se/~nisse/archive/${BP}.tar.gz \
@@ -13,15 +9,12 @@ SRC_URI = "http://www.lysator.liu.se/~nisse/archive/${BP}.tar.gz \
            file://run-ptest \
            "
 
-SRC_URI[md5sum] = "003d5147911317931dd453520eb234a5"
-SRC_URI[sha256sum] = "bc71ebd43435537d767799e414fce88e521b7278d48c860651216e1fc6555b40"
-
 UPSTREAM_CHECK_REGEX = "nettle-(?P<pver>\d+(\.\d+)+)\.tar"
 
-EXTRA_OECONF = "--disable-openssl"
-
 inherit autotools ptest
 
+EXTRA_OECONF = "--disable-openssl"
+
 do_configure_prepend() {
        if [ ! -e ${S}/acinclude.m4 -a -e ${S}/aclocal.m4 ]; then
                cp ${S}/aclocal.m4 ${S}/acinclude.m4
@@ -41,5 +34,4 @@ do_install_ptest() {
         install ${B}/testsuite/*-test ${D}${PTEST_PATH}/testsuite/
 }
 
-
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.7.1
#13 lore raw

Re: [PATCH 1/9] distutils: Consider S != B case

In reply to Khem Raj
Quoted 28 lines · Khem Raj

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  | 27 +++++++++++++++++----------
 meta/classes/distutils3.bbclass | 26 +++++++++++++++++++-------
 2 files changed, 36 insertions(+), 17 deletions(-)
meta/classes/distutils.bbclass +0 -4
index cd06713..d9e0086 100644
@@ -8,44 +8,51 @@ DISTUTILS_INSTALL_ARGS ?= "--prefix=${D}/${prefix}
 \
     --install-data=${D}/${datadir}"
 
 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} || \

meta/classes/distutils.bbclass DISTUTILS_INSTALL_ARGS ?= "--prefix=${D}/${prefix} · line 21

Quoted 10 lines
meta/classes/distutils.bbclass +7 -1
-         bbfatal "${PYTHON_PN} setup.py build execution failed."
+        cwd=$PWD;cd ${S}
+        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."
+        cd $cwd
 }

I still can't help feeling we're putting far too much boiler plate into these functions and putting in too many redundant checks, "just to be sure".

If we really want to add the cd and so on, the [dirs] function flag should be used rather than playing with cwd like this IMO.

Cheers,

Richard

author
#14 lore raw

Re: [PATCH 1/9] distutils: Consider S != B case

Quoted 38 lines · Richard Purdie
Quoted 34 lines · Khem Raj

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 | 27 +++++++++++++++++---------- meta/classes/distutils3.bbclass | 26 +++++++++++++++++++-------

2 files changed, 36 insertions(+), 17 deletions(-)
meta/classes/distutils.bbclass +5 -5
index cd06713..d9e0086 100644
@@ -8,44 +8,51 @@ DISTUTILS_INSTALL_ARGS ?= "--prefix=${D}/${prefix}
 \
    --install-data=${D}/${datadir}"
 
 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."
+        cwd=$PWD;cd ${S}
+        STAGING_INCDIR=${STAGING_INCDIR} \
+        STAGING_LIBDIR=${STAGING_LIBDIR} \
+        BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
+        ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN}
Quoted 8 lines

meta/classes/distutils.bbclass DISTUTILS_INSTALL_ARGS ?= "--prefix=${D}/${prefix} \ · line 18

Quoted 4 lines
meta/classes/distutils.bbclass +2 -0
 ${S}/setup.py build --build-base=${B} ${DISTUTILS_BUILD_ARGS} || \
+        bbfatal "${PYTHON_PN} setup.py build execution failed."
+        cd $cwd
 }

I still can't help feeling we're putting far too much boiler plate into these functions and putting in too many redundant checks, "just to be sure”.

it could be, but I thought there are so many python modules in other layers that it could be safer to stay this way. but I agree

Quoted 5 lines

If we really want to add the cd and so on, the [dirs] function flag should be used rather than playing with cwd like this IMO.

thats a good idea. I am testing this now
http://git.openembedded.org/openembedded-core-contrib/commit/?h=kraj/pu&id=49dd32007d7cc4f1c3fb97e0437223b5b2b1630c

Quoted 3 lines

Cheers,

Richard

#15 lore raw

Re: [PATCH 1/9] distutils: Consider S != B case

In reply to Khem Raj

meta/classes/distutils.bbclass DISTUTILS_INSTALL_ARGS ?= "--prefix=${D}/${prefix} \ · line 17

Quoted 7 lines · Khem Raj
meta/classes/distutils.bbclass +7 -0
+        cwd=$PWD;cd ${S}
+        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."
+        cd $cwd

Why do you need to save and restore the cwd? If this is a shell task then the "cd" would be local to that shell invocation anyway, right?

Also, given that you're invoking it by full pathname as "${S}/setup.py ..." anyway, do you even need ${S} to be the cwd in the first place? That seems a bit redundant.

p.

author
#16 lore raw

Re: [PATCH 1/9] distutils: Consider S != B case

Quoted 12 lines · Phil Blundell

meta/classes/distutils.bbclass DISTUTILS_INSTALL_ARGS ?= "--prefix=${D}/${prefix} \ · line 17

Quoted 7 lines · Khem Raj
meta/classes/distutils.bbclass +7 -0
+        cwd=$PWD;cd ${S}
+        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."
+        cd $cwd
Quoted 6 lines

Why do you need to save and restore the cwd? If this is a shell task then the "cd" would be local to that shell invocation anyway, right?

Also, given that you're invoking it by full pathname as "${S}/setup.py ..." anyway, do you even need ${S} to be the cwd in the first place? That seems a bit redundant.

yes however there are packages like
http://git.yoctoproject.org/cgit/cgit.cgi/meta-raspberrypi/tree/recipes-devtools/python/rpio_0.10.0.bb
and
http://git.yoctoproject.org/cgit/cgit.cgi/meta-raspberrypi/tree/recipes-devtools/python/python-rtimu_git.bb

whose build systems were assuming that they were building inside S and were referring to headers include paths relative to source dirs.

There might be more of these kinds

Quoted 4 lines

p.

#7 lore raw

Re: [PATCH 4/9] uclibc-ng: Bump up to 1.0.12 release

In reply to Khem Raj

This update includes CVE-2016-2224 and CVE-2016-2225

- armin

Quoted 43 lines · Khem Raj

Here are changes between 1.0.11 and 1.0.12

release 1.0.12 - Chimay Brune

Leonid Lisovskiy (5):
libdl: dlopen() mustn't forget RTLD_NODELETE flag
tests: Extend OMIT LDFLAGS logic to test binaries too Provide __adjtimex() alias, like glibc.
ldso: Fix fail of $ORIGIN expansion in case of RTLD_NOLOAD
ldso: Use single rtld_flags interpretation through all the calls

Waldemar Brodkorb (11):
Suppress warning "_GNU_SOURCE" redefined
hppa: unbreak toolchain building
test: disable tests requiring math headers
nios2: allow to build toolchain
add exp10() from glibc
Do not follow compressed items forever. <<<<---- CVE-2016-2224 Make sure to always terminate decoded string <<<<---- CVE-2016-2225 add $ORIGIN test-case
mips64: fix memcpy, patch from glibc
mips: fix clashing symbols
bump version for release

---
 meta/recipes-core/uclibc/uclibc-git.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-core/uclibc/uclibc-git.inc +2 -2
index 490dfcb..0509a6c 100644
@@ -1,6 +1,6 @@
-SRCREV = "94493929f674f4410c2743fa3dd82fd37b70c58f"
+SRCREV = "003b266cbeb370a8eae91dc256197f00798c6f93"
 
-PV = "1.0.11+git${SRCPV}"
+PV = "1.0.12+git${SRCPV}"
 
 FILESEXTRAPATHS =. "${FILE_DIRNAME}/uclibc-git:"
 
#3 lore raw

Re: [PATCH 2/9] ltp: Upgrade to 20160126 and fix build on musl

In reply to Khem Raj

I tested this in master-next on the AB, it fails for "MACHINE=edgerouter bitbake ltp":

| 1455184833.52:                                             ^
| 1455184833.52: In file included from /media/build1/poky/build/tmp/sysroots/edgerouter/usr/include/asm/types.h:22:0,
| 1455184833.52:                  from /media/build1/poky/build/tmp/sysroots/edgerouter/usr/include/linux/types.h:4,
| 1455184833.52:                  from /media/build1/poky/build/tmp/work/mips64-poky-linux/ltp/20160126-r0/git/utils/sctp/testlib/../include/netinet/sctp.h:37,
| 1455184833.52:                  from sctputil.c:55:
| 1455184833.52: /media/build1/poky/build/tmp/sysroots/edgerouter/usr/include/asm-generic/int-l64.h:28:25: note: previous declaration of '__s64' was here
| 1455184833.52:  typedef __signed__ long __s64;
| 1455184833.52:                          ^
| 1455184833.52: In file included from /media/build1/poky/build/tmp/sysroots/edgerouter/usr/include/asm-generic/types.h:6:0,
| 1455184833.52:                  from /media/build1/poky/build/tmp/work/mips64-poky-linux/ltp/20160126-r0/git/utils/sctp/testlib/../include/netinet/sctp.h:38,
| 1455184833.52:                  from sctputil.c:55:
| 1455184833.52: /media/build1/poky/build/tmp/sysroots/edgerouter/usr/include/asm-generic/int-ll64.h:30:42: error: conflicting types for '__u64'
| 1455184833.52:  __extension__ typedef unsigned long long __u64;
| 1455184833.52:                                           ^

also did so locally.

Cheers,

Richard

author
#4 lore raw

Re: [PATCH 2/9] ltp: Upgrade to 20160126 and fix build on musl

Quoted 21 lines · Richard Purdie

I tested this in master-next on the AB, it fails for "MACHINE=edgerouter bitbake ltp":

| 1455184833.52:                                             ^
| 1455184833.52: In file included from /media/build1/poky/build/tmp/sysroots/edgerouter/usr/include/asm/types.h:22:0,
| 1455184833.52:                  from /media/build1/poky/build/tmp/sysroots/edgerouter/usr/include/linux/types.h:4,
| 1455184833.52:                  from /media/build1/poky/build/tmp/work/mips64-poky-linux/ltp/20160126-r0/git/utils/sctp/testlib/../include/netinet/sctp.h:37,
| 1455184833.52:                  from sctputil.c:55:
| 1455184833.52: /media/build1/poky/build/tmp/sysroots/edgerouter/usr/include/asm-generic/int-l64.h:28:25: note: previous declaration of '__s64' was here
| 1455184833.52:  typedef __signed__ long __s64;
| 1455184833.52:                          ^
| 1455184833.52: In file included from /media/build1/poky/build/tmp/sysroots/edgerouter/usr/include/asm-generic/types.h:6:0,
| 1455184833.52:                  from /media/build1/poky/build/tmp/work/mips64-poky-linux/ltp/20160126-r0/git/utils/sctp/testlib/../include/netinet/sctp.h:38,
| 1455184833.52:                  from sctputil.c:55:
| 1455184833.52: /media/build1/poky/build/tmp/sysroots/edgerouter/usr/include/asm-generic/int-ll64.h:30:42: error: conflicting types for '__u64'
| 1455184833.52:  __extension__ typedef unsigned long long __u64;
| 1455184833.52:                                           ^
Quoted 1 line

also did so locally.

OK. I tested it for qemumips along with other qemu machines. I think the real fix there is to not use __u64, I will reproduce it on edgerouter build.

Quoted 4 lines

Cheers,

Richard

#17 lore raw
In reply to Khem Raj
Quoted 3 lines · Khem Raj

ltp upgrade is prerequisite for glibc 2.23 patches to fix more musl recipes
distutils patch to let pythonic recipes work with devtool

FWIW I tried running the nightly-musl target on the autobuilder. The intent is to start running this automatically when we get the current errors fixed and it passes.

There are only two issues there:

rpm fails to compile
binutils has a QA warning/error about RPATHs

https://autobuilder.yoctoproject.org/main/builders/nightly-musl/builds/
2/steps/BuildImages/logs/stdio

Cheers,

Richard

author
#18 lore raw
Quoted 5 lines · Richard Purdie
Quoted 3 lines · Khem Raj

ltp upgrade is prerequisite for glibc 2.23 patches to fix more musl recipes
distutils patch to let pythonic recipes work with devtool

Quoted 7 lines

FWIW I tried running the nightly-musl target on the autobuilder. The intent is to start running this automatically when we get the current errors fixed and it passes.

There are only two issues there:

rpm fails to compile

yes, Ross mentioned that too. rpm needs fixing.

Quoted 2 lines

binutils has a QA warning/error about RPATHs

my local builders shows this too. Need to investigate.

Quoted 10 lines

https://autobuilder.yoctoproject.org/main/builders/nightly-musl/builds/
2/steps/BuildImages/logs/stdio

Cheers,

Richard