]> git.lyx.org Git - features.git/commitdiff
Make builds reproducible
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 26 Mar 2015 17:14:45 +0000 (18:14 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 26 Mar 2015 17:14:45 +0000 (18:14 +0100)
We do not really need to use __TIME__ and __DATE__, which prevent from making LyX builds reproducible.

Fixes bug #9415.

src/LyX.cpp
src/frontends/qt4/GuiAbout.cpp
src/tex2lyx/tex2lyx.cpp
src/version.cpp
src/version.h

index 0cd6e9748733b4ad5b945d138e7dd85737745a98..44e6e34088a2d3a1a7003953f5433daa4b8a84b5 100644 (file)
@@ -1147,8 +1147,6 @@ int parse_version(string const &, string const &, string &)
        if (string(lyx_git_commit_hash) != "none")
                cout << to_utf8(_("  Git commit hash "))
                     << string(lyx_git_commit_hash).substr(0,8) << endl;
-       cout << to_utf8(bformat(_("Built on %1$s[[date]], %2$s[[time]]"),
-               from_ascii(lyx_build_date), from_ascii(lyx_build_time))) << endl;
        cout << lyx_version_info << endl;
        exit(0);
        return 0;
index 1bb37e509de28d4de59911d7ee718a98925e0521..817efbf30253676a5551f5d7fb1b1ed3260ae173 100644 (file)
@@ -146,8 +146,6 @@ static QString buildinfo()
        if (std::string(lyx_git_commit_hash) != "none")
                out << qt_("  Git commit hash ")
                    << QString(lyx_git_commit_hash).left(8) << endl;
-       out << toqstr(bformat(_("Built on %1$s[[date]], %2$s[[time]]"),
-               from_ascii(lyx_build_date), from_ascii(lyx_build_time))) << endl;
 
        out << lyx_version_info << endl;
        return res;
index 2104854992f1b0a0f8414438ddcf560306c2dc4d..57790ab12b91e877774ab1b35958fc4f8e717b39 100644 (file)
@@ -606,8 +606,6 @@ int parse_version(string const &, string const &)
 {
        cout << "tex2lyx " << lyx_version
             << " (" << lyx_release_date << ")" << endl;
-       cout << "Built on " << lyx_build_date << ", " << lyx_build_time
-            << endl;
 
        cout << lyx_version_info << endl;
        throw StopException(error_code);
index e5ac23034e332eb010f811b0adcd8d1966c4e256..6701accdf95180878a3cf816eb1e545d6229449b 100644 (file)
@@ -29,11 +29,6 @@ extern char const * const lyx_git_commit_hash = LYX_GIT_COMMIT_HASH;
 ///
 extern char const * const lyx_release_date = LYX_DATE;
 
-///
-extern char const * const lyx_build_date = __DATE__;
-///
-extern char const * const lyx_build_time = __TIME__;
-
 /// Package identifier (lyx[-<version-suffix>])
 extern char const * const lyx_package = PACKAGE;
 
index a112664fbf53d4d56de7b022780ed49e31d35771..74cce6ac089fd633b0fed2874b0e9d278ff048b2 100644 (file)
@@ -23,10 +23,6 @@ extern const int lyx_version_minor;
 extern char const * const lyx_git_commit_hash;
 ///
 extern char const * const lyx_release_date;
-///
-extern char const * const lyx_build_date;
-///
-extern char const * const lyx_build_time;
 
 /// Package identifier (lyx[-<version-suffix>])
 extern char const * const lyx_package;