unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: "Jean-Baptiste Volatier" <jbv@pm.me>,
	48325@debbugs.gnu.org, "Ludovic Courtès" <ludo@gnu.org>
Subject: [bug#48325] [PATCH v3b 4/5] julia: Update to 1.6.1: where apply upstream patches?
Date: Wed, 16 Jun 2021 07:06:11 +0200	[thread overview]
Message-ID: <86v96ejt4s.fsf@gmail.com> (raw)
In-Reply-To: <djdOO2HW2bLD84VoidLe8rKWSS--lHXWs33mAr7N3aCMG8_g0PzZOf-i15Uf4_9e70zzz5BMXnux7QqYyFJikQ==@pm.me>

Hi Jean-Baptiste,

Two comments here:

On Sun, 13 Jun 2021 at 20:54, Jean-Baptiste Volatier via Guix-patches via <guix-patches@gnu.org> wrote:

> Subject: [PATCH] DRAFT gnu: julia: Update to 1.6.1.

Usually, to ease the review, we increment the reroll count and send all
the patch set.  Otherwise, one would have to read all the thread to find
which patch is the last.

Could you send the v4 containing the 5 patches IIRC?

> * gnu/packages/julia.scm (julia): Update to 1.6.1.
> [arguments]: XXXX
> [inputs]: Add nghttp2:lib, Add gfortran:lib, Remove arpack-ng.
> [native-inputs]: Add nss-certs.
>
> Co-Authored-By: Nicolò Balzarotti <nicolo@nixo.xyz>.
> Co-Authored-By: zimoun <zimon.toutoune@gmail.com>.
> ---
>  gnu/packages/julia.scm | 353 ++++++++++++++++++++++++++++-------------
>  1 file changed, 239 insertions(+), 114 deletions(-)
>
> diff --git a/gnu/packages/julia.scm b/gnu/packages/julia.scm
> index 13c9f7baf1..9903bb009b 100644
> --- a/gnu/packages/julia.scm
> +++ b/gnu/packages/julia.scm

[...]

>  (define llvm-julia
>    (package
> -    (inherit llvm-9)
> +    (inherit llvm-11)
>      (name "llvm-julia")
> -    (source (origin
> -              (inherit (package-source llvm-9))
> -              ;; Those patches are inside the Julia source repo.
> -              ;; They are _not_ Julia specific (https://github.com/julialang/julia#llvm)
> -              ;; but they are required to build Julia.
> -              ;; Discussion: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=919628
> -              (patches
> -               (map (match-lambda
> -                      ((name hash)
> -                       (julia-patch name hash)))
> -                    (list
> -                     '("llvm-D27629-AArch64-large_model_6.0.1"
> -                       "1qrshmlqvnasdyc158vfn3hnbigqph3lsq7acb9w8lwkpnnm2j4z")

[...]

> -                     '("llvm-9.0-D85499"
> -                       "0vxlr35srvbvihlgrxq15v6dylp90vgi0qahj22j01jgqmdasjkm"))))
> -              (patch-flags '("-p1"))))
>      (arguments
> -     (substitute-keyword-arguments (package-arguments llvm-9)
> +     (substitute-keyword-arguments (package-arguments llvm-11)
>         ((#:configure-flags flags)
>          `(list ;; Taken from NixOS. Only way I could get libLLVM-6.0.so
>             "-DCMAKE_BUILD_TYPE=Release"
> @@ -177,7 +141,61 @@
>             ;; "-DLLVM_DEFAULT_TARGET_TRIPLE=${stdenv.hostPlatform.config}"
>             ;; "-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=WebAssembly"
>             "-DLLVM_ENABLE_DUMP=ON"
> -           "-DLLVM_LINK_LLVM_DYLIB=ON"))))))
> +           "-DLLVM_LINK_LLVM_DYLIB=ON"))
> +       ((#:phases phases)
> +        `(modify-phases ,phases
> +           ;; applying patches from julia
> +           ;; list of patches can be found in deps/llvm.mk in julia source
> +           (add-after 'unpack 'julia-patches
> +             (lambda* (#:key inputs outputs #:allow-other-keys)
> +               (let ((patch
> +                      (lambda (patchname flag)
> +                        (invoke "patch" flag "-i"
> +                                (string-append
> +                                 "julia-src/deps/patches/"
> +                                 patchname
> +                                 ".patch")))))
> +                 (mkdir-p "julia-src")
> +                 (invoke "tar" "xf"
> +                         (assoc-ref inputs "julia-source")
> +                         "-C" "julia-src" "--strip-components=1")
> +                 (map (lambda (patchname)
> +                        (patch patchname "-p1"))
> +                      (list "llvm-D27629-AArch64-large_model_6.0.1"

[...]

> +                            "llvm-11-D96283-dagcombine-half"))
> +                 (map (lambda (patchname)
> +                        (patch patchname "-p2"))
> +                      (list "llvm-11-AArch64-FastIsel-bug"
> +                            "llvm-11-D97435-AArch64-movaddrreg"
> +                            "llvm-11-D97571-AArch64-loh"
> +                            "llvm-11-aarch64-addrspace")))))))))
> +    (inputs
> +     `(("julia-source" ,(package-source julia))
> +       ,@(package-inputs llvm-11)))))

This modification of patch location should appear in the commit message.

As I mentioned earlier, I am not convinced it is the right place [1].  I get
your point [2] that some are applied with the option “-p1” and other
with “-p2”.  Ludo, any recommendation?

1: <http://issues.guix.gnu.org/issue/48325#3>
2: <http://issues.guix.gnu.org/issue/48325#8>


All the best,
simon

PS:
I will be offline until the end of next week (~June, 25th). 




  reply	other threads:[~2021-06-16  5:16 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-09 21:53 [bug#48325] update of julia to 1.6.1 Jean-Baptiste Volatier via Guix-patches via
2021-05-13 14:08 ` [bug#48325] [PATCH v3 0/5] DRAFT: Update " zimoun
2021-05-13 14:11   ` [bug#48325] [PATCH v3 1/5] gnu: Add utf8proc-2.6.1 zimoun
2021-05-13 14:11     ` [bug#48325] [PATCH v3 2/5] gnu: Add pcre2-10.36 zimoun
2021-05-13 14:11     ` [bug#48325] [PATCH v3 3/5] gnu: openlibm: Update to 0.7.4 zimoun
2021-05-14 18:15       ` Maxime Devos
2021-05-13 14:11     ` [bug#48325] [PATCH v3 4/5] DRAFT gnu: julia: Update to 1.6.1 zimoun
2021-05-13 14:11     ` [bug#48325] [PATCH v3 5/5] gnu: julia-benchmarktools: Update to 0.7.0 zimoun
2021-05-13 14:13   ` [bug#48325] [PATCH v3 0/5] DRAFT: Update julia to 1.6.1 Nicolò Balzarotti
2021-06-05 21:38     ` [bug#48325] update of " Ludovic Courtès
2021-06-06 21:26       ` Nicolò Balzarotti
2021-06-13 20:37         ` Jean-Baptiste Volatier via Guix-patches via
2021-06-13 20:54           ` Jean-Baptiste Volatier via Guix-patches via
2021-06-16  5:06             ` zimoun [this message]
2021-06-29 13:22               ` [bug#48325] [PATCH 0/4 v4] DRAFT gnu: julia: Update " Jean-Baptiste Volatier via Guix-patches via
2021-06-29 13:23                 ` [bug#48325] [PATCH 1/4] gnu: Add utf8proc-2.6.1 Jean-Baptiste Volatier via Guix-patches via
2021-07-01  8:18                   ` Maxime Devos
2021-06-29 13:23                 ` [bug#48325] [PATCH 2/4] gnu: Add pcre2-10.36 Jean-Baptiste Volatier via Guix-patches via
2021-06-29 13:23                 ` [bug#48325] [PATCH 3/4] gnu: openlibm: Update to 0.7.4 Jean-Baptiste Volatier via Guix-patches via
2021-07-01  8:22                   ` Maxime Devos
2021-07-03 17:41                     ` [bug#48325] [PATCH v5 0/5] DRAFT: Update julia to 1.6.1 Jean-Baptiste Volatier via Guix-patches via
2021-07-03 17:41                       ` [bug#48325] [PATCH v5 1/5] gnu: Add utf8proc-2.6.1 Jean-Baptiste Volatier via Guix-patches via
2021-07-03 17:41                       ` [bug#48325] [PATCH v5 2/5] gnu: Add pcre2-10.36 Jean-Baptiste Volatier via Guix-patches via
2021-07-03 17:41                       ` [bug#48325] [PATCH v5 3/5] gnu: openlibm: Update to 0.7.4 Jean-Baptiste Volatier via Guix-patches via
2021-07-03 17:41                       ` [bug#48325] [PATCH v5 4/5] gnu: julia-staticarrays: Update to 1.2.5 Jean-Baptiste Volatier via Guix-patches via
2021-07-03 17:41                       ` [bug#48325] [PATCH v5 5/5] DRAFT gnu: julia: Update to 1.6.1 Jean-Baptiste Volatier via Guix-patches via
2021-07-03 19:40                         ` Maxime Devos
2021-07-03 19:54                         ` Maxime Devos
2021-07-04  7:17                           ` Jean-Baptiste Volatier via Guix-patches via
2021-07-04 11:43                             ` Maxime Devos
2021-07-04 17:47                               ` Jean-Baptiste Volatier via Guix-patches via
2021-07-04 21:01                                 ` Maxime Devos
2021-07-09 16:12                         ` Efraim Flashner
2021-06-29 13:23                 ` [bug#48325] [PATCH 4/4] " Jean-Baptiste Volatier via Guix-patches via
2021-06-16  4:52           ` [bug#48325] update of julia " zimoun
2021-05-23 20:30   ` [bug#48325] [PATCH v3 0/5] DRAFT: Update " Jean-Baptiste Volatier via Guix-patches via
2021-08-04  8:07 ` bug#48325: update of " Efraim Flashner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86v96ejt4s.fsf@gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=48325@debbugs.gnu.org \
    --cc=jbv@pm.me \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).