summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2022-05-31 15:15:34 +0200
committerRicardo Wurmus <rekado@elephly.net>2022-05-31 15:18:22 +0200
commit3d5144db5a8ee87fd75693d68c0ed0f84a7d4d20 (patch)
tree0583901319c76be98dc4e366879e1ba256c91dc1
parent098d0012f56b7eb654a0e8412d5030584b163c12 (diff)
gnu: r-haven: Fix build.
* gnu/packages/cran.scm (r-haven)[arguments]: Adjust 'unbundle-readstat phase. Reported-by: Jonas Freimuth.
-rw-r--r--gnu/packages/cran.scm9
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