Re: sysutils/containers-common: applying patches to fetched go modules
Gleb Popov <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.ports |
|---|---|
| Message-ID | <CALH631kAxveVYss-=ECiH81-vxRs3LTpdEAE_C20GpyXyM=i4Q@mail.gmail.com> |
On Mon, Oct 20, 2025 at 4:20 PM Dave Cottlehuber <[email protected]> wrote: > > sysutils/containers-common needs a patch to one of the fetched modules, to > build successfully, thanks bapt@ for helping with that. > > It seems the usual copy & make makepatch tricks don't work because its not > part of the original source tree, but part of the fetches. Judging from the "${WRKSRC_storage}" usage in post-patch, I think the problem is that "make makepatch" only operates under ${WRKSRC}. Same goes for "make patch" - it will apply patches against ${WRKSRC}. For Haskell ports I made Uses/cabal.mk to put Haskell dependencies into ${WRKSRC}/cabal_deps rather than ${WRKDIR}/cabal_deps exactly for this reason. In your case you can stay with post-patch (it looks nice to me) or you can symlink ${WRKSRC_storage} somewhere under ${WRKSRC} to let patch/makepatch machinery kick in.