Bug 81208

Summary: Inconsistency between bsd.port.mk and porters-handbook for LIB_DEPENDS
Product: Documentation Reporter: Vasil Dimov <vd>
Component: Books & ArticlesAssignee: Pav Lucistnik <pav>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
book.sgml.patch none

Description Vasil Dimov 2005-05-18 16:50:01 UTC
Porters-handbook states that lib part in LIB_DEPENDS (in ports'
Makefiles) is passed as argument to the command:
ldconfig -r | grep -wF
which is incorrect, especially the -F flag and the state that it
may not contain regular expressions.

In bsd.port.mk
ldconfig -r | grep -vwF -e "${PKGCOMPATDIR}" | grep -qwE -e "-l$pattern"
is used and I think that grep -vwF -e "${PKGCOMPATDIR}" and the -q flag
to the second grep call can be omitted for simplicity.
$pattern is lib part of LIB_DEPENDS with dots escaped.
Comment 1 Pav Lucistnik freebsd_committer freebsd_triage 2005-07-15 07:49:10 UTC
State Changed
From-To: open->closed

I committed a similar patch, thank you for noticing this! 


Comment 2 Pav Lucistnik freebsd_committer freebsd_triage 2005-07-15 07:49:10 UTC
Responsible Changed
From-To: freebsd-doc->pav

Pav did it