summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
Diffstat (limited to 'package')
-rw-r--r--package/mozjs/Makefile37
-rw-r--r--package/mozjs/patches/patch-js_src_configure42
-rw-r--r--package/mozjs/patches/patch-js_src_js_pc_in12
-rw-r--r--package/mozjs/patches/patch-js_src_methodjit_MethodJIT_cpp22
-rw-r--r--package/polkit/Makefile46
-rw-r--r--package/polkit/patches/patch-Makefile_am10
-rw-r--r--package/polkit/patches/patch-actions_Makefile_am11
-rw-r--r--package/polkit/patches/patch-autogen_sh63
-rw-r--r--package/polkit/patches/patch-configure_ac63
-rw-r--r--package/polkit/patches/patch-src_polkit_Makefile_am35
-rw-r--r--package/polkit/patches/patch-src_polkitagent_Makefile_am37
-rw-r--r--package/polkit/patches/patch-src_polkitbackend_polkitbackendinteractiveauthority_c31
-rw-r--r--package/polkit/patches/patch-src_polkitbackend_polkitbackendjsauthority_c38
13 files changed, 0 insertions, 447 deletions
diff --git a/package/mozjs/Makefile b/package/mozjs/Makefile
deleted file mode 100644
index 390df7cf1..000000000
--- a/package/mozjs/Makefile
+++ /dev/null
@@ -1,37 +0,0 @@
-# This file is part of the OpenADK project. OpenADK is copyrighted
-# material, please see the LICENCE file in the top-level directory.
-
-include $(TOPDIR)/rules.mk
-
-PKG_NAME:= mozjs
-PKG_VERSION:= 17.0.0
-PKG_RELEASE:= 2
-PKG_MD5SUM:= 20b6f8f1140ef6e47daa3b16965c9202
-PKG_DESCR:= javascript library
-PKG_SECTION:= libs
-PKG_BUILDDEP:= bzip2-host python2-host nspr
-PKG_SITES:= http://ftp.mozilla.org/pub/mozilla.org/js/
-PKG_OPTS:= dev
-
-PKG_HOST_DEPENDS:= !darwin
-
-DISTFILES:= ${PKG_NAME}${PKG_VERSION}.tar.gz
-WRKDIST= ${WRKDIR}/${PKG_NAME}${PKG_VERSION}
-WRKSRC= ${WRKDIST}/js/src
-
-include $(TOPDIR)/mk/package.mk
-
-$(eval $(call PKG_template,MOZJS,mozjs,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
-
-CONFIGURE_ENV+= HOST_CC="${CC_FOR_BUILD}" HOST_CFLAGS="${CFLAGS_FOR_BUILD}"
-CONFIGURE_ENV+= HOST_LDFLAGS="${LDFLAGS_FOR_BUILD}"
-CONFIGURE_ENV+= HOST_CXXFLAGS="${CXXFLAGS_FOR_BUILD}" HOST_CXX="${CXX_FOR_BUILD}"
-CONFIGURE_ARGS+= --disable-optimize \
- --with-system-nspr
-
-mozjs-install:
- $(INSTALL_DIR) $(IDIR_MOZJS)/usr/lib
- $(CP) $(WRKINST)/usr/lib/libmozjs*.so* \
- $(IDIR_MOZJS)/usr/lib
-
-include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/mozjs/patches/patch-js_src_configure b/package/mozjs/patches/patch-js_src_configure
deleted file mode 100644
index f2b4f62c4..000000000
--- a/package/mozjs/patches/patch-js_src_configure
+++ /dev/null
@@ -1,42 +0,0 @@
---- mozjs17.0.0.orig/js/src/configure 2013-03-25 21:34:20.000000000 +0100
-+++ mozjs17.0.0/js/src/configure 2014-01-09 18:00:47.000000000 +0100
-@@ -6037,39 +6037,6 @@ EOF
- HAVE_ARM_SIMD=1
- fi
-
-- echo $ac_n "checking for ARM NEON support in compiler""... $ac_c" 1>&6
--echo "configure:6042: checking for ARM NEON support in compiler" >&5
-- # We try to link so that this also fails when
-- # building with LTO.
-- cat > conftest.$ac_ext <<EOF
--#line 6046 "configure"
--#include "confdefs.h"
--
--int main() {
--asm(".fpu neon\n vadd.i8 d0, d0, d0");
--; return 0; }
--EOF
--if { (eval echo configure:6053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
-- rm -rf conftest*
-- result="yes"
--else
-- echo "configure: failed program was:" >&5
-- cat conftest.$ac_ext >&5
-- rm -rf conftest*
-- result="no"
--fi
--rm -f conftest*
-- echo "$ac_t"""$result"" 1>&6
-- if test "$result" = "yes"; then
-- cat >> confdefs.pytmp <<\EOF
-- (''' HAVE_ARM_NEON ''', ' 1 ')
--EOF
--cat >> confdefs.h <<\EOF
--#define HAVE_ARM_NEON 1
--EOF
--
-- HAVE_ARM_NEON=1
-- fi
- fi # CPU_ARCH = arm
-
-
diff --git a/package/mozjs/patches/patch-js_src_js_pc_in b/package/mozjs/patches/patch-js_src_js_pc_in
deleted file mode 100644
index 456678abe..000000000
--- a/package/mozjs/patches/patch-js_src_js_pc_in
+++ /dev/null
@@ -1,12 +0,0 @@
---- mozjs17.0.0.orig/js/src/js.pc.in 2013-03-25 21:34:20.000000000 +0100
-+++ mozjs17.0.0/js/src/js.pc.in 2014-01-10 10:18:19.000000000 +0100
-@@ -1,7 +1,7 @@
- #filter substitution
- prefix=@prefix@
--libdir=@libdir@
--includedir=@includedir@
-+libdir=${prefix}/lib
-+includedir=${prefix}/include
-
- Name: SpiderMonkey @MOZILLA_VERSION@
- Description: The Mozilla library for JavaScript
diff --git a/package/mozjs/patches/patch-js_src_methodjit_MethodJIT_cpp b/package/mozjs/patches/patch-js_src_methodjit_MethodJIT_cpp
deleted file mode 100644
index a347a7077..000000000
--- a/package/mozjs/patches/patch-js_src_methodjit_MethodJIT_cpp
+++ /dev/null
@@ -1,22 +0,0 @@
---- mozjs17.0.0.orig/js/src/methodjit/MethodJIT.cpp 2013-02-11 23:33:23.000000000 +0100
-+++ mozjs17.0.0/js/src/methodjit/MethodJIT.cpp 2014-01-09 18:10:13.000000000 +0100
-@@ -702,7 +702,8 @@ asm (
- FUNCTION_HEADER_EXTRA
- ".globl " SYMBOL_STRING(JaegerTrampolineReturn) "\n"
- SYMBOL_STRING(JaegerTrampolineReturn) ":" "\n"
--" strd r4, r5, [r10, #24]" "\n" /* fp->rval type,data */
-+" str r4, [r10, #24]" "\n" /* fp->rval type,data */
-+" str r5, [r10, #28]" "\n" /* fp->rval type,data */
-
- /* Tidy up. */
- " mov r0, sp" "\n"
-@@ -762,7 +763,8 @@ SYMBOL_STRING(JaegerInterpoline) ":"
- " blx " SYMBOL_STRING_RELOC(js_InternalInterpret) "\n"
- " cmp r0, #0" "\n"
- " ldr r10, [sp, #(4*7)]" "\n" /* Load (StackFrame*)f->regs->fp_ */
--" ldrd r4, r5, [r10, #(4*6)]" "\n" /* Load rval payload and type. */
-+" ldr r4, [r10, #(4*6)]" "\n" /* Load rval payload and type. */
-+" ldr r5, [r10, #((4*6)+4)]" "\n" /* Load rval payload and type. */
- " ldr r1, [sp, #(4*3)]" "\n" /* Load scratch. */
- " it ne" "\n"
- " bxne r0" "\n"
diff --git a/package/polkit/Makefile b/package/polkit/Makefile
deleted file mode 100644
index 5be0cd1df..000000000
--- a/package/polkit/Makefile
+++ /dev/null
@@ -1,46 +0,0 @@
-# This file is part of the OpenADK project. OpenADK is copyrighted
-# material, please see the LICENCE file in the top-level directory.
-
-include $(TOPDIR)/rules.mk
-
-PKG_NAME:= polkit
-PKG_VERSION:= 0.112
-PKG_RELEASE:= 3
-PKG_MD5SUM:= 23973dcfd8b92ab2b7db3a925642b76d
-PKG_DESCR:= application-level toolkit
-PKG_SECTION:= libs
-PKG_BUILDDEP:= autotool mozjs
-PKG_DEPENDS:= mozjs
-PKG_URL:= http://www.freedesktop.org/wiki/Software/polkit/
-PKG_SITES:= http://openadk.org/distfiles/
-PKG_OPTS:= dev
-
-PKG_HOST_DEPENDS:= !darwin
-
-include $(TOPDIR)/mk/package.mk
-
-$(eval $(call PKG_template,POLKIT,polkit,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
-
-AUTOTOOL_STYLE:= autogen
-CONFIGURE_ARGS+= --disable-man-pages \
- --disable-examples \
- --enable-libsystemd-login=no \
- --without-systemdsystemunitdir \
- --with-polkitd-user=root \
- --with-authfw=shadow \
- --with-os-type=unknown
-
-polkit-install:
- $(INSTALL_DIR) $(IDIR_POLKIT)/etc $(IDIR_POLKIT)/usr/bin
- $(CP) $(WRKINST)/etc/* $(IDIR_POLKIT)/etc
- $(INSTALL_DIR) $(IDIR_POLKIT)/usr/lib/polkit-1
- $(CP) $(WRKINST)/usr/lib/libpolkit*.so* \
- $(IDIR_POLKIT)/usr/lib
- $(CP) $(WRKINST)/usr/lib/polkit-1/* \
- $(IDIR_POLKIT)/usr/lib/polkit-1
- $(CP) $(WRKINST)/usr/bin/* $(IDIR_POLKIT)/usr/bin
- $(INSTALL_DIR) $(IDIR_POLKIT)/usr/share/dbus-1
- $(CP) $(WRKINST)/usr/share/dbus-1/* \
- $(IDIR_POLKIT)/usr/share/dbus-1
-
-include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/polkit/patches/patch-Makefile_am b/package/polkit/patches/patch-Makefile_am
deleted file mode 100644
index 878409f17..000000000
--- a/package/polkit/patches/patch-Makefile_am
+++ /dev/null
@@ -1,10 +0,0 @@
---- polkit-0.112.orig/Makefile.am 2013-09-18 18:55:09.000000000 +0200
-+++ polkit-0.112/Makefile.am 2014-01-09 21:28:39.000000000 +0100
-@@ -1,6 +1,6 @@
- ## Process this file with automake to produce Makefile.in
-
--SUBDIRS = actions data src docs po test
-+SUBDIRS = data src
-
- NULL =
-
diff --git a/package/polkit/patches/patch-actions_Makefile_am b/package/polkit/patches/patch-actions_Makefile_am
deleted file mode 100644
index ea3d2131a..000000000
--- a/package/polkit/patches/patch-actions_Makefile_am
+++ /dev/null
@@ -1,11 +0,0 @@
---- polkit-0.112.orig/actions/Makefile.am 2013-09-18 18:55:09.000000000 +0200
-+++ polkit-0.112/actions/Makefile.am 2014-01-09 21:14:31.000000000 +0100
-@@ -3,8 +3,6 @@ polkit_actiondir = $(datadir)/polkit-1/a
-
- dist_polkit_action_DATA = org.freedesktop.policykit.policy
-
--@INTLTOOL_POLICY_RULE@
--
- #check:
- # $(top_builddir)/tools/polkit-policy-file-validate-1 $(top_srcdir)/policy/$(dist_polkit_action_DATA)
-
diff --git a/package/polkit/patches/patch-autogen_sh b/package/polkit/patches/patch-autogen_sh
deleted file mode 100644
index 6c2cf15a2..000000000
--- a/package/polkit/patches/patch-autogen_sh
+++ /dev/null
@@ -1,63 +0,0 @@
---- polkit-0.112.orig/autogen.sh 2013-09-18 18:55:09.000000000 +0200
-+++ polkit-0.112/autogen.sh 2014-01-09 21:12:29.000000000 +0100
-@@ -34,14 +34,6 @@ touch ChangeLog
- }
- }
-
--(gtkdocize --flavour no-tmpl) < /dev/null > /dev/null 2>&1 || {
-- echo
-- echo "You must have gtk-doc installed to compile $PROJECT."
-- echo "Install the appropriate package for your distribution,"
-- echo "or get the source tarball at http://ftp.gnome.org/pub/GNOME/sources/gtk-doc/"
-- DIE=1
--}
--
- (automake --version) < /dev/null > /dev/null 2>&1 || {
- echo
- echo "**Error**: You must have automake installed."
-@@ -74,13 +66,6 @@ if test "$DIE" -eq 1; then
- exit 1
- fi
-
--if test -z "$*"; then
-- echo "**Warning**: I am going to run configure with no arguments."
-- echo "If you wish to pass any to it, please specify them on the"
-- echo $0 " command line."
-- echo
--fi
--
- case $CC in
- xlc )
- am_opt=--include-deps;;
-@@ -88,13 +73,10 @@ esac
-
- aclocalinclude="$ACLOCAL_FLAGS"
-
-- echo "Running autoreconf on test/mocklibc ..."
-- (cd "test/mocklibc"; autoreconf --install)
--
- if grep "^AM_PROG_LIBTOOL" configure.ac >/dev/null; then
- if test -z "$NO_LIBTOOLIZE" ; then
- echo "Running libtoolize..."
-- libtoolize --force --copy
-+ libtoolize -q --force --copy
- fi
- fi
- echo "Running aclocal $aclocalinclude ..."
-@@ -108,16 +90,4 @@ esac
- echo "Running autoconf ..."
- autoconf
-
--intltoolize --copy --force --automake || exit 1
--
- cd "$olddir"
--
--conf_flags="--enable-maintainer-mode --enable-gtk-doc"
--
--if test x$NOCONFIGURE = x; then
-- echo "Running $srcdir/configure $conf_flags $@ ..."
-- $srcdir/configure $conf_flags "$@" \
-- && echo "Now type make to compile." || exit 1
--else
-- echo "Skipping configure process."
--fi
diff --git a/package/polkit/patches/patch-configure_ac b/package/polkit/patches/patch-configure_ac
deleted file mode 100644
index 65681615d..000000000
--- a/package/polkit/patches/patch-configure_ac
+++ /dev/null
@@ -1,63 +0,0 @@
---- polkit-0.112.orig/configure.ac 2013-09-18 18:55:09.000000000 +0200
-+++ polkit-0.112/configure.ac 2014-01-11 11:22:30.000000000 +0100
-@@ -8,9 +8,6 @@ AM_MAINTAINER_MODE
-
- m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
-
--# Include external mocklibc tool for unit testing
--AC_CONFIG_SUBDIRS([test/mocklibc])
--
- # libtool versioning - this applies to all libraries in this package
- #
- # See http://sources.redhat.com/autobook/autobook/autobook_91.html#SEC91 for details
-@@ -46,8 +43,6 @@ AC_PATH_PROG([XSLTPROC], [xsltproc])
- fi
- AM_CONDITIONAL(MAN_PAGES_ENABLED, test x$enable_man_pages = xyes)
-
--GTK_DOC_CHECK([1.3])
--
- #### gcc warning flags
-
- if test "x$GCC" = "xyes"; then
-@@ -158,7 +153,7 @@ AC_CHECK_LIB(expat,XML_ParserCreate,[EXP
- [AC_MSG_ERROR([Can't find expat library. Please install expat.])])
- AC_SUBST(EXPAT_LIBS)
-
--AC_CHECK_FUNCS(clearenv)
-+AC_CHECK_FUNCS(clearenv getnetgrent innetgr)
-
- if test "x$GCC" = "xyes"; then
- LDFLAGS="-Wl,--as-needed $LDFLAGS"
-@@ -476,8 +471,6 @@ case "$host_os" in
- ;;
- esac
-
--GOBJECT_INTROSPECTION_CHECK([0.6.2])
--
- AC_ARG_ENABLE([examples],
- AS_HELP_STRING([--enable-examples], [Build the example programs]),,
- [enable_examples=yes])
-@@ -488,7 +481,6 @@ AM_CONDITIONAL(BUILD_EXAMPLES, test "x$e
- # Internationalization
- # ********************
-
--IT_PROG_INTLTOOL([0.40.0])
- GETTEXT_PACKAGE=polkit-1
- AC_SUBST([GETTEXT_PACKAGE])
- AM_GLIB_GNU_GETTEXT
-@@ -512,15 +504,6 @@ src/polkitbackend/Makefile
- src/polkitagent/Makefile
- src/programs/Makefile
- src/examples/Makefile
--docs/version.xml
--docs/extensiondir.xml
--docs/Makefile
--docs/polkit/Makefile
--docs/man/Makefile
--po/Makefile.in
--test/Makefile
--test/polkit/Makefile
--test/polkitbackend/Makefile
- ])
-
- dnl ==========================================================================
diff --git a/package/polkit/patches/patch-src_polkit_Makefile_am b/package/polkit/patches/patch-src_polkit_Makefile_am
deleted file mode 100644
index 4aa7ad8a7..000000000
--- a/package/polkit/patches/patch-src_polkit_Makefile_am
+++ /dev/null
@@ -1,35 +0,0 @@
---- polkit-0.112.orig/src/polkit/Makefile.am 2013-09-18 18:55:09.000000000 +0200
-+++ polkit-0.112/src/polkit/Makefile.am 2014-01-09 21:13:06.000000000 +0100
-@@ -102,32 +102,6 @@ libpolkit_gobject_1_la_LIBADD =
-
- libpolkit_gobject_1_la_LDFLAGS = -export-symbols-regex '(^polkit_.*)'
-
--if HAVE_INTROSPECTION
--
--INTROSPECTION_GIRS = Polkit-1.0.gir
--
--Polkit-1.0.gir: libpolkit-gobject-1.la
--
--girdir = $(INTROSPECTION_GIRDIR)
--gir_DATA = Polkit-1.0.gir
--
--typelibsdir = $(INTROSPECTION_TYPELIBDIR)
--typelibs_DATA = Polkit-1.0.typelib
--
--Polkit_1_0_gir_INCLUDES = Gio-2.0
--Polkit_1_0_gir_SCANNERFLAGS = --c-include='polkit/polkit.h'
--Polkit_1_0_gir_CFLAGS = \
-- $(libpolkit_gobject_1_la_CFLAGS) \
-- -D_POLKIT_COMPILATION \
-- -I.. -I$(top_srcdir)/src
--Polkit_1_0_gir_LIBS = libpolkit-gobject-1.la
--Polkit_1_0_gir_FILES = $(libpolkit_gobject_1_la_SOURCES)
--Polkit_1_0_gir_EXPORT_PACKAGES = polkit-gobject-1
--
--include $(INTROSPECTION_MAKEFILE)
--
--endif # HAVE_INTROSPECTION
--
- EXTRA_DIST = polkitenumtypes.h.template polkitenumtypes.c.template
- CLEANFILES = $(gir_DATA) $(typelibs_DATA)
-
diff --git a/package/polkit/patches/patch-src_polkitagent_Makefile_am b/package/polkit/patches/patch-src_polkitagent_Makefile_am
deleted file mode 100644
index 7a5aaeea1..000000000
--- a/package/polkit/patches/patch-src_polkitagent_Makefile_am
+++ /dev/null
@@ -1,37 +0,0 @@
---- polkit-0.112.orig/src/polkitagent/Makefile.am 2013-09-18 18:55:09.000000000 +0200
-+++ polkit-0.112/src/polkitagent/Makefile.am 2014-01-09 21:13:36.000000000 +0100
-@@ -109,34 +109,6 @@ polkit_agent_helper_1_LDFLAGS = \
- $(AM_LDFLAGS) \
- $(NULL)
-
--if HAVE_INTROSPECTION
--
--girdir = $(INTROSPECTION_GIRDIR)
--gir_DATA = PolkitAgent-1.0.gir
--
--PolkitAgent-1.0.gir: libpolkit-agent-1.la
--
--typelibsdir = $(INTROSPECTION_TYPELIBDIR)
--typelibs_DATA = PolkitAgent-1.0.typelib
--
--INTROSPECTION_COMPILER_ARGS = --includedir=../../src/polkit
--INTROSPECTION_GIRS = PolkitAgent-1.0.gir
--PolkitAgent_1_0_gir_INCLUDES = Gio-2.0
--PolkitAgent_1_0_gir_SCANNERFLAGS = \
-- --include-uninstalled=../../src/polkit/Polkit-1.0.gir \
-- --c-include='polkitagent/polkitagent.h'
--PolkitAgent_1_0_gir_CFLAGS = \
-- $(libpolkit_agent_1_la_CFLAGS) \
-- -D_POLKIT_COMPILATION \
-- -D_POLKIT_AGENT_COMPILATION \
-- -I.. -I$(top_srcdir)/src
--PolkitAgent_1_0_gir_LIBS = libpolkit-agent-1.la
--PolkitAgent_1_0_gir_FILES = $(libpolkit_agent_1_la_SOURCES)
--PolkitAgent_1_0_gir_EXPORT_PACKAGES = polkit-agent-1
--
--include $(INTROSPECTION_MAKEFILE)
--
--endif # HAVE_INTROSPECTION
-
- # polkit-agent-helper-1 need to be setuid root because it's used to
- # authenticate not only the invoking user, but possibly also root
diff --git a/package/polkit/patches/patch-src_polkitbackend_polkitbackendinteractiveauthority_c b/package/polkit/patches/patch-src_polkitbackend_polkitbackendinteractiveauthority_c
deleted file mode 100644
index 64608f5b5..000000000
--- a/package/polkit/patches/patch-src_polkitbackend_polkitbackendinteractiveauthority_c
+++ /dev/null
@@ -1,31 +0,0 @@
---- polkit-0.112.orig/src/polkitbackend/polkitbackendinteractiveauthority.c 2013-09-18 18:55:09.000000000 +0200
-+++ polkit-0.112/src/polkitbackend/polkitbackendinteractiveauthority.c 2014-01-11 11:22:30.000000000 +0100
-@@ -2103,6 +2103,7 @@ get_users_in_group (PolkitIdentity
- return ret;
- }
-
-+#if defined(HAVE_GETNETGRENT)
- static GList *
- get_users_in_net_group (PolkitIdentity *group,
- gboolean include_root)
-@@ -2154,6 +2155,7 @@ get_users_in_net_group (PolkitIdentity
- endnetgrent ();
- return ret;
- }
-+#endif
-
- /* ---------------------------------------------------------------------------------------------------- */
-
-@@ -2243,10 +2245,12 @@ authentication_agent_initiate_challenge
- {
- user_identities = g_list_concat (user_identities, get_users_in_group (identity, FALSE));
- }
-+#if defined(HAVE_GETNETGRENT)
- else if (POLKIT_IS_UNIX_NETGROUP (identity))
- {
- user_identities = g_list_concat (user_identities, get_users_in_net_group (identity, FALSE));
- }
-+#endif
- else
- {
- g_warning ("Unsupported identity");
diff --git a/package/polkit/patches/patch-src_polkitbackend_polkitbackendjsauthority_c b/package/polkit/patches/patch-src_polkitbackend_polkitbackendjsauthority_c
deleted file mode 100644
index 14a702dda..000000000
--- a/package/polkit/patches/patch-src_polkitbackend_polkitbackendjsauthority_c
+++ /dev/null
@@ -1,38 +0,0 @@
---- polkit-0.112.orig/src/polkitbackend/polkitbackendjsauthority.c 2013-09-18 18:55:09.000000000 +0200
-+++ polkit-0.112/src/polkitbackend/polkitbackendjsauthority.c 2014-01-11 11:27:02.000000000 +0100
-@@ -29,6 +29,7 @@
- #include <glib/gstdio.h>
- #include <locale.h>
- #include <glib/gi18n-lib.h>
-+#include <sys/wait.h>
-
- #include <polkit/polkit.h>
- #include "polkitbackendjsauthority.h"
-@@ -1450,13 +1451,16 @@ js_polkit_user_is_in_netgroup (JSContext
- JSBool ret = JS_FALSE;
- JSString *user_str;
- JSString *netgroup_str;
-- char *user;
-- char *netgroup;
- JSBool is_in_netgroup = JS_FALSE;
-
- if (!JS_ConvertArguments (cx, argc, JS_ARGV (cx, vp), "SS", &user_str, &netgroup_str))
- goto out;
-
-+#if defined(HAVE_INNETGR)
-+ {
-+ char *user;
-+ char *netgroup;
-+
- user = JS_EncodeString (cx, user_str);
- netgroup = JS_EncodeString (cx, netgroup_str);
-
-@@ -1470,6 +1474,8 @@ js_polkit_user_is_in_netgroup (JSContext
-
- JS_free (cx, netgroup);
- JS_free (cx, user);
-+ }
-+#endif
-
- ret = JS_TRUE;
-