Gentoo Archives: gentoo-portage-dev

From: Pacho Ramos <pacho@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] About how to make compilation think some files are missing
Date: Sun, 13 Feb 2011 12:06:40
Message-Id: 1297598066.17011.1.camel@localhost.localdomain
In Reply to: Re: [gentoo-portage-dev] About how to make compilation think some files are missing by Zac Medico
1 El sáb, 12-02-2011 a las 15:43 -0800, Zac Medico escribió:
2 > On 02/12/2011 07:50 AM, Pacho Ramos wrote:
3 > > This comes from glitz removal (bug #330397), as soon as cairo-1.10 gets
4 > > stabilized, depclean will try to remove glitz, but removing glitz will
5 > > break a lot of apps, needing to rebuild them and, until then, having a
6 > > partially broken system.
7 > >
8 > > I then thought on running revdep-rebuild --library libglitz-glx.so.1
9 > > BEFORE removing glitz (to prevent breakage), but later I remembered it
10 > > wouldn't work as rebuilt packages would link again against
11 > > libglitz-glx.so.1.
12 > >
13 > > Then, my idea would the following:
14 > >
15 > > Would be nice if I could tell portage to make compilation think
16 > > libglitz-glx.so.1 is not present in real system (maybe sandbox could
17 > > prevent its readability inside build environment), and then, I could run
18 > > "revdep-rebuild --library libglitz-glx.so.1" before removing glitz and
19 > > affected apps would not link to it, allowing me to safely remove glitz
20 > > later without having had a broken system at any time.
21 > >
22 > > What do you think? Thanks
23 >
24 > Ideally, the build system(s) involved would have options to explicitly
25 > disable linking against the deprecated library.
26 >
27 > Barring that possibility, something like your sandbox idea seems like
28 > the second-best solution.
29 >
30 > On par with the the sandbox idea would be to migrate the deprecated
31 > library to a directory which is not included in the default library
32 > search path, and to use a global LD_LIBRARY_PATH setting so that your
33 > apps can find it until they are rebuilt. Then you could execute your
34 > rebuilds in an environment with a modified LD_LIBRARY_PATH value that
35 > excludes the path of the deprecated library.
36
37 Didn't think about that last LD_LIBRARY_PATH option, looks easier for
38 now. Thanks

Attachments

File name MIME type
signature.asc application/pgp-signature