lyx/lyx-2.1.2.2-remove-date-time.patch

50 lines
1.8 KiB
Diff

From: Andreas Stieger <andreas.stieger@gmx.de>
Date: Wed, 21 Jan 2015 13:02:32 +0000
Subject: Remove __DATE__ and __TIME__
Upstream: no
References:
Fixes obs warning:
[ 796s] lyx.i586: W: file-contains-date-and-time /usr/bin/lyx
[ 796s] Your file uses __DATE and __TIME__ this causes the package to rebuild when
[ 796s] not needed
Index: lyx-2.1.2.2/src/LyX.cpp
===================================================================
--- lyx-2.1.2.2.orig/src/LyX.cpp
+++ lyx-2.1.2.2/src/LyX.cpp
@@ -1146,8 +1146,6 @@ int parse_version(string const &, string
{
cout << "LyX " << lyx_version
<< " (" << lyx_release_date << ")" << endl;
- cout << to_utf8(bformat(_("Built on %1$s[[date]], %2$s[[time]]"),
- from_ascii(__DATE__), from_ascii(__TIME__))) << endl;
cout << lyx_version_info << endl;
exit(0);
Index: lyx-2.1.2.2/src/frontends/qt4/GuiAbout.cpp
===================================================================
--- lyx-2.1.2.2.orig/src/frontends/qt4/GuiAbout.cpp
+++ lyx-2.1.2.2/src/frontends/qt4/GuiAbout.cpp
@@ -138,8 +138,6 @@ static QString buildinfo()
QTextStream out(&res);
out << "LyX " << lyx_version
<< " (" << lyx_release_date << ")" << endl;
- out << toqstr(bformat(_("Built on %1$s[[date]], %2$s[[time]]"),
- from_ascii(__DATE__), from_ascii(__TIME__))) << endl;
out << lyx_version_info << endl;
return res;
Index: lyx-2.1.2.2/src/tex2lyx/tex2lyx.cpp
===================================================================
--- lyx-2.1.2.2.orig/src/tex2lyx/tex2lyx.cpp
+++ lyx-2.1.2.2/src/tex2lyx/tex2lyx.cpp
@@ -565,7 +565,6 @@ int parse_version(string const &, string
{
lyxerr << "tex2lyx " << lyx_version
<< " (" << lyx_release_date << ")" << endl;
- lyxerr << "Built on " << __DATE__ << ", " << __TIME__ << endl;
lyxerr << lyx_version_info << endl;
exit(error_code);