Subject: Re: bug#63526: [PATCH] gnu: hubbub: Disable building tests

From: Greg Hogan <[email-masked]>
Date: Thu, 25 May 2023 09:02:44 -0400

On Mon, May 22, 2023 at 2:46 AM Andy Tai <[email-masked]> wrote:
>
> Fix for https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63526
>
> * gnu/packages/web.scm (hubbub): [arguments] (tests): Set to #f to disable test build
> ---
>  gnu/packages/web.scm | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
> index fe52f673e2..203e3283cf 100644
> --- a/gnu/packages/web.scm
> +++ b/gnu/packages/web.scm
> @@ -5252,7 +5252,9 @@ (define-public hubbub
>             perl))
>      (propagated-inputs
>       (list libparserutils)) ;for libhubbub.pc
> -    (arguments netsurf-buildsystem-arguments)
> +    (arguments
> +     `(#:tests? #f  ;build error in building tests with gcc 11; skip for now
> +       ,@netsurf-buildsystem-arguments))
>      (home-page "https://www.netsurf-browser.org/projects/hubbub/")
>      (synopsis "HTML5 compliant parsing library")
>      (description
>
> base-commit: 3abcf1663b86bc075e29563140698d8bfae44992
> --
> 2.40.1

Hi Andy,

Disabling tests should be a last resort, especially without a process
to evaluate re-enabling tests in the future.

Based on the error, can we instead add
"-Wno-error=maybe-uninitialized" to the configure-flags?

Greg