All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/ltp-testsuite: add upstream patches
@ 2018-10-05  6:45 Florian La Roche
  2018-10-05 12:21 ` Petr Vorel
  2018-10-08 15:55 ` Thomas Petazzoni
  0 siblings, 2 replies; 3+ messages in thread
From: Florian La Roche @ 2018-10-05  6:45 UTC (permalink / raw)
  To: buildroot

Add patches from the upstream ltp-testsuite github
repository to compile correctly.

Signed-off-by: Florian La Roche <F.LaRoche@pilz.de>
---
 package/ltp-testsuite/0002-execve05.patch | 44 +++++++++++++++++++++++
 package/ltp-testsuite/0003-statx.patch    | 32 +++++++++++++++++
 package/ltp-testsuite/0004-statx.patch    | 26 ++++++++++++++
 3 files changed, 102 insertions(+)
 create mode 100644 package/ltp-testsuite/0002-execve05.patch
 create mode 100644 package/ltp-testsuite/0003-statx.patch
 create mode 100644 package/ltp-testsuite/0004-statx.patch

diff --git a/package/ltp-testsuite/0002-execve05.patch b/package/ltp-testsuite/0002-execve05.patch
new file mode 100644
index 0000000000..06e40c54e1
--- /dev/null
+++ b/package/ltp-testsuite/0002-execve05.patch
@@ -0,0 +1,44 @@
+From 6f61cad559df8791add50aa8d053ca77cd97c594 Mon Sep 17 00:00:00 2001
+From: "Allen, John" <John.Allen@amd.com>
+Date: Wed, 26 Sep 2018 14:31:37 +0000
+Subject: [PATCH] runtest/{ltplite, stress.part3}: Update execve05 calling
+ convention
+
+The calling convention for execve05 was recently changed and was updated
+in runtest/syscalls when the change was introduced, but not for other
+runtest files where execve05 is called. Update all calls to execve05 to
+use the new calling convention.
+
+Signed-off-by: John Allen <john.allen@amd.com>
+Acked-by: Cyril Hrubis <chrubis@suse.cz>
+---
+ runtest/ltplite      | 2 +-
+ runtest/stress.part3 | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/runtest/ltplite b/runtest/ltplite
+index 61ab275d8e..f0102e7e63 100644
+--- a/runtest/ltplite
++++ b/runtest/ltplite
+@@ -174,7 +174,7 @@ execve01 execve01
+ execve02 execve02
+ execve03 execve03
+ execve04 execve04
+-execve05 execve05 20 $LTPROOT/testcases/bin/execve05 $LTPROOT/testcases/bin/execve05 4
++execve05 execve05 -i 5 -n 32
+ execvp01 execvp01
+ 
+ exit01 exit01
+diff --git a/runtest/stress.part3 b/runtest/stress.part3
+index 332daa9ece..513d2ea39d 100644
+--- a/runtest/stress.part3
++++ b/runtest/stress.part3
+@@ -115,7 +115,7 @@ execve01 execve01
+ execve02 execve02
+ execve03 execve03
+ execve04 execve04
+-execve05 execve05 20 $LTPROOT/testcases/bin/execve05 $LTPROOT/testcases/bin/execve05 4
++execve05 execve05 -i 5 -n 32
+ execvp01 execvp01
+ 
+ exit01 exit01
diff --git a/package/ltp-testsuite/0003-statx.patch b/package/ltp-testsuite/0003-statx.patch
new file mode 100644
index 0000000000..fedb8784c0
--- /dev/null
+++ b/package/ltp-testsuite/0003-statx.patch
@@ -0,0 +1,32 @@
+From a945304b6a2286d0665c70250cc5475eb07fd21e Mon Sep 17 00:00:00 2001
+From: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
+Date: Wed, 26 Sep 2018 11:15:45 -0300
+Subject: [PATCH] statx: fix compile errors
+
+struct statx is only defined in sys/stat.h when _GNU_SOURCE is defined.
+The testcases do define _GNU_SOURCE, but not the m4 struct check.
+
+Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
+Acked-by: Cyril Hrubis <chrubis@suse.cz>
+---
+ m4/ltp-statx.m4 | 9 +++++++--
+ 1 file changed, 7 insertions(+), 2 deletions(-)
+
+diff --git a/m4/ltp-statx.m4 b/m4/ltp-statx.m4
+index 44303d30c2..5f79a94cdf 100644
+--- a/m4/ltp-statx.m4
++++ b/m4/ltp-statx.m4
+@@ -23,6 +23,11 @@ dnl
+ AC_DEFUN([LTP_CHECK_STATX],[
+ AC_CHECK_FUNCS(statx,,,[[#include <sys/stat.h>]])
+ AC_CHECK_HEADER(linux/fs.h,,,)
+-AC_CHECK_TYPES([struct statx],,,[[#include <sys/stat.h>]])
+-AC_CHECK_TYPES([struct statx_timestamp],,,[[#include <sys/stat.h>]])
++AC_CHECK_TYPES([struct statx],,,[[
++	#define _GNU_SOURCE
++	#include <sys/stat.h>
++]])
++AC_CHECK_TYPES([struct statx_timestamp],,,[[
++	#define _GNU_SOURCE
++	#include <sys/stat.h>]])
+ ])
diff --git a/package/ltp-testsuite/0004-statx.patch b/package/ltp-testsuite/0004-statx.patch
new file mode 100644
index 0000000000..7b9002d708
--- /dev/null
+++ b/package/ltp-testsuite/0004-statx.patch
@@ -0,0 +1,26 @@
+This is based on 0003-statx.patch so that autoconf does not have to run again.
+
+--- ltp-testsuite-20180926/configure
++++ ltp-testsuite-20180926/configure
+@@ -6502,7 +6502,9 @@
+ fi
+ 
+ 
+-ac_fn_c_check_type "$LINENO" "struct statx" "ac_cv_type_struct_statx" "#include <sys/stat.h>
++ac_fn_c_check_type "$LINENO" "struct statx" "ac_cv_type_struct_statx" "
++#define _GNU_SOURCE
++#include <sys/stat.h>
+ "
+ if test "x$ac_cv_type_struct_statx" = xyes; then :
+ 
+@@ -6513,7 +6515,9 @@
+ 
+ fi
+ 
+-ac_fn_c_check_type "$LINENO" "struct statx_timestamp" "ac_cv_type_struct_statx_timestamp" "#include <sys/stat.h>
++ac_fn_c_check_type "$LINENO" "struct statx_timestamp" "ac_cv_type_struct_statx_timestamp" "
++#define _GNU_SOURCE
++#include <sys/stat.h>
+ "
+ if test "x$ac_cv_type_struct_statx_timestamp" = xyes; then :
+ 
-- 
2.17.1

Gesch?ftsf?hrung: Susanne Kunschert, Thomas Pilz
Pilz GmbH & Co. KG, Sitz: Ostfildern, HRA 210 893, Amtsgericht Stuttgart
Kompl. Ges. Peter Pilz GmbH, Sitz: Ostfildern, HRB 210 612, Amtsgericht Stuttgart
Umsatzsteuer: ID-Nr. DE 145 355 773, WEEE-Reg.-Nr. DE 71636849
This email is intended solely for the use of the named address(es). Any unauthorised disclosure, copying or distribution of these confidential information contained therein, or the taking of any action based on it, is prohibited. The sender disclaims any liability for the integrity of this email. Legally binding declarations must be in written form.
Umweltschutz liegt uns am Herzen! - Bitte denken Sie an unsere Umwelt, bevor Sie diese E-Mail drucken.
We do care about the environment! - Please consider the environment before printing this e-mail.

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/1] package/ltp-testsuite: add upstream patches
  2018-10-05  6:45 [Buildroot] [PATCH 1/1] package/ltp-testsuite: add upstream patches Florian La Roche
@ 2018-10-05 12:21 ` Petr Vorel
  2018-10-08 15:55 ` Thomas Petazzoni
  1 sibling, 0 replies; 3+ messages in thread
From: Petr Vorel @ 2018-10-05 12:21 UTC (permalink / raw)
  To: buildroot

Hi Florian,

> Add patches from the upstream ltp-testsuite github
> repository to compile correctly.

> Signed-off-by: Florian La Roche <F.LaRoche@pilz.de>
Reviewed-by: Petr Vorel <pvorel@suse.cz>

> ---
>  package/ltp-testsuite/0002-execve05.patch | 44 +++++++++++++++++++++++
>  package/ltp-testsuite/0003-statx.patch    | 32 +++++++++++++++++
>  package/ltp-testsuite/0004-statx.patch    | 26 ++++++++++++++

This is a duplicate patch of patch sent in
http://lists.busybox.net/pipermail/buildroot/2018-October/232173.html
https://patchwork.ozlabs.org/patch/979320/

Kind regards,
Petr

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/1] package/ltp-testsuite: add upstream patches
  2018-10-05  6:45 [Buildroot] [PATCH 1/1] package/ltp-testsuite: add upstream patches Florian La Roche
  2018-10-05 12:21 ` Petr Vorel
@ 2018-10-08 15:55 ` Thomas Petazzoni
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2018-10-08 15:55 UTC (permalink / raw)
  To: buildroot

Hello Florian,

Thanks for working on ltp!

On Fri, 5 Oct 2018 08:45:25 +0200, Florian La Roche wrote:
> Add patches from the upstream ltp-testsuite github
> repository to compile correctly.

"compile correctly" is very vague. Which issues is this fixing ?

It seems like the statx patch is fixing a build issue with glibc 2.28.
If that is the case, it should be explained in the commit log, and a
reference to the autobuilder failure should be added (see
http://autobuild.buildroot.net/?reason=ltp% for all ltp-testsuite build
failures).

The commit title should then be fixed to be:

	package/ltp-testsuite: fix build with glibc 2.28

>  package/ltp-testsuite/0002-execve05.patch | 44 +++++++++++++++++++++++

This is a runtime fix, it should be added a separate patch, explaining
why it should be added.

Also, please use "git format-patch" to generate the patches, and keep
the file name generated by git format-patch for the patches.

> diff --git a/package/ltp-testsuite/0002-execve05.patch b/package/ltp-testsuite/0002-execve05.patch
> new file mode 100644
> index 0000000000..06e40c54e1
> --- /dev/null
> +++ b/package/ltp-testsuite/0002-execve05.patch
> @@ -0,0 +1,44 @@
> +From 6f61cad559df8791add50aa8d053ca77cd97c594 Mon Sep 17 00:00:00 2001
> +From: "Allen, John" <John.Allen@amd.com>
> +Date: Wed, 26 Sep 2018 14:31:37 +0000
> +Subject: [PATCH] runtest/{ltplite, stress.part3}: Update execve05 calling
> + convention
> +
> +The calling convention for execve05 was recently changed and was updated
> +in runtest/syscalls when the change was introduced, but not for other
> +runtest files where execve05 is called. Update all calls to execve05 to
> +use the new calling convention.
> +
> +Signed-off-by: John Allen <john.allen@amd.com>
> +Acked-by: Cyril Hrubis <chrubis@suse.cz>

Please add your Signed-off-by to patches added in Buildroot.


> diff --git a/package/ltp-testsuite/0004-statx.patch b/package/ltp-testsuite/0004-statx.patch
> new file mode 100644
> index 0000000000..7b9002d708
> --- /dev/null
> +++ b/package/ltp-testsuite/0004-statx.patch
> @@ -0,0 +1,26 @@
> +This is based on 0003-statx.patch so that autoconf does not have to run again.
> +

As Petr suggested, we prefer to add AUTORECONF = YES in
ltp-testsuite.mk.

Just add something like this:

# 0004-blablalba.patch
LTP_TESTSUITE_AUTORECONF = YES

Could you fix those minor details, and send an updated version of your
patch ?

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-10-08 15:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-05  6:45 [Buildroot] [PATCH 1/1] package/ltp-testsuite: add upstream patches Florian La Roche
2018-10-05 12:21 ` Petr Vorel
2018-10-08 15:55 ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.