From owner-freebsd-doc@FreeBSD.ORG Wed May 18 15:50:02 2005 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8241916A4D0 for ; Wed, 18 May 2005 15:50:02 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC2D843D94 for ; Wed, 18 May 2005 15:50:01 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j4IFo1Xf019525 for ; Wed, 18 May 2005 15:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j4IFo1Uk019524; Wed, 18 May 2005 15:50:01 GMT (envelope-from gnats) Resent-Date: Wed, 18 May 2005 15:50:01 GMT Resent-Message-Id: <200505181550.j4IFo1Uk019524@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, vd@datamax.bg Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D652316A4E7 for ; Wed, 18 May 2005 15:43:56 +0000 (GMT) Received: from jengal.datamax.bg (jengal.datamax.bg [82.103.104.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 751B543D62 for ; Wed, 18 May 2005 15:43:56 +0000 (GMT) (envelope-from vd@datamax.bg) Received: from sinanica.bg.datamax (sinanica.bg.datamax [192.168.10.1]) by jengal.datamax.bg (Postfix) with QMQP id B28BB87F8 for ; Wed, 18 May 2005 18:43:52 +0300 (EEST) Received: (nullmailer pid 28907 invoked by uid 1004); Wed, 18 May 2005 15:43:53 -0000 Message-Id: <20050518154353.GA28768@sinanica.bg.datamax> Date: Wed, 18 May 2005 18:43:53 +0300 From: Vasil Dimov To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: docs/81208: Inconsistency between bsd.port.mk and porters-handbook for LIB_DEPENDS X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: vd@datamax.bg List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 May 2005 15:50:02 -0000 >Number: 81208 >Category: docs >Synopsis: Inconsistency between bsd.port.mk and porters-handbook for LIB_DEPENDS >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Wed May 18 15:50:01 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Vasil Dimov >Release: FreeBSD 5.4-STABLE i386 >Organization: DataMax >Environment: System: FreeBSD sinanica.bg.datamax 5.4-STABLE FreeBSD 5.4-STABLE #6: Tue May 10 12:46:25 EEST 2005 root@sinanica.bg.datamax:/usr/obj/usr/src/sys/SINANICA-SMP i386 >Description: 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. >How-To-Repeat: >Fix: --- book.sgml.patch begins here --- --- book.sgml.orig Wed May 18 18:03:46 2005 +++ book.sgml Wed May 18 18:34:26 2005 @@ -3033,9 +3033,11 @@ install). - The lib part is an argument given - to ldconfig -r | grep -wF. There shall be no - regular expressions in this variable. + Library existence is checked with command: + ldconfig -r | grep -wE -e "-l$pattern". + Where $pattern is the + lib part of LIB_DEPENDS + with dots (.) escaped (\.). The dependency is checked twice, once from within the --- book.sgml.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: