unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#60658] update guile version for guile-aa-tree and fix install.
@ 2023-01-08 14:12 Nicolas Graves via Guix-patches via
  2023-01-08 16:03 ` [bug#60658] [PATCH 1/3] gnu: guile-aa-tree: Restrict install to aa-tree.scm Nicolas Graves via Guix-patches via
  2023-01-12 22:21 ` bug#60658: update guile version for guile-aa-tree and fix install Ludovic Courtès
  0 siblings, 2 replies; 5+ messages in thread
From: Nicolas Graves via Guix-patches via @ 2023-01-08 14:12 UTC (permalink / raw)
  To: 60658


Hi guix!

Small patch series to update guile-aa-tree guiel version and properly
install only the right scheme file (i.e. removing the test file from
install).

-- 
Best regards,
Nicolas Graves




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#60658] [PATCH 1/3] gnu: guile-aa-tree: Restrict install to aa-tree.scm.
  2023-01-08 14:12 [bug#60658] update guile version for guile-aa-tree and fix install Nicolas Graves via Guix-patches via
@ 2023-01-08 16:03 ` Nicolas Graves via Guix-patches via
  2023-01-08 16:03   ` [bug#60658] [PATCH 2/3] gnu: guile-aa-tree: Format origin Nicolas Graves via Guix-patches via
  2023-01-08 16:03   ` [bug#60658] [PATCH 3/3] gnu: guile-aa-tree: Update Guile version to 3.0 Nicolas Graves via Guix-patches via
  2023-01-12 22:21 ` bug#60658: update guile version for guile-aa-tree and fix install Ludovic Courtès
  1 sibling, 2 replies; 5+ messages in thread
From: Nicolas Graves via Guix-patches via @ 2023-01-08 16:03 UTC (permalink / raw)
  To: 60658; +Cc: ngraves

* gnu/packages/guile-xyz.scm (guile-aa-tree):
  [native-inputs]: Remove guile-2.2.
  [inputs]: Add guile-2.2.
  [arguments]: (scheme-file-regexp): Restrict install to aa-tree.scm
  [arguments]: (phases): Add check phase.
---
 gnu/packages/guile-xyz.scm | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index 2dd5a520d1..68150c89d0 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -1261,7 +1261,23 @@ (define-public guile-aa-tree
                (base32
                 "0044c105r3q9vpl17pv3phl1b79kjm1llhkakqgiasixyav01blh"))))
     (build-system guile-build-system)
-    (native-inputs (list guile-2.2))
+    (inputs (list guile-2.2))
+    (arguments
+     (list
+      #:scheme-file-regexp "^aa-tree\\.scm"
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'install-documentation 'check
+            (lambda* (#:key inputs #:allow-other-keys)
+              (let* ((guile      #$(this-package-input "guile"))
+                     (effective  (target-guile-effective-version guile))
+                     (go-dir     (string-append #$output "/lib/guile/"
+                                                effective "/site-ccache/")))
+                (invoke (search-input-file inputs "/bin/guile")
+                        "--no-auto-compile"
+                        "-C" go-dir
+                        "-c" (string-append
+                              "(load \"" (getcwd) "/test-aa-tree.scm\")"))))))))
     ;; https://savannah.nongnu.org/projects/guile-aa-tree
     (home-page "https://qlfiles.net/guile-aa-tree/")
     (synopsis "AA tree data structure for Guile")
-- 
2.38.1





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#60658] [PATCH 2/3] gnu: guile-aa-tree: Format origin.
  2023-01-08 16:03 ` [bug#60658] [PATCH 1/3] gnu: guile-aa-tree: Restrict install to aa-tree.scm Nicolas Graves via Guix-patches via
@ 2023-01-08 16:03   ` Nicolas Graves via Guix-patches via
  2023-01-08 16:03   ` [bug#60658] [PATCH 3/3] gnu: guile-aa-tree: Update Guile version to 3.0 Nicolas Graves via Guix-patches via
  1 sibling, 0 replies; 5+ messages in thread
From: Nicolas Graves via Guix-patches via @ 2023-01-08 16:03 UTC (permalink / raw)
  To: 60658; +Cc: ngraves

* gnu/packages/guile-xyz.scm (guile-aa-tree): Format origin.
---
 gnu/packages/guile-xyz.scm | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index 68150c89d0..f5969dfe19 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -1253,13 +1253,13 @@ (define-public guile-aa-tree
   (package
     (name "guile-aa-tree")
     (version "3.1.1")
-    (source (origin
-              (method url-fetch)
-              (uri (string-append "mirror://savannah/guile-aa-tree/guile-aa-tree-"
-                                  version ".tar.gz"))
-              (sha256
-               (base32
-                "0044c105r3q9vpl17pv3phl1b79kjm1llhkakqgiasixyav01blh"))))
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "mirror://savannah/guile-aa-tree/guile-aa-tree-"
+                           version ".tar.gz"))
+       (sha256
+        (base32 "0044c105r3q9vpl17pv3phl1b79kjm1llhkakqgiasixyav01blh"))))
     (build-system guile-build-system)
     (inputs (list guile-2.2))
     (arguments
-- 
2.38.1





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#60658] [PATCH 3/3] gnu: guile-aa-tree: Update Guile version to 3.0 .
  2023-01-08 16:03 ` [bug#60658] [PATCH 1/3] gnu: guile-aa-tree: Restrict install to aa-tree.scm Nicolas Graves via Guix-patches via
  2023-01-08 16:03   ` [bug#60658] [PATCH 2/3] gnu: guile-aa-tree: Format origin Nicolas Graves via Guix-patches via
@ 2023-01-08 16:03   ` Nicolas Graves via Guix-patches via
  1 sibling, 0 replies; 5+ messages in thread
From: Nicolas Graves via Guix-patches via @ 2023-01-08 16:03 UTC (permalink / raw)
  To: 60658; +Cc: ngraves

* gnu/packages/guile-xyz.scm (guile-aa-tree): Update Guile version to 3.0.
---
 gnu/packages/guile-xyz.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index f5969dfe19..ea05fd932c 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -1261,7 +1261,7 @@ (define-public guile-aa-tree
        (sha256
         (base32 "0044c105r3q9vpl17pv3phl1b79kjm1llhkakqgiasixyav01blh"))))
     (build-system guile-build-system)
-    (inputs (list guile-2.2))
+    (inputs (list guile-3.0))
     (arguments
      (list
       #:scheme-file-regexp "^aa-tree\\.scm"
-- 
2.38.1





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* bug#60658: update guile version for guile-aa-tree and fix install.
  2023-01-08 14:12 [bug#60658] update guile version for guile-aa-tree and fix install Nicolas Graves via Guix-patches via
  2023-01-08 16:03 ` [bug#60658] [PATCH 1/3] gnu: guile-aa-tree: Restrict install to aa-tree.scm Nicolas Graves via Guix-patches via
@ 2023-01-12 22:21 ` Ludovic Courtès
  1 sibling, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2023-01-12 22:21 UTC (permalink / raw)
  To: Nicolas Graves; +Cc: 60658-done

Hi,

Nicolas Graves <ngraves@ngraves.fr> skribis:

> Small patch series to update guile-aa-tree guiel version and properly
> install only the right scheme file (i.e. removing the test file from
> install).

Applied, except for the ‘origin’ reindentation since ‘guix style’ would
keep it as it was (which some don’t like it seems, but hey).

Thanks,
Ludo’.




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-01-12 22:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-08 14:12 [bug#60658] update guile version for guile-aa-tree and fix install Nicolas Graves via Guix-patches via
2023-01-08 16:03 ` [bug#60658] [PATCH 1/3] gnu: guile-aa-tree: Restrict install to aa-tree.scm Nicolas Graves via Guix-patches via
2023-01-08 16:03   ` [bug#60658] [PATCH 2/3] gnu: guile-aa-tree: Format origin Nicolas Graves via Guix-patches via
2023-01-08 16:03   ` [bug#60658] [PATCH 3/3] gnu: guile-aa-tree: Update Guile version to 3.0 Nicolas Graves via Guix-patches via
2023-01-12 22:21 ` bug#60658: update guile version for guile-aa-tree and fix install Ludovic Courtès

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).