Gentoo Archives: gentoo-alt

From: Jeremy Olexa <darkside@g.o>
To: gentoo-alt@l.g.o
Subject: [gentoo-alt] stripping files that are not writable
Date: Tue, 02 Dec 2008 17:12:42
Message-Id: 90b936c0812020912s2773cb2dx8ef4dc7f46c418b4@mail.gmail.com
1 It has become apparent to me that portage's stripping feature does not
2 work if the files are not writeable[1]. Gentoo Linux doesn't notice
3 this 'issue' because root can copy over files that are -w. So, that
4 leaves us with a few options per-package. I will spell out my ideas
5 below:
6
7 Idea 1:
8 chmod +w in the src_install() phase
9 stripping gets called
10 chmod -w in pkg_postinstall() phase
11
12 Pro's: files are stripped, all is well.
13 Con's: Ugly hacks in ebuilds, more diff's compared to gentoo-x86. Have
14 to investigate on a per-package basis.
15
16 Idea 2:
17 Something like: use prefix? && FEATURES=nostrip
18
19 Pro's: we don't try to alter file permissions. cleaner ebuilds, less
20 diffs. Easiest to implement
21 Con's: Files are not stripped - Do we care?
22
23 Idea 3:
24 Implement something in portage to check permissions, alter them, strip
25 them, revert permissions.
26
27 Pro's: ebuilds are untouched. works without Prefix devs getting
28 involved after initial effort. End result is most similar to Gentoo
29 Linux
30 Con's: expensive, probably more so on the odd archs. man-hours to
31 implement & test.
32
33 So..thoughts?
34 -Jeremy
35
36 [1]:
37 x86_64-pc-linux-gnu-strip: unable to copy file
38 '/public/tmp/linux-64/portage/dev-libs/openssl-0.9.8i/image/home/jolexa/portage/linux-64/usr/lib/libssl.so.0.9.8';
39 reason: Permission denied
40 % 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
41 -r-xr-xr-x 1 jolexa minstaff 361857 2008-12-02 11:09
42 /public/tmp/linux-64/portage/dev-libs/openssl-0.9.8i/image/home/jolexa/portage/linux-64/usr/lib/libssl.so.0.9.8*

Replies

Subject Author
Re: [gentoo-alt] stripping files that are not writable Fabian Groffen <grobian@g.o>