1
0
forked from pool/glusterfs
glusterfs/glusterfs-date.diff

59 lines
2.8 KiB
Diff
Raw Normal View History

From: Jan Engelhardt <jengelh@medozas.de>
Date: 2011-10-05 13:17:29.728670235 +0200
Upstream: hell yes
build: remove __DATE__ and __TIME__ flagged by rpmlint
glusterfs.x86_64: W: file-contains-date-and-time /usr/sbin/glusterfsd
glusterfs.x86_64: W: file-contains-date-and-time /usr/sbin/gluster
Your file uses __DATE and __TIME__ this causes the package to rebuild when
not needed
---
cli/src/cli.c | 2 +-
glusterfsd/src/glusterfsd.c | 2 +-
libglusterfs/src/graph.c | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
Index: glusterfs-3.5.0/cli/src/cli.c
===================================================================
--- glusterfs-3.5.0.orig/cli/src/cli.c
+++ glusterfs-3.5.0/cli/src/cli.c
@@ -71,7 +71,7 @@ extern int connected;
/* using argp for command line parsing */
const char *argp_program_version = "" \
- PACKAGE_NAME" "PACKAGE_VERSION" built on "__DATE__" "__TIME__ \
+ PACKAGE_NAME" "PACKAGE_VERSION \
"\nRepository revision: " GLUSTERFS_REPOSITORY_REVISION "\n" \
"Copyright (c) 2006-2011 Gluster Inc. " \
"<http://www.gluster.com>\n" \
Index: glusterfs-3.5.0/glusterfsd/src/glusterfsd.c
===================================================================
--- glusterfs-3.5.0.orig/glusterfsd/src/glusterfsd.c
+++ glusterfs-3.5.0/glusterfsd/src/glusterfsd.c
@@ -81,7 +81,7 @@ static char gf_doc[] = "";
static char argp_doc[] = "--volfile-server=SERVER [MOUNT-POINT]\n" \
"--volfile=VOLFILE [MOUNT-POINT]";
const char *argp_program_version = ""
- PACKAGE_NAME" "PACKAGE_VERSION" built on "__DATE__" "__TIME__
+ PACKAGE_NAME" "PACKAGE_VERSION" built on *bleep* "
"\nRepository revision: " GLUSTERFS_REPOSITORY_REVISION "\n"
"Copyright (c) 2006-2013 Red Hat, Inc. <http://www.redhat.com/>\n"
"GlusterFS comes with ABSOLUTELY NO WARRANTY.\n"
Index: glusterfs-3.5.0/libglusterfs/src/graph.c
===================================================================
--- glusterfs-3.5.0.orig/libglusterfs/src/graph.c
+++ glusterfs-3.5.0/libglusterfs/src/graph.c
@@ -40,8 +40,8 @@ _gf_dump_details (int argc, char **argv)
fprintf (gf_log_logfile,
"========================================"
"========================================\n");
- fprintf (gf_log_logfile, "Version : %s %s built on %s %s\n",
- PACKAGE_NAME, PACKAGE_VERSION, __DATE__, __TIME__);
+ fprintf (gf_log_logfile, "Version : %s %s\n",
+ PACKAGE_NAME, PACKAGE_VERSION);
fprintf (gf_log_logfile, "git: %s\n",
GLUSTERFS_REPOSITORY_REVISION);
fprintf (gf_log_logfile, "Starting Time: %s\n", timestr);