porter's handbook is outdated, section 4.7.1

Marco Molteni molter at tin.it
Fri Jul 4 13:02:53 UTC 2003


Hi,

following is from 4.7.1:


    4.7.1 LIB_DEPENDS

    This variable specifies the shared libraries this port depends
    on. It is a list of lib:dir[:target] tuples where lib is the name
    of the shared library, dir is the directory in which to find it in
    case it is not available, and target is the target to call in that
    directory. For example,

    LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg:install

    will check for a shared jpeg library with major version 9, and
    descend into the graphics/jpeg subdirectory of your ports tree to
    build and install it if it is not found. The target part can be
    omitted if it is equal to DEPENDS_TARGET (which defaults to
    install).

    Note: The lib part is an argument given to ldconfig -r | grep
    -wF. There shall be no regular expressions in this variable.


Now, the last paragraph about how the lib part is handled is wrong. By
looking at the bsd.port.mk makefile:

     if ${LDCONFIG} -r | ${GREP} -qwE -e "-l$$pattern"; then \

so actually the variable can be a regex.

Please fix the documentation
marco



More information about the freebsd-doc mailing list