Klemens Nanni writes:

> On Sat, Jan 18, 2020 at 11:20:41PM -0800, Nam Nguyen wrote:
>> Here is a revised diff that moves deluge to python 3, using the proposed
>> fixes for devel/boost and proposed update for net/libtorrent-rasterbar.
>> 
>> Here is a quick way to test that the libtorrent python 3 bindings are
>> working.
>> 
>> $ python3 -c "from deluge._libtorrent import lt; print(lt.version)"
>> 1.2.3.0
>> 
>> >
>> > Feedback and tests are welcome.
>> boost fix: https://marc.info/?l=openbsd-ports&m=157941202507663&w=2
>> libtorrent-rasterbar update: 
>> https://marc.info/?l=openbsd-ports&m=157941739108514&w=2
> boost is committed, so I built and installed that.
> Then I applied your latest libtorrent-rasterbar patch and installed that.
>
> Same for deluge, except that above test does not work:

> Deluge then fails to start in standalone mode;  upon first launch I'm
> asked to switch to thin client mode.

> The thin client works and I can work with my remote client, so that's
> already great, above however seems odd, especially because it seems to
> work for you.

1. As a sanity check do you see this?

$ nm -g /usr/local/lib/libboost_python.so.10.0
0003d210 T _ZN5boost6python6detail11init_moduleEPKcPFvvE

$ nm -g /usr/local/lib/libboost_python3.so.10.0
0003b730 T _ZN5boost6python6detail11init_moduleER11PyModuleDefPFvvE

2. Can you post build logs? Here are mine:

https://namtsui.com/public/libtorrent-rasterbar.txt
https://namtsui.com/public/deluge.txt

In particular the section "building 'libtorrent' extension" is of
interest. It builds
{WRKSRC}/bindings/python/build/lib.openbsd-6.6-amd64-3.7/libtorrent.so

I have seen what you experienced when the boost python bindings were not
working and both had the shorter init_module line. (I removed
patch-bindings_python_setup_py for libtorrent-rasterbar and posted to
that e-mail thread.)

I used the new boost package (did not build but just updated the
package). I also used the latest diffs for libtorrent-rasterbar and
deluge and it still works for me.

Reply via email to