From: "Andrew Ammerlaan" <andrewammerlaan@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/itk/, sci-libs/itk/files/
Date: Fri, 30 Sep 2022 10:18:00 +0000 (UTC) [thread overview]
Message-ID: <1664520595.76b20521901742c59aa823035357a3a49ebb0aad.andrewammerlaan@gentoo> (raw)
commit: 76b20521901742c59aa823035357a3a49ebb0aad
Author: François-Xavier Carton <fx.carton91 <AT> gmail <DOT> com>
AuthorDate: Thu Sep 29 18:08:30 2022 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Fri Sep 30 06:49:55 2022 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=76b20521
sci-libs/itk: add upstream patch to fix building tests
Needed since commit b6218b "sci-libs/itk: add AdaptiveDenoising module"
because the commit used for that remote module is too recent and needs
that ITK commit.
Signed-off-by: François-Xavier Carton <fx.carton91 <AT> gmail.com>
Closes: https://github.com/gentoo/sci/pull/1172
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
sci-libs/itk/files/itk-5.2.1-upstream-fixes.patch | 54 ++++++++++++++++++++++
.../{itk-5.2.1-r1.ebuild => itk-5.2.1-r2.ebuild} | 0
2 files changed, 54 insertions(+)
diff --git a/sci-libs/itk/files/itk-5.2.1-upstream-fixes.patch b/sci-libs/itk/files/itk-5.2.1-upstream-fixes.patch
index 2e547d9ca..2af8c4998 100644
--- a/sci-libs/itk/files/itk-5.2.1-upstream-fixes.patch
+++ b/sci-libs/itk/files/itk-5.2.1-upstream-fixes.patch
@@ -1,6 +1,7 @@
https://github.com/InsightSoftwareConsortium/ITK/commit/2a7f5ed199926999b67f61a97c2c9a2595a11558.patch
https://github.com/InsightSoftwareConsortium/ITK/commit/0c31aa688e82a34e5430873bc6176740fd09ad75.patch
https://github.com/InsightSoftwareConsortium/ITK/commit/28325d921a9b8793e6aaefd612f53989f951d19c.patch
+https://github.com/InsightSoftwareConsortium/ITK/commit/aafd1f9631d0fad60e1b6f53e049e95a50c48bd1.patch
From 2a7f5ed199926999b67f61a97c2c9a2595a11558 Mon Sep 17 00:00:00 2001
From: Niels Dekker <N.Dekker@lumc.nl>
@@ -253,3 +254,56 @@ index fca3d999b87..3b7a1d37334 100644
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/detect_site_package_path.py ${python_check})
execute_process(COMMAND "${Python3_EXECUTABLE}" "${CMAKE_CURRENT_BINARY_DIR}/detect_site_package_path.py"
OUTPUT_VARIABLE py_spp
+From aafd1f9631d0fad60e1b6f53e049e95a50c48bd1 Mon Sep 17 00:00:00 2001
+From: Hans Johnson <hans-johnson@uiowa.edu>
+Date: Wed, 15 Dec 2021 08:10:58 -0600
+Subject: [PATCH] COMP: Remove inclusion of .hxx files as headers
+
+The ability to include either .h or .hxx files as
+header files required recursively reading the
+.h files twice. The added complexity is
+unnecessary, costly, and can confuse static
+analysis tools that monitor header guardes (due
+to reaching the maximum depth of recursion
+limits for nested #ifdefs in checking).
+
+Co-authored-by: Simon Rit <simon.rit@creatis.insa-lyon.fr>
+---
+ CMake/ITKModuleHeaderTest.cmake | 3 +--
+ Utilities/Maintenance/BuildHeaderTest.py | 4 ----
+ 2 files changed, 1 insertion(+), 6 deletions(-)
+
+diff --git a/CMake/ITKModuleHeaderTest.cmake b/CMake/ITKModuleHeaderTest.cmake
+index eb809d7e93d..82ad192a6f8 100644
+--- a/CMake/ITKModuleHeaderTest.cmake
++++ b/CMake/ITKModuleHeaderTest.cmake
+@@ -36,8 +36,7 @@ macro( itk_module_headertest _name )
+ # effected.
+ set( _include ${${_name}_SOURCE_DIR}/include )
+ file( GLOB _h_files ${_include}/*.h )
+- file( GLOB _hxx_files ${_include}/*.hxx )
+- set( _header_files ${_h_files} ${_hxx_files} )
++ set( _header_files ${_h_files} )
+ list( LENGTH _h_files _num_headers )
+ set( _outputs ${${_name}_BINARY_DIR}/test/${_name}HeaderTest1.cxx )
+ set( _test_num 1 )
+diff --git a/Utilities/Maintenance/BuildHeaderTest.py b/Utilities/Maintenance/BuildHeaderTest.py
+index 26a4b6ccb3f..f8ed9f7901e 100755
+--- a/Utilities/Maintenance/BuildHeaderTest.py
++++ b/Utilities/Maintenance/BuildHeaderTest.py
+@@ -130,15 +130,11 @@ def main():
+ else:
+ max_idx = added_header_idx + maximum_number_of_headers
+ for i in range(added_header_idx, max_idx):
+- # Use the .hxx if possible.
+- hxx_file = h_files[i][:-1] + "hxx"
+ # Files that include VTK headers need to link to VTK.
+ if h_files[i] in BANNED_HEADERS or h_files[i].lower().find("vtk") != -1:
+ to_include = (
+ '// #include "' + h_files[i] + '" // Banned in BuildHeaderTest.py\n'
+ )
+- elif os.path.exists(os.path.join(module_source_path, "include", hxx_file)):
+- to_include = '#include "' + hxx_file + '"\n'
+ else:
+ to_include = '#include "' + h_files[i] + '"\n'
+
diff --git a/sci-libs/itk/itk-5.2.1-r1.ebuild b/sci-libs/itk/itk-5.2.1-r2.ebuild
similarity index 100%
rename from sci-libs/itk/itk-5.2.1-r1.ebuild
rename to sci-libs/itk/itk-5.2.1-r2.ebuild
next reply other threads:[~2022-09-30 10:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-30 10:18 Andrew Ammerlaan [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-05-13 1:31 [gentoo-commits] proj/sci:master commit in: sci-libs/itk/, sci-libs/itk/files/ Horea Christian
2023-03-25 1:49 Horea Christian
2022-09-15 11:17 Andrew Ammerlaan
2022-08-31 10:30 Andrew Ammerlaan
2022-08-23 10:58 Andrew Ammerlaan
2020-09-25 7:33 Horea Christian
2019-09-09 8:26 Horea Christian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1664520595.76b20521901742c59aa823035357a3a49ebb0aad.andrewammerlaan@gentoo \
--to=andrewammerlaan@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox