On Mon, Oct 13, 2008 at 11:52:53PM +0200, Markus Wanner wrote: > Hi, > > Richard Levitte wrote: > > In the same vein, the code to display the versions of SQLite, Botan > > and so on might be misleading in a shared library environment. Maybe > > it should display both the versions it was compiled against and the > > versions it's running against (if that's possible to find out, which > > isn't always a given). > > I've done that for SQLite and botan now. The mtn version --full output > now looks like (as an example): [...]
Attached is a patch for getting the PCRE runtime version as well. I could not figure out how to get the runtime Lua version (aside from executing a line of Lua that ruturns the value of the Lua _VERSION variable) $ ./mtn version --full monotone 0.41 (base revision: 7aa69891001cc53af518ca9bff8e1c7dae0c280d) Running on : Linux 2.6.24.7 #1 SMP Tue Jun 24 10:34:47 EDT 2008 x86_64 C++ compiler : GNU C++ version 4.3.2 C++ standard library: GNU libstdc++ version 20080827 Boost version : 1_35 SQLite version : 3.5.9 (compiled against 3.5.9) Lua version : Lua 5.1.3 PCRE version : 7.7 2008-05-07 (compiled against 7.7) Botan version : 1.7.18 (compiled against 1.7.18) Changes since base revision: unknown
# # old_revision [7aa69891001cc53af518ca9bff8e1c7dae0c280d] # # patch "mt_version.cc" # from [76772c0f83691ab5bed123dd6c95616904360c52] # to [0e9248c3606fce1b99798bb29705b5b3293e9580] # ============================================================ --- mt_version.cc 76772c0f83691ab5bed123dd6c95616904360c52 +++ mt_version.cc 0e9248c3606fce1b99798bb29705b5b3293e9580 @@ -83,7 +83,7 @@ get_full_version(string & out) "Boost version : %s\n" "SQLite version : %s (compiled against %s)\n" "Lua version : %s\n" - "PCRE version : %d.%d\n" + "PCRE version : %s (compiled against %d.%d)\n" "Botan version : %d.%d.%d (compiled against %d.%d.%d)\n" "Changes since base revision:\n" "%s") @@ -93,7 +93,7 @@ get_full_version(string & out) % BOOST_LIB_VERSION % sqlite3_libversion() % SQLITE_VERSION % LUA_RELEASE - % PCRE_MAJOR % PCRE_MINOR + % pcre_version() % PCRE_MAJOR % PCRE_MINOR % Botan::version_major() % Botan::version_minor() % Botan::version_patch() % BOTAN_VERSION_MAJOR % BOTAN_VERSION_MINOR % BOTAN_VERSION_PATCH % string(package_full_revision_constant);
_______________________________________________ Monotone-devel mailing list Monotone-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/monotone-devel