[PATCH] unit-tests/logging.logger: Bugfix: Use "mkstemp!" with Guile 2

2024-04-29 Thread Artyom V. Poptsov
When tests are run with Guile 2 "logging.logger.scm" would always fail due to undefined reference to "mkstemp" that was introduced only in Guile 3. In Guile 2 the procedure is called "mkstemp!". This patch fixes that by adding an additional runtime check. * unit-tests/logging.logger.scm (call-wi

[PATCH v2] unit-tests/logging.logger: Fix tests with Guile 2

2024-04-29 Thread Artyom V. Poptsov
When tests are run with Guile 2 "logging.logger.scm" would always fail due to undefined reference to "mkstemp" that was introduced only in Guile 3. In Guile 2 the procedure is called "mkstemp!". Also "call-with-port" procedure is available only from (rnrs io ports) in Guile 2, while in Guile 3 th

guile-lib logging formatters

2024-04-29 Thread Christopher Baines
Hey! I ran in to some problems with the formatter recently, it seems it's being called with more than 3 arguments since the update to guile-lib 0.2.8. Can you advise on how to approach this? I presume this isn't some internal interface I'm using accidentally? The documentation states: #:form

exception from inside false-if-exception?

2024-04-29 Thread Attila Lendvai
dear fellow Guilers, context: i'm working on shepherd (with several non-trivial local commits). its test suite runs clean from a shell, but fails when i try to `./pre-inst-env guix build -K shepherd@0.10.99-git`. the sympthom: - COLUMNS is not set in the guix build env,

[PATCH] doc: add example for module texinfo doc format

2024-04-29 Thread Nikolaos Chatzikonstantinou
Hello, I'm attaching a minor patch for documentation. Regards, Nikolaos Chatzikonstantinou From ae0cb62a7400a5e45206663c22df6920f7f798f0 Mon Sep 17 00:00:00 2001 From: Nikolaos Chatzikonstantinou Date: Mon, 29 Apr 2024 08:38:33 -0400 Subject: [PATCH] doc: add example for module texinfo doc forma

RE: exception from inside false-if-exception?

2024-04-29 Thread Maxime Devos
[Adding Andy Wingo because of the stack shenanigans] >Subject: exception from inside false-if-exception? Duplicate of #46009 - (backtrace) crash, string->number: Wrong type argument in position 1 (expecting string): #f - GNU bug report logs >the expression pointed to by debug.scm,72:40 is this:

Re: exception from inside false-if-exception?

2024-04-29 Thread Christopher Baines
Attila Lendvai writes: > dear fellow Guilers, > > context: > > > i'm working on shepherd (with several non-trivial local commits). its > test suite runs clean from a shell, but fails when i try to > `./pre-inst-env guix build -K shepherd@0.10.99-git`. > > > the sympthom: > -

Re: exception from inside false-if-exception?

2024-04-29 Thread Attila Lendvai
> I think I've had similar problems in the past, I did fine this IRC > conversation: > > https://logs.guix.gnu.org/guile/2021-01-19.log#204926 the very same bug was already discussed in 2021?! from the log: > you're using a pre-unwind handler here > whereas false-if-exception only sets a post-u