1 |
On 02-12-2008 11:12:40 -0600, Jeremy Olexa wrote: |
2 |
> It has become apparent to me that portage's stripping feature does not |
3 |
> work if the files are not writeable[1]. Gentoo Linux doesn't notice |
4 |
> this 'issue' because root can copy over files that are -w. So, that |
5 |
> leaves us with a few options per-package. I will spell out my ideas |
6 |
> below: |
7 |
> |
8 |
> Idea 1: |
9 |
> chmod +w in the src_install() phase |
10 |
> stripping gets called |
11 |
> chmod -w in pkg_postinstall() phase |
12 |
> |
13 |
> Pro's: files are stripped, all is well. |
14 |
> Con's: Ugly hacks in ebuilds, more diff's compared to gentoo-x86. Have |
15 |
> to investigate on a per-package basis. |
16 |
> |
17 |
> Idea 2: |
18 |
> Something like: use prefix? && FEATURES=nostrip |
19 |
|
20 |
that would just be set in the profiles, like it is for almost all |
21 |
platforms ( :( ) |
22 |
|
23 |
> Pro's: we don't try to alter file permissions. cleaner ebuilds, less |
24 |
> diffs. Easiest to implement |
25 |
> Con's: Files are not stripped - Do we care? |
26 |
> |
27 |
> Idea 3: |
28 |
> Implement something in portage to check permissions, alter them, strip |
29 |
> them, revert permissions. |
30 |
> |
31 |
> Pro's: ebuilds are untouched. works without Prefix devs getting |
32 |
> involved after initial effort. End result is most similar to Gentoo |
33 |
> Linux |
34 |
> Con's: expensive, probably more so on the odd archs. man-hours to |
35 |
> implement & test. |
36 |
> |
37 |
> So..thoughts? |
38 |
|
39 |
Idea 4: |
40 |
implement Idea 1 or something similar in Portage's sources (prep_strip.sh) |
41 |
|
42 |
> [1]: |
43 |
> x86_64-pc-linux-gnu-strip: unable to copy file |
44 |
> '/public/tmp/linux-64/portage/dev-libs/openssl-0.9.8i/image/home/jolexa/portage/linux-64/usr/lib/libssl.so.0.9.8'; |
45 |
> reason: Permission denied |
46 |
> % ls -l /public/tmp/linux-64/portage/dev-libs/openssl-0.9.8i/image/home/jolexa/portage/linux-64/usr/lib/libssl.so.0.9.8 |
47 |
> -r-xr-xr-x 1 jolexa minstaff 361857 2008-12-02 11:09 |
48 |
> /public/tmp/linux-64/portage/dev-libs/openssl-0.9.8i/image/home/jolexa/portage/linux-64/usr/lib/libssl.so.0.9.8* |
49 |
|
50 |
|
51 |
-- |
52 |
Fabian Groffen |
53 |
Gentoo on a different level |