1 |
Peter Alfredsen <peter.alfredsen@×××××.com> wrote: |
2 |
> On Friday 15 June 2007, Alexander Skwar wrote: |
3 |
|
4 |
>> So I tried to create the file in /etc/portage. Contents: |
5 |
>> |
6 |
>> --($:~)-- cat /etc/portage/package.provided |
7 |
>> kde-base/kppp-3.5.7 |
8 |
>> net-dialup/ppp-2.4.4-r8 |
9 |
> [...] |
10 |
>> Obviously, I'm doing something wrong. |
11 |
>> |
12 |
>> How do I do it right? |
13 |
> |
14 |
> See: |
15 |
> http://marc.info/?l=gentoo-user&m=114173922424811&w=2 |
16 |
> Basically: |
17 |
> mkdir /etc/portage/profile |
18 |
> cp /etc/portage/package.provided /etc/portage/profile/package.provided |
19 |
> |
20 |
> Try it. |
21 |
|
22 |
Works. Difference to what I did: You suggested to have the |
23 |
file in the /etc/portage/profile directory. I had it directly |
24 |
in /etc/portage. Mistake I made: I overlooked the following |
25 |
from the man page: |
26 |
|
27 |
,----[ man portage ] |
28 |
| /etc/portage/profile/ |
29 |
| site-specific overrides of /etc/make.profile/ |
30 |
`---- |
31 |
|
32 |
> You might want to leave out the version numbers from kppp and ppp (Think |
33 |
> of what happens when kppp 3.5.8 comes out or when ppp-2.4.4-r9 comes out). |
34 |
|
35 |
Well, but read the man page for portage: |
36 |
|
37 |
,----[ man portage, package.provided section ] |
38 |
| Format: |
39 |
| - comments begin with # |
40 |
| - one DEPEND atom per line |
41 |
| - relational operators are not allowed |
42 |
| - must include a version |
43 |
`---- |
44 |
|
45 |
Also see what happens, when you leave out the version number: |
46 |
|
47 |
--($:~)-- Gestoppt sudo emerge -DuvatN world |
48 |
Invalid package name in package.provided: net-dialup/ppp |
49 |
Invalid package name in package.provided: kde-base/kppp |
50 |
See portage(5) for correct package.provided usage. |
51 |
|
52 |
--($:~)-- cat /etc/portage/profile/package.provided |
53 |
kde-base/kppp |
54 |
net-dialup/ppp |
55 |
|
56 |
OTOH: I agree with you. It would/might be better, if the |
57 |
version number would not need to be included. |
58 |
|
59 |
Cheers and thanks for the help, |
60 |
|
61 |
Alexander Skwar |
62 |
|
63 |
-- |
64 |
gentoo-user@g.o mailing list |