Bug 8590

Summary: automatic version numbers (courtesy of autoconf)
Product: xorg Reporter: Andres Salomon <dilinger>
Component: Build/ModularAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high    
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 8737    
Attachments:
Description Flags
first patch I proposed
none
second patch I proposed
none
third patch I proposed none

Description Andres Salomon 2006-10-10 12:43:06 UTC
There's no standard method for setting the major,
minor, and patchlevel versions in each module.  Some hardcode the
versions via #defines; others base them on the autoconf-defined value of
PACKAGE_VERSION.

It would make a lot more sense to have autoconf handle defining these,
and base it off PACKAGE_VERSION (for those who don't do much autoconf,
PACKAGE_NAME and PACKAGE_VERSION are automatically set in config.h based
on the values passed to AC_INIT() in configure.ac).  The variable names
I've chosen to go w/ are PACKAGE_VERSION_MAJOR, PACKAGE_VERSION_MINOR,
and PACKAGE_VERSION_PATCHLEVEL.

I've described the problem, proposed patches, gotten feedback, and revised the
patches here:

http://lists.freedesktop.org/archives/xorg/2006-October/018505.html
Comment 1 Andres Salomon 2006-10-10 12:43:54 UTC
Created attachment 7329 [details] [review]
first patch I proposed
Comment 2 Andres Salomon 2006-10-10 12:44:18 UTC
Created attachment 7330 [details] [review]
second patch I proposed
Comment 3 Andres Salomon 2006-10-10 12:44:57 UTC
Created attachment 7331 [details] [review]
third patch I proposed
Comment 4 Andres Salomon 2006-11-23 20:37:55 UTC
Any chance of getting this committed in time for the 7.2 release?
Comment 5 Daniel Stone 2006-11-30 13:59:07 UTC
util-macros 1.1.3 pushed, thanks

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.