[From nobody Sat Nov 14 04:07:07 2026
Received: (at submit) by bugs.debian.org; 5 Aug 2025 12:13:35 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-17.4 required=4.0 tests=BAYES_00,
 BODY_INCLUDES_PACKAGE,FOURLA,FREEMAIL_FROM,HAS_PACKAGE,RDNS_NONE,
 SPF_SOFTFAIL,SPOOFED_FREEMAIL,SPOOFED_FREEMAIL_NO_RDNS,
 XMAILER_REPORTBUG autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 51; hammy, 150; neutral, 153; spammy,
 0. spammytokens: hammytokens:0.000-+--XDebbugsCc,
 0.000-+--X-Debbugs-Cc, 0.000-+--cmake, 0.000-+--H*M:reportbug,
 0.000-+--H*MI:reportbug
Return-path: &lt;encode.sh@protonmail.com&gt;
Received: from [2405:201:a40b:2863:69cc:7243:ad7b:bfb4] (port=44888
 helo=[192.168.29.104]) by buxtehude.debian.org with esmtp (Exim 4.96)
 (envelope-from &lt;encode.sh@protonmail.com&gt;) id 1ujGXu-001HRT-0P
 for submit@bugs.debian.org; Tue, 05 Aug 2025 12:13:35 +0000
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Utkarsh Raj &lt;encode.sh@protonmail.com&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: libnifti2-dev: The NIFTI::znz target is misconfigured.
Message-ID: &lt;175439601144.39211.2815719149869423066.reportbug@fedora&gt;
X-Mailer: reportbug 13.2.0
Date: Tue, 05 Aug 2025 17:43:31 +0530
Delivered-To: submit@bugs.debian.org

Package: libnifti2-dev
Version: 3.0.1-9.1+b1
Severity: important
Tags: ftbfs upstream
X-Debbugs-Cc: debian-amd64@lists.debian.org, encode.sh@protonmail.com
User: debian-amd64@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 &quot;NIFTI::znz&quot; references the file
    
         &quot;/usr/lib/libznz.so.3.0.0&quot;
    
      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
    
         &quot;/usr/share/cmake/NIFTI/NIFTITargets.cmake&quot;
    
      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
]