sysutils/containers-common: applying patches to fetched go modules
"Dave Cottlehuber" <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.ports |
|---|---|
| Message-ID | <[email protected]> |
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.
I worked around it using sed (see below) but it's not ideal.
Are there any better approaches?
# https://git.sr.ht/~dch/ports/commit/dc78093
diff --git a/sysutils/containers-common/Makefile b/sysutils/containers-common/Makefile
index 2575753505f76d78c80f48651f49bfa71e4e167e..2e08837cd389df27704da7af2e172dac3f9ec56b 100644
--- a/sysutils/containers-common/Makefile
+++ b/sysutils/containers-common/Makefile
@@ -29,6 +29,10 @@ IMAGEVERSION= 5.36.2
SKOPEOVERSION= 1.20.0
STORAGEVERSION= 1.59.1
+post-patch:
+ ${SED} -I '' /golangci/d ${WRKSRC_storage}/tests/tools/Makefile
+ ${SED} -I '' -Ee s/go-md2man../go-md2man/ ${WRKSRC_storage}/tests/tools/Makefile
+
do-build:
${GMAKE} -C ${WRKSRC_common}/docs
${GMAKE} -C ${WRKSRC_storage} install.tools