[Xfce-bugs] [Bug 10793] New: xfce4-session systemd support: polkit_unix_process_new is deprecated

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Thu Apr 3 17:26:09 CEST 2014


https://bugzilla.xfce.org/show_bug.cgi?id=10793

            Bug ID: 10793
           Summary: xfce4-session systemd support: polkit_unix_process_new
                    is deprecated
    Classification: Xfce
           Product: Xfce4-session
           Version: Unspecified
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Medium
         Component: General
          Assignee: xfce-bugs at xfce.org
          Reporter: baurthefirst at gmail.com
        QA Contact: bjt23 at cornell.edu
                CC: benny at xfce.org, nick at xfce.org

Created attachment 5413
  --> https://bugzilla.xfce.org/attachment.cgi?id=5413&action=edit
Update deprecated polkit_unix_process_new function

Hello,

While building latest dev release of xfce4-session on Fedora 20
I have noticed the next warning

xfsm-systemd.c:79:3: warning: 'polkit_unix_process_new' is deprecated
(declared at /usr/include/polkit-1/polkit/polkitunixprocess.h:51): Use
polkit_unix_process_new_for_owner instead [-Wdeprecated-declarations]
   systemd->subject = polkit_unix_process_new (getpid());

I am attaching a simple patch for it

Also answer from Eric Koegel from xfce4-dev ml below

polkit_unix_process_new_for_owner looks like it was introduced in
0.102 which was released in 2011-08-01 so we will probably need
to change:
-XDT_CHECK_OPTIONAL_PACKAGE([SYSTEMD], [polkit-gobject-1], [0.100],
+XDT_CHECK_OPTIONAL_PACKAGE([SYSTEMD], [polkit-gobject-1], [0.102],
in configure.ac.in as well.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Xfce-bugs mailing list