From owner-freebsd-ports@FreeBSD.ORG Tue Jul 29 20:16:11 2008 Return-Path: <owner-freebsd-ports@FreeBSD.ORG> 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 B1B87106566B for <freebsd-ports@freebsd.org>; Tue, 29 Jul 2008 20:16:11 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from smtp.sd73.bc.ca (smtp.sd73.bc.ca [142.24.13.140]) by mx1.freebsd.org (Postfix) with ESMTP id 8E9BF8FC12 for <freebsd-ports@freebsd.org>; Tue, 29 Jul 2008 20:16:11 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from localhost (localhost [127.0.0.1]) by localhost.sd73.bc.ca (Postfix) with ESMTP id F002C1A010D91 for <freebsd-ports@freebsd.org>; Tue, 29 Jul 2008 12:54:39 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at smtp.sd73.bc.ca Received: from smtp.sd73.bc.ca ([127.0.0.1]) by localhost (smtp.sd73.bc.ca [127.0.0.1]) (amavisd-new, port 10024) with LMTP id vmrec1FjkSwq for <freebsd-ports@freebsd.org>; Tue, 29 Jul 2008 12:54:38 -0700 (PDT) Received: from coal (unknown [192.168.0.10]) by smtp.sd73.bc.ca (Postfix) with ESMTP id BE6211A010DB9 for <freebsd-ports@freebsd.org>; Tue, 29 Jul 2008 12:54:38 -0700 (PDT) From: Freddie Cash <fjwcash@gmail.com> To: freebsd-ports@freebsd.org Date: Tue, 29 Jul 2008 12:54:37 -0700 User-Agent: KMail/1.9.9 References: <op.ueqfl1xy0g54sc@localhost> <op.ue17xeex0g54sc@localhost> <op.ue2j4tv60g54sc@localhost> In-Reply-To: <op.ue2j4tv60g54sc@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200807291254.38033.fjwcash@gmail.com> 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 <freebsd-ports.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports>, <mailto:freebsd-ports-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-ports> List-Post: <mailto:freebsd-ports@freebsd.org> List-Help: <mailto:freebsd-ports-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports>, <mailto:freebsd-ports-request@freebsd.org?subject=subscribe> X-List-Received-Date: Tue, 29 Jul 2008 20:16:11 -0000 On July 29, 2008 12:52 pm V.Chukharev wrote: > Another patch, just one line. It can be applied independently from the > patch for bsd.port.subdir.mk. > > ============= > --- /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; Is piping this into xargs faster/better than using -exec option to find? find "${PKG_DBDIR}" -type f -name "+CONTENTS" -exec \ grep -l "^lib/libssl.so." {} \; -- Freddie Cash fjwcash@gmail.com