sci-physics/yoda: restore ~x86

Closes: https://bugs.gentoo.org/941638
Part-of: https://github.com/gentoo/gentoo/pull/45145
Closes: https://github.com/gentoo/gentoo/pull/45145
Signed-off-by: Alexander Puck Neuwirth <apn-pucky@gentoo.org>
This commit is contained in:
Alexander Puck Neuwirth
2025-12-24 12:39:43 +01:00
parent d86711458a
commit c4e9fbcaa5
3 changed files with 36 additions and 2 deletions
@@ -0,0 +1,30 @@
https://gitlab.com/hepcedar/yoda/-/merge_requests/387
From 12c3786635875ebf3e7c969248654191736b660a Mon Sep 17 00:00:00 2001
From: Alexander Puck Neuwirth <alexander@neuwirth-informatik.de>
Date: Sat, 20 Dec 2025 19:46:34 +0100
Subject: [PATCH] fix rounding uncertainty on bin edge in tests
Closes: https://gitlab.com/hepcedar/yoda/-/issues/151
---
tests/TestBinEstimators.cc | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/TestBinEstimators.cc b/tests/TestBinEstimators.cc
index 14fb9f5e..e89cccf3 100644
--- a/tests/TestBinEstimators.cc
+++ b/tests/TestBinEstimators.cc
@@ -40,7 +40,10 @@ auto testLogEst() {
est2.estindex( 0.) == 0 &&
est2.estindex( 1.) == 1 &&
est2.estindex( 5.) == 1 &&
- est2.estindex( 10.) == 2 &&
+ est2.estindex( 9.9) == 1 &&
+ // amd64 vs x86 rounding can give different results here
+ (est2.estindex(10.) == 1 || est2.estindex( 10.) == 2) &&
+ est2.estindex(10.1) == 2 &&
est2.estindex(100.) == 2);
}
--
GitLab
+5 -1
View File
@@ -17,7 +17,7 @@ if [[ ${PV} == 9999 ]]; then
else
SRC_URI="https://yoda.hepforge.org/downloads?f=${P^^}.tar.bz2 -> ${P^^}.tar.bz2"
S="${WORKDIR}/${P^^}"
KEYWORDS="~amd64"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="GPL-3"
@@ -50,6 +50,10 @@ BDEPEND="
)
"
PATCHES=(
"${FILESDIR}"/${P}-testbinestimate.patch
)
pkg_setup() {
use python && python-single-r1_pkg_setup
}
+1 -1
View File
@@ -17,7 +17,7 @@ if [[ ${PV} == 9999 ]]; then
else
SRC_URI="https://yoda.hepforge.org/downloads?f=${P^^}.tar.bz2 -> ${P^^}.tar.bz2"
S="${WORKDIR}/${P^^}"
KEYWORDS="~amd64"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="GPL-3"