[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: gnu: acl: Fix build failure.
From: |
Ricardo Wurmus |
Subject: |
01/01: gnu: acl: Fix build failure. |
Date: |
Thu, 15 Mar 2018 11:41:45 -0400 (EDT) |
rekado pushed a commit to branch core-updates
in repository guix.
commit 4403030b7de2485dbeb6ee54c56551a2bd2b5244
Author: Ricardo Wurmus <address@hidden>
Date: Thu Mar 15 16:41:02 2018 +0100
gnu: acl: Fix build failure.
* gnu/packages/acl.scm (acl)[arguments]: Add phase
"ensure-no-mtimes-pre-1980".
---
gnu/packages/acl.scm | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/gnu/packages/acl.scm b/gnu/packages/acl.scm
index 7880e53..ee17c94 100644
--- a/gnu/packages/acl.scm
+++ b/gnu/packages/acl.scm
@@ -3,6 +3,7 @@
;;; Copyright © 2014 Mark H Weaver <address@hidden>
;;; Copyright © 2014 Andreas Enge <address@hidden>
;;; Copyright © 2017 Efraim Flashner <address@hidden>
+;;; Copyright © 2018 Ricardo Wurmus <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -47,8 +48,20 @@
(build-system gnu-build-system)
(arguments
`(#:test-target "tests"
+ #:modules ((ice-9 ftw)
+ ,@%gnu-build-system-modules)
#:phases
(modify-phases %standard-phases
+ ;; XXX After repacking the sources the timestamps are reset to the
+ ;; epoch, which leads to a failure in gzipping the CHANGES file.
+ (add-after 'unpack 'ensure-no-mtimes-pre-1980
+ (lambda _
+ (let ((early-1980 315619200)) ; 1980-01-02 UTC
+ (ftw "." (lambda (file stat flag)
+ (unless (<= early-1980 (stat:mtime stat))
+ (utime file early-1980 early-1980))
+ #t))
+ #t)))
(add-after 'build 'patch-exec-bin-sh
(lambda _
(substitute* "test/run"