summaryrefslogtreecommitdiff
path: root/gnu/packages/image-processing.scm
diff options
context:
space:
mode:
authorJake Forster <jakecameron.forster@gmail.com>2026-02-07 16:38:32 +1030
committerAndreas Enge <andreas@enge.fr>2026-02-07 14:36:23 +0100
commitfcbfc559b104305fca44991492f472c5acc3b7ea (patch)
treeaec566573bde88b40b5fd789bd16a9cabd19de0c /gnu/packages/image-processing.scm
parenta5d3806bcfb560a139b07ae3398b6f37ec84b291 (diff)
gnu: itk-snap: Improve reproducibility.
* gnu/packages/image-processing.scm (itk-snap): Improve reproducibility. [arguments]<#:phases>{make-reproducible}: Patch @CMAKE_HOST_SYSTEM@, @CMAKE_HOST_SYSTEM_PROCESSOR@. Patch compile dates in c3d and greedy submodules. Move to after 'prepare-submodules phase. {prepare-submodules}: Copy instead of symlink c3d and greedy. Change-Id: I491f2fad852dd9dc1233f8d7e1428380fdbe6b21 Signed-off-by: Andreas Enge <andreas@enge.fr>
Diffstat (limited to 'gnu/packages/image-processing.scm')
-rw-r--r--gnu/packages/image-processing.scm31
1 files changed, 20 insertions, 11 deletions
diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm
index cd1fe633d57..cad0f970fef 100644
--- a/gnu/packages/image-processing.scm
+++ b/gnu/packages/image-processing.scm
@@ -1612,26 +1612,35 @@ combine the information contained in both.")
1612|MeshWorkspace|SegmentationMesh|VolumeRendering|Reloading|4DToMC|MCTo4D\ 1612|MeshWorkspace|SegmentationMesh|VolumeRendering|Reloading|4DToMC|MCTo4D\
1613|DeformationGrid)") 1613|DeformationGrid)")
1614 "")))) 1614 ""))))
1615 (add-after 'unpack 'make-reproducible
1616 (lambda _
1617 (substitute* "CMakeLists.txt"
1618 (("TODAY\\(SNAP_VERSION_COMPILE_DATE\\)")
1619 "SET(SNAP_VERSION_COMPILE_DATE \"(removed for reproducibility)\")"))))
1620 (add-after 'unpack 'prepare-submodules 1615 (add-after 'unpack 'prepare-submodules
1621 (lambda _ 1616 (lambda _
1622 (rmdir "Submodules/c3d") 1617 ;; Copy submodule instead of symlink because it is patched in
1623 (symlink #$(this-package-native-input "c3d-checkout") 1618 ;; 'make-reproducible phase.
1624 "Submodules/c3d") 1619 (copy-recursively #$(this-package-native-input "c3d-checkout")
1620 "Submodules/c3d")
1625 (rmdir "Submodules/digestible") 1621 (rmdir "Submodules/digestible")
1626 (symlink #$(this-package-native-input "digestible-checkout") 1622 (symlink #$(this-package-native-input "digestible-checkout")
1627 "Submodules/digestible") 1623 "Submodules/digestible")
1628 (rmdir "Submodules/greedy") 1624 (copy-recursively #$(this-package-native-input "greedy-checkout")
1629 (symlink #$(this-package-native-input "greedy-checkout") 1625 "Submodules/greedy")))
1630 "Submodules/greedy")))
1631 (add-after 'unpack 'remove-bundled-jsoncpp 1626 (add-after 'unpack 'remove-bundled-jsoncpp
1632 (lambda _ 1627 (lambda _
1633 (substitute* "CMakeLists.txt" 1628 (substitute* "CMakeLists.txt"
1634 ((" Common/JSon/jsoncpp\\.cpp") "")))) 1629 ((" Common/JSon/jsoncpp\\.cpp") ""))))
1630 (add-after 'prepare-submodules 'make-reproducible
1631 (lambda _
1632 (substitute* "CMakeLists.txt"
1633 (("TODAY\\(SNAP_VERSION_COMPILE_DATE\\)")
1634 "SET(SNAP_VERSION_COMPILE_DATE \"(removed for reproducibility)\")"))
1635 (substitute* "Common/SNAPCommon.cxx.in"
1636 (("@CMAKE_HOST_SYSTEM@ @CMAKE_HOST_SYSTEM_PROCESSOR@")
1637 "(removed for reproducibility)"))
1638 (substitute* "Submodules/c3d/ConvertImageVersion.cxx.in"
1639 (("@CONVERT3D_VERSION_COMPILE_DATE@")
1640 "(removed for reproducibility)"))
1641 (substitute* "Submodules/greedy/src/GreedyVersion.cxx.in"
1642 (("@GREEDY_VERSION_COMPILE_DATE@")
1643 "(removed for reproducibility)"))))
1635 (add-before 'check 'prepare-tests 1644 (add-before 'check 'prepare-tests
1636 (lambda _ 1645 (lambda _
1637 ;; Needed by at least one test. 1646 ;; Needed by at least one test.