Hello community, here is the log from the commit of package clamav for openSUSE:Factory checked in at 2016-11-14 20:13:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/clamav (Old) and /work/SRC/openSUSE:Factory/.clamav.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "clamav" Changes: -------- --- /work/SRC/openSUSE:Factory/clamav/clamav.changes 2016-08-05 18:17:19.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.clamav.new/clamav.changes 2016-11-14 20:13:45.000000000 +0100 @@ -1,0 +2,7 @@ +Thu Oct 13 07:56:56 UTC 2016 - fweiss@suse.com + +- Add enable-timestamps option to disable time + dependent macros if passed to configure. + (bsc#1001154, clamav-disable-timestamps.patch) + +------------------------------------------------------------------- New: ---- clamav-disable-timestamps.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ clamav.spec ++++++ --- /var/tmp/diff_new_pack.FMyKzT/_old 2016-11-14 20:13:47.000000000 +0100 +++ /var/tmp/diff_new_pack.FMyKzT/_new 2016-11-14 20:13:47.000000000 +0100 @@ -55,6 +55,7 @@ Source9: service.clamav-milter Patch1: clamav-conf.patch Patch3: clamav-gcc47.patch +Patch4: clamav-disable-timestamps.patch BuildRequires: systemd BuildRequires: systemd-rpm-macros %systemd_requires @@ -73,6 +74,7 @@ %setup -q %patch1 -p1 %patch3 -p1 +%patch4 -p1 %build CFLAGS="-fstack-protector" ++++++ clamav-disable-timestamps.patch ++++++ Index: clamav-0.99.2/libclamav/tomsfastmath/misc/fp_ident.c =================================================================== --- clamav-0.99.2.orig/libclamav/tomsfastmath/misc/fp_ident.c +++ clamav-0.99.2/libclamav/tomsfastmath/misc/fp_ident.c @@ -15,7 +15,11 @@ const char *fp_ident(void) memset(buf, 0, sizeof(buf)); snprintf(buf, sizeof(buf)-1, -"TomsFastMath (%s)\n" +#if (ENABLE_TIMESTAMPS == 1) + "TomsFastMath (%s)\n" +#else + "TomsFastMath\n" +#endif "\n" "Sizeofs\n" "\tfp_digit = %llu\n" @@ -70,7 +74,11 @@ const char *fp_ident(void) #ifdef TFM_HUGE " TFM_HUGE " #endif +#if (ENABLE_TIMESTAMPS == 1) "\n", __DATE__, (long long unsigned)sizeof(fp_digit), (long long unsigned)sizeof(fp_word), FP_MAX_SIZE); +#else + "\n", (long long unsigned)sizeof(fp_digit), (long long unsigned)sizeof(fp_word), FP_MAX_SIZE); +#endif if (sizeof(fp_digit) == sizeof(fp_word)) { strncat(buf, "WARNING: sizeof(fp_digit) == sizeof(fp_word), this build is likely to not work properly.\n", Index: clamav-0.99.2/configure =================================================================== --- clamav-0.99.2.orig/configure +++ clamav-0.99.2/configure @@ -783,6 +783,7 @@ FGREP SED LIBTOOL LIBCLAMAV_VERSION +ENABLE_TIMESTAMPS EGREP GREP CPP @@ -885,6 +886,7 @@ ac_user_opts=' enable_option_checking enable_silent_rules enable_dependency_tracking +enable_timestamps enable_static enable_shared with_pic @@ -1592,6 +1594,8 @@ Optional Features: do not reject slow dependency extractors --disable-dependency-tracking speeds up one-time build + --enable-timestamps Enable embedding timestamp information in build + (default is YES) --enable-static[=PKGS] build static libraries [default=no] --enable-shared[=PKGS] build shared libraries [default=yes] --enable-fast-install[=PKGS] @@ -5163,6 +5167,26 @@ $as_echo "$ac_cv_safe_to_define___extens $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h +# Check whether --enable-timestamps was given. +if test "${enable_timestamps+set}" = set; then : + enableval=$enable_timestamps; +else + enableval=default +fi + +case "$enableval" in + yes) ENABLE_TIMESTAMPS=1 + ;; + no) ENABLE_TIMESTAMPS=0 + ;; + default) ENABLE_TIMESTAMPS=1 + ;; + *) as_fn_error $? "Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" "$LINENO" 5 ;; +esac + +cat >>confdefs.h <<_ACEOF +#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS +_ACEOF VERSION="0.99.2"