Package: libnetcdf-mpi-dev Version: 1:4.7.4-1+b1 Severity: important X-Debbugs-Cc: jul...@julien-bigot.fr
Dear Maintainer, Using the parallel version of NetCDF from CMake leads to invalid path found. The provided CMake config file is installed to the canonical path /usr/lib/x86_64-linux-gnu/cmake/netCDF_mpi/netCDFConfig.cmake but in order to be found by CMake, it must be used from the actual path /usr/lib/x86_64-linux-gnu/netcdf/mpi/lib/cmake/netCDF/netCDFConfig.cmake ( Cf. https://cmake.org/cmake/help/latest/command/find_package.html#search-procedure on unix-like systems, the path has to contain either lib/ or share/ just before the package name.) Hence I used the following command to build my library depending on NetCDF: ``` cmake -DCMAKE_PREFIX_PATH=/usr/lib/x86_64-linux-gnu/netcdf/mpi/ ``` This resulted in the following output: ``` CMake Error at /usr/lib/x86_64-linux-gnu/netcdf/mpi/lib/cmake/netCDF/netCDFConfig.cmake:25 (message): File or directory /usr/lib/x86_64-linux-gnu/netcdf/include referenced by variable netCDF_INCLUDE_DIR does not exist ! Call Stack (most recent call first): /usr/lib/x86_64-linux-gnu/netcdf/mpi/lib/cmake/netCDF/netCDFConfig.cmake:33 (set_and_check) CMakeLists.txt:43 (find_package) ``` Indeed, netCDFConfig.cmake sets the variable netCDF_INCLUDE_DIR to "${PACKAGE_PREFIX_DIR}/include" where PACKAGE_PREFIX_DIR is set to "${CMAKE_CURRENT_LIST_DIR}/../../../../" (relative to netCDFConfig.cmake actual path, i.e. /usr/lib/x86_64-linux-gnu/netcdf/mpi/lib/cmake/netCDF/) This resolves to PACKAGE_PREFIX_DIR=/usr/lib/x86_64-linux-gnu/netcdf and then netCDF_INCLUDE_DIR=/usr/lib/x86_64-linux-gnu/netcdf/include that does not exist (missing the mpi/ bit). The package libnetcdf-mpi-dev installs its include files in /usr/lib/x86_64-linux-gnu/netcdf/mpi/include/ I tried to have a look at the source package on salsa to provide a patch, however the link provided at https://packages.debian.org/source/sid/netcdf-parallel regarding the Debian Source Repository is inaccessible to me ( https://salsa.debian.org/mckinstry/netcdf-parallel ) is the dev-coinstallable branch of https://salsa.debian.org/mckinstry/netcdf the new canonical source for these packages? Best regards, Julien Bigot -- System Information: Debian Release: bullseye/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'stable-debug'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental-debug'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.9.0-4-amd64 (SMP w/8 CPU threads) Locale: LANG=en_US.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=en_US Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages libnetcdf-mpi-dev depends on: ii libnetcdf-mpi-18 1:4.7.4-1+b1 ii pkg-config 0.29.2-1 libnetcdf-mpi-dev recommends no packages. Versions of packages libnetcdf-mpi-dev suggests: pn netcdf-bin <none> pn netcdf-doc <none> -- no debconf information