From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 19 Sep 2008 07:02:56 +0000 From: Alexey Tourbin To: ALT Devel discussion list Message-ID: <20080919070256.GH32012@altlinux.org> Mail-Followup-To: ALT Devel discussion list References: <20080908134958.GA18364@wo.int.altlinux.org> <20080911192542.GJ6477@altlinux.org> <20080911195800.GA16087@wo.int.altlinux.org> <20080911201642.GK6477@altlinux.org> <20080911202012.GC16087@wo.int.altlinux.org> <20080911203823.GL6477@altlinux.org> <20080911204809.GM6477@altlinux.org> <20080911205329.GB31868@wo.int.altlinux.org> <20080915071147.GA5223@altlinux.org> <20080915100527.GC11884@wo.int.altlinux.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PNpeiK4tTqhYOExY" Content-Disposition: inline In-Reply-To: <20080915100527.GC11884@wo.int.altlinux.org> Subject: Re: [devel] /etc/ld.so.cache X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.10b3 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Sep 2008 07:02:57 -0000 Archived-At: List-Archive: List-Post: --PNpeiK4tTqhYOExY Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 15, 2008 at 02:05:27PM +0400, Dmitry V. Levin wrote: > > /usr/lib/rpm/0ldconfig.filetrigger > > 1 #!/bin/sh > > 2=09 > > 3 IFS=3D > > 4 while read -r f; do > > 5 case "$f" in > > 6 /lib/lib*/*.so* |\ > > 7 /lib64/lib*/*.so* |\ > > 8 /usr/lib/lib*/*.so* |\ > > 9 /usr/lib64/lib*/*.so* ) > > 10 # false positives > > 11 continue ;; > > 12 /lib/lib*.so |\ > > 13 /lib64/lib*.so |\ > > 14 /usr/lib/lib*.so |\ > > 15 /usr/lib64/lib*.so ) > > 16 # maybe soname > > 17 if set $f.* && [ -f "$1" ]; then > > 18 continue > > 19 fi > > 20 ;; > > 21 /lib/lib*.so.* |\ > > 22 /lib64/lib*.so.* |\ > > 23 /usr/lib/lib*.so.* |\ > > 24 /usr/lib64/lib*.so.* ) > > 25 # soname >=20 > =ED=CF=C7=D5=D4 =D7=CF=DA=CE=C9=CB=CE=D5=D4=D8 (=D2=C1=CE=D8=DB=C5 =C2=D9= =CC=C9) =C4=CF=D0=CF=CC=CE=C9=D4=C5=CC=D8=CE=D9=C5 =CB=C1=D4=C1=CC=CF=C7=C9, > =D7=CF=DA=CD=CF=D6=CE=CF =D3=D4=CF=C9=D4 =DA=C1=D0=D5=D3=D4=C9=D4=D8 /usr= /lib/rpm/dump_ld_config. dump_ld_config =CE=C5 =C4=CF=CB=D5=CD=C5=CE=D4=C9=D2=CF=D7=C1=CE, =C1 =C9= =DA =C9=D3=C8=CF=C4=CE=C9=CB=CF=D7 =CE=C5 =D3=CF=D7=D3=C5=CD =CF=DE=C5=D7= =C9=C4=CE=CF, =CB=C1=CB=CF=CA =D5 =CE=C5=C7=CF synopsis =C9 =DE=D4=CF =CF=CE =C4=CF=CC=D6= =C5=CE =D7=D9=D7=CF=C4=C9=D4=D8. =F7 =CC=C0=C2=CF=CD =D3=CC=D5=DE=C1=C5, =C9=C4=C5=D1 =D0=CF=CE=D1=D4=CE=C1:= =CC=D5=DE=DB=C5 =C9=D3=C8=CF=C4=C9=D4=D8 =CE=C5 =C9=DA =C6=C9=CB=D3=C9=D2= =CF=D7=C1=CE=CE=CF=C7=CF =CE=C1=C2=CF=D2=C1 =CB=C1=D4=C1=CC=CF=C7=CF=D7, =CB=CF=D4=CF=D2=D9=C5 =D0=C5=D2=C5=DE=C9=D3=CC= =D1=C0=D4=D3=D1 =D7 =DB=C1=C2=CC=CF=CE=C1=C8, =C1 =C9=DA =D3=D0=C9=D3=CB=C1= =CB=C1=D4=C1=CC=CF=C7=CF=D7 =D7 =CF=C2=DD=C5=CD =D7=C9=C4=C5. while read -r f; do case "$f" in /etc/ld.so.conf.d/*.conf) exec /sbin/ldconfig ;; esac case "${f##*/} in lib*.so*) ;; *) continue ;; esac found=3D for dir in $dirs; do case "$f" in # XXX /usr/lib64/sse2 "$dir"/*/*) continue ;; "$dir"/*) found=3D1; break ;; *) continue ;; esac done [ -n "$found" ] || continue case "${f##*/} in lib*.so) if set "$f".* && [ -f "$1" ]; then continue fi ;; esac exec /sbin/ldconfig done --PNpeiK4tTqhYOExY Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkjTTqAACgkQfBKgtDjnu0biSACeMvHBCWoizicef4zf2ksrQsLo 5LMAnR5qbSTtA16xbxd/JT7FbBlJmIc9 =ZdrM -----END PGP SIGNATURE----- --PNpeiK4tTqhYOExY--