* [bug#75075] [PATCH] gnu: Add julia-precompiletools.
@ 2024-12-24 23:41 King, Spencer via Guix-patches via
2025-01-06 17:02 ` Simon Tournier
0 siblings, 1 reply; 2+ messages in thread
From: King, Spencer via Guix-patches via @ 2024-12-24 23:41 UTC (permalink / raw)
To: 75075
[-- Attachment #1: Type: text/plain, Size: 0 bytes --]
[-- Attachment #2: 0001-gnu-Add-julia-precompiletools.patch --]
[-- Type: application/octet-stream, Size: 2009 bytes --]
From e819bf8e5451572e52e6dede77a72df5321041f0 Mon Sep 17 00:00:00 2001
Message-Id: <e819bf8e5451572e52e6dede77a72df5321041f0.1735083570.git.spencer.king@geneoscopy.com>
From: Spencer King <spencer.king@geneoscopy.com>
Date: Tue, 24 Dec 2024 23:39:09 +0000
Subject: [PATCH] gnu: Add julia-precompiletools.
* gnu/packages/julia-xyz.scm (julia-precompiletools): New variable.
Change-Id: Id5adc9a28c8985bddf51261a2385b7168ffe8b4e
---
gnu/packages/julia-xyz.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/julia-xyz.scm b/gnu/packages/julia-xyz.scm
index 4b778812ca..c55549cfbb 100644
--- a/gnu/packages/julia-xyz.scm
+++ b/gnu/packages/julia-xyz.scm
@@ -5051,6 +5051,34 @@ (define-public julia-positivefactorizations
definite.")
(license license:expat)))
+(define-public julia-precompiletools
+ (package
+ (name "julia-precompiletools")
+ (version "1.2.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/JuliaLang/PrecompileTools.jl")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "07b69gmgs3zxs86l9g9dymv3sfgncm8sl86sp0ck6xf5ly10phiy"))))
+ (build-system julia-build-system)
+ ;; Tests try to download other repositories
+ ;; Tests try to install "fake" packages
+ (arguments
+ (list
+ #:tests? #f))
+ (propagated-inputs (list julia-preferences))
+ (home-page "https://github.com/JuliaLang/PrecompileTools.jl")
+ (synopsis "Reduce time-to-first-execution of Julia code")
+ (description
+ "This package allows you to reduce the latency of the first
+execution of Julia code. It is applicable to both package developers and
+end users in their personal workflows.")
+ (license license:expat)))
+
(define-public julia-preferences
(package
(name "julia-preferences")
base-commit: eb6d784852dfcade2f5052c4d6fc1bd469f3cdb6
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [bug#75075] [PATCH] gnu: Add julia-precompiletools.
2024-12-24 23:41 [bug#75075] [PATCH] gnu: Add julia-precompiletools King, Spencer via Guix-patches via
@ 2025-01-06 17:02 ` Simon Tournier
0 siblings, 0 replies; 2+ messages in thread
From: Simon Tournier @ 2025-01-06 17:02 UTC (permalink / raw)
To: King, Spencer; +Cc: Ludovic Courtès, Sharlatan Hellseher, 75075
Hi,
On Tue, 24 Dec 2024 at 23:41, "King, Spencer" <spencer.king@wustl.edu> wrote:
> + (build-system julia-build-system)
> + ;; Tests try to download other repositories
> + ;; Tests try to install "fake" packages
> + (arguments
> + (list
> + #:tests? #f))
I think this is incorrect. The error is about:
--8<---------------cut here---------------start------------->8---
┌ Error: Error during package callback
│ exception =
│ 1-element ExceptionStack:
│ On worker 2:
│ ArgumentError: Package PC_A [13c4d82c-fea6-47db-9cd5-35bd2686c3b0] is required but does not seem to be installed:
│ - Run `Pkg.instantiate()` to install all recorded dependencies.
--8<---------------cut here---------------end--------------->8---
Coming from the call ’using PC_A’ in the file test/runtests.jl of the
test suite of the package PrecompileTools itself.
Well, the core issue seems that PrecompileTools requires Julia 1.9 and
the current version packaged by Guix is 1.8.3.
In other words, julia-build-system needs to be adjusted [2].
Cheers,
simon
PS: Please note the patch was also part of the series #75015 [1] with
the comment:
> + (build-system julia-build-system)
> + (arguments
> + (list
> + ;; Tets fail with error: caused by: GitError(Code:ERROR, Class:SSL,
> + ;; OpenSSL error: failed to load certificates: error:80000002:system
> + ;; library::No such file or directory).
> + #:tests? #f))
1: [bug#75015] [PATCH 03/38] gnu: Add julia-precompiletools.
Sharlatan Hellseher <sharlatanus@gmail.com>
Sat, 21 Dec 2024 20:22:23 +0000
id:680887b99e74c6c17cc53379e9030cf42d560887.1734811274.git.sharlatanus@gmail.com
https://issues.guix.gnu.org/75015
https://issues.guix.gnu.org/msgid/680887b99e74c6c17cc53379e9030cf42d560887.1734811274.git.sharlatanus@gmail.com
https://yhetil.org/guix/680887b99e74c6c17cc53379e9030cf42d560887.1734811274.git.sharlatanus@gmail.com
2: [bug#73197] [PATCH] gnu: julia: Update to 1.9.3.
Simon Tournier <zimon.toutoune@gmail.com>
Mon, 06 Jan 2025 16:43:23 +0100
id:87frlw3q3o.fsf@gmail.com
https://issues.guix.gnu.org/73197
https://issues.guix.gnu.org/msgid/87frlw3q3o.fsf@gmail.com
https://yhetil.org/guix/87frlw3q3o.fsf@gmail.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-01-06 17:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-24 23:41 [bug#75075] [PATCH] gnu: Add julia-precompiletools King, Spencer via Guix-patches via
2025-01-06 17:02 ` Simon Tournier
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).