From 9c69fec08e286f7486e64c2aa3110fa34974d15d Mon Sep 17 00:00:00 2001 From: Leo Prikler Date: Thu, 10 Sep 2020 20:26:10 +0200 Subject: 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 . * gnu/packages/gnome.scm (gnome-builder)[arguments]: Add 'fix-ninja' phase. Signed-off-by: Leo Famulari --- gnu/packages/gnome.scm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gnu/packages/gnome.scm') diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index b8a2c38a5f..cd7bc0ceba 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -11797,6 +11797,13 @@ (define-public gnome-builder (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 &") -- cgit v1.2.3