1 |
Helmut Jarausch wrote: |
2 |
> On 08/24/10 19:17:05, Arttu V. wrote: |
3 |
>> On 8/24/10, Helmut Jarausch<jarausch@××××××××××××××××.de> wrote: |
4 |
>>> On 08/24/10 13:45:05, Robin Atwood wrote: |
5 |
>>>> On Tuesday 24 August 2010, Helmut Jarausch wrote: |
6 |
>>>>> Hi, |
7 |
>>>>> |
8 |
>>>>> I'd like to create an ebuild (in my local overlay) which refers |
9 |
>> to |
10 |
>>>> a |
11 |
>>>>> local distribution file. |
12 |
>>>>> |
13 |
>>>>> I've tried |
14 |
>>>>> |
15 |
>>>>> SRC_URI="file::///usr/local/Src/MyPack.tar.bz2" |
16 |
>>>>> |
17 |
>>>>> but "file://" doesn't seem to be supported. |
18 |
>>>>> |
19 |
>>>>> Is there any alternative? |
20 |
>>>>> |
21 |
>>>>> Thanks for a hint, |
22 |
>>>>> Helmut. |
23 |
>>>>> |
24 |
>>>>> (I'm using portage-2.2._rc68) |
25 |
>>>> |
26 |
>>>> "ln -s /usr/local/Src/MyPack.tar.bz2 /usr/portage/distfiles" |
27 |
>> maybe? |
28 |
>>>> |
29 |
>>>> HTH |
30 |
>>>> -Robin |
31 |
>>> |
32 |
>>> Hi, but what do I specify for SRC_URI |
33 |
>>> |
34 |
>>> I've tried |
35 |
>>> SRC="MyPack-1.0.7.tar.gz" |
36 |
>>> SLOT="0" |
37 |
>>> KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh sparc |
38 |
>> x86" |
39 |
>>> IUSE="" |
40 |
>>> S="$WORKDIR/${P}" |
41 |
>>> src_unpack() { |
42 |
>>> unpack "${A}" |
43 |
>>> } |
44 |
>>> |
45 |
>>> But it fails saying "nothing specified for unpack" |
46 |
>>> And, indeed, |
47 |
>>> doing |
48 |
>>> ebuild --debug<PATH_to_EBUILD> unpack |
49 |
>>> shows that ${A} is the empty string. |
50 |
>>> |
51 |
>>> What am I missing? |
52 |
>>> |
53 |
>>> Thanks a lot, it drives me nuts, |
54 |
>>> Helmut. |
55 |
>> |
56 |
>> Place a RESTRICT="fetch" in the ebuild, and copy the tarball manually |
57 |
>> to distfiles dir. |
58 |
> |
59 |
> Unfortunately, now I get MyPack-1.0.7.tar.gz does not exist (though it |
60 |
> is in /usr/portage/distfiles) |
61 |
|
62 |
AFAIK there is no variable SRC that ebuild/portage would know of, but |
63 |
there is SRC_URI. Change to that and try to check for other similar, but |
64 |
hard to notice problems in the ebuild. |
65 |
|
66 |
-- |
67 |
Arttu V. -- Running Gentoo is like running with scissors |