[RFC]: make IcedTea-web to be compatible with RHEL5 libraries

Jiri Vanek jvanek at redhat.com
Mon Aug 22 06:16:47 PDT 2011


On 07/21/2011 03:21 PM, Dr Andrew John Hughes wrote:
> On 12:08 Thu 21 Jul     , Jiri Vanek wrote:
>>
>> Hi!
>>
>> This patch is another attempt o make icedtea-web buildable on rhel 5 with older libraries. Before build of plugin itself is started, then testing c++ program is tried to be linked with same options. If this compilation fails, then original IcedTeaNPPlugin.cc is backuped,  glibBuildable.patch is applied to IcedTeaNPPlugin.cc and then plugin is linked.
>> During clean-plugin original IcedTeaNPPlugin.cc is restored from backup (and when test application is compiled, then this binary is deleted, also backup is delete)
>>
>> Please, when you will ask me to include this "solution" more to configure (or autotools or anywhere) then I will need a little bit of help.
>>
>
> I suggest taking a look at the autoconf manual and function detection:
>
> http://www.gnu.org/software/autoconf/manual/autoconf.html#Library-Functions
>
> Then, rather than patching, I'd add a header file with #ifdefs to handle both cases.
>

2011-08-22  Jiri Vanek <jvanek at redhat.com>
	Added functionality to allow icedtea web to be buildable with
	 rhel5 libraries
	* testGlibs.cc: testing file. If not compiled, then Rhel5Compatible
	 macro is defined for compiling IcedTeaNPPlugin.cc.
	* plugin/icedteanp/IcedTeaNPPlugin.cc: added replacements for incompatible
	 functions, added #define sections for use this function instead of glib ones
	*Makefile.am: (stamps/patch-for-glib): new target, compiling testGlibs.cc
	($(PLUGIN_DIR)/%.o): now depends on stamps/patch-for-glib and define
	 Rhel5Compatible if  testGlibs.cc was compiled successfully
	($(PLUGIN_DIR)/IcedTeaPlugin.so): same as ^
	(clean-IcedTeaPlugin): removes compiled testGlibs if exists


Regards J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rhel5comp.patch
Type: text/x-patch
Size: 7161 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20110822/aa9a9ad1/rhel5comp.patch 


More information about the distro-pkg-dev mailing list