From owner-freebsd-current Tue Oct 1 23:47: 7 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C18937B401 for ; Tue, 1 Oct 2002 23:47:06 -0700 (PDT) Received: from smtp02.iprimus.net.au (smtp02.iprimus.net.au [210.50.76.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id CDE7943E75 for ; Tue, 1 Oct 2002 23:47:04 -0700 (PDT) (envelope-from tim@robbins.dropbear.id.au) Received: from dilbert.robbins.dropbear.id.au ([210.50.112.194]) by smtp02.iprimus.net.au with Microsoft SMTPSVC(5.0.2195.4617); Wed, 2 Oct 2002 16:47:01 +1000 Received: from dilbert.robbins.dropbear.id.au (q8mktajvu67au7up@localhost [127.0.0.1]) by dilbert.robbins.dropbear.id.au (8.12.6/8.12.6) with ESMTP id g926koqi080562; Wed, 2 Oct 2002 16:46:50 +1000 (EST) (envelope-from tim@dilbert.robbins.dropbear.id.au) Received: (from tim@localhost) by dilbert.robbins.dropbear.id.au (8.12.6/8.12.6/Submit) id g926km2S080561; Wed, 2 Oct 2002 16:46:48 +1000 (EST) (envelope-from tim) Date: Wed, 2 Oct 2002 16:46:48 +1000 From: Tim Robbins To: Pete Carah Cc: current@FreeBSD.ORG Subject: Re: Tool make ordering, or something Message-ID: <20021002164648.A79780@dilbert.robbins.dropbear.id.au> References: <200210020537.g925bQB1092943@ns.altadena.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <200210020537.g925bQB1092943@ns.altadena.net>; from pete@ns.altadena.net on Tue, Oct 01, 2002 at 10:37:26PM -0700 X-OriginalArrivalTime: 02 Oct 2002 06:47:01.0891 (UTC) FILETIME=[8328D530:01C269DF] Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Oct 01, 2002 at 10:37:26PM -0700, Pete Carah wrote: > There is a 't' modifier to a format in bin/sh that just crept in; > it prevents a cross buildworld under stable without NO_WERROR. > > Perhaps the compiler+libc needs to be built first? (and does sh > need to be a build tool; I'd hope the make scripts stuck to a > fairly least-common-denominator shell syntax?) The best we can do to src/bin/sh is to do something like this: #ifndef BOOTSTRAPPING fmtstr(s, 64, "[%td] ", jp - jobtab + 1); #else fmtstr(s, 64, "[%lld] ", (long long)(jp - jobtab + 1)); #endif This isn't a particularly good example, because jp - jobtab + 1 is almost always less than 1000. I think there are only 3 places that use new printf format specifiers that aren't in -stable: miscbltin.c lines 429,455, jobs.c line 224. I don't know why sh needs to be a build tool anymore, but I'll probably just add the #ifdef's for the moment. Tim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message