Bug 201362 - [UPDATE] sysutils/polkit to 0.113
Summary: [UPDATE] sysutils/polkit to 0.113
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-gnome (Nobody)
URL:
Keywords: needs-qa, patch
: 199983 (view as bug list)
Depends on:
Blocks: 199983
  Show dependency treegraph
 
Reported: 2015-07-05 16:23 UTC by Olivier Duchateau
Modified: 2015-08-09 13:31 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (gnome)


Attachments
Patch to update sysutils/polkit (22.60 KB, patch)
2015-07-05 16:23 UTC, Olivier Duchateau
no flags Details | Diff
Patch to update sysutils/polkit (22.34 KB, patch)
2015-07-08 17:36 UTC, Olivier Duchateau
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Duchateau freebsd_committer freebsd_triage 2015-07-05 16:23:59 UTC
Created attachment 158382 [details]
Patch to update sysutils/polkit

- Update to 0.113
- Add LICENSE blob
- Adjust dependencies
- Reorganize options helper
- Update description

Patch fixes also bugs #199983 and #195538.

Note: Patch uses lang/spidermonkey170, but polkit supports also lang/spidermonkey185 (I use this one on other box, I don't know which one is better).

I created new user 'polkitd', but we can use 'polkit' user, except we must replace /nonexistent by /var/empty otherwise daemon denies to launch.

.pkla files must be rewritten, and save in /usr/local/etc/polkit-1/rules.d/.
Comment 1 Olivier Duchateau freebsd_committer freebsd_triage 2015-07-05 16:26:23 UTC
(In reply to Olivier Duchateau from comment #0)

Update fixes only bug #199983.
Comment 2 Olivier Duchateau freebsd_committer freebsd_triage 2015-07-08 17:36:43 UTC
Created attachment 158535 [details]
Patch to update sysutils/polkit

Update patch, after revision r391500.
Comment 3 Koop Mast freebsd_committer freebsd_triage 2015-07-14 13:53:38 UTC
Does this work for !root? last time I did a brief look at polkit it refused to work if not started by root.
Comment 4 Olivier Duchateau freebsd_committer freebsd_triage 2015-07-14 16:20:55 UTC
(In reply to Koop Mast from comment #3)

Yes, everything works fine, I use it on Xfce session.

pkaction -v --action-id org.xfce.thunar
org.xfce.thunar:
  description:       Run Thunar as root
  message:           Authentication is required to run Thunar as root.
  vendor:            Thunar
  vendor_url:        http://xfce.org/
  icon:              system-file-manager
  implicit any:      no
  implicit inactive: auth_admin
  implicit active:   auth_admin
  annotation:        org.freedesktop.policykit.exec.path -> /usr/local/bin/thunar
  annotation:        org.freedesktop.policykit.exec.allow_gui -> true

pkaction --version                                           
pkaction version 0.113

Polkit 0.112 was buggy (even with some patches), but this version is ok.
Comment 5 Koop Mast freebsd_committer freebsd_triage 2015-08-09 13:11:33 UTC
*** Bug 199983 has been marked as a duplicate of this bug. ***
Comment 6 commit-hook freebsd_committer freebsd_triage 2015-08-09 13:29:07 UTC
A commit references this bug:

Author: kwm
Date: Sun Aug  9 13:28:43 UTC 2015
New revision: 393789
URL: https://svnweb.freebsd.org/changeset/ports/393789

Log:
  Update polkit to 0.113. [1]

  - Add LICENSE blob
  - Adjust dependencies
  - Reorganize options helper
  - Update description file

  PR:		201362 [1], 194789
  Submitted by:	olivierd@ [1]
  Tested by:	olivierd@, Tobias Berner <tcberner@gmail.com>, and myself

Changes:
  head/sysutils/polkit/Makefile
  head/sysutils/polkit/distinfo
  head/sysutils/polkit/files/patch-Makefile.in
  head/sysutils/polkit/files/patch-data_Makefile.in
  head/sysutils/polkit/files/patch-docs_man_polkit.xml
  head/sysutils/polkit/files/patch-src_polkitagent_polkitagenthelperprivate.c
  head/sysutils/polkit/files/patch-src_polkitbackend_Makefile.in
  head/sysutils/polkit/files/patch-src_polkitbackend_polkitbackendinteractiveauthority.c
  head/sysutils/polkit/files/patch-src_polkitbackend_polkitbackendlocalauthority.c
  head/sysutils/polkit/files/patch-src_polkitd_gposixsignal.c
  head/sysutils/polkit/pkg-descr
  head/sysutils/polkit/pkg-plist