summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2025-09-30 21:05:08 +0300
committerEfraim Flashner <efraim@flashner.co.il>2025-10-01 13:38:03 +0300
commit21467e43f1653ef28f692db83e1f27f3efe4ed18 (patch)
tree3eebbb59a4267a9b7cb1d32d1bb677f23d19d3d3 /gnu
parente00aa49ad838b0d06aee89804ef47773182b0475 (diff)
gnu: libinput-minimal: Fix build on 32-bit systems.
* gnu/packages/freedesktop.scm (libinput)[arguments]: When building for a 32-bit system add a phase to fix the test suite. Change-Id: I9bb40e17cd83e61ff6a4cb7adf6b9a4685bd9246
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/freedesktop.scm13
1 files changed, 11 insertions, 2 deletions
diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index d5589fba198..b6083dadea3 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -5,7 +5,7 @@
;;; Copyright © 2015-2017, 2019, 2021-2022, 2025 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2015, 2017, 2018, 2019, 2021, 2022, 2023 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com>
-;;; Copyright © 2016, 2017, 2019, 2021-2024 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2016, 2017, 2019, 2021-2025 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2016 Kei Kebreau <kkebreau@posteo.net>
;;; Copyright © 2017 Nikita <nikita@n0.is>
;;; Copyright © 2017, 2018 Mark H Weaver <mhw@netris.org>
@@ -603,7 +603,16 @@ freedesktop.org project.")
;; XXX: Using 'debug' or 'debugoptimized' pulls in an additional test that
;; hangs, and the comments around it suggests that we should be using this
;; Meson target anyway.
- #:build-type "release"))
+ #:build-type "release"
+ #:phases
+ ,@(if (target-64bit?)
+ `(%standard-phases)
+ `((modify-phases %standard-phases
+ ;; Backported from a commit after the 1.29.0 release.
+ (add-after 'unpack 'correct-value-type-in-atou64_test
+ (lambda _
+ (substitute* "test/test-utils.c"
+ (("unsigned long val") "uint64_t val")))))))))
(native-inputs
(append (list check pkg-config python-minimal-wrapper python-pytest)
(if (%current-target-system)