Hello community,

here is the log from the commit of package polkit for openSUSE:Factory checked 
in at 2013-01-17 09:57:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/polkit (Old)
 and      /work/SRC/openSUSE:Factory/.polkit.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "polkit", Maintainer is ""

Changes:
--------
--- /work/SRC/openSUSE:Factory/polkit/polkit.changes    2013-01-10 
13:51:41.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.polkit.new/polkit.changes       2013-01-17 
09:57:12.000000000 +0100
@@ -1,0 +2,14 @@
+Mon Jan 14 15:51:20 UTC 2013 - hrvoje.sen...@gmail.com
+
+- Update to 0.110
+  + Set XAUTHORITY environment variable if is unset
+  + Use mutex and condition variables properly
+  + Build fixes.
+- Changes from version 0.109:
+  + Include gmodule-2.0 to avoid linker errors
+  + Don't require libmozjs185 devel packages for polkit rules
+    to work
+- Drop polkit-link-gmodule.patch and polkit-libmozjs.patch, those
+  are merged upstream
+
+-------------------------------------------------------------------

Old:
----
  polkit-0.108.tar.gz
  polkit-libmozjs.patch
  polkit-link-gmodule.patch

New:
----
  polkit-0.110.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ polkit.spec ++++++
--- /var/tmp/diff_new_pack.OmjM6i/_old  2013-01-17 09:57:13.000000000 +0100
+++ /var/tmp/diff_new_pack.OmjM6i/_new  2013-01-17 09:57:13.000000000 +0100
@@ -25,7 +25,7 @@
 Summary:        PolicyKit Authorization Framework
 License:        LGPL-2.1+
 Group:          System/Libraries
-Version:        0.108
+Version:        0.110
 Release:        0
 Url:            http://www.freedesktop.org/wiki/Software/PolicyKit
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
@@ -37,10 +37,6 @@
 Patch1:         polkit-suid_flags.patch
 # PATCH-FIX-UPSTREAM polkit-no-systemd.patch bnc#782395 fdo#55377 
vu...@opensuse.org -- Do not reference non-existing polkit.service file for 
systemd (only applied if not built with systemd support)
 Patch2:         polkit-no-systemd.patch
-# PATCH-FIX-UPSTREAM polkit-link-gmodule.patch dims...@opensuse.org -- Link 
against gmodule-2.0. Patch taken from upstream git.
-Patch3:         polkit-link-gmodule.patch
-# PATCH-FIX-UPSTREAM polkit-libmozjs.patch bnc#793562 fdo#57146 
dims...@opensuse.org -- dlopen libmozjs185.so.1.0 instead of libmozjs185.so, 
taken from upstream git.
-Patch4:         polkit-libmozjs.patch
 # needed for patch1
 BuildRequires:  autoconf
 # needed for patch1
@@ -130,12 +126,10 @@
 %if !(0%{?with_systemd})
 %patch2 -p1
 %endif
-%patch3 -p1
-%patch4 -p1
 
 %build
 export V=1
-# needed for patch1 and patch3
+# needed for patch1
 autoreconf -fi
 export SUID_CFLAGS="-fPIE"
 export SUID_LDFLAGS="-z now -pie"

++++++ polkit-0.108.tar.gz -> polkit-0.110.tar.gz ++++++
++++ 1641 lines of diff (skipped)
++++    retrying with extended exclude list
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/polkit-0.108/NEWS new/polkit-0.110/NEWS
--- old/polkit-0.108/NEWS       2012-11-14 19:27:19.000000000 +0100
+++ new/polkit-0.110/NEWS       2013-01-09 21:02:57.000000000 +0100
@@ -1,4 +1,73 @@
 --------------
+polkit 0.110
+--------------
+
+WARNING WARNING WARNING: This is a prerelease on the road to polkit
+1.0. Public API might change and certain parts of the code still needs
+some security review. Use at your own risk.
+
+This is polkit 0.110.
+
+Build requirements
+
+ glib, gobject, gio    >= 2.30
+ mozjs185
+ gobject-introspection >= 0.6.2 (optional)
+ pam (optional)
+ ConsoleKit OR systemd
+
+Changes since polkit 0.109:
+
+David Zeuthen (5):
+      Post-release version bump to 0.110
+      Set XAUTHORITY environment variable if is unset
+      Use mutex and condition variables properly
+      Remove AM_PROG_CC_STDC
+      Update NEWS for release
+
+Emilio Pozuelo Monfort (1):
+      Fix build on GNU Hurd
+
+Michael Biebl (1):
+      build: Remove generated introspection files on "make clean"
+
+Thanks to our contributors.
+
+David Zeuthen,
+Jan 9, 2013
+
+--------------
+polkit 0.109
+--------------
+
+WARNING WARNING WARNING: This is a prerelease on the road to polkit
+1.0. Public API might change and certain parts of the code still needs
+some security review. Use at your own risk.
+
+This is polkit 0.109.
+
+Build requirements
+
+ glib, gobject, gio    >= 2.30
+ mozjs185
+ gobject-introspection >= 0.6.2 (optional)
+ pam (optional)
+ ConsoleKit OR systemd
+
+Changes since polkit 0.108:
+
+David Zeuthen (4):
+      Post-release version bump to 0.109
+      Include gmodule-2.0 to avoid linker errors
+      Don't require libmozjs185 devel packages for polkit rules to work
+      Update NEWS for release
+
+Thanks to our contributors.
+
+David Zeuthen,
+December 19, 2012
+
+--------------
 polkit 0.108
 --------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/polkit-0.108/configure.ac new/polkit-0.110/configure.ac
--- old/polkit-0.108/configure.ac       2012-07-11 19:34:04.000000000 +0200
+++ new/polkit-0.110/configure.ac       2013-01-09 21:00:38.000000000 +0100
@@ -1,8 +1,8 @@
 dnl Process this file with autoconf to produce a configure script.
 
 AC_PREREQ(2.59c)
-AC_INIT(polkit, 0.108, 
http://lists.freedesktop.org/mailman/listinfo/polkit-devel)
-AM_INIT_AUTOMAKE(polkit, 0.108)
+AC_INIT(polkit, 0.110 
http://lists.freedesktop.org/mailman/listinfo/polkit-devel)
+AM_INIT_AUTOMAKE(polkit, 0.110)
 AM_CONFIG_HEADER(config.h)
 AM_MAINTAINER_MODE
 
@@ -24,7 +24,6 @@
 
 AC_ISC_POSIX
 AC_PROG_CC
-AM_PROG_CC_STDC
 AC_HEADER_STDC
 AM_PROG_LIBTOOL
 AC_PROG_MAKE_SET
@@ -122,7 +121,7 @@
   changequote([,])dnl
 fi
 
-PKG_CHECK_MODULES(GLIB, [gio-2.0 >= 2.30.0])
+PKG_CHECK_MODULES(GLIB, [gmodule-2.0 gio-2.0 >= 2.30.0])
 AC_SUBST(GLIB_CFLAGS)
 AC_SUBST(GLIB_LIBS)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/polkit-0.108/docs/polkit/html/index.html 
new/polkit-0.110/docs/polkit/html/index.html
--- old/polkit-0.108/docs/polkit/html/index.html        2012-11-14 
19:31:00.000000000 +0100
+++ new/polkit-0.110/docs/polkit/html/index.html        2013-01-09 
21:04:48.000000000 +0100
@@ -15,7 +15,7 @@
 <div>
 <div><table class="navigation" id="top" width="100%" cellpadding="2" 
cellspacing="0"><tr><th valign="middle"><p class="title">polkit Reference 
Manual</p></th></tr></table></div>
 <div><p class="releaseinfo">
-      For version 0.108
+      For version 0.110
  — the latest version of this
       documentation can be found at <a class="ulink" 
href="http://www.freedesktop.org/software/polkit/docs/latest/"; 
target="_top">http://www.freedesktop.org/software/polkit/docs/latest/</a>.
     </p></div>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/polkit-0.108/docs/polkit/html/polkit-1.devhelp2 
new/polkit-0.110/docs/polkit/html/polkit-1.devhelp2
--- old/polkit-0.108/docs/polkit/html/polkit-1.devhelp2 2012-11-14 
19:31:00.000000000 +0100
+++ new/polkit-0.110/docs/polkit/html/polkit-1.devhelp2 2013-01-09 
21:04:48.000000000 +0100
@@ -240,7 +240,7 @@
     <keyword type="signal" name="The &quot;request&quot; signal" 
link="PolkitAgentSession.html#PolkitAgentSession-request"/>
     <keyword type="signal" name="The &quot;show-error&quot; signal" 
link="PolkitAgentSession.html#PolkitAgentSession-show-error"/>
     <keyword type="signal" name="The &quot;show-info&quot; signal" 
link="PolkitAgentSession.html#PolkitAgentSession-show-info"/>
-    <keyword type="" name="Known annotations" 
link="polkit.8.html#idp13652608"/>
+    <keyword type="" name="Known annotations" 
link="polkit.8.html#idp13181504"/>
     <keyword type="" name="The Polkit type" 
link="polkit.8.html#polkit-rules-polkit"/>
     <keyword type="" name="The Action type" 
link="polkit.8.html#polkit-rules-actions"/>
     <keyword type="" name="The Subject type" 
link="polkit.8.html#polkit-rules-subject"/>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/polkit-0.108/docs/polkit/html/polkit.8.html 
new/polkit-0.110/docs/polkit/html/polkit.8.html
--- old/polkit-0.108/docs/polkit/html/polkit.8.html     2012-11-14 
19:31:00.000000000 +0100
+++ new/polkit-0.110/docs/polkit/html/polkit.8.html     2013-01-09 
21:04:48.000000000 +0100
@@ -350,7 +350,7 @@
       command.
     </p>
 <div class="refsect2">
-<a name="idp13652608"></a><h3>Known annotations</h3>
+<a name="idp13181504"></a><h3>Known annotations</h3>
 <p>
         The <code class="literal">org.freedesktop.policykit.exec.path</code>
         annotation is used by the <span 
class="command"><strong>pkexec</strong></span> program
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/polkit-0.108/docs/version.xml new/polkit-0.110/docs/version.xml
--- old/polkit-0.108/docs/version.xml   2012-11-14 19:27:55.000000000 +0100
+++ new/polkit-0.110/docs/version.xml   2013-01-09 21:01:30.000000000 +0100
@@ -1 +1 @@
-0.108
+0.110
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/polkit-0.108/src/polkitagent/Makefile.am 
new/polkit-0.110/src/polkitagent/Makefile.am
--- old/polkit-0.108/src/polkitagent/Makefile.am        2012-11-13 
18:00:24.000000000 +0100
+++ new/polkit-0.110/src/polkitagent/Makefile.am        2013-01-09 
19:55:57.000000000 +0100
@@ -141,6 +141,7 @@
        -chmod 4755 $(DESTDIR)$(libprivdir)/polkit-agent-helper-1
 
 EXTRA_DIST = polkitagentmarshal.list polkitagentenumtypes.h.template 
polkitagentenumtypes.c.template
+CLEANFILES = $(gir_DATA) $(typelibs_DATA)
 
 dist-hook :
        (for i in $(marshal_built_sources) $(BUILT_SOURCES) ; do rm -f 
$(distdir)/$$i ; done)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/polkit-0.108/src/polkitbackend/polkitbackendjsauthority.c 
new/polkit-0.110/src/polkitbackend/polkitbackendjsauthority.c
--- old/polkit-0.108/src/polkitbackend/polkitbackendjsauthority.c       
2012-11-14 18:09:58.000000000 +0100
+++ new/polkit-0.110/src/polkitbackend/polkitbackendjsauthority.c       
2013-01-09 20:33:52.000000000 +0100
@@ -238,7 +238,7 @@
   guint n;
   const gchar *library_name;
 
-  library_name = "libmozjs185.so";
+  library_name = "libmozjs185.so.1.0";
   module = g_module_open (library_name, 0);
   if (module == NULL)
     goto out;
@@ -622,9 +622,10 @@
                                                          authority);
 
   /* wait for runaway_killer_thread to set up its GMainContext */
-  g_cond_wait (&authority->priv->rkt_init_cond, 
&authority->priv->rkt_init_mutex);
+  g_mutex_lock (&authority->priv->rkt_init_mutex);
+  while (authority->priv->rkt_context == NULL)
+    g_cond_wait (&authority->priv->rkt_init_cond, 
&authority->priv->rkt_init_mutex);
   g_mutex_unlock (&authority->priv->rkt_init_mutex);
-  g_assert (authority->priv->rkt_context != NULL);
 
   setup_file_monitors (authority);
   load_scripts (authority);
@@ -1011,13 +1012,13 @@
 {
   PolkitBackendJsAuthority *authority = POLKIT_BACKEND_JS_AUTHORITY 
(user_data);
 
+  g_mutex_lock (&authority->priv->rkt_init_mutex);
+
   authority->priv->rkt_context = g_main_context_new ();
   authority->priv->rkt_loop = g_main_loop_new (authority->priv->rkt_context, 
FALSE);
-
   g_main_context_push_thread_default (authority->priv->rkt_context);
 
   /* Signal the main thread that we're done constructing */
-  g_mutex_lock (&authority->priv->rkt_init_mutex);
   g_cond_signal (&authority->priv->rkt_init_cond);
   g_mutex_unlock (&authority->priv->rkt_init_mutex);
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/polkit-0.108/src/programs/pkexec.c new/polkit-0.110/src/programs/pkexec.c
--- old/polkit-0.108/src/programs/pkexec.c      2012-07-11 18:39:55.000000000 
+0200
+++ new/polkit-0.110/src/programs/pkexec.c      2013-01-09 20:06:50.000000000 
+0100
@@ -53,7 +53,7 @@
 #include <polkitagent/polkitagent.h>
 
 static gchar *original_user_name = NULL;
-static gchar original_cwd[PATH_MAX];
+static gchar *original_cwd;
 static gchar *command_line = NULL;
 static struct passwd *pw;
 
@@ -476,7 +476,7 @@
       goto out;
     }
 
-  if (getcwd (original_cwd, sizeof (original_cwd)) == NULL)
+  if ((original_cwd = g_get_current_dir ()) == NULL)
     {
       g_printerr ("Error getting cwd: %s\n",
                   g_strerror (errno));
@@ -608,6 +608,28 @@
       g_ptr_array_add (saved_env, g_strdup (value));
     }
 
+  /* $XAUTHORITY is "special" - if unset, we need to set it to ~/.Xauthority. 
Yes,
+   * this is broken but it's unfortunately how things work (see fdo #51623 for
+   * details)
+   */
+  if (g_getenv ("XAUTHORITY") == NULL)
+    {
+      const gchar *home;
+
+      /* pre-2.36 GLib does not examine $HOME (it always looks in /etc/passwd) 
and
+       * this is not what we want
+       */
+      home = g_getenv ("HOME");
+      if (home == NULL)
+        home = g_get_home_dir ();
+
+      if (home != NULL)
+        {
+          g_ptr_array_add (saved_env, g_strdup ("XAUTHORITY"));
+          g_ptr_array_add (saved_env, g_build_filename (home, ".Xauthority", 
NULL));
+        }
+    }
+
   /* Nuke the environment to get a well-known and sanitized environment to 
avoid attacks
    * via e.g. the DBUS_SYSTEM_BUS_ADDRESS environment variable and similar.
    */
@@ -948,6 +970,7 @@
       g_ptr_array_free (saved_env, TRUE);
     }
 
+  g_free (original_cwd);
   g_free (path);
   g_free (command_line);
   g_free (opt_user);

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to