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

59 lines
2.8 KiB
Diff

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.2.4/cli/src/cli.c
===================================================================
--- glusterfs-3.2.4.orig/cli/src/cli.c
+++ glusterfs-3.2.4/cli/src/cli.c
@@ -81,7 +81,7 @@ static char gf_doc[] = "";
static char argp_doc[] = "";
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.2.4/glusterfsd/src/glusterfsd.c
===================================================================
--- glusterfs-3.2.4.orig/glusterfsd/src/glusterfsd.c
+++ glusterfs-3.2.4/glusterfsd/src/glusterfsd.c
@@ -87,7 +87,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 \
"\nRepository revision: " GLUSTERFS_REPOSITORY_REVISION "\n" \
"Copyright (c) 2006-2011 Gluster Inc. " \
"<http://www.gluster.com>\n" \
Index: glusterfs-3.2.4/libglusterfs/src/graph.c
===================================================================
--- glusterfs-3.2.4.orig/libglusterfs/src/graph.c
+++ glusterfs-3.2.4/libglusterfs/src/graph.c
@@ -54,8 +54,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);