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

To reply to this bug, email your comments to 78012 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#78012; Package guix. (Wed, 23 Apr 2025 13:42:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 23 Apr 2025 13:42:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: bug-guix <bug-guix <at> gnu.org>
Subject: mia 2.4.7 is not reproducible
Date: Wed, 23 Apr 2025 22:41:19 +0900
Hi,

The man pages of mia contain variations between build, as shown with:

--8<---------------cut here---------------start------------->8---
diffoscope /gnu/store/zmk4z26mwzx5rkrlykyvk6vf6wl1k8qp-mia-2.4.7{,-check}
[...]
│ │ │ │   --- /gnu/store/zmk4z26mwzx5rkrlykyvk6vf6wl1k8qp-mia-2.4.7/share/man/man1/mia-multihist.1.zst
│ │ │ ├── +++ /gnu/store/zmk4z26mwzx5rkrlykyvk6vf6wl1k8qp-mia-2.4.7-check/share/man/man1/mia-multihist.1.zst
│ │ │ │ ├── mia-multihist.1
│ │ │ │ │ @@ -8,15 +8,15 @@
│ │ │ │ │  .B mia\-multihist
│ │ │ │ │  This program evaluates the histogram over a series of 2D images
│ │ │ │ │  .SH OPTIONS
│ │ │ │ │  .RS
│ │ │ │ │  .IP "\-i \-\-in-file=(input, required); io"
│ │ │ │ │  input image(s) to be filtered
│ │ │ │ │   For supported file types see PLUGINS:2dimage/io
│ │ │ │ │ +.IP "\-o \-\-out-histogram=(required, output); string"
│ │ │ │ │ -.IP "\-o \-\-out-histogram=(output, required); string"
│ │ │ │ │  output file name
│ │ │ │ │  
│ │ │ │ │  .IP "   \-\-min=0"
│ │ │ │ │  minimum of histogram range
│ │ │ │ │  
│ │ │ │ │  .IP "   \-\-max=65535"
│ │ │ │ │  maximum of histogram range
│ │ │ │   --- /gnu/store/zmk4z26mwzx5rkrlykyvk6vf6wl1k8qp-mia-2.4.7/share/man/man1/mia-raw2image.1.zst
│ │ │ ├── +++ /gnu/store/zmk4z26mwzx5rkrlykyvk6vf6wl1k8qp-mia-2.4.7-check/share/man/man1/mia-raw2image.1.zst
│ │ │ │ ├── mia-raw2image.1
│ │ │ │ │ @@ -5,15 +5,15 @@
│ │ │ │ │  .SH SYNOPSIS
│ │ │ │ │  .B  mia\-raw2image \-i <in\-file> \-o <out\-file> \-s <size> [options]
│ │ │ │ │  .SH DESCRIPTION
│ │ │ │ │  .B mia\-raw2image
│ │ │ │ │  This program is used to convert raw data to a 2D file format.
│ │ │ │ │  .SH OPTIONS
│ │ │ │ │  .RS
│ │ │ │ │ +.IP "\-i \-\-in-file=(input, required); string"
│ │ │ │ │ -.IP "\-i \-\-in-file=(required, input); string"
│ │ │ │ │  input file name
│ │ │ │ │  
│ │ │ │ │  .IP "\-o \-\-out-file=(output, required); io"
│ │ │ │ │  output file name
│ │ │ │ │   For supported file types see PLUGINS:2dimage/io
│ │ │ │ │  .IP "\-r \-\-repn=ubyte"
│ │ │ │ │  input pixel type
[...]
--8<---------------cut here---------------end--------------->8---

I think doxygen must be used to generate these, and according to [0],
our version of it should be fine, so I don't know what is causing these.

[0]  https://reproducible-builds.org/docs/source-date-epoch/

-- 
Thanks,
Maxim

Information forwarded to bug-guix <at> gnu.org:
bug#78012; Package guix. (Wed, 23 Apr 2025 21:12:06 GMT) Full text and rfc822 format available.

Message #8 received at 78012 <at> debbugs.gnu.org (full text, mbox):

From: ashish.is <at> lostca.se
To: 78012 <at> debbugs.gnu.org
Cc: Ashish SHUKLA <ashish.is <at> lostca.se>
Subject: [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 1 day ago.

Previous Next


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