From owner-freebsd-ports Wed Jul 31 7:50:53 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3B6F137B400; Wed, 31 Jul 2002 07:50:51 -0700 (PDT) Received: from rabbit.netstyle.com.ua (rabbit.netstyle.com.ua [193.193.194.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id F10C543E3B; Wed, 31 Jul 2002 07:50:48 -0700 (PDT) (envelope-from sobomax@FreeBSD.org) Received: from vega.vega.com (root@[195.5.51.243]) by rabbit.netstyle.com.ua (8.12.5/8.12.5) with ESMTP id g6VEo2HO003631; Wed, 31 Jul 2002 17:50:03 +0300 (EEST) (envelope-from sobomax@FreeBSD.org) Received: from FreeBSD.org (big_brother.vega.com [192.168.1.1]) by vega.vega.com (8.12.5/8.11.3) with ESMTP id g6VEo1Tt002184; Wed, 31 Jul 2002 17:50:01 +0300 (EEST) (envelope-from sobomax@FreeBSD.org) Message-ID: <3D47F933.31C553E8@FreeBSD.org> Date: Wed, 31 Jul 2002 17:50:27 +0300 From: Maxim Sobolev Organization: Vega International Capital X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: en,uk,ru MIME-Version: 1.0 To: Will Andrews Cc: Dag-Erling Smorgrav , ports@FreeBSD.org Subject: Re: Bug in pkg_add? References: <3D47D344.8E23AECF@FreeBSD.org> <20020731130208.GH52296@squall.waterspout.com> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org [discussion redirected to ports@, where it belongs] Will Andrews wrote: > > On Wed, Jul 31, 2002 at 03:08:36PM +0300, Maxim Sobolev wrote: > > This is the result of old aout->elf hacks still present in > > bsd.ports.mk. Just define NO_FILTER_SHLIBS=yes and you should be set. > > BTW, the better solution is to hack port to not install > > libsectok.so.3.1, which is incorrect name for elf shared library > > anyway. > > Such things are usually symlinks, not the actual shared library, > and are occasionally used for configure scripts to detect the > version installed (a valid usage IMHO). You are not quite correct. Shared libraries with embedded version number look like libfoo-X.Y.so.Z, format libfoo.so.X.Y is relict from the aout days and doesn't have any other meaningful purpose today. > I would like to do away with the silly hack to rename these files > in bsd.port.mk, because they don't actually affect operation and > quite occasionally result in broken +CONTENTS for no reason. I > encountered the same problem DES found and it took me awhile > before I could figure out exactly where things were getting changed. > > Removing symlinks for no reason breaks FreeBSD's compatibility > with the rest of the world, which installs them. I strongly disagree. Shared libraries in FreeBSD should be named libfoo.so.X, or at least libfoo-X.Y.so.Z, all other ways should be discouraged and threated as broken, no matter whether the library was installed as a part of the base system or as a part of a port. This contributes to overall OS consistency, which always was a strong selling point of FreeBSD as compared to Linux (for example) and according to my practice usually doesn't create any significant additional overhead or any compatibility problems "with the rest of the world". However, I do agree with you that probably it is a good time to say good bye to old aout hacks in bsd.port.mk, as old aout systems are unikely are able to use today's bsd.port.mk and many important ports in the tree anyway. -Maxim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message