Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do I get depclean to leave packagages installed?
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
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Wed Apr 14, 2010 2:40 pm    Post subject: How do I get depclean to leave packagages installed? Reply with quote

I have premake-3.7 on my system and I need it to stay there. I've done emerge --oneshot =premake-3.7 but emerge --depclean still wants to remove it. How do I get depclean to leave this version alone?
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10589
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Apr 14, 2010 2:46 pm    Post subject: Reply with quote

Code:
emerge --noreplace =premake-3.7
:)
- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Wed Apr 14, 2010 2:53 pm    Post subject: Reply with quote

Aha! :D

Thanks!
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10589
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Apr 14, 2010 3:41 pm    Post subject: Reply with quote

You're welcome. To clarify what that does, --depclean only removes things that are not in your world set. premake-3.7 must've been a dependency at some point but must no longer be. Thus it's installed but not part of world. The emerge without the --oneshot or --update options forces it to be added to the world set; the --noreplace option keeps it from being unnecessarily rebuilt. A plain old
Code:
emerge =premake-3.7
would've worked but would have forced an unnecessarily rebuild.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Wed Apr 14, 2010 3:50 pm    Post subject: Reply with quote

I emerged it manually. The problem, as I see from your explanation, is that higher versions are called for as dependencies, forcing rebuilds. Thanks for filling me in. 8)
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Wed Apr 14, 2010 4:56 pm    Post subject: Reply with quote

... it won't quite work using emerge --noreplace =<package>-<version>
That will add <category>/<package> to the world file.

Using emerge --noreplace =<category>/<package>-<version>
will add the specific version to the world file.

Of course when a package depends on a higher/lower version, then up/downgrading the dependency is required (assuming it actually exists in portage, premake does not), therefore masking the dependent package would be required.
Hopefully that would not break a greater dependency chain.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Wed Apr 14, 2010 5:24 pm    Post subject: Reply with quote

I seem to be doing fine with John's suggestion, but thanks for the extra info. I'll keep it in mind if something looks funny later... like me, late at night. 8O
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Wed Apr 14, 2010 5:47 pm    Post subject: Reply with quote

Indeed, John always gives the best answers. :)

Now what I posted used to work, it seems now that it makes no difference. No idea why.
But manually adding the =......../.......<-version> to the world file does work to restrict any up/downgrading and unwanted depcleaning.
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