From owner-freebsd-current@FreeBSD.ORG Thu Oct 18 14:43:48 2007 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 053CD16A418; Thu, 18 Oct 2007 14:43:48 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.netplex.net (mail.netplex.net [204.213.176.10]) by mx1.freebsd.org (Postfix) with ESMTP id B9F9713C447; Thu, 18 Oct 2007 14:43:47 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.netplex.net (8.14.1/8.14.1/NETPLEX) with ESMTP id l9IEhkvD029659; Thu, 18 Oct 2007 10:43:46 -0400 (EDT) X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.netplex.net) X-Greylist: Message whitelisted by DRAC access database, not delayed by milter-greylist-3.0 (mail.netplex.net [204.213.176.10]); Thu, 18 Oct 2007 10:43:46 -0400 (EDT) Date: Thu, 18 Oct 2007 10:43:46 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Andrey Chernov In-Reply-To: <20071018091950.GB1546@nagual.pp.ru> Message-ID: References: <200710180835.18929.thierry@herbelot.com> <47170A83.6050607@FreeBSD.org> <20071018091950.GB1546@nagual.pp.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: current@freebsd.org, thierry@herbelot.com Subject: Re: No libc shared lib number bump ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Eischen List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Oct 2007 14:43:48 -0000 On Thu, 18 Oct 2007, Andrey Chernov wrote: > On Thu, Oct 18, 2007 at 09:25:55AM +0200, Kris Kennaway wrote: >> Thierry Herbelot wrote: >>> Hello, >>> I just saw on my -current box that some/most/all shared libraries seem not >>> to have been bumped when REL_7 was branched : >>> % ll /lib/libc.so* >>> -r--r--r-- 1 root wheel 1036012 Oct 15 23:33 /lib/libc.so.7 >>> % uname -a >>> FreeBSD YYY 8.0-CURRENT FreeBSD 8.0-CURRENT #1919: Wed Oct 17 20:39:59 >>> CEST 2007 XXX@YYY:/tank/files3/obj/tank/files1/src/sys/GENERIC i386 >> >> This is deliberate, there is no longer any need now or in the future (since >> symbol versioning now exists). > > I don't understand this thing well, since it is new. Is there some > howto's in symbol versioning exists for most common cases like that: > a) some new function/variable/struct added You just add the symbol to the appropriate symbol map for added interfaces. Keep in mind that added interfaces will have to be supported forever (*). Even if they are deprecated and removed later, you will still have to have compat versions hanging around libc (or whatever symbol versioned library they are in). (*) libc and other symbol versioned libraries may be bumped again in 8.0 to reset the numbering scheme back to 0 (libc.so.0). It was deemed to late in the game to do this for 7.0. > b) some existen function/variable/struct changed > (at this moment I am interesting especially in a) case since did it for > ctype) See http://people.freebsd.org/~deischen/symver/library_versioning.txt I just updated it, but it will probably need additional editing. -- DE