Control: tags 1151038 +patch

On 2026-10-16, Jochen Sprickerhof wrote:
> eclipse-titan currently fails to migrate to testing because it is not
> reproducible:
>
> https://qa.debian.org/excuses.php?package=eclipse-titan
>
> The problem is that it encodes the current date into a number of
> headers, like:
>
> │ │ ├── ./usr/include/titan/RT1/PreGenRecordOf.hh
> │ │ │ -// for Debian source builder (sbuild@sbuild) on Fri Jul 31 13:15:28 
> 2026
> │ │ │ +// for Debian source builder (sbuild@sbuild) on Wed Aug  5 17:21:00 
> 2026

I believe the attached patch fixes this, by setting the -D flag in
TTCN_COMPILER_FLAGS which sets the disable_user_info value to avoid
embedding username, hostname or timestamp.

It might also be possible to set via debian/rules, or adjust my patch to
make it something more appropriate for upstream (e.g. make it
conditional on SOURCE_DATE_EPOCH being set?).

live well,
  vagrant
From 5c595babe6904976fb87b2720c5f760053c44f47 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <[email protected]>
Date: Tue, 24 Nov 2026 13:38:31 -0800
Subject: [PATCH] core/Makefile: Add -D to TTCN_COMPILER_FLAGS to set
 disable_user_info = True.

---
 core/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/core/Makefile b/core/Makefile
index 99f3add..dd35105 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -66,6 +66,8 @@ GENERATED_OTHERS  := $(GENERATED_LOGGERAPI_SOURCES).compiled $(GENERATED_LOGGERC
 GENERATED_OTHERS  += $(PREGENERATED_SOURCES).compiled config_process.output lex.backup
 
 TTCN_COMPILER_FLAGS :=
+# Disable user, hostname and timestamps embedded in header files
+TTCN_COMPILER_FLAGS += -D
 ifeq ($(FUNCTION_TEST_RUNTIME), yes)
   TTCN_COMPILER_FLAGS += -R
 endif
-- 
2.47.3

Attachment: signature.asc
Description: PGP signature

Reply via email to