-
-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backport g_autofd and g_clear_fd, cleanup GLib backports #1493
Backport g_autofd and g_clear_fd, cleanup GLib backports #1493
Conversation
lgtm |
LGTM as well |
71b0cc4
to
2a68f9b
Compare
if we require glib, 2.72 which long term support has it? People still run 4 year old distros... |
We looked at Ubuntu 22.04 which ships with GLib 2.72 |
That's only two years old |
20.04 has 2.64 which is lower than what was before... |
I don't think we ever had any policy to how far back the project would support old distros. I assumed we'd support current Ubuntu LTS + previous Ubuntu LTS at most. I don't think it's practical to support anything older than the previous Ubuntu LTS version. |
This is available in Ubuntu 22.04, let's use it.
g_memdup() is unsafe, and deprecated. Use g_memdup2() instead.
Project-wide replacement of our internal macros to GLib macros. Older GLib versions are covered by the backports of the previous commit. The big difference here is that g_clear_fd() takes an error, so adapt the few callers to that.
They're not necessary now that we depend on GLib >= 2.72
2a68f9b
to
252b09f
Compare
I think it's fine to say that if they do, then they can run the xdg-desktop-portal version that is supported by their distro vendor (after all, the whole point of LTS distributions is that your distro vendor will support them for some reasonable lifetime); and if that version is too old for the apps and desktop environments they want to run, then they should re-evaluate their choice of distro branch. I would like the latest x-d-p to continue to be buildable on the latest Ubuntu LTS (released once per 2 years, in April of even-numbered years) and the latest Debian stable (released approximately once per 2 years, normally in the middle of odd-numbered years), but I don't think it's necessary to go to heroic efforts to be backportable beyond that. As a data point, Debian 12 has GLib 2.74.x, which is slightly newer than Ubuntu 22.04. If the freeze for Debian 13 happens at around the date I expect, then it will likely have GLib 2.82.x. We don't routinely backport a new x-d-p in https://launchpad.net/~flatpak/+archive/ubuntu/stable/+packages, mainly because x-d-p is only useful if it is accompanied by a desktop environment backend like x-d-p-gnome (or x-d-p-kde, or whatever is appropriate for the user's environment), and those tend to be too tightly coupled to the rest of the desktop environment to be useful to backport. If x-d-p offers new features, but they don't actually work because the LTS distribution's x-d-p-gnome is the same age as the rest of the LTS distribution and therefore does not implement the backend for those features, then we gain nothing by backporting it. |
See commits. Nothing groundbreaking and shouldn't have any practical changes in behaviour.