UnRAIDES / unRAID-NerdTools

Install extra packages for advanced users.
GNU General Public License v3.0
27 stars 18 forks source link

Added libffi #33

Closed RealDekkia closed 1 year ago

RealDekkia commented 1 year ago

This library is a requirement for Borgbackup and need to be installed alongside for it to work

See forum for further discussion.

neupsh commented 1 year ago

@UnRAIDES any chance this gets merged soon? :)

miquelbotanch commented 1 year ago

Thank you ! Will be the Solution to be able to run borgbackup without messing up with user scripts at boot time.

RealDekkia commented 1 year ago

Library seems also to be a requirement for iotop: https://github.com/UnRAIDES/unRAID-NerdTools/issues/37#issue-1480051967

skjnldsv commented 1 year ago

@jsavargas @UnRAIDES any news? :)

drewbitt commented 1 year ago

Unraid comes with a version of libffi, ls /usr/lib64/libffi*. It is just too new for BorgBackup/iotop. Since anything NerdTools puts in /boot/extras will not install with the existing newer version present, this would not by default work without additional scripting. Although I recognize its utility if it fixes borgbackup/iotop, NerdTools installing (older) packages installed already is odd.

RealDekkia commented 1 year ago

Of course It would make more sense to update borg to hopefully use the newer libffi. (the current 1.1.15 is very old)

The latest slackware build I could find is 1.1.18: https://slackbuilds.org/repository/15.0/system/borgbackup/ But I could't get it to run at all and don't really have enough knowledge to fix that.

And even then this version might not be new enough.

hapm commented 1 year ago

Looks like this problem affects a lot of python programms, especially the ones using ctypes. This can be easily verified by starting python in a console and trying to import ctypes:

>>> import ctypes
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.7/ctypes/__init__.py", line 7, in <module>
    from _ctypes import Union, Structure, Array
ImportError: libffi.so.7: cannot open shared object file: No such file or directory

It affects python and python3! Perhaps it would be better to build them against the new version libffi.so.8?

UnRAIDES commented 1 year ago

Hi, The libffi-3.4.4 is added for iotop. Borgbackup will be updated very soon.

Thank you.

Mcklaren commented 1 year ago

Hello,

Borgbackup is update on 2023.05.02 version.

If you need libffi please reopen this PR of new. I test the new Borgbackup and I think that it's not necessary.

Thank you.