From unknown Fri Aug 15 20:27:23 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#44130] [PATCH] Add a recursive version of mkdir-p Resent-From: divoplade Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 21 Oct 2020 23:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44130 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 44130@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16033230021300 (code B ref -1); Wed, 21 Oct 2020 23:31:02 +0000 Received: (at submit) by debbugs.gnu.org; 21 Oct 2020 23:30:02 +0000 Received: from localhost ([127.0.0.1]:50874 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVNYQ-0000Kt-AK for submit@debbugs.gnu.org; Wed, 21 Oct 2020 19:30:02 -0400 Received: from lists.gnu.org ([209.51.188.17]:46500) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVNYO-0000K4-JH for submit@debbugs.gnu.org; Wed, 21 Oct 2020 19:30:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44008) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVNYN-00020t-6y for guix-patches@gnu.org; Wed, 21 Oct 2020 19:29:59 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:32941) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVNYK-00004u-6Z for guix-patches@gnu.org; Wed, 21 Oct 2020 19:29:58 -0400 X-Originating-IP: 86.202.110.111 Received: from divoplade.home (lfbn-lyo-1-15-111.w86-202.abo.wanadoo.fr [86.202.110.111]) (Authenticated sender: d@divoplade.fr) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 82C9AFF806 for ; Wed, 21 Oct 2020 23:29:49 +0000 (UTC) Message-ID: <6ff632f5c1e378647cecc7177b7018fb8a0ee6d4.camel@divoplade.fr> From: divoplade Date: Thu, 22 Oct 2020 01:29:48 +0200 Content-Type: multipart/mixed; boundary="=-3NrNEACo3iXWPY+QWleW" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Received-SPF: pass client-ip=217.70.183.199; envelope-from=d@divoplade.fr; helo=relay9-d.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/21 19:29:49 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) 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: -2.6 (--) --=-3NrNEACo3iXWPY+QWleW Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Dear guix, I need this mkdir-p function in any non-trivial program I write. I had 3 bad choices: 1. Lobby guile to provide this function out of the box (this will take time); 2. Copy that of guix, or gash, or any other: this does not seem acceptable to me, because this function will surely evolve (for instance, if guile gets suport for mingw and we start running guile programs on windows) and I don't want to update more than one version of this function; 3. Depend on guix, gash or another package: this would be too large a dependency for my programs. So I wrote it in its own package and I intend to depend on it for my other projects. It would be best if you could accept this package in guix proper. What do you think? Best regards, divoplade --=-3NrNEACo3iXWPY+QWleW Content-Disposition: attachment; filename="0001-Add-guile-mkdir-p.patch" Content-Transfer-Encoding: base64 Content-Type: text/x-patch; name="0001-Add-guile-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vcnQgZm9yIG90aGVy IFJuUlMgc3RhbmRhcmRzIGFuZCBhIHRvbGVyYW50IG1vZGUgdGhhdCBjb250aW51ZXMgb24KIGVy cm9ycy4iKQogICAgIChsaWNlbnNlIGxpY2Vuc2U6ZXhwYXQpKSkKKworKGRlZmluZS1wdWJsaWMg Z3VpbGUtbWtkaXItcAorICAocGFja2FnZQorICAgIChuYW1lICJndWlsZS1ta2Rpci1wIikKKyAg ICAodmVyc2lvbiAiMS4wLjEiKQorICAgIChzb3VyY2UKKyAgICAgKG9yaWdpbgorICAgICAgICht ZXRob2QgZ2l0LWZldGNoKQorICAgICAgICh1cmkgKGdpdC1yZWZlcmVuY2UKKyAgICAgICAgICAg ICAodXJsICJodHRwczovL2NvZGUuZGl2b3BsYWRlLmZyL21rZGlyLXAuZ2l0IikKKyAgICAgICAg ICAgICAoY29tbWl0ICI4M2U5NTViYTYxMjM2OTMzNmE2OWZlNTBmZTAyM2FkMTRmYmU1ZDdjIikp KQorICAgICAgIChzaGEyNTYgKGJhc2UzMiAiMDFrMjByamN2NnAwc3Btdzhsczc3NmFhcjZiZncw anh3NDZkMm4xMncwY2IycDc5eGp2OCIpKQorICAgICAgIChzbmlwcGV0CisgICAgICAgIGAoYmVn aW4KKyAgICAgICAgICAgKHdpdGgtb3V0cHV0LXRvLWZpbGUgIi50YXJiYWxsLXZlcnNpb24iCisg ICAgICAgICAgICAgKGxhbWJkYSBfIChmb3JtYXQgI3QgIn5hfiUiICIxLjAuMSIpKSkKKyAgICAg ICAgICAgI3QpKSkpCisgICAgKGJ1aWxkLXN5c3RlbSBnbnUtYnVpbGQtc3lzdGVtKQorICAgIChh cmd1bWVudHMgYCgpKQorICAgIChuYXRpdmUtaW5wdXRzCisgICAgIGAoKCJndWlsZSIgLGd1aWxl LTMuMCkKKyAgICAgICAoInRleGluZm8iICx0ZXhpbmZvKQorICAgICAgICgiYXV0b2NvbmYiICxh dXRvY29uZikKKyAgICAgICAoImF1dG9jb25mLWFyY2hpdmUiICxhdXRvY29uZi1hcmNoaXZlKQor ICAgICAgICgiYXV0b21ha2UiICxhdXRvbWFrZSkKKyAgICAgICAoInBrZy1jb25maWciICxwa2ct Y29uZmlnKQorICAgICAgICgiZ2V0dGV4dCIgLGdudS1nZXR0ZXh0KSkpCisgICAgKGlucHV0cyBg KCgiZ3VpbGUiICxndWlsZS0zLjApKSkKKyAgICAocHJvcGFnYXRlZC1pbnB1dHMKKyAgICAgYCgo Imd1aWxlIiAsZ3VpbGUtMy4wKSkpCisgICAgKHN5bm9wc2lzICJJbXBsZW1lbnRhdGlvbiBvZiBh IHJlY3Vyc2l2ZSBta2RpciBmb3IgZ3VpbGUiKQorICAgIChkZXNjcmlwdGlvbgorICAgICAiVGhp cyBwYWNrYWdlIHByb3ZpZGVzIHdpdGhpbiB0aGUgKG1rZGlyLXApIG1vZHVsZSB0aGUgbWtkaXIt cCBmdW5jdGlvbgordGhhdCB0cmllcyB0byBjcmVhdGUgdGhlIGNoYWluIG9mIGRpcmVjdG9yaWVz IHJlY3Vyc2l2ZWx5LiAgSXQgYWxzbyBwcm92aWRlcworbmV3IHZlcnNpb25zIG9mIG9wZW4tb3V0 cHV0LWZpbGUsIGNhbGwtd2l0aC1vdXRwdXQtZmlsZSBhbmQKK3dpdGgtb3V0cHV0LXRvLWZpbGUg dG8gY3JlYXRlIHRoZSBkaXJlY3Rvcnkgb2YgaXRzIGFyZ3VtZW50IGlmIGl0IGRvZXMgbm90Citl eGlzdC4iKQorICAgIChob21lLXBhZ2UgImh0dHBzOi8vbWtkaXItcC5kaXZvcGxhZGUuZnIiKQor ICAgIChsaWNlbnNlIGxpY2Vuc2U6YXNsMi4wKSkpCi0tIAoyLjI4LjAKCg== --=-3NrNEACo3iXWPY+QWleW-- From unknown Fri Aug 15 20:27:23 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#44130] [PATCH] Add a recursive version of mkdir-p Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 23 Oct 2020 13:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44130 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: divoplade Cc: 44130@debbugs.gnu.org Received: via spool by 44130-submit@debbugs.gnu.org id=B44130.160345877414295 (code B ref 44130); Fri, 23 Oct 2020 13:13:02 +0000 Received: (at 44130) by debbugs.gnu.org; 23 Oct 2020 13:12:54 +0000 Received: from localhost ([127.0.0.1]:56322 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVwsH-0003iV-Si for submit@debbugs.gnu.org; Fri, 23 Oct 2020 09:12:54 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51484) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVwsG-0003iE-4m for 44130@debbugs.gnu.org; Fri, 23 Oct 2020 09:12:52 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49191) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kVwsA-0008Hf-Nh; Fri, 23 Oct 2020 09:12:46 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=55368 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kVwsA-0004xv-A0; Fri, 23 Oct 2020 09:12:46 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <6ff632f5c1e378647cecc7177b7018fb8a0ee6d4.camel@divoplade.fr> Date: Fri, 23 Oct 2020 15:12:44 +0200 In-Reply-To: <6ff632f5c1e378647cecc7177b7018fb8a0ee6d4.camel@divoplade.fr> (divoplade's message of "Thu, 22 Oct 2020 01:29:48 +0200") Message-ID: <87y2jxnl0z.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) 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: -3.3 (---) Hi! divoplade skribis: > I need this mkdir-p function in any non-trivial program I write. I had > 3 bad choices: > > 1. Lobby guile to provide this function out of the box (this will take > time); > 2. Copy that of guix, or gash, or any other: this does not seem > acceptable to me, because this function will surely evolve (for > instance, if guile gets suport for mingw and we start running guile > programs on windows) and I don't want to update more than one version > of this function; > 3. Depend on guix, gash or another package: this would be too large a > dependency for my programs. > > So I wrote it in its own package and I intend to depend on it for my > other projects. It would be best if you could accept this package in > guix proper. > > What do you think? I have nothing against adding this package to Guix, but=E2=80=A6 Do you realize that the package definition is longer than the =E2=80=98mkdi= r-p=E2=80=99 procedure itself? :-) I think npm packages are too fine-grain; I don=E2=80=99t think this is the approach to follow for Guile. It=E2=80=99s likely that packages that need =E2=80=98mkdir-p=E2=80=99 also = need other high-level file system operations that Gash (say) provides. In that case, I=E2=80=99d encourage people to depend on Gash. If Gash is too big a dependency for the project, including its own copy of this 24-line procedure is probably acceptable. All that said, I do think that Guile itself should eventually include some of the utilities found in (guix build utils) or Gash. For instance, it recently got a new =E2=80=98pipeline=E2=80=99 procedure, which= comes from Gash, and I think it=E2=80=99s a great addition. This is the way to go in = the longer term. Thoughts? Ludo=E2=80=99. From unknown Fri Aug 15 20:27:23 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#44130] [PATCH] Add a recursive version of mkdir-p Resent-From: divoplade Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 23 Oct 2020 14:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44130 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 44130@debbugs.gnu.org Received: via spool by 44130-submit@debbugs.gnu.org id=B44130.160346249430058 (code B ref 44130); Fri, 23 Oct 2020 14:15:02 +0000 Received: (at 44130) by debbugs.gnu.org; 23 Oct 2020 14:14:54 +0000 Received: from localhost ([127.0.0.1]:57934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVxqI-0007oj-1u for submit@debbugs.gnu.org; Fri, 23 Oct 2020 10:14:54 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:43129) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVxqD-0007oS-T8 for 44130@debbugs.gnu.org; Fri, 23 Oct 2020 10:14:52 -0400 X-Originating-IP: 86.202.110.111 Received: from divoplade.home (lfbn-lyo-1-15-111.w86-202.abo.wanadoo.fr [86.202.110.111]) (Authenticated sender: d@divoplade.fr) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id BD3212000A; Fri, 23 Oct 2020 14:14:43 +0000 (UTC) Message-ID: <85064b7663c320e8062b2db78151d22fc6fcddef.camel@divoplade.fr> From: divoplade Date: Fri, 23 Oct 2020 16:14:42 +0200 In-Reply-To: <87y2jxnl0z.fsf@gnu.org> References: <6ff632f5c1e378647cecc7177b7018fb8a0ee6d4.camel@divoplade.fr> <87y2jxnl0z.fsf@gnu.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 (-) Hi, Le vendredi 23 octobre 2020 à 15:12 +0200, Ludovic Courtès a écrit : > It’s likely that packages that need ‘mkdir-p’ also need other high- > level > file system operations that Gash (say) provides. In that case, I’d > encourage people to depend on Gash. If Gash is too big a dependency > for > the project, including its own copy of this 24-line procedure is > probably acceptable. This function is needed for nearly all desktop applications. In the freedesktop.org world of specifications, your application should store data in different places in the home directory of the user. The application data, such as your bookmarks, should be stored in $XDG_DATA_HOME//, or $HOME/.local/share// if XDG_DATA_HOME is not set. So if that's a fresh system, or you want to have different folders in your application data, you will need to make sure that an arbitrary long chain of directories exist before writing your files. You can't expect a static chain of directories, since you have to rely on an environment variable. This is one example, but as a general rule, whenever you want to write to a file, guile will create it if it does not exist, because the intent is "do whatever it takes to have that file and let me write to it". As I explained, copying the function is not a good thing, because it will need to adapt. If not a package, the solution could take the form of a gnulib for guile (which makes little sense since the whole guile is the standard library), or... > All that said, I do think that Guile itself should eventually include > some of the utilities found in (guix build utils) or Gash. I really think that would be the ideal solution. I understand that you don't want my package (to be fair, I'm not satisfied with one-package- per-function either), but the need for that particular function exceeds that of most other from guix build utils or gash. Look, even guix itself does not care about mkdir! I get 481 instances of '(mkdir ' in the source, for 1317 instances of '(mkdir-p '. That should say something about having a mkdir function by default, but not mkdir-p. The only functions from guix build utils that have more than 100 calls (detected as '(fun ') are with-directory-excursion (616), install-file (1018) (half of its job being mkdir-p), copy-recursively (559), delete-file-recursively (470), find-files (1161), which (1423, that's more than mkdir-p), modify-phases (4556, that's a lot more but it's very specific to guix), substitute* (4240, same), wrap-program (311, same), and invoke (2242). So I think if you want to import one function from guix build utils into guile, start with mkdir-p! Best regards, divoplade From unknown Fri Aug 15 20:27:23 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#44130] [PATCH] Add a recursive version of mkdir-p Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 23 Oct 2020 16:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44130 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: divoplade Cc: 44130@debbugs.gnu.org Received: via spool by 44130-submit@debbugs.gnu.org id=B44130.160347105128241 (code B ref 44130); Fri, 23 Oct 2020 16:38:02 +0000 Received: (at 44130) by debbugs.gnu.org; 23 Oct 2020 16:37:31 +0000 Received: from localhost ([127.0.0.1]:58085 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kW04I-0007LN-Sg for submit@debbugs.gnu.org; Fri, 23 Oct 2020 12:37:31 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50816) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kW04H-0007LA-6W for 44130@debbugs.gnu.org; Fri, 23 Oct 2020 12:37:29 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:53755) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kW04B-0002KI-An; Fri, 23 Oct 2020 12:37:23 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=57474 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kW049-0000Y7-UA; Fri, 23 Oct 2020 12:37:22 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <6ff632f5c1e378647cecc7177b7018fb8a0ee6d4.camel@divoplade.fr> <87y2jxnl0z.fsf@gnu.org> <85064b7663c320e8062b2db78151d22fc6fcddef.camel@divoplade.fr> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 2 Brumaire an 229 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: Fri, 23 Oct 2020 18:37:20 +0200 In-Reply-To: <85064b7663c320e8062b2db78151d22fc6fcddef.camel@divoplade.fr> (divoplade's message of "Fri, 23 Oct 2020 16:14:42 +0200") Message-ID: <871rholwzj.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) 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: -3.3 (---) Maybe I wasn=E2=80=99t clear enough but I don=E2=80=99t need to be convince= d about the usefulness of =E2=80=98mkdir-p=E2=80=99 and friends=E2=80=94I totally agree= with you! What I was questioning is the temptation to make one-function packages as is common for instance in npm. Thanks, Ludo=E2=80=99. From unknown Fri Aug 15 20:27:23 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#44130] [PATCH] Add a recursive version of mkdir-p Resent-From: divoplade Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 23 Oct 2020 17:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44130 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 44130@debbugs.gnu.org Received: via spool by 44130-submit@debbugs.gnu.org id=B44130.160347314931929 (code B ref 44130); Fri, 23 Oct 2020 17:13:02 +0000 Received: (at 44130) by debbugs.gnu.org; 23 Oct 2020 17:12:29 +0000 Received: from localhost ([127.0.0.1]:58258 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kW0c9-0008Iv-5k for submit@debbugs.gnu.org; Fri, 23 Oct 2020 13:12:29 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:48587) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kW0c5-0008Id-B2 for 44130@debbugs.gnu.org; Fri, 23 Oct 2020 13:12:27 -0400 X-Originating-IP: 86.202.110.111 Received: from divoplade.home (lfbn-lyo-1-15-111.w86-202.abo.wanadoo.fr [86.202.110.111]) (Authenticated sender: d@divoplade.fr) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 96F1C1BF206; Fri, 23 Oct 2020 17:12:18 +0000 (UTC) Message-ID: <3dca955c97222648074515b1a2c5ace96a2f1fd6.camel@divoplade.fr> From: divoplade Date: Fri, 23 Oct 2020 19:12:17 +0200 In-Reply-To: <871rholwzj.fsf@gnu.org> References: <6ff632f5c1e378647cecc7177b7018fb8a0ee6d4.camel@divoplade.fr> <87y2jxnl0z.fsf@gnu.org> <85064b7663c320e8062b2db78151d22fc6fcddef.camel@divoplade.fr> <871rholwzj.fsf@gnu.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 (-) Le vendredi 23 octobre 2020 à 18:37 +0200, Ludovic Courtès a écrit : > > What I was questioning is the temptation to make one-function > packages > as is common for instance in npm. Ah, so I can summarize. My solutions are: 1. Guile provides mkdir-p: Perfect! 2. I put the function in a package: not great, but acceptable. 3. I depend on gash: not acceptable, there's only mkdir-p that's interesting, the rest is for advanced system tools. 4. I copy that function around: not acceptable. So, there's no temptation to make one-function packages. Should I understand that you question the integration of one-function packages into guix? If you don't want it in guix, then it's fine, I can just use it only for myself, I have my own channel. In which case, please just say so, so we can all move on to more interesting things. Best regards, divoplade From unknown Fri Aug 15 20:27:23 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#44130] [PATCH] Add a recursive version of mkdir-p Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 23 Oct 2020 19:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44130 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: divoplade Cc: 44130@debbugs.gnu.org Received: via spool by 44130-submit@debbugs.gnu.org id=B44130.160348182922063 (code B ref 44130); Fri, 23 Oct 2020 19:38:02 +0000 Received: (at 44130) by debbugs.gnu.org; 23 Oct 2020 19:37:09 +0000 Received: from localhost ([127.0.0.1]:58417 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kW2s9-0005jn-3c for submit@debbugs.gnu.org; Fri, 23 Oct 2020 15:37:09 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:40565) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kW2s7-0005jb-Jq for 44130@debbugs.gnu.org; Fri, 23 Oct 2020 15:37:08 -0400 Received: by mail-wr1-f65.google.com with SMTP id h5so3412435wrv.7 for <44130@debbugs.gnu.org>; Fri, 23 Oct 2020 12:37:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=jmZNBO5HUQKvcNqrOx8WOGdsApMDccVvsppJ2Sa3+sQ=; b=dGGKeNv4JQtcMXAWmVqKd703Pk4ZAn0NUBN0tvDS8gFMGQqDDhFV1wF4d+mth5K5NB HfjBEvapEduMWMU5eNQXQJjBVY0+g/6NE1Xuyf9x3DpQRxND4nZsg+i1Z/ry0gAm5FA4 c8I+Fmqc11f+Cnenrbf0aQWS7GtxnASWhQV0dT48MX2zz3TRkuzfnE/kLRcLFT7PCi2A ab8Y35kqWja1Vx/cIKlGFgk1YwizvCuW+UaQGww1+tA4vfP4DxbD4jbbyOc1EATjT9TY m+79JlA8CxLNtouYhXYG6d6wjdlUFzK2g8X4JluvZXcQTf7uBxa3wItuUXX/hK0+7YTo i3Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=jmZNBO5HUQKvcNqrOx8WOGdsApMDccVvsppJ2Sa3+sQ=; b=UvT26cjt0EDSe8gSL1gC5MXQYa79wKJmGGDbiW3ujj0UFbeomd0Xt5+uY6M+QrtWgf UM0MwnIvRvayEkV0jaJ7/wJKmZTB3CZyo83Lzt2TR46FvAcExL9JgU4dbCHJ1EAdBkXc Q2SpLTfhvMEmcrsdwwcSWIex/GMu14iMHKer/0Fu+F6VXVLcS8mdPrmisxfTAWIkA5w5 +C/9PMkzRpjTP3ujzDrrwJqIZRuABJyfpZISali6XKVHO1LguihUw1O+mViXjh/3BQM0 H2a4o3mt4QgvhRtlTNxfKENsmSpuwIfNw1HjMpHSKioKYZhrU3oYIo8ks+J62+XTOOC3 xgsw== X-Gm-Message-State: AOAM531PEf6JQtyepcERp0Ab7C/fFfjMAnARUKKFbCAPf5J/IlLCWIz2 aIPJWjd68+FymojW+0lXtwS1PW3Iwfg= X-Google-Smtp-Source: ABdhPJzIrnT1YREwTEyIQOGU9VDnnSDiXNu/EKZloLy045w/K8Yid6cFsSzmMCKmik2PYNhjYkQvSg== X-Received: by 2002:a5d:4451:: with SMTP id x17mr4117065wrr.176.1603481821296; Fri, 23 Oct 2020 12:37:01 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id j5sm5189125wrx.88.2020.10.23.12.37.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Oct 2020 12:37:00 -0700 (PDT) From: zimoun References: <6ff632f5c1e378647cecc7177b7018fb8a0ee6d4.camel@divoplade.fr> Date: Fri, 23 Oct 2020 21:36:59 +0200 In-Reply-To: <6ff632f5c1e378647cecc7177b7018fb8a0ee6d4.camel@divoplade.fr> (divoplade's message of "Thu, 22 Oct 2020 01:29:48 +0200") Message-ID: <86sga420pw.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 (-) salut, On Thu, 22 Oct 2020 at 01:29, divoplade wrote: > 1. Lobby guile to provide this function out of the box (this will take > time); This path seems the one to go. It will take less time than running Guile on Windows. ;-) The only issue is that your code will depend on Guile 3.0.x where x>4.=20=20 Otherwise, why is it not possible to send a patch to Guile? > 2. Copy that of guix, or gash, or any other: this does not seem > acceptable to me, because this function will surely evolve (for > instance, if guile gets suport for mingw and we start running guile > programs on windows) and I don't want to update more than one version > of this function; The =E2=80=99mkdir-p=E2=80=99 version in (guix build utils) is the same as = 2012. So I am not convinced that you will need to update it really often. > 3. Depend on guix, gash or another package: this would be too large a > dependency for my programs. Ok. On Fri, 23 Oct 2020 at 19:12, divoplade wrote: > So, there's no temptation to make one-function packages. One package making one-function package will call other one-function packages. :-) =C3=A0 tant=C3=B4t, simon From unknown Fri Aug 15 20:27:23 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#44130] [PATCH] Add a recursive version of mkdir-p References: <6ff632f5c1e378647cecc7177b7018fb8a0ee6d4.camel@divoplade.fr> Resent-From: Leo Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 23 Oct 2020 20:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44130 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: d@divoplade.fr Cc: 44130@debbugs.gnu.org Received: via spool by 44130-submit@debbugs.gnu.org id=B44130.160348330124505 (code B ref 44130); Fri, 23 Oct 2020 20:02:02 +0000 Received: (at 44130) by debbugs.gnu.org; 23 Oct 2020 20:01:41 +0000 Received: from localhost ([127.0.0.1]:58461 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kW3Ft-0006NB-8t for submit@debbugs.gnu.org; Fri, 23 Oct 2020 16:01:41 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:30475) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kW3Fp-0006N1-VR for 44130@debbugs.gnu.org; Fri, 23 Oct 2020 16:01:40 -0400 Received: from nijino.local (217-149-162-161.nat.highway.telekom.at [217.149.162.161]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4CHw9B4Hpqz3wYd; Fri, 23 Oct 2020 22:01:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1603483294; bh=fVQOA70omqjIQ3srt4bDIdxdqHRpczJcEw5q/CKdOQI=; h=Subject:From:To:Cc:Date:In-Reply-To; b=PLg5dAmsa/thcR9aMHebm7RQ9qKjl6uFCosS8qnkBTf04TXy07KaSvxijYKhngLjA i1nnBaAfRsvBlffImej0N4O263gyEl5xbW/QDkKzFx1QaJofQNx51ZamdkWNr+YjQR XTo352vtJKcGH5pv3mhZDBVImKQQOQa74NROHJ6Q= Message-ID: <7dc336ad9bc86c4ef1e0bd85c8a3c39670a1307b.camel@student.tugraz.at> From: Leo Prikler Date: Fri, 23 Oct 2020 22:01:33 +0200 In-Reply-To: 3dca955c97222648074515b1a2c5ace96a2f1fd6.camel@divoplade.fr Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.116 X-Spam-Score: -2.3 (--) 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: -3.3 (---) > Le vendredi 23 octobre 2020 à 18:37 +0200, Ludovic Courtès a écrit : > > > > What I was questioning is the temptation to make one-function > > packages > > as is common for instance in npm. > > Ah, so I can summarize. My solutions are: > > 1. Guile provides mkdir-p: Perfect! > 2. I put the function in a package: not great, but acceptable. > 3. I depend on gash: not acceptable, there's only mkdir-p that's > interesting, the rest is for advanced system tools. > 4. I copy that function around: not acceptable. 5. You depend on any other package, that provides mkdir-p among other utilities big enough to be packaged in Guix: Not acceptable. 6. You depend on any other package, that provides just mkdir-p with maybe a few other utilities, that make Guix devs question whether this will become the next npm. 7. You write a module, that evals untrusted code from the internet and point it towards your implementation of mkdir-p. 8. You find existing implementations of mkdir-p insufficient and roll yet another mkdir-p. 9. You write an accelerated mkdir-p in native code as a shared library. 10. You combine 7 and 9. ... For what it's worth, I've been hacking on a slightly more complete set of filesystem utilities over at [1] for the past few days. It is not yet complete to the point that I'd consider its inclusion into Guix upstream, but you might want to try it out and perhaps contribute if that fits your niche. > So, there's no temptation to make one-function packages. > > Should I understand that you question the integration of one-function > packages into guix? If you don't want it in guix, then it's fine, I > can > just use it only for myself, I have my own channel. In which case, > please just say so, so we can all move on to more interesting things. In that case, you still recreate npm, just with an additional layer of indirection. Obviously Guix developers can not stop you from doing so, only advise you not to. Regards, Leo [1] https://gitlab.com/leoprikler/guile-filesystem From unknown Fri Aug 15 20:27:23 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#44130] Recursive mkdir Resent-From: divoplade Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 23 Oct 2020 22:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44130 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: bug-guile@gnu.org Cc: zimoun , 44130@debbugs.gnu.org Received: via spool by 44130-submit@debbugs.gnu.org id=B44130.16034904223698 (code B ref 44130); Fri, 23 Oct 2020 22:01:02 +0000 Received: (at 44130) by debbugs.gnu.org; 23 Oct 2020 22:00:22 +0000 Received: from localhost ([127.0.0.1]:58620 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kW56j-0000xU-V7 for submit@debbugs.gnu.org; Fri, 23 Oct 2020 18:00:22 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:35035) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kW56e-0000wx-NA for 44130@debbugs.gnu.org; Fri, 23 Oct 2020 18:00:20 -0400 X-Originating-IP: 86.202.110.111 Received: from divoplade.home (lfbn-lyo-1-15-111.w86-202.abo.wanadoo.fr [86.202.110.111]) (Authenticated sender: d@divoplade.fr) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 8B023C0010; Fri, 23 Oct 2020 22:00:09 +0000 (UTC) Message-ID: <21802e695ea4472c8aba0a686e6bf025890c64d6.camel@divoplade.fr> From: divoplade Date: Sat, 24 Oct 2020 00:00:08 +0200 In-Reply-To: <86sga420pw.fsf@gmail.com> References: <6ff632f5c1e378647cecc7177b7018fb8a0ee6d4.camel@divoplade.fr> <86sga420pw.fsf@gmail.com> Content-Type: multipart/mixed; boundary="=-2n+Yr1PhVjhl1iTa+iXe" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 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 (-) --=-2n+Yr1PhVjhl1iTa+iXe Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Dear guile, I have slightly modified the mkdir function so that it takes a third argument to try to create the intermediate directories when calling mkdir, in effect acting as "mkdir -p". However, I could not make the test suite run the ports test, on which I added the test for the new behavior. Is it expected? How do I run it? In the mean time, here is the WIP version of the patch. Best regards, divoplade Le vendredi 23 octobre 2020 à 21:36 +0200, zimoun a écrit : > salut, > > On Thu, 22 Oct 2020 at 01:29, divoplade wrote: > > > 1. Lobby guile to provide this function out of the box (this will > > take > > time); > > This path seems the one to go. It will take less time than running > Guile on Windows. ;-) > > The only issue is that your code will depend on Guile 3.0.x where > x>4. > > Otherwise, why is it not possible to send a patch to Guile? --=-2n+Yr1PhVjhl1iTa+iXe Content-Disposition: attachment; filename*0=0001-mkdir-Add-an-optional-argument-recursive-to-create-t.pat; filename*1=ch Content-Transfer-Encoding: base64 Content-Type: text/x-patch; name="0001-mkdir-Add-an-optional-argument-recursive-to-create-t.patch"; charset="UTF-8" RnJvbSBkNjlmMjQ2MTcyOTBjNGE4NzVmZjIzNTZjYTIyOWJmMTY1OWZlYWZlIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBkaXZvcGxhZGUgPGRAZGl2b3BsYWRlLmZyPgpEYXRlOiBGcmks IDIzIE9jdCAyMDIwIDIyOjQ0OjM2ICswMjAwClN1YmplY3Q6IFtQQVRDSF0gbWtkaXI6IEFkZCBh biBvcHRpb25hbCBhcmd1bWVudCwgcmVjdXJzaXZlLCB0byBjcmVhdGUgdGhlCiBpbnRlcm1lZGlh dGVzCgoyMDIwLTEwLTIzIGRpdm9wbGFkZSA8ZEBkaXZvcGxhZGUuZnI+CgkqIGxpYmd1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SwgcGF0aHMpOworICAgICAgICAgIGN1cnJlbnRf bmFtZSA9IHBhcmVudF9uYW1lOworICAgICAgICAgIHBhcmVudF9uYW1lID0gc2NtX2Rpcm5hbWUg KGN1cnJlbnRfbmFtZSk7CisgICAgICAgIH0KKyAgICAgIGlmIChzY21faXNfdHJ1ZSAoc2NtX2Vx dWFsX3AgKGN1cnJlbnRfbmFtZSwgc2NtX2Zyb21fdXRmOF9zdHJpbmcgKCIuIikpKSkKKyAgICAg ICAgeworICAgICAgICAgIC8qIElmIHRoZSByb290IGlzICcuJywgdGhlbiBhbHNvIG1ha2UgdGhl IGN1cnJlbnQgd29ya2luZworICAgICAgICAgICAgIGRpcmVjdG9yeSB0aGUgc2FtZSB3YXkuICov CisgICAgICAgICAgc2NtX21rZGlyIChzY21fZ2V0Y3dkICgpLCBtb2RlLCByZWN1cnNpdmUpOwor ICAgICAgICB9CisgICAgICB3aGlsZSAoIXNjbV9pc19udWxsIChwYXRocykpCisgICAgICAgIHsK KyAgICAgICAgICBTQ00gZGlyID0gc2NtX2NhciAocGF0aHMpOworICAgICAgICAgIC8qIElnbm9y ZSB0aGUgZXJyb3JzLiBJZiBvbmUgbWtkaXIgZmFpbHMsIHRoZSBmaW5hbAorICAgICAgICAgICAg IFNUUklOR19TWVNDQUxMIGF0IHRoZSBlbmQgb2YgdGhpcyBmdW5jdGlvbiB3aWxsIGZhaWwKKyAg ICAgICAgICAgICB0b28uICovCisgICAgICAgICAgU1RSSU5HX1NZU0NBTEwgKGRpciwgY19kaXIs IG1rZGlyIChjX2RpciwgY19tb2RlKSk7CisgICAgICAgICAgcGF0aHMgPSBzY21fY2RyIChwYXRo cyk7CisgICAgICAgIH0KKyAgICB9CisKICAgU1RSSU5HX1NZU0NBTEwgKHBhdGgsIGNfcGF0aCwg cnYgPSBta2RpciAoY19wYXRoLCBjX21vZGUpKTsKICAgaWYgKHJ2ICE9IDApCiAgICAgU0NNX1NZ U0VSUk9SOwpkaWZmIC0tZ2l0IGEvbG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c3RyaW5nLWluZGV4ICglc2VhcmNoLWxvYWQtcGF0aCAoYmFzZW5hbWUgKHRlc3QtZmls ZSkpKQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAjXFwpKSkpKSkKIAorKHdpdGgtdGVz dC1wcmVmaXggInJlY3Vyc2l2ZSBta2RpciIKKworICAocGFzcy1pZiAiUmVsYXRpdmUgcmVjdXJz aXZlIG1rZGlyIGNyZWF0ZXMgdGhlIGNoYWluIG9mIGRpcmVjdG9yaWVzIgorICAgIChsZXQgKChk aXIgIi4vbmVzdGVkL3JlbGF0aXZlL3N1YmRpcmVjdG9yeSIpKQorICAgICAgKG1rZGlyIGRpciAj bzc3NyBkaXIgI3QpCisgICAgICAobGV0ICgob2sKKyAgICAgICAgICAgICAoY2F0Y2ggI3QKKyAg ICAgICAgICAgICAgIChsYW1iZGEgKCkKKyAgICAgICAgICAgICAgICAgKHdpdGgtb3V0cHV0LXRv LWZpbGUgIi4vbmVzdGVkL3JlbGF0aXZlL3N1YmRpcmVjdG9yeS9maWxlIgorICAgICAgICAgICAg ICAgICAgIChsYW1iZGEgKCkKKyAgICAgICAgICAgICAgICAgICAgIChkaXNwbGF5ICJUaGUgZGly ZWN0b3JpZXMgaGF2ZSBiZWVuIGNyZWF0ZWQhIikKKyAgICAgICAgICAgICAgICAgICAgICN0KSkp CisgICAgICAgICAgICAgICAobGFtYmRhIChlcnJvciAuIGFyZ3MpCisgICAgICAgICAgICAgICAg ICNmKSkpKQorICAgICAgICAod2hlbiBvaworICAgICAgICAgIChkZWxldGUtZmlsZSAiLi9uZXN0 ZWQvcmVsYXRpdmUvc3ViZGlyZWN0b3J5L2ZpbGUiKQorICAgICAgICAgIChybWRpciAiLi9uZXN0 ZWQvcmVsYXRpdmUvc3ViZGlyZWN0b3J5IikKKyAgICAgICAgICAocm1kaXIgIi4vbmVzdGVkL3Jl bGF0aXZlIikKKyAgICAgICAgICAocm1kaXIgIi4vbmVzdGVkIikpCisgICAgICAgIG9rKSkpCisK KyAgKHBhc3MtaWYgIkFic29sdXRlIHJlY3Vyc2l2ZSBta2RpciBjcmVhdGVzIHRoZSBjaGFpbiBv ZiBkaXJlY3RvcmllcyIKKyAgICAobGV0ICgoZGlyIChzdHJpbmctYXBwZW5kICV0ZW1wb3Jhcnkt ZGlyZWN0b3J5ICIvbmVzdGVkL2Fic29sdXRlL3N1YmRpcmVjdG9yeSIpKSkKKyAgICAgIChta2Rp ciBkaXIgI283NzcgZGlyICN0KQorICAgICAgKGxldCAoKG9rCisgICAgICAgICAgICAgKGNhdGNo ICN0CisgICAgICAgICAgICAgICAobGFtYmRhICgpCisgICAgICAgICAgICAgICAgICh3aXRoLW91 dHB1dC10by1maWxlIChzdHJpbmctYXBwZW5kIGRpciAiL2ZpbGUiKQorICAgICAgICAgICAgICAg ICAgIChsYW1iZGEgKCkKKyAgICAgICAgICAgICAgICAgICAgIChkaXNwbGF5ICJUaGUgZGlyZWN0 b3JpZXMgaGF2ZSBiZWVuIGNyZWF0ZWQhIikKKyAgICAgICAgICAgICAgICAgICAgICN0KSkpCisg ICAgICAgICAgICAgICAobGFtYmRhIChlcnJvciAuIGFyZ3MpCisgICAgICAgICAgICAgICAgICNm KSkpKQorICAgICAgICAod2hlbiBvaworICAgICAgICAgIChkZWxldGUtZmlsZSAoc3RyaW5nLWFw cGVuZCBkaXIgIi9maWxlIikpCisgICAgICAgICAgKHJtZGlyIChzdHJpbmctYXBwZW5kICV0ZW1w b3JhcnktZGlyZWN0b3J5ICIvbmVzdGVkL2Fic29sdXRlL3N1YmRpcmVjdG9yeSIpKQorICAgICAg ICAgIChybWRpciAoc3RyaW5nLWFwcGVuZCAldGVtcG9yYXJ5LWRpcmVjdG9yeSAiL25lc3RlZC9h YnNvbHV0ZSIpKQorICAgICAgICAgIChybWRpciAoc3RyaW5nLWFwcGVuZCAldGVtcG9yYXJ5LWRp cmVjdG9yeSAiL25lc3RlZCIpKSkKKyAgICAgICAgb2spKSkpCisKIChkZWxldGUtZmlsZSAodGVz dC1maWxlKSkKIAogOzs7IExvY2FsIFZhcmlhYmxlczoKLS0gCjIuMjguMAoK --=-2n+Yr1PhVjhl1iTa+iXe-- From unknown Fri Aug 15 20:27:23 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#44130] [PATCH] Add a recursive version of mkdir-p Resent-From: divoplade Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 23 Oct 2020 22:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44130 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: zimoun Cc: 44130@debbugs.gnu.org Received: via spool by 44130-submit@debbugs.gnu.org id=B44130.16034910864783 (code B ref 44130); Fri, 23 Oct 2020 22:12:01 +0000 Received: (at 44130) by debbugs.gnu.org; 23 Oct 2020 22:11:26 +0000 Received: from localhost ([127.0.0.1]:58637 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kW5HR-0001F5-Ta for submit@debbugs.gnu.org; Fri, 23 Oct 2020 18:11:26 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:2919) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kW5HQ-0001Er-3C for 44130@debbugs.gnu.org; Fri, 23 Oct 2020 18:11:24 -0400 X-Originating-IP: 86.202.110.111 Received: from divoplade.home (lfbn-lyo-1-15-111.w86-202.abo.wanadoo.fr [86.202.110.111]) (Authenticated sender: d@divoplade.fr) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id E4AF6240002; Fri, 23 Oct 2020 22:11:16 +0000 (UTC) Message-ID: <84964ce5ce08deafc937a7a4c2fc6dc9115b437b.camel@divoplade.fr> From: divoplade Date: Sat, 24 Oct 2020 00:11:16 +0200 In-Reply-To: <86sga420pw.fsf@gmail.com> References: <6ff632f5c1e378647cecc7177b7018fb8a0ee6d4.camel@divoplade.fr> <86sga420pw.fsf@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 (-) Le vendredi 23 octobre 2020 à 21:36 +0200, zimoun a écrit : > salut, > > On Thu, 22 Oct 2020 at 01:29, divoplade wrote: > > > 1. Lobby guile to provide this function out of the box (this will > > take > > time); > > This path seems the one to go. It will take less time than running > Guile on Windows. ;-) > > The only issue is that your code will depend on Guile 3.0.x where > x>4. > > Otherwise, why is it not possible to send a patch to Guile? The discussion continues here, in order to send the desired patch to guile: 44186@debbugs.gnu.org From unknown Fri Aug 15 20:27:23 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: divoplade Subject: bug#44130: closed (Re: [bug#44130] [PATCH] Add a recursive version of mkdir-p) Message-ID: References: <87r1pkaprl.fsf@gnu.org> <6ff632f5c1e378647cecc7177b7018fb8a0ee6d4.camel@divoplade.fr> X-Gnu-PR-Message: they-closed 44130 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 44130@debbugs.gnu.org Date: Mon, 26 Oct 2020 16:58:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1603731482-23677-1" This is a multi-part message in MIME format... ------------=_1603731482-23677-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #44130: [PATCH] Add a recursive version of mkdir-p 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 44130@debbugs.gnu.org. --=20 44130: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D44130 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1603731482-23677-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 44130-done) by debbugs.gnu.org; 26 Oct 2020 16:58:01 +0000 Received: from localhost ([127.0.0.1]:41115 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kX5om-00069a-Vh for submit@debbugs.gnu.org; Mon, 26 Oct 2020 12:58:01 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42656) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kX5om-00069Q-4M for 44130-done@debbugs.gnu.org; Mon, 26 Oct 2020 12:58:00 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58554) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kX5og-0005Rp-H5; Mon, 26 Oct 2020 12:57:54 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=33992 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kX5oe-0004gG-FF; Mon, 26 Oct 2020 12:57:52 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: divoplade Subject: Re: [bug#44130] [PATCH] Add a recursive version of mkdir-p References: <6ff632f5c1e378647cecc7177b7018fb8a0ee6d4.camel@divoplade.fr> <87y2jxnl0z.fsf@gnu.org> <85064b7663c320e8062b2db78151d22fc6fcddef.camel@divoplade.fr> <871rholwzj.fsf@gnu.org> <3dca955c97222648074515b1a2c5ace96a2f1fd6.camel@divoplade.fr> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 3 Brumaire an 229 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: Mon, 26 Oct 2020 17:57:50 +0100 In-Reply-To: <3dca955c97222648074515b1a2c5ace96a2f1fd6.camel@divoplade.fr> (divoplade's message of "Fri, 23 Oct 2020 19:12:17 +0200") Message-ID: <87r1pkaprl.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 44130-done Cc: 44130-done@debbugs.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: -3.3 (---) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello! divoplade skribis: > Le vendredi 23 octobre 2020 =C3=A0 18:37 +0200, Ludovic Court=C3=A8s a = =C3=A9crit : >>=20 >> What I was questioning is the temptation to make one-function >> packages >> as is common for instance in npm. > > Ah, so I can summarize. My solutions are: > > 1. Guile provides mkdir-p: Perfect! Yes, we can work towards that goal. > 2. I put the function in a package: not great, but acceptable. > 3. I depend on gash: not acceptable, there's only mkdir-p that's > interesting, the rest is for advanced system tools. > 4. I copy that function around: not acceptable. I agree that #4 is suboptimal, but I think you=E2=80=99re overstating it. > So, there's no temptation to make one-function packages. Well=E2=80=A6 :-) > Should I understand that you question the integration of one-function > packages into guix? If you don't want it in guix, then it's fine, I can > just use it only for myself, I have my own channel. In which case, > please just say so, so we can all move on to more interesting things. No no, like I wrote, I=E2=80=99m fine adding the =E2=80=98mkdir-p=E2=80=99 = package, no problem; the project currently has no guideline against one-function packages. Anyway, I=E2=80=99ve applied the patch with the cosmetic changes below. Thanks! Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm index e3f547412b..d09e8d9737 100644 --- a/gnu/packages/guile-xyz.scm +++ b/gnu/packages/guile-xyz.scm @@ -4016,12 +4016,14 @@ errors.") (method git-fetch) (uri (git-reference (url "https://code.divoplade.fr/mkdir-p.git") - (commit "83e955ba612369336a69fe50fe023ad14fbe5d7c"))) - (sha256 (base32 "01k20rjcv6p0spmw8ls776aar6bfw0jxw46d2n12w0cb2p79xjv8")) + (commit (string-append "v" version)))) + (sha256 + (base32 "01k20rjcv6p0spmw8ls776aar6bfw0jxw46d2n12w0cb2p79xjv8")) + (file-name (git-file-name name version)) (snippet `(begin (with-output-to-file ".tarball-version" - (lambda _ (format #t "~a~%" "1.0.1"))) + (lambda _ (format #t "~a~%" ,version))) #t)))) (build-system gnu-build-system) (arguments `()) @@ -4034,14 +4036,12 @@ errors.") ("pkg-config" ,pkg-config) ("gettext" ,gnu-gettext))) (inputs `(("guile" ,guile-3.0))) - (propagated-inputs - `(("guile" ,guile-3.0))) - (synopsis "Implementation of a recursive mkdir for guile") + (synopsis "Implementation of a recursive @code{mkdir} for Guile") (description - "This package provides within the (mkdir-p) module the mkdir-p function -that tries to create the chain of directories recursively. It also provides -new versions of open-output-file, call-with-output-file and -with-output-to-file to create the directory of its argument if it does not -exist.") + "This package provides within the @code{(mkdir-p)} module the +@code{mkdir-p} function that tries to create the chain of directories +recursively. It also provides new versions of @code{open-output-file}, +@code{call-with-output-file} and @code{with-output-to-file} to create the +directory of its argument if it does not exist.") (home-page "https://mkdir-p.divoplade.fr") (license license:asl2.0))) --=-=-=-- ------------=_1603731482-23677-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 21 Oct 2020 23:30:02 +0000 Received: from localhost ([127.0.0.1]:50874 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVNYQ-0000Kt-AK for submit@debbugs.gnu.org; Wed, 21 Oct 2020 19:30:02 -0400 Received: from lists.gnu.org ([209.51.188.17]:46500) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVNYO-0000K4-JH for submit@debbugs.gnu.org; Wed, 21 Oct 2020 19:30:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44008) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVNYN-00020t-6y for guix-patches@gnu.org; Wed, 21 Oct 2020 19:29:59 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:32941) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVNYK-00004u-6Z for guix-patches@gnu.org; Wed, 21 Oct 2020 19:29:58 -0400 X-Originating-IP: 86.202.110.111 Received: from divoplade.home (lfbn-lyo-1-15-111.w86-202.abo.wanadoo.fr [86.202.110.111]) (Authenticated sender: d@divoplade.fr) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 82C9AFF806 for ; Wed, 21 Oct 2020 23:29:49 +0000 (UTC) Message-ID: <6ff632f5c1e378647cecc7177b7018fb8a0ee6d4.camel@divoplade.fr> Subject: [PATCH] Add a recursive version of mkdir-p From: divoplade To: guix-patches@gnu.org Date: Thu, 22 Oct 2020 01:29:48 +0200 Content-Type: multipart/mixed; boundary="=-3NrNEACo3iXWPY+QWleW" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Received-SPF: pass client-ip=217.70.183.199; envelope-from=d@divoplade.fr; helo=relay9-d.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/21 19:29:49 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit 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: -2.6 (--) --=-3NrNEACo3iXWPY+QWleW Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Dear guix, I need this mkdir-p function in any non-trivial program I write. I had 3 bad choices: 1. Lobby guile to provide this function out of the box (this will take time); 2. Copy that of guix, or gash, or any other: this does not seem acceptable to me, because this function will surely evolve (for instance, if guile gets suport for mingw and we start running guile programs on windows) and I don't want to update more than one version of this function; 3. Depend on guix, gash or another package: this would be too large a dependency for my programs. So I wrote it in its own package and I intend to depend on it for my other projects. It would be best if you could accept this package in guix proper. What do you think? Best regards, divoplade --=-3NrNEACo3iXWPY+QWleW Content-Disposition: attachment; filename="0001-Add-guile-mkdir-p.patch" Content-Transfer-Encoding: base64 Content-Type: text/x-patch; name="0001-Add-guile-mkdir-p.patch"; charset="UTF-8" RnJvbSAxYTE3OThhOTliMDllZjdkZjBmMTgzZDk5ZWE5YTQ3MTdiOTQwNmQ3IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBkaXZvcGxhZGUgPGRAZGl2b3BsYWRlLmZyPgpEYXRlOiBUaHUs IDIyIE9jdCAyMDIwIDAxOjE0OjI3ICswMjAwClN1YmplY3Q6IFtQQVRDSF0gQWRkIGd1aWxlLW1r ZGlyLXAKCkFzIHRoZXJlIGlzIG5vIGd1aWxlIGZ1bmN0aW9uIHRvIGNyZWF0ZSBkaXJlY3Rvcmll cyByZWN1cnNpdmVseSwgYSBsb3Qgb2YKcGFja2FnZXMgYnVuZGxlIHRoZWlyIG93bi4gRm9yIGlu c3RhbmNlLCBHdWlsZSBhcy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yAgICAgICAg ICAgICAoY29tbWl0ICI4M2U5NTViYTYxMjM2OTMzNmE2OWZlNTBmZTAyM2FkMTRmYmU1ZDdjIikp KQorICAgICAgIChzaGEyNTYgKGJhc2UzMiAiMDFrMjByamN2NnAwc3Btdzhsczc3NmFhcjZiZncw anh3NDZkMm4xMncwY2IycDc5eGp2OCIpKQorICAgICAgIChzbmlwcGV0CisgICAgICAgIGAoYmVn aW4KKyAgICAgICAgICAgKHdpdGgtb3V0cHV0LXRvLWZpbGUgIi50YXJiYWxsLXZlcnNpb24iCisg ICAgICAgICAgICAgKGxhbWJkYSBfIChmb3JtYXQgI3QgIn5hfiUiICIxLjAuMSIpKSkKKyAgICAg ICAgICAgI3QpKSkpCisgICAgKGJ1aWxkLXN5c3RlbSBnbnUtYnVpbGQtc3lzdGVtKQorICAgIChh cmd1bWVudHMgYCgpKQorICAgIChuYXRpdmUtaW5wdXRzCisgICAgIGAoKCJndWlsZSIgLGd1aWxl LTMuMCkKKyAgICAgICAoInRleGluZm8iICx0ZXhpbmZvKQorICAgICAgICgiYXV0b2NvbmYiICxh dXRvY29uZikKKyAgICAgICAoImF1dG9jb25mLWFyY2hpdmUiICxhdXRvY29uZi1hcmNoaXZlKQor ICAgICAgICgiYXV0b21ha2UiICxhdXRvbWFrZSkKKyAgICAgICAoInBrZy1jb25maWciICxwa2ct Y29uZmlnKQorICAgICAgICgiZ2V0dGV4dCIgLGdudS1nZXR0ZXh0KSkpCisgICAgKGlucHV0cyBg KCgiZ3VpbGUiICxndWlsZS0zLjApKSkKKyAgICAocHJvcGFnYXRlZC1pbnB1dHMKKyAgICAgYCgo Imd1aWxlIiAsZ3VpbGUtMy4wKSkpCisgICAgKHN5bm9wc2lzICJJbXBsZW1lbnRhdGlvbiBvZiBh IHJlY3Vyc2l2ZSBta2RpciBmb3IgZ3VpbGUiKQorICAgIChkZXNjcmlwdGlvbgorICAgICAiVGhp cyBwYWNrYWdlIHByb3ZpZGVzIHdpdGhpbiB0aGUgKG1r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