Date: Tue, 24 May 2005 11:35:23 +0400 From: Boris Samorodov <bsam@ipt.ru> To: Kris Kennaway <kris@obsecurity.org> Cc: freebsd-ports@FreeBSD.org Subject: Re: make generate-plist and lib.so.X.Y.Z Message-ID: <11652596@srv.sem.ipt.ru> In-Reply-To: <77732620@srv.sem.ipt.ru> (Boris Samorodov's message of "Tue, 24 May 2005 08:48:19 %2B0400") References: <86690406@srv.sem.ipt.ru> <20050523233952.GA80556@xor.obsecurity.org> <77732620@srv.sem.ipt.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 24 May 2005 08:48:19 +0400 Boris Samorodov wrote: > On Mon, 23 May 2005 16:39:53 -0700 Kris Kennaway wrote: > > On Tue, May 24, 2005 at 02:37:29AM +0400, Boris Samorodov wrote: > > > $ cat work/.PLIST.mktmp=20 > > > test/libtest.so.1.2.3 > > > test/libtest.so.1 > Shouldn't this be "test/libtest.so.1.2"? > > > test/libtest.so.1 > > > test/libtest.so > > > ----- > > >=20 > > > If it's a feature, then where I can get an info on it? Or is it a bug? > > What are you asking about, exactly? > > Kris To be more strict. The developers-handbook/policies-shlib.html says: ----- Note: ld.so will always use the highest =E2=80=9Cminor=E2=80=9D revision. F= or instance, it will use libc.so.2.2 in preference to libc.so.2.0, even if the program was initially linked with libc.so.2.0. In addition, our ELF dynamic linker does not handle minor version numbers at all. However, one should still specify a major and minor version number as our Makefiles =E2=80=9Cdo the right thing=E2=80=9D based = on the type of system. ----- It is about linking process. Nothing said about installation. But at ports/Mk/bsd.port.mk at the generate-plist: label we have: ----- .if (${PORTOBJFORMAT} =3D=3D "aout") @${SED} -e 's,\(/lib.*\.so\.[0-9]*\)$$,\1.0,' ${TMPPLIST} > ${TMPPL= IST}. tmp .else @${SED} -e 's,\(/lib.*\.so\.[0-9]*\)\.[0-9]*$$,\1,' ${TMPPLIST} > $= {TMPP LIST}.tmp .endif ----- Isn't it preventing shlib.{major}.{minor} to be registered as installed one? --=20 bsam
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?11652596>