git: af209cebad90 - main - Mk/bsd.port.mk: Enable verbose output when pkgconfig file(s) ends up in wrong path
Date: Sat, 06 May 2023 05:48:10 UTC
The branch main has been updated by diizzy: URL: https://cgit.FreeBSD.org/ports/commit/?id=af209cebad90f67199b65c0c1737f7d187498a12 commit af209cebad90f67199b65c0c1737f7d187498a12 Author: Daniel Engberg <diizzy@FreeBSD.org> AuthorDate: 2023-05-06 05:44:57 +0000 Commit: Daniel Engberg <diizzy@FreeBSD.org> CommitDate: 2023-05-06 05:47:44 +0000 Mk/bsd.port.mk: Enable verbose output when pkgconfig file(s) ends up in wrong path To avoid confusion and silently fix issues that occurs Reviewed by: mat Approved by: portmgr (bofh) --- Mk/bsd.port.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 0133d7242579..703a8541e383 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -3531,6 +3531,10 @@ install-ldconfig-file: fixup-lib-pkgconfig: @if [ -d ${STAGEDIR}${PREFIX}/lib/pkgconfig ]; then \ if [ -z "$$(${FIND} ${STAGEDIR}${PREFIX}/lib/pkgconfig -maxdepth 0 -empty)" ]; then \ + if [ -n "${DEVELOPER:Dyes}" ]; then \ + ${ECHO_MSG} "===> File(s) found in lib/pkgconfig while correct path is libdata/pkgconfig"; \ + ${ECHO_MSG} " Applying fix but consider using USES= pathfix or adjust install path"; \ + fi; \ ${MKDIR} ${STAGEDIR}${PREFIX}/libdata/pkgconfig; \ ${MV} ${STAGEDIR}${PREFIX}/lib/pkgconfig/* ${STAGEDIR}${PREFIX}/libdata/pkgconfig; \ fi; \