Subject: [bug#52186] [core-updates-frozen] Fix julia on i686-linux

From: zimoun <[email-masked]>
Date: Mon, 29 Nov 2021 19:51:58 +0100

Hi,

This patch fixes all  broken Julia on i686 for core-updates-frozen.

On Mon, 29 Nov 2021 at 19:21, zimoun <[email-masked]> wrote:

> diff --git a/gnu/packages/julia.scm b/gnu/packages/julia.scm
> index 83aa8b1099..17f4a9a169 100644
> --- a/gnu/packages/julia.scm
> +++ b/gnu/packages/julia.scm
> @@ -71,13 +71,17 @@ (define libunwind-julia
>          (base32
>           "1y0l08k6ak1mqbfj6accf9s5686kljwgsl4vcqpxzk5n74wpm6a3"))
>         (patches
> -        (list
> -         (julia-patch "libunwind-prefer-extbl"
> -                      "0lr4dafw8qyfh8sw8hhbwkql1dlhqv8px7k81y2l20hhxfgnh2m1")
> -         (julia-patch "libunwind-static-arm"
> -                      "1jk3bmiw61ypcchqkk1fyg5wh8wpggk574wxyfyaic870zh3lhgq")
> -         (julia-patch "libunwind-cfa-rsp"
> -                      "1aswjhvysahhldbzh1afbf0hsjxrvs6xidsz2i7s1cjkjbdiia1z")))))
> +        (append
> +            ;; Fix linker issue for i686-linux because GCC10 changed default
> +            ;; (see '-fno-common' option).
> +            (search-patches "libunwind-julia-fix-GCC10-fno-common.patch")

Here, the patch could be conditionally applied depending on the
architecture.  It would avoid to rebuild all Julia packages for x86_64.
Although, they are not broke, I guess. ;-)

Let me know or please go ahead. :-)

Cheers,
simon