From unknown Sat Jun 21 12:12:16 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#68670] [PATCH core-updates] doc: Document changes to `copy-recursively'. Resent-From: Romain GARBAGE Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 23 Jan 2024 08:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 68670 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68670@debbugs.gnu.org Cc: ludo@gnu.org, Romain GARBAGE , maxim.cournoyer@gmail.com X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17060001295921 (code B ref -1); Tue, 23 Jan 2024 08:56:01 +0000 Received: (at submit) by debbugs.gnu.org; 23 Jan 2024 08:55:29 +0000 Received: from localhost ([127.0.0.1]:42198 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rSCZ7-0001XQ-7O for submit@debbugs.gnu.org; Tue, 23 Jan 2024 03:55:29 -0500 Received: from lists.gnu.org ([2001:470:142::17]:60362) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rSCZ2-0001X9-SY for submit@debbugs.gnu.org; Tue, 23 Jan 2024 03:55:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rSCYq-0001sm-4d for guix-patches@gnu.org; Tue, 23 Jan 2024 03:55:14 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rSCYm-0005qo-8e; Tue, 23 Jan 2024 03:55:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=lpBHjvYxOCbWh5d5FtjMw120BSchLxXylDmqzCWYLpY=; b=B2PJcmCMw5B6Dk9wO/8C782Q24j6tdOwrpFkScjbWRTFFOVN85yILp8f nzWy6rBNfJz38T+ohZmeabXczy6R3kvJA07sBuj0gEVkBGp88aar0AG+x SXjq6U/nDxj6RRGoqPe1NZs//tMOJCgQsyQdwypSTXwU+g9V0Bg3qm6dO A=; Authentication-Results: mail3-relais-sop.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=romain.garbage@inria.fr; spf=None smtp.helo=postmaster@guix-A102.bordeaux.inria.fr Received-SPF: SoftFail (mail3-relais-sop.national.inria.fr: domain of romain.garbage@inria.fr is inclined to not designate 193.50.110.153 as permitted sender) identity=mailfrom; client-ip=193.50.110.153; receiver=mail3-relais-sop.national.inria.fr; envelope-from="romain.garbage@inria.fr"; x-sender="romain.garbage@inria.fr"; x-conformance=spf_only; x-record-type="v=spf1"; x-record-text="v=spf1 include:mailout.safebrands.com a:basic-mail.safebrands.com a:basic-mail01.safebrands.com a:basic-mail02.safebrands.com ip4:128.93.142.0/24 ip4:192.134.164.0/24 ip4:128.93.162.160 ip4:89.107.174.7 mx ~all" Received-SPF: None (mail3-relais-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@guix-A102.bordeaux.inria.fr) identity=helo; client-ip=193.50.110.153; receiver=mail3-relais-sop.national.inria.fr; envelope-from="romain.garbage@inria.fr"; x-sender="postmaster@guix-A102.bordeaux.inria.fr"; x-conformance=spf_only X-IronPort-AV: E=Sophos;i="6.05,213,1701126000"; d="scan'208";a="77554120" Received: from unknown (HELO guix-A102.bordeaux.inria.fr) ([193.50.110.153]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jan 2024 09:55:03 +0100 From: Romain GARBAGE Date: Tue, 23 Jan 2024 09:42:41 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=192.134.164.104; envelope-from=romain.garbage@inria.fr; helo=mail3-relais-sop.national.inria.fr 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, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * doc/guix.texi: Document new key `select?' in `copy-recursively'. Change-Id: I4b14ae5a1b40e0939456604f75597b5596b76f83 --- doc/guix.texi | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) --- As requested by Ludo', here is the documentation update that should have been sent together with issue #68406. diff --git a/doc/guix.texi b/doc/guix.texi index df6ce91736..4dbc311468 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -10814,12 +10814,18 @@ Build Utilities @deffn {Procedure} copy-recursively source destination @ [#:log (current-output-port)] [#:follow-symlinks? #f] @ [#:copy-file copy-file] [#:keep-mtime? #f] [#:keep-permissions? #t] + [#:select? (const #t)] Copy @var{source} directory to @var{destination}. Follow symlinks if @var{follow-symlinks?} is true; otherwise, just preserve them. Call -@var{copy-file} to copy regular files. When @var{keep-mtime?} is true, -keep the modification time of the files in @var{source} on those of -@var{destination}. When @var{keep-permissions?} is true, preserve file -permissions. Write verbose output to the @var{log} port. +@var{copy-file} to copy regular files. Call @var{select?}, taking two +arguments, @var{file} and @var{stat}, for each entry in @var{source}, +where @var{file} is the entry's absolute file name and @var{stat} is the +result of @code{lstat} (or @code{stat} if @var{follow-symlinks?} is +true); exclude entries for which @var{select?} does not return true. +When @var{keep-mtime?} is true, keep the modification time of the files +in @var{source} on those of @var{destination}. +When @var{keep-permissions?} is true, preserve file permissions. Write +verbose output to the @var{log} port. @end deffn @deffn {Procedure} delete-file-recursively dir [#:follow-mounts? #f] base-commit: bafc6efe481d0f209b490c4e2a1ac1b3f7afa06c -- 2.41.0 From unknown Sat Jun 21 12:12:16 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Romain GARBAGE Subject: bug#68670: closed (Re: bug#68670: [PATCH core-updates] doc: Document changes to `copy-recursively'.) Message-ID: References: <87sf2o16rm.fsf@gmail.com> X-Gnu-PR-Message: they-closed 68670 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 68670@debbugs.gnu.org Date: Tue, 23 Jan 2024 14:10:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1706019002-29429-1" This is a multi-part message in MIME format... ------------=_1706019002-29429-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #68670: [PATCH core-updates] doc: Document changes to `copy-recursively'. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 68670@debbugs.gnu.org. --=20 68670: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D68670 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1706019002-29429-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 68670-done) by debbugs.gnu.org; 23 Jan 2024 14:09:16 +0000 Received: from localhost ([127.0.0.1]:42487 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rSHSl-0007dQ-Lg for submit@debbugs.gnu.org; Tue, 23 Jan 2024 09:09:16 -0500 Received: from mail-qv1-xf29.google.com ([2607:f8b0:4864:20::f29]:48332) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rSHSj-0007d1-Gs for 68670-done@debbugs.gnu.org; Tue, 23 Jan 2024 09:09:13 -0500 Received: by mail-qv1-xf29.google.com with SMTP id 6a1803df08f44-686aa9f0736so405066d6.0 for <68670-done@debbugs.gnu.org>; Tue, 23 Jan 2024 06:09:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706018943; x=1706623743; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=czbliYDT3mxDlO+UjwwZzkNbWvJ3wyJhhEoDm4XRAbU=; b=kmw3dJakKLXVwLnKPGigqFQUhHglYpPOJgCHs2wnJKfNURVbCi0OQB6hhKC1pVpcAJ vuN5NQQbj3KhYl4oyYCuvJrrXeqKaBpMbm2nQQ3oD8wGAEsiybTu26bERZDXQhGjxmLi EtxL3lwiwgAc/yXRWrkvnspV88TKOh9zIHqexo2/W/ywdlTnt+aDLy26l7sp7snDHtsS WSFES6kBFrx2I7CbvPzH5d/4UBPc9ig3Kc5hzFihtNpiWG9KP64x9t15Y3z7P7hv9TDo 1O3Ei/ivfiqmCYlvIG46UbSPd9S2/hO6GP3fW1HtYmF8a/ZSbvcTcgoaaQ73WuPdA0S0 6pkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706018943; x=1706623743; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=czbliYDT3mxDlO+UjwwZzkNbWvJ3wyJhhEoDm4XRAbU=; b=vOWzHN0XDgOFFLh6qfNqB6o1fR5DqIcr1r3RJQjtdHiFy5uFVVECxvInXJLGCPQALl Zav2F75eMZASEPITN4RFViwKbAO1q4mPjfqXXpIS0JNig2J1qCJ01jn6upAB95awOjwf fPvbCIQlzHkldCrsMJ+0utwYsaTKtD+aaoBkvJQpOrb3PCG5V0WYcVR9pa3Blfew/+pc sY5vLTBdhEoaxxydPdmt2lofuftluqlGAFF/bLu3ciP4y0mNuBHB9YSy/YYIGkmDkm3C qWfUFVSE7xv4V2lil7c5kNJLQXoaVn17pfLY3Gj9de3rFQehwCjUHn/vsjZb4xQz5G/t DwRg== X-Gm-Message-State: AOJu0YzaaK5OJ64hk+5zMW9lzEec8lBOPpCfd/LRIjl2i9U3yKW3LleH tFYJxwLB+FIwXrVAuyFjeBdi+r0yeRsCwNyRYjkDIyNMH0laXuyx X-Google-Smtp-Source: AGHT+IG5ceJNFDu7U87OlOypWcMNPHORZUIeM0Bzh6JlUZ6su/a6Cs+o9bv8ON2M/xAGq7j4R9fpcA== X-Received: by 2002:a05:6214:3011:b0:684:e267:11aa with SMTP id ke17-20020a056214301100b00684e26711aamr912056qvb.123.1706018943076; Tue, 23 Jan 2024 06:09:03 -0800 (PST) Received: from hurd (dsl-158-18.b2b2c.ca. [66.158.158.18]) by smtp.gmail.com with ESMTPSA id v6-20020a0ccd86000000b00683de714c89sm3469269qvm.55.2024.01.23.06.09.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 06:09:02 -0800 (PST) From: Maxim Cournoyer To: Romain GARBAGE Subject: Re: bug#68670: [PATCH core-updates] doc: Document changes to `copy-recursively'. In-Reply-To: (Romain GARBAGE's message of "Tue, 23 Jan 2024 09:42:41 +0100") References: Date: Tue, 23 Jan 2024 09:09:01 -0500 Message-ID: <87sf2o16rm.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68670-done Cc: 68670-done@debbugs.gnu.org, ludo@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello! Romain GARBAGE writes: > * doc/guix.texi: Document new key `select?' in `copy-recursively'. > > Change-Id: I4b14ae5a1b40e0939456604f75597b5596b76f83 > --- > doc/guix.texi | 14 ++++++++++---- > 1 file changed, 10 insertions(+), 4 deletions(-) > --- > As requested by Ludo', here is the documentation update that should have > been sent together with issue #68406. > > diff --git a/doc/guix.texi b/doc/guix.texi > index df6ce91736..4dbc311468 100644 > --- a/doc/guix.texi > +++ b/doc/guix.texi > @@ -10814,12 +10814,18 @@ Build Utilities > @deffn {Procedure} copy-recursively source destination @ > [#:log (current-output-port)] [#:follow-symlinks? #f] @ > [#:copy-file copy-file] [#:keep-mtime? #f] [#:keep-permissions? #t] > + [#:select? (const #t)] > Copy @var{source} directory to @var{destination}. Follow symlinks if > @var{follow-symlinks?} is true; otherwise, just preserve them. Call > -@var{copy-file} to copy regular files. When @var{keep-mtime?} is true, > -keep the modification time of the files in @var{source} on those of > -@var{destination}. When @var{keep-permissions?} is true, preserve file > -permissions. Write verbose output to the @var{log} port. > +@var{copy-file} to copy regular files. Call @var{select?}, taking two > +arguments, @var{file} and @var{stat}, for each entry in @var{source}, > +where @var{file} is the entry's absolute file name and @var{stat} is the > +result of @code{lstat} (or @code{stat} if @var{follow-symlinks?} is > +true); exclude entries for which @var{select?} does not return true. > +When @var{keep-mtime?} is true, keep the modification time of the files > +in @var{source} on those of @var{destination}. > +When @var{keep-permissions?} is true, preserve file permissions. Write > +verbose output to the @var{log} port. > @end deffn > > @deffn {Procedure} delete-file-recursively dir [#:follow-mounts? #f] Queued for my next core-updates push. -- Thanks, Maxim ------------=_1706019002-29429-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 23 Jan 2024 08:55:29 +0000 Received: from localhost ([127.0.0.1]:42198 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rSCZ7-0001XQ-7O for submit@debbugs.gnu.org; Tue, 23 Jan 2024 03:55:29 -0500 Received: from lists.gnu.org ([2001:470:142::17]:60362) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rSCZ2-0001X9-SY for submit@debbugs.gnu.org; Tue, 23 Jan 2024 03:55:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rSCYq-0001sm-4d for guix-patches@gnu.org; Tue, 23 Jan 2024 03:55:14 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rSCYm-0005qo-8e; Tue, 23 Jan 2024 03:55:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=lpBHjvYxOCbWh5d5FtjMw120BSchLxXylDmqzCWYLpY=; b=B2PJcmCMw5B6Dk9wO/8C782Q24j6tdOwrpFkScjbWRTFFOVN85yILp8f nzWy6rBNfJz38T+ohZmeabXczy6R3kvJA07sBuj0gEVkBGp88aar0AG+x SXjq6U/nDxj6RRGoqPe1NZs//tMOJCgQsyQdwypSTXwU+g9V0Bg3qm6dO A=; Authentication-Results: mail3-relais-sop.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=romain.garbage@inria.fr; spf=None smtp.helo=postmaster@guix-A102.bordeaux.inria.fr Received-SPF: SoftFail (mail3-relais-sop.national.inria.fr: domain of romain.garbage@inria.fr is inclined to not designate 193.50.110.153 as permitted sender) identity=mailfrom; client-ip=193.50.110.153; receiver=mail3-relais-sop.national.inria.fr; envelope-from="romain.garbage@inria.fr"; x-sender="romain.garbage@inria.fr"; x-conformance=spf_only; x-record-type="v=spf1"; x-record-text="v=spf1 include:mailout.safebrands.com a:basic-mail.safebrands.com a:basic-mail01.safebrands.com a:basic-mail02.safebrands.com ip4:128.93.142.0/24 ip4:192.134.164.0/24 ip4:128.93.162.160 ip4:89.107.174.7 mx ~all" Received-SPF: None (mail3-relais-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@guix-A102.bordeaux.inria.fr) identity=helo; client-ip=193.50.110.153; receiver=mail3-relais-sop.national.inria.fr; envelope-from="romain.garbage@inria.fr"; x-sender="postmaster@guix-A102.bordeaux.inria.fr"; x-conformance=spf_only X-IronPort-AV: E=Sophos;i="6.05,213,1701126000"; d="scan'208";a="77554120" Received: from unknown (HELO guix-A102.bordeaux.inria.fr) ([193.50.110.153]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jan 2024 09:55:03 +0100 From: Romain GARBAGE To: guix-patches@gnu.org Subject: [PATCH core-updates] doc: Document changes to `copy-recursively'. Date: Tue, 23 Jan 2024 09:42:41 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=192.134.164.104; envelope-from=romain.garbage@inria.fr; helo=mail3-relais-sop.national.inria.fr 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, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit Cc: ludo@gnu.org, Romain GARBAGE , maxim.cournoyer@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * doc/guix.texi: Document new key `select?' in `copy-recursively'. Change-Id: I4b14ae5a1b40e0939456604f75597b5596b76f83 --- doc/guix.texi | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) --- As requested by Ludo', here is the documentation update that should have been sent together with issue #68406. diff --git a/doc/guix.texi b/doc/guix.texi index df6ce91736..4dbc311468 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -10814,12 +10814,18 @@ Build Utilities @deffn {Procedure} copy-recursively source destination @ [#:log (current-output-port)] [#:follow-symlinks? #f] @ [#:copy-file copy-file] [#:keep-mtime? #f] [#:keep-permissions? #t] + [#:select? (const #t)] Copy @var{source} directory to @var{destination}. Follow symlinks if @var{follow-symlinks?} is true; otherwise, just preserve them. Call -@var{copy-file} to copy regular files. When @var{keep-mtime?} is true, -keep the modification time of the files in @var{source} on those of -@var{destination}. When @var{keep-permissions?} is true, preserve file -permissions. Write verbose output to the @var{log} port. +@var{copy-file} to copy regular files. Call @var{select?}, taking two +arguments, @var{file} and @var{stat}, for each entry in @var{source}, +where @var{file} is the entry's absolute file name and @var{stat} is the +result of @code{lstat} (or @code{stat} if @var{follow-symlinks?} is +true); exclude entries for which @var{select?} does not return true. +When @var{keep-mtime?} is true, keep the modification time of the files +in @var{source} on those of @var{destination}. +When @var{keep-permissions?} is true, preserve file permissions. Write +verbose output to the @var{log} port. @end deffn @deffn {Procedure} delete-file-recursively dir [#:follow-mounts? #f] base-commit: bafc6efe481d0f209b490c4e2a1ac1b3f7afa06c -- 2.41.0 ------------=_1706019002-29429-1--