Re: git: 40ccce5d1a85 - main - comms/mbelib: Fix building with CMake 4

From: Gleb Popov <arrowd_at_freebsd.org>
Date: Mon, 28 Sep 2026 17:49:22 UTC
On Mon, Sep 28, 2026 at 8:17 PM Mathieu Arnold <mat@freebsd.org> wrote:
>
> On Mon, Sep 28, 2026 at 06:43:13AM +0000, Gleb Popov wrote:
> > The branch main has been updated by arrowd:
> >
> > URL: https://cgit.FreeBSD.org/ports/commit/?id=40ccce5d1a8540eef2e6a25f0f844fd23db0e755
> >
> > commit 40ccce5d1a8540eef2e6a25f0f844fd23db0e755
> > Author:     takefu <takefu@airport.fm>
> > AuthorDate: 2026-09-28 06:31:38 +0000
> > Commit:     Gleb Popov <arrowd@FreeBSD.org>
> > CommitDate: 2026-09-28 06:31:38 +0000
> >
> >     comms/mbelib: Fix building with CMake 4
> >
> >     PR:             298639
> > ---
> >  comms/mbelib/Makefile | 4 ++++
> >  1 file changed, 4 insertions(+)
> >
> > diff --git a/comms/mbelib/Makefile b/comms/mbelib/Makefile
> > index ce6ca4244291..5174aeef693a 100644
> > --- a/comms/mbelib/Makefile
> > +++ b/comms/mbelib/Makefile
> > @@ -1,6 +1,7 @@
> >  PORTNAME=    mbelib
> >  DISTVERSIONPREFIX=   v
> >  DISTVERSION= 1.3.0
> > +PORTREVISION=        1
> >  CATEGORIES=  comms hamradio
> >
> >  MAINTAINER=  takefu@airport.fm
> > @@ -25,4 +26,7 @@ CMAKE_ON=   DISABLE_TEST
> >  PLIST_FILES= include/mbelib.h lib/libmbe.a lib/libmbe.so.1.0 \
> >               lib/libmbe.so.1 lib/libmbe.so
> >
> > +do-patch:
> > +     ${REINPLACE_CMD} 's|VERSION 2.6|VERSION 3.10|' ${WRKSRC}/CMakeLists.txt
> > +
>
> do-patch should never be overwritten, if you want to run sed to patch
> files, do so in post-patch.

Yep, that's my oversight, sorry.

> Also, running sed to patch files is only allowed when you replace the
> content with something "variable" like ${PREFIX}.

This is the first time I hear this. Is this codified in PH?