From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 28 Apr 2004 09:55:38 +0400 From: Sergey Vlasov To: ALT Devel discussion list Subject: Re: [devel] Re: I: Sisyphus base build system freeze plans Message-ID: <20040428055537.GA2462@sirius.home> Mail-Followup-To: ALT Devel discussion list References: <20040426133654.GA30080@basalt.office.altlinux.org> <408E1EA7.7060302@altlinux.ru> <20040427092601.GB26609@osdn.org.ua> <20040427103429.GA15569@master.mivlgu.local> <20040427105421.GC21443@basalt.office.altlinux.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oyUTqETQ0mS9luUI" Content-Disposition: inline In-Reply-To: <20040427105421.GC21443@basalt.office.altlinux.org> X-MailScanner-Information: Please contact the ISP for more information X-MailScanner: Found to be clean X-MailScanner-From: vsu@altlinux.ru X-BeenThere: devel@altlinux.ru X-Mailman-Version: 2.1.4 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Apr 2004 05:55:50 -0000 Archived-At: List-Archive: List-Post: --oyUTqETQ0mS9luUI Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 27, 2004 at 02:54:21PM +0400, Dmitry V. Levin wrote: > On Tue, Apr 27, 2004 at 02:34:29PM +0400, Sergey Vlasov wrote: > > On Tue, Apr 27, 2004 at 12:26:01PM +0300, Michael Shigorin wrote: > > > On Tue, Apr 27, 2004 at 12:49:43PM +0400, Leonid Khachaturov wrote: > > > > =EF=DA=CE=C1=DE=C1=C5=D4 =CC=C9 =DC=D4=CF, =DE=D4=CF =D5=D3=D4=C1= =CE=CF=D7=CB=C1 glibc-2.3.3 =C9=DA Sisyphus =D3=C5=CA=DE=C1=D3, > > > > =D0=D2=C9=D7=C5=C4=C5=D4 =CB =CE=C5=D2=C1=C2=CF=D4=CF=D3=D0=CF=D3= =CF=C2=CE=CF=D3=D4=C9 =D3=C9=D3=D4=C5=CD=D9 (=C9=CC=C9 =D0=CF-=CB=D2=C1=CA= =CE=C5=CA =CD=C5=D2=C5 =C5=A3 > > > > =DE=C1=D3=D4=C9)? > > >=20 > > > =E5=DD=C5 GL =D3=CC=CF=CD=C1=CC=D3=D1 (=D3=CB=D2=C9=CE=D3=C5=CA=D7=C5= =D2 =D4=C5=D0=C5=D2=D8 CPU hog :). > >=20 > > $ ls -la /usr/X11R6/lib/libGL.so.1 > > lrwxrwxrwx 1 root root 12 =E1=D0=D2 27 14:30 /usr/X11R6/lib/libGL.so.1= -> libMesaGL.so > >=20 > > =F3=D4=C1=D2=D9=CA ldconfig =C4=C5=CC=C1=C5=D4 =D3=D3=D9=CC=CB=D5 =CE= =C1 libGLwrapper.so.0.1.8. =F7=CF=CF=C2=DD=C5 =D0=CF =CB=C1=CB=CF=CD=D5 > > =D0=D2=C9=CE=C3=C9=D0=D5 ldconfig =D7=D9=C2=C9=D2=C1=C5=D4, =CE=C1 =DE= =D4=CF =D0=CF=D3=D4=C1=D7=C9=D4=D8 =D3=D3=D9=CC=CB=D5 =D0=D2=C9 =CE=C1=CC= =C9=DE=C9=C9 =CE=C5=D3=CB=CF=CC=D8=CB=C9=C8 > > =C2=C9=C2=CC=C9=CF=D4=C5=CB =D3 =D3=CF=D7=D0=C1=C4=C1=C0=DD=C9=CD=C9 SO= NAME? >=20 > =FC=D4=CF=D4 =C1=CC=C7=CF=D2=C9=D4=CD =CE=C5=D3=CB=CF=CC=D8=CB=CF =D2=C1= =DA =CD=C5=CE=D1=CC=D3=D1, =C9 =CB=C1=CB=CF=CA =C4=C5=CA=D3=D4=D7=D5=C5=D4 = =D3=C5=CA=DE=C1=D3, =D1 =CE=C5 =D0=CF=CD=CE=C0. =EE=C1 =D3=C1=CD=CF=CD =C4=C5=CC=C5 =DC=D4=C1 =D0=D2=CF=C2=CC=C5=CD=C1 =D7= =CF=DA=CE=C9=CB=C1=C5=D4 =C9=DA-=DA=C1 =D3=CC=C5=C4=D5=C0=DD=C5=C7=CF =C9= =DA=CD=C5=CE=C5=CE=C9=D1: @@ -770,10 +790,27 @@ search_dir (const struct dir_entry *entr continue; } =20 + + /* A link may just point to itself. */ + if (is_link) + { + /* If the path the link points to isn't its soname and it is not + .so symlink for ld(1) only, we treat it as a normal file. */ + const char *real_base_name =3D basename (real_file_name); + + if (strcmp (real_base_name, soname) !=3D 0) + { + len =3D strlen (real_base_name); + if (len < strlen (".so") + || strcmp (real_base_name + len - strlen (".so"), ".so") = !=3D 0 + || strncmp (real_base_name, soname, len) !=3D 0) + is_link =3D 0; + } + } + if (real_name !=3D real_file_name) free (real_name); =20 - /* Links will just point to itself. */ if (is_link) { free (soname); libMesaGL.so - =DC=D4=CF =D4=CF=D6=C5 =D3=D3=D9=CC=CB=C1 (=CE=C1 libGL.so.1= .4.501). =F3=D5=C4=D1 =D0=CF =CB=CF=CD=CD=C5=CE=D4=C1=D2=C9=C0, =D4=C1=CB=C1=D1 =D3=D3=D9=CC=CB=C1 =C4= =CF=CC=D6=CE=C1 =C2=D9=CC=C1 =C2=D9 =C9=C7=CE=CF=D2=C9=D2=CF=D7=C1=D4=D8=D3= =D1, =CE=CF =CE=C1 =D3=C1=CD=CF=CD =C4=C5=CC=C5 =DC=D4=CF=C7=CF =CE=C5 =D0=D2=CF=C9=D3=C8=CF=C4=C9=D4 =C9=DA-= =DA=C1 =D4=D2=C5=D4=D8=C5=CA =DE=C1=D3=D4=C9 =CE=C1=D0=C9=D3=C1=CE=CE=CF=C7= =CF =DA=C4=C5=D3=D8 =D5=D3=CC=CF=D7=C9=D1 (strncmp (real_base_name, soname, len) !=3D 0). > =EC=D5=DE=DB=C5 =CE=C5 =DA=C1=CB=CC=C1=C4=D9=D7=C1=D4=D8=D3=D1 =CE=C1 =D4= =CF=D4 =C9=CC=C9 =C9=CE=CF=CA =D7=C1=D2=C9=C1=CE=D4 =C9 =D3=C4=C5=CC=C1=D4= =D8 =CE=CF=D2=CD=C1=CC=D8=CE=D9=CA > wrapper. =EB=C1=CB=C9=CD =CF=C2=D2=C1=DA=CF=CD? =F7=D9=CE=C5=D3=D4=C9 =D7=D3=C5 =D2= =C5=C1=CC=D8=CE=D9=C5 libGL.so.* =D7 =C4=D2=D5=C7=CF=CA =CB=C1=D4=C1=CC=CF= =C7, =CF=D3=D4=C1=D7=C9=D7 =D7 /usr/X11R6/lib =D4=CF=CC=D8=CB=CF libGLwrapper.so= .*? --oyUTqETQ0mS9luUI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFAj0dZW82GfkQfsqIRAtrTAJ9glo9YgQVy9DT7bOpD2TajyWV2TgCePpxU CdT6F3FblH3FDa8WU4K/Ml4= =g/X4 -----END PGP SIGNATURE----- --oyUTqETQ0mS9luUI--