GNU bug report logs -
#43296
Gnome Builder doesn't install.
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 43296 in the body.
You can then email your comments to 43296 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#43296
; Package
guix
.
(Wed, 09 Sep 2020 19:05:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Marinus Savoritias <marinus.savoritias <at> disroot.org>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Wed, 09 Sep 2020 19:05:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Gnome builder fails to install with this message:
swzg5y9hnggp7aghz8q2l-gnome-builder-3.36.1.drv' failed with exit code 1
build of
/gnu/store/w2lzd0dc6qbswzg5y9hnggp7aghz8q2l-gnome-builder-3.36.1.drv failed
The message in the log is this:
ld:
/gnu/store/sh764z2hm5qcr4cqx4amcipcbkvg76i2-libselinux-3.0/lib/libselinux.a(setrans_client.o):
relocation R_X86_64_32 against `.rodata.str1.8' can not be used when
making a PIE object; recompile with -fPIE
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
command "ninja" "-j" "4" failed with status 1
Marinus Savoritias
Information forwarded
to
bug-guix <at> gnu.org
:
bug#43296
; Package
guix
.
(Thu, 10 Sep 2020 16:59:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 43296 <at> debbugs.gnu.org (full text, mbox):
Hi Marinus,
I've noticed your report and quickly found a rather crude way of fixing it.
I'm not sure, why meson tries to link gnome-builder statically against selinux
in the first place, but it should do the job.
Regards,
Leo
Leo Prikler (1):
gnu: Fix gnome-builder build.
gnu/packages/gnome.scm | 6 ++++++
1 file changed, 6 insertions(+)
--
2.28.0
Information forwarded
to
bug-guix <at> gnu.org
:
bug#43296
; Package
guix
.
(Thu, 10 Sep 2020 16:59:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 43296 <at> debbugs.gnu.org (full text, mbox):
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.
* gnu/packages/gnome.scm (gnome-builder)[#:phases]: Add 'fix-ninja.
---
gnu/packages/gnome.scm | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 31c5b0319c..ff4cb8a383 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -11336,6 +11336,12 @@ 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"))))
(add-before 'check 'pre-check
(lambda _
(system "Xvfb :1 &")
--
2.28.0
Information forwarded
to
bug-guix <at> gnu.org
:
bug#43296
; Package
guix
.
(Thu, 10 Sep 2020 18:10:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 43296 <at> debbugs.gnu.org (full text, mbox):
Hi,
Leo Prikler <leo.prikler <at> student.tugraz.at> writes:
> 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.
> * gnu/packages/gnome.scm (gnome-builder)[#:phases]: Add 'fix-ninja.
> ---
> gnu/packages/gnome.scm | 6 ++++++
> 1 file changed, 6 insertions(+)
Thanks for this! One comment, though:
> diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
> index 31c5b0319c..ff4cb8a383 100644
> --- a/gnu/packages/gnome.scm
> +++ b/gnu/packages/gnome.scm
> @@ -11336,6 +11336,12 @@ 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"))))
> (add-before 'check 'pre-check
> (lambda _
> (system "Xvfb :1 &")
This new phase should end by returning #t.
Thanks,
Mark
Information forwarded
to
bug-guix <at> gnu.org
:
bug#43296
; Package
guix
.
(Thu, 10 Sep 2020 18:23:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 43296 <at> debbugs.gnu.org (full text, mbox):
Leo Prikler <leo.prikler <at> student.tugraz.at> writes:
> 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.
> * gnu/packages/gnome.scm (gnome-builder)[#:phases]: Add 'fix-ninja.
> ---
> gnu/packages/gnome.scm | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
> index 31c5b0319c..ff4cb8a383 100644
> --- a/gnu/packages/gnome.scm
> +++ b/gnu/packages/gnome.scm
> @@ -11336,6 +11336,12 @@ 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"))))
Please end the phase on #t, because “substitute*” has no specified
return value.
Other than that it looks good to me, thanks!
--
Ricardo
Information forwarded
to
bug-guix <at> gnu.org
:
bug#43296
; Package
guix
.
(Thu, 10 Sep 2020 18:35:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 43296 <at> debbugs.gnu.org (full text, mbox):
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.
* gnu/packages/gnome.scm (gnome-builder)[#:phases]: Add 'fix-ninja.
---
gnu/packages/gnome.scm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 31c5b0319c..bc8e28becf 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -11336,6 +11336,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 &")
--
2.28.0
Reply sent
to
Leo Famulari <leo <at> famulari.name>
:
You have taken responsibility.
(Sat, 31 Oct 2020 16:57:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Marinus Savoritias <marinus.savoritias <at> disroot.org>
:
bug acknowledged by developer.
(Sat, 31 Oct 2020 16:57:03 GMT)
Full text and
rfc822 format available.
Message #25 received at 43296-done <at> debbugs.gnu.org (full text, mbox):
On Thu, Sep 10, 2020 at 08:26:10PM +0200, Leo Prikler wrote:
> 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.
> * gnu/packages/gnome.scm (gnome-builder)[#:phases]: Add 'fix-ninja.
Thanks! I tweaked the commit message and pushed as
9c69fec08e286f7486e64c2aa3110fa34974d15d
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 29 Nov 2020 12:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 141 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.