git: 6198006bca7f - main - ports-mgmt/pkg-devel: Fix package when SAN is on

Emmanuel Vadot manu at FreeBSD.org
Tue Sep 14 10:53:22 UTC 2021


The branch main has been updated by manu:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6198006bca7ff681f433863cf1bbba3c225fbca0

commit 6198006bca7ff681f433863cf1bbba3c225fbca0
Author:     Emmanuel Vadot <manu at FreeBSD.org>
AuthorDate: 2021-09-14 10:52:14 +0000
Commit:     Emmanuel Vadot <manu at FreeBSD.org>
CommitDate: 2021-09-14 10:53:18 +0000

    ports-mgmt/pkg-devel: Fix package when SAN is on
    
    There is no pkg-static when SAN is on but the framework needs it.
    So just ln pkg-static to pkg.
---
 ports-mgmt/pkg-devel/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ports-mgmt/pkg-devel/Makefile b/ports-mgmt/pkg-devel/Makefile
index 4094f611af20..b59c13f584c5 100644
--- a/ports-mgmt/pkg-devel/Makefile
+++ b/ports-mgmt/pkg-devel/Makefile
@@ -75,5 +75,9 @@ 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)
+.endif
 
 .include <bsd.port.post.mk>


More information about the dev-commits-ports-main mailing list