FS#63288 - [mypaint] building against swig 4 produces a broken package

Attached to Project: Community Packages
Opened by Antonio Rojas (arojas) - Saturday, 27 July 2019, 08:24 GMT
Last edited by Eli Schwartz (eschwartz) - Thursday, 12 September 2019, 00:50 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Eli Schwartz (eschwartz)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
After rebuilding the package with current swig:

Traceback (most recent call last):
File "/usr/bin/mypaint", line 464, in <module>
main.main(datapath, iconspath, old_confpath, version=version)
File "/usr/share/mypaint/gui/main.py", line 95, in main
from gui import application
File "/usr/share/mypaint/gui/application.py", line 48, in <module>
import lib.document
File "/usr/share/mypaint/lib/document.py", line 37, in <module>
import lib.helpers as helpers
File "/usr/share/mypaint/lib/helpers.py", line 26, in <module>
import mypaintlib
File "/usr/share/mypaint/lib/mypaintlib.py", line 13, in <module>
from . import _mypaintlib
ImportError: cannot import name _mypaintlib

This task depends upon

This task blocks these from closing
 FS#63663 - [mypaint] file conflict with libmypaint 1.4.0-1 
Closed by  Eli Schwartz (eschwartz)
Thursday, 12 September 2019, 00:50 GMT
Reason for closing:  Fixed
Additional comments about closing:  mypaint 1.2.1-10
Comment by Balló György (City-busz) - Thursday, 29 August 2019, 12:13 GMT
I'm not familiar with 'scons' and 'swig', so I think I'll drop this package to AUR.
Comment by Antonio Rojas (arojas) - Thursday, 29 August 2019, 12:14 GMT
There is a swig3 package, you could use that for now
Comment by Balló György (City-busz) - Thursday, 29 August 2019, 12:20 GMT
I don't know how to force the build system to use swig3 instead of swig.
Comment by Eli Schwartz (eschwartz) - Wednesday, 04 September 2019, 22:22 GMT
Maybe it would be worth packaging this alpha instead? https://github.com/mypaint/mypaint/releases/tag/v2.0.0-alpha.12

Discussion: https://github.com/mypaint/mypaint/issues/929

It drops the use of scons and adds support for depending on the system libmypaint package. Generally alphas of software would be avoided if possible, but given mypaint doesn't build at the moment, it might be better than dropping it to the AUR.
Comment by Eli Schwartz (eschwartz) - Friday, 06 September 2019, 04:01 GMT
I discovered what this mypaintlib.py is doing differently and submitted https://github.com/mypaint/mypaint/issues/1030 about the breakage.
Comment by Balló György (City-busz) - Friday, 06 September 2019, 07:19 GMT
@eschwartz: Thanks for investigating this. I still have no idea how we can solve this problem, so I'm reassigning this task to you.
Comment by Antonio Rojas (arojas) - Friday, 06 September 2019, 16:57 GMT
Raising severity now that a broken package has been pushed to the repos
Comment by Antonio Rojas (arojas) - Saturday, 07 September 2019, 09:11 GMT
Pushed a package that uses swig3 as a hotfix for the current broken package. There seems to be some movement in the upstream report towards making it work with 4, so hopefully this can be properly fixed soon.
Comment by Eli Schwartz (eschwartz) - Thursday, 12 September 2019, 00:49 GMT
I backported their swig 4 patch. All seems to be well. Some files did move from /usr/share/mypaint to /usr/lib/mypaint, but hopefully that is well too.

Loading...