Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/opencascade/, sci-libs/opencascade/files/
Date: Mon, 01 Mar 2021 08:26:12
Message-Id: 1614587154.a05456f36a8e1c4c3c37695f3e9a621fccb4e801.juippis@gentoo
1 commit: a05456f36a8e1c4c3c37695f3e9a621fccb4e801
2 Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net>
3 AuthorDate: Wed Feb 24 21:07:32 2021 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 1 08:25:54 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a05456f3
7
8 sci-libs/opencascade: fix flow control
9
10 dev-util/cmake >= 3.20.0_rc1 has restricted flow control
11 checks. This patch fixes an issue with these new version
12 on unbalanced flow control statements.
13
14 Closes: https://bugs.gentoo.org/771300
15 Package-Manager: Portage-3.0.15, Repoman-3.0.2
16 Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net>
17 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
18
19 ...pencascade-7.4.0-fix-flow-control-nesting.patch | 31 ++++++++++++++++++++++
20 sci-libs/opencascade/opencascade-7.4.0-r4.ebuild | 1 +
21 2 files changed, 32 insertions(+)
22
23 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
24 new file mode 100644
25 index 00000000000..7e2bb1d7b2a
26 --- /dev/null
27 +++ b/sci-libs/opencascade/files/opencascade-7.4.0-fix-flow-control-nesting.patch
28 @@ -0,0 +1,31 @@
29 +From e69c42386239bcc08143607df12b8bb3f1ff14ba Mon Sep 17 00:00:00 2001
30 +From: Bernd Waibel <waebbl-gentoo@××××××.net>
31 +Date: Wed, 24 Feb 2021 20:06:02 +0100
32 +Subject: [PATCH] adm/cmake/vtk.cmake: fix flow control nesting
33 +
34 +Fix an unbalanced nesting of flow control statements
35 +for >=cmake-3.20.0
36 +
37 +Signed-off-by: Bernd Waibel <waebbl-gentoo@××××××.net>
38 +---
39 + adm/cmake/vtk.cmake | 4 ++--
40 + 1 file changed, 2 insertions(+), 2 deletions(-)
41 +
42 +diff --git a/adm/cmake/vtk.cmake b/adm/cmake/vtk.cmake
43 +index c5692fd6..00b7ff4a 100644
44 +--- a/adm/cmake/vtk.cmake
45 ++++ b/adm/cmake/vtk.cmake
46 +@@ -156,8 +156,8 @@ if (VTK_FOUND)
47 + endif()
48 + endif()
49 + endif()
50 +- endif()
51 +- endforeach()
52 ++ endforeach()
53 ++ endif()
54 + endif()
55 +
56 + if (3RDPARTY_VTK_INCLUDE_DIRS)
57 +--
58 +2.30.1
59 +
60
61 diff --git a/sci-libs/opencascade/opencascade-7.4.0-r4.ebuild b/sci-libs/opencascade/opencascade-7.4.0-r4.ebuild
62 index d46a66fe600..4b7371a287c 100644
63 --- a/sci-libs/opencascade/opencascade-7.4.0-r4.ebuild
64 +++ b/sci-libs/opencascade/opencascade-7.4.0-r4.ebuild
65 @@ -75,6 +75,7 @@ PATCHES=(
66 "${FILESDIR}/${P}-fix-install.patch"
67 "${FILESDIR}/${P}-fix-issue-with-cmake-path-variables.patch"
68 "${FILESDIR}/${P}-Gentoo-specific-avoid-pre-stripping-files.patch"
69 + "${FILESDIR}/${P}-fix-flow-control-nesting.patch"
70 )
71
72 pkg_setup() {