[Debian-med-packaging] Bug#1110434: libnifti2-dev: The NIFTI::znz target is misconfigured.
Utkarsh Raj
encode.sh at protonmail.com
Tue Aug 5 13:13:31 BST 2025
Package: libnifti2-dev
Version: 3.0.1-9.1+b1
Severity: important
Tags: ftbfs upstream
X-Debbugs-Cc: debian-amd64 at lists.debian.org, encode.sh at protonmail.com
User: debian-amd64 at lists.debian.org
Usertags: amd64
Dear Maintainer,
I was packaging ROCm Performance Primitives (RPP) for Debian, which requires libnifti2-dev for complete
building of the test suite.
The file `/usr/share/cmake/NIFTI/NIFTITargets.cmake` incorrectly refers to `/usr/lib/libznz.so.3.0.0`,
which does not exist on multiarch systems like amd64. The correct path is likely:
/usr/lib/x86_64-linux-gnu/libznz.so.3.0.0
The configuration fails with:
-- rpp-test: Using RPP Backend: HIP
CMake Error at /usr/share/cmake/NIFTI/NIFTITargets.cmake:129 (message):
The imported target "NIFTI::znz" references the file
"/usr/lib/libznz.so.3.0.0"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/share/cmake/NIFTI/NIFTITargets.cmake"
but not all the files it references.
Call Stack (most recent call first):
/usr/share/cmake/NIFTI/NIFTIConfig.cmake:1 (include)
utilities/test_suite/CMakeLists.txt:118 (find_package)
-- Configuring incomplete, errors occurred!
As a result, any downstream project that uses `find_package(NIFTI REQUIRED)` will fail during CMake
configuration.
To reproduce:
git clone https://salsa.debian.org/rocm-team/rpp.git
cd rpp
# add dependency libnifti2-dev in d/control
uscan --verbose --force-download --download-current-version
debuild -us -uc
-- System Information:
Debian Release: 13.0
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.15.8-200.fc42.x86_64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Versions of packages libnifti2-dev depends on:
ii libnifti2-2 3.0.1-9.1+b1
ii libnifticdf-dev 3.0.1-9.1+b1
ii libniftiio-dev 3.0.1-9.1+b1
ii libznz-dev 3.0.1-9.1+b1
libnifti2-dev recommends no packages.
libnifti2-dev suggests no packages.
-- no debconf information
More information about the Debian-med-packaging
mailing list