Bug 207373 - sysutils/pbi-manager: fix filesystem violation
Summary: sysutils/pbi-manager: fix filesystem violation
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Kris Moore
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-20 15:08 UTC by Dmitry Marakasov
Modified: 2016-02-24 17:18 UTC (History)
0 users

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


Attachments
Patch (1.15 KB, patch)
2016-02-20 15:08 UTC, Dmitry Marakasov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.