CPack DEB generator shlibdeps fails silently if /usr/bin/file is not installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cmake (Debian) |
Fix Released
|
Unknown
|
|||
cmake (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I use CPack to build a debian package
I use CPACK_DEBIAN_
this only works when the package "file" is installed and fails silently otherwise
"file" is not a package dependency of the cmake package
this bug report is about the packaging dependency, not that cpack silently fails, which should be fixed upstream
How to reproduce
Source File: main.cxx
#include <iostream>
int main(int,char**) {
std::cout << "Hello\n";
return 0;
}
CMakeList.txt:
cmake_minimum_
PROJECT(Hello)
ADD_EXECUTABLE(
INSTALL(TARGETS hello DESTINATION hello)
SET(CPACK_GENERATOR "DEB")
SET(CPACK_
SET(CPACK_
INCLUDE(CPack)
commands to trigger
apt install cmake
cmake .
make package
dpkg -I Hello-0.
expected output:
Depends: libc6 (>= 2.2.5), libstdc++6 (>= 4.1.1)
actual output of grep if /usr/bin/file is not installed is empty (missing Depends line)
affects Ubuntu version: Ubuntu 16.04 (probably all others too)
affects cmake version: 3.5.1-1ubuntu1
Work-around: apt install file (almost everyone has that installed, but minimal docker containers for package building do not)
suggested solution: make the cmake package depend on the file package
Changed in cmake (Debian): | |
status: | Unknown → New |
Changed in cmake (Debian): | |
status: | New → Fix Released |
Forwarding to Debian