From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id MgNqA2wxV1+nKAAA0tVLHw (envelope-from ) for ; Tue, 08 Sep 2020 07:23:24 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id sP7KOmsxV19NZQAA1q6Kng (envelope-from ) for ; Tue, 08 Sep 2020 07:23:23 +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 958E99404C5 for ; Tue, 8 Sep 2020 07:23:23 +0000 (UTC) Received: from localhost ([::1]:35470 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kFXyM-0006YW-GN for larch@yhetil.org; Tue, 08 Sep 2020 03:23:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47754) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFXyE-0006YO-Mf for guix-devel@gnu.org; Tue, 08 Sep 2020 03:23:14 -0400 Received: from hera.aquilenet.fr ([2a0c:e300::1]:49332) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFXyC-0002rk-JX for guix-devel@gnu.org; Tue, 08 Sep 2020 03:23:14 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id CB2832639; Tue, 8 Sep 2020 09:23:07 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oN3_jfZuJ7Qv; Tue, 8 Sep 2020 09:23:07 +0200 (CEST) Received: from jurong (unknown [IPv6:2001:910:103f::2f8]) by hera.aquilenet.fr (Postfix) with ESMTPSA id E25C625ED; Tue, 8 Sep 2020 09:23:06 +0200 (CEST) Date: Tue, 8 Sep 2020 09:22:49 +0200 From: Andreas Enge To: Mark H Weaver Subject: Re: What should "guix build --source" produce? (was Re: Dependency cycle issues when using a Gexp-based snippet) Message-ID: <20200908072249.GA1469@jurong> References: <87h7ssx07p.fsf@gmail.com> <87lfhkj4hr.fsf@netris.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87lfhkj4hr.fsf@netris.org> Received-SPF: neutral client-ip=2a0c:e300::1; envelope-from=andreas@enge.fr; helo=hera.aquilenet.fr X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_NEUTRAL=0.779 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel , maxim.cournoyer@gmail.com Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -0.51 X-TUID: Yph3R/ihTxtF Hello Mark, On Tue, Sep 08, 2020 at 12:07:01AM -0400, Mark H Weaver wrote: > > + (let ((coreutils #+(canonical-package coreutils))) > > + (substitute* "configure" > > + (("/bin/pwd") > > + (string-append coreutils "/bin/pwd"))) > > + (substitute* "src/corelib/global/global.pri" > > + (("/bin/ls") > > + (string-append coreutils "/bin/ls")))) > > + #t))))) > > In my opinion, "guix build --source PACKAGE" should produce sources that > can be used to build the package on any system that the upstream package > supports, not just on Guix systems. that sounds good to me, in particular taking your subsequent arguments into account. Guix sources could be just as useful as Debian sources in this respect. Could this not be the elusive boundary between preparing the source and adding a phase to the build arguments? Andreas