From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id kD/VI7eaaWfIXQEA62LTzQ:P1 (envelope-from ) for ; Mon, 23 Dec 2024 17:15:35 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id kD/VI7eaaWfIXQEA62LTzQ (envelope-from ) for ; Mon, 23 Dec 2024 18:15:35 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=Pk02wmLc; dkim=fail ("headers rsa verify failed") header.d=qq.com header.s=s201512 header.b=ykMxbbKY; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734974135; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=Z/i7igEGWbOa/yBF9Gue1t+0Cne+PRwHHo4pmcaHVvE=; b=h5JSgc8PzPCCwvPsdWa8Mjo8FRpk3IXhREP36e9o6I0qhaeAyHpx67J9/q+N7+YbQIyZxh cQlujIdHz/ep16smHtCg16tNKC1rFnE7Xgt+l3CE/H5vRNB7A4pm3ILB0OYSqbiggvJd7i ejTMOBQCJzWCkocbYjqkpq6ifgLuZqC7p1k+82rdVgYUQqircvRUDLIaqJhl00Iru2lzdo hmeuB+VuvdLthoFjXQmWZvQOx1XbKkOcttrCD0fXLxrwr2Ly84jMIPTfB+uOnJUP+6hST7 Klok0NqAHdJzqStFoFn8EFfUfaDlrsfTxOwqOn/4GRtEsIMWMPJXTVp2V3ICfw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=Pk02wmLc; dkim=fail ("headers rsa verify failed") header.d=qq.com header.s=s201512 header.b=ykMxbbKY; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734974135; a=rsa-sha256; cv=none; b=M9OnmIadivcohX5+LBP2ceqQxhx+kfyQHWLe3oR4pzxOdEVqSSRVCTd/3G/5vFoY23RTnB HL1x4S9nnpe8GNp+DQJgepqgIndrL7qoTrsJP3D+2ziVq4XSwU+uxNpD73J/8ot7r2UFpM EW0YjCPsAMPE96fwSlubcxHogGE2Eag3ahfNaAO4azsQUGL1hzfib/FHZanjzmjL7Pz0P/ Ht1NYCR0E1K7DTFbPoc5CBSlWkz9X4Tz8OwDW269oCF/djjZZaJ+wxHmOuTdDHBjbNyaN5 3bqphCiLsJyPvcsYko9ovGgU9YtumDPYWRscsqKXQzdl5aMNw3yvQdT7GSNoTA== 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 1DA368904E for ; Mon, 23 Dec 2024 18:15:35 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPm1K-0000nc-De; Mon, 23 Dec 2024 12:15:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tPm1H-0000j6-48 for guix-patches@gnu.org; Mon, 23 Dec 2024 12:15:03 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tPm1G-0001az-O9 for guix-patches@gnu.org; Mon, 23 Dec 2024 12:15:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=Z/i7igEGWbOa/yBF9Gue1t+0Cne+PRwHHo4pmcaHVvE=; b=Pk02wmLc08tGP9IzGxdSH+dUmnwMiEU8exbxj70xpVhq3EtnsROhkglomEppUPAKnqtLsc1XavWYvzo0QDen46qBOJW4VAtb5fF1UM30qCge70T9IKA8MIeLAX/6E6O6Q+sUxWxF/LW398Ql8w+3ZTY33S3l9PCElKAV/hgsizeKhtMC/pQ8zG1SypfKy8GQ0Z+KLyU2qvkXmRev8qWC1HO61B57mPG2kzCkYqHjlYWTvAPYd07SJXzXn1xWTQuUffhDKE2OUxqogLJ/cxwRe82c4a+vEVb2vHG9l/MbMy0BhFiMGSVSb+N+qsRriTr3AjfiKjzORaJDTiAfr1j+EQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tPm1G-000859-I9 for guix-patches@gnu.org; Mon, 23 Dec 2024 12:15:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75051] [PATCH 14/14] gnu: elfutils: Fix cross-compiling to loongarch64. Resent-From: Zheng Junjie <873216071@qq.com> Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 23 Dec 2024 17:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75051 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 75051@debbugs.gnu.org Received: via spool by 75051-submit@debbugs.gnu.org id=B75051.173497406230979 (code B ref 75051); Mon, 23 Dec 2024 17:15:02 +0000 Received: (at 75051) by debbugs.gnu.org; 23 Dec 2024 17:14:22 +0000 Received: from localhost ([127.0.0.1]:55914 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPm0b-00083a-JK for submit@debbugs.gnu.org; Mon, 23 Dec 2024 12:14:21 -0500 Received: from out162-62-58-216.mail.qq.com ([162.62.58.216]:52185) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <873216071@qq.com>) id 1tPm0Y-000836-Rw for 75051@debbugs.gnu.org; Mon, 23 Dec 2024 12:14:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1734974051; bh=Z/i7igEGWbOa/yBF9Gue1t+0Cne+PRwHHo4pmcaHVvE=; h=From:To:Subject:Date:In-Reply-To:References; b=ykMxbbKYngauhm/vh6luKiPHHbxZJZvvgW//fxsTk+hCNeuzYHg7tnjQQ2Lfa/t07 Iu/+CUQhyx6aYfvNXrybf696gUUPhDAibdTKlQaxk/GQxc6co1Z04KAbCvX2v161kP bNrUWXJBlMUtgbbt5EHVS3Q4OEVOnkhmYmiKOZ3A= Received: from m.tailaa68d.ts.net ([240e:391:ebb:8120:ac72:f386:b183:419a]) by newxmesmtplogicsvrszb21-0.qq.com (NewEsmtp) with SMTP id 38A3BA9F; Tue, 24 Dec 2024 01:14:10 +0800 X-QQ-mid: xmsmtpt1734974050t6q5cessk Message-ID: X-QQ-XMAILINFO: M58CI+QHpTsk9y5utCB+ZPys/EOIVkzEUeDZh/AlrFYikliYE00Iw6UeYLARrj kWVOdLbQqaqe9zqEdRi4oVF6RIIbaElM1+5k86NvWojq08YHjWkDqu3JMIX+IdFIew+Fz/soWTEF 2IHwmPNzOeDqvHcQBGaIFOdv9dTeoLSh+BCQZ/X8NVz8Ro7aDXcXvbmbKMVbdciJCB8mCBHmUgmd 0fWX27XAOq52NQ3jqm5gPEZBT1ixWB7hX8mN1TqTqdoqzrz6sY2AJMQBLcotkqNALLe0ovTDOwfG HHcd59hQlTloiBedl1TI7+H2L+7pDzk8SQhq/cls2GwbWGTt70RH+KxniMjZiCbthKN/HIsnCYBO tqzYLlPveywRqRjhdqzRzg/FdTKljBIRzHXQ8UE233MteeIbdNNgSXkQ4r2zfC/HrbCdDppOKI5N cadm3Pouz0t4fVzr4t+yWjDB7sbLP71EJSzSA5tgwAI61PW/gMVl0dSozTF84TePQNUEXNjuKL/D U7ODO3gQ+mZNrOOVRHHdZoE7q+UjI4hgQMozIusXL8yNKWaE+d0alUpR04wJmCNqmRF6C7H47Cd0 0s05XenwvrotufIixD1/EtuMcJ5czCMIL+yAu7b3kR3Fg3WRwA9z7tnicooMOs6o1Z250kUHvXKZ MXEZYQ6eA7AEtG9YWuYAjl5yDjOEl+kwxx32U31shVtovzYtLpOhfxibq3AQKB6Oonn74avr13Si YvCRwyczwbKuwofg+SQJN8MWJXPFtRB7hm12wsKyMlPCZ8CAR1MGzygAKIN7wgLxh2wGeo6RrmdI neYsfqcPSfgCCYYUZvCJVlGVW7bL8dD5TsQJSfteaaxuWGdRxKQ/GRMW+l2Ehtb9IA3UTWDOKJw6 CELbhpqQZWVm+IhSU/6nRhHr2dk+Es94lz+xMAKcdhfI0B4mY2xoboHODbN02CJ+kHA6u2SyBcrH RmmxAKzEtWhxS4xEeeBQ== X-QQ-XMRINFO: OD9hHCdaPRBwq3WW+NvGbIU= Date: Tue, 24 Dec 2024 01:14:10 +0800 X-OQ-MSGID: <8bf2351696815b348b2b844de66de9a50f7bb0b3.1734972657.git.873216071@qq.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: References: 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: , Reply-to: Zheng Junjie <873216071@qq.com> X-ACL-Warn: , Zheng Junjie via Guix-patches From: Zheng Junjie via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -3.21 X-Spam-Score: -3.21 X-Migadu-Queue-Id: 1DA368904E X-TUID: WO6XcDpED7Lz * gnu/packages/elf.scm (elfutils)[native-inputs]: When cross-compiling to loongarch64, add config. [arguments]: When cross-compiling to loongarch64, Add update-config-scripts phase. Change-Id: I0a0b4faa8594ecca2344eb4b15392e4355e79e45 --- gnu/packages/elf.scm | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/gnu/packages/elf.scm b/gnu/packages/elf.scm index 8f036ab2211..57d26a9f0d8 100644 --- a/gnu/packages/elf.scm +++ b/gnu/packages/elf.scm @@ -120,6 +120,18 @@ (define-public elfutils (("run-strip-strmerge.sh") "") (("run-elflint-self.sh") ""))))) #~()) + #$@(if (and (target-loongarch64?) + (%current-target-system)) + `((add-after 'unpack 'update-config-scripts + (lambda* (#:key inputs native-inputs #:allow-other-keys) + ;; Replace outdated config.guess and config.sub. + (for-each (lambda (file) + (install-file + (search-input-file + (or native-inputs inputs) + (string-append "/bin/" file)) "./config")) + '("config.guess" "config.sub"))))) + '()) #$@(if (system-hurd?) #~((add-after 'unpack 'skip-tests (lambda _ @@ -151,8 +163,10 @@ (define-public elfutils (search-patch "elfutils-libdwfl-string-overflow.patch")))))) #~())))) - - (native-inputs (list m4)) + (native-inputs (append (if (target-loongarch64?) + (list config) + (list)) + (list m4))) (inputs (list xz zlib)) (home-page "https://sourceware.org/elfutils/") (synopsis "Collection of utilities and libraries to handle ELF files and -- 2.46.0