unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob d5d7149a6754f972398616f69f94cf5dcde4122c 1326 bytes (raw)
name: packages/patches/ruby-anystyle-data-immutable-install.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
 
From a6f5b37cd22daa6069d8fbef8cba9dc60a6731f6 Mon Sep 17 00:00:00 2001
From: Philip McGrath <philip@philipmcgrath.com>
Date: Sun, 24 Jul 2022 23:54:19 -0400
Subject: [PATCH] `AnyStyle::Data.setup()`: adjust for immutable install

Don't override the default paths for `Dictionary::Marshal`,
`Dictionary::GDBM`, and `Dictionary:LDBM` to point to this gem: we can't
populate such files without the 'anystyle' gem (which depends on this
one), and we won't be able to write to the directory where this gem is
installed later, so the files will never exist at those locations.
---
 lib/anystyle/data/setup.rb | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/lib/anystyle/data/setup.rb b/lib/anystyle/data/setup.rb
index 17efdf8..08246fa 100644
--- a/lib/anystyle/data/setup.rb
+++ b/lib/anystyle/data/setup.rb
@@ -4,18 +4,6 @@ module AnyStyle
 
     def self.setup
       Dictionary.defaults[:source] = File.join(ROOT, 'dict.txt.gz')
-
-      if defined? Dictionary::Marshal
-        Dictionary::Marshal.defaults[:path] = File.join(ROOT, 'dict.marshal')
-      end
-
-      if defined? Dictionary::GDBM
-        Dictionary::GDBM.defaults[:path] = File.join(ROOT, 'dict.db')
-      end
-
-      if defined? Dictionary::LDBM
-        Dictionary::LDBM.defaults[:path] = ROOT
-      end
     end
   end
 end
-- 
2.32.0


debug log:

solving d5d7149a6754f972398616f69f94cf5dcde4122c ...
found d5d7149a6754f972398616f69f94cf5dcde4122c in https://git.savannah.gnu.org/cgit/guix.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

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