From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id ENr1KdJF3WR4SQAASxT56A (envelope-from ) for ; Wed, 16 Aug 2023 23:55:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id KI4BKtJF3WQ5FAAA9RJhRA (envelope-from ) for ; Wed, 16 Aug 2023 23:55: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 9976D4A622 for ; Wed, 16 Aug 2023 23:55:29 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=FIo9oA4I; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1692222930; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: 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=yS0jq7VJwVGvDgl4K9rcK2sORM5THXwe03DYMdNjGHg=; b=otJyc+pBPsLE0qAA3S7GVnXSCT3xFdvX7TMJq5QEXQ+7R8tfWnBwqHCc78D7EsGMcBb2nL n8V5ztvBwHQwVhHy6aCfxaS65Of1mpP6qExI/zrJTYAKsUZ68Vh6bJ85O/GSA59UUo/Y8W dXasnzGe4Bk0BNbmHxNErH/UQf4AnVbpLRIl/Jp5TF1gisOgD9Wn8Y81VIpzR40c7I6fCu 5WOMhQXUcQYB7bg3sfozxvdngU9BanJegoMw9qcCp76OVI626YKXGHoM0DiIBoMTufN80T XVFdQNfQeLoxlAF3ZcqwPw3dvyPX7wWh3LZEjOLZ0X2SAinCUEHRVplbVTE1qw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=FIo9oA4I; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1692222930; a=rsa-sha256; cv=none; b=nM5FJeqkFpHut07WQJGjj6P46A2u6oJSg4wE71mBmRZD+9I+61GYtqRM4xxyrE36JlJ78C CxBEaxgiaIrC0qx4y/ra0aE65/f5jJwqLF3VauRQmeDyJH9u7PLJAsu5aTfIPNuv9WLGiS 3pL1EZfayTy6qzkvyNxBi6Ja6Lf4mLSoxQJ1+pqH50DXAro+H9gSeUC5wbG4YLhmf+Gp8Q SqA8apEi8UL86/iArNjL1gnbpicwb87LRSggfhZoUz7sSWwJt2xdttErNc9HNTj0nU82o3 PS/mm4UQuypC7hMvlrRRMkjNBaWaOTGfDS3O6+Tvdp4oX3CuIlh9GuyiwR4qIA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWOTu-0000l9-OE; Wed, 16 Aug 2023 17:55:10 -0400 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 1qWOTr-0000ka-UJ for guix-patches@gnu.org; Wed, 16 Aug 2023 17:55:08 -0400 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 1qWOTn-0002f9-EC for guix-patches@gnu.org; Wed, 16 Aug 2023 17:55:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qWOTm-000459-9n for guix-patches@gnu.org; Wed, 16 Aug 2023 17:55:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64874] [PATCH] guix: tuned-package: Use target on cross-compile. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 16 Aug 2023 21:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64874 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Simon Tournier Cc: 64874@debbugs.gnu.org, dev@jpoiret.xyz, mail@cbaines.net, othacehe@gnu.org, me@tobias.gr, Jean-Pierre De Jesus DIAZ , rekado@elephly.net Received: via spool by 64874-submit@debbugs.gnu.org id=B64874.169222285715633 (code B ref 64874); Wed, 16 Aug 2023 21:55:02 +0000 Received: (at 64874) by debbugs.gnu.org; 16 Aug 2023 21:54:17 +0000 Received: from localhost ([127.0.0.1]:42283 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWOT3-000444-0D for submit@debbugs.gnu.org; Wed, 16 Aug 2023 17:54:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46360) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWOSz-00043q-PN for 64874@debbugs.gnu.org; Wed, 16 Aug 2023 17:54:15 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qWOSq-0002PP-JG; Wed, 16 Aug 2023 17:54:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=yS0jq7VJwVGvDgl4K9rcK2sORM5THXwe03DYMdNjGHg=; b=FIo9oA4IqcZ9gsFP7wk+ JufFS5sgrY35rCzfItOm71RggG3CdrYB6rk6sJdBiFFNaA1SvGgKla3Db9FVyhgLzyQLaAO29ImEg D3gydbIIUPJqVm2Kr5VMlnQRVjueINzIb2r5ciObz3yv3uB4D4N3o37Z05Chy2tkw07rQeSqaOcUs eKxSQiVMHQs9Zn9XjBEC7jhggH7yhyroMUeHdebd5Xv8KRUcAbssi9YBT5tIELi4DCO1Mjcl8qkWI JwQwvvkYfDsSe3jwXwXcGkHnzz3/cSE59fj18AC/n7TX5R2pG7NE8LVfNivmwLe0ZFD7bV6ELYRRC 1rFOD45DEwsRKQ==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20230726153729.4147922-1-jean@foundationdevices.com> <87r0o3dj6v.fsf@gmail.com> Date: Wed, 16 Aug 2023 23:54:01 +0200 In-Reply-To: <87r0o3dj6v.fsf@gmail.com> (Simon Tournier's message of "Wed, 16 Aug 2023 18:51:36 +0200") Message-ID: <87y1ia1wna.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: -5.39 X-Migadu-Queue-Id: 9976D4A622 X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -5.39 X-TUID: mkScLnZiLp89 Hi, Simon Tournier skribis: > On Wed, 26 Jul 2023 at 17:37, Jean-Pierre De Jesus DIAZ via Guix-patches = via wrote: >> * guix/transformations.scm (tuned-package): Use either bag-target if >> available or bag-system to select the CPU architecture of the package >> that is going to be tuned. This enables the tuning of cross-compiled >> packages. >> >> Signed-off-by: Jean-Pierre De Jesus DIAZ >> --- >> guix/transformations.scm | 5 +++-- >> 1 file changed, 3 insertions(+), 2 deletions(-) >> >> diff --git a/guix/transformations.scm b/guix/transformations.scm >> index 92d9c89c0e..76d0208bf1 100644 >> --- a/guix/transformations.scm >> +++ b/guix/transformations.scm >> @@ -510,8 +510,9 @@ (define (lower* . args) >> ;; leading to an obscure build error, check whether the compiler is= known >> ;; to support MICRO-ARCHITECTURE. If not, bail out. >> (let* ((lowered (apply lower args)) >> - (architecture (match (string-tokenize (bag-system lowered) >> - %not-hyphen) >> + (target (or (bag-target lowered) >> + (bag-system lowered))) >> + (architecture (match (string-tokenize target %not-hyphen) > > Ludo, WDYT? LGTM, thanks for the heads-up! Ludo=E2=80=99.