From owner-freebsd-ports@FreeBSD.ORG Tue Jul 29 20:13:47 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A9121065672 for ; Tue, 29 Jul 2008 20:13:47 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx23.fluidhosting.com [204.14.89.6]) by mx1.freebsd.org (Postfix) with ESMTP id 2439B8FC13 for ; Tue, 29 Jul 2008 20:13:47 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 3179 invoked by uid 399); 29 Jul 2008 20:13:45 -0000 Received: from localhost (HELO lap.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 29 Jul 2008 20:13:45 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <488F79F8.1030105@FreeBSD.org> Date: Tue, 29 Jul 2008 13:13:44 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.16 (X11/20080726) MIME-Version: 1.0 To: "V.Chukharev" References: <08GlBzRclM@dmeyer.dinoex.sub.org> <488A0B2E.9070403@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 0.95.6 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: Dirk Meyer , freebsd-ports@freebsd.org Subject: Re: Mk/bsd.openssl.mk optimization X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jul 2008 20:13:47 -0000 V.Chukharev wrote: > Another patch, just one line. It can be applied independently from the patch > for bsd.port.subdir.mk. I use: grep -l "@comment ORIGIN:${1}$" $pdb/*/+CONTENTS for similar purposes in portmaster with no complaints so far. Is there a reason you need to do the complicated thing? Doug > ============= > --- /usr/ports/Mk/bsd.openssl.mk.orig 2008-07-23 09:14:29.000000000 +0300 > +++ /usr/ports/Mk/bsd.openssl.mk 2008-07-29 20:35:05.000000000 +0300 > @@ -121,7 +121,7 @@ > exists(${DESTDIR}/${LOCALBASE}/lib/libcrypto.so) > # find installed port and use it for dependency > PKG_DBDIR?= ${DESTDIR}/var/db/pkg > -OPENSSL_INSTALLED!= grep -l -r "^lib/libssl.so." "${PKG_DBDIR}" | \ > +OPENSSL_INSTALLED!= find "${PKG_DBDIR}" -type f -name "+CONTENTS" -print0 | xargs -0 grep -l "^lib/libssl.so." | \ > while read contents; do \ > sslprefix=`grep "^@cwd " "$${contents}" | ${HEAD} -n 1`; \ > if test "$${sslprefix}" = "@cwd ${LOCALBASE}" ; then \ > ============= > > Best regards, > Vladimir > -- This .signature sanitized for your protection