[neon/backports-jammy/libsignon-glib/Neon/unstable] debian: NMU: Don't build with -Werror. (Closes: #952060) Thanks Adrian Bunk

Aurélien COUDERC null at kde.org
Thu Jun 22 01:30:34 BST 2023


Git commit 4b03ce137b10f1663e944e758ff7e6ec8986d7f3 by Aurélien COUDERC.
Committed on 08/04/2020 at 13:41.
Pushed by carlosdem into branch 'Neon/unstable'.

NMU: Don't build with -Werror. (Closes: #952060) Thanks Adrian Bunk

M  +7    -0    debian/changelog
M  +3    -66   debian/patches/disable-deprecation-error.patch

https://invent.kde.org/neon/backports-jammy/libsignon-glib/-/commit/4b03ce137b10f1663e944e758ff7e6ec8986d7f3

diff --git a/debian/changelog b/debian/changelog
index f118464..42854d5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+libsignon-glib (1.12-2.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Don't build with -Werror. (Closes: #952060)
+
+ -- Adrian Bunk <bunk at debian.org>  Tue, 07 Apr 2020 10:42:59 +0300
+
 libsignon-glib (1.12-2) unstable; urgency=medium
 
   [ Rohan Garg ]
diff --git a/debian/patches/disable-deprecation-error.patch b/debian/patches/disable-deprecation-error.patch
index ab4827f..15f10ab 100644
--- a/debian/patches/disable-deprecation-error.patch
+++ b/debian/patches/disable-deprecation-error.patch
@@ -1,7 +1,5 @@
-Author: Alberto Mardegan
-Subject: Disable deprecation errors
-Origin: https://gitlab.com/accounts-sso/libsignon-glib/merge_requests/2/diffs
-Bug-accounts-sso: https://gitlab.com/accounts-sso/libsignon-glib/issues/2
+Author: Adrian Bunk
+Subject: Don't build with -Werror
 diff --git a/libsignon-glib/Makefile.am b/libsignon-glib/Makefile.am
 index e208101..f534d84 100644
 --- a/libsignon-glib/Makefile.am
@@ -11,69 +9,8 @@ index e208101..f534d84 100644
  	-I$(builddir) \
  	$(DEPS_CFLAGS) \
 -	-Wall -Werror
-+	-Wall -Werror -Wno-error=deprecated-declarations
++	-Wall
  libsignon_glib_la_LIBADD = $(DEPS_LIBS)
  libsignon_glib_la_LDFLAGS = \
  	-version-info 1:0:0 \
 
-diff --git a/libsignon-glib/signon-auth-session.c b/libsignon-glib/signon-auth-session.c
-index f60d73d..adcb5ee 100644
---- a/libsignon-glib/signon-auth-session.c
-+++ b/libsignon-glib/signon-auth-session.c
-@@ -146,6 +146,7 @@ auth_session_process_reply (GObject *object, GAsyncResult *res,
- 
-     sso_auth_session_call_process_finish (proxy, &reply, res, &error);
- 
-+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
-     self = SIGNON_AUTH_SESSION (g_async_result_get_source_object (
-         (GAsyncResult *)res_process));
-     self->priv->busy = FALSE;
-@@ -166,6 +167,7 @@ auth_session_process_reply (GObject *object, GAsyncResult *res,
-      * g_main_context_pop_thread_default: assertion `g_queue_peek_head (stack) == context' failed
-      */
-     g_simple_async_result_complete_in_idle (res_process);
-+G_GNUC_END_IGNORE_DEPRECATIONS
-     g_object_unref (self);
- }
- 
-@@ -180,6 +182,7 @@ auth_session_process_ready_cb (gpointer object, const GError *error, gpointer us
-     g_return_if_fail (self != NULL);
-     priv = self->priv;
- 
-+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
-     if (error != NULL)
-     {
-         DEBUG ("AuthSessionError: %s", error->message);
-@@ -199,6 +202,7 @@ auth_session_process_ready_cb (gpointer object, const GError *error, gpointer us
-         g_simple_async_result_complete (res);
-         return;
-     }
-+G_GNUC_END_IGNORE_DEPRECATIONS
- 
-     process_data = g_object_get_data ((GObject *)res, data_key_process);
-     g_return_if_fail (process_data != NULL);
-@@ -592,9 +596,11 @@ signon_auth_session_process_async (SignonAuthSession *self,
- 
-     g_return_if_fail (session_data != NULL);
- 
-+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
-     res = g_simple_async_result_new ((GObject *)self, callback, user_data,
-                                      signon_auth_session_process_async);
-     g_simple_async_result_set_check_cancellable (res, cancellable);
-+G_GNUC_END_IGNORE_DEPRECATIONS
- 
-     process_data = g_slice_new0 (AuthSessionProcessData);
-     process_data->session_data = g_variant_ref_sink (session_data);
-@@ -636,10 +642,12 @@ signon_auth_session_process_finish (SignonAuthSession *self, GAsyncResult *res,
-     g_return_val_if_fail (SIGNON_IS_AUTH_SESSION (self), NULL);
- 
-     async_result = (GSimpleAsyncResult *)res;
-+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
-     if (g_simple_async_result_propagate_error (async_result, error))
-         return NULL;
- 
-     reply = g_simple_async_result_get_op_res_gpointer (async_result);
-+G_GNUC_END_IGNORE_DEPRECATIONS
-     return g_variant_ref (reply);
- }
- 



More information about the Neon-commits mailing list