diff options
| author | Pjotr <wrk@bosa.lan> | 2026-11-14 16:58:59 +0000 |
|---|---|---|
| committer | Pjotr <wrk@bosa.lan> | 2026-11-14 16:58:59 +0000 |
| commit | 4d0585eee6981259c56ea15c8da92148be3ca14a (patch) | |
| tree | eb34825727e44920b7f873ff45c4dcc1e8659499 | |
| parent | cb49bcb711f1cc159ef0ac32e3a57dd5ed2fca11 (diff) | |
| download | guix-bioinformatics-4d0585eee6981259c56ea15c8da92148be3ca14a.tar.gz | |
gemma-wrapper: 156939f, and a substitution that keeps its newlines
Pins revision 5, which adds --gemma-dir DIR / GEMMA_DIR: the directory that
holds gemma and the helpers the wrapper shells out to (time, tar, parallel,
and the PATH that tar's xz child gets) is named once instead of being
arranged as a PATH. Without it the failure arrives as
"No such file or directory - time (Errno::ENOENT)" deep inside
Open3.popen_run, or "env: 'tar': No such file or directory" from a shell --
both measured in the GN4AI container, where gemma-wrapper now lives in a
profile of its own rather than in the container's package list.
set-gemma-path's substitute pattern was `gemma_command = ENV.*`, which ate
the newline after the match. That was invisible while the line ended at
ENV['GEMMA_COMMAND'], and fatal the moment it gained a tail: the replacement
then glued the next line onto itself and Ruby refused the file
("unexpected local variable or method, expecting end-of-input"). The pattern
is now `gemma_command = ENV\['GEMMA_COMMAND'\]\[^\n]*`, which stops at the
newline whatever the tail becomes.
Built with its own `rake test` check phase green -- the LOCO pipeline and
the cache-hit assertions that gate this package.
| -rw-r--r-- | gn/packages/gemma.scm | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/gn/packages/gemma.scm b/gn/packages/gemma.scm index 502ecd1..58dd1ef 100644 --- a/gn/packages/gemma.scm +++ b/gn/packages/gemma.scm @@ -149,8 +149,18 @@ genome-wide association studies (GWAS).") ;; 5eb53fa copies each run's .log.txt beside the archive: the logs were ;; only inside the .tar.xz, so reading `pve estimate` meant unpacking a ;; multi-megabyte archive to see four lines. - (let ((commit "5eb53fa3732e6b0c1854102df258d8db5cf32b38") - (revision "4")) + ;; 156939f adds --gemma-dir DIR / GEMMA_DIR: the directory that holds + ;; gemma *and* the helpers the wrapper shells out to (time, tar, + ;; parallel, and the PATH tar's xz child gets) is named once instead of + ;; being arranged as a PATH. That is what a container or a profile + ;; needs -- without it the failure surfaces as + ;; "No such file or directory - time (Errno::ENOENT)" inside + ;; Open3.popen_run, or "env: 'tar': No such file or directory" from a + ;; shell. GNU time is optional now (warn and run untimed), a missing + ;; tar names the directories searched, and --help exits before gemma is + ;; invoked, so naming the toolchain does not require one. + (let ((commit "156939f2cf1f4e3e30051b4ae4b5265c8b5d58e4") + (revision "5")) (package (name "gemma-wrapper") (version (git-version "1.00-pre1" revision commit)) @@ -162,7 +172,7 @@ genome-wide association studies (GWAS).") (commit commit))) (file-name (git-file-name name version)) (sha256 - (base32 "15b351p3cv7j7y5r2n97wwhqhagh3418d1399vnp22l50fgd4nvb")))) + (base32 "0hm3fkn7v6q29jj8jb9ck0dqxknlnaainws77cd0z723wa9d9gd8")))) (build-system ruby-build-system) (native-inputs (list ruby-rake)) (propagated-inputs @@ -193,7 +203,11 @@ genome-wide association studies (GWAS).") (add-before 'build 'set-gemma-path (lambda _ (substitute* "bin/gemma-wrapper" - (("gemma_command = ENV.*") + ;; [^\n] rather than .* : the old pattern swallowed the + ;; newline too, so once gemma_command gained a tail + ;; (156939f: `|| find_tool(...)`) the following line was + ;; glued onto the replacement and Ruby refused the file. + (("gemma_command = ENV\\['GEMMA_COMMAND'\\][^\n]*") (string-append "gemma_command = '" #$(file-append gemma-gn2 "/bin/gemma") "'")) |
