unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#35518] gnu: guile-pfds bugfix
@ 2019-05-01  0:52 amirouche
  2019-05-01  3:42 ` [bug#35518] (no subject) amirouche
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: amirouche @ 2019-05-01  0:52 UTC (permalink / raw)
  To: 35518

[-- Attachment #1: Type: text/plain, Size: 38 bytes --]

I am not sure how to handle this case.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-guile-pfds-bugfix.patch --]
[-- Type: text/x-diff; name=0001-gnu-guile-pfds-bugfix.patch, Size: 2477 bytes --]

From 9f3ed8f52957c61bd05da50b02e3a43a976facc3 Mon Sep 17 00:00:00 2001
From: Amirouche <amirouche+dev@hyper.dev>
Date: Wed, 1 May 2019 02:47:10 +0200
Subject: [PATCH] gnu: guile-pfds bugfix

* gnu/packages/guile-xyz.scm (guile-pfds)[source]: Add patch.
* gnu/packages/patches/guile-pfds-typofix.patch: Add it.
---
 gnu/packages/guile-xyz.scm                    |  6 +++--
 gnu/packages/patches/guile-pfds-typofix.patch | 25 +++++++++++++++++++
 2 files changed, 29 insertions(+), 2 deletions(-)
 create mode 100644 gnu/packages/patches/guile-pfds-typofix.patch

diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index d7866719b4..efdcd0fc11 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -626,7 +626,7 @@ using Guile's foreign function interface.")
 (define-public guile-pfds
   (package
     (name "guile-pfds")
-    (version "0.3")
+    (version "0.3.1")
     (home-page "https://github.com/ijp/pfds")
     (source (origin
               (method git-fetch)
@@ -636,7 +636,9 @@ using Guile's foreign function interface.")
               (sha256
                (base32
                 "19y33wg94pf0n98dkfqd1zbw93fgky4sawxsxl6s3vyqwl0yi5vh"))
-              (file-name (string-append name "-" version "-checkout"))))
+              (file-name (string-append name "-" version "-checkout"))
+              (patches
+               (search-patches "guile-pfds-typofix.patch"))))
     (build-system guile-build-system)
     (arguments
      '(#:source-directory "src"
diff --git a/gnu/packages/patches/guile-pfds-typofix.patch b/gnu/packages/patches/guile-pfds-typofix.patch
new file mode 100644
index 0000000000..05fdc46e2b
--- /dev/null
+++ b/gnu/packages/patches/guile-pfds-typofix.patch
@@ -0,0 +1,25 @@
+From 0825c9daa90e1f0517bfe98e465fb5d54ab394ac Mon Sep 17 00:00:00 2001
+From: Amirouche <amirouche+dev@hyper.dev>
+Date: Wed, 1 May 2019 01:11:51 +0200
+Subject: [PATCH] hamts: typofix s/vector/trie/
+
+---
+ hamts.sls | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/hamts.sls b/hamts.sls
+index 8746141..a5310d2 100644
+--- a/hamts.sls
++++ b/hamts.sls
+@@ -307,7 +307,7 @@
+ 
+ (define (fold combine initial vector)
+   (define (handle-subtrie trie accum)
+-    (vector-fold dispatch accum (subtrie-vector vector)))
++    (vector-fold dispatch accum (subtrie-vector trie)))
+ 
+   (define (handle-leaf leaf accum)
+     (combine (leaf-key leaf) (leaf-value leaf) accum))
+-- 
+2.19.1
+
-- 
2.19.1


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

end of thread, other threads:[~2021-07-14  2:44 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-01  0:52 [bug#35518] gnu: guile-pfds bugfix amirouche
2019-05-01  3:42 ` [bug#35518] (no subject) amirouche
2019-05-06 11:09   ` Ricardo Wurmus
2019-05-06 12:42     ` [bug#35518] [PATCH] fix guile-pfds bug amirouche
2019-05-06 13:10       ` Ricardo Wurmus
2021-07-14  2:43       ` bug#35518: gnu: guile-pfds bugfix Maxim Cournoyer
2019-05-01  6:20 ` [bug#35518] " Ricardo Wurmus
2019-05-01 10:58   ` amirouche
2019-05-01 11:46   ` amirouche
2019-05-06  8:05     ` Ludovic Courtès
2019-05-06  8:05     ` Ludovic Courtès
2019-06-26  1:47 ` [bug#35518] upstream unresponsive Amirouche
2020-06-06  3:33 ` [bug#35518] guile-pfds hamts fix Jack Hill

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