diff mbox series

ltp: bump to release 20180118

Message ID 1517235557-11980-1-git-send-email-anders.roxell@linaro.org
State Accepted
Commit a65081b27109393ff6ec29cd122c017bff637928
Headers show
Series ltp: bump to release 20180118 | expand

Commit Message

Anders Roxell Jan. 29, 2018, 2:19 p.m. UTC
Removed 3 patches that have been upstreamed:
- 0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch
- 0037-ltp-fix-format-security-error.patch
- 0038-generate-reproducible-gzip.patch

Reworked path 0002-Add-knob-to-control-whether-numa-support-should-be-c.patch.

Signed-off-by: Anders Roxell <anders.roxell@linaro.org>

---
 ...-control-whether-numa-support-should-be-c.patch | 39 +++++++++++-----------
 ...READ_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch | 35 -------------------
 .../ltp/0037-ltp-fix-format-security-error.patch   | 36 --------------------
 .../ltp/ltp/0038-generate-reproducible-gzip.patch  | 20 -----------
 .../ltp/{ltp_20170929.bb => ltp_20180118.bb}       |  5 +--
 5 files changed, 21 insertions(+), 114 deletions(-)
 delete mode 100644 meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch
 delete mode 100644 meta/recipes-extended/ltp/ltp/0037-ltp-fix-format-security-error.patch
 delete mode 100644 meta/recipes-extended/ltp/ltp/0038-generate-reproducible-gzip.patch
 rename meta/recipes-extended/ltp/{ltp_20170929.bb => ltp_20180118.bb} (95%)

-- 
2.7.4

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

Comments

Khem Raj Jan. 29, 2018, 8:04 p.m. UTC | #1
On Mon, Jan 29, 2018 at 6:19 AM, Anders Roxell <anders.roxell@linaro.org> wrote:
> Removed 3 patches that have been upstreamed:

> - 0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch

> - 0037-ltp-fix-format-security-error.patch

> - 0038-generate-reproducible-gzip.patch

>

> Reworked path 0002-Add-knob-to-control-whether-numa-support-should-be-c.patch.

>


I would be interested to know if you tried it on a musl target.

> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>

> ---

>  ...-control-whether-numa-support-should-be-c.patch | 39 +++++++++++-----------

>  ...READ_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch | 35 -------------------

>  .../ltp/0037-ltp-fix-format-security-error.patch   | 36 --------------------

>  .../ltp/ltp/0038-generate-reproducible-gzip.patch  | 20 -----------

>  .../ltp/{ltp_20170929.bb => ltp_20180118.bb}       |  5 +--

>  5 files changed, 21 insertions(+), 114 deletions(-)

>  delete mode 100644 meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch

>  delete mode 100644 meta/recipes-extended/ltp/ltp/0037-ltp-fix-format-security-error.patch

>  delete mode 100644 meta/recipes-extended/ltp/ltp/0038-generate-reproducible-gzip.patch

>  rename meta/recipes-extended/ltp/{ltp_20170929.bb => ltp_20180118.bb} (95%)

>

> diff --git a/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch b/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch

> index 9865020..31460b9 100644

> --- a/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch

> +++ b/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch

> @@ -9,34 +9,35 @@ during build depending upong numa being staged or not

>

>  Signed-off-by: Roy.Li <rongqing.li@windriver.com>

>  Signed-off-by: Khem Raj <raj.khem@gmail.com>

> +Signed-off-by: Anders Roxell <anders.roxell@linaro.org>

>  Upstream-Status: Pending

>  ---

>   m4/ltp-numa.m4 | 10 +++++++++-

>   1 file changed, 9 insertions(+), 1 deletion(-)

>

>  diff --git a/m4/ltp-numa.m4 b/m4/ltp-numa.m4

> -index 60ae07b..ed7078d 100644

> +index fc3383e..44cb559 100644

>  --- a/m4/ltp-numa.m4

>  +++ b/m4/ltp-numa.m4

> -@@ -24,7 +24,13 @@ dnl ----------------------------

> +@@ -24,7 +24,13 @@ dnl LTP_CHECK_SYSCALL_NUMA

> + dnl ----------------------------

>   dnl

> - AC_DEFUN([LTP_CHECK_SYSCALL_NUMA],

> - [dnl

> --AC_CHECK_HEADERS([linux/mempolicy.h numa.h numaif.h],[

> -+AC_MSG_CHECKING([for numa])

> -+AC_ARG_WITH(

> -+      [numa],

> -+      AC_HELP_STRING([--without-numa],

> -+      [without numa support]),

> -+      [],

> -+      [AC_CHECK_HEADERS([linux/mempolicy.h numa.h numaif.h],[

> -       LTP_SYSCALL_NUMA_HEADERS=yes

> -       AC_CHECK_LIB(numa,numa_alloc_onnode,[have_numa_alloc_onnode="yes"])

> -       if  test "x$have_numa_alloc_onnode" = "xyes"; then

> -@@ -48,3 +54,5 @@ if test "x$have_mpol_constants" = "xyes"; then

> -       AC_DEFINE(HAVE_MPOL_CONSTANTS,1,[define to 1 if you have all constants required to use mbind tests])

> - fi

> - )])

> + AC_DEFUN([LTP_CHECK_SYSCALL_NUMA], [

> +-      AC_CHECK_LIB(numa, numa_available, [have_libnuma=yes])

> ++      AC_MSG_CHECKING([for numa])

> ++      AC_ARG_WITH(

> ++              [numa],

> ++              AC_HELP_STRING([--without-numa],

> ++              [without numa support]),

> ++              [],

> ++      [AC_CHECK_LIB(numa, numa_available, [have_libnuma=yes])

> +       AC_CHECK_HEADERS([numa.h numaif.h], [], [have_numa_headers=no])

> +

> +       if test "x$have_numa_headers" != "xno"; then

> +@@ -42,3 +48,5 @@ exit(1);

> +               AC_DEFINE(HAVE_NUMA_V2, 1, [Define to 1 if you have libnuma and it's headers version >= 2 installed.])

> +       fi

> + ])

>  +AC_MSG_RESULT([$with_numa])

>  +])

>  --

> diff --git a/meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch b/meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch

> deleted file mode 100644

> index efa6d06..0000000

> --- a/meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch

> +++ /dev/null

> @@ -1,35 +0,0 @@

> -From 00ba7cdd0608b1507027428f9f87b1cb9747372b Mon Sep 17 00:00:00 2001

> -From: Dengke Du <dengke.du@windriver.com>

> -Date: Thu, 9 Feb 2017 15:54:53 +0800

> -Subject: [PATCH] lib: Use PTHREAD_MUTEX_RECURSIVE in place of

> - PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP for non-glibc

> -

> -e.g. musl does not implement the _NP mutex types

> -

> -Signed-off-by: Khem Raj <raj.khem@gmail.com>

> -Signed-off-by: Dengke Du <dengke.du@windriver.com>

> -

> -Upstream-Status: Pending

> ----

> - lib/tst_res.c | 4 ++++

> - 1 file changed, 4 insertions(+)

> -

> -diff --git a/lib/tst_res.c b/lib/tst_res.c

> -index 61daaeb..435224f 100644

> ---- a/lib/tst_res.c

> -+++ b/lib/tst_res.c

> -@@ -79,7 +79,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

> -

> - static void check_env(void);

> - static void tst_condense(int tnum, int ttype, const char *tmesg);

> ---

> -2.7.4

> -

> diff --git a/meta/recipes-extended/ltp/ltp/0037-ltp-fix-format-security-error.patch b/meta/recipes-extended/ltp/ltp/0037-ltp-fix-format-security-error.patch

> deleted file mode 100644

> index 44d6990..0000000

> --- a/meta/recipes-extended/ltp/ltp/0037-ltp-fix-format-security-error.patch

> +++ /dev/null

> @@ -1,36 +0,0 @@

> -From 8eb3e111ae1b89e5afb249cf984d657f94da2385 Mon Sep 17 00:00:00 2001

> -From: Dengke Du <dengke.du@windriver.com>

> -Date: Tue, 17 Oct 2017 05:42:47 -0400

> -Subject: [PATCH] ltp: fix format security error

> -

> -When enable option: -Werror=format-security, the error like:

> -

> -    | fcntl36.c: In function 'test_fn':

> -    | fcntl36.c:303:2: error: format not a string literal and no format arguments [-Werror=format-security]

> -    |   tst_res(TINFO, msg);

> -    |   ^~~~~~~

> -    | cc1: some warnings being treated as errors

> -

> -Upstream-Status: Pending

> -

> -Signed-off-by: Dengke Du <dengke.du@windriver.com>

> ----

> - testcases/kernel/syscalls/fcntl/fcntl36.c | 2 +-

> - 1 file changed, 1 insertion(+), 1 deletion(-)

> -

> -diff --git a/testcases/kernel/syscalls/fcntl/fcntl36.c b/testcases/kernel/syscalls/fcntl/fcntl36.c

> -index 6f2eb6b..3246d13 100644

> ---- a/testcases/kernel/syscalls/fcntl/fcntl36.c

> -+++ b/testcases/kernel/syscalls/fcntl/fcntl36.c

> -@@ -300,7 +300,7 @@ static void test_fn(void *f0(void *), void *f1(void *),

> -       struct param p2[thread_cnt];

> -       unsigned char buf[write_size];

> -

> --      tst_res(TINFO, msg);

> -+      tst_res(TINFO, "%s", msg);

> -

> -       if (tst_fill_file(fname, 1, write_size, thread_cnt + 1))

> -               tst_brk(TBROK, "Failed to create tst file");

> ---

> -2.8.1

> -

> diff --git a/meta/recipes-extended/ltp/ltp/0038-generate-reproducible-gzip.patch b/meta/recipes-extended/ltp/ltp/0038-generate-reproducible-gzip.patch

> deleted file mode 100644

> index 0153ace..0000000

> --- a/meta/recipes-extended/ltp/ltp/0038-generate-reproducible-gzip.patch

> +++ /dev/null

> @@ -1,20 +0,0 @@

> -Do not generate timestamps in gzipped file headers.

> -The timestamps prevent reproducible build.

> -

> -Upstream-Status: Submitted [https://github.com/linux-test-project/ltp/pull/233]

> -

> -Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>

> -

> -diff --git a/testcases/network/generate.sh b/testcases/network/generate.sh

> -index 00216a6..939f792 100755

> ---- a/testcases/network/generate.sh

> -+++ b/testcases/network/generate.sh

> -@@ -55,7 +55,7 @@ fi

> - if [ ! -e "bin.sm" ] ; then

> -       cnt=0

> -       while [ $cnt -lt 5 ] ; do

> --              gzip -1 -c ascii.sm >> "bin.sm"

> -+              gzip -1 -c -n ascii.sm >> "bin.sm"

> -               cnt=$(($cnt + 1))

> -       done

> - fi

> diff --git a/meta/recipes-extended/ltp/ltp_20170929.bb b/meta/recipes-extended/ltp/ltp_20180118.bb

> similarity index 95%

> rename from meta/recipes-extended/ltp/ltp_20170929.bb

> rename to meta/recipes-extended/ltp/ltp_20180118.bb

> index bc0ecdf..a4a2724 100644

> --- a/meta/recipes-extended/ltp/ltp_20170929.bb

> +++ b/meta/recipes-extended/ltp/ltp_20180118.bb

> @@ -21,7 +21,7 @@ DEPENDS_append_libc-musl = " fts "

>  EXTRA_OEMAKE_append_libc-musl = " LIBC=musl "

>  CFLAGS_append_powerpc64 = " -D__SANE_USERSPACE_TYPES__"

>  CFLAGS_append_mipsarchn64 = " -D__SANE_USERSPACE_TYPES__"

> -SRCREV = "bac930f71b1e6786ebb8a894463503d07681ef6a"

> +SRCREV = "731cd34e682d297b207668be8b1d15320a9ac1b1"

>

>  SRC_URI = "git://github.com/linux-test-project/ltp.git \

>             file://0001-add-_GNU_SOURCE-to-pec_listener.c.patch \

> @@ -43,13 +43,10 @@ SRC_URI = "git://github.com/linux-test-project/ltp.git \

>             file://0026-crash01-Define-_GNU_SOURCE.patch \

>             file://0027-sysconf01-Use-_SC_2_C_VERSION-conditionally.patch \

>             file://0028-rt_sigaction.h-Use-sighandler_t-instead-of-__sighand.patch \

> -           file://0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch \

>             file://0033-shmat1-Cover-GNU-specific-code-under-__USE_GNU.patch \

>             file://0034-periodic_output.patch \

>             file://0035-fix-test_proc_kill-hang.patch \

>             file://0036-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch \

> -           file://0037-ltp-fix-format-security-error.patch \

> -           file://0038-generate-reproducible-gzip.patch \

>             file://0039-commands-ar01-Fix-for-test-in-deterministic-mode.patch \

>             "

>

> --

> 2.7.4

>

> --

> _______________________________________________

> Openembedded-core mailing list

> Openembedded-core@lists.openembedded.org

> http://lists.openembedded.org/mailman/listinfo/openembedded-core

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Armin Kuster Jan. 30, 2018, 1:17 a.m. UTC | #2
On 01/29/2018 12:04 PM, Khem Raj wrote:
> On Mon, Jan 29, 2018 at 6:19 AM, Anders Roxell <anders.roxell@linaro.org> wrote:

>> Removed 3 patches that have been upstreamed:

>> - 0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch

>> - 0037-ltp-fix-format-security-error.patch

>> - 0038-generate-reproducible-gzip.patch

>>

>> Reworked path 0002-Add-knob-to-control-whether-numa-support-should-be-c.patch.

>>

> I would be interested to know if you tried it on a musl target.

Do we run the "CVE' tests.. this version include meltdown? is this
include in the the QA test process?

- armin
>

>> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>

>> ---

>>  ...-control-whether-numa-support-should-be-c.patch | 39 +++++++++++-----------

>>  ...READ_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch | 35 -------------------

>>  .../ltp/0037-ltp-fix-format-security-error.patch   | 36 --------------------

>>  .../ltp/ltp/0038-generate-reproducible-gzip.patch  | 20 -----------

>>  .../ltp/{ltp_20170929.bb => ltp_20180118.bb}       |  5 +--

>>  5 files changed, 21 insertions(+), 114 deletions(-)

>>  delete mode 100644 meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch

>>  delete mode 100644 meta/recipes-extended/ltp/ltp/0037-ltp-fix-format-security-error.patch

>>  delete mode 100644 meta/recipes-extended/ltp/ltp/0038-generate-reproducible-gzip.patch

>>  rename meta/recipes-extended/ltp/{ltp_20170929.bb => ltp_20180118.bb} (95%)

>>

>> diff --git a/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch b/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch

>> index 9865020..31460b9 100644

>> --- a/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch

>> +++ b/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch

>> @@ -9,34 +9,35 @@ during build depending upong numa being staged or not

>>

>>  Signed-off-by: Roy.Li <rongqing.li@windriver.com>

>>  Signed-off-by: Khem Raj <raj.khem@gmail.com>

>> +Signed-off-by: Anders Roxell <anders.roxell@linaro.org>

>>  Upstream-Status: Pending

>>  ---

>>   m4/ltp-numa.m4 | 10 +++++++++-

>>   1 file changed, 9 insertions(+), 1 deletion(-)

>>

>>  diff --git a/m4/ltp-numa.m4 b/m4/ltp-numa.m4

>> -index 60ae07b..ed7078d 100644

>> +index fc3383e..44cb559 100644

>>  --- a/m4/ltp-numa.m4

>>  +++ b/m4/ltp-numa.m4

>> -@@ -24,7 +24,13 @@ dnl ----------------------------

>> +@@ -24,7 +24,13 @@ dnl LTP_CHECK_SYSCALL_NUMA

>> + dnl ----------------------------

>>   dnl

>> - AC_DEFUN([LTP_CHECK_SYSCALL_NUMA],

>> - [dnl

>> --AC_CHECK_HEADERS([linux/mempolicy.h numa.h numaif.h],[

>> -+AC_MSG_CHECKING([for numa])

>> -+AC_ARG_WITH(

>> -+      [numa],

>> -+      AC_HELP_STRING([--without-numa],

>> -+      [without numa support]),

>> -+      [],

>> -+      [AC_CHECK_HEADERS([linux/mempolicy.h numa.h numaif.h],[

>> -       LTP_SYSCALL_NUMA_HEADERS=yes

>> -       AC_CHECK_LIB(numa,numa_alloc_onnode,[have_numa_alloc_onnode="yes"])

>> -       if  test "x$have_numa_alloc_onnode" = "xyes"; then

>> -@@ -48,3 +54,5 @@ if test "x$have_mpol_constants" = "xyes"; then

>> -       AC_DEFINE(HAVE_MPOL_CONSTANTS,1,[define to 1 if you have all constants required to use mbind tests])

>> - fi

>> - )])

>> + AC_DEFUN([LTP_CHECK_SYSCALL_NUMA], [

>> +-      AC_CHECK_LIB(numa, numa_available, [have_libnuma=yes])

>> ++      AC_MSG_CHECKING([for numa])

>> ++      AC_ARG_WITH(

>> ++              [numa],

>> ++              AC_HELP_STRING([--without-numa],

>> ++              [without numa support]),

>> ++              [],

>> ++      [AC_CHECK_LIB(numa, numa_available, [have_libnuma=yes])

>> +       AC_CHECK_HEADERS([numa.h numaif.h], [], [have_numa_headers=no])

>> +

>> +       if test "x$have_numa_headers" != "xno"; then

>> +@@ -42,3 +48,5 @@ exit(1);

>> +               AC_DEFINE(HAVE_NUMA_V2, 1, [Define to 1 if you have libnuma and it's headers version >= 2 installed.])

>> +       fi

>> + ])

>>  +AC_MSG_RESULT([$with_numa])

>>  +])

>>  --

>> diff --git a/meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch b/meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch

>> deleted file mode 100644

>> index efa6d06..0000000

>> --- a/meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch

>> +++ /dev/null

>> @@ -1,35 +0,0 @@

>> -From 00ba7cdd0608b1507027428f9f87b1cb9747372b Mon Sep 17 00:00:00 2001

>> -From: Dengke Du <dengke.du@windriver.com>

>> -Date: Thu, 9 Feb 2017 15:54:53 +0800

>> -Subject: [PATCH] lib: Use PTHREAD_MUTEX_RECURSIVE in place of

>> - PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP for non-glibc

>> -

>> -e.g. musl does not implement the _NP mutex types

>> -

>> -Signed-off-by: Khem Raj <raj.khem@gmail.com>

>> -Signed-off-by: Dengke Du <dengke.du@windriver.com>

>> -

>> -Upstream-Status: Pending

>> ----

>> - lib/tst_res.c | 4 ++++

>> - 1 file changed, 4 insertions(+)

>> -

>> -diff --git a/lib/tst_res.c b/lib/tst_res.c

>> -index 61daaeb..435224f 100644

>> ---- a/lib/tst_res.c

>> -+++ b/lib/tst_res.c

>> -@@ -79,7 +79,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

>> -

>> - static void check_env(void);

>> - static void tst_condense(int tnum, int ttype, const char *tmesg);

>> ---

>> -2.7.4

>> -

>> diff --git a/meta/recipes-extended/ltp/ltp/0037-ltp-fix-format-security-error.patch b/meta/recipes-extended/ltp/ltp/0037-ltp-fix-format-security-error.patch

>> deleted file mode 100644

>> index 44d6990..0000000

>> --- a/meta/recipes-extended/ltp/ltp/0037-ltp-fix-format-security-error.patch

>> +++ /dev/null

>> @@ -1,36 +0,0 @@

>> -From 8eb3e111ae1b89e5afb249cf984d657f94da2385 Mon Sep 17 00:00:00 2001

>> -From: Dengke Du <dengke.du@windriver.com>

>> -Date: Tue, 17 Oct 2017 05:42:47 -0400

>> -Subject: [PATCH] ltp: fix format security error

>> -

>> -When enable option: -Werror=format-security, the error like:

>> -

>> -    | fcntl36.c: In function 'test_fn':

>> -    | fcntl36.c:303:2: error: format not a string literal and no format arguments [-Werror=format-security]

>> -    |   tst_res(TINFO, msg);

>> -    |   ^~~~~~~

>> -    | cc1: some warnings being treated as errors

>> -

>> -Upstream-Status: Pending

>> -

>> -Signed-off-by: Dengke Du <dengke.du@windriver.com>

>> ----

>> - testcases/kernel/syscalls/fcntl/fcntl36.c | 2 +-

>> - 1 file changed, 1 insertion(+), 1 deletion(-)

>> -

>> -diff --git a/testcases/kernel/syscalls/fcntl/fcntl36.c b/testcases/kernel/syscalls/fcntl/fcntl36.c

>> -index 6f2eb6b..3246d13 100644

>> ---- a/testcases/kernel/syscalls/fcntl/fcntl36.c

>> -+++ b/testcases/kernel/syscalls/fcntl/fcntl36.c

>> -@@ -300,7 +300,7 @@ static void test_fn(void *f0(void *), void *f1(void *),

>> -       struct param p2[thread_cnt];

>> -       unsigned char buf[write_size];

>> -

>> --      tst_res(TINFO, msg);

>> -+      tst_res(TINFO, "%s", msg);

>> -

>> -       if (tst_fill_file(fname, 1, write_size, thread_cnt + 1))

>> -               tst_brk(TBROK, "Failed to create tst file");

>> ---

>> -2.8.1

>> -

>> diff --git a/meta/recipes-extended/ltp/ltp/0038-generate-reproducible-gzip.patch b/meta/recipes-extended/ltp/ltp/0038-generate-reproducible-gzip.patch

>> deleted file mode 100644

>> index 0153ace..0000000

>> --- a/meta/recipes-extended/ltp/ltp/0038-generate-reproducible-gzip.patch

>> +++ /dev/null

>> @@ -1,20 +0,0 @@

>> -Do not generate timestamps in gzipped file headers.

>> -The timestamps prevent reproducible build.

>> -

>> -Upstream-Status: Submitted [https://github.com/linux-test-project/ltp/pull/233]

>> -

>> -Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>

>> -

>> -diff --git a/testcases/network/generate.sh b/testcases/network/generate.sh

>> -index 00216a6..939f792 100755

>> ---- a/testcases/network/generate.sh

>> -+++ b/testcases/network/generate.sh

>> -@@ -55,7 +55,7 @@ fi

>> - if [ ! -e "bin.sm" ] ; then

>> -       cnt=0

>> -       while [ $cnt -lt 5 ] ; do

>> --              gzip -1 -c ascii.sm >> "bin.sm"

>> -+              gzip -1 -c -n ascii.sm >> "bin.sm"

>> -               cnt=$(($cnt + 1))

>> -       done

>> - fi

>> diff --git a/meta/recipes-extended/ltp/ltp_20170929.bb b/meta/recipes-extended/ltp/ltp_20180118.bb

>> similarity index 95%

>> rename from meta/recipes-extended/ltp/ltp_20170929.bb

>> rename to meta/recipes-extended/ltp/ltp_20180118.bb

>> index bc0ecdf..a4a2724 100644

>> --- a/meta/recipes-extended/ltp/ltp_20170929.bb

>> +++ b/meta/recipes-extended/ltp/ltp_20180118.bb

>> @@ -21,7 +21,7 @@ DEPENDS_append_libc-musl = " fts "

>>  EXTRA_OEMAKE_append_libc-musl = " LIBC=musl "

>>  CFLAGS_append_powerpc64 = " -D__SANE_USERSPACE_TYPES__"

>>  CFLAGS_append_mipsarchn64 = " -D__SANE_USERSPACE_TYPES__"

>> -SRCREV = "bac930f71b1e6786ebb8a894463503d07681ef6a"

>> +SRCREV = "731cd34e682d297b207668be8b1d15320a9ac1b1"

>>

>>  SRC_URI = "git://github.com/linux-test-project/ltp.git \

>>             file://0001-add-_GNU_SOURCE-to-pec_listener.c.patch \

>> @@ -43,13 +43,10 @@ SRC_URI = "git://github.com/linux-test-project/ltp.git \

>>             file://0026-crash01-Define-_GNU_SOURCE.patch \

>>             file://0027-sysconf01-Use-_SC_2_C_VERSION-conditionally.patch \

>>             file://0028-rt_sigaction.h-Use-sighandler_t-instead-of-__sighand.patch \

>> -           file://0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch \

>>             file://0033-shmat1-Cover-GNU-specific-code-under-__USE_GNU.patch \

>>             file://0034-periodic_output.patch \

>>             file://0035-fix-test_proc_kill-hang.patch \

>>             file://0036-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch \

>> -           file://0037-ltp-fix-format-security-error.patch \

>> -           file://0038-generate-reproducible-gzip.patch \

>>             file://0039-commands-ar01-Fix-for-test-in-deterministic-mode.patch \

>>             "

>>

>> --

>> 2.7.4

>>

>> --

>> _______________________________________________

>> Openembedded-core mailing list

>> Openembedded-core@lists.openembedded.org

>> http://lists.openembedded.org/mailman/listinfo/openembedded-core


-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Yi Zhao Jan. 30, 2018, 3:26 a.m. UTC | #3
在 2018年01月29日 22:19, Anders Roxell 写道:
> Removed 3 patches that have been upstreamed:
> - 0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch
> - 0037-ltp-fix-format-security-error.patch
> - 0038-generate-reproducible-gzip.patch

I'm also working on this these days.

The following patches can also be removed since the issues have been 
fixed upstream:
0001-add-_GNU_SOURCE-to-pec_listener.c.patch
0011-Rename-sigset-variable-to-sigset1.patch
0025-mc_gethost-include-sys-types.h.patch
0027-sysconf01-Use-_SC_2_C_VERSION-conditionally.patch
0033-shmat1-Cover-GNU-specific-code-under-__USE_GNU.patch

>
> Reworked path 0002-Add-knob-to-control-whether-numa-support-should-be-c.patch.

I tested this patch but seems like it doesn't work.
Although --with-numa is passed to configure via PACKAGECONFIG="numa", it 
doesn't check numa headers and library, and doesn't link numa library 
when building.


//Yi

>
> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
> ---
>   ...-control-whether-numa-support-should-be-c.patch | 39 +++++++++++-----------
>   ...READ_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch | 35 -------------------
>   .../ltp/0037-ltp-fix-format-security-error.patch   | 36 --------------------
>   .../ltp/ltp/0038-generate-reproducible-gzip.patch  | 20 -----------
>   .../ltp/{ltp_20170929.bb => ltp_20180118.bb}       |  5 +--
>   5 files changed, 21 insertions(+), 114 deletions(-)
>   delete mode 100644 meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch
>   delete mode 100644 meta/recipes-extended/ltp/ltp/0037-ltp-fix-format-security-error.patch
>   delete mode 100644 meta/recipes-extended/ltp/ltp/0038-generate-reproducible-gzip.patch
>   rename meta/recipes-extended/ltp/{ltp_20170929.bb => ltp_20180118.bb} (95%)
>
> diff --git a/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch b/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch
> index 9865020..31460b9 100644
> --- a/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch
> +++ b/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch
> @@ -9,34 +9,35 @@ during build depending upong numa being staged or not
>   
>   Signed-off-by: Roy.Li <rongqing.li@windriver.com>
>   Signed-off-by: Khem Raj <raj.khem@gmail.com>
> +Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
>   Upstream-Status: Pending
>   ---
>    m4/ltp-numa.m4 | 10 +++++++++-
>    1 file changed, 9 insertions(+), 1 deletion(-)
>   
>   diff --git a/m4/ltp-numa.m4 b/m4/ltp-numa.m4
> -index 60ae07b..ed7078d 100644
> +index fc3383e..44cb559 100644
>   --- a/m4/ltp-numa.m4
>   +++ b/m4/ltp-numa.m4
> -@@ -24,7 +24,13 @@ dnl ----------------------------
> +@@ -24,7 +24,13 @@ dnl LTP_CHECK_SYSCALL_NUMA
> + dnl ----------------------------
>    dnl
> - AC_DEFUN([LTP_CHECK_SYSCALL_NUMA],
> - [dnl
> --AC_CHECK_HEADERS([linux/mempolicy.h numa.h numaif.h],[
> -+AC_MSG_CHECKING([for numa])
> -+AC_ARG_WITH(
> -+	[numa],
> -+	AC_HELP_STRING([--without-numa],
> -+	[without numa support]),
> -+	[],
> -+	[AC_CHECK_HEADERS([linux/mempolicy.h numa.h numaif.h],[
> - 	LTP_SYSCALL_NUMA_HEADERS=yes
> - 	AC_CHECK_LIB(numa,numa_alloc_onnode,[have_numa_alloc_onnode="yes"])
> - 	if  test "x$have_numa_alloc_onnode" = "xyes"; then
> -@@ -48,3 +54,5 @@ if test "x$have_mpol_constants" = "xyes"; then
> - 	AC_DEFINE(HAVE_MPOL_CONSTANTS,1,[define to 1 if you have all constants required to use mbind tests])
> - fi
> - )])
> + AC_DEFUN([LTP_CHECK_SYSCALL_NUMA], [
> +-	AC_CHECK_LIB(numa, numa_available, [have_libnuma=yes])
> ++	AC_MSG_CHECKING([for numa])
> ++	AC_ARG_WITH(
> ++		[numa],
> ++		AC_HELP_STRING([--without-numa],
> ++		[without numa support]),
> ++		[],
> ++	[AC_CHECK_LIB(numa, numa_available, [have_libnuma=yes])
> + 	AC_CHECK_HEADERS([numa.h numaif.h], [], [have_numa_headers=no])
> +
> + 	if test "x$have_numa_headers" != "xno"; then
> +@@ -42,3 +48,5 @@ exit(1);
> + 		AC_DEFINE(HAVE_NUMA_V2, 1, [Define to 1 if you have libnuma and it's headers version >= 2 installed.])
> + 	fi
> + ])
>   +AC_MSG_RESULT([$with_numa])
>   +])
>   --
> diff --git a/meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch b/meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch
> deleted file mode 100644
> index efa6d06..0000000
> --- a/meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch
> +++ /dev/null
> @@ -1,35 +0,0 @@
> -From 00ba7cdd0608b1507027428f9f87b1cb9747372b Mon Sep 17 00:00:00 2001
> -From: Dengke Du <dengke.du@windriver.com>
> -Date: Thu, 9 Feb 2017 15:54:53 +0800
> -Subject: [PATCH] lib: Use PTHREAD_MUTEX_RECURSIVE in place of
> - PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP for non-glibc
> -
> -e.g. musl does not implement the _NP mutex types
> -
> -Signed-off-by: Khem Raj <raj.khem@gmail.com>
> -Signed-off-by: Dengke Du <dengke.du@windriver.com>
> -
> -Upstream-Status: Pending
> ----
> - lib/tst_res.c | 4 ++++
> - 1 file changed, 4 insertions(+)
> -
> -diff --git a/lib/tst_res.c b/lib/tst_res.c
> -index 61daaeb..435224f 100644
> ---- a/lib/tst_res.c
> -+++ b/lib/tst_res.c
> -@@ -79,7 +79,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
> -
> - static void check_env(void);
> - static void tst_condense(int tnum, int ttype, const char *tmesg);
> ---
> -2.7.4
> -
> diff --git a/meta/recipes-extended/ltp/ltp/0037-ltp-fix-format-security-error.patch b/meta/recipes-extended/ltp/ltp/0037-ltp-fix-format-security-error.patch
> deleted file mode 100644
> index 44d6990..0000000
> --- a/meta/recipes-extended/ltp/ltp/0037-ltp-fix-format-security-error.patch
> +++ /dev/null
> @@ -1,36 +0,0 @@
> -From 8eb3e111ae1b89e5afb249cf984d657f94da2385 Mon Sep 17 00:00:00 2001
> -From: Dengke Du <dengke.du@windriver.com>
> -Date: Tue, 17 Oct 2017 05:42:47 -0400
> -Subject: [PATCH] ltp: fix format security error
> -
> -When enable option: -Werror=format-security, the error like:
> -
> -    | fcntl36.c: In function 'test_fn':
> -    | fcntl36.c:303:2: error: format not a string literal and no format arguments [-Werror=format-security]
> -    |   tst_res(TINFO, msg);
> -    |   ^~~~~~~
> -    | cc1: some warnings being treated as errors
> -
> -Upstream-Status: Pending
> -
> -Signed-off-by: Dengke Du <dengke.du@windriver.com>
> ----
> - testcases/kernel/syscalls/fcntl/fcntl36.c | 2 +-
> - 1 file changed, 1 insertion(+), 1 deletion(-)
> -
> -diff --git a/testcases/kernel/syscalls/fcntl/fcntl36.c b/testcases/kernel/syscalls/fcntl/fcntl36.c
> -index 6f2eb6b..3246d13 100644
> ---- a/testcases/kernel/syscalls/fcntl/fcntl36.c
> -+++ b/testcases/kernel/syscalls/fcntl/fcntl36.c
> -@@ -300,7 +300,7 @@ static void test_fn(void *f0(void *), void *f1(void *),
> - 	struct param p2[thread_cnt];
> - 	unsigned char buf[write_size];
> -
> --	tst_res(TINFO, msg);
> -+	tst_res(TINFO, "%s", msg);
> -
> - 	if (tst_fill_file(fname, 1, write_size, thread_cnt + 1))
> - 		tst_brk(TBROK, "Failed to create tst file");
> ---
> -2.8.1
> -
> diff --git a/meta/recipes-extended/ltp/ltp/0038-generate-reproducible-gzip.patch b/meta/recipes-extended/ltp/ltp/0038-generate-reproducible-gzip.patch
> deleted file mode 100644
> index 0153ace..0000000
> --- a/meta/recipes-extended/ltp/ltp/0038-generate-reproducible-gzip.patch
> +++ /dev/null
> @@ -1,20 +0,0 @@
> -Do not generate timestamps in gzipped file headers.
> -The timestamps prevent reproducible build.
> -
> -Upstream-Status: Submitted [https://github.com/linux-test-project/ltp/pull/233]
> -
> -Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
> -
> -diff --git a/testcases/network/generate.sh b/testcases/network/generate.sh
> -index 00216a6..939f792 100755
> ---- a/testcases/network/generate.sh
> -+++ b/testcases/network/generate.sh
> -@@ -55,7 +55,7 @@ fi
> - if [ ! -e "bin.sm" ] ; then
> - 	cnt=0
> - 	while [ $cnt -lt 5 ] ; do
> --		gzip -1 -c ascii.sm >> "bin.sm"
> -+		gzip -1 -c -n ascii.sm >> "bin.sm"
> - 		cnt=$(($cnt + 1))
> - 	done
> - fi
> diff --git a/meta/recipes-extended/ltp/ltp_20170929.bb b/meta/recipes-extended/ltp/ltp_20180118.bb
> similarity index 95%
> rename from meta/recipes-extended/ltp/ltp_20170929.bb
> rename to meta/recipes-extended/ltp/ltp_20180118.bb
> index bc0ecdf..a4a2724 100644
> --- a/meta/recipes-extended/ltp/ltp_20170929.bb
> +++ b/meta/recipes-extended/ltp/ltp_20180118.bb
> @@ -21,7 +21,7 @@ DEPENDS_append_libc-musl = " fts "
>   EXTRA_OEMAKE_append_libc-musl = " LIBC=musl "
>   CFLAGS_append_powerpc64 = " -D__SANE_USERSPACE_TYPES__"
>   CFLAGS_append_mipsarchn64 = " -D__SANE_USERSPACE_TYPES__"
> -SRCREV = "bac930f71b1e6786ebb8a894463503d07681ef6a"
> +SRCREV = "731cd34e682d297b207668be8b1d15320a9ac1b1"
>   
>   SRC_URI = "git://github.com/linux-test-project/ltp.git \
>              file://0001-add-_GNU_SOURCE-to-pec_listener.c.patch \
> @@ -43,13 +43,10 @@ SRC_URI = "git://github.com/linux-test-project/ltp.git \
>              file://0026-crash01-Define-_GNU_SOURCE.patch \
>              file://0027-sysconf01-Use-_SC_2_C_VERSION-conditionally.patch \
>              file://0028-rt_sigaction.h-Use-sighandler_t-instead-of-__sighand.patch \
> -           file://0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch \
>              file://0033-shmat1-Cover-GNU-specific-code-under-__USE_GNU.patch \
>              file://0034-periodic_output.patch \
>              file://0035-fix-test_proc_kill-hang.patch \
>              file://0036-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch \
> -           file://0037-ltp-fix-format-security-error.patch \
> -           file://0038-generate-reproducible-gzip.patch \
>              file://0039-commands-ar01-Fix-for-test-in-deterministic-mode.patch \
>              "
>
Anders Roxell Jan. 30, 2018, 12:28 p.m. UTC | #4
On 29 January 2018 at 21:04, Khem Raj <raj.khem@gmail.com> wrote:
> On Mon, Jan 29, 2018 at 6:19 AM, Anders Roxell <anders.roxell@linaro.org> wrote:

>> Removed 3 patches that have been upstreamed:

>> - 0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch

>> - 0037-ltp-fix-format-security-error.patch

>> - 0038-generate-reproducible-gzip.patch

>>

>> Reworked path 0002-Add-knob-to-control-whether-numa-support-should-be-c.patch.

>>

>

> I would be interested to know if you tried it on a musl target.


yes, that worked.

Cheers,
Anders

>

>> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>

>> ---

>>  ...-control-whether-numa-support-should-be-c.patch | 39 +++++++++++-----------

>>  ...READ_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch | 35 -------------------

>>  .../ltp/0037-ltp-fix-format-security-error.patch   | 36 --------------------

>>  .../ltp/ltp/0038-generate-reproducible-gzip.patch  | 20 -----------

>>  .../ltp/{ltp_20170929.bb => ltp_20180118.bb}       |  5 +--

>>  5 files changed, 21 insertions(+), 114 deletions(-)

>>  delete mode 100644 meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch

>>  delete mode 100644 meta/recipes-extended/ltp/ltp/0037-ltp-fix-format-security-error.patch

>>  delete mode 100644 meta/recipes-extended/ltp/ltp/0038-generate-reproducible-gzip.patch

>>  rename meta/recipes-extended/ltp/{ltp_20170929.bb => ltp_20180118.bb} (95%)

>>

>> diff --git a/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch b/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch

>> index 9865020..31460b9 100644

>> --- a/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch

>> +++ b/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch

>> @@ -9,34 +9,35 @@ during build depending upong numa being staged or not

>>

>>  Signed-off-by: Roy.Li <rongqing.li@windriver.com>

>>  Signed-off-by: Khem Raj <raj.khem@gmail.com>

>> +Signed-off-by: Anders Roxell <anders.roxell@linaro.org>

>>  Upstream-Status: Pending

>>  ---

>>   m4/ltp-numa.m4 | 10 +++++++++-

>>   1 file changed, 9 insertions(+), 1 deletion(-)

>>

>>  diff --git a/m4/ltp-numa.m4 b/m4/ltp-numa.m4

>> -index 60ae07b..ed7078d 100644

>> +index fc3383e..44cb559 100644

>>  --- a/m4/ltp-numa.m4

>>  +++ b/m4/ltp-numa.m4

>> -@@ -24,7 +24,13 @@ dnl ----------------------------

>> +@@ -24,7 +24,13 @@ dnl LTP_CHECK_SYSCALL_NUMA

>> + dnl ----------------------------

>>   dnl

>> - AC_DEFUN([LTP_CHECK_SYSCALL_NUMA],

>> - [dnl

>> --AC_CHECK_HEADERS([linux/mempolicy.h numa.h numaif.h],[

>> -+AC_MSG_CHECKING([for numa])

>> -+AC_ARG_WITH(

>> -+      [numa],

>> -+      AC_HELP_STRING([--without-numa],

>> -+      [without numa support]),

>> -+      [],

>> -+      [AC_CHECK_HEADERS([linux/mempolicy.h numa.h numaif.h],[

>> -       LTP_SYSCALL_NUMA_HEADERS=yes

>> -       AC_CHECK_LIB(numa,numa_alloc_onnode,[have_numa_alloc_onnode="yes"])

>> -       if  test "x$have_numa_alloc_onnode" = "xyes"; then

>> -@@ -48,3 +54,5 @@ if test "x$have_mpol_constants" = "xyes"; then

>> -       AC_DEFINE(HAVE_MPOL_CONSTANTS,1,[define to 1 if you have all constants required to use mbind tests])

>> - fi

>> - )])

>> + AC_DEFUN([LTP_CHECK_SYSCALL_NUMA], [

>> +-      AC_CHECK_LIB(numa, numa_available, [have_libnuma=yes])

>> ++      AC_MSG_CHECKING([for numa])

>> ++      AC_ARG_WITH(

>> ++              [numa],

>> ++              AC_HELP_STRING([--without-numa],

>> ++              [without numa support]),

>> ++              [],

>> ++      [AC_CHECK_LIB(numa, numa_available, [have_libnuma=yes])

>> +       AC_CHECK_HEADERS([numa.h numaif.h], [], [have_numa_headers=no])

>> +

>> +       if test "x$have_numa_headers" != "xno"; then

>> +@@ -42,3 +48,5 @@ exit(1);

>> +               AC_DEFINE(HAVE_NUMA_V2, 1, [Define to 1 if you have libnuma and it's headers version >= 2 installed.])

>> +       fi

>> + ])

>>  +AC_MSG_RESULT([$with_numa])

>>  +])

>>  --

>> diff --git a/meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch b/meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch

>> deleted file mode 100644

>> index efa6d06..0000000

>> --- a/meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch

>> +++ /dev/null

>> @@ -1,35 +0,0 @@

>> -From 00ba7cdd0608b1507027428f9f87b1cb9747372b Mon Sep 17 00:00:00 2001

>> -From: Dengke Du <dengke.du@windriver.com>

>> -Date: Thu, 9 Feb 2017 15:54:53 +0800

>> -Subject: [PATCH] lib: Use PTHREAD_MUTEX_RECURSIVE in place of

>> - PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP for non-glibc

>> -

>> -e.g. musl does not implement the _NP mutex types

>> -

>> -Signed-off-by: Khem Raj <raj.khem@gmail.com>

>> -Signed-off-by: Dengke Du <dengke.du@windriver.com>

>> -

>> -Upstream-Status: Pending

>> ----

>> - lib/tst_res.c | 4 ++++

>> - 1 file changed, 4 insertions(+)

>> -

>> -diff --git a/lib/tst_res.c b/lib/tst_res.c

>> -index 61daaeb..435224f 100644

>> ---- a/lib/tst_res.c

>> -+++ b/lib/tst_res.c

>> -@@ -79,7 +79,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

>> -

>> - static void check_env(void);

>> - static void tst_condense(int tnum, int ttype, const char *tmesg);

>> ---

>> -2.7.4

>> -

>> diff --git a/meta/recipes-extended/ltp/ltp/0037-ltp-fix-format-security-error.patch b/meta/recipes-extended/ltp/ltp/0037-ltp-fix-format-security-error.patch

>> deleted file mode 100644

>> index 44d6990..0000000

>> --- a/meta/recipes-extended/ltp/ltp/0037-ltp-fix-format-security-error.patch

>> +++ /dev/null

>> @@ -1,36 +0,0 @@

>> -From 8eb3e111ae1b89e5afb249cf984d657f94da2385 Mon Sep 17 00:00:00 2001

>> -From: Dengke Du <dengke.du@windriver.com>

>> -Date: Tue, 17 Oct 2017 05:42:47 -0400

>> -Subject: [PATCH] ltp: fix format security error

>> -

>> -When enable option: -Werror=format-security, the error like:

>> -

>> -    | fcntl36.c: In function 'test_fn':

>> -    | fcntl36.c:303:2: error: format not a string literal and no format arguments [-Werror=format-security]

>> -    |   tst_res(TINFO, msg);

>> -    |   ^~~~~~~

>> -    | cc1: some warnings being treated as errors

>> -

>> -Upstream-Status: Pending

>> -

>> -Signed-off-by: Dengke Du <dengke.du@windriver.com>

>> ----

>> - testcases/kernel/syscalls/fcntl/fcntl36.c | 2 +-

>> - 1 file changed, 1 insertion(+), 1 deletion(-)

>> -

>> -diff --git a/testcases/kernel/syscalls/fcntl/fcntl36.c b/testcases/kernel/syscalls/fcntl/fcntl36.c

>> -index 6f2eb6b..3246d13 100644

>> ---- a/testcases/kernel/syscalls/fcntl/fcntl36.c

>> -+++ b/testcases/kernel/syscalls/fcntl/fcntl36.c

>> -@@ -300,7 +300,7 @@ static void test_fn(void *f0(void *), void *f1(void *),

>> -       struct param p2[thread_cnt];

>> -       unsigned char buf[write_size];

>> -

>> --      tst_res(TINFO, msg);

>> -+      tst_res(TINFO, "%s", msg);

>> -

>> -       if (tst_fill_file(fname, 1, write_size, thread_cnt + 1))

>> -               tst_brk(TBROK, "Failed to create tst file");

>> ---

>> -2.8.1

>> -

>> diff --git a/meta/recipes-extended/ltp/ltp/0038-generate-reproducible-gzip.patch b/meta/recipes-extended/ltp/ltp/0038-generate-reproducible-gzip.patch

>> deleted file mode 100644

>> index 0153ace..0000000

>> --- a/meta/recipes-extended/ltp/ltp/0038-generate-reproducible-gzip.patch

>> +++ /dev/null

>> @@ -1,20 +0,0 @@

>> -Do not generate timestamps in gzipped file headers.

>> -The timestamps prevent reproducible build.

>> -

>> -Upstream-Status: Submitted [https://github.com/linux-test-project/ltp/pull/233]

>> -

>> -Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>

>> -

>> -diff --git a/testcases/network/generate.sh b/testcases/network/generate.sh

>> -index 00216a6..939f792 100755

>> ---- a/testcases/network/generate.sh

>> -+++ b/testcases/network/generate.sh

>> -@@ -55,7 +55,7 @@ fi

>> - if [ ! -e "bin.sm" ] ; then

>> -       cnt=0

>> -       while [ $cnt -lt 5 ] ; do

>> --              gzip -1 -c ascii.sm >> "bin.sm"

>> -+              gzip -1 -c -n ascii.sm >> "bin.sm"

>> -               cnt=$(($cnt + 1))

>> -       done

>> - fi

>> diff --git a/meta/recipes-extended/ltp/ltp_20170929.bb b/meta/recipes-extended/ltp/ltp_20180118.bb

>> similarity index 95%

>> rename from meta/recipes-extended/ltp/ltp_20170929.bb

>> rename to meta/recipes-extended/ltp/ltp_20180118.bb

>> index bc0ecdf..a4a2724 100644

>> --- a/meta/recipes-extended/ltp/ltp_20170929.bb

>> +++ b/meta/recipes-extended/ltp/ltp_20180118.bb

>> @@ -21,7 +21,7 @@ DEPENDS_append_libc-musl = " fts "

>>  EXTRA_OEMAKE_append_libc-musl = " LIBC=musl "

>>  CFLAGS_append_powerpc64 = " -D__SANE_USERSPACE_TYPES__"

>>  CFLAGS_append_mipsarchn64 = " -D__SANE_USERSPACE_TYPES__"

>> -SRCREV = "bac930f71b1e6786ebb8a894463503d07681ef6a"

>> +SRCREV = "731cd34e682d297b207668be8b1d15320a9ac1b1"

>>

>>  SRC_URI = "git://github.com/linux-test-project/ltp.git \

>>             file://0001-add-_GNU_SOURCE-to-pec_listener.c.patch \

>> @@ -43,13 +43,10 @@ SRC_URI = "git://github.com/linux-test-project/ltp.git \

>>             file://0026-crash01-Define-_GNU_SOURCE.patch \

>>             file://0027-sysconf01-Use-_SC_2_C_VERSION-conditionally.patch \

>>             file://0028-rt_sigaction.h-Use-sighandler_t-instead-of-__sighand.patch \

>> -           file://0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch \

>>             file://0033-shmat1-Cover-GNU-specific-code-under-__USE_GNU.patch \

>>             file://0034-periodic_output.patch \

>>             file://0035-fix-test_proc_kill-hang.patch \

>>             file://0036-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch \

>> -           file://0037-ltp-fix-format-security-error.patch \

>> -           file://0038-generate-reproducible-gzip.patch \

>>             file://0039-commands-ar01-Fix-for-test-in-deterministic-mode.patch \

>>             "

>>

>> --

>> 2.7.4

>>

>> --

>> _______________________________________________

>> Openembedded-core mailing list

>> Openembedded-core@lists.openembedded.org

>> http://lists.openembedded.org/mailman/listinfo/openembedded-core

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Ross Burton Jan. 30, 2018, 12:30 p.m. UTC | #5
Can someone please send an update to remove those patches, as this ltp
upgrade has already merged to master.

Ross

On 30 January 2018 at 03:26, Yi Zhao <yi.zhao@windriver.com> wrote:

>

>

> 在 2018年01月29日 22:19, Anders Roxell 写道:

>

>> Removed 3 patches that have been upstreamed:

>> - 0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch

>> - 0037-ltp-fix-format-security-error.patch

>> - 0038-generate-reproducible-gzip.patch

>>

>

> I'm also working on this these days.

>

> The following patches can also be removed since the issues have been fixed

> upstream:

> 0001-add-_GNU_SOURCE-to-pec_listener.c.patch

> 0011-Rename-sigset-variable-to-sigset1.patch

> 0025-mc_gethost-include-sys-types.h.patch

> 0027-sysconf01-Use-_SC_2_C_VERSION-conditionally.patch

> 0033-shmat1-Cover-GNU-specific-code-under-__USE_GNU.patch

>

>

>> Reworked path 0002-Add-knob-to-control-whether-numa-support-should-be-c.

>> patch.

>>

>

> I tested this patch but seems like it doesn't work.

> Although --with-numa is passed to configure via PACKAGECONFIG="numa", it

> doesn't check numa headers and library, and doesn't link numa library when

> building.

>

>

> //Yi

>

>

>

>> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>

>> ---

>>   ...-control-whether-numa-support-should-be-c.patch | 39

>> +++++++++++-----------

>>   ...READ_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch | 35

>> -------------------

>>   .../ltp/0037-ltp-fix-format-security-error.patch   | 36

>> --------------------

>>   .../ltp/ltp/0038-generate-reproducible-gzip.patch  | 20 -----------

>>   .../ltp/{ltp_20170929.bb => ltp_20180118.bb}       |  5 +--

>>   5 files changed, 21 insertions(+), 114 deletions(-)

>>   delete mode 100644 meta/recipes-extended/ltp/ltp/

>> 0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch

>>   delete mode 100644 meta/recipes-extended/ltp/ltp/

>> 0037-ltp-fix-format-security-error.patch

>>   delete mode 100644 meta/recipes-extended/ltp/ltp/

>> 0038-generate-reproducible-gzip.patch

>>   rename meta/recipes-extended/ltp/{ltp_20170929.bb => ltp_20180118.bb}

>> (95%)

>>

>> diff --git a/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whe

>> ther-numa-support-should-be-c.patch b/meta/recipes-extended/ltp/lt

>> p/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch

>> index 9865020..31460b9 100644

>> --- a/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whe

>> ther-numa-support-should-be-c.patch

>> +++ b/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whe

>> ther-numa-support-should-be-c.patch

>> @@ -9,34 +9,35 @@ during build depending upong numa being staged or not

>>     Signed-off-by: Roy.Li <rongqing.li@windriver.com>

>>   Signed-off-by: Khem Raj <raj.khem@gmail.com>

>> +Signed-off-by: Anders Roxell <anders.roxell@linaro.org>

>>   Upstream-Status: Pending

>>   ---

>>    m4/ltp-numa.m4 | 10 +++++++++-

>>    1 file changed, 9 insertions(+), 1 deletion(-)

>>     diff --git a/m4/ltp-numa.m4 b/m4/ltp-numa.m4

>> -index 60ae07b..ed7078d 100644

>> +index fc3383e..44cb559 100644

>>   --- a/m4/ltp-numa.m4

>>   +++ b/m4/ltp-numa.m4

>> -@@ -24,7 +24,13 @@ dnl ----------------------------

>> +@@ -24,7 +24,13 @@ dnl LTP_CHECK_SYSCALL_NUMA

>> + dnl ----------------------------

>>    dnl

>> - AC_DEFUN([LTP_CHECK_SYSCALL_NUMA],

>> - [dnl

>> --AC_CHECK_HEADERS([linux/mempolicy.h numa.h numaif.h],[

>> -+AC_MSG_CHECKING([for numa])

>> -+AC_ARG_WITH(

>> -+      [numa],

>> -+      AC_HELP_STRING([--without-numa],

>> -+      [without numa support]),

>> -+      [],

>> -+      [AC_CHECK_HEADERS([linux/mempolicy.h numa.h numaif.h],[

>> -       LTP_SYSCALL_NUMA_HEADERS=yes

>> -       AC_CHECK_LIB(numa,numa_alloc_onnode,[have_numa_alloc_onnode

>> ="yes"])

>> -       if  test "x$have_numa_alloc_onnode" = "xyes"; then

>> -@@ -48,3 +54,5 @@ if test "x$have_mpol_constants" = "xyes"; then

>> -       AC_DEFINE(HAVE_MPOL_CONSTANTS,1,[define to 1 if you have all

>> constants required to use mbind tests])

>> - fi

>> - )])

>> + AC_DEFUN([LTP_CHECK_SYSCALL_NUMA], [

>> +-      AC_CHECK_LIB(numa, numa_available, [have_libnuma=yes])

>> ++      AC_MSG_CHECKING([for numa])

>> ++      AC_ARG_WITH(

>> ++              [numa],

>> ++              AC_HELP_STRING([--without-numa],

>> ++              [without numa support]),

>> ++              [],

>> ++      [AC_CHECK_LIB(numa, numa_available, [have_libnuma=yes])

>> +       AC_CHECK_HEADERS([numa.h numaif.h], [], [have_numa_headers=no])

>> +

>> +       if test "x$have_numa_headers" != "xno"; then

>> +@@ -42,3 +48,5 @@ exit(1);

>> +               AC_DEFINE(HAVE_NUMA_V2, 1, [Define to 1 if you have

>> libnuma and it's headers version >= 2 installed.])

>> +       fi

>> + ])

>>   +AC_MSG_RESULT([$with_numa])

>>   +])

>>   --

>> diff --git a/meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_

>> RECURSIVE-in-place-of-PTHREAD_.patch b/meta/recipes-extended/ltp/lt

>> p/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch

>> deleted file mode 100644

>> index efa6d06..0000000

>> --- a/meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_

>> RECURSIVE-in-place-of-PTHREAD_.patch

>> +++ /dev/null

>> @@ -1,35 +0,0 @@

>> -From 00ba7cdd0608b1507027428f9f87b1cb9747372b Mon Sep 17 00:00:00 2001

>> -From: Dengke Du <dengke.du@windriver.com>

>> -Date: Thu, 9 Feb 2017 15:54:53 +0800

>> -Subject: [PATCH] lib: Use PTHREAD_MUTEX_RECURSIVE in place of

>> - PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP for non-glibc

>> -

>> -e.g. musl does not implement the _NP mutex types

>> -

>> -Signed-off-by: Khem Raj <raj.khem@gmail.com>

>> -Signed-off-by: Dengke Du <dengke.du@windriver.com>

>> -

>> -Upstream-Status: Pending

>> ----

>> - lib/tst_res.c | 4 ++++

>> - 1 file changed, 4 insertions(+)

>> -

>> -diff --git a/lib/tst_res.c b/lib/tst_res.c

>> -index 61daaeb..435224f 100644

>> ---- a/lib/tst_res.c

>> -+++ b/lib/tst_res.c

>> -@@ -79,7 +79,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

>> -

>> - static void check_env(void);

>> - static void tst_condense(int tnum, int ttype, const char *tmesg);

>> ---

>> -2.7.4

>> -

>> diff --git a/meta/recipes-extended/ltp/ltp/0037-ltp-fix-format-security-error.patch

>> b/meta/recipes-extended/ltp/ltp/0037-ltp-fix-format-security-error.patch

>> deleted file mode 100644

>> index 44d6990..0000000

>> --- a/meta/recipes-extended/ltp/ltp/0037-ltp-fix-format-security

>> -error.patch

>> +++ /dev/null

>> @@ -1,36 +0,0 @@

>> -From 8eb3e111ae1b89e5afb249cf984d657f94da2385 Mon Sep 17 00:00:00 2001

>> -From: Dengke Du <dengke.du@windriver.com>

>> -Date: Tue, 17 Oct 2017 05:42:47 -0400

>> -Subject: [PATCH] ltp: fix format security error

>> -

>> -When enable option: -Werror=format-security, the error like:

>> -

>> -    | fcntl36.c: In function 'test_fn':

>> -    | fcntl36.c:303:2: error: format not a string literal and no format

>> arguments [-Werror=format-security]

>> -    |   tst_res(TINFO, msg);

>> -    |   ^~~~~~~

>> -    | cc1: some warnings being treated as errors

>> -

>> -Upstream-Status: Pending

>> -

>> -Signed-off-by: Dengke Du <dengke.du@windriver.com>

>> ----

>> - testcases/kernel/syscalls/fcntl/fcntl36.c | 2 +-

>> - 1 file changed, 1 insertion(+), 1 deletion(-)

>> -

>> -diff --git a/testcases/kernel/syscalls/fcntl/fcntl36.c

>> b/testcases/kernel/syscalls/fcntl/fcntl36.c

>> -index 6f2eb6b..3246d13 100644

>> ---- a/testcases/kernel/syscalls/fcntl/fcntl36.c

>> -+++ b/testcases/kernel/syscalls/fcntl/fcntl36.c

>> -@@ -300,7 +300,7 @@ static void test_fn(void *f0(void *), void *f1(void

>> *),

>> -       struct param p2[thread_cnt];

>> -       unsigned char buf[write_size];

>> -

>> --      tst_res(TINFO, msg);

>> -+      tst_res(TINFO, "%s", msg);

>> -

>> -       if (tst_fill_file(fname, 1, write_size, thread_cnt + 1))

>> -               tst_brk(TBROK, "Failed to create tst file");

>> ---

>> -2.8.1

>> -

>> diff --git a/meta/recipes-extended/ltp/ltp/0038-generate-reproducible-gzip.patch

>> b/meta/recipes-extended/ltp/ltp/0038-generate-reproducible-gzip.patch

>> deleted file mode 100644

>> index 0153ace..0000000

>> --- a/meta/recipes-extended/ltp/ltp/0038-generate-reproducible-gzip.patch

>> +++ /dev/null

>> @@ -1,20 +0,0 @@

>> -Do not generate timestamps in gzipped file headers.

>> -The timestamps prevent reproducible build.

>> -

>> -Upstream-Status: Submitted [https://github.com/linux-test

>> -project/ltp/pull/233]

>> -

>> -Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>

>> -

>> -diff --git a/testcases/network/generate.sh

>> b/testcases/network/generate.sh

>> -index 00216a6..939f792 100755

>> ---- a/testcases/network/generate.sh

>> -+++ b/testcases/network/generate.sh

>> -@@ -55,7 +55,7 @@ fi

>> - if [ ! -e "bin.sm" ] ; then

>> -       cnt=0

>> -       while [ $cnt -lt 5 ] ; do

>> --              gzip -1 -c ascii.sm >> "bin.sm"

>> -+              gzip -1 -c -n ascii.sm >> "bin.sm"

>> -               cnt=$(($cnt + 1))

>> -       done

>> - fi

>> diff --git a/meta/recipes-extended/ltp/ltp_20170929.bb

>> b/meta/recipes-extended/ltp/ltp_20180118.bb

>> similarity index 95%

>> rename from meta/recipes-extended/ltp/ltp_20170929.bb

>> rename to meta/recipes-extended/ltp/ltp_20180118.bb

>> index bc0ecdf..a4a2724 100644

>> --- a/meta/recipes-extended/ltp/ltp_20170929.bb

>> +++ b/meta/recipes-extended/ltp/ltp_20180118.bb

>> @@ -21,7 +21,7 @@ DEPENDS_append_libc-musl = " fts "

>>   EXTRA_OEMAKE_append_libc-musl = " LIBC=musl "

>>   CFLAGS_append_powerpc64 = " -D__SANE_USERSPACE_TYPES__"

>>   CFLAGS_append_mipsarchn64 = " -D__SANE_USERSPACE_TYPES__"

>> -SRCREV = "bac930f71b1e6786ebb8a894463503d07681ef6a"

>> +SRCREV = "731cd34e682d297b207668be8b1d15320a9ac1b1"

>>     SRC_URI = "git://github.com/linux-test-project/ltp.git \

>>              file://0001-add-_GNU_SOURCE-to-pec_listener.c.patch \

>> @@ -43,13 +43,10 @@ SRC_URI = "git://github.com/linux-test-p

>> roject/ltp.git \

>>              file://0026-crash01-Define-_GNU_SOURCE.patch \

>>              file://0027-sysconf01-Use-_SC_2_C_VERSION-conditionally.patch

>> \

>>              file://0028-rt_sigaction.h-Use-sighandler_t-instead-of-__sighand.patch

>> \

>> -           file://0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch

>> \

>>              file://0033-shmat1-Cover-GNU-specific-code-under-__USE_GNU.patch

>> \

>>              file://0034-periodic_output.patch \

>>              file://0035-fix-test_proc_kill-hang.patch \

>>              file://0036-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch

>> \

>> -           file://0037-ltp-fix-format-security-error.patch \

>> -           file://0038-generate-reproducible-gzip.patch \

>>              file://0039-commands-ar01-Fix-for-test-in-deterministic-mode.patch

>> \

>>              "

>>

>>

>

> --

> _______________________________________________

> Openembedded-core mailing list

> Openembedded-core@lists.openembedded.org

> http://lists.openembedded.org/mailman/listinfo/openembedded-core

>
<div dir="ltr">Can someone please send an update to remove those patches, as this ltp upgrade has already merged to master.<div><br></div><div>Ross</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 30 January 2018 at 03:26, Yi Zhao <span dir="ltr">&lt;<a href="mailto:yi.zhao@windriver.com" target="_blank">yi.zhao@windriver.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
在 2018年01月29日 22:19, Anders Roxell 写道:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Removed 3 patches that have been upstreamed:<br>
- 0030-lib-Use-PTHREAD_MUTEX_REC<wbr>URSIVE-in-place-of-PTHREAD_.<wbr>patch<br>
- 0037-ltp-fix-format-security-e<wbr>rror.patch<br>
- 0038-generate-reproducible-gzi<wbr>p.patch<br>
</blockquote>
<br></span>
I&#39;m also working on this these days.<br>
<br>
The following patches can also be removed since the issues have been fixed upstream:<br>
0001-add-_GNU_SOURCE-to-pec_li<wbr>stener.c.patch<br>
0011-Rename-sigset-variable-to<wbr>-sigset1.patch<br>
0025-mc_gethost-include-sys-ty<wbr>pes.h.patch<br>
0027-sysconf01-Use-_SC_2_C_VER<wbr>SION-conditionally.patch<br>
0033-shmat1-Cover-GNU-specific<wbr>-code-under-__USE_GNU.patch<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Reworked path 0002-Add-knob-to-control-wheth<wbr>er-numa-support-should-be-c.<wbr>patch.<br>
</blockquote>
<br>
I tested this patch but seems like it doesn&#39;t work.<br>
Although --with-numa is passed to configure via PACKAGECONFIG=&quot;numa&quot;, it doesn&#39;t check numa headers and library, and doesn&#39;t link numa library when building.<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
//Yi</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Signed-off-by: Anders Roxell &lt;<a href="mailto:anders.roxell@linaro.org" target="_blank">anders.roxell@linaro.org</a>&gt;<br>

---<br>
  ...-control-whether-numa-suppo<wbr>rt-should-be-c.patch | 39 +++++++++++-----------<br>
  ...READ_MUTEX_RECURSIVE-in-pla<wbr>ce-of-PTHREAD_.patch | 35 -------------------<br>
  .../ltp/0037-ltp-fix-format-se<wbr>curity-error.patch   | 36 --------------------<br>
  .../ltp/ltp/0038-generate-repr<wbr>oducible-gzip.patch  | 20 -----------<br>
  .../ltp/{<a href="http://ltp_20170929.bb" rel="noreferrer" target="_blank">ltp_20170929.bb</a> =&gt; <a href="http://ltp_20180118.bb" rel="noreferrer" target="_blank">ltp_20180118.bb</a>}       |  5 +--<br>
  5 files changed, 21 insertions(+), 114 deletions(-)<br>
  delete mode 100644 meta/recipes-extended/ltp/ltp/<wbr>0030-lib-Use-PTHREAD_MUTEX_REC<wbr>URSIVE-in-place-of-PTHREAD_.<wbr>patch<br>
  delete mode 100644 meta/recipes-extended/ltp/ltp/<wbr>0037-ltp-fix-format-security-e<wbr>rror.patch<br>
  delete mode 100644 meta/recipes-extended/ltp/ltp/<wbr>0038-generate-reproducible-gzi<wbr>p.patch<br>
  rename meta/recipes-extended/ltp/{<a href="http://ltp_20170929.bb" rel="noreferrer" target="_blank">ltp<wbr>_20170929.bb</a> =&gt; <a href="http://ltp_20180118.bb" rel="noreferrer" target="_blank">ltp_20180118.bb</a>} (95%)<br>
<br>
diff --git a/meta/recipes-extended/ltp/lt<wbr>p/0002-Add-knob-to-control-whe<wbr>ther-numa-support-should-be-c.<wbr>patch b/meta/recipes-extended/ltp/lt<wbr>p/0002-Add-knob-to-control-whe<wbr>ther-numa-support-should-be-c.<wbr>patch<br>
index 9865020..31460b9 100644<br>
--- a/meta/recipes-extended/ltp/lt<wbr>p/0002-Add-knob-to-control-whe<wbr>ther-numa-support-should-be-c.<wbr>patch<br>
+++ b/meta/recipes-extended/ltp/lt<wbr>p/0002-Add-knob-to-control-whe<wbr>ther-numa-support-should-be-c.<wbr>patch<br>
@@ -9,34 +9,35 @@ during build depending upong numa being staged or not<br>
    Signed-off-by: Roy.Li &lt;<a href="mailto:rongqing.li@windriver.com" target="_blank">rongqing.li@windriver.com</a>&gt;<br>
  Signed-off-by: Khem Raj &lt;<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.com</a>&gt;<br>
+Signed-off-by: Anders Roxell &lt;<a href="mailto:anders.roxell@linaro.org" target="_blank">anders.roxell@linaro.org</a>&gt;<br>
  Upstream-Status: Pending<br>
  ---<br>
   m4/ltp-numa.m4 | 10 +++++++++-<br>
   1 file changed, 9 insertions(+), 1 deletion(-)<br>
    diff --git a/m4/ltp-numa.m4 b/m4/ltp-numa.m4<br>
-index 60ae07b..ed7078d 100644<br>
+index fc3383e..44cb559 100644<br>
  --- a/m4/ltp-numa.m4<br>
  +++ b/m4/ltp-numa.m4<br>
-@@ -24,7 +24,13 @@ dnl ----------------------------<br>
+@@ -24,7 +24,13 @@ dnl LTP_CHECK_SYSCALL_NUMA<br>
+ dnl ----------------------------<br>
   dnl<br>
- AC_DEFUN([LTP_CHECK_SYSCALL_NU<wbr>MA],<br>
- [dnl<br>
--AC_CHECK_HEADERS([linux/memp<wbr>olicy.h numa.h numaif.h],[<br>
-+AC_MSG_CHECKING([for numa])<br>
-+AC_ARG_WITH(<br>
-+      [numa],<br>
-+      AC_HELP_STRING([--without-numa<wbr>],<br>
-+      [without numa support]),<br>
-+      [],<br>
-+      [AC_CHECK_HEADERS([linux/mempo<wbr>licy.h numa.h numaif.h],[<br>
-       LTP_SYSCALL_NUMA_HEADERS=yes<br>
-       AC_CHECK_LIB(numa,numa_alloc_<wbr>onnode,[have_numa_alloc_onnode<wbr>=&quot;yes&quot;])<br>
-       if  test &quot;x$have_numa_alloc_onnode&quot; = &quot;xyes&quot;; then<br>
-@@ -48,3 +54,5 @@ if test &quot;x$have_mpol_constants&quot; = &quot;xyes&quot;; then<br>
-       AC_DEFINE(HAVE_MPOL_<wbr>CONSTANTS,1,[define to 1 if you have all constants required to use mbind tests])<br>
- fi<br>
- )])<br>
+ AC_DEFUN([LTP_CHECK_SYSCALL_NU<wbr>MA], [<br>
+-      AC_CHECK_LIB(numa, numa_available, [have_libnuma=yes])<br>
++      AC_MSG_CHECKING([for numa])<br>
++      AC_ARG_WITH(<br>
++              [numa],<br>
++              AC_HELP_STRING([--without-numa<wbr>],<br>
++              [without numa support]),<br>
++              [],<br>
++      [AC_CHECK_LIB(numa, numa_available, [have_libnuma=yes])<br>
+       AC_CHECK_HEADERS([numa.h numaif.h], [], [have_numa_headers=no])<br>
+<br>
+       if test &quot;x$have_numa_headers&quot; != &quot;xno&quot;; then<br>
+@@ -42,3 +48,5 @@ exit(1);<br>
+               AC_DEFINE(HAVE_NUMA_V2, 1, [Define to 1 if you have libnuma and it&#39;s headers version &gt;= 2 installed.])<br>
+       fi<br>
+ ])<br>
  +AC_MSG_RESULT([$with_numa])<br>
  +])<br>
  --<br>
diff --git a/meta/recipes-extended/ltp/lt<wbr>p/0030-lib-Use-PTHREAD_MUTEX_<wbr>RECURSIVE-in-place-of-PTHREAD_<wbr>.patch b/meta/recipes-extended/ltp/lt<wbr>p/0030-lib-Use-PTHREAD_MUTEX_<wbr>RECURSIVE-in-place-of-PTHREAD_<wbr>.patch<br>
deleted file mode 100644<br>
index efa6d06..0000000<br>
--- a/meta/recipes-extended/ltp/lt<wbr>p/0030-lib-Use-PTHREAD_MUTEX_<wbr>RECURSIVE-in-place-of-PTHREAD_<wbr>.patch<br>
+++ /dev/null<br>
@@ -1,35 +0,0 @@<br>
-From 00ba7cdd0608b1507027428f9f87b1<wbr>cb9747372b Mon Sep 17 00:00:00 2001<br>
-From: Dengke Du &lt;<a href="mailto:dengke.du@windriver.com" target="_blank">dengke.du@windriver.com</a>&gt;<br>
-Date: Thu, 9 Feb 2017 15:54:53 +0800<br>
-Subject: [PATCH] lib: Use PTHREAD_MUTEX_RECURSIVE in place of<br>
- PTHREAD_RECURSIVE_MUTEX_INITIA<wbr>LIZER_NP for non-glibc<br>
-<br>
-e.g. musl does not implement the _NP mutex types<br>
-<br>
-Signed-off-by: Khem Raj &lt;<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.com</a>&gt;<br>
-Signed-off-by: Dengke Du &lt;<a href="mailto:dengke.du@windriver.com" target="_blank">dengke.du@windriver.com</a>&gt;<br>
-<br>
-Upstream-Status: Pending<br>
----<br>
- lib/tst_res.c | 4 ++++<br>
- 1 file changed, 4 insertions(+)<br>
-<br>
-diff --git a/lib/tst_res.c b/lib/tst_res.c<br>
-index 61daaeb..435224f 100644<br>
---- a/lib/tst_res.c<br>
-+++ b/lib/tst_res.c<br>
-@@ -79,7 +79,11 @@ int TEST_ERRNO;<br>
-       assert(strlen(buf) &gt; 0);                \<br>
- } while (0)<br>
-<br>
-+#ifdef __GLIBC__<br>
- static pthread_mutex_t tmutex = PTHREAD_RECURSIVE_MUTEX_INITIA<wbr>LIZER_NP;<br>
-+#else<br>
-+static pthread_mutex_t tmutex = {  PTHREAD_MUTEX_RECURSIVE };<br>
-+#endif<br>
-<br>
- static void check_env(void);<br>
- static void tst_condense(int tnum, int ttype, const char *tmesg);<br>
---<br>
-2.7.4<br>
-<br>
diff --git a/meta/recipes-extended/ltp/lt<wbr>p/0037-ltp-fix-format-security<wbr>-error.patch b/meta/recipes-extended/ltp/lt<wbr>p/0037-ltp-fix-format-security<wbr>-error.patch<br>
deleted file mode 100644<br>
index 44d6990..0000000<br>
--- a/meta/recipes-extended/ltp/lt<wbr>p/0037-ltp-fix-format-security<wbr>-error.patch<br>
+++ /dev/null<br>
@@ -1,36 +0,0 @@<br>
-From 8eb3e111ae1b89e5afb249cf984d65<wbr>7f94da2385 Mon Sep 17 00:00:00 2001<br>
-From: Dengke Du &lt;<a href="mailto:dengke.du@windriver.com" target="_blank">dengke.du@windriver.com</a>&gt;<br>
-Date: Tue, 17 Oct 2017 05:42:47 -0400<br>
-Subject: [PATCH] ltp: fix format security error<br>
-<br>
-When enable option: -Werror=format-security, the error like:<br>
-<br>
-    | fcntl36.c: In function &#39;test_fn&#39;:<br>
-    | fcntl36.c:303:2: error: format not a string literal and no format arguments [-Werror=format-security]<br>
-    |   tst_res(TINFO, msg);<br>
-    |   ^~~~~~~<br>
-    | cc1: some warnings being treated as errors<br>
-<br>
-Upstream-Status: Pending<br>
-<br>
-Signed-off-by: Dengke Du &lt;<a href="mailto:dengke.du@windriver.com" target="_blank">dengke.du@windriver.com</a>&gt;<br>
----<br>
- testcases/kernel/syscalls/fcnt<wbr>l/fcntl36.c | 2 +-<br>
- 1 file changed, 1 insertion(+), 1 deletion(-)<br>
-<br>
-diff --git a/testcases/kernel/syscalls/fc<wbr>ntl/fcntl36.c b/testcases/kernel/syscalls/fc<wbr>ntl/fcntl36.c<br>
-index 6f2eb6b..3246d13 100644<br>
---- a/testcases/kernel/syscalls/fc<wbr>ntl/fcntl36.c<br>
-+++ b/testcases/kernel/syscalls/fc<wbr>ntl/fcntl36.c<br>
-@@ -300,7 +300,7 @@ static void test_fn(void *f0(void *), void *f1(void *),<br>
-       struct param p2[thread_cnt];<br>
-       unsigned char buf[write_size];<br>
-<br>
--      tst_res(TINFO, msg);<br>
-+      tst_res(TINFO, &quot;%s&quot;, msg);<br>
-<br>
-       if (tst_fill_file(fname, 1, write_size, thread_cnt + 1))<br>
-               tst_brk(TBROK, &quot;Failed to create tst file&quot;);<br>
---<br>
-2.8.1<br>
-<br>
diff --git a/meta/recipes-extended/ltp/lt<wbr>p/0038-generate-reproducible-<wbr>gzip.patch b/meta/recipes-extended/ltp/lt<wbr>p/0038-generate-reproducible-<wbr>gzip.patch<br>
deleted file mode 100644<br>
index 0153ace..0000000<br>
--- a/meta/recipes-extended/ltp/lt<wbr>p/0038-generate-reproducible-<wbr>gzip.patch<br>
+++ /dev/null<br>
@@ -1,20 +0,0 @@<br>
-Do not generate timestamps in gzipped file headers.<br>
-The timestamps prevent reproducible build.<br>
-<br>
-Upstream-Status: Submitted [<a href="https://github.com/linux-test-project/ltp/pull/233" rel="noreferrer" target="_blank">https://github.com/linux-test<wbr>-project/ltp/pull/233</a>]<br>
-<br>
-Signed-off-by: Juro Bystricky &lt;<a href="mailto:juro.bystricky@intel.com" target="_blank">juro.bystricky@intel.com</a>&gt;<br>
-<br>
-diff --git a/testcases/network/generate.s<wbr>h b/testcases/network/generate.s<wbr>h<br>
-index 00216a6..939f792 100755<br>
---- a/testcases/network/generate.s<wbr>h<br>
-+++ b/testcases/network/generate.s<wbr>h<br>
-@@ -55,7 +55,7 @@ fi<br>
- if [ ! -e &quot;<a href="http://bin.sm" rel="noreferrer" target="_blank">bin.sm</a>&quot; ] ; then<br>
-       cnt=0<br>
-       while [ $cnt -lt 5 ] ; do<br>
--              gzip -1 -c <a href="http://ascii.sm" rel="noreferrer" target="_blank">ascii.sm</a> &gt;&gt; &quot;<a href="http://bin.sm" rel="noreferrer" target="_blank">bin.sm</a>&quot;<br>
-+              gzip -1 -c -n <a href="http://ascii.sm" rel="noreferrer" target="_blank">ascii.sm</a> &gt;&gt; &quot;<a href="http://bin.sm" rel="noreferrer" target="_blank">bin.sm</a>&quot;<br>
-               cnt=$(($cnt + 1))<br>
-       done<br>
- fi<br>
diff --git a/meta/recipes-extended/ltp/<a href="http://ltp_20170929.bb" rel="noreferrer" target="_blank">lt<wbr>p_20170929.bb</a> b/meta/recipes-extended/ltp/<a href="http://ltp_20180118.bb" rel="noreferrer" target="_blank">lt<wbr>p_20180118.bb</a><br>
similarity index 95%<br>
rename from meta/recipes-extended/ltp/<a href="http://ltp_20170929.bb" rel="noreferrer" target="_blank">ltp_<wbr>20170929.bb</a><br>
rename to meta/recipes-extended/ltp/<a href="http://ltp_20180118.bb" rel="noreferrer" target="_blank">ltp_<wbr>20180118.bb</a><br>
index bc0ecdf..a4a2724 100644<br>
--- a/meta/recipes-extended/ltp/<a href="http://ltp_20170929.bb" rel="noreferrer" target="_blank">lt<wbr>p_20170929.bb</a><br>
+++ b/meta/recipes-extended/ltp/<a href="http://ltp_20180118.bb" rel="noreferrer" target="_blank">lt<wbr>p_20180118.bb</a><br>
@@ -21,7 +21,7 @@ DEPENDS_append_libc-musl = &quot; fts &quot;<br>
  EXTRA_OEMAKE_append_libc-musl = &quot; LIBC=musl &quot;<br>
  CFLAGS_append_powerpc64 = &quot; -D__SANE_USERSPACE_TYPES__&quot;<br>
  CFLAGS_append_mipsarchn64 = &quot; -D__SANE_USERSPACE_TYPES__&quot;<br>
-SRCREV = &quot;bac930f71b1e6786ebb8a89446350<wbr>3d07681ef6a&quot;<br>
+SRCREV = &quot;731cd34e682d297b207668be8b1d1<wbr>5320a9ac1b1&quot;<br>
    SRC_URI = &quot;git://<a href="http://github.com/linux-test-project/ltp.git" rel="noreferrer" target="_blank">github.com/linux-test-p<wbr>roject/ltp.git</a> \<br>
             file://0001-add-_GNU_SOURCE-t<wbr>o-pec_listener.c.patch \<br>
@@ -43,13 +43,10 @@ SRC_URI = &quot;git://<a href="http://github.com/linux-test-project/ltp.git" rel="noreferrer" target="_blank">github.com/linux-test-p<wbr>roject/ltp.git</a> \<br>
             file://0026-crash01-Define-_G<wbr>NU_SOURCE.patch \<br>
             file://0027-sysconf01-Use-_<wbr>SC_2_C_VERSION-conditionally.p<wbr>atch \<br>
             file://0028-rt_sigaction.h-Us<wbr>e-sighandler_t-instead-of-__si<wbr>ghand.patch \<br>
-           file://0030-lib-Use-PTHREAD_M<wbr>UTEX_RECURSIVE-in-place-of-PTH<wbr>READ_.patch \<br>
             file://0033-shmat1-Cover-GNU-<wbr>specific-code-under-__USE_GNU.<wbr>patch \<br>
             file://0034-periodic_output.p<wbr>atch \<br>
             file://0035-fix-test_proc_kil<wbr>l-hang.patch \<br>
             file://0036-testcases-<wbr>network-nfsv4-acl-acl1.c-<wbr>Security-fix-on-s.patch \<br>
-           file://0037-ltp-fix-format-se<wbr>curity-error.patch \<br>
-           file://0038-generate-reproduc<wbr>ible-gzip.patch \<br>
             file://0039-commands-ar01-<wbr>Fix-for-test-in-deterministic-<wbr>mode.patch \<br>
             &quot;<br>
  <br>
</blockquote>
<br>
-- <br></div></div><div class="HOEnZb"><div class="h5">
______________________________<wbr>_________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@lists.openem<wbr>bedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/<wbr>mailman/listinfo/openembedded-<wbr>core</a><br>
</div></div></blockquote></div><br></div>
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Anders Roxell Jan. 30, 2018, 12:31 p.m. UTC | #6
On 30 January 2018 at 02:17, akuster808 <akuster808@gmail.com> wrote:
>

>

> On 01/29/2018 12:04 PM, Khem Raj wrote:

>> On Mon, Jan 29, 2018 at 6:19 AM, Anders Roxell <anders.roxell@linaro.org> wrote:

>>> Removed 3 patches that have been upstreamed:

>>> - 0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch

>>> - 0037-ltp-fix-format-security-error.patch

>>> - 0038-generate-reproducible-gzip.patch

>>>

>>> Reworked path 0002-Add-knob-to-control-whether-numa-support-should-be-c.patch.

>>>

>> I would be interested to know if you tried it on a musl target.

> Do we run the "CVE' tests.. this version include meltdown?


How could we run those tests?

Cheers,
Anders

> is this

> include in the the QA test process?

>

> - armin

>>

>>> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>

>>> ---

>>>  ...-control-whether-numa-support-should-be-c.patch | 39 +++++++++++-----------

>>>  ...READ_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch | 35 -------------------

>>>  .../ltp/0037-ltp-fix-format-security-error.patch   | 36 --------------------

>>>  .../ltp/ltp/0038-generate-reproducible-gzip.patch  | 20 -----------

>>>  .../ltp/{ltp_20170929.bb => ltp_20180118.bb}       |  5 +--

>>>  5 files changed, 21 insertions(+), 114 deletions(-)

>>>  delete mode 100644 meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch

>>>  delete mode 100644 meta/recipes-extended/ltp/ltp/0037-ltp-fix-format-security-error.patch

>>>  delete mode 100644 meta/recipes-extended/ltp/ltp/0038-generate-reproducible-gzip.patch

>>>  rename meta/recipes-extended/ltp/{ltp_20170929.bb => ltp_20180118.bb} (95%)

>>>

>>> diff --git a/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch b/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch

>>> index 9865020..31460b9 100644

>>> --- a/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch

>>> +++ b/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch

>>> @@ -9,34 +9,35 @@ during build depending upong numa being staged or not

>>>

>>>  Signed-off-by: Roy.Li <rongqing.li@windriver.com>

>>>  Signed-off-by: Khem Raj <raj.khem@gmail.com>

>>> +Signed-off-by: Anders Roxell <anders.roxell@linaro.org>

>>>  Upstream-Status: Pending

>>>  ---

>>>   m4/ltp-numa.m4 | 10 +++++++++-

>>>   1 file changed, 9 insertions(+), 1 deletion(-)

>>>

>>>  diff --git a/m4/ltp-numa.m4 b/m4/ltp-numa.m4

>>> -index 60ae07b..ed7078d 100644

>>> +index fc3383e..44cb559 100644

>>>  --- a/m4/ltp-numa.m4

>>>  +++ b/m4/ltp-numa.m4

>>> -@@ -24,7 +24,13 @@ dnl ----------------------------

>>> +@@ -24,7 +24,13 @@ dnl LTP_CHECK_SYSCALL_NUMA

>>> + dnl ----------------------------

>>>   dnl

>>> - AC_DEFUN([LTP_CHECK_SYSCALL_NUMA],

>>> - [dnl

>>> --AC_CHECK_HEADERS([linux/mempolicy.h numa.h numaif.h],[

>>> -+AC_MSG_CHECKING([for numa])

>>> -+AC_ARG_WITH(

>>> -+      [numa],

>>> -+      AC_HELP_STRING([--without-numa],

>>> -+      [without numa support]),

>>> -+      [],

>>> -+      [AC_CHECK_HEADERS([linux/mempolicy.h numa.h numaif.h],[

>>> -       LTP_SYSCALL_NUMA_HEADERS=yes

>>> -       AC_CHECK_LIB(numa,numa_alloc_onnode,[have_numa_alloc_onnode="yes"])

>>> -       if  test "x$have_numa_alloc_onnode" = "xyes"; then

>>> -@@ -48,3 +54,5 @@ if test "x$have_mpol_constants" = "xyes"; then

>>> -       AC_DEFINE(HAVE_MPOL_CONSTANTS,1,[define to 1 if you have all constants required to use mbind tests])

>>> - fi

>>> - )])

>>> + AC_DEFUN([LTP_CHECK_SYSCALL_NUMA], [

>>> +-      AC_CHECK_LIB(numa, numa_available, [have_libnuma=yes])

>>> ++      AC_MSG_CHECKING([for numa])

>>> ++      AC_ARG_WITH(

>>> ++              [numa],

>>> ++              AC_HELP_STRING([--without-numa],

>>> ++              [without numa support]),

>>> ++              [],

>>> ++      [AC_CHECK_LIB(numa, numa_available, [have_libnuma=yes])

>>> +       AC_CHECK_HEADERS([numa.h numaif.h], [], [have_numa_headers=no])

>>> +

>>> +       if test "x$have_numa_headers" != "xno"; then

>>> +@@ -42,3 +48,5 @@ exit(1);

>>> +               AC_DEFINE(HAVE_NUMA_V2, 1, [Define to 1 if you have libnuma and it's headers version >= 2 installed.])

>>> +       fi

>>> + ])

>>>  +AC_MSG_RESULT([$with_numa])

>>>  +])

>>>  --

>>> diff --git a/meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch b/meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch

>>> deleted file mode 100644

>>> index efa6d06..0000000

>>> --- a/meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch

>>> +++ /dev/null

>>> @@ -1,35 +0,0 @@

>>> -From 00ba7cdd0608b1507027428f9f87b1cb9747372b Mon Sep 17 00:00:00 2001

>>> -From: Dengke Du <dengke.du@windriver.com>

>>> -Date: Thu, 9 Feb 2017 15:54:53 +0800

>>> -Subject: [PATCH] lib: Use PTHREAD_MUTEX_RECURSIVE in place of

>>> - PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP for non-glibc

>>> -

>>> -e.g. musl does not implement the _NP mutex types

>>> -

>>> -Signed-off-by: Khem Raj <raj.khem@gmail.com>

>>> -Signed-off-by: Dengke Du <dengke.du@windriver.com>

>>> -

>>> -Upstream-Status: Pending

>>> ----

>>> - lib/tst_res.c | 4 ++++

>>> - 1 file changed, 4 insertions(+)

>>> -

>>> -diff --git a/lib/tst_res.c b/lib/tst_res.c

>>> -index 61daaeb..435224f 100644

>>> ---- a/lib/tst_res.c

>>> -+++ b/lib/tst_res.c

>>> -@@ -79,7 +79,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

>>> -

>>> - static void check_env(void);

>>> - static void tst_condense(int tnum, int ttype, const char *tmesg);

>>> ---

>>> -2.7.4

>>> -

>>> diff --git a/meta/recipes-extended/ltp/ltp/0037-ltp-fix-format-security-error.patch b/meta/recipes-extended/ltp/ltp/0037-ltp-fix-format-security-error.patch

>>> deleted file mode 100644

>>> index 44d6990..0000000

>>> --- a/meta/recipes-extended/ltp/ltp/0037-ltp-fix-format-security-error.patch

>>> +++ /dev/null

>>> @@ -1,36 +0,0 @@

>>> -From 8eb3e111ae1b89e5afb249cf984d657f94da2385 Mon Sep 17 00:00:00 2001

>>> -From: Dengke Du <dengke.du@windriver.com>

>>> -Date: Tue, 17 Oct 2017 05:42:47 -0400

>>> -Subject: [PATCH] ltp: fix format security error

>>> -

>>> -When enable option: -Werror=format-security, the error like:

>>> -

>>> -    | fcntl36.c: In function 'test_fn':

>>> -    | fcntl36.c:303:2: error: format not a string literal and no format arguments [-Werror=format-security]

>>> -    |   tst_res(TINFO, msg);

>>> -    |   ^~~~~~~

>>> -    | cc1: some warnings being treated as errors

>>> -

>>> -Upstream-Status: Pending

>>> -

>>> -Signed-off-by: Dengke Du <dengke.du@windriver.com>

>>> ----

>>> - testcases/kernel/syscalls/fcntl/fcntl36.c | 2 +-

>>> - 1 file changed, 1 insertion(+), 1 deletion(-)

>>> -

>>> -diff --git a/testcases/kernel/syscalls/fcntl/fcntl36.c b/testcases/kernel/syscalls/fcntl/fcntl36.c

>>> -index 6f2eb6b..3246d13 100644

>>> ---- a/testcases/kernel/syscalls/fcntl/fcntl36.c

>>> -+++ b/testcases/kernel/syscalls/fcntl/fcntl36.c

>>> -@@ -300,7 +300,7 @@ static void test_fn(void *f0(void *), void *f1(void *),

>>> -       struct param p2[thread_cnt];

>>> -       unsigned char buf[write_size];

>>> -

>>> --      tst_res(TINFO, msg);

>>> -+      tst_res(TINFO, "%s", msg);

>>> -

>>> -       if (tst_fill_file(fname, 1, write_size, thread_cnt + 1))

>>> -               tst_brk(TBROK, "Failed to create tst file");

>>> ---

>>> -2.8.1

>>> -

>>> diff --git a/meta/recipes-extended/ltp/ltp/0038-generate-reproducible-gzip.patch b/meta/recipes-extended/ltp/ltp/0038-generate-reproducible-gzip.patch

>>> deleted file mode 100644

>>> index 0153ace..0000000

>>> --- a/meta/recipes-extended/ltp/ltp/0038-generate-reproducible-gzip.patch

>>> +++ /dev/null

>>> @@ -1,20 +0,0 @@

>>> -Do not generate timestamps in gzipped file headers.

>>> -The timestamps prevent reproducible build.

>>> -

>>> -Upstream-Status: Submitted [https://github.com/linux-test-project/ltp/pull/233]

>>> -

>>> -Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>

>>> -

>>> -diff --git a/testcases/network/generate.sh b/testcases/network/generate.sh

>>> -index 00216a6..939f792 100755

>>> ---- a/testcases/network/generate.sh

>>> -+++ b/testcases/network/generate.sh

>>> -@@ -55,7 +55,7 @@ fi

>>> - if [ ! -e "bin.sm" ] ; then

>>> -       cnt=0

>>> -       while [ $cnt -lt 5 ] ; do

>>> --              gzip -1 -c ascii.sm >> "bin.sm"

>>> -+              gzip -1 -c -n ascii.sm >> "bin.sm"

>>> -               cnt=$(($cnt + 1))

>>> -       done

>>> - fi

>>> diff --git a/meta/recipes-extended/ltp/ltp_20170929.bb b/meta/recipes-extended/ltp/ltp_20180118.bb

>>> similarity index 95%

>>> rename from meta/recipes-extended/ltp/ltp_20170929.bb

>>> rename to meta/recipes-extended/ltp/ltp_20180118.bb

>>> index bc0ecdf..a4a2724 100644

>>> --- a/meta/recipes-extended/ltp/ltp_20170929.bb

>>> +++ b/meta/recipes-extended/ltp/ltp_20180118.bb

>>> @@ -21,7 +21,7 @@ DEPENDS_append_libc-musl = " fts "

>>>  EXTRA_OEMAKE_append_libc-musl = " LIBC=musl "

>>>  CFLAGS_append_powerpc64 = " -D__SANE_USERSPACE_TYPES__"

>>>  CFLAGS_append_mipsarchn64 = " -D__SANE_USERSPACE_TYPES__"

>>> -SRCREV = "bac930f71b1e6786ebb8a894463503d07681ef6a"

>>> +SRCREV = "731cd34e682d297b207668be8b1d15320a9ac1b1"

>>>

>>>  SRC_URI = "git://github.com/linux-test-project/ltp.git \

>>>             file://0001-add-_GNU_SOURCE-to-pec_listener.c.patch \

>>> @@ -43,13 +43,10 @@ SRC_URI = "git://github.com/linux-test-project/ltp.git \

>>>             file://0026-crash01-Define-_GNU_SOURCE.patch \

>>>             file://0027-sysconf01-Use-_SC_2_C_VERSION-conditionally.patch \

>>>             file://0028-rt_sigaction.h-Use-sighandler_t-instead-of-__sighand.patch \

>>> -           file://0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch \

>>>             file://0033-shmat1-Cover-GNU-specific-code-under-__USE_GNU.patch \

>>>             file://0034-periodic_output.patch \

>>>             file://0035-fix-test_proc_kill-hang.patch \

>>>             file://0036-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch \

>>> -           file://0037-ltp-fix-format-security-error.patch \

>>> -           file://0038-generate-reproducible-gzip.patch \

>>>             file://0039-commands-ar01-Fix-for-test-in-deterministic-mode.patch \

>>>             "

>>>

>>> --

>>> 2.7.4

>>>

>>> --

>>> _______________________________________________

>>> Openembedded-core mailing list

>>> Openembedded-core@lists.openembedded.org

>>> http://lists.openembedded.org/mailman/listinfo/openembedded-core

>

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

Patch

diff --git a/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch b/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch
index 9865020..31460b9 100644
--- a/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch
+++ b/meta/recipes-extended/ltp/ltp/0002-Add-knob-to-control-whether-numa-support-should-be-c.patch
@@ -9,34 +9,35 @@  during build depending upong numa being staged or not
 
 Signed-off-by: Roy.Li <rongqing.li@windriver.com>
 Signed-off-by: Khem Raj <raj.khem@gmail.com>
+Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
 Upstream-Status: Pending
 ---
  m4/ltp-numa.m4 | 10 +++++++++-
  1 file changed, 9 insertions(+), 1 deletion(-)
 
 diff --git a/m4/ltp-numa.m4 b/m4/ltp-numa.m4
-index 60ae07b..ed7078d 100644
+index fc3383e..44cb559 100644
 --- a/m4/ltp-numa.m4
 +++ b/m4/ltp-numa.m4
-@@ -24,7 +24,13 @@ dnl ----------------------------
+@@ -24,7 +24,13 @@ dnl LTP_CHECK_SYSCALL_NUMA
+ dnl ----------------------------
  dnl
- AC_DEFUN([LTP_CHECK_SYSCALL_NUMA],
- [dnl
--AC_CHECK_HEADERS([linux/mempolicy.h numa.h numaif.h],[
-+AC_MSG_CHECKING([for numa])
-+AC_ARG_WITH(
-+	[numa],
-+	AC_HELP_STRING([--without-numa],
-+	[without numa support]),
-+	[],
-+	[AC_CHECK_HEADERS([linux/mempolicy.h numa.h numaif.h],[
- 	LTP_SYSCALL_NUMA_HEADERS=yes
- 	AC_CHECK_LIB(numa,numa_alloc_onnode,[have_numa_alloc_onnode="yes"])
- 	if  test "x$have_numa_alloc_onnode" = "xyes"; then
-@@ -48,3 +54,5 @@ if test "x$have_mpol_constants" = "xyes"; then
- 	AC_DEFINE(HAVE_MPOL_CONSTANTS,1,[define to 1 if you have all constants required to use mbind tests])
- fi
- )])
+ AC_DEFUN([LTP_CHECK_SYSCALL_NUMA], [
+-	AC_CHECK_LIB(numa, numa_available, [have_libnuma=yes])
++	AC_MSG_CHECKING([for numa])
++	AC_ARG_WITH(
++		[numa],
++		AC_HELP_STRING([--without-numa],
++		[without numa support]),
++		[],
++	[AC_CHECK_LIB(numa, numa_available, [have_libnuma=yes])
+ 	AC_CHECK_HEADERS([numa.h numaif.h], [], [have_numa_headers=no])
+ 
+ 	if test "x$have_numa_headers" != "xno"; then
+@@ -42,3 +48,5 @@ exit(1);
+ 		AC_DEFINE(HAVE_NUMA_V2, 1, [Define to 1 if you have libnuma and it's headers version >= 2 installed.])
+ 	fi
+ ])
 +AC_MSG_RESULT([$with_numa])
 +])
 -- 
diff --git a/meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch b/meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch
deleted file mode 100644
index efa6d06..0000000
--- a/meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch
+++ /dev/null
@@ -1,35 +0,0 @@ 
-From 00ba7cdd0608b1507027428f9f87b1cb9747372b Mon Sep 17 00:00:00 2001
-From: Dengke Du <dengke.du@windriver.com>
-Date: Thu, 9 Feb 2017 15:54:53 +0800
-Subject: [PATCH] lib: Use PTHREAD_MUTEX_RECURSIVE in place of
- PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP for non-glibc
-
-e.g. musl does not implement the _NP mutex types
-
-Signed-off-by: Khem Raj <raj.khem@gmail.com>
-Signed-off-by: Dengke Du <dengke.du@windriver.com>
-
-Upstream-Status: Pending
----
- lib/tst_res.c | 4 ++++
- 1 file changed, 4 insertions(+)
-
-diff --git a/lib/tst_res.c b/lib/tst_res.c
-index 61daaeb..435224f 100644
---- a/lib/tst_res.c
-+++ b/lib/tst_res.c
-@@ -79,7 +79,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
- 
- static void check_env(void);
- static void tst_condense(int tnum, int ttype, const char *tmesg);
--- 
-2.7.4
-
diff --git a/meta/recipes-extended/ltp/ltp/0037-ltp-fix-format-security-error.patch b/meta/recipes-extended/ltp/ltp/0037-ltp-fix-format-security-error.patch
deleted file mode 100644
index 44d6990..0000000
--- a/meta/recipes-extended/ltp/ltp/0037-ltp-fix-format-security-error.patch
+++ /dev/null
@@ -1,36 +0,0 @@ 
-From 8eb3e111ae1b89e5afb249cf984d657f94da2385 Mon Sep 17 00:00:00 2001
-From: Dengke Du <dengke.du@windriver.com>
-Date: Tue, 17 Oct 2017 05:42:47 -0400
-Subject: [PATCH] ltp: fix format security error
-
-When enable option: -Werror=format-security, the error like:
-
-    | fcntl36.c: In function 'test_fn':
-    | fcntl36.c:303:2: error: format not a string literal and no format arguments [-Werror=format-security]
-    |   tst_res(TINFO, msg);
-    |   ^~~~~~~
-    | cc1: some warnings being treated as errors
-
-Upstream-Status: Pending
-
-Signed-off-by: Dengke Du <dengke.du@windriver.com>
----
- testcases/kernel/syscalls/fcntl/fcntl36.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/testcases/kernel/syscalls/fcntl/fcntl36.c b/testcases/kernel/syscalls/fcntl/fcntl36.c
-index 6f2eb6b..3246d13 100644
---- a/testcases/kernel/syscalls/fcntl/fcntl36.c
-+++ b/testcases/kernel/syscalls/fcntl/fcntl36.c
-@@ -300,7 +300,7 @@ static void test_fn(void *f0(void *), void *f1(void *),
- 	struct param p2[thread_cnt];
- 	unsigned char buf[write_size];
- 
--	tst_res(TINFO, msg);
-+	tst_res(TINFO, "%s", msg);
- 
- 	if (tst_fill_file(fname, 1, write_size, thread_cnt + 1))
- 		tst_brk(TBROK, "Failed to create tst file");
--- 
-2.8.1
-
diff --git a/meta/recipes-extended/ltp/ltp/0038-generate-reproducible-gzip.patch b/meta/recipes-extended/ltp/ltp/0038-generate-reproducible-gzip.patch
deleted file mode 100644
index 0153ace..0000000
--- a/meta/recipes-extended/ltp/ltp/0038-generate-reproducible-gzip.patch
+++ /dev/null
@@ -1,20 +0,0 @@ 
-Do not generate timestamps in gzipped file headers.
-The timestamps prevent reproducible build.
-
-Upstream-Status: Submitted [https://github.com/linux-test-project/ltp/pull/233]
-
-Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
-
-diff --git a/testcases/network/generate.sh b/testcases/network/generate.sh
-index 00216a6..939f792 100755
---- a/testcases/network/generate.sh
-+++ b/testcases/network/generate.sh
-@@ -55,7 +55,7 @@ fi
- if [ ! -e "bin.sm" ] ; then
- 	cnt=0
- 	while [ $cnt -lt 5 ] ; do
--		gzip -1 -c ascii.sm >> "bin.sm"
-+		gzip -1 -c -n ascii.sm >> "bin.sm"
- 		cnt=$(($cnt + 1))
- 	done
- fi
diff --git a/meta/recipes-extended/ltp/ltp_20170929.bb b/meta/recipes-extended/ltp/ltp_20180118.bb
similarity index 95%
rename from meta/recipes-extended/ltp/ltp_20170929.bb
rename to meta/recipes-extended/ltp/ltp_20180118.bb
index bc0ecdf..a4a2724 100644
--- a/meta/recipes-extended/ltp/ltp_20170929.bb
+++ b/meta/recipes-extended/ltp/ltp_20180118.bb
@@ -21,7 +21,7 @@  DEPENDS_append_libc-musl = " fts "
 EXTRA_OEMAKE_append_libc-musl = " LIBC=musl "
 CFLAGS_append_powerpc64 = " -D__SANE_USERSPACE_TYPES__"
 CFLAGS_append_mipsarchn64 = " -D__SANE_USERSPACE_TYPES__"
-SRCREV = "bac930f71b1e6786ebb8a894463503d07681ef6a"
+SRCREV = "731cd34e682d297b207668be8b1d15320a9ac1b1"
 
 SRC_URI = "git://github.com/linux-test-project/ltp.git \
            file://0001-add-_GNU_SOURCE-to-pec_listener.c.patch \
@@ -43,13 +43,10 @@  SRC_URI = "git://github.com/linux-test-project/ltp.git \
            file://0026-crash01-Define-_GNU_SOURCE.patch \
            file://0027-sysconf01-Use-_SC_2_C_VERSION-conditionally.patch \
            file://0028-rt_sigaction.h-Use-sighandler_t-instead-of-__sighand.patch \
-           file://0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch \
            file://0033-shmat1-Cover-GNU-specific-code-under-__USE_GNU.patch \
            file://0034-periodic_output.patch \
            file://0035-fix-test_proc_kill-hang.patch \
            file://0036-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch \
-           file://0037-ltp-fix-format-security-error.patch \
-           file://0038-generate-reproducible-gzip.patch \
            file://0039-commands-ar01-Fix-for-test-in-deterministic-mode.patch \
            "