GNU bug report logs - #74532
with-extensions does not add native extensions to the load path

Previous Next

Package: guix;

Reported by: Tomas Volf <~@wolfsden.cz>

Date: Mon, 25 Nov 2024 17:51:01 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Ludovic Courtès <ludo <at> gnu.org>
To: Tomas Volf <~@wolfsden.cz>
Cc: Z572 <zhengjunjie <at> iscas.ac.cn>, 74532 <at> debbugs.gnu.org, Timo Wilken <guix <at> twilken.net>
Subject: bug#74532: [PATCH] gnu: guile-yamlpp: Allow usage with `with-extensions'
Date: Tue, 25 Mar 2025 11:10:26 +0100
Hi,

Tomas Volf <~@wolfsden.cz> skribis:

> Timo Wilken <guix <at> twilken.net> writes:

[...]

>> +                   (format #f "(or (false-if-exception (load-extension \"~a/lib/guile/3.0/libguile-yamlpp\"~a)) ~a)"
>> +                           (assoc-ref outputs "out") init all))))))))
>
> I am not sure it is optimal to hide *all* errors from load-extension.
> Maybe check if file exists and then try to load-extension it without the
> false-if-exception?

Or just unconditionally load from the absolute file name?  I don’t see
what the ‘or’ buys us.

Thanks,
Ludo’.




This bug report was last modified 44 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.