summaryrefslogtreecommitdiffstats
path: root/library/platform/platform.tcl
diff options
context:
space:
mode:
authorandreask <andreask>2013-01-30 19:04:50 (GMT)
committerandreask <andreask>2013-01-30 19:04:50 (GMT)
commitee3f25a10fee8fb2301a01194f6f73b949651986 (patch)
treef4d1c6af85213a5d8ccb0316c434a9d9722355fa /library/platform/platform.tcl
parent16fde830643c564edad1860bb44ba4a943fe2873 (diff)
downloadtcl-ee3f25a10fee8fb2301a01194f6f73b949651986.zip
tcl-ee3f25a10fee8fb2301a01194f6f73b949651986.tar.gz
tcl-ee3f25a10fee8fb2301a01194f6f73b949651986.tar.bz2
(::platform::LibcVersion): See [Bug 3599098]: Fixed the RE extracting
the version to avoid issues with recent changes to the glibc banner. Now targeting a less variable part of the string. Bumped package to version 1.0.11.
Diffstat (limited to 'library/platform/platform.tcl')
-rw-r--r--library/platform/platform.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/platform/platform.tcl b/library/platform/platform.tcl
index dd2e66b..a1a728b 100644
--- a/library/platform/platform.tcl
+++ b/library/platform/platform.tcl
@@ -256,7 +256,7 @@ proc ::platform::LibcVersion {base _->_ vv} {
if {![catch {
set vdata [lindex [split [exec $libc] \n] 0]
}]} {
- regexp {([0-9]+(\.[0-9]+)*)} $vdata -> v
+ regexp {version ([0-9]+(\.[0-9]+)*), by} $vdata -> v
foreach {major minor} [split $v .] break
set v glibc${major}.${minor}
return 1
@@ -368,7 +368,7 @@ proc ::platform::patterns {id} {
# ### ### ### ######### ######### #########
## Ready
-package provide platform 1.0.10
+package provide platform 1.0.11
# ### ### ### ######### ######### #########
## Demo application