Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge --depclean & revdep-rebuild
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
nss
Guru
Guru


Joined: 04 Oct 2004
Posts: 389

PostPosted: Fri Feb 10, 2006 1:59 am    Post subject: emerge --depclean & revdep-rebuild Reply with quote

I'm not able to provide much info as I decided to reboot before grabbing any error messages but... after running
Code:
emerge --update --deep --newuse world
emerge --depclean
revdep-rebuild

I rebooted and now I am unable to login as a regular user at xdm prompt nor through root on any other virtual terminal. depclean and revdep-rebuild were producing some things like "ebuild not available", "order mixed up choosing randomly", "if failed in the middle, try to fix the problem and then run revdep-rebuild". How do I fix this. Can I try booting from install cd and re-running the code from above in hopes that portage will fix it?

Sorry for the vague description.
_________________
gentoo good to be true
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri Feb 10, 2006 2:19 am    Post subject: Reply with quote

http://www.gentoo.org/doc/en/handbook/handbook-ppc.xml?part=2&chap=2

Unfortunately, the dependencies are not always completely perfect, so depclean can break things. You've probably removed something important from your system. :p If you can't login at all, use the LiveCD and chroot into your system, hopefully you can fix the problem from there.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
nss
Guru
Guru


Joined: 04 Oct 2004
Posts: 389

PostPosted: Fri Feb 10, 2006 7:49 pm    Post subject: Reply with quote

I'm trying to retrieve some files. I ssh'd into the computer (while running the LiveCD) from another machine. So... I'm logged in, but how do I get files from one computer to the other?

**EDIT**: nevermind

revdep-rebuild is dangerous: This aughta teach me.

**EDIT**: excuse me. emerge --depclean
_________________
gentoo good to be true


Last edited by nss on Fri Feb 10, 2006 9:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
nss
Guru
Guru


Joined: 04 Oct 2004
Posts: 389

PostPosted: Fri Feb 10, 2006 8:42 pm    Post subject: Reply with quote

I'm reinstalling gentoo... Out of curiousity, why is my wired ethernet card at eth1? I've installed gentoo several times on this machine and it has always always been at eth0.
_________________
gentoo good to be true
Back to top
View user's profile Send private message
jomen
Guru
Guru


Joined: 04 Jan 2006
Posts: 536
Location: Leipzig, Germany

PostPosted: Fri Feb 10, 2006 9:06 pm    Post subject: Reply with quote

If you are already reinstalling - keep this for next time you do an update!
After any update - and _before_ rebooting - in fact _before_ doing anything further, you really want :) to run etc-update!
Changed configuration-files will be merged by this and if you miss this step, it can easily break your system to a state where it does not even boot anymore.
revdep-rebuild was probably not the reason here (my personal opinion - it just goes through your entire system and checks for inconsistencies and rebuilds packages witch have become inconsistant (library linking for instance after an upgrade...but it does _not_ remove things from your system)
Back to top
View user's profile Send private message
RuiP
l33t
l33t


Joined: 15 Jan 2005
Posts: 643

PostPosted: Fri Feb 10, 2006 9:18 pm    Post subject: Reply with quote

bobotoes wrote:
revdep-rebuild is dangerous: This aughta teach me.


Is not revdep-rebuild that is dangerous, is emerge emerge --depclean!

A lot of people use it, i wonder why...
Anyway, it says when started:
Quote:


*** WARNING *** --depclean is known to be broken. It is highly recommended
*** WARNING *** that `emerge --update --newuse --deep world` be ran before
*** WARNING *** commencing. However, using --depclean may still break link
*** WARNING *** level consistency within your system. `revdep-rebuild`
*** WARNING *** from app-portage/gentoolkit can help to detect breakage.
*** WARNING ***
*** WARNING *** Also study the list of packages to be cleaned for any
*** WARNING *** obvious mistakes. Packages can be manually added to the
*** WARNING *** world list by running `emerge --noreplace <atom>`.
*** WARNING ***
*** WARNING *** Make sure you have a backup.
the *** WARNING *** words on red!
Back to top
View user's profile Send private message
nss
Guru
Guru


Joined: 04 Oct 2004
Posts: 389

PostPosted: Fri Feb 10, 2006 9:54 pm    Post subject: Reply with quote

I'm trying out several different apps. Often I want to get rid of the ones I do not like. Since they can have any number of dependencies I very possibly may not need, I want to get rid of those too. I thought the method I followed (emerge -uDN world, depclean, revdep-rebuild) was a good way of getting rid of all the extra. If this is not the case. How do I go about safely getting rid of things I know longer need?
_________________
gentoo good to be true
Back to top
View user's profile Send private message
RuiP
l33t
l33t


Joined: 15 Jan 2005
Posts: 643

PostPosted: Fri Feb 10, 2006 10:51 pm    Post subject: Reply with quote

Hi,
well, no good answer (i was just pointing that it was not revdep-rebuild that do the bad things...)
I usually do it by hand after reading the emerge -p --depclean output and only delete exactly what i know it's harmless and uneeded (i read the lines of emerge.log too that refers to the apps i want to clean, to check what exactly was installed then)
It's a little tedious, but very safe. I prefer a system that works with some minor extra unusefull things that a clean system that is broken :)

Lately i've been using the excellent dep by ecatmur (unsupported software but it works great):
Clean out your world file
It tracks the dependencies and reverse dependencies and do safer cleannings and prunes. Until now it never failed with me...
Back to top
View user's profile Send private message
nss
Guru
Guru


Joined: 04 Oct 2004
Posts: 389

PostPosted: Sat Feb 11, 2006 8:21 am    Post subject: Reply with quote

I'm approaching the end of the installation and two strange things have occured. I'm not sure if they are related.

1.) After configuring the kernel, following the instructions of
Code:
Code Listing 15: Viewing all available modules
# find /lib/modules/<kernel version>/ -type f -iname '*.o' -or -iname '*.ko'

I got to
Code:
find /lib/modules/2.6.15-gentoo-r1/ -type f -iname '*.

when my hand slipped and I hit some unknown key or key combo leaving me with a prompt:
Code:
>

I tried typing "exit", "quit", "!", etc. but there was not any response until eventually the contents of the working directory were listed. I tried completing the command with
Code:
o' -or -iname '*.ko'

and that worked. I was back to the normal prompt. I continued with the install...

2.) When I got to the configuration of my bootloader, I followed the instructions and then ran:
Code:
emerge --usepkg --update yaboot

It attempted to emerge 48 packages which took several hours, finally stopping at package 40, ibm-jre-bin-1.4.2.03. It failed because it needs that one package from ibm.com.

I don't understand. Why so many packages? This doesn't seem normal to me.
_________________
gentoo good to be true
Back to top
View user's profile Send private message
jomen
Guru
Guru


Joined: 04 Jan 2006
Posts: 536
Location: Leipzig, Germany

PostPosted: Sat Feb 11, 2006 9:44 am    Post subject: Reply with quote

Quote:
I'm not sure if they are related.

The first command was just not finished typing yet - if you want type '*.ko' but miss the second ' it waits for you to continue until it gets '
You eighter finish it or quit the whole thing by hitting CTRL-c - but a malformed find command will not have done any harm - check again...
Can't comment on the second issue.
_________________
Cheers
Back to top
View user's profile Send private message
nss
Guru
Guru


Joined: 04 Oct 2004
Posts: 389

PostPosted: Sat Feb 11, 2006 7:56 pm    Post subject: Reply with quote

hmmm... does anyone have an opinion on the second observation?
_________________
gentoo good to be true
Back to top
View user's profile Send private message
Sodki
Guru
Guru


Joined: 11 Aug 2003
Posts: 419
Location: London, U.K. & Lisbon, Portugal

PostPosted: Sun Feb 12, 2006 7:24 pm    Post subject: Reply with quote

bobotoes wrote:
hmmm... does anyone have an opinion on the second observation?

Add a "--tree --verbose" so that you can see what actually depends on what and why. The Java dependency fails because you have to fetch the files by hand before emerging it. Is it related to licencing issues. I hate non-free software...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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