Jakub Klinkovský pushed to branch main at Arch Linux / Packaging / Packages / itk
Commits: 50652829 by Jakub Klinkovský at 2025-06-08T14:15:37+02:00 upgpkg: 5.4.3-2: build with clang rather than old gcc - - - - - 3 changed files: - .SRCINFO - PKGBUILD - + fix-cstdint.patch Changes: ===================================== .SRCINFO ===================================== @@ -1,15 +1,16 @@ pkgbase = itk pkgdesc = An open-source toolkit for multidimensional image analysis pkgver = 5.4.3 - pkgrel = 1 + pkgrel = 2 url = https://www.itk.org arch = x86_64 license = Apache-2.0 makedepends = castxml + makedepends = clang makedepends = cmake makedepends = eigen - makedepends = gcc13 makedepends = git + makedepends = lld makedepends = ninja makedepends = python makedepends = swig @@ -25,7 +26,9 @@ pkgbase = itk makedepends = libtiff makedepends = zlib source = ITK-5.4.3.tar.gz::https://github.com/InsightSoftwareConsortium/ITK/archive/refs/tags/v5.4.3.tar.gz + source = fix-cstdint.patch b2sums = a360bac255bda6a51930355e1b8e9b9aeca0f6a7404fd43986dbe2d4491d3558b17af89f5961e78754946541900489d5f4346075d7eaf9650f11a1a8be05ea67 + b2sums = 5c1413b2c0b1c586d930b4803b0dbff881948eb980fad8940d8fe46a0f69177ee42b001d07a988f92227a4e8da8b2c7b4f33b08e50676f191cc5c4b583964fa6 pkgname = itk depends = dcmtk ===================================== PKGBUILD ===================================== @@ -4,17 +4,18 @@ pkgbase=itk pkgname=(itk python-itk) pkgver=5.4.3 -pkgrel=1 +pkgrel=2 pkgdesc="An open-source toolkit for multidimensional image analysis" arch=(x86_64) url="https://www.itk.org" license=(Apache-2.0) makedepends=( castxml + clang cmake eigen - gcc13 git # used for fetching remote modules + lld ninja python swig @@ -32,8 +33,12 @@ makedepends=( libtiff zlib ) -source=(${pkgbase^^}-$pkgver.tar.gz::https://github.com/InsightSoftwareConsortium/ITK/archive/refs/tags/v${pkgver}.tar.gz) -b2sums=('a360bac255bda6a51930355e1b8e9b9aeca0f6a7404fd43986dbe2d4491d3558b17af89f5961e78754946541900489d5f4346075d7eaf9650f11a1a8be05ea67') +source=( + ${pkgbase^^}-$pkgver.tar.gz::https://github.com/InsightSoftwareConsortium/ITK/archive/refs/tags/v$pkgver.tar.gz + fix-cstdint.patch +) +b2sums=('a360bac255bda6a51930355e1b8e9b9aeca0f6a7404fd43986dbe2d4491d3558b17af89f5961e78754946541900489d5f4346075d7eaf9650f11a1a8be05ea67' + '5c1413b2c0b1c586d930b4803b0dbff881948eb980fad8940d8fe46a0f69177ee42b001d07a988f92227a4e8da8b2c7b4f33b08e50676f191cc5c4b583964fa6') _pick() { local p="$1" f d; shift @@ -45,6 +50,12 @@ _pick() { done } +prepare() { + cd ${pkgbase^^}-$pkgver + # https://github.com/InsightSoftwareConsortium/ITK/pull/5387 + patch -p1 -i ../fix-cstdint.patch +} + build() { local cmake_options=( -B build @@ -54,8 +65,9 @@ build() { -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=None - -DCMAKE_CXX_COMPILER=g++-13 - -DCMAKE_C_COMPILER=gcc-13 + -DCMAKE_CXX_COMPILER=clang++ + -DCMAKE_C_COMPILER=clang + -DCMAKE_LINKER_TYPE=LLD -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_SKIP_INSTALL_RPATH=ON -DCMAKE_SKIP_RPATH=ON ===================================== fix-cstdint.patch ===================================== @@ -0,0 +1,13 @@ +diff --git a/Modules/Core/Common/include/itkFloatingPointExceptions.h b/Modules/Core/Common/include/itkFloatingPointExceptions.h +index fd2f0ce256..440f8dd940 100644 +--- a/Modules/Core/Common/include/itkFloatingPointExceptions.h ++++ b/Modules/Core/Common/include/itkFloatingPointExceptions.h +@@ -18,6 +18,8 @@ + #ifndef itkFloatingPointExceptions_h + #define itkFloatingPointExceptions_h + ++#include <cstdint> ++ + #include "itkMacro.h" // for ITKCommon_EXPORT + #include "itkSingletonMacro.h" + View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/itk/-/commit/50652829fcb2216a4c61e9b4c246cb80586c6e16 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/itk/-/commit/50652829fcb2216a4c61e9b4c246cb80586c6e16 You're receiving this email because of your account on gitlab.archlinux.org.