Followup-For: Bug #879816
Control: reopen -1
Control: tag -1 + patch
Hi,
I'm reopening this bug because there is still no strict dependency on
gcc which whould prevent future occurrences of this bug.
It's probably possible to relax the version check in eclipse-titan a
bit, but until that is done the dependency on gcc (is that the correct
package?) needs to be rather strict. This should trigger the need for a
binNMU whenever the gcc version changes.
Attached is a patch that records a dependency on the gcc version used at
build time. This may not be sufficient if the upstream version part in
src:gcc-7 changes, but src:gcc-defaults is not updated. Let's revisit if
that happens.
There should be no need to backport this to stable since the gcc version
is not expected to change over the lifetime of stretch. The binNMU in
stretch should be sufficient.
Andreas
diff -Nru eclipse-titan-6.3.0/debian/control eclipse-titan-6.3.0/debian/control
--- eclipse-titan-6.3.0/debian/control 2017-10-19 10:58:19.000000000 +0200
+++ eclipse-titan-6.3.0/debian/control 2017-11-29 14:25:36.000000000 +0100
@@ -25,6 +25,8 @@
make,
perl,
python,
+ gcc (>= ${gcc:Version}),
+ gcc (<< ${gcc:Version}.0),
${misc:Depends},
${shlibs:Depends}
Description: TITAN TTCN-3 toolset from the Eclipse project
diff -Nru eclipse-titan-6.3.0/debian/rules eclipse-titan-6.3.0/debian/rules
--- eclipse-titan-6.3.0/debian/rules 2017-06-21 12:57:52.000000000 +0200
+++ eclipse-titan-6.3.0/debian/rules 2017-11-29 14:29:03.000000000 +0100
@@ -12,3 +12,5 @@
$(MAKE) DESTDIR=$(CURDIR)/debian/eclipse-titan prefix=/usr install
find $(CURDIR)/Install -type d -empty -delete
+override_dh_gencontrol:
+ dh_gencontrol -- -V'gcc:Version=$(shell dpkg-query -f '$${Version}\n'
-W gcc | sed -e 's/-[^-]*$$//')'