commit:     a05456f36a8e1c4c3c37695f3e9a621fccb4e801
Author:     Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net>
AuthorDate: Wed Feb 24 21:07:32 2021 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Mon Mar  1 08:25:54 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a05456f3

sci-libs/opencascade: fix flow control

dev-util/cmake >= 3.20.0_rc1 has restricted flow control
checks. This patch fixes an issue with these new version
on unbalanced flow control statements.

Closes: https://bugs.gentoo.org/771300
Package-Manager: Portage-3.0.15, Repoman-3.0.2
Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 ...pencascade-7.4.0-fix-flow-control-nesting.patch | 31 ++++++++++++++++++++++
 sci-libs/opencascade/opencascade-7.4.0-r4.ebuild   |  1 +
 2 files changed, 32 insertions(+)

diff --git 
a/sci-libs/opencascade/files/opencascade-7.4.0-fix-flow-control-nesting.patch 
b/sci-libs/opencascade/files/opencascade-7.4.0-fix-flow-control-nesting.patch
new file mode 100644
index 00000000000..7e2bb1d7b2a
--- /dev/null
+++ 
b/sci-libs/opencascade/files/opencascade-7.4.0-fix-flow-control-nesting.patch
@@ -0,0 +1,31 @@
+From e69c42386239bcc08143607df12b8bb3f1ff14ba Mon Sep 17 00:00:00 2001
+From: Bernd Waibel <[email protected]>
+Date: Wed, 24 Feb 2021 20:06:02 +0100
+Subject: [PATCH] adm/cmake/vtk.cmake: fix flow control nesting
+
+Fix an unbalanced nesting of flow control statements
+for >=cmake-3.20.0
+
+Signed-off-by: Bernd Waibel <[email protected]>
+---
+ adm/cmake/vtk.cmake | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/adm/cmake/vtk.cmake b/adm/cmake/vtk.cmake
+index c5692fd6..00b7ff4a 100644
+--- a/adm/cmake/vtk.cmake
++++ b/adm/cmake/vtk.cmake
+@@ -156,8 +156,8 @@ if (VTK_FOUND)
+             endif()
+           endif()
+         endif()
+-      endif()
+-    endforeach()
++      endforeach()
++    endif()
+   endif()
+ 
+   if (3RDPARTY_VTK_INCLUDE_DIRS)
+-- 
+2.30.1
+

diff --git a/sci-libs/opencascade/opencascade-7.4.0-r4.ebuild 
b/sci-libs/opencascade/opencascade-7.4.0-r4.ebuild
index d46a66fe600..4b7371a287c 100644
--- a/sci-libs/opencascade/opencascade-7.4.0-r4.ebuild
+++ b/sci-libs/opencascade/opencascade-7.4.0-r4.ebuild
@@ -75,6 +75,7 @@ PATCHES=(
        "${FILESDIR}/${P}-fix-install.patch"
        "${FILESDIR}/${P}-fix-issue-with-cmake-path-variables.patch"
        "${FILESDIR}/${P}-Gentoo-specific-avoid-pre-stripping-files.patch"
+       "${FILESDIR}/${P}-fix-flow-control-nesting.patch"
 )
 
 pkg_setup() {

Reply via email to