GNU bug report logs -
#67859
[PATCH] gnu: libsigsegv: Fix x86_64 cross-compilation.
Previous Next
Reported by: Leo Nikkilä <hello <at> lnikki.la>
Date: Sat, 16 Dec 2023 22:59:01 UTC
Severity: normal
Tags: patch
Done: Mathieu Othacehe <othacehe <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 67859 in the body.
You can then email your comments to 67859 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#67859
; Package
guix-patches
.
(Sat, 16 Dec 2023 22:59:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Leo Nikkilä <hello <at> lnikki.la>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Sat, 16 Dec 2023 22:59:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/libsigsegv.scm (libsigsegv): Set `#:phases' for x86_64.
---
gnu/packages/libsigsegv.scm | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/libsigsegv.scm b/gnu/packages/libsigsegv.scm
index ebbdd2ad90..39c76cd462 100644
--- a/gnu/packages/libsigsegv.scm
+++ b/gnu/packages/libsigsegv.scm
@@ -1,6 +1,7 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2012, 2013, 2018 Ludovic Courtès <ludo <at> gnu.org>
;;; Copyright © 2017 Efraim Flashner <efraim <at> flashner.co.il>
+;;; Copyright © 2023 Leo Nikkilä <hello <at> lnikki.la>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -41,6 +42,21 @@ (define-public libsigsegv
`(;; The shared library isn't built by default but some packages need it.
#:configure-flags '("--enable-shared")
+ ;; When cross-compiling for x86_64, work around this error:
+ ;;
+ ;; In file included from fault-linux-x86_64-old.h:17,
+ ;; [...]
+ ;; linux-libre-headers-cross-x86_64-linux-gnu-5.15.49/include/asm/sigcontext.h:317:8: error: redefinition of ‘struct sigcontext’
+ ,@(if (string-contains (or (%current-target-system)
+ (%current-system))
+ "x86_64")
+ `(#:phases (modify-phases %standard-phases
+ (add-before 'configure 'patch-x86_64-old-h
+ (lambda _
+ (substitute* "src/fault-linux-x86_64-old.h"
+ (("#include <asm/sigcontext\\.h>") ""))))))
+ '())
+
;; On MIPS, work around this error:
;;
;; In file included from fault-linux-mips-old.h:18:0,
@@ -52,8 +68,7 @@ (define-public libsigsegv
(add-before 'configure 'patch-mips-old-h
(lambda _
(substitute* "src/fault-linux-mips-old.h"
- (("#include <asm/sigcontext\\.h>") ""))
- #t))))
+ (("#include <asm/sigcontext\\.h>") ""))))))
'())))
(description
"GNU libsigsegv is a library to handle page faults, which occur when a
--
2.41.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#67859
; Package
guix-patches
.
(Sat, 23 Dec 2023 09:38:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 67859 <at> debbugs.gnu.org (full text, mbox):
Hello,
> + (add-before 'configure 'patch-x86_64-old-h
> + (lambda _
> + (substitute* "src/fault-linux-x86_64-old.h"
> + (("#include <asm/sigcontext\\.h>") ""))))))
That is almost the same fix as for MIPS so it could be
factorized. Couldn't we do that for all architectures in
src/fault-linux-xxx-old.h?
Is that issue reported upstream?
Thanks,
Mathieu
Reply sent
to
Mathieu Othacehe <othacehe <at> gnu.org>
:
You have taken responsibility.
(Sun, 07 Jan 2024 18:14:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Leo Nikkilä <hello <at> lnikki.la>
:
bug acknowledged by developer.
(Sun, 07 Jan 2024 18:14:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 67859-done <at> debbugs.gnu.org (full text, mbox):
Hello,
> That is almost the same fix as for MIPS so it could be
> factorized. Couldn't we do that for all architectures in
> src/fault-linux-xxx-old.h?
Efraim tooks care of it with 9816a5371663396bc092eb359222635e5675b174.
Closing, thanks,
Mathieu
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 05 Feb 2024 12:24:08 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 138 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.