From patchwork Thu Apr 16 17:13:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pierre Langlois X-Patchwork-Id: 21301 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id E00C027BBE4; Thu, 16 Apr 2020 18:14:42 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 617E527BBE1 for ; Thu, 16 Apr 2020 18:14:42 +0100 (BST) Received: from localhost ([::1]:37280 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jP865-0001xF-JC for patchwork@mira.cbaines.net; Thu, 16 Apr 2020 13:14:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35826) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jP85T-0001vK-Ux for guix-patches@gnu.org; Thu, 16 Apr 2020 13:14:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jP85S-0000w9-OA for guix-patches@gnu.org; Thu, 16 Apr 2020 13:14:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55981) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jP85S-0000vu-Kd for guix-patches@gnu.org; Thu, 16 Apr 2020 13:14:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jP85S-0007fp-Fe for guix-patches@gnu.org; Thu, 16 Apr 2020 13:14:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40556] [PATCH] gnu: dovecot: Add libunwind input. Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 16 Apr 2020 17:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40556 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?utf-8?q?Court=C3=A8s?= Cc: Pierre Langlois , Tobias Geerinckx-Rice , 40556@debbugs.gnu.org Received: via spool by 40556-submit@debbugs.gnu.org id=B40556.158705723229470 (code B ref 40556); Thu, 16 Apr 2020 17:14:02 +0000 Received: (at 40556) by debbugs.gnu.org; 16 Apr 2020 17:13:52 +0000 Received: from localhost ([127.0.0.1]:39294 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jP85E-0007fA-Cu for submit@debbugs.gnu.org; Thu, 16 Apr 2020 13:13:52 -0400 Received: from mout.gmx.net ([212.227.17.21]:47223) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jP85A-0007eu-9d for 40556@debbugs.gnu.org; Thu, 16 Apr 2020 13:13:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1587057204; bh=DVVeVCaCOuwDXQ1aghKoX289QluRxgQ5m5s4PyuIeYs=; h=X-UI-Sender-Class:References:From:To:Cc:Subject:In-reply-to:Date; b=J53bknc3jDgQPcJfQnT0SsDwnatBeFtqX87ZqixqVwIAU7KgJZ0+6VUH2HCt7hOUp 3m1ExlyQ5qaCHwD7I/uXgz3KbC7XyVu7IY5R2bnd+eOhjxJEu4hlG3iR7xQfKp2Rsx FOmJviQCL5KEsPbTQ2ANEKJf3wyLtS1IZNyzoFVc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from e119807-lin ([77.133.16.25]) by mail.gmx.com (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MCbEp-1jYmqO2vHn-009gKI; Thu, 16 Apr 2020 19:13:24 +0200 References: <87ftdahvut.fsf@gmx.com> <875ze6ngmg.fsf@nckx> <87eesuhsl2.fsf@gmx.com> <877dyfgzzb.fsf@gnu.org> User-agent: mu4e 1.2.0; emacs 26.3 From: Pierre Langlois Message-ID: <87y2qvs6ar.fsf@gmx.com> In-reply-to: <877dyfgzzb.fsf@gnu.org> Date: Thu, 16 Apr 2020 19:13:21 +0200 MIME-Version: 1.0 X-Provags-ID: V03:K1:sVQsEABzh1t7nr/m2ddLKL602EtJ9TAm3y29KQ3zeGR0iYLAmHI hJfuSWrhAkMTRjfBvqLxkGxfTqML2nL+Dp7E64cg09ZEM7fwPTgWiQxCuuWDotYHQk2kS32 NUchU8w8Q8UnAW025GuH0bkKQtGo6IMdNf8n/LZBgTuhNb+lmDPK/3d0VOteXTYmVNZnSme DP2pfKEKJxt4jnxFfTnZg== X-UI-Out-Filterresults: notjunk:1;V03:K0:oTxZadCuzAM=:PpEhwtiYNf99G/N5ZLg8qt RspShXTQ4cVQRqnLJUEG5rzuqJ0jBbITC5tJzQWehszRe32qV0gPUl1N+ythrWvjg0dzH1jbb h2oZd5liwrV/eU2tswkWy3mKnTr1uNzDFgjnED2yIh4faL3mBr9WMC1Jpzn+EPd/N6rARBBcP nfvUdCa37PJGIvn+y4mYX/b8dwlzUdv+Pk6oQO8lng1EKQ1QT+jrGqAoZanFljjUd/Z5BJeJJ U/toKBJkBdrrhMFtmCUPKalh0PfbDfsk28o1blV7P0ZKaN6pPGQsZw90gz7r+n6oOibMhiypj FWsyURT4EGQqwjLExmIzpgRioRGll4n2cm75EPA6Wza6K4Zyi4BcE9JGmohUAAbLYyjH8tgz/ 5QDo9befbDz0oZYqLb2YcABPKj5Am4jKormBXvg3ZRTtOri9R7dZGo+icomghOxZ9oMeEcaEd dZGbOk+u0e+ePCmu6jTjJSSSADZBKBVuIB3QeqWAkiXo5qIAEganaoTlXplQf+MkusnUVnJTV 7wVIbw3QAEaOxPtnLXpXBI9kUYZJgAixeezWGMsxJ1OtT+smYwjQMa2qlQoGDzntdYDH2OJfN lpiXPrvhYstP2UBroXX1E2KonXpl+kZ/+lbq64B9bBFyhNTxH/YwAgmQQ0pYkNBBwx1Utfpcl mU5iQfRC4D3ZKtCmCHd18I8zTgeSeTiKZVft/o0PP0HMritCtlf2AUyTy061zvr/xS0ETImmu rrApoqbuDBXcnrSM9bdqxPDITG1Bq9T/a0xCuTznRKXOpVjf7Kl4cqmSeHmJIPpcDMjKi6MpX fxH6Eos+ahI9E70viGJVVUhBlbWQ9UUnTV9sqVfRCT15hvq/Ahctsr5u1nq8fuAvbAGlhJZEO W7UjyGqWD0qkjuXfFaDjdFS4p5sFj9p/QjQCVfBCOB0CDYja5RovrCsB8c6d0G+qdcXyIN/zF 5o7br60qTuLKLnSKwe8KGFDP6hK80BjK2OEPLak55LDH177W/V+pmkeg35A29yqNZBKt00m3N HPI8cGRCbNW+DXoDzoSGKW72KCjZ72p0PUQLZoE4BahblQRTblZH870d5BET2ehbPsPxs/ocb hOak9i7QWLE7FlkfbpUF6Ddy6bL+I+xfoZwYfvBdGS0E3tD6zyrs7+6Qo14n85B8PSx+hwnrp XITslSOW5H0RYu39AGy50i2ONCJLeCARdX+Ey+hq0Mgo1lOOQlolNkBY0T2MoVV/PDySag0M3 TYvbThmHz1oXmZAjl X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hi Ludo! Ludovic Courtès writes: > Hi, > > Pierre Langlois 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 From d56005a2d839e36cd9f718041d8634f34cf2177a 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 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 ;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice ;;; Copyright © 2017, 2018 Rene Saavedra -;;; Copyright © 2018, 2019 Pierre Langlois +;;; Copyright © 2018, 2019, 2020 Pierre Langlois ;;; Copyright © 2018 Alex Vong ;;; Copyright © 2018 Gábor Boskovits ;;; Copyright © 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,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