Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@×××××.com>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [patch] dont run ldconfig unless libraries are actually installed
Date: Tue, 17 Jan 2006 04:57:56
Message-Id: 43CC7973.9060109@gmail.com
In Reply to: Re: [gentoo-portage-dev] [patch] dont run ldconfig unless libraries are actually installed by Mike Frysinger
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Mike Frysinger wrote:
5 > makelinks is set to 1 by default when upgrading a package so that running
6 > ldconfig will update any shared lib links ... however, if the package doesnt
7 > install any libraries, then there's no point in running ldconfig
8
9 I tried the updated patch and it works for me now. While reviewing the patch I got the impression that the os.access(srcroot+x,os.R_OK) thing and the mtimedb stuff are mutually redundant. Both are being used to track whether the installed package has changed libraries in the search path. In order to simplify the code, it seems logical to use either one or the other, not both.
10
11 I also noticed that, even with the patch, ldconfig will run if a directory is installed into /usr/lib (/usr/lib/portage, for example). Maybe it's not worth the trouble to try to avoid an ldconfig run in cases such as this, but I thought it was worth noting.
12
13 Zac
14 -----BEGIN PGP SIGNATURE-----
15 Version: GnuPG v1.4.2 (GNU/Linux)
16
17 iD8DBQFDzHlz/ejvha5XGaMRAlWSAJ9zqCWCIFeNrL15FNE7pgNfuQKjnACdHHus
18 mTjjVRlL1F3l0KNy9ESJJHo=
19 =VXby
20 -----END PGP SIGNATURE-----
21 --
22 gentoo-portage-dev@g.o mailing list

Replies