[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/49: gnu: julia-tracker: Patch for julia-1.6.
From: |
guix-commits |
Subject: |
01/49: gnu: julia-tracker: Patch for julia-1.6. |
Date: |
Thu, 29 Jul 2021 07:46:17 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit 7975a64b6d93370ec99cf2d0131b4764d2705e61
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Thu Jul 29 08:59:16 2021 +0300
gnu: julia-tracker: Patch for julia-1.6.
* gnu/packages/julia-xyz.scm (julia-tracker)[source]: Add patch.
* gnu/packages/patches/julia-tracker-16-compat.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.
---
gnu/local.mk | 1 +
gnu/packages/julia-xyz.scm | 4 ++-
gnu/packages/patches/julia-tracker-16-compat.patch | 40 ++++++++++++++++++++++
3 files changed, 44 insertions(+), 1 deletion(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index b944c67..c80a9af 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1289,6 +1289,7 @@ dist_patch_DATA =
\
%D%/packages/patches/jfsutils-include-systypes.patch \
%D%/packages/patches/jsoncpp-fix-inverted-case.patch \
%D%/packages/patches/julia-SOURCE_DATE_EPOCH-mtime.patch \
+ %D%/packages/patches/julia-tracker-16-compat.patch \
%D%/packages/patches/kdbusaddons-kinit-file-name.patch \
%D%/packages/patches/libblockdev-glib-compat.patch \
%D%/packages/patches/libffi-3.3-powerpc-fixes.patch \
diff --git a/gnu/packages/julia-xyz.scm b/gnu/packages/julia-xyz.scm
index 0a45204..6206109 100644
--- a/gnu/packages/julia-xyz.scm
+++ b/gnu/packages/julia-xyz.scm
@@ -21,6 +21,7 @@
(define-module (gnu packages julia-xyz)
#:use-module ((guix licenses) #:prefix license:)
+ #:use-module (gnu packages)
#:use-module (guix packages)
#:use-module (guix git-download)
#:use-module (guix build-system julia)
@@ -3938,7 +3939,8 @@ package.")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "1s4mdywbp7nli7z985fqaj1rs4i6d92b1jx3lhg0qhk1s5wc0v8j"))))
+ (base32 "1s4mdywbp7nli7z985fqaj1rs4i6d92b1jx3lhg0qhk1s5wc0v8j"))
+ (patches (search-patches "julia-tracker-16-compat.patch"))))
(build-system julia-build-system)
(propagated-inputs
`(("julia-adapt" ,julia-adapt)
diff --git a/gnu/packages/patches/julia-tracker-16-compat.patch
b/gnu/packages/patches/julia-tracker-16-compat.patch
new file mode 100644
index 0000000..4fff423
--- /dev/null
+++ b/gnu/packages/patches/julia-tracker-16-compat.patch
@@ -0,0 +1,40 @@
+https://github.com/FluxML/Tracker.jl/commit/f6550ba38a9ea5802e2de4fa9c939929ba711f0d.patch
+from an upstream pull request
+https://github.com/FluxML/Tracker.jl/pull/94
+
+
+From f6550ba38a9ea5802e2de4fa9c939929ba711f0d Mon Sep 17 00:00:00 2001
+From: Michael Abbott <me@escbook>
+Date: Wed, 3 Feb 2021 22:58:33 +0100
+Subject: [PATCH] two fixes for 1.6
+
+---
+ src/lib/array.jl | 2 +-
+ src/lib/real.jl | 1 +
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/src/lib/array.jl b/src/lib/array.jl
+index 92f2b39..f8cbbac 100644
+--- a/src/lib/array.jl
++++ b/src/lib/array.jl
+@@ -298,7 +298,7 @@ Base.reverse(xs::TrackedArray; dims) = track(reverse, xs,
dims = dims)
+ @grad reverse(xs; dims) = reverse(data(xs), dims = dims), Δ -> (reverse(Δ,
dims = dims), nothing)
+ Base.reverse(xs::TrackedVector) = track(reverse, xs)
+ @grad reverse(xs::TrackedVector) = reverse(data(xs)), Δ -> (reverse(Δ),)
+-Base.reverse(xs::TrackedVector, start, stop) = track(reverse, xs, start, stop)
++Base.reverse(xs::TrackedVector, start::Integer, stop::Integer) =
track(reverse, xs, start, stop)
+ @grad reverse(xs, start, stop) = reverse(data(xs), start, stop), Δ ->
(reverse(Δ, start, stop), nothing, nothing)
+
+ function _kron(mat1::AbstractMatrix,mat2::AbstractMatrix)
+diff --git a/src/lib/real.jl b/src/lib/real.jl
+index 737afd8..e1975ac 100644
+--- a/src/lib/real.jl
++++ b/src/lib/real.jl
+@@ -55,6 +55,7 @@ for f in :[isinf, isnan, isfinite].args
+ end
+
+ Printf.fix_dec(x::TrackedReal, n::Int, a...) = Printf.fix_dec(data(x), n,
a...)
++Printf.tofloat(x::TrackedReal) = Printf.tofloat(data(x))
+
+ Base.float(x::TrackedReal) = x
+
- branch master updated (74dad2c -> 4707ab2), guix-commits, 2021/07/29
- 02/49: gnu: julia-nnlib: Update to 0.7.25., guix-commits, 2021/07/29
- 03/49: gnu: julia-rotations: Update to 1.0.2-1.b599102., guix-commits, 2021/07/29
- 07/49: gnu: julia-chainrulescore: Update to 1.0.2., guix-commits, 2021/07/29
- 08/49: gnu: julia-chainrulestestutils: Update to 1.0.0., guix-commits, 2021/07/29
- 01/49: gnu: julia-tracker: Patch for julia-1.6.,
guix-commits <=
- 10/49: gnu: julia-staticarrays: Update to 1.2.8., guix-commits, 2021/07/29
- 12/49: gnu: julia-unitful: Update to 1.9.0., guix-commits, 2021/07/29
- 05/49: gnu: julia-specialfunctions: Update to 1.6.0., guix-commits, 2021/07/29
- 11/49: gnu: julia-tables: Update to 1.4.4., guix-commits, 2021/07/29
- 18/49: gnu: julia-arrayinterface: Update to 3.1.19., guix-commits, 2021/07/29
- 19/49: gnu: julia-arraylayouts: Update to 0.7.3., guix-commits, 2021/07/29
- 22/49: gnu: julia-benchmarktools: Update to 1.1.1., guix-commits, 2021/07/29
- 06/49: gnu: julia-chainrules: Update to 1.1.0., guix-commits, 2021/07/29
- 13/49: gnu: julia-zygote: Update to 0.6.17., guix-commits, 2021/07/29
- 16/49: gnu: julia-recursivearraytools: Update to 2.16.1., guix-commits, 2021/07/29