diff -pruN 0.0.50-6/debian/changelog 0.0.50-7/debian/changelog
--- 0.0.50-6/debian/changelog	2021-12-05 19:59:57.000000000 +0000
+++ 0.0.50-7/debian/changelog	2025-09-25 18:02:21.000000000 +0000
@@ -1,3 +1,15 @@
+bambamc (0.0.50-7) unstable; urgency=medium
+
+  * Team upload.
+  * gcc-15.patch: new: fix build failure with gcc-15. (Closes: #1096356)
+  * d/control: build depends on pkgconf.
+  * d/control: libbambamc-dev depends on pkgconf.
+  * d/watch: convert to watch file version 5.
+  * d/control: remove redundant Rules-Requires-Root.
+  * d/control: declare compliance to standards version 4.7.2.
+
+ -- Étienne Mollier <emollier@debian.org>  Thu, 25 Sep 2025 20:02:21 +0200
+
 bambamc (0.0.50-6) unstable; urgency=medium
 
   * Really fix watch file
diff -pruN 0.0.50-6/debian/control 0.0.50-7/debian/control
--- 0.0.50-6/debian/control	2021-12-05 19:59:57.000000000 +0000
+++ 0.0.50-7/debian/control	2025-09-25 18:02:21.000000000 +0000
@@ -7,13 +7,12 @@ Section: science
 Priority: optional
 Build-Depends: debhelper-compat (= 13),
                d-shlibs,
-               pkg-config,
+               pkgconf,
                zlib1g-dev
-Standards-Version: 4.6.0
+Standards-Version: 4.7.2
 Vcs-Browser: https://salsa.debian.org/med-team/bambamc
 Vcs-Git: https://salsa.debian.org/med-team/bambamc.git
 Homepage: https://github.com/gt1/bambamc
-Rules-Requires-Root: no
 
 Package: libbambamc0
 Architecture: any
@@ -32,7 +31,7 @@ Section: libdevel
 Depends: ${shlibs:Depends},
          ${misc:Depends},
          libbambamc0 (= ${binary:Version}),
-         pkg-config,
+         pkgconf,
          zlib1g-dev
 Multi-Arch: same
 Description: Development files for reading and writing BAM (genome alignment) files
diff -pruN 0.0.50-6/debian/patches/gcc-15.patch 0.0.50-7/debian/patches/gcc-15.patch
--- 0.0.50-6/debian/patches/gcc-15.patch	1970-01-01 00:00:00.000000000 +0000
+++ 0.0.50-7/debian/patches/gcc-15.patch	2025-09-25 18:02:21.000000000 +0000
@@ -0,0 +1,32 @@
+Description: remove BamBam_GetFastqPlusLineLength argument.
+ This change fixes the following build failure with gcc-15:
+ .
+        bambamc/BamBam_FormatAlignment.c: In function 'BamBam_GetFastqEntryLength':
+        bambamc/BamBam_FormatAlignment.c:47:17: error: too many arguments to function 'BamBam_GetFastqPlusLineLength'; expected 0, have 1
+           47 |                 BamBam_GetFastqPlusLineLength(qnamelen) +
+              |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~
+        bambamc/BamBam_FormatAlignment.c:33:17: note: declared here
+           33 | static uint64_t BamBam_GetFastqPlusLineLength()
+              |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ .
+ This is one of the rare cases where the right approach is to remove the
+ variable from the call, because the function is defined has being
+ hardwired to return 2 (1 + 1) and does not make use of any variable any
+ ways.
+Author: Étienne Mollier <emollier@debian.org>
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1096356
+Forwarded: no
+Last-Update: 2025-09-25
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- bambamc.orig/src/bambamc/BamBam_FormatAlignment.c
++++ bambamc/src/bambamc/BamBam_FormatAlignment.c
+@@ -44,7 +44,7 @@
+ 	return
+ 		BamBam_GetFastqNameLineLength(qnamelen,flags) +
+ 		BamBam_GetFastqSeqLineLength(seqlen) +
+-		BamBam_GetFastqPlusLineLength(qnamelen) +
++		BamBam_GetFastqPlusLineLength() +
+ 		BamBam_GetFastqQualLineLength(seqlen);
+ }
+ /**
diff -pruN 0.0.50-6/debian/patches/series 0.0.50-7/debian/patches/series
--- 0.0.50-6/debian/patches/series	1970-01-01 00:00:00.000000000 +0000
+++ 0.0.50-7/debian/patches/series	2025-09-25 18:02:21.000000000 +0000
@@ -0,0 +1 @@
+gcc-15.patch
diff -pruN 0.0.50-6/debian/watch 0.0.50-7/debian/watch
--- 0.0.50-6/debian/watch	2021-12-05 19:59:57.000000000 +0000
+++ 0.0.50-7/debian/watch	2025-09-25 18:02:21.000000000 +0000
@@ -1,3 +1,5 @@
-version=4
-opts=uversionmangle=s/_/./g \
-  https://github.com/gt1/bambamc/tags .*/bambamc_(\d[\d._]+)\.(?:tar(?:\.gz|\.bz2)?|tgz)
+Version: 5
+
+Source: https://github.com/gt1/bambamc/tags
+Matching-Pattern: .*/bambamc_(\d[\d._]+)\.(?:tar(?:\.gz|\.bz2)?|tgz)
+Uversionmangle: s/_/./g
