mtree violation
macports at parvis.nl
macports at parvis.nl
Wed Mar 7 03:23:42 UTC 2018
> On 2018-03-06, at 16:07, Ken Cunningham <ken.cunningham.webuse at gmail.com> wrote:
>
>
> 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
this worked fine:
post-patch {
reinplace "s|@@PREFIX@@|${prefix}|" ${worksrcpath}/Makefile
}
thanks!
pdv.
More information about the macports-users
mailing list