guix_mirror_bot pushed a commit to branch master
in repository guix.

commit d8d9e51a1f65c47502b73f557e28941ceeae11b2
Author: David Elsing <[email protected]>
AuthorDate: Tue Jul 29 16:19:32 2025 +0200

    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 <[email protected]>
---
 gnu/packages/chemistry.scm | 6 ++++++
 1 file changed, 6 insertions(+)

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"

Reply via email to