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 ehLwHZ/1sl+MDAAA0tVLHw (envelope-from ) for ; Mon, 16 Nov 2020 21:56:47 +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 uNFDGZ/1sl8nLAAA1q6Kng (envelope-from ) for ; Mon, 16 Nov 2020 21:56:47 +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 CEBB79404C6 for ; Mon, 16 Nov 2020 21:56:46 +0000 (UTC) Received: from localhost ([::1]:60616 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kemUP-0006WF-Ro for larch@yhetil.org; Mon, 16 Nov 2020 16:56:45 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kemUC-0006Vl-KQ for help-guix@gnu.org; Mon, 16 Nov 2020 16:56:32 -0500 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]:41031) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kemUA-0003BS-J1 for help-guix@gnu.org; Mon, 16 Nov 2020 16:56:32 -0500 Received: by mail-wr1-x430.google.com with SMTP id 23so20612184wrc.8 for ; Mon, 16 Nov 2020 13:56:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sSSY+ZMYwzJVk2NYyyO5NN7E6O9IikViMh8XvsuOJ68=; b=B76L1pydNHGpVHyZxoflsEllz1+CADMWyZQRzh/m6yWg/+bg4D0Hu7whocDLYXaZzX Fw2hel83qwx1lRZL5/bC4gKh0XlFCO948R+XsKiFPLRacfhOceZl9jD+0ekpmQ78AQ/i NgaxOQbqKCoyXQOIg4bFyM9g0dH7eGtNUg6ltms1XMuvKrO0H7FSCex0GxvzTlyphcQO Nwc4i6cuRSaPSXs9rjUWG0wevEOcUvZJcAC+KZo1F0Il0zTgpI8rRV99LseG6Eiyarhn V0v03RpKunXsGWgkgmRR48wHWtmhm7dpiIMY4ym79JOblYX0A3JbEyXUSvBRcMNMGsby fZ6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sSSY+ZMYwzJVk2NYyyO5NN7E6O9IikViMh8XvsuOJ68=; b=uE3KpzL05+7V4tWahV/C1w2fpST/dtgvljAIpZUhxLRExQADxrNRK0/nxxXDXEytux RyqmuxbmBjb7wAsZpQ9pcdmOYf+0QFyXOEG5YWhiPOxZlDkWnvAYnNO5q0a9DUsDr4Wo p/wn8oam+oiR3Gg15XjcqbT4qtVkdUtnVia0ZgV6q7tWBR9W0+RxK/rg/FiX+5Zef16W okCF9YgRGbU6E+wJ1Gj/UfK54V1nOUoPIQU3akUSbIjIU2XUErJRHPvRPbeoSyX2BtZ1 kL3bGefPDjeJMI6IRVuMAj6sdSVqH2sJs/INi+H8Kwow1Xg+h2Ngzb6sYQJzdsTKGWRA eWfg== X-Gm-Message-State: AOAM533VAnb9OGNUkGWkFvZeupFUGR5NPM71jeqnRWp4Gvaeqc+CTEkY rba6XUnrL1a5aKlNV5Wa7xXX2dnwYZs/1xiyVS8= X-Google-Smtp-Source: ABdhPJx1Yj7TEjISwGMOWVGZYAUm/cCdJijxGc4b+uRuJgy6mFysHmWhYew/eZXgTPRSzqkU0VoPY2GlzgGL19UdOls= X-Received: by 2002:a5d:4d87:: with SMTP id b7mr22653252wru.115.1605563789369; Mon, 16 Nov 2020 13:56:29 -0800 (PST) MIME-Version: 1.0 References: <20201116205647.GA24897@jasmine.lan> In-Reply-To: <20201116205647.GA24897@jasmine.lan> From: Stephen Scheck Date: Mon, 16 Nov 2020 16:56:18 -0500 Message-ID: Subject: Re: Package workspace relocation To: Leo Famulari Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=singularsyntax@gmail.com; helo=mail-wr1-x430.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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=fail (body hash did not verify) header.d=gmail.com header.s=20161025 header.b=B76L1pyd; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: 0.09 X-TUID: TIt2CSJ2lQbX I just need to add a prefix to the directory in which the Git source is cloned, because its build system requires that. I don't care which TMP directory Guix daemon uses for its build root. I just need for `/my-project` to become `/foo/bar/my-project`. It sounds like what you suggested will do the trick, if I understand it correctly. Thanks. On Mon, Nov 16, 2020 at 3:56 PM Leo Famulari wrote: > 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`. >