Bug 207373

Summary: sysutils/pbi-manager: fix filesystem violation
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 2016-02-20 15:08:43 UTC
Created attachment 167221 [details]
Patch

pbi-manager install script runs pbi_add which creates /var/db/pbi during build. This is not allowed and in fact doesn't work if the port is build from non-root. 

====>> Checking for staging violations... done
====>> Error: Filesystem touched during stage (files must install to ${STAGEDIR}):
extra: var/db/pbi

Full log: http://package21.nyi.freebsd.org/data/102amd64-default-qat/408278/logs/errors/pbi-manager-1431457960.log

So disable pbi_add and create directory properly from Makefile and register it in pkg-plist.
Comment 1 commit-hook freebsd_committer freebsd_triage 2016-02-24 17:17:09 UTC
A commit references this bug:

Author: kmoore
Date: Wed Feb 24 17:17:04 UTC 2016
New revision: 409471
URL: https://svnweb.freebsd.org/changeset/ports/409471

Log:
  - Update to 1456333648 (PC-BSD 10.2)
  - Fix a stage violation

  PR: 207373

Changes:
  head/sysutils/pbi-manager/Makefile
  head/sysutils/pbi-manager/distinfo
Comment 2 Kris Moore freebsd_committer freebsd_triage 2016-02-24 17:18:39 UTC
This should be fixed now, let me know if you see any other stage violations.