Bug 223735 - LIB_DEPENDS should require the full path to the shared library when it is not immediately under lib/
Summary: LIB_DEPENDS should require the full path to the shared library when it is not...
Status: Closed Not Accepted
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Port Management Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-18 16:22 UTC by Yuri Victorovich
Modified: 2017-11-18 17:01 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Victorovich freebsd_committer freebsd_triage 2017-11-18 16:22:29 UTC
math/R installs the shared library lib/R/lib/libR.so

Currently, this statement is needed in order to depend on it:
> LIB_DEPENDS=libR.so:math/R

and this statement doesn't work:
> LIB_DEPENDS=R/lib/libR.so:math/R

The latter statement should be used, because there is a possibility that many shared library files with the same name can be installed by the port. Framework shouldn't make an assumption that there is only one fine with this name, neither should it take liberty and always choose the first one.

Additionally, this statement should also work in case the library isn't under lib/:
> LIB_DEPENDS=${LOCALBASE}/full/path/to/libFoo.so:dir/portname

Example: devel/rstudio (https://reviews.freebsd.org/D13139)
Comment 1 Antoine Brodin freebsd_committer freebsd_triage 2017-11-18 17:01:08 UTC
If you want to depend on a full path, don't use LIB_DEPENDS.