GNU bug report logs - #78012
mia 2.4.7 is not reproducible

Previous Next

Package: guix;

Reported by: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Date: Wed, 23 Apr 2025 13:42:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: ashish.is <at> lostca.se
To: 78012 <at> debbugs.gnu.org
Cc: Ashish SHUKLA <ashish.is <at> lostca.se>
Subject: bug#78012: [PATCH] gnu: mia: Fix determinism in the build
Date: Wed, 23 Apr 2025 21:08:59 +0000
From: Ashish SHUKLA <ashish.is <at> lostca.se>

* gnu/packages/image-processing.scm (mia)[arguments]: Add phases.

Change-Id: I5da0e31e03f0bc20b1930aa2cff0a784a43526ce
---
Hi,

This patch patches miareadxml.py in the similar way as it's handled in other scripts in doc scripts[0].

guix build --rounds=2 passed with this patch.

References:
[0] grep -F sorted doc/

 gnu/packages/image-processing.scm | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm
index 14bfdbfb20..c93feb1c30 100644
--- a/gnu/packages/image-processing.scm
+++ b/gnu/packages/image-processing.scm
@@ -24,6 +24,7 @@
 ;;; Copyright © 2022 Paul A. Patience <paul <at> apatience.com>
 ;;; Copyright © 2023 Cairn <cairn <at> pm.me>
 ;;; Copyright © 2024 Nicolas Graves <ngraves <at> ngraves.fr>
+;;; Copyright © 2025 Ashish SHUKLA <ashish.is <at> lostca.se>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -228,7 +229,15 @@ (define-public mia
     (arguments
      `(#:configure-flags
        (list "-DMIA_CREATE_NIPYPE_INTERFACES=OFF"
-             "-DCMAKE_CXX_FLAGS=-fpermissive")))
+             "-DCMAKE_CXX_FLAGS=-fpermissive")
+       #:phases
+       ,#~(modify-phases %standard-phases
+            (add-after 'unpack 'patch-for-deterministic-manpages
+              (lambda _
+                (substitute* "doc/miareadxml.py"
+                  ;; sort the flags so the order is deterministic
+                  (("in self[.]flags")
+                   "in sorted(self.flags)")))))))
     (inputs
      (list boost
            dcmtk

base-commit: 6cf0f3cbb649b8be21dcc6337ef394902c4bd56c
-- 
2.49.0





This bug report was last modified 50 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.