Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] gentoo-sources, udev circular dependency
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Markus09
Tux's lil' helper
Tux's lil' helper


Joined: 22 Mar 2013
Posts: 78

PostPosted: Fri Mar 22, 2013 9:25 pm    Post subject: [SOLVED] gentoo-sources, udev circular dependency Reply with quote

Hallo!

I'm currently installing a new gentoo and came to the problem of updating to the new udev with kmod when trying to emerge gentoo-sources.

The output of emerge is here:
http://i46.tinypic.com/2jd2lco.png

The hint to "disable USE flags" to get rid of some dependencies does not give me a solution as there are no USE flags which would pull packages that are not absolute necessary, as this is a fresh install, with no USE flags in make.conf (so far) and the standard 13.0 profile.

Can you point me to somewhere, so I can solve this problem?

Regards,

Markus


Last edited by Markus09 on Sat Mar 23, 2013 9:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
shdcn
n00b
n00b


Joined: 11 Feb 2013
Posts: 27
Location: Istanbul/Turkey

PostPosted: Fri Mar 22, 2013 10:44 pm    Post subject: Reply with quote

Code:
emerge --unmerge module-init-tools
add kmod to your USE flags in make.conf
emerge gentoo-sources


This worked for me back then.
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Sat Mar 23, 2013 12:16 am    Post subject: Reply with quote

Markus09,

Try doing an
Code:
emerge --sync && emerge -uavDN @world

That should pull in udev-197 and fix the block
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
Markus09
Tux's lil' helper
Tux's lil' helper


Joined: 22 Mar 2013
Posts: 78

PostPosted: Sat Mar 23, 2013 12:57 pm    Post subject: Reply with quote

"module-init-tools" isn't present at the system so unmerge yielded "Couldn't find 'module-init-tools' to unmerge".
The change in the USE flags in make.conf didn't change the result in the emerge.

Also the
Code:
emerge --sync && emerge -uavDN @world

came to the same error.
As the @world is only available in portage 2.2, can this be a problem?
I'm currently using the stable 2.1.11.55 portage in the default/linux/x86/13.0 profile.

Edit: I unmasked and installed portage 2.2 for testing, the result is the same.
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Sat Mar 23, 2013 2:00 pm    Post subject: Reply with quote

Markus09 wrote:
"module-init-tools" isn't present at the system so unmerge yielded "Couldn't find 'module-init-tools' to unmerge".
The change in the USE flags in make.conf didn't change the result in the emerge.

Also the
Code:
emerge --sync && emerge -uavDN @world

came to the same error.
As the @world is only available in portage 2.2, can this be a problem?
I'm currently using the stable 2.1.11.55 portage in the default/linux/x86/13.0 profile.

Edit: I unmasked and installed portage 2.2 for testing, the result is the same.

I have sys-apps/portage-2.1.11.55 and emerge -uavDN @world works fine:
Code:
xen ~ #  emerge -uavDN @world

These are the packages that would be merged, in order:

Calculating dependencies... done!

Total: 0 packages, Size of downloads: 0 kB

Nothing to merge; would you like to auto-clean packages? [Yes/No]

I don't have kmod in USE so I would suggest removing it. udev-186 is blocking udev-init-scripts so unmerge or depclean it. You might have to unmerge virtual/udev first.
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
Markus09
Tux's lil' helper
Tux's lil' helper


Joined: 22 Mar 2013
Posts: 78

PostPosted: Sat Mar 23, 2013 2:28 pm    Post subject: Reply with quote

I just was curious about the "@" before the world. The command itself took it at portage 2.1.11.55 with the @, but I didn't know if there might be something difference in portage 2.2.
(... so I tried/asked)

A
Code:
emerge --info | grep USE | grep kmod | wc -l

gave me a
Code:
0

So kmod is not in the USE flags at my machine. (It was only for trying the case "shdcn" suggested)

I now did a depclean on udev, now the block is away (thanks!), but the circular dependency still stops emerge from emerging:
http://tinypic.com/r/15n7p13/6

I tried to manually edit the modutils ebuild and removed the USE flag "tools" from the kmod dependency, so there should be no USE flag reverse dependency problem, but then emerge seems not to accept the ebuild as the digest verification fails. With this modification emerge wanted to install udev-171, which is not intended.
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Sat Mar 23, 2013 3:42 pm    Post subject: Reply with quote

Markus09 wrote:
I tried to manually edit the modutils ebuild and removed the USE flag "tools" from the kmod dependency, so there should be no USE flag reverse dependency problem, but then emerge seems not to accept the ebuild as the digest verification fails. With this modification emerge wanted to install udev-171, which is not intended.

You shouldn't modify an ebuild like that. It should be done in a local overlay.

If you want to change the use for a specific package you can set it in package.use. To test the system-wide impact USE="someflag" emerge -pv package.
What is your profile set to :?:

Paste back emerge --info
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
Markus09
Tux's lil' helper
Tux's lil' helper


Joined: 22 Mar 2013
Posts: 78

PostPosted: Sat Mar 23, 2013 5:29 pm    Post subject: Reply with quote

I was not aware, that it is also possible to override ebuild dependencies with a USE flag in package.use.

My Profile is set:
http://tinypic.com/r/35bz7si/6

Code:
emerge --info | less
gives me:
http://tinypic.com/r/122zq8k/6
http://tinypic.com/r/350jy2w/6

Edit:
As the pulled in virtual/modutils is only a virtual package with no actual contents or dependencies which would not be fulfilled after the install, I thought of a "force" install. I searched the web and the emerge man page, but didn't find any such option. Do you know of such a thing?

Edit2:
Just read and read the error message again and came to
Code:
USE="-kmod" ; emerge -av udev

So at least udev-197-r8 is now on the system.
But kmod-12-r1 is still missing.
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Sat Mar 23, 2013 6:25 pm    Post subject: Reply with quote

Markus09,

How about doing us a favor and emerge wgetpaste then emerge --info|wgetpaste and return the link

If you are unable to emerge it then just open http://pastebin.com/ in the browser and paste the text there.

It would be much easier all around if I or someone else could download the page to grep it :wink:

Also are you intending to run a server or desktop installation :?:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Sat Mar 23, 2013 6:25 pm    Post subject: Reply with quote

Code:
emerge -avuND virtual/modutils
produces?
if nothing
Code:
emerge -av virtual/modutils

_________________
Defund the FCC.
Back to top
View user's profile Send private message
Markus09
Tux's lil' helper
Tux's lil' helper


Joined: 22 Mar 2013
Posts: 78

PostPosted: Sat Mar 23, 2013 6:30 pm    Post subject: Reply with quote

Merged it (I was trying the app-text/pastbin which seems not to work with the current pastebin api):

emerge --info|wgetpaste:
http://bpaste.net/show/85933

This installation should be for some cross-compilations (Gentoo on Raspeberry PI, Gentoo on Beaglebone) for now. So I chose the generic 13.0 profile, and non of the server oder desktop versions.


Last edited by Markus09 on Sat Mar 23, 2013 6:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
Markus09
Tux's lil' helper
Tux's lil' helper


Joined: 22 Mar 2013
Posts: 78

PostPosted: Sat Mar 23, 2013 6:34 pm    Post subject: Reply with quote

Code:
emerge -avuND virtual/modutils
produces
http://bpaste.net/show/85937/
(an error)

Code:
emerge -av virtual/modutils
produces
http://bpaste.net/show/85938/
(an error)

The difference with the DEEP emerge is only, that udev would be re-emerged with the kmod USE flag.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Sat Mar 23, 2013 6:44 pm    Post subject: Reply with quote

does
Code:
emerge -s modutils
show sys-apps/modutils installed?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Markus09
Tux's lil' helper
Tux's lil' helper


Joined: 22 Mar 2013
Posts: 78

PostPosted: Sat Mar 23, 2013 6:45 pm    Post subject: Reply with quote

modutils is not installed:
http://bpaste.net/show/85941/
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Sat Mar 23, 2013 6:55 pm    Post subject: Reply with quote

Code:
emerge -1 kmod
if that works
Code:
emerge -1  virtual/modutils

_________________
Defund the FCC.
Back to top
View user's profile Send private message
Markus09
Tux's lil' helper
Tux's lil' helper


Joined: 22 Mar 2013
Posts: 78

PostPosted: Sat Mar 23, 2013 7:07 pm    Post subject: Reply with quote

The oneshot emerge
Code:
emerge -1 kmod

did give me the same circular error as before (kmod->modutils->kmod)

I also tried putting "virtual/modutils-0" in /etc/portage/make.profile/package.provided (even if the man page of portage says "you shouldn't do that"), but it also didn't help.
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Sat Mar 23, 2013 7:15 pm    Post subject: Reply with quote

Markus09,

Did you finagle package.use, accept_keywords and/or any other files in /etc/portage :?:

Can you please paste them and make,conf :?:

I just did a shoot-from-the-hip hardened install and didn't encounter any problems like this :?
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
shdcn
n00b
n00b


Joined: 11 Feb 2013
Posts: 27
Location: Istanbul/Turkey

PostPosted: Sat Mar 23, 2013 7:26 pm    Post subject: Reply with quote

You may try installing all these packages one by one with --nodeps option. This will probably solve circular dependency.
Back to top
View user's profile Send private message
Markus09
Tux's lil' helper
Tux's lil' helper


Joined: 22 Mar 2013
Posts: 78

PostPosted: Sat Mar 23, 2013 7:26 pm    Post subject: Reply with quote

cd /etc/portage
cat package.use | wgetpaste
-> http://bpaste.net/show/85947/
The comments allowed me to install udev without kmod.

I do not have a accept_keywords yet.

cat make.conf | wgetpaste
-> http://bpaste.net/show/85949/

package.unmask and package.keywords are empty so wgetpaste says "Nothing to paste."

Quote:
I just did a shoot-from-the-hip hardened install and didn't encounter any problems like this :?

I'll give it a try :). I have installed gentoo from zero a few times myself, so I wondered why this is (with this install) such a problem.
May I ask you, as you mentioned it, if there is a notable difference between "normal" and "hardend" for the end-use, as I only did "normal" installs by now?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Sat Mar 23, 2013 7:52 pm    Post subject: Reply with quote

what stage3 did you use? It looks like it may have been an older version from before udev197 going stable. the udev transition is rocky.
_________________
Defund the FCC.


Last edited by DONAHUE on Sat Mar 23, 2013 7:54 pm; edited 2 times in total
Back to top
View user's profile Send private message
Markus09
Tux's lil' helper
Tux's lil' helper


Joined: 22 Mar 2013
Posts: 78

PostPosted: Sat Mar 23, 2013 7:52 pm    Post subject: Reply with quote

shdcn wrote:
You may try installing all these packages one by one with --nodeps option. This will probably solve circular dependency.


Thanks for pointing me to that option

Code:

emerge -1 --nodeps virtual/modutils
emerge -1 libxslt
emerge -1 --nodeps kmod


brought me to a system where udev and kmod are now installed ;)
Hopefully the rest of the installation is as usual ;)

@DONAHUE:
I used the "stage3-i686-20121213.tar.bz2" from http://gentoo.inode.at/releases/x86/current-stage3/
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Sat Mar 23, 2013 7:57 pm    Post subject: Reply with quote

Markus09,

WOW 8O I'm completely baffled :oops: Try an emerge again - I noticed a change with kmod when I synced about 20 minutes ago. Sometimes timing with the branches comes into account with gentoo.

Quote:
May I ask you, as you mentioned it, if there is a notable difference between "normal" and "hardend" for the end-use, as I only did "normal" installs by now?

I'm still in the process of finishing the installation. I started with the hardened toolchain so it wasn't a retrofit. Also it's going to run as a desktop, not a server.

I'm doing it more for the purpose of understanding the concepts of grsecurity and pax. I haven't enabled any of the security features in the kernel as of yet. The approach is to get all the apps installed and configured correctly then work my way into the security. So the computer will be dual booting a stable gentoo and hardened installations.
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Sat Mar 23, 2013 7:59 pm    Post subject: Reply with quote

You might want to clear the entries in package.use and
Code:
emerge -1uNDa virtual/modutils libxslt kmod
Also, check rc-update show for udev-postmount and delete if present.

@Bill Assume you used a current stage3 which is on the good side of the udev transition thus no problem even hardened.
_________________
Defund the FCC.


Last edited by DONAHUE on Sat Mar 23, 2013 8:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Sat Mar 23, 2013 8:04 pm    Post subject: Reply with quote

Markus09 wrote:
shdcn wrote:
You may try installing all these packages one by one with --nodeps option. This will probably solve circular dependency.


Thanks for pointing me to that option

Code:

emerge -1 --nodeps virtual/modutils
emerge -1 libxslt
emerge -1 --nodeps kmod


brought me to a system where udev and kmod are now installed ;)
Hopefully the rest of the installation is as usual ;)

@DONAHUE:
I used the "stage3-i686-20121213.tar.bz2" from http://gentoo.inode.at/releases/x86/current-stage3/

That looks like what did you in :D

I used the stage3 from http://distfiles.gentoo.org/releases/amd64/autobuilds/current-stage3/

They are somewhat newer stage3-x32-20130130.tar.bz2 31-Jan-2013 03:37 174M

I'll have to remember the --nodeps option myself :D
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
Markus09
Tux's lil' helper
Tux's lil' helper


Joined: 22 Mar 2013
Posts: 78

PostPosted: Sat Mar 23, 2013 8:07 pm    Post subject: Reply with quote

:o an x32 stage3 in the amd64 autobuild folder, ... I would never came to this
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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