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 eBnVOaPnsl9ZEwAA0tVLHw (envelope-from ) for ; Mon, 16 Nov 2020 20:57:07 +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 mImUNaPnsl/dBQAAbx9fmQ (envelope-from ) for ; Mon, 16 Nov 2020 20:57:07 +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 1B0CB940357 for ; Mon, 16 Nov 2020 20:57:07 +0000 (UTC) Received: from localhost ([::1]:60094 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kelYg-0002AX-31 for larch@yhetil.org; Mon, 16 Nov 2020 15:57:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48156) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kelYU-00029Q-RE for help-guix@gnu.org; Mon, 16 Nov 2020 15:56:56 -0500 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:44995) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kelYS-0007nj-Hd for help-guix@gnu.org; Mon, 16 Nov 2020 15:56:54 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 7A432C2A; Mon, 16 Nov 2020 15:56:50 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 16 Nov 2020 15:56:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=mesmtp; bh=GQOa7F2bt0nw0RWMUsQ1u+ke UBSlkslP7h0NnqVidlo=; b=Pcj3B5mOFy9Cob/Qgnp0PWDjFEMP9vSDRjbIXGrH JIiV/jt7MbF1dxmIrBkzf1Fg93Rprh32M9YF03rqL6CV+mtiYHxyimLWcDQIx3rS Z0ZfUDcQ3sqsglbW9bPPY2DKDP1ogMNt1TVXCqVTwULz1h9Wk71V4pYdHmOWSv9B nj0= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=GQOa7F 2bt0nw0RWMUsQ1u+keUBSlkslP7h0NnqVidlo=; b=GZrICJ6lqI5Pu8zbka3wMv vhScuPt5vWMS/d8UmXfWrkV6jsIaHUMRfO0mcIuycx3ilPpGDL6ei0PlrNRJzQCS JZvOVFP/PDn0CNzcPS24BRgifJvS2WkXAtjLZ7TIbJA/V1y4nqDk+9DCIBa/wsKc u+JkmtvbaaQaEdO8gh7wrfnlFGA2oXf6uXyxkfrRxt7AmvOWIzGlZljiVRGIJ56X jQIMtVTjz/QrrNL53Se22DAkfTJRQBJ1zcdkWZS/dfQo8NVKO4Q4UD/qv/4v52eq XlGf/gX+yxnQ5F0ulF+57N0SJ5cmctUCLIlpmvBL+iB3JlLvxC3EDi4z0+p7giog == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudefuddgudeggecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjsehttd ertddttddvnecuhfhrohhmpefnvghoucfhrghmuhhlrghrihcuoehlvghosehfrghmuhhl rghrihdrnhgrmhgvqeenucggtffrrghtthgvrhhnpeehgfelvefhtddtfeehiedtgfehff ffffelvdelhffgkedtteehgfeugfehgeethfenucffohhmrghinhepghhithhhuhgsrdgt ohhmnecukfhppeejfedrudeguddruddvjedrudegieenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlvghosehfrghmuhhlrghrihdrnhgrmhgv X-ME-Proxy: Received: from localhost (c-73-141-127-146.hsd1.pa.comcast.net [73.141.127.146]) by mail.messagingengine.com (Postfix) with ESMTPA id B2DDB3280059; Mon, 16 Nov 2020 15:56:49 -0500 (EST) Date: Mon, 16 Nov 2020 15:56:47 -0500 From: Leo Famulari To: Stephen Scheck Subject: Re: Package workspace relocation Message-ID: <20201116205647.GA24897@jasmine.lan> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=64.147.123.19; envelope-from=leo@famulari.name; helo=wout3-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/16 15:56:51 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=famulari.name header.s=mesmtp header.b=Pcj3B5mO; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=GZrICJ6l; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: -1.21 X-TUID: S+TxCLXH67Fn On Mon, Nov 16, 2020 at 03:15:46PM -0500, Stephen Scheck wrote: > Is there a way to relocate the package build workspace for a Git clone > source, e.g.: > > (package > (name "my-package") > (version "0.0.1") > (source (origin > (method git-fetch) > (uri (git-reference > (url "https://github.com/my-package"))) > (file-name (git-file-name name version)) > > This results in a path like `/my-package-0.0.1` but > because of idiosyncrasies in the project's build system, I need for it to > be relocated to something like `/foo/bar/my-package-0.0.1`. > > How can I do this? I'm not sure that I fully understand what you are asking. However, the location of the build directory is controlled by the TMPDIR variable, which is set in the environment of the guix-daemon. You can set it to any location that you want. An alternative per-package approach is to add a build phase before the 'unpack' phase and do something like `mkdir -p foo/bar && chdir foo/bar`.