mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 23:46:13 -05:00
gnu: borg: Update the list of Cython-generated files to delete.
Reported by: Efraim Flashner <efraim@flashner.co.il> * gnu/packages/backup.scm (borg)[source]: Update the snippet.
This commit is contained in:
parent
c69d11c593
commit
5a3bf25526
1 changed files with 14 additions and 1 deletions
|
@ -485,8 +485,21 @@ (define-public borg
|
|||
(modules '((guix build utils)))
|
||||
(snippet
|
||||
'(begin
|
||||
;; Delete files generated by Cython. We used to have a regex
|
||||
;; that created the list of generated files but Borg has
|
||||
;; added new non-generated C files that cause the regex to
|
||||
;; generate the wrong list.
|
||||
(for-each delete-file
|
||||
(find-files "borg" "^(c|h|p).*\\.c$"))
|
||||
'("src/borg/algorithms/checksums.c"
|
||||
"src/borg/chunker.c"
|
||||
"src/borg/compress.c"
|
||||
"src/borg/crypto/low_level.c"
|
||||
"src/borg/hashindex.c"
|
||||
"src/borg/item.c"
|
||||
"src/borg/platform/darwin.c"
|
||||
"src/borg/platform/freebsd.c"
|
||||
"src/borg/platform/linux.c"
|
||||
"src/borg/platform/posix.c"))
|
||||
;; Remove bundled shared libraries.
|
||||
(with-directory-excursion "src/borg/algorithms"
|
||||
(for-each delete-file-recursively
|
||||
|
|
Loading…
Reference in a new issue