1 |
On Fri, Nov 9, 2012 at 10:32 AM, William Hubbs <williamh@g.o> wrote: |
2 |
> That has been done already by toolchain a while back. Take a look at the |
3 |
> code in toolchain-funcs.eclass. There are very few platforms where this |
4 |
> function does anything at all these days. It would just be a matter of |
5 |
> removing linux from the platforms it supports. |
6 |
|
7 |
My concern isn't that the code won't do what you're expecting it to. |
8 |
I have every confidence that the files will move to exactly where you |
9 |
want them to go. |
10 |
|
11 |
My concern is all the downstream effects after that. Does anything |
12 |
hard-code a path in /? Do any config files in /etc reference those |
13 |
paths, maybe for plugins/etc? What about linking - will we have any |
14 |
issues if core system binaries are linked to paths in /? |
15 |
|
16 |
> Since applying the patch itself will not force any rebuilds, it should |
17 |
> just end up being a natural migration; as things are rebuilt the |
18 |
> libraries will move from /lib to /usr/lib with no harm being done. |
19 |
|
20 |
Except to anything that depends on those libraries being in /lib. |
21 |
Maybe that is nothing, but until you test the migration you don't |
22 |
know. |
23 |
|
24 |
Testing doesn't mean changing the eclass, installing bzip2, and noting |
25 |
that the library moves to /usr. It means then testing anything that |
26 |
depends on bzip2 and making sure that they weren't broken as a result. |
27 |
|
28 |
Oh, and if everything doesn't move overnight then packages could |
29 |
migrate in almost any order, which means you have to look out for |
30 |
potential race conditions. |
31 |
|
32 |
I would hope that the main issue is going to be linking and perhaps |
33 |
@preserved-libs would help with that if it ever becomes stable. |
34 |
However, when moving so many libraries you need to think carefully |
35 |
about testing. How many things depend on zlib or ncurses or libcap or |
36 |
pam or libpcre? |
37 |
|
38 |
Rich |