! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfce4-session systemd support: polkit_unix_process_new is deprecated
Status:
RESOLVED: FIXED
Product:
Xfce4-session
Component:
General

Comments

Description cray 2014-04-03 17:26:09 CEST
Created attachment 5413 
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.
Comment 1 Eric Koegel editbugs 2014-08-29 19:49:09 CEST
Thanks, pushed your patch to master: http://git.xfce.org/xfce/xfce4-session/commit/?id=18f1fc427f10bdd8c65027bd7f839d3a1a630fb8

Bug #10793

Reported by:
cray
Reported on: 2014-04-03
Last modified on: 2014-08-29

People

Assignee:
Xfce Bug Triage
CC List:
5 users

Version

Version:
Unspecified

Attachments

Additional information