[rfc][icedtea-web] fix to newest xullrunner 27000000 break build

Jiri Vanek jvanek at redhat.com
Tue Feb 18 01:41:23 PST 2014


Half of this patch is check for xulrunner enforcing c++x11 standard. The second half  is 
reincarnation  of http://icedtea.classpath.org/hg/icedtea-web/rev/c5faf63fc34e

I think we should have all those checks valid.

On 02/13/2014 04:16 PM, Jiri Vanek wrote:
> On 02/13/2014 11:19 AM, Jiri Vanek wrote:
>> checking for xulrunner version... 27000000
>> break ITW with
>>
>> ..........
>> In file included from
>> /tmp/ICWDR_1392230148_BUILD/icedtea-web/plugin/icedteanp/IcedTeaScriptablePluginObject.h:43:0,
>>                   from
>> /tmp/ICWDR_1392230148_BUILD/icedtea-web/plugin/icedteanp/IcedTeaScriptablePluginObject.cc:41:
>> /tmp/ICWDR_1392230148_BUILD/icedtea-web/plugin/icedteanp/IcedTeaScriptablePluginObject.cc: In static
>> member function ‘static bool IcedTeaScriptableJavaObject::getProperty(NPObject*, NPIdentifier,
>> NPVariant*)’:
>> /usr/include/xulrunner-27.0/npruntime.h:140:30: error: ‘nullptr’ was not declared in this scope
>>       (_v).value.objectValue = nullptr;                                         \
>>                                ^
>> /tmp/ICWDR_1392230148_BUILD/icedtea-web/plugin/icedteanp/IcedTeaScriptablePluginObject.cc:634:17:
>> note: in expansion of macro ‘VOID_TO_NPVARIANT’
>>                   VOID_TO_NPVARIANT(*result);
>> ............
>>
>> J.
>
> http://osdir.com/ml/blfs-support/2014-02/msg00005.html
>
> SOunds like we have to add configure switch to xullrunner back
>   -... :-/

	* acinclude.m4: added definition of (IT_CHECK_XULRUNNER_API_VERSION_CONSTCHAR),
	which tries to compile small program against new xulrunner api
	Added (IT_CHECK_XULRUNNER_API_VERSION_C11) which tries to compile program
	with VOID_TO_NPVARIANT call without the c++0x standard and sets CXXFLAGS
	accordingly.
	* configure.ac: added call of (IT_CHECK_XULRUNNER_API_CONSTCHAR) and
	(IT_CHECK_XULRUNNER_API_VERSION_C11)
	* plugin/icedteanp/IcedTeaNPPlugin.cc: (NP_GetMIMEDescription)
	return type set-up by dependency on defined LEGACY_XULRUNNERAPI.
	 This one is set by IT_CHECK_XULRUNNER_API_VERSION during configure.
	if defined, then old char* is used. New const char* is used otherwise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: runOnAllKnownXulrunnersSince2010.patch
Type: text/x-patch
Size: 3259 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20140218/ac4126ce/runOnAllKnownXulrunnersSince2010.patch 


More information about the distro-pkg-dev mailing list