From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A05AE158094 for ; Fri, 30 Sep 2022 10:18:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D09B1E0EDC; Fri, 30 Sep 2022 10:18:03 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B7230E0EDC for ; Fri, 30 Sep 2022 10:18:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D860234108B for ; Fri, 30 Sep 2022 10:18:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EE747D4 for ; Fri, 30 Sep 2022 10:18:00 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1664520595.76b20521901742c59aa823035357a3a49ebb0aad.andrewammerlaan@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/itk/, sci-libs/itk/files/ X-VCS-Repository: proj/sci X-VCS-Files: sci-libs/itk/files/itk-5.2.1-upstream-fixes.patch sci-libs/itk/itk-5.2.1-r1.ebuild sci-libs/itk/itk-5.2.1-r2.ebuild X-VCS-Directories: sci-libs/itk/files/ sci-libs/itk/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 76b20521901742c59aa823035357a3a49ebb0aad X-VCS-Branch: master Date: Fri, 30 Sep 2022 10:18:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 063393fa-cfb2-43ca-82c2-7c3bd6627831 X-Archives-Hash: c124408407e06169ba965eef35979db3 commit: 76b20521901742c59aa823035357a3a49ebb0aad Author: François-Xavier Carton gmail com> AuthorDate: Thu Sep 29 18:08:30 2022 +0000 Commit: Andrew Ammerlaan gentoo 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 gmail.com> Closes: https://github.com/gentoo/sci/pull/1172 Signed-off-by: Andrew Ammerlaan 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 @@ -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 +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 +--- + 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