From owner-freebsd-arch@FreeBSD.ORG Fri Apr 17 13:30:51 2015 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CCDAF99D; Fri, 17 Apr 2015 13:30:51 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A60B210D; Fri, 17 Apr 2015 13:30:51 +0000 (UTC) Received: from ralph.baldwin.cx (pool-173-54-116-245.nwrknj.fios.verizon.net [173.54.116.245]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 91C72B93A; Fri, 17 Apr 2015 09:30:50 -0400 (EDT) From: John Baldwin To: freebsd-arch@freebsd.org Cc: Stefan Esser , Konstantin Belousov , "freebsd-arch@freebsd.org" , peter@freebsd.org, Oliver Pinter Subject: Re: Removal of the 6.x kernel compat code from libc Date: Fri, 17 Apr 2015 09:28:24 -0400 Message-ID: <14081053.n6WdaDRXXc@ralph.baldwin.cx> User-Agent: KMail/4.14.2 (FreeBSD/10.1-STABLE; KDE/4.14.2; amd64; ; ) In-Reply-To: <5531059F.4060500@freebsd.org> References: <20150417075942.GI2390@kib.kiev.ua> <20150417121034.GN2390@kib.kiev.ua> <5531059F.4060500@freebsd.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Fri, 17 Apr 2015 09:30:50 -0400 (EDT) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Apr 2015 13:30:51 -0000 On Friday, April 17, 2015 03:07:43 PM Stefan Esser wrote: > Could we get rid of check_utility_compat(3) on that occasion? > > It is only used (AFAIK) to select FreeBSD-4 compatible behaviour of > expr(1), which can also be selected with option "-e" and env variable > COMPAT_EXPR. > > I doubt that anybody relies on non-POSIX behaviour that has been > deprecated for some 15 years ... > > We'll need to preserve a stub function for check_utility_compat(3), > I'm afraid, but I think we can remove the environment variable and > the actual checking for a sym-link named "/etc/compat-FreeBSD-4-util" > at startup of expr. (I bet, nobody even knew that the behaviour of > expr could be changed with above sym-link ...) > > If there is consensus, I could prepare a patch to remove the check > and to update the man-page for expr (just for -CURRENT, no MFC). I would not be surprised if Y!BSD depends on this and uses it in 11 FWIW. :) -- John Baldwin