From 5bf912330bda32742b651aa8bbdbebd7dee0dc5c Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 27 Feb 2024 08:22:54 +0200 Subject: [PATCH] gnu: l2md: Fix build on 32-bit systems. * gnu/packages/mail.scm (l2md)[source]: Add snippet to gate macOS build fix to only apply when building for Apple devices. Change-Id: Id303a89ec78ce160cfb6ebed232a841c8283e812 --- gnu/packages/mail.scm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index b2a2e247a2..9688c3624e 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -8,7 +8,7 @@ ;;; Copyright © 2015 Paul van der Walt ;;; Copyright © 2015, 2016, 2018 Eric Bavier ;;; Copyright © 2015 Andreas Enge -;;; Copyright © 2015-2023 Efraim Flashner +;;; Copyright © 2015-2024 Efraim Flashner ;;; Copyright © 2016 Christine Lemmer-Webber ;;; Copyright © 2016 Al McElrath ;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021 Leo Famulari @@ -4217,7 +4217,15 @@ (define-public l2md (commit commit))) (file-name (git-file-name name version)) (sha256 - (base32 "1hfbngwdavdhw5ghnadmi0djg2yrr0wrkv15jdd9wcqh9h6mxy8z")))) + (base32 "1hfbngwdavdhw5ghnadmi0djg2yrr0wrkv15jdd9wcqh9h6mxy8z")) + (snippet + #~(begin (use-modules (guix build utils)) + ;; Don't try to redefine loff_t. + (substitute* "utils.c" + (("typedef off_t loff_t;") + (string-append "#ifdef __APPLE__\n" + "typedef off_t loff_t;\n" + "#endif\n"))))))) (build-system gnu-build-system) (inputs (list libgit2))