Hi,

The attached debdiff fixes the FTBFS with GCC 15.
-- 
Thanks,
Polkorny
diff -Nru eta-1.0.1/debian/changelog eta-1.0.1/debian/changelog
--- eta-1.0.1/debian/changelog	2021-10-30 11:09:19.000000000 -0300
+++ eta-1.0.1/debian/changelog	2026-01-16 15:09:53.000000000 -0300
@@ -1,3 +1,10 @@
+eta (1.0.1-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * d/p/Fix-build-for-gcc-15.2.patch: Import Upsteam patch (Closes: #1096590)
+
+ -- Matheus Polkorny <[email protected]>  Fri, 16 Jan 2026 15:09:53 -0300
+
 eta (1.0.1-1) unstable; urgency=low
 
   * Initial release. Closes: #923225
diff -Nru eta-1.0.1/debian/patches/Fix-build-for-gcc-15.2.patch eta-1.0.1/debian/patches/Fix-build-for-gcc-15.2.patch
--- eta-1.0.1/debian/patches/Fix-build-for-gcc-15.2.patch	1969-12-31 21:00:00.000000000 -0300
+++ eta-1.0.1/debian/patches/Fix-build-for-gcc-15.2.patch	2026-01-16 15:05:34.000000000 -0300
@@ -0,0 +1,52 @@
+From: vemek <[email protected]>
+Date: Sun, 4 Jan 2026 00:18:46 +0000
+Subject: Fix build for gcc 15.2
+MIME-Version: 1.0
+Content-Type: text/plain; charset="utf-8"
+Content-Transfer-Encoding: 8bit
+
+Looks like GCC 15 is stricter with type sigs - I've updated the header
+to fix the following:
+```
+cc -Wall  -Isrc -c src/eta.c  -o obj/eta.o
+src/eta.c: In function ‘main’:
+src/eta.c:44:30: error: too many arguments to function ‘compute_ratio_completed’; expected 0, have 3
+   44 |     double ratio_completed = compute_ratio_completed(
+      |                              ^~~~~~~~~~~~~~~~~~~~~~~
+In file included from src/eta.c:9:
+src/eta_calc.h:6:8: note: declared here
+    6 | double compute_ratio_completed();
+      |        ^~~~~~~~~~~~~~~~~~~~~~~
+make: *** [Makefile:16: obj/eta.o] Error 1
+```
+---
+ src/eta.c      | 2 +-
+ src/eta_calc.h | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/eta.c b/src/eta.c
+index a667c03..092c0cb 100644
+--- a/src/eta.c
++++ b/src/eta.c
+@@ -42,7 +42,7 @@ int main(int argc, char **argv) {
+     add_measurement(now(), current_value);
+ 
+     double ratio_completed = compute_ratio_completed(
+-        initial_value, opts.target_value, opts.down);
++        initial_value, opts.target_value);
+ 
+     double seconds_left = compute_seconds_left(opts.target_value, opts.down);
+ 
+diff --git a/src/eta_calc.h b/src/eta_calc.h
+index becd80c..780f860 100644
+--- a/src/eta_calc.h
++++ b/src/eta_calc.h
+@@ -3,7 +3,7 @@
+ 
+ #include "measurements.h"
+ 
+-double compute_ratio_completed();
++double compute_ratio_completed(value_t initial_value, value_t target_value);
+ double rate(Measurement *m1, Measurement *m2);
+ double average_rate();
+ double compute_seconds_left(value_t target_value, bool down);
diff -Nru eta-1.0.1/debian/patches/series eta-1.0.1/debian/patches/series
--- eta-1.0.1/debian/patches/series	1969-12-31 21:00:00.000000000 -0300
+++ eta-1.0.1/debian/patches/series	2026-01-16 15:05:34.000000000 -0300
@@ -0,0 +1 @@
+Fix-build-for-gcc-15.2.patch

Attachment: signature.asc
Description: PGP signature



Reply via email to