mdio-tools
mdio-tools copied to clipboard
Sourcing release version from git tag is fragile
It has been brought to my attention (thanks @troglobit) that some distributions (notably Debian) will always run autoreconf on all packages.
The current flow only considers two scenarios:
- Building from git clone.
configuremust be generated, but.gitis available so the version can be found. - Building from release tarball.
configureis already generated so it does not matter that.gitis missing.
But in order to support regeneration of configure from release tarballs, the version info must be manually managed in configure.ac. Perhaps we can at least work out some way of appending git version info if it is available.