mtree violation

Ken Cunningham ken.cunningham.webuse at gmail.com
Tue Mar 6 15:07:11 UTC 2018


On 2018-03-06, at 7:01 AM, macports at parvis.nl wrote:

> I'm trying to local install jdupes with my own test fixes, but i cannot destroot/activate due to more violation.

> Warning: violation by /usr


> fragment of original Makefile:
> ------------------------------
> # PREFIX determines where files will be installed. Common examples
> # include "/usr" or "/usr/local".
> PREFIX = /usr


This Makefile hardcodes the install prefix, and expects you to hand edit it prior to installation.

You need to patch it to something like this:


PREFIX=@@PREFIX@@


and then in the portfile, before building, do a reinplace on @@PREFIX@@ to set it to ${prefix}

Ken



More information about the macports-users mailing list