Opened 16 years ago

Last modified 14 years ago

#18992 new enhancement

silc-client: Add variant for irssi plugin

Reported by: arthur@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: irssi Cc: blb@…
Port: silc-client

Description (last modified by blb@…)

silc-client can be complied as a plugin for irssi. To enable this I altered the port file to add to the configure options:

                        --disable-asm \
+                        --with-silc-plugin=${prefix}/lib/irssi \
+                        --without-silc-includes

Ideally this would be a varient and have a dependancy on irssi.

I then needed to bodge the files in /opt/local/lib/irssi/modules to make the module loading work

 sudo ln -s libsilc_core.dylib libsilc_core.so
 sudo ln -s libfe_common_silc.dylib libfe_common_slic.so

I'm sure all of this could be done better, but the functionality is very useful.

Attachments (1)

silc-client.diff (1.6 KB) - added by blb@… 16 years ago.
diff to Portfile

Download all attachments as: .zip

Change History (6)

comment:1 Changed 16 years ago by blb@…

Cc: blb@… added
Description: modified (diff)

Hmm, so irssi won't load them unless they are named with .so? On the Mac either dylibs or so's can be dlopen()ed so obviously the symlink will work, but maybe we could update irssi to open either file type?

comment:2 Changed 16 years ago by arthur@…

It certainly seems that it insists on .so. To test it you need to have a file called 'startup' in your .irssi dir containing

swelter:~/.irssi 504: cat startup                                                              9:39:08
LOAD silc

Arthur

comment:3 Changed 16 years ago by blb@…

Keywords: irssi added

I can get it to install & irssi successfully loads with '/load silc' but if I try '/silc list-ciphers' it crashes:

Thread 0 Crashed:
0   irssi                           0x00043529 format_read_arglist + 57
1   irssi                           0x0004a60f printformat_module_dest_args + 127
2   irssi                           0x0004a7fc printformat_module_args + 76
3   irssi                           0x0004a847 printformat_module + 55
4   libsilc_core.so                 0x0063c60f silc_client_list_ciphers + 175
5   libsilc_core.so                 0x00641a20 silc_opt_callback + 1552
6   irssi                           0x00097634 signal_emit_real + 228
...

Not sure where to go with it from here. Note it crashes with both irssi (irssi @0.8.12_1+perl) and irssi-devel (irssi-devel @5034_0).

Attaching my update to the silc-client port (also updates it to current version) in case someone has other ideas.

Changed 16 years ago by blb@…

Attachment: silc-client.diff added

diff to Portfile

comment:4 Changed 16 years ago by (none)

Milestone: Port Enhancements

Milestone Port Enhancements deleted

comment:5 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: Add port varient as irssi pluginsilc-client: Add variant for irssi plugin
Note: See TracTickets for help on using tickets.