How to deal with ports-filesystem violation?

Clemens Lang cal at macports.org
Sun Jun 28 15:26:04 PDT 2015


Hi,

----- On 29 Jun, 2015, at 00:11, Marko Käning mk-macports at posteo.net wrote:

> They need to install stuff into OSX’ system locations, specifically into
> 
> - /Library/Application Support
> - /Library/Preferences

Why do they need to do that?


> But, of course, this is what I get when trying that:
> ---
> $  sudo port destroot
> Password:
> Portfile changed since last build; discarding previous state.
> --->  Computing dependencies for kf5-kdoctools
> --->  Fetching distfiles for kf5-kdoctools
> --->  Verifying checksums for kf5-kdoctools
> --->  Extracting kf5-kdoctools
> --->  Configuring kf5-kdoctools
> --->  Building kf5-kdoctools
> --->  Staging kf5-kdoctools into destroot
> Warning: violation by /Library/Application Support
> Warning: kf5-kdoctools violates the layout of the ports-filesystems!
> Warning: Please fix or indicate this misbehavior (if it is intended), it will be
> an error in future releases!
> ---
> 
> As to be expected, MacPorts allows me to install it in there, but isn’t happy
> about it and warns that it will be considered to be an erroneous install in the
> future…

We should turn this from a warning to an error for ports that don't set
  destroot.violate_mtree yes.
In your case, since you seem to have a reason to ignore this warning, add this
line to your Portfile to silence the warning.

-- 
Clemens Lang


More information about the macports-dev mailing list