dunst-project / dunst

Lightweight and customizable notification daemon
https://dunst-project.org
Other
4.44k stars 338 forks source link

Cannot build without tags #1192

Closed matejdro closed 4 months ago

matejdro commented 11 months ago

When creating a forked repo, checking out and attempting to build it, build fails with unhelpful error message:

fatal: No names found, cannot describe anything.
pod2man --name=dunst -c "Dunst Reference" --section=5 --release= docs/dunst.5.pod > docs/dunst.5
Option release requires an argument
make: *** [Makefile:115: docs/dunst.5] Error 1

It turns out the problem is that makefile wants at least one git tag to work. Since Github fork by default just forks the master branch without any tags, it means that any fork will fail build by default.

Maybe we could add some more info to README or add a fallback to Makefile in case there are no tags?