mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
11
dev-tcltk/tcllib/files/tcllib-2.0-stddev.patch
Normal file
11
dev-tcltk/tcllib/files/tcllib-2.0-stddev.patch
Normal 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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user