From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 8FEuMH8rhWJJCwAAbAwnHQ (envelope-from ) for ; Wed, 18 May 2022 19:23:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id WB0tMH8rhWLqNQAA9RJhRA (envelope-from ) for ; Wed, 18 May 2022 19:23:11 +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 31A0C18B39 for ; Wed, 18 May 2022 19:23:11 +0200 (CEST) Received: from localhost ([::1]:51822 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nrNOA-0002dA-1R for larch@yhetil.org; Wed, 18 May 2022 13:23:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35220) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrNO2-0002cx-Oq for guix-patches@gnu.org; Wed, 18 May 2022 13:23:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39508) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nrNO2-00069t-GR for guix-patches@gnu.org; Wed, 18 May 2022 13:23:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nrNO2-000515-Bo for guix-patches@gnu.org; Wed, 18 May 2022 13:23:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49607] [PATCH v3 1/3] gnu: idris: Use wrap-program to define IDRIS_CC Resent-From: Attila Lendvai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 18 May 2022 17:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49607 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Eric Bavier Cc: 49607@debbugs.gnu.org Received: via spool by 49607-submit@debbugs.gnu.org id=B49607.165289456919250 (code B ref 49607); Wed, 18 May 2022 17:23:02 +0000 Received: (at 49607) by debbugs.gnu.org; 18 May 2022 17:22:49 +0000 Received: from localhost ([127.0.0.1]:33405 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrNNp-00050Q-LW for submit@debbugs.gnu.org; Wed, 18 May 2022 13:22:49 -0400 Received: from mail-40136.proton.ch ([185.70.40.136]:42946) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrNNl-000509-Cz for 49607@debbugs.gnu.org; Wed, 18 May 2022 13:22:47 -0400 Date: Wed, 18 May 2022 17:22:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lendvai.name; s=protonmail3; t=1652894557; x=1653153757; bh=E6nv5YlbBQCPFgJPZit24lj1B+eyG40dN/7BKNcbpd4=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=QEeesS07ZL+59LjOkz62v3WpyRbtotqkEity2FJtUwHeXdbnSbZauIDBHJ50QEEmr MD7W2/XG9EcukfHao2MhNndQKeslx+7fKue79abskWvQoQkA/meD5Qux/A3b9xyV2C nsKAU7t0PGJ2GX/qkAWUBdzvlaDQtYrAHv/42HjOoK1dN8hHk8xZL7EZ4UYQ3KV8wh E7idBaXvRG6O15A/5LGwCn2LtEFb7rbjE7+5zG3NSKtpvXX1ESWMN5ONWu5dzqZN2z 8gZNYAV/Z8ZyNJ+zFStb+0HOUKc6DJdtwKwidNWssCRcW4DtwFqKJRBZYI13uljV15 cvtCwPMt9LajQ== From: Attila Lendvai Message-ID: In-Reply-To: References: <20220428132801.8629-1-attila@lendvai.name> Feedback-ID: 28384833:user:proton 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: , Reply-To: Attila Lendvai 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=1652894591; h=from:from:sender:sender:reply-to: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=E6nv5YlbBQCPFgJPZit24lj1B+eyG40dN/7BKNcbpd4=; b=rjtsttPm5WVy+Y05hraWdEEs+Wj4lHYS7RcMzVAsHsEk/qxtbwtemN/03ke8v/IbbAsOdM hgfsTcHBdJmkeupW1gk+vnv9PdLLmsSxoNwWxUMuX0e9Lj6v+tGBO2NuJwzo7o9/EWHAoT 9BzOax/tFUzSAt7DJmrsZX3c1jWGkRLXuLgBorAJOTLtDk/hoenalZqUOZj6aLFXfa05K1 ueP34P0KsR0+hUFJ2c+xPRipIcDji+/iVFBjsi36gqebgd/YsXSFu694Y7GQf7mNVcqa+R U/S1rT4oP8smADfffAztLyMejSmzvMOCbUX3oYFtV+Orx1d0V+c4g95jlKU5hA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652894591; a=rsa-sha256; cv=none; b=EHni/JSRMb61/Rw0VZBDUnnyDt31dDtrI8ua94uOcIsAdB2J+ACT11QWDBtNFmIlpJ7dCF pSE9rnlL1F/1ForT+21t30IQOGNVOeZQoodGu4V+asCesl86vSwEq8gvgSRaB2zrDtKVk3 pfAMQ/KJlpz0QyD14thKBaXay0xdbg/p5rdYT6ClkpLoPRV9jPzxL4xTCBnuYTG50t6TsW PjvqnQxFC9EVrNCztddnd9wIEQX0cKT1I33y6hJxCeITYUc+33VFXBJ20+k3kaSA3Kn7Gx vNbeRBTx1Ebh1JyJR8AM//Ar2qk47BlJvCywphm+3uYsvSpUHS2N24cHi6Q8Wg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lendvai.name header.s=protonmail3 header.b=QEeesS07; dmarc=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: 1.66 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lendvai.name header.s=protonmail3 header.b=QEeesS07; dmarc=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: 31A0C18B39 X-Spam-Score: 1.66 X-Migadu-Scanner: scn0.migadu.com X-TUID: zTTWYABMI9oJ > > * gnu/packages/idris.scm (idris) [inputs]: Add bash-minimal (for > > wrap-program). > > [phases]: Add wrap-program phase to define IDRIS_CC, use (cc-for- > > target). > > --- > > > I believe this would prevent someone from effectively setting > `IDRIS_CC` to a different compiler from within their environment, > correct? I would like to leave that option available to users. Also, good point! and i think you're correct, because wrapper scripts set the val= ue unconditionally. would it work if we set CC instead? idris first tries IDRIS_CC, and then CC= (and then falls back to "cc"). or would you prefer to use substitute* in the build to replace cc =3D "cc" = with a full path to gcc in the source code of idris? > can this be a simple compiler reference, or does it need to be a > "toolchain compiler"? i'm unable to answer that, i don't know the difference. i just noticed that i can't use idris as-is when trying the examples, becau= se it couldn't invoke the c compiler to produce executables. this is my att= empt at fixing this issue. -- =E2=80=A2 attila lendvai =E2=80=A2 PGP: 963F 5D5F 45C7 DFCD 0A39 -- If ethics are pure subjective preference, then rape is just competing prefe= rences.