[icedtea-web] RFC: pick up name and version from configure

Omair Majid omajid at redhat.com
Wed Jan 26 14:51:11 PST 2011


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?

> The changes to Boot.java and the netx-dist target look fine.
>

Thanks for looking it over. I am attaching the complete patch.

Cheers,
Omair
-------------- next part --------------
A non-text attachment was scrubbed...
Name: name-version-from-configure-02.patch
Type: text/x-patch
Size: 4128 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20110126/a05d68fc/name-version-from-configure-02.patch 


More information about the distro-pkg-dev mailing list