From 8ff19bf59ce11aaed365691d5cdb6c31c188cb5a Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Sun, 21 Feb 2016 15:35:18 +0100 Subject: [PATCH] Make build reproducible by dropping DBGVER handling Debian wants debug symbols for all builds (the binaries are stripped by debhelper's dh_strip), but the "(compiled by...)" information added for debug builds defeats the goal to make builds reproducible on the binary level. Fix by dropping the DBGVER information which doesn't serve any purpose if the build output is byte-identical on rebuild. https://wiki.debian.org/ReproducibleBuilds --- Makefile | 4 ---- include/bouncer.h | 4 ---- 2 files changed, 8 deletions(-) diff --git a/Makefile b/Makefile index 77046a5..da7e5bc 100644 --- a/Makefile +++ b/Makefile @@ -76,10 +76,6 @@ LIBUSUAL_DIST = $(filter-out %/config.h, $(wildcard \ lib/README lib/COPYRIGHT \ lib/find_modules.sh )) -ifeq ($(enable_debug),yes) -CPPFLAGS += -DDBGVER="\"compiled by <$${USER}@`hostname`> at `date '+%Y-%m-%d %H:%M:%S'`\"" -endif - # # win32 # diff --git a/include/bouncer.h b/include/bouncer.h index 6114c18..02e3358 100644 --- a/include/bouncer.h +++ b/include/bouncer.h @@ -37,11 +37,7 @@ #include #include -#ifdef DBGVER -#define FULLVER PACKAGE_NAME " version " PACKAGE_VERSION " (" DBGVER ")" -#else #define FULLVER PACKAGE_NAME " version " PACKAGE_VERSION -#endif /* each state corresponds to a list */ enum SocketState { -- 2.40.0