From owner-svn-src-all@FreeBSD.ORG Thu Oct 14 23:43:32 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1BF8B106564A; Thu, 14 Oct 2010 23:43:32 +0000 (UTC) (envelope-from kaduk@mit.edu) Received: from dmz-mailsec-scanner-6.mit.edu (DMZ-MAILSEC-SCANNER-6.MIT.EDU [18.7.68.35]) by mx1.freebsd.org (Postfix) with ESMTP id 9A3EC8FC0A; Thu, 14 Oct 2010 23:43:31 +0000 (UTC) X-AuditID: 12074423-b7bd0ae000000a00-3d-4cb7921783a6 Received: from mailhub-auth-1.mit.edu ( [18.9.21.35]) by dmz-mailsec-scanner-6.mit.edu (Symantec Brightmail Gateway) with SMTP id 9D.D7.02560.71297BC4; Thu, 14 Oct 2010 19:28:23 -0400 (EDT) Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id o9ENSRVk001776; Thu, 14 Oct 2010 19:28:28 -0400 Received: from multics.mit.edu (MULTICS.MIT.EDU [18.187.1.73]) (authenticated bits=56) (User authenticated as kaduk@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id o9ENSOeZ006044 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 14 Oct 2010 19:28:26 -0400 (EDT) Received: (from kaduk@localhost) by multics.mit.edu (8.12.9.20060308) id o9ENSNY7022483; Thu, 14 Oct 2010 19:28:23 -0400 (EDT) Date: Thu, 14 Oct 2010 19:28:23 -0400 (EDT) From: Benjamin Kaduk To: Erik Cederstrand In-Reply-To: <5D7F8DAF-E127-41C0-927B-1D72EFC8F4C4@cederstrand.dk> Message-ID: References: <201010090531.o995V8n3026865@svn.freebsd.org> <8C667EA1-3012-4499-BCCE-58263165663B@cederstrand.dk> <20101010083725.S3587@besplex.bde.org> <2A26ECE8-7713-49C4-8706-5AA5B232BE29@cederstrand.dk> <20101013143845.I1817@besplex.bde.org> <5D7F8DAF-E127-41C0-927B-1D72EFC8F4C4@cederstrand.dk> User-Agent: Alpine 1.10 (GSO 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Brightmail-Tracker: AAAAAA== Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, Tim Kientzle , src-committers@freebsd.org, Bruce Evans Subject: Re: svn commit: r213643 - head/usr.bin/ar X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Oct 2010 23:43:32 -0000 On Thu, 14 Oct 2010, Erik Cederstrand wrote: > > Den 13/10/2010 kl. 05.55 skrev Bruce Evans: > > >> [Erik wrote, but the attribution was stripped] >>> I'm a real beginner here. As I read the manuals (GNU ar and BSD ar), >>> the only flags that really control archive contents on archive >>> creation is 'q' and 'r'. The 'l' is ignored, 'c' and 'v' control >>> verbosity, and 'u' and 's' are for performance purposes that are >>> largely irrelevant today (extracting every single *.a file and >>> recreating it wit ar -rD takes less than 10 secs on my slow machine). >>> Is there any negative impact at runtime from having all archives >>> created with either -rD or -qD (ignoring verbosity at build time for >>> now)? >> >> I don't really know. 's' is also useful for non-libraries. 'u' is related >> to clobbering times, but goes the wrong way by updating the archive if the >> file is newer. I think all FreeBSD libraries should be built with the same >> flags (probably ARFLAGS, with you putting -D in it if you don't want the >> timestamp update). However, the places that already use ARFLAGS but set it >> themselves may be a problem. Some Makefiles initentionally avoid using >> bsd.lib.mk because they are special and it does the wrong things for them. >> They probably don't really care about the exact archive flags, but need to >> be checked individually. > > I'd like to give it a try. This is where an easy-to-use regression suite > with reasonable coverage for FreeBSD would come in handy :-) I am certainly willing to help test, and maybe even help check the uses of ARFLAGS (though I seem to have a severe shortage of time). I still have my test environment where ar(1) bails without -D, which would probably be helpful. -Ben