GNU bug report logs -
#47355
ekho use new method to fix datadir
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
qblade <qblade <at> protonmail.com> writes:
> I discussed with the developers of this project. It is not recommended
> to use environment variables to specify the datadir, so I switched to
> hard-coded paths.
Hello, I see that while the environment variable EKHO_DATA_PATH is
working fine, hard-coded it may be better. Also there is a
`-DEKHO_DATA_PATH='"$(datadir)/ekho-data"'` in its Makefile.am, which
should work out-of-the-box without any flags, envs or patching, but it
doesn't... I'll raise an issue on ekho later for this.
In the meanwhile, we can use this, which is a little better than
patching:
[ekho.diff (text/x-patch, inline)]
diff --git a/gnu/packages/speech.scm b/gnu/packages/speech.scm
index cbc46b32b4..10a4f3fa76 100644
--- a/gnu/packages/speech.scm
+++ b/gnu/packages/speech.scm
@@ -579,10 +579,12 @@ control.")
("libsndfile" ,libsndfile)
("pulseaudio" ,pulseaudio)))
(build-system gnu-build-system)
- (native-search-paths
- (list (search-path-specification
- (variable "EKHO_DATA_PATH")
- (files '("share/ekho-data")))))
+ (arguments
+ '(#:configure-flags
+ (let* ((datadir (string-append (assoc-ref %outputs "out") "/share"))
+ (ekhodatadir (string-append datadir "/ekho-data")))
+ (list (simple-format #f "CXXFLAGS=-DEKHO_DATA_PATH='\"~a\"'"
+ ekhodatadir)))))
(home-page "https://eguidedog.net/ekho.php")
(synopsis "Chinese text-to-speech software")
(description
[Message part 3 (text/plain, inline)]
What do you think? Thanks!
This bug report was last modified 3 years and 251 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.