guix_mirror_bot pushed a commit to branch next-master
in repository guix.
commit 72ec38fdcf45a309c51b1bb65798d35c8a04d296
Author: Nicolas Graves <[email protected]>
AuthorDate: Mon Jan 5 00:20:00 2026 +0100
gnu: xpra: Switch to pyproject.
* gnu/packages/xorg.scm (xpra):
[build-system]: Switch to pyproject-build-system.
[arguments]<#:configure-flags>: Migrate them.
<#:modules>: Drop them.
<#:phases>: Drop phase 'build.
[native-inputs]: Add python-setuptools.
Change-Id: Ie712c67991d1e4c399d65e0243f6161d9cb28492
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/xorg.scm | 36 ++++++++++++++----------------------
1 file changed, 14 insertions(+), 22 deletions(-)
diff --git a/gnu/packages/xorg.scm b/gnu/packages/xorg.scm
index 5b1fae79bd..6c476f7286 100644
--- a/gnu/packages/xorg.scm
+++ b/gnu/packages/xorg.scm
@@ -6525,14 +6525,14 @@ basic eye-candy effects.")
(origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/Xpra-org/xpra.git")
- (commit (string-append "v" version))))
+ (url "https://github.com/Xpra-org/xpra.git")
+ (commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0lrhj1xipgx839bvjwp2mbxf72c1c5g3y66vcaqs0zzk50zvyxwi"))
(patches (search-patches "xpra-6.0-systemd-run.patch"
"xpra-6.1-install_libs.patch"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(inputs
(list bash-minimal ; for wrap-program
;; Essential dependencies.
@@ -6572,27 +6572,19 @@ basic eye-candy effects.")
python-lz4 ; Faster compression than zlib.
python-netifaces
python-pycups))
- (native-inputs (list pkg-config pandoc python-cython))
+ (native-inputs (list pkg-config pandoc python-cython python-setuptools))
(arguments
(list
- #:configure-flags #~(list "--without-Xdummy"
- "--without-Xdummy_wrapper"
- "--with-opengl"
- "--without-debug"
- "--without-strict") ; Ignore compiler warnings.
- #:modules '((guix build python-build-system)
- (guix build utils))
- ;; Do not run test-cases. This would rebuild all modules and they seem
- ;; to require python2.
+ #:configure-flags
+ #~'(("--without-Xdummy" . "")
+ ("--without-Xdummy_wrapper" . "")
+ ("--with-opengl" . "")
+ ("--without-debug" . "")
+ ("--without-strict" . "")) ; Ignore compiler warnings.
+ ;; Do not run test-cases as they seem to require python2.
#:tests? #f
#:phases
#~(modify-phases %standard-phases
- ;; Must pass the same flags as 'install, otherwise enabled modules
may
- ;; not be built.
- (replace 'build
- (lambda* (#:key configure-flags #:allow-other-keys)
- (apply invoke (append (list "python" "setup.py" "build")
- configure-flags))))
(add-before 'install 'fix-paths
(lambda* (#:key inputs #:allow-other-keys)
;; Fix binary paths.
@@ -6636,10 +6628,10 @@ basic eye-candy effects.")
(("socket-dir.*: \"\",")
"socket-dir\" : \"~/.xpra\","))))
;; GTK3 will not be found, if GI can’t find its typelibs.
- (add-after 'install 'wrap-program
- (lambda* (#:key outputs #:allow-other-keys)
+ (add-after 'wrap 'wrap-program
+ (lambda _
;; XXX: only export typelibs in inputs
- (wrap-program (search-input-file outputs "bin/xpra")
+ (wrap-program (string-append #$output "/bin/xpra")
`("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))))))))
(home-page "https://www.xpra.org/")
(synopsis "Remote access to individual applications or full desktops")