diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2022-05-31 15:15:34 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2022-05-31 15:18:22 +0200 |
commit | 3d5144db5a8ee87fd75693d68c0ed0f84a7d4d20 (patch) | |
tree | 0583901319c76be98dc4e366879e1ba256c91dc1 /gnu/packages/cran.scm | |
parent | 098d0012f56b7eb654a0e8412d5030584b163c12 (diff) | |
download | guix-3d5144db5a8ee87fd75693d68c0ed0f84a7d4d20.tar.gz guix-3d5144db5a8ee87fd75693d68c0ed0f84a7d4d20.zip |
gnu: r-haven: Fix build.
* gnu/packages/cran.scm (r-haven)[arguments]: Adjust 'unbundle-readstat phase.
Reported-by: Jonas Freimuth.
Diffstat (limited to 'gnu/packages/cran.scm')
-rw-r--r-- | gnu/packages/cran.scm | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index 2bbb3f6a15..26e3e0e87a 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -3493,9 +3493,12 @@ including functions for geolocation and routing.") (modify-phases %standard-phases (add-after 'unpack 'unbundle-readstat (lambda _ - ;; Not required, since we’re not building readstat. - (substitute* "src/Makevars" - (("-lz") "-lreadstat"))))))) + ;; We’re not building readstat. + (substitute* "configure" + (("exit 1") "")) ;don't be so dramatic! + (substitute* '("src/Makevars.in" + "configure") + (("^PKG_LIBS=.*") "PKG_LIBS=\"-lreadstat\"\n"))))))) (inputs (list readstat)) (native-inputs |