[PATCH 2/4] Cleanup configure and add support for mozjs24

2016-08-04 Thread Jeremy Linton
We want to support more than two mozjs versions, so cleanup the mozjs configure selection and add an additional stanza. Signed-off-by: Jeremy Linton --- configure.ac | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/configure.ac b/configure.ac index 18c

[PATCH 3/4] Add support for mozjs24 to polkitbackendjsauthority.cpp

2016-08-04 Thread Jeremy Linton
Now that polkitbackendjsauthority is compiling in C++ mode and the autoconf supports mozjs24, update the module so that it builds with mozjs24. Signed-off-by: Jeremy Linton --- src/polkitbackend/polkitbackendjsauthority.cpp | 71 ++ 1 file changed, 51 insertions(+), 20 de

[PATCH 4/4] Fix warnings caused by building with C++

2016-08-04 Thread Jeremy Linton
C++ needs explicit casts for many pointer type conversions For example char * to void * should have a cast. Fix a number of these cases. Also, scope initializations of C++ objects that are jumped around with goto's so the compiler can determine when to destroy the objects. Signed-off-by: Jeremy Li

[PATCH 0/4] Pull polkit forward to mozjs24

2016-08-04 Thread Jeremy Linton
Polkit is out of date with respect to supported versions of mozjs. These patches start moving polkit forward again. Right now they are just to mozjs24 which is one of the first C++ only JSAPI versions of spidermonkey and is a good starting point for evolving polkit. Moving it forward to 38 or 45 in

[PATCH 1/4] change mozjs interface module to c++

2016-08-04 Thread Jeremy Linton
The JSAPI is now a full C++ interface. Convert the polkit to JavaScript interface module to C++ compilation in order to support newer versions of spidermonkey. Signed-off-by: Jeremy Linton --- configure.ac | 3 +++ src/polkitbackend/Makefile.