From c65b3429ad5bae209575bc90b78f39b84d468264 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 7 Jun 2023 12:05:00 +0300 Subject: [PATCH] Use MPL as license specifier for plugins only requiring GStreamer < 1.20 And use MPL-2.0 for all that require GStreamer 1.20 or newer. The new string is only allowed in 1.20 or newer and using it in older versions causes failure to load the plugin. All affected plugins are of course still MPL-2.0 licensed. Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/issues/374 Part-of: --- docs/plugins/gst_plugins_cache.json | 6 +++--- net/onvif/src/lib.rs | 2 +- net/rtp/src/lib.rs | 2 +- utils/togglerecord/src/lib.rs | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/plugins/gst_plugins_cache.json b/docs/plugins/gst_plugins_cache.json index f0647688d..a2c29724a 100644 --- a/docs/plugins/gst_plugins_cache.json +++ b/docs/plugins/gst_plugins_cache.json @@ -5546,7 +5546,7 @@ } }, "filename": "gstrsonvif", - "license": "MPL", + "license": "MPL-2.0", "other-types": {}, "package": "gst-plugin-onvif", "source": "gst-plugin-onvif", @@ -5811,7 +5811,7 @@ } }, "filename": "gstrsrtp", - "license": "MPL", + "license": "MPL-2.0", "other-types": {}, "package": "gst-plugin-rtp", "source": "gst-plugin-rtp", @@ -8548,7 +8548,7 @@ } }, "filename": "gsttogglerecord", - "license": "MPL-2.0", + "license": "MPL", "other-types": {}, "package": "gst-plugin-togglerecord", "source": "gst-plugin-togglerecord", diff --git a/net/onvif/src/lib.rs b/net/onvif/src/lib.rs index 3bda1cb77..1b5b7887d 100644 --- a/net/onvif/src/lib.rs +++ b/net/onvif/src/lib.rs @@ -130,7 +130,7 @@ gst::plugin_define!( env!("CARGO_PKG_DESCRIPTION"), plugin_init, concat!(env!("CARGO_PKG_VERSION"), "-", env!("COMMIT_ID")), - "MPL", + "MPL-2.0", env!("CARGO_PKG_NAME"), env!("CARGO_PKG_NAME"), env!("CARGO_PKG_REPOSITORY"), diff --git a/net/rtp/src/lib.rs b/net/rtp/src/lib.rs index 140561a03..a11aae9ed 100644 --- a/net/rtp/src/lib.rs +++ b/net/rtp/src/lib.rs @@ -31,7 +31,7 @@ gst::plugin_define!( env!("CARGO_PKG_DESCRIPTION"), plugin_init, concat!(env!("CARGO_PKG_VERSION"), "-", env!("COMMIT_ID")), - "MPL", + "MPL-2.0", env!("CARGO_PKG_NAME"), env!("CARGO_PKG_NAME"), env!("CARGO_PKG_REPOSITORY"), diff --git a/utils/togglerecord/src/lib.rs b/utils/togglerecord/src/lib.rs index e0cf7f1ef..dd251d4ad 100644 --- a/utils/togglerecord/src/lib.rs +++ b/utils/togglerecord/src/lib.rs @@ -26,7 +26,7 @@ gst::plugin_define!( plugin_init, concat!(env!("CARGO_PKG_VERSION"), "-", env!("COMMIT_ID")), // FIXME: MPL-2.0 is only allowed since 1.18.3 (as unknown) and 1.20 (as known) - "MPL-2.0", + "MPL", env!("CARGO_PKG_NAME"), env!("CARGO_PKG_NAME"), env!("CARGO_PKG_REPOSITORY"),