HomeFreeBSD

Mk/bsd.port.mk: Setup SHLIB_PROVIDE_PATHS* vars for pkg

Description

Mk/bsd.port.mk: Setup SHLIB_PROVIDE_PATHS* vars for pkg

This changes picks a new pkg feature: https://github.com/freebsd/pkg/pull/2422

The idea behind the .if ${LINUX_DEFAULT} ... check comes from the Linux
ld.so(8) man page that says

(5) In the default path /lib, and then /usr/lib. (On some 64-bit

architectures, the default paths for 64-bit shared objects
are /lib64, and then /usr/lib64.)

CentOS 7 and Rocky Linux 9 that we have in Ports install 32 bit libraries
into /usr/lib and 64 bit libraries into /usr/lib64. /lib and /lib64 are
symlinks, so I omitted them.

Differential Revision: https://reviews.freebsd.org/D49136
Approved by: bapt

Details

Provenance
arrowdAuthored on Feb 26 2025, 3:19 PM
Differential Revision
D49136: Mk/bsd.port.mk: Setup SHLIB_PROVIDE_PATHS* vars for pkg
Parents
R11:18bf494c080e: Mk/bsd.port.mk: Use PKG_VERSION instead of PKG_BIN
Branches
Unknown
Tags
Unknown