From owner-freebsd-current Sat Sep 19 10:39:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA24703 for freebsd-current-outgoing; Sat, 19 Sep 1998 10:39:26 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from fep1-orange.clear.net.nz (fep1-orange.clear.net.nz [203.97.32.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA24698 for ; Sat, 19 Sep 1998 10:39:24 -0700 (PDT) (envelope-from jabley@buddha.clear.net.nz) Received: from buddha.clear.net.nz (buddha.clear.net.nz [192.168.24.106]) by fep1-orange.clear.net.nz (1.5/1.11) with ESMTP id FAA28483; Sun, 20 Sep 1998 05:38:58 +1200 (NZST) Received: (from jabley@localhost) by buddha.clear.net.nz (8.9.1/8.9.1) id FAA01052 for freebsd-current@FreeBSD.ORG; Sun, 20 Sep 1998 05:38:57 +1200 (NZST) Message-ID: <19980920053857.A1034@clear.co.nz> Date: Sun, 20 Sep 1998 05:38:57 +1200 From: Joe Abley To: freebsd-current@FreeBSD.ORG Subject: Re: ELF ldconfig References: <19980920042741.A6144@clear.co.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <19980920042741.A6144@clear.co.nz>; from Joe Abley on Sun, Sep 20, 1998 at 04:27:41AM +1200 X-Files: the Truth is Out There Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Sep 20, 1998 at 04:27:41AM +1200, Joe Abley wrote: > > Might I suggest that elfhints.c could be extended to recognise other > names of the correct type in the search path which don't conform to the > ^lib[a-z]+\.so\.[0-9]$ pattern? Would this have an adverse impact on > anything else? > > If this is the way to go, then I'm happy to suggest a patch - I'm just > hoping that I'm all wrong about this, and that there is something very basic > and simple that would be better :) The patch required is pretty small... This is on the (pretty recent, I think) sbin/ldconfig/elfhints.c tagged $Id: elfhints.c,v 1.1 1998/09/05 03:30:54 jdp Exp $ and basically just extends the scope of an ELF library's version number to include the "." character, tidying up afterwards so that the check for ".so." in the middle of the library name still works: 102c102 < while (vers > dp->d_name && isdigit(*(vers-1))) --- > while (vers > dp->d_name && (isdigit(*(vers-1)) || *(vers-1) == '.')) 103a104 > vers++; /* don't include the last "." */ Is there a good reason why (for example) ldconfig -r | grep -e '-lslang\.1\.1\.2' _should_ fail under ELF, assuming that in this example it is necessary to look for precisely version 1.1.2 of the so and no others? Joe -- Joe Abley Tel +64 9 912-4065, Fax +64 9 912-5008 Network Architect, CLEAR Net http://www.clear.net.nz/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message