aboutsummaryrefslogtreecommitdiffstats
path: root/version_info.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2010-07-15 20:59:26 +0000
committerGuy Harris <guy@alum.mit.edu>2010-07-15 20:59:26 +0000
commit96e8176ac2289c055c10fff4a60f0396305ffc33 (patch)
tree4e43802fe7990da86638c4d0359c947e5ee07a1c /version_info.c
parentd9b1e79b1e2c70132b1b58b87775fcedb05e214e (diff)
More details on getting the distribution name and version on Linux.
svn path=/trunk/; revision=33543
Diffstat (limited to 'version_info.c')
-rw-r--r--version_info.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/version_info.c b/version_info.c
index f7290fbd30..1c01ba743b 100644
--- a/version_info.c
+++ b/version_info.c
@@ -418,7 +418,21 @@ get_runtime_version_info(GString *str, void (*additional_info)(GString *))
* that.
*
* At least on Linux Standard Base-compliant distributions,
- * there's an "lsb_release" command.
+ * there's an "lsb_release" command. However:
+ *
+ * http://forums.fedoraforum.org/showthread.php?t=220885
+ *
+ * seems to suggest that if you don't have the redhat-lsb
+ * package installed, you don't have lsb_release, and that
+ * /etc/fedora-release has the release information on
+ * Fedora.
+ *
+ * http://linux.die.net/man/1/lsb_release
+ *
+ * suggests that there's an /etc/distrib-release file, but
+ * it doesn't indicate whether "distrib" is literally
+ * "distrib" or is the name for the distribution, and
+ * also speaks of an /etc/debian_version file.
*/
g_string_append_printf(str, "%s %s", name.sysname, name.release);
#endif /* HAVE_OS_X_FRAMEWORKS */