From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id sIIdAN4e1F7lMgAA0tVLHw (envelope-from ) for ; Sun, 31 May 2020 21:17:18 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id SD50N90e1F7sTwAAbx9fmQ (envelope-from ) for ; Sun, 31 May 2020 21:17:17 +0000 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 38075940C01 for ; Sun, 31 May 2020 21:17:17 +0000 (UTC) Received: from localhost ([::1]:36248 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jfVKU-0007OM-OI for larch@yhetil.org; Sun, 31 May 2020 17:17:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54060) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jfVKI-0007O4-1H for bug-guix@gnu.org; Sun, 31 May 2020 17:17:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50666) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jfVKH-0007Cc-OB for bug-guix@gnu.org; Sun, 31 May 2020 17:17:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jfVKH-00087U-JE for bug-guix@gnu.org; Sun, 31 May 2020 17:17:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#41569: build systems cannot set default outputs other than "out" Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 31 May 2020 21:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41569 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ricardo Wurmus Received: via spool by 41569-submit@debbugs.gnu.org id=B41569.159095977731152 (code B ref 41569); Sun, 31 May 2020 21:17:01 +0000 Received: (at 41569) by debbugs.gnu.org; 31 May 2020 21:16:17 +0000 Received: from localhost ([127.0.0.1]:33979 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jfVJY-00086O-Qy for submit@debbugs.gnu.org; Sun, 31 May 2020 17:16:17 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46588) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jfVJW-00086B-GX for 41569@debbugs.gnu.org; Sun, 31 May 2020 17:16:15 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:60838) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jfVJR-00079u-2j; Sun, 31 May 2020 17:16:09 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=49924 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jfVJQ-0004J1-MM; Sun, 31 May 2020 17:16:08 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87r1v5hw9r.fsf@elephly.net> Date: Sun, 31 May 2020 23:16:07 +0200 In-Reply-To: <87r1v5hw9r.fsf@elephly.net> (Ricardo Wurmus's message of "Thu, 28 May 2020 00:02:08 +0200") Message-ID: <87blm3rejs.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.4 (--) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 41569@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: J4bPzdgJnl4j Hi, Ricardo Wurmus skribis: > For the haskell-build-system I want to offer two outputs by default: > "out" and "static". However, the build system has no way to override > the default as (@ (guix packages) package->bag) passes the package=E2=80= =99s > =E2=80=9Coutputs=E2=80=9D value to make-bag. Ah. > When the package doesn=E2=80=99t define a value for =E2=80=9Coutputs=E2= =80=9D, the default > '("out") is used. I suggest removing the default value from the > record, so that the build system defaults have a chance. Problem is, we don=E2=80=99t want to add an =E2=80=98outputs=E2=80=99 line = to each and every package definition. So how can we deal with that? We could have a special trick where =E2=80=98outputs=E2=80=99 defaults to a= special value and =E2=80=98package-outputs=E2=80=99 actually asks the build system = what the default outputs are. Thoughts? Ludo=E2=80=99.