commit:     92adce0f85a9027e5426c6578c4c31310d037c90
Author:     Guilherme Amadio <amadio <AT> gentoo <DOT> org>
AuthorDate: Mon Apr  8 17:49:24 2024 +0000
Commit:     Guilherme Amadio <amadio <AT> gentoo <DOT> org>
CommitDate: Mon Apr  8 17:57:23 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92adce0f

sci-physics/geant: fix bug 928657

Closes: https://bugs.gentoo.org/928657

Signed-off-by: Guilherme Amadio <amadio <AT> gentoo.org>

 .../files/geant-4.11.2.1-find-soxt-noversion.patch   | 20 ++++++++++++++++++++
 sci-physics/geant/geant-4.11.2.1.ebuild              |  1 +
 2 files changed, 21 insertions(+)

diff --git a/sci-physics/geant/files/geant-4.11.2.1-find-soxt-noversion.patch 
b/sci-physics/geant/files/geant-4.11.2.1-find-soxt-noversion.patch
new file mode 100644
index 000000000000..a35e184ffccb
--- /dev/null
+++ b/sci-physics/geant/files/geant-4.11.2.1-find-soxt-noversion.patch
@@ -0,0 +1,20 @@
+Remove versions from find_package(SoXt/SoWin), bug 928657.
+Patch submitted upstream.
+
+--- a/cmake/Modules/G4InterfaceOptions.cmake
++++ b/cmake/Modules/G4InterfaceOptions.cmake
+@@ -153,12 +153,12 @@ if(GEANT4_USE_INVENTOR)
+     geant4_save_package_variables(Inventor SoQt_DIR)
+   else()
+     if(UNIX)
+-      find_package(SoXt 1.4.0 REQUIRED)
++      find_package(SoXt REQUIRED)
+       check_sobind_version(SoXt 1.4.0)
+       geant4_save_package_variables(Inventor SoXt_DIR)
+       set(GEANT4_USE_INVENTOR_XT ON)
+     elseif(WIN32)
+-      find_package(SoWin 1.4.0 REQUIRED)
++      find_package(SoWin REQUIRED)
+       check_sobind_version(SoWin 1.4.0)
+       geant4_save_package_variables(Inventor SoWin_DIR)
+       set(GEANT4_USE_INVENTOR_WIN ON)

diff --git a/sci-physics/geant/geant-4.11.2.1.ebuild 
b/sci-physics/geant/geant-4.11.2.1.ebuild
index 2e384cbf7fc8..798bd3585b77 100644
--- a/sci-physics/geant/geant-4.11.2.1.ebuild
+++ b/sci-physics/geant/geant-4.11.2.1.ebuild
@@ -67,6 +67,7 @@ RDEPEND="
 
 PATCHES=(
        "${FILESDIR}"/${PN}-4.11.0.2-musl-avoid-execinfo.patch
+       "${FILESDIR}"/${PN}-4.11.2.1-find-soxt-noversion.patch
 )
 
 src_configure() {

Reply via email to