This is an automated email from the git hooks/post-receive script.
guix_mirror_bot pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new 43498d3ea1 gnu: xandikos: Fix entry point script.
43498d3ea1 is described below
commit 43498d3ea1e96540b725e137cc6188a00ecf5140
Author: Ricardo Wurmus <[email protected]>
AuthorDate: Thu Jan 15 12:56:29 2026 +0100
gnu: xandikos: Fix entry point script.
Fixes <https://codeberg.org/guix/guix/issues/5514>.
* gnu/packages/dav.scm (xandikos)[arguments]: Replace phase
'create-entrypoints.
Change-Id: I78b1c222026d71297ec912cf9442f2e74a963b34
---
gnu/packages/dav.scm | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/gnu/packages/dav.scm b/gnu/packages/dav.scm
index 62117f1486..4fb7a0eebc 100644
--- a/gnu/packages/dav.scm
+++ b/gnu/packages/dav.scm
@@ -7,6 +7,7 @@
;;; Copyright © 2022, 2024 Jonathan Brielmaier <[email protected]>
;;; Copyright © 2024 Nicolas Graves <[email protected]>
;;; Copyright © 2025 Junker <[email protected]>
+;;; Copyright © 2026 Ricardo Wurmus <[email protected]>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -129,6 +130,22 @@ clients.")
#:test-backend #~'unittest
#:phases
#~(modify-phases %standard-phases
+ (replace 'create-entrypoints
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let ((sitedir (site-packages inputs outputs))
+ (interpreter (which "python"))
+ (file-path (string-append #$output "/bin/xandikos")))
+ (mkdir-p (string-append #$output "/bin"))
+ (call-with-output-file file-path
+ (lambda (port)
+ (format port "#!~a -sP
+# Auto-generated entry point script.
+import sys
+import asyncio
+from xandikos.__main__ import main
+if __name__ == '__main__':
+ sys.exit(asyncio.run(main(sys.argv[1:])))~%" interpreter)))
+ (chmod file-path #o755))))
(add-before 'check 'check-setup
(lambda _
(setenv "XANDIKOSPATH" (mkdtemp "/tmp/xandikospath-XXXXXX")))))))