From patchwork Mon Jul 8 09:58:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Othacehe X-Patchwork-Id: 14507 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 22180171D4; Mon, 8 Jul 2019 11:00:17 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id DFA47171D2 for ; Mon, 8 Jul 2019 11:00:16 +0100 (BST) Received: from localhost ([::1]:39990 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hkQRU-00058s-HC for patchwork@mira.cbaines.net; Mon, 08 Jul 2019 06:00:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54711) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hkQRN-00054V-I0 for guix-patches@gnu.org; Mon, 08 Jul 2019 06:00:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hkQRM-000328-9v for guix-patches@gnu.org; Mon, 08 Jul 2019 06:00:09 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49036) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hkQRM-00031a-0w for guix-patches@gnu.org; Mon, 08 Jul 2019 06:00:08 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hkQRL-0004sr-Ry for guix-patches@gnu.org; Mon, 08 Jul 2019 06:00:07 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#36477] [PATCH 03/31] gnu: tcl: Fix cross-compilation. Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 08 Jul 2019 10:00:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36477 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 36477@debbugs.gnu.org Received: via spool by 36477-submit@debbugs.gnu.org id=B36477.156257997718365 (code B ref 36477); Mon, 08 Jul 2019 10:00:07 +0000 Received: (at 36477) by debbugs.gnu.org; 8 Jul 2019 09:59:37 +0000 Received: from localhost ([127.0.0.1]:57784 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hkQQr-0004m3-94 for submit@debbugs.gnu.org; Mon, 08 Jul 2019 05:59:37 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:44621) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hkQQm-0004kl-PO for 36477@debbugs.gnu.org; Mon, 08 Jul 2019 05:59:33 -0400 Received: by mail-wr1-f67.google.com with SMTP id p17so5159263wrf.11 for <36477@debbugs.gnu.org>; Mon, 08 Jul 2019 02:59:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=XqNcqaxkpT6JyalP0iHPkZxQ3VtctCa2cpSRm18Leuw=; b=bhBUeNNq3UCTJUoZsMO0RkSKClMfwT3Y/q/iJlpTGuE26Mo3SxqU7rLJIh29Vo2+hc T0AbPt4MAoBVycIaONxjmg1sVQLMETf7uzlQHgiZl+wxxEBybs56eNqZSHullhw33Urx dVeJqG36Ce4fGbAiX4/tTeVSELqx3e4cw2QH+QzCaKmEikJrijqnx9V2Kr/N2cr7v4HG H0BTc798j8YtNKNRYX+LLKvw4jHelUcE/uzW4bLqWn8TxqCkVEWFRllTZt8enSvEh/LG tgIPDda442kjN77OFICYD1YsJI4AwnD/WX0NGFUNtFCh4vgZBKAGw8PJKxh7nyZaFo3G BGdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=XqNcqaxkpT6JyalP0iHPkZxQ3VtctCa2cpSRm18Leuw=; b=flaRckKPQgMNQ/sGxb3BLlMY85ZAABp4ifKXOlB+aYrzV3nN+O3VDbFU7L6rSvG0HQ TXG3dJFrREFnHCU/9ODAhIP4V1PK/8JdGuzCMSliTK+w6QOK+qTR4CdHQ8Rr1aXuQe0M DT0+z/RBJMhTpyr+cY8FwbnBTWK7G3kuiKfpmNYHpFhMSSAUHGSJKlRrXG7+nNDHhAZ3 BwyFj4uib7FZNtPwbIXiN1ulRK2CzYoboQ46sZHguVLdMGndsPZvOkgCtMD4lUVNWBPn CT+URlAxYVvZOIoI0eOhONfMuXhr3egV2Ld8/JcAY8YYKFOskHDoJEgzqwbAkTXJoQuf d0JQ== X-Gm-Message-State: APjAAAWDKvXRXJNWlVnpcbqI56sbIoo94Yj5UyMJ5iDVL6DP+i9Eu3Xw TcUFT9KwY/XUogZP91SKrl0gVUhO X-Google-Smtp-Source: APXvYqxgF6cONzs+IC47y2DYY8fcF4gm8rv+ZinJPst57UjinBmPGMdcLcXiwvlU1LSoNpj374wFgA== X-Received: by 2002:a5d:4c86:: with SMTP id z6mr13010353wrs.330.1562579966711; Mon, 08 Jul 2019 02:59:26 -0700 (PDT) Received: from fuji.Parrot.Biz (smtp.parrot.biz. [62.23.167.188]) by smtp.gmail.com with ESMTPSA id i66sm3165127wmi.11.2019.07.08.02.59.25 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 08 Jul 2019 02:59:26 -0700 (PDT) From: Mathieu Othacehe Date: Mon, 8 Jul 2019 11:58:45 +0200 Message-Id: <20190708095913.3460-4-m.othacehe@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190708095913.3460-1-m.othacehe@gmail.com> References: <20190708095913.3460-1-m.othacehe@gmail.com> 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: , Cc: Mathieu Othacehe Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/tcl.scm (tcl)[arguments]: Add configure flags to fix cross-compilation. --- gnu/packages/tcl.scm | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/gnu/packages/tcl.scm b/gnu/packages/tcl.scm index 4840ac4e10..fc955cf649 100644 --- a/gnu/packages/tcl.scm +++ b/gnu/packages/tcl.scm @@ -53,7 +53,7 @@ "0sprsg7wnraa4cbwgbcliylm6p0rspfymxn8ww02pr4ca70v0g64")))) (build-system gnu-build-system) (arguments - '(#:phases (modify-phases %standard-phases + `(#:phases (modify-phases %standard-phases (add-before 'configure 'pre-configure (lambda _ (chdir "unix") #t)) (add-after 'install 'install-private-headers @@ -73,9 +73,16 @@ ;; PREFIX/share/man. The 'validate-documentation-location' phase is ;; not able to fix this up because the default install populates both ;; PREFIX/man and PREFIX/share/man. - #:configure-flags (list (string-append "--mandir=" - (assoc-ref %outputs "out") - "/share/man")) + #:configure-flags + (list (string-append "--mandir=" + (assoc-ref %outputs "out") + "/share/man") + ;; This is needed when cross-compiling, see: + ;; https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=719247 + ,@(if (%current-target-system) + '("tcl_cv_strtod_buggy=1" + "ac_cv_func_strtod=yes") + '())) ;; XXX: There are a few test failures (related to HTTP, most ;; likely related to name resolution), but that doesn't cause