workflow question: how do you maintain the port in sync with upstream?

blubee blubeeme gurenchan at gmail.com
Tue Aug 14 16:09:13 UTC 2018


On Tue, Aug 14, 2018 at 11:33 PM Mathieu Arnold <mat at freebsd.org> wrote:

> On Tue, Aug 14, 2018 at 10:41:43PM +0800, blubee blubeeme wrote:
> > This one is fairly straight forward, you can simply replace that string
> > with a regex command;
> > This is an example of running a replace command for strings after the
> patch
> > phase of the build;
> >
> > post-patch:
> >       @${REINPLACE_CMD} -e 's|for Linux|for FreeBSD|g' ${WRKSRC}/README
>
> Patching files in post-patch using sed SHOULD only be used to replace
> dynamic content, never static content.
>
This is missing the point of the email since you can call that command in
any stage of the port build process.

Maybe we could append this info to the porters handbook.

>
> --
> Mathieu Arnold
>


More information about the freebsd-ports mailing list