Stuart Henderson wrote:
> On 2021/08/15 22:51, Stefan Hagen wrote:
> > Portcheck is happy, but make ports-lib-depends-check has issues:
> > 
> > $ make port-lib-depends-check
> > 
> > lurch-0.7.0-src(net/lurch):
> > Missing lib: jabber.0 (/usr/local/lib/purple-2/lurch.so) (NOT REACHABLE)
> > Extra:  purple.7
> > *** Error 1 in target 'port-lib-depends-check' (ignored)
> 
> That needs lib/purple-2/jabber in WANTLIB and net/pidgin,-libpurple in
> LIB_DEPENDS, it does not want purple in WANTLIB. check-lib-depends will
> still warn because it doesn't handle subdirectories properly.

Now that I know what to look for, I found the documentation in
library-specs(7).

> > $ ldd /usr/local/lib/purple-2/lurch.so | grep jabber
> > [...] /usr/local/lib/purple-2/libjabber.so.0.0
> 
> Use objdump -p and look for NEEDED lines, ldd will show inter-library deps
> too which shouldn't be listed.

Good to know. Thanks.

Attached is the corrected port:
- updated WANTLIB
- added comment about portcheck + lib-depends-check errors
- fixed PKGNAME
- fixed some variables and tabs

I assume both errors are caused by the path in WANTLIB and can be ignored:

$ portcheck -N
hardcoded paths detected in Makefile, consider using SUBST_VARS and 
TRUEPREFIX/LOCALBASE/LOCALSTATEDIR/VARBASE
net/lurch

$ make lib-depends-check

lurch-0.7.0(net/lurch):
Bogus WANTLIB: jabber.0 (/usr/local/lib/purple-2/lurch.so) (NOT REACHABLE)
Scanning: ok
*** Error 1 in /usr/ports/mystuff/net/lurch
(/usr/ports/infrastructure/mk/bsd.port.mk:2448 'lib-depends-check': @case 
X${_DEPENDS_CACHE} in ...)

Best regards,
Stefan

Attachment: lurch.tgz
Description: application/tar-gz

Reply via email to