1 |
begin quote |
2 |
On Sat, 15 Nov 2003 13:16:13 +0000 |
3 |
Stroller <root@××××××××××××××××××.uk> wrote: |
4 |
|
5 |
> |
6 |
> On Nov 13, 2003, at 3:28 pm, Spider wrote: |
7 |
> |
8 |
> > begin quote |
9 |
> > On Wed, 12 Nov 2003 18:46:13 -0500 |
10 |
> > Aron Griffis <agriffis@g.o> wrote: |
11 |
> > |
12 |
> >> Spider wrote: [Sun Nov 09 2003, 07:02:38PM EST] |
13 |
> >>> Could all ye developers take the time to go through your packages |
14 |
> >>> and |
15 |
> >>> check that there are -no- references to ${D} ${S} , ${W} in pkg_* |
16 |
> >>> statements? |
17 |
> >> |
18 |
> >> All the offenders (assuming this is actually an offense): |
19 |
> > |
20 |
> > |
21 |
> > More interesting examples: |
22 |
> > ./net-news/leafnode/leafnode-2.0.0_alpha20030621.ebuild |
23 |
> > pkg_postinst() { |
24 |
> > mkdir -p |
25 |
> > /var/spool/news/ |
26 |
> > {leaf.node,failed.postings,interesting.groups,out.going} |
27 |
> > mkdir -p |
28 |
> > /var/spool/news/message.id/{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8, |
29 |
> > 9}{0 |
30 |
> > ,1,2,3,4,5,6,7,8,9} |
31 |
> > chown -R news:news /var/spool/news |
32 |
> |
33 |
> I think the Leafnode2 eBuild is broken, anyway. It seems to install |
34 |
> into /var/lib/spool/news/ |
35 |
> See <http://bugs.gentoo.org/show_bug.cgi?id=25713> - I have attached a |
36 |
> |
37 |
> copy of the ebuild which seems to work here. |
38 |
> |
39 |
|
40 |
Proposed version still has theese lines : |
41 |
|
42 |
cat ${S}/README_FIRST | while read line ; |
43 |
do |
44 |
einfo $line |
45 |
done |
46 |
|
47 |
|
48 |
And when you build packages, you never unpack the source, therefore ${S} |
49 |
will not reference to any place where README_FIRST is. |
50 |
|
51 |
do zcat ${ROOT}/usr/share/doc/${P}/README_FIRST.gz instead. |
52 |
|
53 |
|
54 |
And your "mkdir -p" lines are also broken, as theese will fail if I |
55 |
expose ROOT for installation to some system that isn't / (also for |
56 |
package installation) |
57 |
|
58 |
theese should refer to ${ROOT}/var/spool .... |
59 |
|
60 |
(check baselayout for a good example of things to do or not do) |
61 |
|
62 |
Anyhow, is there a good reason why you create theese in the pkg_ part |
63 |
instead of in src_install after you have done the main installation? |
64 |
I'd consider this broken behaviour, as any special case isn't documented |
65 |
in the build either. |
66 |
|
67 |
|
68 |
try "dodir |
69 |
${D}/var/spool/news/message.id/{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8, |
70 |
9}{0,1,2,3,4,5,6,7,8,9}" instead |
71 |
|
72 |
|
73 |
|
74 |
|
75 |
//Spider |
76 |
|
77 |
|
78 |
|
79 |
|
80 |
|
81 |
|
82 |
-- |
83 |
begin .signature |
84 |
This is a .signature virus! Please copy me into your .signature! |
85 |
See Microsoft KB Article Q265230 for more information. |
86 |
end |