I had a persistent 'libffi.so.7' problem with python2-gimp/gimp-resynthesizer, similar to the issue reported by other users. It took me almost half a day to figure out the culprit...
Lately, lots of python2 packages and their dependencies has been moved from the official repository to the AUR; consequently, they don't get updated, but just disappear from the package database.
When I noticed the libffi issue, my first reaction was to run
pactree -r -d 1 libffi
to check which packages depend on libffi. The problem is, I wasn't aware that pactree does not show packages which does not exist in the tree anymore, so it took me quite a while to figure out which package was actually broken.
In my case, 'python2-gobject2' was the culprit, causing those 'libffi.so.7' errors and breaking gimp-resynthesizer. I had originally installed it when it still was in the repository, so the obvious fix was to move to the AUR version.
TL;DR: If you have the same issue, be sure to check ALL python2-gimp dependencies and their dependencies deeply enough, and rebuild the ones moved to AUR in the correct order from bottom to top.
I hope this helps someone having the same issue.
Pinned Comments
HurricanePootis commented on 2024-05-17 14:39 (UTC)
Hello everyone,
I am going to hold off on updating python2-gimp to 2.10.38 unitl
pygtk
has a patch accepted. If you would like to go ahead and do it yourself, you need to patchpygtk
to have the flags-fpermissive
for it to build; you can read my comment on that package.