jq icon indicating copy to clipboard operation
jq copied to clipboard

jq build version generation: include version in tagged releases

Open elsbrock opened this issue 11 years ago • 5 comments

configure.ac looks up jq versioning information using the git command. In many packaging setups (such as Debian's) however, there is no access to the .git repository during package building. I propose to include versioning information in release tarballs, so that maintainers don't need to set that manually. One tool that could be used for this is autorevision, which can e.g. generate a header file.

elsbrock avatar Jun 21 '14 12:06 elsbrock

Hmmm, I'm not sure what to do here. The tarball includes a ./configure doesn't use git. The configure.ac does, but why autoreconf if not in git?

nicowilliams avatar Jan 01 '15 22:01 nicowilliams

I'll take a look at autorevision. Perhaps it will help.

nicowilliams avatar Jan 01 '15 22:01 nicowilliams

I guess the setup.sh script could run autorevision to make an m4 file for configure.ac, and a version.h so that we don't need anything else like scripts/version. Although I'd rather avoid yet another external dependency for building from git. And anyways, the trick is to make sure that this runs when building from git and that its output is dist'ed when doing make dist.

nicowilliams avatar Jan 02 '15 00:01 nicowilliams

@else can you point me to an autoconf project that does this correctly?

dtolnay avatar Oct 12 '15 16:10 dtolnay

Please note that:

  1. debian trixie shipped a 1.7.1 binary that claims to be 1.7
  2. ubuntu noble ships a similar version of that same package with that same problem
  3. github's ubuntu-24.04 similarly claims to have a 1.7 which is also really a 1.7.1

jsoref avatar Jun 30 '25 18:06 jsoref