diff -pruN 11/debian/changelog 12/debian/changelog
--- 11/debian/changelog	2020-11-19 20:08:05.000000000 +0000
+++ 12/debian/changelog	2022-03-29 19:53:17.000000000 +0000
@@ -1,3 +1,17 @@
+gdb-mingw-w64 (12) unstable; urgency=medium
+
+  * Only build target gdbserver, not the full target gdb. Closes:
+    #1008381.
+  * Configure and build the components required for gdbserver
+    explicitly; this avoids configuring gdb as a whole, and means we
+    won’t end up requiring gmp for gdb 11. Closes: #1005734.
+  * Standards-Version 4.6.0, no change required.
+  * Update Lintian overrides (superfluous-file-pattern instead of
+    wildcard-matches-nothing-in-dep5-copyright and unused-file-paragraph-
+    in-dep5-copyright).
+
+ -- Stephen Kitt <skitt@debian.org>  Tue, 29 Mar 2022 21:53:17 +0200
+
 gdb-mingw-w64 (11) unstable; urgency=medium
 
   * Adjust to the changes in gdb 10. Closes: #975189.
diff -pruN 11/debian/control 12/debian/control
--- 11/debian/control	2020-11-19 20:03:14.000000000 +0000
+++ 12/debian/control	2022-03-29 15:51:45.000000000 +0000
@@ -23,7 +23,7 @@ Build-Depends: autoconf,
                texinfo,
                zlib1g-dev
 Build-Depends-Indep: g++-mingw-w64
-Standards-Version: 4.5.0
+Standards-Version: 4.6.0
 Vcs-Browser: https://salsa.debian.org/mingw-w64-team/gdb-mingw-w64
 Vcs-Git: https://salsa.debian.org/mingw-w64-team/gdb-mingw-w64.git
 Homepage: https://www.gnu.org/software/gdb/
diff -pruN 11/debian/rules 12/debian/rules
--- 11/debian/rules	2020-11-19 20:03:14.000000000 +0000
+++ 12/debian/rules	2022-03-29 14:09:23.000000000 +0000
@@ -80,17 +80,20 @@ override_dh_auto_configure-arch: unpack-
 			$(shell $(dpkg_buildflags_arch) --export=cmdline); \
 	done
 
-# We're only interested in gdbserver but we need to build everything
+# We're only interested in gdbserver; that also requires gnulib, libiberty, and gdbsupport
+gdbserver_projects := gnulib libiberty gdbsupport gdbserver
 override_dh_auto_configure-indep: unpack-stamp
 	set -e; \
 	for target in $(targets); do \
-		mkdir -p $(build_gdbserver_dir)/$$target; \
-		cd $(build_gdbserver_dir)/$$target; \
-		$(upstream_dir)/configure \
-			--build=$(DEB_BUILD_GNU_TYPE) \
-			--host=$$target --target=$$target \
-			--disable-werror \
-			$(shell $(dpkg_buildflags_indep) --export=cmdline); \
+		for project in $(gdbserver_projects); do \
+			mkdir -p $(build_gdbserver_dir)/$$target/$$project; \
+			cd $(build_gdbserver_dir)/$$target/$$project; \
+			sh $(upstream_dir)/$$project/configure \
+				--build=$(DEB_BUILD_GNU_TYPE) \
+				--host=$$target --target=$$target \
+				--disable-werror \
+				$(shell $(dpkg_buildflags_indep) --export=cmdline); \
+		done; \
 	done
 
 override_dh_auto_build-arch:
@@ -103,8 +106,10 @@ override_dh_auto_build-arch:
 override_dh_auto_build-indep:
 	set -e; \
 	for target in $(targets); do \
-		$(shell $(dpkg_buildflags_indep) --export=sh); \
-		dh_auto_build --parallel -B$(build_gdbserver_dir)/$$target -- V=1; \
+		for project in $(gdbserver_projects); do \
+			$(shell $(dpkg_buildflags_indep) --export=sh); \
+			dh_auto_build --parallel -B$(build_gdbserver_dir)/$$target/$$project -- V=1; \
+		done; \
 	done
 
 override_dh_auto_install:
diff -pruN 11/debian/source/lintian-overrides 12/debian/source/lintian-overrides
--- 11/debian/source/lintian-overrides	2019-02-06 19:58:18.000000000 +0000
+++ 12/debian/source/lintian-overrides	2022-03-29 16:23:00.000000000 +0000
@@ -1,3 +1,2 @@
 # debian/copyright matches the upstream source
-wildcard-matches-nothing-in-dep5-copyright
-unused-file-paragraph-in-dep5-copyright
+superfluous-file-pattern debian/copyright *
