lintian: Lintian fixes

  - Stop warning about libs not being linked against libc
  - Stop warning about dpkg architecture variables
  - Remove an obsolete patch
  - Fix Priority

Change-Id: Ib4ffc233139120e62a9579d6d48ce845881b6613
diff --git a/debian/control b/debian/control
index a16fbe9..495408c 100644
--- a/debian/control
+++ b/debian/control
@@ -116,7 +116,7 @@
 Architecture: any
 Multi-Arch: same
 Section: debug
-Priority: extra
+Priority: optional
 Depends: gstreamer1.0-plugins-good (= ${binary:Version}),
          gstreamer1.0-pulseaudio (= ${binary:Version}),
          gstreamer1.0-qt5 (= ${binary:Version}) [any-amd64 any-arm64 any-i386 any-mips any-mips64el any-mipsel any-ppc64el any-s390x any-alpha any-hppa any-ia64 any-m68k any-powerpc any-powerpcspe any-ppc64 any-riscv64 any-sh4 any-sparc64 any-x32],
diff --git a/debian/gstreamer1.0-plugins-good.lintian-overrides b/debian/gstreamer1.0-plugins-good.lintian-overrides
index 32b3da4..60773a5 100644
--- a/debian/gstreamer1.0-plugins-good.lintian-overrides
+++ b/debian/gstreamer1.0-plugins-good.lintian-overrides
@@ -1 +1,2 @@
 gstreamer1.0-plugins-good: spelling-error-in-readme-debian *
+gstreamer1.0-plugins-good: library-not-linked-against-libc *
diff --git a/debian/patches/0001-gstrtspconnection-Security-loophole-making-heap-over.patch b/debian/patches/0001-gstrtspconnection-Security-loophole-making-heap-over.patch
deleted file mode 100644
index c58592f..0000000
--- a/debian/patches/0001-gstrtspconnection-Security-loophole-making-heap-over.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From f672277509705c4034bc92a141eefee4524d15aa Mon Sep 17 00:00:00 2001
-From: Tobias Ronge <tobiasr@axis.com>
-Date: Thu, 14 Mar 2019 10:12:27 +0100
-Subject: [PATCH] gstrtspconnection: Security loophole making heap overflow
-
-The former code allowed an attacker to create a heap overflow by
-sending a longer than allowed session id in a response and including a
-semicolon to change the maximum length. With this change, the parser
-will never go beyond 512 bytes.
----
- gst-libs/gst/rtsp/gstrtspconnection.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/gst-libs/gst/rtsp/gstrtspconnection.c b/gst-libs/gst/rtsp/gstrtspconnection.c
-index a6755bedd..c0429064a 100644
---- a/gst-libs/gst/rtsp/gstrtspconnection.c
-+++ b/gst-libs/gst/rtsp/gstrtspconnection.c
-@@ -2461,7 +2461,7 @@ build_next (GstRTSPBuilder * builder, GstRTSPMessage * message,
-           maxlen = sizeof (conn->session_id) - 1;
-           /* the sessionid can have attributes marked with ;
-            * Make sure we strip them */
--          for (i = 0; session_id[i] != '\0'; i++) {
-+          for (i = 0; i < maxlen && session_id[i] != '\0'; i++) {
-             if (session_id[i] == ';') {
-               maxlen = i;
-               /* parse timeout */
--- 
-2.20.1
-
diff --git a/debian/patches/series b/debian/patches/series
deleted file mode 100644
index e69de29..0000000
--- a/debian/patches/series
+++ /dev/null
diff --git a/debian/source.lintian-overrides b/debian/source.lintian-overrides
new file mode 100644
index 0000000..aaff087
--- /dev/null
+++ b/debian/source.lintian-overrides
@@ -0,0 +1,2 @@
+imx-gst-plugins-good source: debian-rules-sets-dpkg-architecture-variable *
+