[icedtea-web] RFC: pick up name and version from configure
Omair Majid
omajid at redhat.com
Thu Jan 27 10:11:06 PST 2011
On 01/26/2011 07:27 PM, Dr Andrew John Hughes wrote:
> On 17:51 Wed 26 Jan , Omair Majid wrote:
>> On 01/26/2011 02:44 PM, Dr Andrew John Hughes wrote:
>>> On 12:13 Tue 25 Jan , Omair Majid wrote:
>>>> The attached patch gets rid of the hardcoded names and version numbers
>>>> in net. It makes netx pick up the right name and version form the
>>>> configure script.
>>>>
>>>
>>> I think it would be much cleaner to produce the manifest using autoconf's existing support for this
>>> rather than hacking stuff into the Makefile. You need to AC_SUBST FULL_VERSION and then add
>>> netx.manifest to AC_CONFIG_FILES. autoconf will do the rest. Make sure that the macros that
>>> set ICEDTEA_REVISION (IT_OBTAIN_HG_REVISIONS) and PKGVERSION (IT_GET_PKGVERSION) are run before
>>> FULL_VERSION is set. Something like the attached patch should do it.
>>>
>>> $ /home/andrew/projects/openjdk/icedtea-web/configure
>>> ...
>>> checking what version string to use... 1.1pre+r64da2a80df88
>>> ...
>>> $ cat netx/netx.manifest
>>> Implementation-Title: icedtea-web
>>> Implementation-Version: 1.1pre+r64da2a80df88
>>>
>>> $ /home/andrew/projects/openjdk/icedtea-web/configure --with-pkgversion=23
>>> ...
>>> checking what version string to use... 1.1pre+r64da2a80df88 (23)
>>> ...
>>> $ cat netx/netx.manifest
>>> Implementation-Title: icedtea-web
>>> Implementation-Version: 1.1pre+r64da2a80df88 (23)
>>>
>>
>> That's a great idea. Thanks for creating a patch for this too! I only
>> have one tiny concern: it creates a new dir named netx under the build
>> tree instead of using netx.build. I read through autoconf docs and
>> nothing that seems like a fix jumped out at me. Any ideas?
>>
>
> Good point. I'd just move it to the top-level i.e. netx.manifest instead of
> netx/netx.manifest. The .desktop files are already there (which incidentally
> should move to this system too).
>
Done. I am attaching the updated patch. Ok to commit?
Cheers,
Omair
-------------- next part --------------
A non-text attachment was scrubbed...
Name: name-version-from-configure-03.patch
Type: text/x-patch
Size: 4103 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20110127/78ab8993/name-version-from-configure-03.patch
More information about the distro-pkg-dev
mailing list