gnu: rust-xkbcommon-dl: Fix loading of libxkbcommon-x11.so.
This to resolve Alacritty segmentation fault reported in #68243, attemp to fix in #69797. * gnu/packages/crates-graphics.scm (rust-xkbcommon-dl) [arguments]: Handle libxkbcommon-x11.so in the ‘add-absolute-library-references’ phase. Change-Id: Ib724775210cfad7dedaa454f0f456c0dded67dccmaster
parent
25d66b55c2
commit
423ca234cb
|
@ -15,6 +15,7 @@
|
||||||
;;; Copyright © 2022 Marius Bakke <marius@gnu.org>
|
;;; Copyright © 2022 Marius Bakke <marius@gnu.org>
|
||||||
;;; Copyright © 2023, 2024 Jaeme Sifat <jaeme@runbox.com>
|
;;; Copyright © 2023, 2024 Jaeme Sifat <jaeme@runbox.com>
|
||||||
;;; Copyright © 2024 Troy Figiel <troy@troyfigiel.com>
|
;;; Copyright © 2024 Troy Figiel <troy@troyfigiel.com>
|
||||||
|
;;; Copyright © 2024 Sharlatan Hellseher <sharlatanus@gmail.com>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -5745,7 +5746,18 @@ for @code{libxkbcommon}.")
|
||||||
("rust-dlib" ,rust-dlib-0.5)
|
("rust-dlib" ,rust-dlib-0.5)
|
||||||
("rust-log" ,rust-log-0.4)
|
("rust-log" ,rust-log-0.4)
|
||||||
("rust-once-cell" ,rust-once-cell-1)
|
("rust-once-cell" ,rust-once-cell-1)
|
||||||
("rust-xkeysym" ,rust-xkeysym-0.2))))
|
("rust-xkeysym" ,rust-xkeysym-0.2))
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'configure 'add-absolute-library-references
|
||||||
|
(lambda* (#:key inputs vendor-dir #:allow-other-keys)
|
||||||
|
(substitute* (find-files vendor-dir "\\.rs$")
|
||||||
|
(("libxkbcommon-x11\\.so")
|
||||||
|
(search-input-file inputs "lib/libxkbcommon-x11.so"))
|
||||||
|
(("libxkbcommon\\.so")
|
||||||
|
(search-input-file inputs "lib/libxkbcommon.so"))))))))
|
||||||
|
(inputs
|
||||||
|
(list libxkbcommon))
|
||||||
(home-page "https://github.com/rust-windowing/xkbcommon-dl")
|
(home-page "https://github.com/rust-windowing/xkbcommon-dl")
|
||||||
(synopsis "Dynamically loaded xkbcommon and xkbcommon-x11 Rust bindings")
|
(synopsis "Dynamically loaded xkbcommon and xkbcommon-x11 Rust bindings")
|
||||||
(description
|
(description
|
||||||
|
|
Reference in New Issue