commit:     c4e9fbcaa5def795e5b3b96fc410d45d6c23ba9d
Author:     Alexander Puck Neuwirth <apn-pucky <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 24 11:39:43 2025 +0000
Commit:     Alexander Puck Neuwirth <apn-pucky <AT> gentoo <DOT> org>
CommitDate: Thu Jan 22 16:15:50 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4e9fbca

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 <AT> gentoo.org>

 .../yoda/files/yoda-2.1.2-testbinestimate.patch    | 30 ++++++++++++++++++++++
 sci-physics/yoda/yoda-2.1.2.ebuild                 |  6 ++++-
 sci-physics/yoda/yoda-9999.ebuild                  |  2 +-
 3 files changed, 36 insertions(+), 2 deletions(-)

diff --git a/sci-physics/yoda/files/yoda-2.1.2-testbinestimate.patch 
b/sci-physics/yoda/files/yoda-2.1.2-testbinestimate.patch
new file mode 100644
index 000000000000..9e6f1cbb103b
--- /dev/null
+++ b/sci-physics/yoda/files/yoda-2.1.2-testbinestimate.patch
@@ -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 <[email protected]>
+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
+

diff --git a/sci-physics/yoda/yoda-2.1.2.ebuild 
b/sci-physics/yoda/yoda-2.1.2.ebuild
index 57b68f78d196..1fc1d51f7229 100644
--- a/sci-physics/yoda/yoda-2.1.2.ebuild
+++ b/sci-physics/yoda/yoda-2.1.2.ebuild
@@ -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
 }

diff --git a/sci-physics/yoda/yoda-9999.ebuild 
b/sci-physics/yoda/yoda-9999.ebuild
index 7cd15b39b465..622264c460d1 100644
--- a/sci-physics/yoda/yoda-9999.ebuild
+++ b/sci-physics/yoda/yoda-9999.ebuild
@@ -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"

Reply via email to