gnu: lofreq: Set file timestamps to 1980s.

This keeps Python from complaining: "ZIP does not support timestamps before
1980".

* gnu/packages/bioinformatics.scm (lofreq)[arguments]: Add build phase
'set-source-file-times-to-1980.
This commit is contained in:
Ricardo Wurmus 2023-04-25 16:15:06 +02:00
parent 0ad4a4d155
commit 3a37e3ecd8
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -17761,7 +17761,17 @@ (define-public lofreq
(build-system gnu-build-system)
(arguments
'(#:test-target "bug-tests"
#:tests? #false)) ; test data are not included
#:tests? #false ;test data are not included
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'set-source-file-times-to-1980
(lambda _
(let ((circa-1980 (* 10 366 24 60 60)))
(for-each (lambda (file)
(let ((s (lstat file)))
(unless (eq? (stat:type s) 'symlink)
(utime file circa-1980 circa-1980))))
(find-files "." #:directories? #t))))))))
(inputs
(list htslib python-wrapper zlib))
(native-inputs