projects/guix·blob java-team · refs

40 lines · 1.3 KiB

1From a6f5b37cd22daa6069d8fbef8cba9dc60a6731f6 Mon Sep 17 00:00:00 2001
2From: Philip McGrath <[email protected]>
3Date: Sun, 24 Jul 2022 23:54:19 -0400
4Subject: [PATCH] `AnyStyle::Data.setup()`: adjust for immutable install
5
6Don't override the default paths for `Dictionary::Marshal`,
7`Dictionary::GDBM`, and `Dictionary:LDBM` to point to this gem: we can't
8populate such files without the 'anystyle' gem (which depends on this
9one), and we won't be able to write to the directory where this gem is
10installed later, so the files will never exist at those locations.
11---
12 lib/anystyle/data/setup.rb | 12 ------------
13 1 file changed, 12 deletions(-)
14
15diff --git a/lib/anystyle/data/setup.rb b/lib/anystyle/data/setup.rb
16index 17efdf8..08246fa 100644
17--- a/lib/anystyle/data/setup.rb
18+++ b/lib/anystyle/data/setup.rb
19@@ -4,18 +4,6 @@ module AnyStyle
20
21 def self.setup
22 Dictionary.defaults[:source] = File.join(ROOT, 'dict.txt.gz')
23-
24- if defined? Dictionary::Marshal
25- Dictionary::Marshal.defaults[:path] = File.join(ROOT, 'dict.marshal')
26- end
27-
28- if defined? Dictionary::GDBM
29- Dictionary::GDBM.defaults[:path] = File.join(ROOT, 'dict.db')
30- end
31-
32- if defined? Dictionary::LDBM
33- Dictionary::LDBM.defaults[:path] = ROOT
34- end
35 end
36 end
37 end
38--
392.32.0
40