File ncftp-3.2.5-no-date.patch of Package ncftp

From: Andreas Stieger <andreas.stieger@gmx.de>
Date: Tue, 18 Feb 2014 19:58:12 +0000
Subject: [PATCH] remove __DATE__
Upstream: no

[   97s] ncftp.i586: W: file-contains-date-and-time /usr/bin/ncftp
[   97s] Your file uses  __DATE and __TIME__ this causes the package to rebuild when
[   97s] not needed

Remove date from binary to prevent unneccessary rebuilds.

---
 ncftp/cmds.c |    3 ---
 1 file changed, 3 deletions(-)

Index: ncftp-3.2.5/ncftp/cmds.c
===================================================================
--- ncftp-3.2.5.orig/ncftp/cmds.c	2010-04-05 20:33:21.000000000 +0100
+++ ncftp-3.2.5/ncftp/cmds.c	2014-02-18 19:57:17.000000000 +0000
@@ -4603,9 +4603,6 @@ VersionCmd(const int argc, char **const
 	(void) printf("Archived at:      ftp://ftp.NcFTP.com/ncftp/\n");
 #endif
 	(void) printf("Library Version:  %s\n", gLibNcFTPVersion + 5);
-#ifdef __DATE__
-	(void) printf("Compile Date:     %s\n", __DATE__);
-#endif
 	if (gOS[0] != '\0')
 		(void) printf("Platform:         %s\n", gOS);
 }	/* VersionCmd */
openSUSE Build Service is sponsored by