Failed to build rpm
I have my source in private git source control
I did
git clone
mdkir build
cd build
cmake3 -DBUILD_wireshark=OFF -G'Unix Makefiles' -DCMAKE_INSTALL_PREFIX=. ..
make
make rpm-package
But i failed to build the rpm
make rpm-package
Scanning dependencies of target rpm-package
Generating packaging/rpm/SOURCES/wireshark-51e7acf.tar.xz
fatal: No names found, cannot describe anything.
make[3]: *** [packaging/rpm/SOURCES/wireshark-51e7acf.tar.xz] Error 128
make[2]: *** [CMakeFiles/rpm-package.dir/all] Error 2
make[1]: *** [CMakeFiles/rpm-package.dir/rule] Error 2
make: *** [rpm-package] Error 2
I tried to understand why it didn't work. It seems that there is no tag in this branch. So i created a tag
git tag -a v1 -m "my first tag 1"
Now the new output is
make rpm-package
Generating packaging/rpm/SOURCES/wireshark-1-0-g551e7acf.tar.xz
Not archiving HEAD. Skipping description.
Creating wireshark-1.tar.xz
Create a tarball from the current git commit.
error: File /home/nfsroot/wireshark_git2/wireshark/build/packaging/rpm/SOURCES/wireshark-1-0-g551e7acf.tar.xz: No such file or directory
make[3]: *** [CMakeFiles/rpm-package] Error 1
make[2]: *** [CMakeFiles/rpm-package.dir/all] Error 2
make[1]: *** [CMakeFiles/rpm-package.dir/rule] Error 2
make: *** [rpm-package] Error 2
What happens if you run cmake without any parameters?
It seems cmake requires parameters to work
I think @Anders meant with the minimal flags required, e.g. the generator and source directory.
Not apparently listed in the Developers Guide, have you run tools/rpm-setup.sh?
Results:
output:
I tried inside and outside wireshark directory
It seems that the script git-export-release.sh take version number diffently than make-version.pl
Yes I think you need to debug why these two names differ:
Is there a way to set version not based on git?
I saw that there is version.conf but i don't know where to put it