[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
412/416: gnu: xsettingsd: Use cmake-build-system.
From: |
guix-commits |
Subject: |
412/416: gnu: xsettingsd: Use cmake-build-system. |
Date: |
Fri, 14 Apr 2023 15:26:35 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit a8c283ce69ac07eea956c01676bade05f81f6cf1
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Apr 13 15:34:17 2023 -0400
gnu: xsettingsd: Use cmake-build-system.
* gnu/packages/xdisorg.scm (xsettingsd) [build-system]: Use
cmake-build-system.
[arguments]: Remove #:scons and #:scons-flags arguments. Add
#:configure-flags argument. Remove patch-sconstruct and install phases.
Add
disable-problematic-tests phase.
[native-inputs]: Remove googletest-source; drop labels.
---
gnu/packages/xdisorg.scm | 59 +++++++++++-------------------------------------
1 file changed, 13 insertions(+), 46 deletions(-)
diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index 7af926f0fa..31770ac2ba 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -42,7 +42,7 @@
;;; Copyright © 2020 James Smith <jsubuntuxp@disroot.org>
;;; Copyright © 2020 B. Wilson <elaexuotee@wilsonb.com>
;;; Copyright © 2020, 2021 Zheng Junjie <873216071@qq.com>
-;;; Copyright © 2021, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2021, 2022, 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2021, 2022 Nicolas Goaziou <mail@nicolasgoaziou.fr>
;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz>
;;; Copyright © 2021 Renzo Poddighe <renzo@poddighe.nl>
@@ -2814,52 +2814,19 @@ Xwrits hides itself until you should take another
break.")
(file-name (git-file-name name version))
(sha256
(base32 "14gnkz18dipsa2v24f4nm9syxaa7g21iqjm7y65jn849ka2jr1h8"))))
- (build-system scons-build-system)
- (inputs
- (list libx11))
- (native-inputs
- `(("pkg-config" ,pkg-config)
- ("googletest" ,googletest)
- ("googletest-source" ,(package-source googletest))))
+ (build-system cmake-build-system)
(arguments
- `(#:scons ,scons-python2
- #:scons-flags
- (list ,(string-append "CC=" (cc-for-target)))
- #:phases
- (modify-phases %standard-phases
- (add-before 'build 'patch-sconstruct
- (lambda* (#:key inputs #:allow-other-keys)
- (substitute* "SConstruct"
- ;; scons doesn't pick up environment variables automatically
- ;; so it needs help to find path variables
- (("env = Environment\\(")
- "env = Environment(
- ENV = {
- 'PATH': os.environ['PATH'],
- 'CPATH': os.environ['C_INCLUDE_PATH'],
- 'LIBRARY_PATH': os.environ['LIBRARY_PATH'],
- 'PKG_CONFIG_PATH': os.environ['PKG_CONFIG_PATH']
- },")
- ;; Update path to gtest source files used in tests
- (("/usr/src/gtest") (string-append
- (assoc-ref inputs "googletest-source")
- "/googletest"))
- ;; Exclude one warning that causes a build error
- (("-Werror") "-Werror -Wno-error=sign-compare"))
- #t))
- ;; The SConstruct script doesn't configure installation so
- ;; binaries must be copied to the output path directly
- (replace 'install
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (bin (string-append out "/bin"))
- (man (string-append out "/share/man/man1")))
- (mkdir-p bin)
- (install-file "xsettingsd" bin)
- (install-file "dump_xsettings" bin)
- (install-file "xsettingsd.1" man)
- (install-file "dump_xsettings.1" man)
- #t))))))
+ (list #:configure-flags #~(list "-DBUILD_TESTING=ON")
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'disable-problematic-tests
+ (lambda _
+ (substitute* "config_parser_test.cc"
+ ;; This test fails for unknown reasons (see:
+ ;;
https://github.com/derat/xsettingsd/issues/30).
+ (("TEST\\(CharStreamTest, Basic")
+ "TEST(CharStreamTest, DISABLED_Basic")))))))
+ (inputs (list libx11))
+ (native-inputs (list pkg-config googletest))
(home-page "https://github.com/derat/xsettingsd")
(synopsis "Xorg settings daemon")
(description "@command{xsettingsd} is a lightweight daemon that provides
settings to
- 358/416: gnu: python-trio-typing: Switch to pyproject-build-system., (continued)
- 358/416: gnu: python-trio-typing: Switch to pyproject-build-system., guix-commits, 2023/04/14
- 331/416: gnu: rust-macrotest-1: Update to 1.0.9., guix-commits, 2023/04/14
- 355/416: gnu: python-pyopenssl: Update to 23.1.1., guix-commits, 2023/04/14
- 370/416: gnu: Add mecab-ipadic., guix-commits, 2023/04/14
- 384/416: news: Add 'de' translation., guix-commits, 2023/04/14
- 380/416: gnu: go-1.18: Adjust patch-gcclib phase., guix-commits, 2023/04/14
- 389/416: gnu: gerbil: Update to 0.17.0., guix-commits, 2023/04/14
- 383/416: news: Add entry for 'guix shell --container --nesting'., guix-commits, 2023/04/14
- 392/416: gnu: opendht: Update to 2.5.2., guix-commits, 2023/04/14
- 381/416: gnu: go-1.17: Fix test suite on powerpc64le-linux., guix-commits, 2023/04/14
- 412/416: gnu: xsettingsd: Use cmake-build-system.,
guix-commits <=
- 408/416: gnu: psautohint: Disable a failing test., guix-commits, 2023/04/14