cmake dependency failed for v4.0 when trying to build an RPM package from a source tarball
Hi, I'm trying to create a rpm file Wireshark v4.0.0 On CentOs7.9 using ninja the same way as for previous versions:
Running this command from an empty created 'build' directory: cmake3 -G Ninja -DBUILD_wireshark=OFF -DCMAKE_INSTALL_PREFIX=/usr ..
Running 'ninja wireshark_rpm' (in older versions 'ninja rpm_package')
got this error: The build system cannot produce a source tarball outside of a git repository. If you are trying to build an RPM package from source extracted from a tarball, copy it (i.e., wireshark-4.0.0.tar.xz) to wireshark/build and run the build command again.
-> in order to fix it I created a tar with 'tar -czvf *' to all the wireshark dir and copied it to 'build' directory but then got this one:
xzcat: build/wireshark-4.0.0.tar.xz: File format not recognized fatal: git get-tar-commit-id: EOF before reading tar header: No such file or directory
and a few lines after: or: Failed build dependencies: cmake >= 3.10 is needed by wireshark-4.0.0-1.x86_64
although I am running cmake version 3.24.3
Can someone please advice? Thanks in advance.
What does the command
cmake --version
- notcmake3 --version
,cmake --version
without the "3" - print?Result:
So, have you tried
cmake
, rather thencmake3
, in your build command?yes... got the same result
any other suggestions?