artyom-poptsov / guile-ssh

Guile-SSH is a library that provides access to the SSH protocol for GNU Guile programs.
https://memory-heap.org/~avp/projects/guile-ssh
GNU General Public License v3.0
63 stars 13 forks source link

libguile-ssh should be installed as an extension #31

Open aconchillo opened 2 years ago

aconchillo commented 2 years ago

This came up in a new Apple M1 where Homebrew is installed in /opt/homebrew instead of /usr/local as Apple intel's. libguile-ssh should actually be installed as an extension (as other extensions). This way GUILE_SYSTEM_EXTENSIONS_PATH can be used.

aconchillo commented 2 years ago

@artyom-poptsov ping

artyom-poptsov commented 2 years ago

Hello.

Thank you for the patch.

I rebased your changes on top of the master branch. make -j$(nproc) distcheck works fine, but when I try to guix build -f ./guix.scm, I get the following error. guile-ssh-build.log

avp

aconchillo commented 1 year ago

Oh, so sorry I missed your message somehow. Yeah...I think the issue is that the extension is installed in

   /gnu/store/2s8q7mirdzr6sllb2cpidxhlhrvb77fm-guile-ssh-git/lib/guile/3.0/extensions

I'm not sure how guix solves this (not sure if it create symbolic links). But probably that path is not in GUILE_EXTENSIONS_PATH. I need to find some time to check this.

Hellseher commented 1 year ago

@aconchillo May you share brew's formula of the guile-ssh package? This issue can be solved on the package side instead of library.

Guix uses isolated build with symlink to all dependencies as read only location in /gnu/store the same mechanics are in use in NixOS.

aconchillo commented 6 months ago

@aconchillo May you share brew's formula of the guile-ssh package? This issue can be solved on the package side instead of library.

Sorry! Completely missed this. Yes, that's what I ended up doing. This is it:

https://github.com/aconchillo/homebrew-guile/blob/main/Formula/guile-ssh.rb