Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dependancy Problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
evan18h
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2004
Posts: 83

PostPosted: Thu Dec 02, 2004 2:43 am    Post subject: Dependancy Problems Reply with quote

I use the linux kernel 2.6 with built in Alsa support so I shouldn't need the alsa-drivers, yet emerge wants to add it in becuase I am using alsa-tools so I can adjust the sound with amixer. So I tried injecting the alsa-drivers, that doesn't help. Then I tried masking all the alsa-driver versions so they will stop bothering me, but that doesn't work becuase I get a dependancy problem which stops emerge from doing anything. How can I tell emerge that I don't want the alsa-drivers with out messing more things up.
Back to top
View user's profile Send private message
SZwarts
l33t
l33t


Joined: 13 Oct 2003
Posts: 629
Location: Sydney, NSW, Australia

PostPosted: Thu Dec 02, 2004 3:04 am    Post subject: Reply with quote

Well I have a 2.6 kernel too, so I have the same "problem". But injecting here did work. I was only a little bit confused that the inject file package.provided only worked for me if it was in a different directory than package.use.

To solve it I did:
Code:

$ su
password:
$ cd /etc/portage
$ mkdir profile
$ cat > package.provided
media-sound/alsa-driver
^D


package.use file is located in /etc/portage.
So I'm a little bit confused why that is in a different directory, but anyway it does work... (here)
_________________
only when it is dark enough, can you see the stars
Back to top
View user's profile Send private message
TrueDFX
Retired Dev
Retired Dev


Joined: 02 Jun 2004
Posts: 1348

PostPosted: Thu Dec 02, 2004 3:10 am    Post subject: Reply with quote

2.6 kernel here too, and no problem. alsa-driver isn't installed, neither anything on my system nor alsa-tools wants it installed.

Did you tell portage to remove the kernel sources, perhaps? If so, you should reinstall it and if you just want the free disk space, remove the /usr/src/linux-xxx directory manually.
Back to top
View user's profile Send private message
evan18h
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2004
Posts: 83

PostPosted: Thu Dec 02, 2004 3:20 am    Post subject: Reply with quote

TrueDFX wrote:
2.6 kernel here too, and no problem. alsa-driver isn't installed, neither anything on my system nor alsa-tools wants it installed.

Did you tell portage to remove the kernel sources, perhaps? If so, you should reinstall it and if you just want the free disk space, remove the /usr/src/linux-xxx directory manually.


No I never used gentoo-sources, I downloaded the kernel source from kernel.org
Back to top
View user's profile Send private message
TrueDFX
Retired Dev
Retired Dev


Joined: 02 Jun 2004
Posts: 1348

PostPosted: Thu Dec 02, 2004 3:29 am    Post subject: Reply with quote

evan18h wrote:
No I never used gentoo-sources, I downloaded the kernel source from kernel.org
That's your problem, then. Your kernel provides its own alsa driver, portage doesn't know you have a 2.6 kernel, so portage doesn't know you have an alsa driver. You can install an unpatched 2.6 kernel tree (and apply patches manually, if you want) with
Code:
emerge development-sources
or if you want a specific version
Code:
emerge =development-sources-2.6.8.1

Or use what's already posted to not have to install anything extra, if that works :)
Back to top
View user's profile Send private message
SZwarts
l33t
l33t


Joined: 13 Oct 2003
Posts: 629
Location: Sydney, NSW, Australia

PostPosted: Thu Dec 02, 2004 5:26 am    Post subject: Reply with quote

I have a kernel from kernel.org too, It is not necessary to install the development-sources to get rid of this message. Injecting should work ofr alsa-driver should work, since if it doesn't the complete inject function is useles, because this is exactly why the inject function was designed. So are you very sure that you injected it in the right way? Because when I did what I wrote here, portage stopped asking for the alsa-driver.
_________________
only when it is dark enough, can you see the stars
Back to top
View user's profile Send private message
evan18h
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2004
Posts: 83

PostPosted: Thu Dec 02, 2004 5:39 am    Post subject: Reply with quote

I injected like this:
emerge -i media-sound/alsa-driver-1.0.6

and it still shows up when I run:
emerge -pvuD world

now you said that you got it working with your
way.... I am kind of confused about what you did, I know
you typed the whole thing out step for step, but it doesn't
seem to go anywhere when I do it
Back to top
View user's profile Send private message
SZwarts
l33t
l33t


Joined: 13 Oct 2003
Posts: 629
Location: Sydney, NSW, Australia

PostPosted: Thu Dec 02, 2004 5:57 am    Post subject: Reply with quote

evan18h wrote:
I injected like this:
emerge -i media-sound/alsa-driver-1.0.6


This is the old way of injecting which doesn't work anymore.
The new one of injecting is listing the package in the file package.provided

Form:
Portage 2.0.51 released
Code:

Improved handling of injected packages

The use of --inject is deprecated for the time being. Injecting packages should now be done by adding the package to /etc/portage/profiles/package.provided using the full name (<category>/<name>-<version>) instead.

_________________
only when it is dark enough, can you see the stars
Back to top
View user's profile Send private message
evan18h
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2004
Posts: 83

PostPosted: Thu Dec 02, 2004 6:31 am    Post subject: Reply with quote

hey I think your way worked, thanks a bunch.
I was a little confused about the name of the folder profile, because at
first you called it profile but later you called it profiles, with a S at the end.
Back to top
View user's profile Send private message
TrueDFX
Retired Dev
Retired Dev


Joined: 02 Jun 2004
Posts: 1348

PostPosted: Thu Dec 02, 2004 6:41 am    Post subject: Reply with quote

1: --inject still works. It's deprecated but still functional.
2: alsa-driver-1.0.6a is marked stable for x86 and is newer than the injected alsa-driver-1.0.6, which is why portage wants to install the new version.
3: /etc/portage/profile/package.provided is the correct pathname, but there's a missing command in the instructions in the second post that everyone so far (myself included) overlooked:
SZwarts wrote:
$ mkdir profile
$ cat > package.provided
Between those two commands, you should enter 'cd profile'.
4: Since you don't have alsa-driver, injecting it or adding it to package.provided is really just a hack. The easiest solution, perhaps, but the clean way would be:
Code:
$ mkdir /etc/portage/profile
$ cd /etc/portage/profile
$ echo 'sys-kernel/development-sources-2.6.8.1' >> package.provided
$ echo 'virtual/alsa sys-kernel/development-sources' >> virtuals
Replacing 2.6.8.1 with the version number of the installed kernel.
(Update:
5: Yes, it's /etc/portage/profile, not /etc/portage/profiles. The 'profiles' name is a typo in the original text.)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum