aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo Famulari <leo@famulari.name>2018-07-19 14:08:58 -0400
committerLeo Famulari <leo@famulari.name>2018-07-19 18:28:29 -0400
commit5a3bf25526170496f7affb925adaff9ed3972e40 (patch)
tree1c4efc94d5bb7b0de171eb9832beeeb76e16ede9
parentc69d11c593036b4c188824f6b595bfe88bc46aca (diff)
downloadguix-5a3bf25526170496f7affb925adaff9ed3972e40.tar
guix-5a3bf25526170496f7affb925adaff9ed3972e40.tar.gz
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.
-rw-r--r--gnu/packages/backup.scm15
1 files changed, 14 insertions, 1 deletions
diff --git a/gnu/packages/backup.scm b/gnu/packages/backup.scm
index 9884f58fc3..74ee67c70c 100644
--- a/gnu/packages/backup.scm
+++ b/gnu/packages/backup.scm
@@ -485,8 +485,21 @@ detection, and lossless compression.")
(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