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


Message #38 received at 74532 <at> debbugs.gnu.org (full text, mbox):

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

On Tue 25 Mar 2025 at 11:10 am CET, Ludovic Courtès wrote:
> Tomas Volf <~@wolfsden.cz> skribis:
>> Timo Wilken <guix <at> twilken.net> writes:
>> 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?

I think the v2 patch makes this moot -- see below.

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

That only works if I move 'check after 'install -- else it fails with an error
in `load-foreign-library', saying the file doesn't exist.

The v2 patch does that, and works for me (as in, it compiles and I can use the
resulting package in `with-extensions').

Feedback is very welcome!

Cheers,
Timo




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.