netatalk icon indicating copy to clipboard operation
netatalk copied to clipboard

Review afpstats implementation to remove depdenency on dbus-glib

Open dgsga opened this issue 1 year ago • 5 comments

Potential roadmap for afpstats: Compile afpstats support automatically if dbus and dbus-glib are present (easy, only requires netatalk.m4 macro changes). This would mean that afpstats support would require less user intervention and so make it more accessible. At the moment it needs the two dependencies along with the --with-afpstats configure flag and afpstats=yes in afp.conf

Migrate from the now deprecated dbus-glib to gdbus. I've already done some work on this but haven't got the coding skill to make it work correctly:

https://docs.gtk.org/gio/migrating-gdbus.html https://github.com/dgsga/netatalk/commit/2f935ac7b2275ec1b4d63d397f9497e268d67b8d

@rdmark, what are your thoughts?

dgsga avatar Jan 09 '24 19:01 dgsga

LGTM

I actually forgot that afpstats support has to be enabled at compile time, in addition to runtime. It should be one or the other I think.

Makes sense to compile the feature if the dependencies exist.

rdmark avatar Jan 10 '24 06:01 rdmark

Is dbus-glib going away any time soon? I see no rush to move to a newer library.

rdmark avatar Jan 10 '24 06:01 rdmark

Dbus-glib is now deprecated in favour of gdbus,last updated in 2021...

ghost avatar Jan 10 '24 08:01 ghost

Ah, that’s important context. The deprecation train keeps on going!

rdmark avatar Jan 10 '24 08:01 rdmark

This was raised in the Debian bug tracker as well: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=955927

rdmark avatar Jan 15 '24 00:01 rdmark

For the record, we got some excellent code review feedback from a Debian developer in this now-orphaned commit: https://github.com/Netatalk/netatalk/commit/b860bd8479623c4c5c574cbb46d6094c3a4b77da

rdmark avatar Sep 18 '24 09:09 rdmark