[Users] Couple of snags now I have Fedora 31

Ricardo Mones ricardo at mones.org
Tue Oct 29 15:18:25 CET 2019


Hi Brian,

On Tue, Oct 29, 2019 at 02:24:00PM +0000, Brian Morrison wrote:
> Hi devs
> 
> A couple of little problems with Claws building from git now that I
> have Fedora 31.
> 
> First the check for libpython is not working, so I had to softlink
> /usr/lib64/libpython3.7.so to /usr/lib64/libpython3.7m.so.1.0 because
> detection on the existing /usr/lib64/libpython3.7m.so fails for the
> python plugin.
> 
> More serious are the following errors:
> 
> Firstly one of the continue statements in
> 
> git/claws/tools/gitlog2changelog.py
> 
> is prefixed by a tab character instead of spaces to indent it, for some
> reason this upsets the interpreter.

Fixed in git.

> In addition I get this:
> 
> ...
> touch config.h.in
> Traceback (most recent call last):
>   File "./tools/gitlog2changelog.py", line 43, in <module>
>     if re.match('^commit', line) >= 0:
> TypeError: '>=' not supported between instances of 're.Match' and 'int'
> make[2]: *** [Makefile:1332: ChangeLog] Error 1
> make[2]: Leaving directory '/home/bdm/git/claws'
> make[1]: *** [Makefile:900: distdir] Error 2
> make[1]: Leaving directory '/home/bdm/git/claws'
> make: *** [Makefile:1000: dist] Error 2
> 
> Something in python has become more picky about syntax/semantics.
> Naturally there are other similar statements that would fail if the
> execution got that far.
> 
> Any thoughts?

You need Python 2.x for that script, Python 3 returns a match object¹,
not an integer. Until somebody migrates it to Python 3, I've also
updated the interpreter line of the script to reflect this.

regards,

¹ https://docs.python.org/3/library/re.html#re.match
-- 
  Ricardo Mones 
  ~
  00:45 < hammar> cool.. have you used rssyl?                          
  00:46 <@Ticho> um, yes                            Seen on #sylpheed

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.claws-mail.org/pipermail/users/attachments/20191029/6c3d7455/attachment.sig>


More information about the Users mailing list