aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2020-01-17 21:21:07 +0100
committerLudovic Courtès <ludo@gnu.org>2020-01-17 21:21:07 +0100
commit36930b2463fc933e7c5580f49413dbd14cf1df48 (patch)
tree3ba77dcb23fa6c11ba1b62a29cfe29e3e1d10065
parent201015b10eb6988ea15ab8aacd7944b48a5549a3 (diff)
downloadguix-36930b2463fc933e7c5580f49413dbd14cf1df48.tar
guix-36930b2463fc933e7c5580f49413dbd14cf1df48.tar.gz
packages: 'patch-and-repack' sets the mtime to 1, not 0.
* guix/packages.scm (patch-and-repack)[build]: Pass "--mtime=@1" instead of "--mtime=@0".
-rw-r--r--guix/packages.scm8
1 files changed, 5 insertions, 3 deletions
diff --git a/guix/packages.scm b/guix/packages.scm
index 5ecb97f946..d925e754a3 100644
--- a/guix/packages.scm
+++ b/guix/packages.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2014, 2015, 2017, 2018 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2015 Eric Bavier <bavier@member.fsf.org>
;;; Copyright © 2016 Alex Kost <alezost@gmail.com>
@@ -637,8 +637,10 @@ specifies modules in scope when evaluating SNIPPET."
(apply invoke
(string-append #+tar "/bin/tar")
"cvfa" #$output
- ;; avoid non-determinism in the archive
- "--mtime=@0"
+ ;; Avoid non-determinism in the archive. Set the mtime
+ ;; to 1 as is the case in the store (software like gzip
+ ;; behaves differently when it stumbles upon mtime = 0).
+ "--mtime=@1"
"--owner=root:0"
"--group=root:0"
(if tar-supports-sort?