Bug 203598

Summary: sysutils/pcbsd-utils-qt5: fix install from non-root, fix shebangs
Product: Ports & Packages Reporter: Dmitry Marakasov <amdmi3>
Component: Individual Port(s)Assignee: Kris Moore <kmoore>
Status: Closed FIXED    
Severity: Affects Many People Flags: bugzilla: maintainer-feedback? (kmoore)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Patch none

Description Dmitry Marakasov freebsd_committer freebsd_triage 2015-10-07 02:06:16 UTC
Created attachment 161780 [details]
Patch

- Fix install from non-root. Ports are only allowed to set file owner/group via pkg-plist

Note that there's another chown attempt, however it seems to be non-fatal, though noisy:

...
Installing extra files to /wrkdirs/usr/ports/sysutils/pcbsd-utils-qt5/work/stage/usr/local
chown: /wrkdirs/usr/ports/sysutils/pcbsd-utils-qt5/work/stage/usr/local/.: Operation not permitted
chown: /wrkdirs/usr/ports/sysutils/pcbsd-utils-qt5/work/stage/usr/local/./bin: Operation not permitted
chown: /wrkdirs/usr/ports/sysutils/pcbsd-utils-qt5/work/stage/usr/local/./bin/openwith: Operation not permitted
chown: /wrkdirs/usr/ports/sysutils/pcbsd-utils-qt5/work/stage/usr/local/./bin/flashpluginctl: Operation not permitted
chown: /wrkdirs/usr/ports/sysutils/pcbsd-utils-qt5/work/stage/usr/local/./bin/xlock: Operation not permitted
chown: /wrkdirs/usr/ports/sysutils/pcbsd-utils-qt5/work/stage/usr/local/./bin/pcbsd-update-i18n: Operation not permitted
chown: /wrkdirs/usr/ports/sysutils/pcbsd-utils-qt5/work/stage/usr/local/./bin/xorg-startupcheck: Operation not permitted
...

Full log: https://people.freebsd.org/~amdmi3/pcbsd-utils-qt5.log

- Fix shebangs
Comment 1 commit-hook freebsd_committer freebsd_triage 2015-10-07 17:12:04 UTC
A commit references this bug:

Author: kmoore
Date: Wed Oct  7 17:11:58 UTC 2015
New revision: 398773
URL: https://svnweb.freebsd.org/changeset/ports/398773

Log:
  - Update PC-BSD related ports to their respective 10.2 versions
  - Includes fixes to install pcbsd-utils-qt4 from non-root and
    shebang corrections

  PR: 203598

Changes:
  head/sysutils/life-preserver/Makefile
  head/sysutils/life-preserver/distinfo
  head/sysutils/pcbsd-appweb/Makefile
  head/sysutils/pcbsd-appweb/distinfo
  head/sysutils/pcbsd-appweb/pkg-plist
  head/sysutils/pcbsd-syscache/Makefile
  head/sysutils/pcbsd-syscache/distinfo
  head/sysutils/pcbsd-utils/Makefile
  head/sysutils/pcbsd-utils/distinfo
  head/sysutils/pcbsd-utils-qt5/Makefile
  head/sysutils/pcbsd-utils-qt5/distinfo
  head/sysutils/pcbsd-utils-qt5/pkg-plist
Comment 2 Kris Moore freebsd_committer freebsd_triage 2015-10-07 17:12:45 UTC
Thanks! Gave me an excuse to update all the ports while here. I've included your fix, and got rid of all the chown noise.
Comment 3 Dmitry Marakasov freebsd_committer freebsd_triage 2015-10-07 17:40:30 UTC
Thank you!