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 #23 received at 74532 <at> debbugs.gnu.org (full text, mbox):

From: "Timo Wilken" <guix <at> twilken.net>
To: <74532 <at> debbugs.gnu.org>
Cc: Tomas Volf <~@wolfsden.cz>, Z572 <zhengjunjie <at> iscas.ac.cn>,
 Ludovic Courtès <ludo <at> gnu.org>
Subject: Re: with-extensions does not add native extensions to the load path
Date: Sat, 15 Mar 2025 22:04:53 +0100
Hi,

Since I ran into this problem with guile-yamlpp today, I went ahead and
implemented Z572's suggestion.

It still feels wrong to do this on a per-package basis (shouldn't
`with-extension' take care of setting up the path?), but hey ho.

I needed the fallback (as suggested by Z572), else tests would fail (as
predicted by Tomas).

Like this, the whole chain works for me; in my case:

(computed-file "test"
  (with-extensions (list guile-yamlpp)
    #~(use-modules (yamlpp))))

Patch incoming.

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.