Archived
1
0
Fork 0

build-systems/gnu: Add compressor file extension to symbolic links.

Otherwise man and info readers are not able to read their content as they rely
on the file extension to detect if compression is used.

* guix/build/gnu-build-system.scm (compress-documentation)
[retarget-symlink]: Append the compressor file extension to the link file name.
This commit is contained in:
Maxim Cournoyer 2020-12-28 22:03:23 -05:00
parent 067f28a7d7
commit 7f80cc8102
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -596,7 +596,7 @@ DOCUMENTATION-COMPRESSOR-FLAGS."
(let ((target (readlink link)))
(delete-file link)
(symlink (string-append target compressed-documentation-extension)
link)))
(string-append link compressed-documentation-extension))))
(define (has-links? file)
;; Return #t if FILE has hard links.