me
/
guix
Archived
1
0
Fork 0

gnu: gnome-builder: Fix the build.

As reported in #43296, gnome-builder tries to be linked against the static
version of libselinux (propagated through glib/gio), failing to do so, as it
also wants to be a PIE.  To keep the PIE, link it against the dynamic library.

Fixes <https://bugs.gnu.org/43296>.

* gnu/packages/gnome.scm (gnome-builder)[arguments]: Add 'fix-ninja' phase.

Signed-off-by: Leo Famulari <leo@famulari.name>
master
Leo Prikler 2020-09-10 20:26:10 +02:00 committed by Leo Famulari
parent d7e033b9a1
commit 9c69fec08e
No known key found for this signature in database
GPG Key ID: 2646FA30BACA7F08
1 changed files with 7 additions and 0 deletions

View File

@ -11797,6 +11797,13 @@ libraries. Applications do not need to be recompiled--or even restarted.")
(string-append (assoc-ref inputs "python-pygobject")
"/lib")))
#t))
(add-after 'configure 'fix-ninja
(lambda _
;; #43296: meson(?) incorrectly assumes we want to link
;; this PIE against a static libselinux.
(substitute* "build.ninja"
(("libselinux\\.a") "libselinux.so"))
#t))
(add-before 'check 'pre-check
(lambda _
(system "Xvfb :1 &")