Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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 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

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

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. Here is the output of the following command

git --git-dir=/home/nfsroot/wireshark_git2/wireshark/.git describe --abbrev=8 --long --always --match "v[1-9]*"
551e7acf

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. Here 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 of 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 following command

git --git-dir=/home/nfsroot/wireshark_git2/wireshark/.git describe --abbrev=8 --long --always --match "v[1-9]*"
551e7acf
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