Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
multimedia:proaudio
schismtracker
schism-nodate.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File schism-nodate.diff of Package schismtracker
From: Jan Engelhardt <jengelh@medozas.de> Upstream: never Replace __DATE__ and __TIME__ with static text. Note: rpmlint will still complain when the static date that was encoded happens to be the current day. That is ok, since rpmlint uses just a heuristic - excessive rebuilds should not actually be happening. --- schism/version.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) Index: schismtracker-20200412/schism/version.c =================================================================== --- schismtracker-20200412.orig/schism/version.c +++ schismtracker-20200412/schism/version.c @@ -92,6 +92,10 @@ Information at our disposal: */ +/* update whenever you checkout */ +#define __HG_DATE__ "Apr 9 2011" +#define __HG_TIME__ "00:00:00" /* screw this */ + static int get_version_tm(struct tm *version) { char *ret; @@ -101,10 +105,6 @@ static int get_version_tm(struct tm *ver if (ret && !*ret) return 1; /* Argh. */ - memset(version, 0, sizeof(*version)); - ret = strptime(__DATE__, "%b %e %Y", version); - if (ret && !*ret) - return 1; /* Give up; we don't know anything. */ return 0; } @@ -118,7 +118,6 @@ void ver_init(void) if (get_version_tm(&version)) { version_sec = mktime(&version); } else { - printf("help, I am very confused about myself\n"); version_sec = epoch_sec; } @@ -134,7 +133,7 @@ void ver_init(void) "Schism Tracker %s", ver); } else { snprintf(top_banner_normal, sizeof(top_banner_normal) - 1, - "Schism Tracker built %s %s", __DATE__, __TIME__); + "Schism Tracker"); } top_banner_normal[sizeof(top_banner_normal) - 1] = '\0'; /* to be sure */
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor