Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pkgcore removes needed packages
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
MalleRIM
Guru
Guru


Joined: 23 Jul 2007
Posts: 563
Location: China

PostPosted: Tue May 20, 2008 3:37 pm    Post subject: pkgcore removes needed packages Reply with quote

I just tried out pkgcore. When I ran pmerge --clean it removed 70 packages portage and paludis left installed. I just removed them to try what the effect would be. For example "man" didn't work anymore due to removed lzma-utils. As far as I have found out, it removes any packages that are in "DEPEND" but not in "RDEPEND". Why does it do that? Is it because only RDEPEND is specified to contain runtime dependencies?
Back to top
View user's profile Send private message
g2g591
Apprentice
Apprentice


Joined: 17 Sep 2007
Posts: 245

PostPosted: Tue May 20, 2008 4:01 pm    Post subject: Reply with quote

this is why you use -p . many people have been burned by NOT looking at emerge -p --depclean or the equivalants for their package manager of choice. oh , and pkgcore has been nothing but a backtrace emiter here. (its called failure handling people!!)
Back to top
View user's profile Send private message
MalleRIM
Guru
Guru


Joined: 23 Jul 2007
Posts: 563
Location: China

PostPosted: Tue May 20, 2008 4:24 pm    Post subject: Reply with quote

i used -a and deliberately let pkgcore removed what it wanted to because I wanted to know what was going to happen (i'm not dependent on the machine I tried it on). i didn't check through all of the list though.
btw: emerge doesn't want do reinstall any of these packages either. I haven't tried paludis because I removed it.
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 5710
Location: Removed by Neddy

PostPosted: Tue May 20, 2008 7:29 pm    Post subject: Reply with quote

pkgcore --clean -Bp

would of been better (sorry hindsight is great )
pkgcore will remove build-time dependencies. Bad ebuilds which don't put all packages into RDEPEND correctly.
_________________
The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king
Back to top
View user's profile Send private message
agaffney
Retired Dev
Retired Dev


Joined: 28 May 2003
Posts: 104
Location: St. Charles, MO

PostPosted: Tue May 20, 2008 7:31 pm    Post subject: Reply with quote

The same thing would have happened with 'emerge --depclean'. If a package that's needed at runtime is not listed in RDEPEND (and gets removed because of this), it's a bug in the ebuild and not at all the package manager's fault.
Back to top
View user's profile Send private message
MalleRIM
Guru
Guru


Joined: 23 Jul 2007
Posts: 563
Location: China

PostPosted: Tue May 20, 2008 8:00 pm    Post subject: Reply with quote

@Naib: I'll try that, thanks (you probably mean pmerge instead of pkgcore). I thought this was due to badly written ebuilds. But a whole lot of ebuilds seem to be badly written.
@agaffany: The same thing didn't happen with emerge --depclean though.

edit: it works, thanks a lot. You are not warned about this on the pkgcore homepage although portage and paludis do this differently. Can I somehow enable --with-built-depends by default? I don't want to keep installing and uninstalling packages whenever a new version is released. It can be a useful feature but not for me. And not with bad ebuilds in the tree.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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