From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CC3xBiRUfWEVEAEAgWs5BA (envelope-from ) for ; Sat, 30 Oct 2021 16:18:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 6GCgAiRUfWFMWAAA1q6Kng (envelope-from ) for ; Sat, 30 Oct 2021 14:18:12 +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 CFE049D2B for ; Sat, 30 Oct 2021 16:18:11 +0200 (CEST) Received: from localhost ([::1]:54252 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mgpBT-00023u-1y for larch@yhetil.org; Sat, 30 Oct 2021 10:18:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59044) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgpBK-00023d-Tj for guix-patches@gnu.org; Sat, 30 Oct 2021 10:18:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46545) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mgpBJ-0004x2-V1 for guix-patches@gnu.org; Sat, 30 Oct 2021 10:18:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mgpBJ-0002yR-My for guix-patches@gnu.org; Sat, 30 Oct 2021 10:18:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50873] [PATCH 0/5] Fixes to =?UTF-8?Q?=E2=80=98guix?= home =?UTF-8?Q?import=E2=80=99?= Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 30 Oct 2021 14:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50873 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Xinglu Chen Cc: Oleg Pykhalov , 50873@debbugs.gnu.org, Andrew Tropin Received: via spool by 50873-submit@debbugs.gnu.org id=B50873.163560343811368 (code B ref 50873); Sat, 30 Oct 2021 14:18:01 +0000 Received: (at 50873) by debbugs.gnu.org; 30 Oct 2021 14:17:18 +0000 Received: from localhost ([127.0.0.1]:58091 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgpAb-0002xH-PY for submit@debbugs.gnu.org; Sat, 30 Oct 2021 10:17:18 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33338) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgpAZ-0002wy-4b for 50873@debbugs.gnu.org; Sat, 30 Oct 2021 10:17:15 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:54264) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgpAP-0004sW-MC; Sat, 30 Oct 2021 10:17:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=ckgQ7GghcZaGGzfG90B7exttexv3NxyL8N5k5aDIB3I=; b=nWiaHTBbYd8Q6DRcl2lB 4HKMKTzUes974kKHxG255s12NIsfzOctK86ZGsTOekVmDpRBOO1FZshTJRvUCVbgEmRveVO1E+5hv rLoNdkPE8g/KNM5hE0xqYyy3qtA/KTMlRMvyIF7LmELMQPyi2znEGZrC9zD4IAOzU/wxC6+CEJUWK d7OOvgiiCy0OflqZTFEdWrYhpj07kZgjImxXFx1sv246G7Vp8oeXUkKJJxMBSmnzoH7OTGHMms5Zd DGi/SwuRn2LRgAz5JvgRVoXMDs+8eol9ZleBim8yT4C1+qvWmULNYKNzF00jSgHJ8B6vbraY8/8g3 G9rjOh32HeHoiw==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:55482 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgpAP-00089R-A2; Sat, 30 Oct 2021 10:17:05 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <197cab14424f4d28ece9e80981d2a4e142dc4791.1633861021.git.public@yoctocell.xyz> <87mtnf1zt0.fsf_-_@gmail.com> <87sfwk7xiw.fsf@disroot.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 9 Brumaire an 230 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sat, 30 Oct 2021 16:17:02 +0200 In-Reply-To: <87sfwk7xiw.fsf@disroot.org> (Xinglu Chen's message of "Fri, 29 Oct 2021 15:47:51 +0200") Message-ID: <87sfwitx5t.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635603491; h=from:from:sender:sender: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=ckgQ7GghcZaGGzfG90B7exttexv3NxyL8N5k5aDIB3I=; b=qI0fpEiHIFwxaSz3iE7mMtTN134AVDow6iumrp4U3WzV+NRefn9ZNG9IrZSr2OV9OYi77P +mQuKhMzdcjy5nQrkPGNNA58pcujqQXN0krtK7njf01+zLkxNE1Pj57f65yGfA2S19DMC0 pUxOTnBxillg8MU6/aNnEmB483AF5Si+uIY47+KmLsNUtE6Vfvqxxli9nGXntMEVdj8rN4 xqYKM3IUAXuQafog4Df0lfS+bl3pGl4DdGdGFbQOVIVdoP/Fk4jtABWyIy9xLxqrYFHiRt Gi2An8W+r7NteVh6iMpvGz1mzZ83N7MGZCkfkhe6e7I37I0LdRmK5nWwNHyyiQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635603491; a=rsa-sha256; cv=none; b=OX3YixmEorzlFiO+xRZmMoWeV64ol6mMJkX6blDAxq/U4Ywk2V0AZhNaF8LvZ4v6QA9jjb NkncpPRRRXkqNeU7lAVAKle1K8awomscMHljE/sLOBCSUd5wMTeQWDtaLfpu3yZWbSdYJB 8gvnlnoTm9SYCxCsI+kLSabKgxwgt15AdWIgOGMpOZf9XX8Q2RrLJsLioLOINPkJN3HVTn KuS8ZnzN14tMHJFb57J5z5ck2B7JftDMHcQmSV8mfj0nTwpoZCunQca3i4+4Xv5nwNx/xw ymovWHjS7Ni8DQ2zvRo3MFGeTemRISmdOSz50ak3GTb+1UolodmL+Vz6MiSkyg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=nWiaHTBb; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.42 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=nWiaHTBb; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: CFE049D2B X-Spam-Score: -1.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: KUWNZEo1Udty Hi, Xinglu Chen skribis: > On Mon, Oct 11 2021, Oleg Pykhalov wrote: > >> Hi, >> >> Xinglu Chen writes: >> >> [=E2=80=A6] >> >>> +;; Helpers for checking and generating home environments. >>> + >>> +(%destination-directory "/tmp/guix-config") >>> +(mkdir-p (%destination-directory)) >>> + >>> +(define %temporary-home-directory "/tmp/guix-home-import-test") >> >> Better use temporary directory like in tests/opam.scm. >> >> --8<---------------cut here---------------start------------->8--- >> (define-module ... >> #:use-module ((guix build syscalls) #:select (mkdtemp!)) >> ...) >> >> (mkdtemp! "/tmp/guix-home-import-test.XXXXXX") >> --8<---------------cut here---------------end--------------->8--- > > Good idea. Out of curiosity: is there any difference between =E2=80=98mk= dtemp!=E2=80=99 > and =E2=80=98mkdtemp=E2=80=99 that=E2=80=99s part of Guile? =E2=80=98mkdtemp=E2=80=99 is new in Guile 3.0.6 but Guix can be built with = an older version. Ludo=E2=80=99.