From 0d5578c12beec105f5ec113cc50deab703270a82 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Mon, 30 Nov 2020 21:15:44 +0100 Subject: gnu: libreoffice: Build reproducibly. * gnu/packages/libreoffice.scm (libreoffice)[native-inputs]: Add ziptime. [arguments]: Add a 'reset-zip-timestamps phase that invokes it. --- gnu/packages/libreoffice.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gnu/packages/libreoffice.scm b/gnu/packages/libreoffice.scm index d2bf5b015b..714072e84b 100644 --- a/gnu/packages/libreoffice.scm +++ b/gnu/packages/libreoffice.scm @@ -1102,7 +1102,8 @@ (define-public libreoffice ("flex" ,flex) ("pkg-config" ,pkg-config) ("python" ,python-wrapper) - ("which" ,which))) + ("which" ,which) + ("ziptime" ,ziptime))) (inputs `(("bluez" ,bluez) ("boost" ,boost) @@ -1216,6 +1217,13 @@ (define-public libreoffice "/bin/xdg-open"))) #t)) + (add-after 'install 'reset-zip-timestamps + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (for-each (lambda (file) + (invoke "ziptime" file)) + ;; So many different extensions for .zip files. + (find-files out "\\.(bau|dat|otp|ott|zip)$"))))) (add-after 'install 'bin-and-desktop-install ;; Create 'soffice' and 'libreoffice' symlinks to the executable ;; script. -- cgit v1.2.3