git: e11eba76cfbd - main - pkgbase: only provide shlibs from /lib,/usr/lib,/usr/lib32

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Mon, 13 Apr 2026 20:03:45 UTC
The branch main has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=e11eba76cfbd6b439ad40faeb8ffccf4241e7034

commit e11eba76cfbd6b439ad40faeb8ffccf4241e7034
Author:     Isaac Freund <ifreund@freebsdfoundation.org>
AuthorDate: 2026-01-20 14:57:11 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2026-04-13 20:03:22 +0000

    pkgbase: only provide shlibs from /lib,/usr/lib,/usr/lib32
    
    Reviewed by:    bapt
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D54793
---
 Makefile.inc1 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Makefile.inc1 b/Makefile.inc1
index 1edab54eeea0..681ebb44fc52 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -2285,6 +2285,8 @@ create-world-package-${pkgname}: .PHONY
 			/^version/ { print $$2; next } \
 			' ${WSTAGEDIR}/${pkgname}.ucl && \
 		${PKG_CMD} -o ABI=${PKG_ABI} -o ALLOW_BASE_SHLIBS=yes \
+			-o SHLIB_PROVIDE_PATHS_NATIVE=/lib,/usr/lib \
+			${_ALL_LIBCOMPATS:range:@i@-o SHLIB_PROVIDE_PATHS_COMPAT_${_ALL_LIBCOMPATS:[$i]}=/usr/lib${_ALL_libcompats:[$i]}@} \
 			-o OSVERSION="${SRCRELDATE}" \
 			create -f ${PKG_FORMAT} ${PKG_CLEVEL} -T${PKG_CTHREADS} \
 			-M ${WSTAGEDIR}/${pkgname}.ucl \