dev-tcltk/tcllib: fix random test

Closes: https://bugs.gentoo.org/947160
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Alfredo Tupone
2026-02-26 23:30:41 +01:00
parent e1a8dea870
commit ae744957e0
2 changed files with 16 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
--- a/modules/simulation/random.test 2026-02-26 23:07:06.436861304 +0100
+++ b/modules/simulation/random.test 2026-02-26 23:12:52.124392444 +0100
@@ -167,7 +167,7 @@
set stdev [expr {$stdev + $rnd * $rnd}]
}
set mean [expr {$mean / 1000.0}]
- set stdev [expr {sqrt($stdev / 1000.0)}]
+ set stdev [expr {sqrt($stdev / 1000.0 - $mean * $mean)}]
#
# We use a rough estimate for the deviation in the mean and stdev

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -28,7 +28,10 @@ DOCS=(
)
HTML_DOCS=( idoc/www )
PATCHES=( "${FILESDIR}"/${P}-test.patch )
PATCHES=(
"${FILESDIR}"/${P}-test.patch
"${FILESDIR}"/${P}-stddev.patch
)
src_prepare() {
default