From owner-freebsd-current@FreeBSD.ORG Fri Feb 22 18:27:33 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 999F916A402 for ; Fri, 22 Feb 2008 18:27:33 +0000 (UTC) (envelope-from kaiwang27@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.191]) by mx1.freebsd.org (Postfix) with ESMTP id 0B59413C4E9 for ; Fri, 22 Feb 2008 18:27:32 +0000 (UTC) (envelope-from kaiwang27@gmail.com) Received: by fk-out-0910.google.com with SMTP id b27so633412fka.11 for ; Fri, 22 Feb 2008 10:27:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received:x-authentication-warning:date:from:to:cc:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; bh=uF2K/LtCBdqOAK/PNynjiSDtGsS/tItJkkokjJgmk84=; b=eu3KbCCEXeQeB7Gu/eW6iO4C47G5XL7wQTZYiMIw6H4ZifU9rM7TdgRrvNN9HDqdfkfbVHtDmIa6bMuJdPltVxr4OJEAf8vlHm3pM+CP+0iB4L7hqGBGCt3+RyVnNO8HSjPfS5MXvU/+Lm9GM4MLdf/NSCB6RfbssfqoLMa92PA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=x-authentication-warning:date:from:to:cc:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=BQaTZMCDYO+vRIP34YnAsVPQkgjqxKttcH2gjziZ2k5Me7BWK8ej6sbKm0qLn+lpFbUhuxDhCBEDxpV9gnMGVZ4OWXX0PQMTF+JDwXr42HuNbFJ7nGEgd5BVenX7yc66cadH+Ddjm26rcDamRyFVDgqKUs4el/1tLcQzKofUzeA= Received: by 10.82.171.16 with SMTP id t16mr563581bue.11.1203704851239; Fri, 22 Feb 2008 10:27:31 -0800 (PST) Received: from plan0.kaiwan.csbnet.se ( [193.11.244.12]) by mx.google.com with ESMTPS id y34sm2749750iky.6.2008.02.22.10.27.22 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 22 Feb 2008 10:27:27 -0800 (PST) Received: from localhost ([127.0.0.1] helo=plan0.kaiwan.csbnet.se) by plan0.kaiwan.csbnet.se with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1JScc1-0000om-MJ; Fri, 22 Feb 2008 19:27:09 +0100 Received: (from kaffir@localhost) by plan0.kaiwan.csbnet.se (8.14.2/8.14.2/Submit) id m1MIR9qm003147; Fri, 22 Feb 2008 19:27:09 +0100 (CET) (envelope-from kaiwang27@gmail.com) X-Authentication-Warning: plan0.kaiwan.csbnet.se: kaffir set sender to kaiwang27@gmail.com using -f Date: Fri, 22 Feb 2008 19:27:09 +0100 From: Kai Wang To: Marcel Moolenaar Message-ID: <20080222182709.GC2622@plan0.kaiwan.csbnet.se> Mail-Followup-To: Marcel Moolenaar , Ruslan Ermilov , current@freebsd.org, "Dag-Erling C. Smorgrav" , Joseph Koshy References: <20080221140247.GC2022@plan0.kaiwan.csbnet.se> <20080221143351.GP57756@deviant.kiev.zoral.com.ua> <20080221152549.GB21518@team.vega.ru> <20080221173150.GA93693@dragon.NUXI.org> <20080222070728.GA56282@team.vega.ru> <20080222091642.GB57428@team.vega.ru> <20080222093234.GB17107@dragon.NUXI.org> <20080222102409.GD57428@team.vega.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Cc: Joseph Koshy , current@freebsd.org, "Dag-Erling C. Smorgrav" Subject: Re: [HEADS UP] ar(1) front-end committed. (notes for cross compile) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Feb 2008 18:27:33 -0000 On Fri, Feb 22, 2008 at 09:52:32AM -0800, Marcel Moolenaar wrote: >> Unfortunalely, since we provide the WITH_GNUAR option, we don't know if >> /usr/bin/ar and /usr/bin/ranlib are GNU or BSD versions, so we should >> always bootstrap BSD ar(1). > > Can we determine this at runtime by running ar -v. If ar -V > the output is more than 20 lines, it's GNU ar :-) That's true :-) > Seriously: we could run ar --version (provided we add > the support for that to BSD ar) and check the first > word. It's either GNU or BSD (provided the output of > BSD ar starts with BSD). Also true, in order to be more compatible with Binutils ar, we added long options support two weeks ago as suggested by Steve Kargl. Only two long option is supported: --version and --help, and --version output start with BSD. > This should eliminate any and all kind of guessing and > should help in getting FreeBSD buildable on non-FreeBSD > systems as well. > > Just a thought... well... I know little about build system, but this sounds to me like a "hack"... Also ru@ pointed out using /usr/bin/ar to build world is a bug, I think he's right and probably always bootstrap 'BSD' ar would be safer? > -- > Marcel Moolenaar > xcllnt@mac.com > > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"