Bug#1121760: gcc-bpf: Version calculation goes wrong after binNMU

2025-12-22 Thread Jochen Sprickerhof

Control: severity -1 serious
Control: tag -1 + patch

Hi Matthias,

* Adrian Bunk  [2025-12-02 06:12]:

Source: gcc-bpf
Version: 17
Severity: normal

After the 17+b1 binNMU:
gcc-bpf| 14.3.0-10+| unstable| amd64, arm64, armhf, i386, 
ppc64el, riscv64, s390x

Not trying to substract 15 from deb_release fixes this,
and results in version 14.3.0-10+17+b1.


This seems to be the same problem as #1031977 and is currently breaking 
the udd.d.o import of reproduce.d.n data, thus bumping this to serious.


The patch is:

--- rules.orig  2025-12-22 09:32:22.862822552 +0100
+++ rules   2025-12-22 09:32:39.893297194 +0100
@@ -22,8 +22,9 @@

 source_version := $(shell dpkg-query -W -f="\$${Version}\n" 
$(GCC_PACKAGE)-source)

-deb_release := $(shell expr $(shell dpkg-parsechangelog -S Version) - 15)
-deb_version := $(source_version)+$(deb_release)
+deb_release := $(shell expr $(shell dpkg-parsechangelog -S Version | sed -E 
's/([0-9]+).*/\1/') - 15)
+deb_appendix := $(shell dpkg-parsechangelog -S Version | sed -E 
's/[0-9]+(.*)/\1/')
+deb_version := $(source_version)+$(deb_release)$(deb_appendix)

 deb_upstream_version := $(shell echo $(deb_version) | cut -d- -f1)
 base_version := $(shell echo $(deb_version) | sed -e 
's/\([1-9]\.[0-9]\).*-.*/\1/')


Cheers Jochen


signature.asc
Description: PGP signature


Bug#1121760: gcc-bpf: Version calculation goes wrong after binNMU

2025-12-01 Thread Adrian Bunk
Source: gcc-bpf
Version: 17
Severity: normal

After the 17+b1 binNMU:
gcc-bpf| 14.3.0-10+| unstable| amd64, arm64, armhf, i386, 
ppc64el, riscv64, s390x

Not trying to substract 15 from deb_release fixes this,
and results in version 14.3.0-10+17+b1.