On Oct 14, 2017, at 10:15, Kurt Hindenburg wrote:

> Kurt Hindenburg (kurthindenburg) pushed a commit to branch master
> in repository macports-ports.
> 
> 
> https://github.com/macports/macports-ports/commit/75d48de51d565117a1d9c1a8456332f8a21b3f34
> 
> The following commit(s) were added to refs/heads/master by this push:
> 
>      new 75d48de  macports-notifier: update to more recent version
> 
> 75d48de is described below
> 
> 
> commit 75d48de51d565117a1d9c1a8456332f8a21b3f34
> 
> Author: Kurt Hindenburg <[email protected]>
> AuthorDate: Sat Oct 14 11:10:05 2017 -0400
> 
> 
>     macports-notifier: update to more recent version
>     
>     Change to use github repo instead of googlecode.
>     
>     I can not really test all the functions on my system due to my setup.
>     
>     closes https://trac.macports.org/ticket/47573


> +    reinplace -q -W ${worksrcpath} "s|/opt/local|${prefix}|g" \
> +            PNDefines.h \
> +            net.sourceforge.portsnotifier.plist \
> +            PNPortWrapper.m \
> +            PortsHelper.c

I suspect you're using "-q" here because your MacPorts prefix is /opt/local, so 
this reinplace tries to replace /opt/local with /opt/local which does nothing 
and triggers the warning. While using "-q" is one way to avoid that warning, it 
prevents you from benefiting from the warning, should the source files change 
in a future version. The better thing to do is to replace /opt/local with 
@PREFIX@ in the files, save that diff as a patchfile that the port uses, then 
have the port use reinplace (without "-q") to change @PREFIX@ to ${prefix}.

> +    reinplace -q -W ${worksrcpath} 
> "s|/var/log/portsnotifier.log|${prefix}/var/log/portsnotifier.log|g" \
> +            net.sourceforge.portsnotifier.plist \
> +            PortsHelper.c

You should not need to use "-q" here, since you're specifying a search and 
replacement that always differ, and you're giving an explicit list of files 
(it's not like you're trying to reinplace over all *.c files using glob, where 
some files may contain the string and others may not). Either the string to be 
replaced exists in the listed files (in which case you should not see a 
warning), or it does not (in which case you need to update the reinplace or you 
don't need to be reinplacing in that file).


Reply via email to