From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6AmBFErrZ2JiSgEAbAwnHQ (envelope-from ) for ; Tue, 26 Apr 2022 14:53:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 0LOVE0rrZ2I36AAAG6o9tA (envelope-from ) for ; Tue, 26 Apr 2022 14:53:30 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E6BE820CF2 for ; Tue, 26 Apr 2022 14:53:29 +0200 (CEST) Received: from localhost ([::1]:38168 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1njKh6-0002uB-9w for larch@yhetil.org; Tue, 26 Apr 2022 08:53:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43892) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njKav-0007B9-7S for guix-patches@gnu.org; Tue, 26 Apr 2022 08:47:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43663) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1njKau-0007VE-QA for guix-patches@gnu.org; Tue, 26 Apr 2022 08:47:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1njKau-0004lS-OS for guix-patches@gnu.org; Tue, 26 Apr 2022 08:47:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55125] [PATCH 3/9] gnu: tabixpp: Use build tools specific to the target. Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 26 Apr 2022 12:47:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55125 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55125@debbugs.gnu.org Cc: Arun Isaac Received: via spool by 55125-submit@debbugs.gnu.org id=B55125.165097721517819 (code B ref 55125); Tue, 26 Apr 2022 12:47:04 +0000 Received: (at 55125) by debbugs.gnu.org; 26 Apr 2022 12:46:55 +0000 Received: from localhost ([127.0.0.1]:37545 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1njKak-0004cz-Un for submit@debbugs.gnu.org; Tue, 26 Apr 2022 08:46:55 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:36276) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1njKac-0004UU-4r for 55125@debbugs.gnu.org; Tue, 26 Apr 2022 08:46:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=/OUzdve/5HL9X23RaxaqmcffQxA0zHZXvNefqSAy2to=; b=fxfK4RtmUnurjf3IfXF4eVjFhe 5zhw1edM9036240fKT8RJBVbq0Jyigr6ljvNW+kYONkT1a4sft+5D0zv7lvrkJlineKB815mJR6HG kssTtJohg75qkyXygnqpZHR0Up3dN9hsUjqOSKDAHc9gr8ApuwuSn1TQ6lA1jGqAdLZlwauxARhl9 Ru0Qo9cBhV6VZ+Cq4fPOGuA37rTjIYy5razTpbZZ1djrSb3aHGaa2RMxNzXXMqg18k/fHBPIeH9Po EYU9eZQ16EBvIUCPtFUm+v0UPa47mb7pdSMI5XYR2CALrTkz6qmO8QYgRGRi64zyG5aorlL0fs7Cz ZE90ZucA==; Received: from [192.168.2.1] (port=53438 helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1njKaZ-000HJN-MB; Tue, 26 Apr 2022 18:16:43 +0530 From: Arun Isaac Date: Tue, 26 Apr 2022 18:16:33 +0530 Message-Id: <20220426124639.17159-3-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220426124639.17159-1-arunisaac@systemreboot.net> References: <20220426124639.17159-1-arunisaac@systemreboot.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1650977609; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=/OUzdve/5HL9X23RaxaqmcffQxA0zHZXvNefqSAy2to=; b=IZdMk49NJ95hgcGl9yhQ8Uins8XIyDTc/z2zNyEgOEf+V1rVfiMd6dyO1nB2D25G8pIeeW 7dfsPj7aaAdcMulLTvUw3hNfa6GCouTQWtFmta2kIeTdSiHdaL9BkAZ5YveebTBLOxpZS6 2hBaZuAv+00/hRbtCva6O5IGrlhPtafZkC2+8jTB9IDDIWkoh45wQHTr/D0eqbeBLc6SRr RRyhS/bhXcExByK47WUzguwnEM9VokKFQjkotSbvbv1zzqnOYKxmQB6IayBwn1xR16U7mT rff0FsyoIJ2kFADJbzB+WfrONumxvguihr3F483fVugdaVsTmJNajhUfTGaJGQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650977609; a=rsa-sha256; cv=none; b=SKANT4YDkArjO5i0QnZ0vRehu7WCy6BY+cuBGQfkDW/WYK+b13QxxTn4+kkSJIHULkevJb fzXG8gFouvYa+Sc9jz4cmB876ej4yZciQ5vWctiuIUYXdjcJlhQ1B45+7ykNYKh6KMMIop 7nTViK2TVbLcnfiOpZq9bupqyLMiZUmt2R/qXnVIa9LHzLt6cRqQ79xhHLJXPSXKS6q7OA KzA7vaUBnL35MWIO24d9X9j6rzo0AkCulTISILFtEAvscn8fso5gaXM9qzRuXiXkhtvVwC +7PLD7vThXyHmPF7WRGYDIBOqJSAFvVSDiKYkQuQzHCOdP7gDxFDGnY745Ua6w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=fxfK4Rtm; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 7.49 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=fxfK4Rtm; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: E6BE820CF2 X-Spam-Score: 7.49 X-Migadu-Scanner: scn1.migadu.com X-TUID: W1emKJMF0gt1 * gnu/packages/bioinformatics.scm (tabixpp)[arguments]: Set CC and CXX in #:make-flags. In the build-libraries phase, use cxx-for-target instead of g++ and ar-for-target instead of ar. --- gnu/packages/bioinformatics.scm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm index 6c24c1c26f..e745fa9353 100644 --- a/gnu/packages/bioinformatics.scm +++ b/gnu/packages/bioinformatics.scm @@ -14279,7 +14279,9 @@ (define-public tabixpp (inputs (list htslib zlib)) (arguments - (list #:make-flags #~(list "HTS_HEADERS=" + (list #:make-flags #~(list (string-append "CC=" #$(cc-for-target)) + (string-append "CXX=" #$(cxx-for-target)) + "HTS_HEADERS=" (string-append "HTS_LIB=" (search-input-file %build-inputs "/lib/libhts.a")) @@ -14291,8 +14293,9 @@ (define-public tabixpp ;; Build shared and static libraries. (add-after 'build 'build-libraries (lambda* (#:key inputs #:allow-other-keys) - (invoke "g++" "-shared" "-o" "libtabixpp.so" "tabix.o" "-lhts") - (invoke "ar" "rcs" "libtabixpp.a" "tabix.o"))) + (invoke #$(cxx-for-target) + "-shared" "-o" "libtabixpp.so" "tabix.o" "-lhts") + (invoke #$(ar-for-target) "rcs" "libtabixpp.a" "tabix.o"))) (replace 'install (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) -- 2.35.1