On Mon, 20 Oct 2025, at 13:33, Gleb Popov wrote:
> 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.

Thanks! If I run into this again perhaps doing a generalised fix to 
Mk/Uses/go.mk like you suggest is a good option.

A+
Dave

Reply via email to