summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Elsing <david.elsing@posteo.net>2025-07-29 16:19:32 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-07-31 23:19:34 +0100
commitd8d9e51a1f65c47502b73f557e28941ceeae11b2 (patch)
tree49d116afeaf8a134c8983c12256f511c00fb4996
parentc3e59b2ffa89574e1100f2e260074617b4d2ec7f (diff)
gnu: freesasa: Fix build with newer gemmi.
* gnu/packages/chemistry.scm (freesasa)[arguments]: Add 'fix-new-gemmi phase. Change-Id: I78997047eba8245a2d275af5ab18d0d0fe48630f Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
-rw-r--r--gnu/packages/chemistry.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/packages/chemistry.scm b/gnu/packages/chemistry.scm
index f70434b232..9ee7280407 100644
--- a/gnu/packages/chemistry.scm
+++ b/gnu/packages/chemistry.scm
@@ -1136,6 +1136,12 @@ It can be used for working with
(string-append "AM_PROG_LIBTOOL\n" inst)))
(substitute* "tests/Makefile.am"
(("libfreesasa\\.a") "libfreesasa.la"))))
+ (add-after 'unpack 'fix-new-gemmi
+ (lambda _
+ (substitute* "src/cif.cc"
+ (("models\\[i\\]\\.name")
+ "std::to_string(models[i].num)")
+ (("convert_pair_to_loop") "ensure_loop"))))
(add-before 'build 'build-lexer-and-parser
(lambda _
(with-directory-excursion "src"