From: Pierre Langlois <pierre.langlois@gmx.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: Pierre Langlois <pierre.langlois@gmx.com>,
Tobias Geerinckx-Rice <me@tobias.gr>,
40556@debbugs.gnu.org
Subject: [bug#40556] [PATCH] gnu: dovecot: Add libunwind input.
Date: Thu, 16 Apr 2020 19:13:21 +0200 [thread overview]
Message-ID: <87y2qvs6ar.fsf@gmx.com> (raw)
In-Reply-To: <877dyfgzzb.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 947 bytes --]
Hi Ludo!
Ludovic Courtès writes:
> Hi,
>
> Pierre Langlois <pierre.langlois@gmx.com> skribis:
>
>> + ;; FIXME: The 'test-backtrace' tests fail on arm when using glibc's
>> + ;; backtrace_symbol() function so fallback to using libunwind.
>> + ,@(match (or (%current-target-system) (%current-system))
>> + ((or "aarch64-linux" "armhf-linux")
>> + `(("libunwind" ,libunwind)))
>> + (_ '()))
>
> This isn’t quite correct because ‘%current-target-system’ returns a
> triplet, like “arm-linux-gnueabihf”.
Oups, I didn't realize the cross-compilation target was different.
>
> Use ‘target-arm?’ instead.
Yep, that works really nicely, it's much clearer.
I've tested on x86_64, arm and aarch64 natively. I'll try
cross-compiling with --target=arm-linux-gnueabihf and
--target=aarch64-linux-gnu as well but that'll take a little longer.
Thanks!
Pierre
[-- Attachment #2: 0001-gnu-dovecot-Add-libunwind-input-for-arm.patch --]
[-- Type: text/x-patch, Size: 1921 bytes --]
From d56005a2d839e36cd9f718041d8634f34cf2177a Mon Sep 17 00:00:00 2001
From: Pierre Langlois <pierre.langlois@gmx.com>
Date: Sat, 11 Apr 2020 16:34:01 +0100
Subject: [PATCH] gnu: dovecot: Add libunwind input for arm.
* gnu/packages/mail.scm (dovecot)[inputs]: Add libunwind when targetting arm.
---
gnu/packages/mail.scm | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 0a88c20a6e..8d55d157e5 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -24,7 +24,7 @@
;;; Copyright © 2017 Kyle Meyer <kyle@kyleam.com>
;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2017, 2018 Rene Saavedra <pacoon@protonmail.com>
-;;; Copyright © 2018, 2019 Pierre Langlois <pierre.langlois@gmx.com>
+;;; Copyright © 2018, 2019, 2020 Pierre Langlois <pierre.langlois@gmx.com>
;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
;;; Copyright © 2018 Gábor Boskovits <boskovits@gmail.com>
;;; Copyright © 2018, 2019, 2020 Ricardo Wurmus <rekado@elephly.net>
@@ -89,6 +89,7 @@
#:use-module (gnu packages libevent)
#:use-module (gnu packages libidn)
#:use-module (gnu packages libunistring)
+ #:use-module (gnu packages libunwind)
#:use-module (gnu packages linux)
#:use-module (gnu packages lsof)
#:use-module (gnu packages lua)
@@ -1435,6 +1436,11 @@ facilities for checking incoming mail.")
(inputs
`(("bzip2" ,bzip2)
("libsodium" ,libsodium) ; extra password algorithms
+ ;; FIXME: The 'test-backtrace' tests fail on arm when using glibc's
+ ;; backtrace_symbol() function so fallback to using libunwind.
+ ,@(if (target-arm?)
+ `(("libunwind" ,libunwind))
+ '())
("linux-pam" ,linux-pam)
("lz4" ,lz4)
("openssl" ,openssl)
--
2.26.1
next prev parent reply other threads:[~2020-04-16 17:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-11 15:42 [bug#40556] [PATCH] gnu: dovecot: Add libunwind input Pierre Langlois
2020-04-11 16:17 ` Tobias Geerinckx-Rice via Guix-patches via
2020-04-11 16:53 ` Pierre Langlois
2020-04-11 17:56 ` Julien Lepiller
2020-04-16 16:24 ` Ludovic Courtès
2020-04-16 17:13 ` Pierre Langlois [this message]
2020-04-16 17:41 ` Pierre Langlois
2020-04-17 8:20 ` bug#40556: " Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y2qvs6ar.fsf@gmx.com \
--to=pierre.langlois@gmx.com \
--cc=40556@debbugs.gnu.org \
--cc=ludo@gnu.org \
--cc=me@tobias.gr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).