1 |
On 月, 2002-09-09 at 22:16, Andy Arbon wrote: |
2 |
> -----BEGIN PGP SIGNED MESSAGE----- |
3 |
Andy, |
4 |
|
5 |
Try removing the empty src_compile function, I think that is the |
6 |
problem. |
7 |
|
8 |
Should be |
9 |
|
10 |
src_unpack() { |
11 |
unpack ${A} |
12 |
} |
13 |
|
14 |
src_install () { |
15 |
dodir ${D}/usr/share/icons/fvwm |
16 |
mv ${WORKDIR}/* ${D}/usr/share/icons/fvwm/ |
17 |
} |
18 |
|
19 |
Actually you can also get rid of the src_unpack() function too as it is |
20 |
the default unpack. There are a number of other changes you should make |
21 |
too. See below |
22 |
|
23 |
> Hash: SHA1 |
24 |
> |
25 |
> Hello, |
26 |
> |
27 |
> I'm trying to produce an embuild for a very simple task, but I am |
28 |
> getting errors that I don't understand. |
29 |
> |
30 |
> As far as I am aware (based on careful comparisons with other ebuilds |
31 |
> that DO work) my ebuild is totally correct syntactically. I have also |
32 |
> taken a working ebuild (from gentoo, not one of my own) and transformed |
33 |
> it line by line into my ebuild and the point at which is stops working |
34 |
> is never the same place twice. |
35 |
> |
36 |
> Here is the output I get if I search for my ebuild: |
37 |
> - ----------- |
38 |
> bash-2.05a# emerge -s fvwmicons |
39 |
> Searching... -portage: aux_get(): (1) couldn't open cache entry for |
40 |
> x11-wm/fvwmicons-1.0 |
41 |
> (likely caused by syntax error or corruption in the x11-wm/fvwmicons-1.0 |
42 |
> ebuild.) |
43 |
> |
44 |
> [ Results for search key : fvwmicons ] |
45 |
> [ Applications found : 1 ] |
46 |
> |
47 |
> portage: aux_get(): (1) couldn't open cache entry for x11-wm/fvwmicons-1.0 |
48 |
> (likely caused by syntax error or corruption in the x11-wm/fvwmicons-1.0 |
49 |
> ebuild.) |
50 |
> portage: aux_get(): (1) couldn't open cache entry for x11-wm/fvwmicons-1.0 |
51 |
> (likely caused by syntax error or corruption in the x11-wm/fvwmicons-1.0 |
52 |
> ebuild.) |
53 |
> emerge: search: aux_get() failed, skipping |
54 |
> bash-2.05a# emerge -s fvwmicons |
55 |
> Searching... -portage: aux_get(): (1) couldn't open cache entry for |
56 |
> x11-wm/fvwmicons-1.0 |
57 |
> (likely caused by syntax error or corruption in the x11-wm/fvwmicons-1.0 |
58 |
> ebuild.) |
59 |
> |
60 |
> [ Results for search key : fvwmicons ] |
61 |
> [ Applications found : 1 ] |
62 |
> |
63 |
> portage: aux_get(): (1) couldn't open cache entry for x11-wm/fvwmicons-1.0 |
64 |
> (likely caused by syntax error or corruption in the x11-wm/fvwmicons-1.0 |
65 |
> ebuild.) |
66 |
> portage: aux_get(): (1) couldn't open cache entry for x11-wm/fvwmicons-1.0 |
67 |
> (likely caused by syntax error or corruption in the x11-wm/fvwmicons-1.0 |
68 |
> ebuild.) |
69 |
> emerge: search: aux_get() failed, skipping |
70 |
> |
71 |
> - ------------- |
72 |
> |
73 |
> Below is the full text of the ebuild, which is residing in |
74 |
> /usr/portage.local/x11-wm/fvwmicons/ . PORTDIR_OVERLAY is set correctly. |
75 |
> Leaving aside any other problems there might be todo with |
76 |
> layout/style/etc, why doesn't it work? Thanks |
77 |
> |
78 |
> Andy |
79 |
> |
80 |
> |
81 |
> |
82 |
> |
83 |
> |
84 |
> |
85 |
> # Copyright 1999-2002 Gentoo Technologies, Inc. |
86 |
> # Distributed under the terms of the GNU General Public License, v2 or later |
87 |
> |
88 |
> |
89 |
> S=${WORKDIR}/${P} |
90 |
You need to change P to PN, otherwise emerge will look for a directory |
91 |
fvwmicons-1.0, but the package unpacks to fvwm_icons. You will also need |
92 |
to change the package name to fvwm_icons if you want to use P or PN, the |
93 |
other option is to set S=${WORKDIR}/fvwm_icons, but I think the former |
94 |
is better |
95 |
|
96 |
> DESCRIPTION="Icons for use with FVWM" |
97 |
> SRC_URI="http://www.fvwm.org/generated/icon_download/fvwm_icons.tar.bz2" |
98 |
> HOMEPAGE="http://www.fvwm.org/" |
99 |
You need a DEPEND and SLOT |
100 |
DEPEND="x11-wm/fvwm" as it doesn't make sense to have the icons without |
101 |
the wm, the other option is virtual/glibc |
102 |
SLOT="x86" or ppc or sparc, whatever your machine is |
103 |
|
104 |
> src_install () { |
105 |
> ~ dodir /usr/share/icons/fvwm |
106 |
You don't need the ${D} here |
107 |
> ~ mv ${WORKDIR}/* ${D}/usr/share/icons/fvwm/ |
108 |
change the above to |
109 |
insinto /usr/share/icons/fvwm |
110 |
doins ${S}/* |
111 |
> } |
112 |
> |
113 |
Those changes should do what you want. |
114 |
|
115 |
> -----BEGIN PGP SIGNATURE----- |
116 |
> Version: GnuPG v1.0.7 (GNU/Linux) |
117 |
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org |
118 |
> |
119 |
> iD4DBQE9fJ86X3TTUvZURBERAmqIAKCjiYdhXuoO1hDLGkVOo1AYBBtHZACWNux5 |
120 |
> HvqWdULs7gP/6vA0xncRAA== |
121 |
> =sCXi |
122 |
> -----END PGP SIGNATURE----- |
123 |
> |
124 |
> _______________________________________________ |
125 |
> gentoo-dev mailing list |
126 |
> gentoo-dev@g.o |
127 |
> http://lists.gentoo.org/mailman/listinfo/gentoo-dev |
128 |
-- |