[PATCH] distversion feature for snapshot dists

Bjoern Baumbach bb at sernet.de
Fri Jun 22 04:14:24 MDT 2012


Please find attached a set of patches extending our build system.

Aimed problem:
If we create a snapshot tarball with make dist we loose the version
information (e.g. git hash). So packages build from such a dist package
have a version like 4.0.0beta3-UNKNOWN.

With my patches "make dist" writes a .distversion file with version
information and adds it to the dist tarball.
The wafsamba/samba_version.py code is extended to use this information.

Such a .distversion looks like:
COMMIT_DATE=Fri Jun 22 09:30:38 2012 +0200

I think this is very useful and I would like to use it in future.

Comments? :-)

Björn Baumbach

SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: distversion.patch
Type: text/x-patch
Size: 6168 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20120622/9a6c601c/attachment.bin>

More information about the samba-technical mailing list