From 72629b6891c832e57808a0bdb686c2433951c546 Mon Sep 17 00:00:00 2001 From: Emmanuel Vadot Date: Tue, 14 Sep 2021 13:29:35 +0200 Subject: ports-mgmt/pkg-devel: Fix packaging from poudriere If there is no pkg(8) installed in the jail/host pkg-static will be used but we don't have pkg-static with SAN so add a link in the WRKSRC. Also poudriere just extract pkg-static from the pkg archive so cp instead of symlink --- ports-mgmt/pkg-devel/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ports-mgmt/pkg-devel/Makefile b/ports-mgmt/pkg-devel/Makefile index b59c13f584c5..4d6afe84ec23 100644 --- a/ports-mgmt/pkg-devel/Makefile +++ b/ports-mgmt/pkg-devel/Makefile @@ -71,13 +71,18 @@ post-patch: ${REINPLACE_CMD} -e "s|-llzma|${LIBLZMA_LIBS}|g" ${WRKSRC}/auto.def \ ${WRKSRC}/src/Makefile.autosetup ${WRKSRC}/tests/Makefile.autosetup +.if ${PORT_OPTIONS:MSAN} +post-build: + @(cd ${WRKSRC}/src && \ + ${LN} -fs pkg pkg-static) +.endif + post-install: @${MKDIR} ${STAGEDIR}${PREFIX}/lib/compat/pkg @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/NEWS ${STAGEDIR}${DOCSDIR}/NEWS .if ${PORT_OPTIONS:MSAN} - @(cd ${STAGEDIR}${PREFIX}/sbin/ && \ - ${LN} -fs pkg pkg-static) + @${CP} ${STAGEDIR}${PREFIX}/sbin/pkg ${STAGEDIR}${PREFIX}/sbin/pkg-static .endif .include -- cgit v1.2.3