build: asdf-build-system: Make sbcl-* Lisp packages reproducible.
authorGuillaume Le Vaillant <glv@posteo.net>
Wed, 8 Jan 2020 13:54:01 +0000 (14:54 +0100)
committerGuillaume Le Vaillant <glv@posteo.net>
Wed, 8 Jan 2020 14:39:05 +0000 (15:39 +0100)
The '*.fasl' files produced by SBCL contain the mtime of the source file (see
commit 72843d7ce32bd615f64a0326cf891658b5724ead of SBCL's code repository).
As asdf-build-system makes a copy of the source files before compiling them,
we must set the mtime of these copies to the same date as the originals for
the build to be reproducible.

* guix/build/asdf-build-system.scm (copy-files-to-output): Keep the
  modification time of the original source files.

guix/build/asdf-build-system.scm

index dd6373b..1be2b3c 100644 (file)
@@ -79,7 +79,7 @@ valid."
   (let ((source (getcwd))
         (target (source-directory out name))
         (system-path (string-append out %system-install-prefix)))
-    (copy-recursively source target)
+    (copy-recursively source target #:keep-mtime? #t)
     (mkdir-p system-path)
     (for-each
      (lambda (file)