All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/bubblewrap: disable tests
@ 2022-04-27 20:08 Fabrice Fontaine
  2022-04-27 21:12 ` Adrian Perez de Castro
  2022-04-30 18:43 ` Arnout Vandecappelle
  0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2022-04-27 20:08 UTC (permalink / raw)
  To: buildroot; +Cc: Adrian Perez de Castro, Fabrice Fontaine

Disable tests to avoid the following build failure on mips32:

[9/10] Compiling C object tests/try-syscall.p/try-syscall.c.o
FAILED: tests/try-syscall.p/try-syscall.c.o
/home/autobuild/autobuild/instance-11/output-1/host/bin/mipsel-buildroot-linux-musl-gcc -Itests/try-syscall.p -Itests -I../tests -fdiagnostics-color=always -Wall -Winvalid-pch -Wextra -O3 -D_GNU_SOURCE -Werror=shadow -Werror=empty-body -Werror=strict-prototypes -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=missing-declarations -Werror=return-type -Werror=overflow -Werror=int-conversion -Werror=incompatible-pointer-types -Werror=misleading-indentation -Werror=missing-include-dirs -Werror=aggregate-return -Werror=switch-default -Wswitch-enum -Wno-sign-compare -Wno-error=sign-compare -Wno-missing-field-initializers -Wno-error=missing-field-initializers -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O1 -g0 -MD -MQ tests/try-syscall.p/try-syscall.c.o -MF tests/try-syscall.p/try-syscall.c.o.d -o tests/try-syscall.p/try-syscall.c.o -c ../tests/try-syscall.c
../tests/try-syscall.c:34:5: error: #error "Unknown MIPS ABI"
   34 | #   error "Unknown MIPS ABI"
      |     ^~~~~

Fixes:
 - http://autobuild.buildroot.org/results/cf0365354fc8c16e5871d561daae0fa5039d0bee

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 .../0001-meson-add-tests-option.patch         | 54 +++++++++++++++++++
 package/bubblewrap/bubblewrap.mk              |  3 +-
 2 files changed, 56 insertions(+), 1 deletion(-)
 create mode 100644 package/bubblewrap/0001-meson-add-tests-option.patch

diff --git a/package/bubblewrap/0001-meson-add-tests-option.patch b/package/bubblewrap/0001-meson-add-tests-option.patch
new file mode 100644
index 0000000000..32836f925d
--- /dev/null
+++ b/package/bubblewrap/0001-meson-add-tests-option.patch
@@ -0,0 +1,54 @@
+From 34ea0ad841d6f9167db391c08e6cd51471fed6be Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Sun, 3 Apr 2022 11:27:06 +0200
+Subject: [PATCH] meson: add tests option
+
+Allow the user to disable tests, for example to avoid the following
+build failure on mips32:
+
+FAILED: tests/try-syscall.p/try-syscall.c.o
+/home/autobuild/autobuild/instance-11/output-1/host/bin/mipsel-buildroot-linux-musl-gcc -Itests/try-syscall.p -Itests -I../tests -fdiagnostics-color=always -Wall -Winvalid-pch -Wextra -O3 -D_GNU_SOURCE -Werror=shadow -Werror=empty-body -Werror=strict-prototypes -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=missing-declarations -Werror=return-type -Werror=overflow -Werror=int-conversion -Werror=incompatible-pointer-types -Werror=misleading-indentation -Werror=missing-include-dirs -Werror=aggregate-return -Werror=switch-default -Wswitch-enum -Wno-sign-compare -Wno-error=sign-compare -Wno-missing-field-initializers -Wno-error=missing-field-initializers -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O1 -g0 -MD -MQ tests/try-syscall.p/try-syscall.c.o -MF tests/try-syscall.p/try-syscall.c.o.d -o tests/try-syscall.p/try-syscall.c.o -c ../tests/try-syscall.c
+../tests/try-syscall.c:34:5: error: #error "Unknown MIPS ABI"
+   34 | #   error "Unknown MIPS ABI"
+      |     ^~~~~
+
+Fixes:
+ - http://autobuild.buildroot.org/results/cf0365354fc8c16e5871d561daae0fa5039d0bee
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Retrieved from:
+https://github.com/containers/bubblewrap/commit/34ea0ad841d6f9167db391c08e6cd51471fed6be]
+---
+ meson.build       | 4 +++-
+ meson_options.txt | 6 ++++++
+ 2 files changed, 9 insertions(+), 1 deletion(-)
+
+diff --git a/meson.build b/meson.build
+index 5b63aa64..9277ac4e 100644
+--- a/meson.build
++++ b/meson.build
+@@ -152,4 +152,6 @@ if not meson.is_subproject()
+   subdir('completions')
+ endif
+ 
+-subdir('tests')
++if get_option('tests')
++  subdir('tests')
++endif
+diff --git a/meson_options.txt b/meson_options.txt
+index 2fa3a8c3..a136a3c3 100644
+--- a/meson_options.txt
++++ b/meson_options.txt
+@@ -38,6 +38,12 @@ option(
+   description : 'enable optional SELINUX support',
+   value : 'auto',
+ )
++option(
++  'tests',
++  type : 'boolean',
++  description : 'build tests',
++  value : 'true',
++)
+ option(
+   'zsh_completion',
+   type : 'feature',
diff --git a/package/bubblewrap/bubblewrap.mk b/package/bubblewrap/bubblewrap.mk
index 5875b0d6e2..81456e9e0d 100644
--- a/package/bubblewrap/bubblewrap.mk
+++ b/package/bubblewrap/bubblewrap.mk
@@ -17,7 +17,8 @@ BUBBLEWRAP_CONF_OPTS = \
 	-Dzsh_completion=disabled \
 	-Dman=disabled \
 	-Dpython=$(HOST_DIR)/bin/python \
-	-Drequire_userns=false
+	-Drequire_userns=false \
+	-Dtests=false
 
 ifeq ($(BR2_PACKAGE_BASH_COMPLETION),y)
 BUBBLEWRAP_CONF_OPTS += \
-- 
2.35.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] package/bubblewrap: disable tests
  2022-04-27 20:08 [Buildroot] [PATCH 1/1] package/bubblewrap: disable tests Fabrice Fontaine
@ 2022-04-27 21:12 ` Adrian Perez de Castro
  2022-04-30 18:43 ` Arnout Vandecappelle
  1 sibling, 0 replies; 3+ messages in thread
From: Adrian Perez de Castro @ 2022-04-27 21:12 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: Fabrice Fontaine, buildroot


[-- Attachment #1.1: Type: text/plain, Size: 5490 bytes --]

Hi Fabrice, all,

On Wed, 27 Apr 2022 22:08:38 +0200 Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> Disable tests to avoid the following build failure on mips32:
> 
> [9/10] Compiling C object tests/try-syscall.p/try-syscall.c.o
> FAILED: tests/try-syscall.p/try-syscall.c.o
> /home/autobuild/autobuild/instance-11/output-1/host/bin/mipsel-buildroot-linux-musl-gcc -Itests/try-syscall.p -Itests -I../tests -fdiagnostics-color=always -Wall -Winvalid-pch -Wextra -O3 -D_GNU_SOURCE -Werror=shadow -Werror=empty-body -Werror=strict-prototypes -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=missing-declarations -Werror=return-type -Werror=overflow -Werror=int-conversion -Werror=incompatible-pointer-types -Werror=misleading-indentation -Werror=missing-include-dirs -Werror=aggregate-return -Werror=switch-default -Wswitch-enum -Wno-sign-compare -Wno-error=sign-compare -Wno-missing-field-initializers -Wno-error=missing-field-initializers -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O1 -g0 -MD -MQ tests/try-syscall.p/try-syscall.c.o -MF tests/try-syscall.p/try-syscall.c.o.d -o tests/try-syscall.p/try-syscall.c.o -c ../tests/try-syscall.c
> ../tests/try-syscall.c:34:5: error: #error "Unknown MIPS ABI"
>    34 | #   error "Unknown MIPS ABI"
>       |     ^~~~~

You beat me to the submission of this fix, thanks!

> Fixes:
>  - http://autobuild.buildroot.org/results/cf0365354fc8c16e5871d561daae0fa5039d0bee

...and a few other autobuilder failures I have seen flying by :)

> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Acked-by: Adrian Perez de Castro <aperez@igalia.com>

> ---
>  .../0001-meson-add-tests-option.patch         | 54 +++++++++++++++++++
>  package/bubblewrap/bubblewrap.mk              |  3 +-
>  2 files changed, 56 insertions(+), 1 deletion(-)
>  create mode 100644 package/bubblewrap/0001-meson-add-tests-option.patch
> 
> diff --git a/package/bubblewrap/0001-meson-add-tests-option.patch b/package/bubblewrap/0001-meson-add-tests-option.patch
> new file mode 100644
> index 0000000000..32836f925d
> --- /dev/null
> +++ b/package/bubblewrap/0001-meson-add-tests-option.patch
> @@ -0,0 +1,54 @@
> +From 34ea0ad841d6f9167db391c08e6cd51471fed6be Mon Sep 17 00:00:00 2001
> +From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +Date: Sun, 3 Apr 2022 11:27:06 +0200
> +Subject: [PATCH] meson: add tests option
> +
> +Allow the user to disable tests, for example to avoid the following
> +build failure on mips32:
> +
> +FAILED: tests/try-syscall.p/try-syscall.c.o
> +/home/autobuild/autobuild/instance-11/output-1/host/bin/mipsel-buildroot-linux-musl-gcc -Itests/try-syscall.p -Itests -I../tests -fdiagnostics-color=always -Wall -Winvalid-pch -Wextra -O3 -D_GNU_SOURCE -Werror=shadow -Werror=empty-body -Werror=strict-prototypes -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=missing-declarations -Werror=return-type -Werror=overflow -Werror=int-conversion -Werror=incompatible-pointer-types -Werror=misleading-indentation -Werror=missing-include-dirs -Werror=aggregate-return -Werror=switch-default -Wswitch-enum -Wno-sign-compare -Wno-error=sign-compare -Wno-missing-field-initializers -Wno-error=missing-field-initializers -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O1 -g0 -MD -MQ tests/try-syscall.p/try-syscall.c.o -MF tests/try-syscall.p/try-syscall.c.o.d -o tests/try-syscall.p/try-syscall.c.o -c ../tests/try-syscall.c
> +../tests/try-syscall.c:34:5: error: #error "Unknown MIPS ABI"
> +   34 | #   error "Unknown MIPS ABI"
> +      |     ^~~~~
> +
> +Fixes:
> + - http://autobuild.buildroot.org/results/cf0365354fc8c16e5871d561daae0fa5039d0bee
> +
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +[Retrieved from:
> +https://github.com/containers/bubblewrap/commit/34ea0ad841d6f9167db391c08e6cd51471fed6be]
> +---
> + meson.build       | 4 +++-
> + meson_options.txt | 6 ++++++
> + 2 files changed, 9 insertions(+), 1 deletion(-)
> +
> +diff --git a/meson.build b/meson.build
> +index 5b63aa64..9277ac4e 100644
> +--- a/meson.build
> ++++ b/meson.build
> +@@ -152,4 +152,6 @@ if not meson.is_subproject()
> +   subdir('completions')
> + endif
> + 
> +-subdir('tests')
> ++if get_option('tests')
> ++  subdir('tests')
> ++endif
> +diff --git a/meson_options.txt b/meson_options.txt
> +index 2fa3a8c3..a136a3c3 100644
> +--- a/meson_options.txt
> ++++ b/meson_options.txt
> +@@ -38,6 +38,12 @@ option(
> +   description : 'enable optional SELINUX support',
> +   value : 'auto',
> + )
> ++option(
> ++  'tests',
> ++  type : 'boolean',
> ++  description : 'build tests',
> ++  value : 'true',
> ++)
> + option(
> +   'zsh_completion',
> +   type : 'feature',
> diff --git a/package/bubblewrap/bubblewrap.mk b/package/bubblewrap/bubblewrap.mk
> index 5875b0d6e2..81456e9e0d 100644
> --- a/package/bubblewrap/bubblewrap.mk
> +++ b/package/bubblewrap/bubblewrap.mk
> @@ -17,7 +17,8 @@ BUBBLEWRAP_CONF_OPTS = \
>  	-Dzsh_completion=disabled \
>  	-Dman=disabled \
>  	-Dpython=$(HOST_DIR)/bin/python \
> -	-Drequire_userns=false
> +	-Drequire_userns=false \
> +	-Dtests=false
>  
>  ifeq ($(BR2_PACKAGE_BASH_COMPLETION),y)
>  BUBBLEWRAP_CONF_OPTS += \
> -- 
> 2.35.1
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

Cheers,
—Adrián

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

[-- Attachment #2: Type: text/plain, Size: 150 bytes --]

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] package/bubblewrap: disable tests
  2022-04-27 20:08 [Buildroot] [PATCH 1/1] package/bubblewrap: disable tests Fabrice Fontaine
  2022-04-27 21:12 ` Adrian Perez de Castro
@ 2022-04-30 18:43 ` Arnout Vandecappelle
  1 sibling, 0 replies; 3+ messages in thread
From: Arnout Vandecappelle @ 2022-04-30 18:43 UTC (permalink / raw)
  To: Fabrice Fontaine, buildroot; +Cc: Adrian Perez de Castro



On 27/04/2022 22:08, Fabrice Fontaine wrote:
> Disable tests to avoid the following build failure on mips32:
> 
> [9/10] Compiling C object tests/try-syscall.p/try-syscall.c.o
> FAILED: tests/try-syscall.p/try-syscall.c.o
> /home/autobuild/autobuild/instance-11/output-1/host/bin/mipsel-buildroot-linux-musl-gcc -Itests/try-syscall.p -Itests -I../tests -fdiagnostics-color=always -Wall -Winvalid-pch -Wextra -O3 -D_GNU_SOURCE -Werror=shadow -Werror=empty-body -Werror=strict-prototypes -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=missing-declarations -Werror=return-type -Werror=overflow -Werror=int-conversion -Werror=incompatible-pointer-types -Werror=misleading-indentation -Werror=missing-include-dirs -Werror=aggregate-return -Werror=switch-default -Wswitch-enum -Wno-sign-compare -Wno-error=sign-compare -Wno-missing-field-initializers -Wno-error=missing-field-initializers -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O1 -g0 -MD -MQ tests/try-syscall.p/try-syscall.c.o -MF tests/try-syscall.p/try-syscall.c.o.d -o tests/try-syscall.p/try-syscall.c.o -c ../tests/try-syscall.c
> ../tests/try-syscall.c:34:5: error: #error "Unknown MIPS ABI"
>     34 | #   error "Unknown MIPS ABI"
>        |     ^~~~~
> 
> Fixes:
>   - http://autobuild.buildroot.org/results/cf0365354fc8c16e5871d561daae0fa5039d0bee
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

  Applied to master, thanks.

  Regards,
  Arnout

> ---
>   .../0001-meson-add-tests-option.patch         | 54 +++++++++++++++++++
>   package/bubblewrap/bubblewrap.mk              |  3 +-
>   2 files changed, 56 insertions(+), 1 deletion(-)
>   create mode 100644 package/bubblewrap/0001-meson-add-tests-option.patch
> 
> diff --git a/package/bubblewrap/0001-meson-add-tests-option.patch b/package/bubblewrap/0001-meson-add-tests-option.patch
> new file mode 100644
> index 0000000000..32836f925d
> --- /dev/null
> +++ b/package/bubblewrap/0001-meson-add-tests-option.patch
> @@ -0,0 +1,54 @@
> +From 34ea0ad841d6f9167db391c08e6cd51471fed6be Mon Sep 17 00:00:00 2001
> +From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +Date: Sun, 3 Apr 2022 11:27:06 +0200
> +Subject: [PATCH] meson: add tests option
> +
> +Allow the user to disable tests, for example to avoid the following
> +build failure on mips32:
> +
> +FAILED: tests/try-syscall.p/try-syscall.c.o
> +/home/autobuild/autobuild/instance-11/output-1/host/bin/mipsel-buildroot-linux-musl-gcc -Itests/try-syscall.p -Itests -I../tests -fdiagnostics-color=always -Wall -Winvalid-pch -Wextra -O3 -D_GNU_SOURCE -Werror=shadow -Werror=empty-body -Werror=strict-prototypes -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=missing-declarations -Werror=return-type -Werror=overflow -Werror=int-conversion -Werror=incompatible-pointer-types -Werror=misleading-indentation -Werror=missing-include-dirs -Werror=aggregate-return -Werror=switch-default -Wswitch-enum -Wno-sign-compare -Wno-error=sign-compare -Wno-missing-field-initializers -Wno-error=missing-field-initializers -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O1 -g0 -MD -MQ tests/try-syscall.p/try-syscall.c.o -MF tests/try-syscall.p/try-syscall.c.o.d -o tests/try-syscall.p/try-syscall.c.o -c ../tests/try-syscall.c
> +../tests/try-syscall.c:34:5: error: #error "Unknown MIPS ABI"
> +   34 | #   error "Unknown MIPS ABI"
> +      |     ^~~~~
> +
> +Fixes:
> + - http://autobuild.buildroot.org/results/cf0365354fc8c16e5871d561daae0fa5039d0bee
> +
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +[Retrieved from:
> +https://github.com/containers/bubblewrap/commit/34ea0ad841d6f9167db391c08e6cd51471fed6be]
> +---
> + meson.build       | 4 +++-
> + meson_options.txt | 6 ++++++
> + 2 files changed, 9 insertions(+), 1 deletion(-)
> +
> +diff --git a/meson.build b/meson.build
> +index 5b63aa64..9277ac4e 100644
> +--- a/meson.build
> ++++ b/meson.build
> +@@ -152,4 +152,6 @@ if not meson.is_subproject()
> +   subdir('completions')
> + endif
> +
> +-subdir('tests')
> ++if get_option('tests')
> ++  subdir('tests')
> ++endif
> +diff --git a/meson_options.txt b/meson_options.txt
> +index 2fa3a8c3..a136a3c3 100644
> +--- a/meson_options.txt
> ++++ b/meson_options.txt
> +@@ -38,6 +38,12 @@ option(
> +   description : 'enable optional SELINUX support',
> +   value : 'auto',
> + )
> ++option(
> ++  'tests',
> ++  type : 'boolean',
> ++  description : 'build tests',
> ++  value : 'true',
> ++)
> + option(
> +   'zsh_completion',
> +   type : 'feature',
> diff --git a/package/bubblewrap/bubblewrap.mk b/package/bubblewrap/bubblewrap.mk
> index 5875b0d6e2..81456e9e0d 100644
> --- a/package/bubblewrap/bubblewrap.mk
> +++ b/package/bubblewrap/bubblewrap.mk
> @@ -17,7 +17,8 @@ BUBBLEWRAP_CONF_OPTS = \
>   	-Dzsh_completion=disabled \
>   	-Dman=disabled \
>   	-Dpython=$(HOST_DIR)/bin/python \
> -	-Drequire_userns=false
> +	-Drequire_userns=false \
> +	-Dtests=false
>   
>   ifeq ($(BR2_PACKAGE_BASH_COMPLETION),y)
>   BUBBLEWRAP_CONF_OPTS += \
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2022-04-30 18:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-27 20:08 [Buildroot] [PATCH 1/1] package/bubblewrap: disable tests Fabrice Fontaine
2022-04-27 21:12 ` Adrian Perez de Castro
2022-04-30 18:43 ` Arnout Vandecappelle

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.