From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:45642) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNIIf-0004Sf-Ob for guix-patches@gnu.org; Sat, 11 Apr 2020 11:44:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jNIIc-0000qo-Er for guix-patches@gnu.org; Sat, 11 Apr 2020 11:44:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45441) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jNIIc-0000qY-B3 for guix-patches@gnu.org; Sat, 11 Apr 2020 11:44:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jNIIc-0004SI-8q for guix-patches@gnu.org; Sat, 11 Apr 2020 11:44:02 -0400 Subject: [bug#40556] [PATCH] gnu: dovecot: Add libunwind input. Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:45580) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNIHY-0004MI-Ss for guix-patches@gnu.org; Sat, 11 Apr 2020 11:42:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jNIHX-0000Yq-Mx for guix-patches@gnu.org; Sat, 11 Apr 2020 11:42:56 -0400 Received: from mout.gmx.net ([212.227.17.21]:38029) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jNIHX-0000YU-8n for guix-patches@gnu.org; Sat, 11 Apr 2020 11:42:55 -0400 From: Pierre Langlois Date: Sat, 11 Apr 2020 17:42:50 +0200 Message-ID: <87ftdahvut.fsf@gmx.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 40556@debbugs.gnu.org Cc: Julien Lepiller --=-=-= Content-Type: text/plain Hi Guix, Julien, I noticed I couldn't build dovecot on either aarch64 or arm :-/. I did a little bit of debugging, and it looks like the backtrace_symbols() function isn't working correctly. Dovecot is able to use libunwind instead, and this appears to work. I then noticed it was reported upstream already, coming to the same conclusion https://markmail.org/message/fjgo7lkuk7tk4iek I wonder what's wrong with backtrace_symbols() in guix, I'm not sure how to investigate that. For now though, what do you think of using libunwind? Thanks, Pierre --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-dovecot-Add-libunwind-input.patch Content-Transfer-Encoding: quoted-printable >From b95b8f4769f5543d196fe7e334a891f8fe276816 Mon Sep 17 00:00:00 2001 From: Pierre Langlois Date: Sat, 11 Apr 2020 16:34:01 +0100 Subject: [PATCH] gnu: dovecot: Add libunwind input. * gnu/packages/mail.scm (dovecot)[inputs]: Add libunwind. --- gnu/packages/mail.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index a6ed776db1..4ea8fb6051 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -24,7 +24,7 @@ ;;; Copyright =C2=A9 2017 Kyle Meyer ;;; Copyright =C2=A9 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice ;;; Copyright =C2=A9 2017, 2018 Rene Saavedra -;;; Copyright =C2=A9 2018, 2019 Pierre Langlois +;;; Copyright =C2=A9 2018, 2019, 2020 Pierre Langlois ;;; Copyright =C2=A9 2018 Alex Vong ;;; Copyright =C2=A9 2018 G=C3=A1bor Boskovits ;;; Copyright =C2=A9 2018, 2019, 2020 Ricardo Wurmus @@ -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,7 @@ facilities for checking incoming mail.") (inputs `(("bzip2" ,bzip2) ("libsodium" ,libsodium) ; extra password algorithms + ("libunwind" ,libunwind) ("linux-pam" ,linux-pam) ("lz4" ,lz4) ("openssl" ,openssl) --=20 2.26.0 --=-=-=--