gplugin/gplugin

72edc8323368
Parents 19dfb7e4f207
Children 130949050a8a
Set the min and max allowed glib versions

We currently get a warnings when compiling against glib >= 2.70.0 because some of the GType macros are using symbols that were added in 2.70.0.

Testing Done:
Compiled, need to test debian and fedora packages after 962 is merged.

Bugs closed: GPLUGIN-140

Reviewed at https://reviews.imfreedom.org/r/963/
--- a/meson.build Thu Sep 30 00:55:43 2021 -0500
+++ b/meson.build Thu Sep 30 00:56:21 2021 -0500
@@ -34,12 +34,18 @@
help2man = find_program('help2man')
endif
-GLIB = dependency('glib-2.0', version : '>=2.40.0')
+GLIB = dependency('glib-2.0', version : '>=2.44.0')
GOBJECT = dependency('gobject-2.0')
# we separate gmodule out so our test aren't linked to it
GMODULE = dependency('gmodule-2.0')
+add_project_arguments(
+ '-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_44',
+ '-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_44',
+ language : 'c',
+)
+
###############################################################################
# NLS
###############################################################################
--- a/packaging/debian/control Thu Sep 30 00:55:43 2021 -0500
+++ b/packaging/debian/control Thu Sep 30 00:56:21 2021 -0500
@@ -16,7 +16,7 @@
Package: libgplugin0
Architecture: any
-Depends: ${misc:Depends}, ${shlibs:Depends}, libglib2.0-0 (>=2.20.0)
+Depends: ${misc:Depends}, ${shlibs:Depends}, libglib2.0-0 (>=2.44.0)
Recommends: libgplugin-loaders
Description: GObject based plugin library
GPlugin is a GObject based library that implements a reusable plugin system
@@ -28,7 +28,7 @@
Package: libgplugin0-bin
Architecture: any
Section: utils
-Depends: ${misc:Depends}, ${shlibs:Depends}, libgplugin0 (= ${binary:Version}), libglib2.0-0 (>=2.20.0)
+Depends: ${misc:Depends}, ${shlibs:Depends}, libgplugin0 (= ${binary:Version}), libglib2.0-0 (>=2.44.0)
Description: GObject based plugin library utilities
GPlugin is a GObject based library that implements a reusable plugin system
which supports loading plugins in other languages via loaders. It relies
--- a/packaging/gplugin.spec.in Thu Sep 30 00:55:43 2021 -0500
+++ b/packaging/gplugin.spec.in Thu Sep 30 00:56:21 2021 -0500
@@ -11,7 +11,7 @@
Group: Development/Libraries
BuildRequires: meson >= 0.37.0
-BuildRequires: glib2-devel >= 2.40.0
+BuildRequires: glib2-devel >= 2.44.0
BuildRequires: gobject-introspection-devel
BuildRequires: gettext
BuildRequires: gtk3-devel