mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-15 19:35:25 -05:00
guix: ant-build-system: Do not compress jars.
Fixes <https://bugs.gnu.org/29700>. * guix/build/ant-build-system.scm (strip-jar-timestamps): Do not compress jar when repacking.
This commit is contained in:
parent
e536b1d308
commit
1bc147d609
1 changed files with 5 additions and 2 deletions
|
@ -197,9 +197,12 @@ (define (repack-archive jar)
|
||||||
;; first.
|
;; first.
|
||||||
(with-directory-excursion dir
|
(with-directory-excursion dir
|
||||||
(let* ((files (find-files "." ".*" #:directories? #t))
|
(let* ((files (find-files "." ".*" #:directories? #t))
|
||||||
|
;; To ensure that the reference scanner can detect all
|
||||||
|
;; store references in the jars we disable compression
|
||||||
|
;; with the "-0" option.
|
||||||
(command (if (file-exists? manifest)
|
(command (if (file-exists? manifest)
|
||||||
`("zip" "-X" ,jar ,manifest ,@files)
|
`("zip" "-0" "-X" ,jar ,manifest ,@files)
|
||||||
`("zip" "-X" ,jar ,@files))))
|
`("zip" "-0" "-X" ,jar ,@files))))
|
||||||
(unless (zero? (apply system* command))
|
(unless (zero? (apply system* command))
|
||||||
(error "'zip' failed"))))
|
(error "'zip' failed"))))
|
||||||
(utime jar 0 0)
|
(utime jar 0 0)
|
||||||
|
|
Loading…
Reference in a new issue