Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Making emerge world skip certain items
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
Dillius
Tux's lil' helper
Tux's lil' helper


Joined: 12 Mar 2005
Posts: 119

PostPosted: Wed Aug 24, 2005 3:35 pm    Post subject: Making emerge world skip certain items Reply with quote

It's been a while since i've used my Gentoo install, so I decided to sit down and run a nice "emerge -avuD world".

Wow there's a lot of stuff messing up and a few things i know i don't particularly want.

I've tried using package. mask to make it skip these items, but it doesn't seem to work.

When performing a world update, is there an easy way to make emerge skip certain items in the list?
Back to top
View user's profile Send private message
hjnenc
Veteran
Veteran


Joined: 15 Aug 2004
Posts: 1599
Location: Vienna, Austria

PostPosted: Wed Aug 24, 2005 3:56 pm    Post subject: Reply with quote

package.mask should be the right solution. What exactly did not work?
Back to top
View user's profile Send private message
Dlareh
Advocate
Advocate


Joined: 06 Aug 2005
Posts: 2102

PostPosted: Wed Aug 24, 2005 4:23 pm    Post subject: Reply with quote

I'd use package.provided
_________________
"Mr Thomas Edison has been up on the two previous nights discovering 'a bug' in his phonograph." --Pall Mall Gazette (1889)
Are we THERE yet?
Back to top
View user's profile Send private message
Dillius
Tux's lil' helper
Tux's lil' helper


Joined: 12 Mar 2005
Posts: 119

PostPosted: Wed Aug 24, 2005 9:14 pm    Post subject: Reply with quote

I put the thing i want skipped in package.mask with the same format as the ones in package.unmask, but it still tries to emerge them when i try to update world.

What exactly is the format for package.provided? And I assume it's just a list of things you technically already have placed in manually and want gentoo to skip?
Back to top
View user's profile Send private message
hjnenc
Veteran
Veteran


Joined: 15 Aug 2004
Posts: 1599
Location: Vienna, Austria

PostPosted: Thu Aug 25, 2005 7:01 am    Post subject: Reply with quote

Dillius wrote:
I put the thing i want skipped in package.mask with the same format as the ones in package.unmask, but it still tries to emerge them when i try to update world.

If it tries to emerge them but then fails with an error saying something like "package masked" the masking actually worked. However, you need this newer version to fulfill dependencies so there is no clean way not to update it.

If it tries to emerge them, but does not fail there is something wrong with your masking. Maybe a typo in the category or package name?

Dillius wrote:
What exactly is the format for package.provided? And I assume it's just a list of things you technically already have placed in manually and want gentoo to skip?

The file formats are documented in man portage. Your interpretation of package.provided is correct. Therefore, I don't think its the right way to go in your situation.
Back to top
View user's profile Send private message
Dlareh
Advocate
Advocate


Joined: 06 Aug 2005
Posts: 2102

PostPosted: Thu Aug 25, 2005 3:21 pm    Post subject: Reply with quote

Package.mask is useful for preventing specific versions from being emerged. But if you mask an entire package so it never gets emerged, then emerge will always halt and complain about the unresolvable dependency.

If you cannot disable a dependency with USE flags, then you must use package.provided to have portage think it's already installed.
_________________
"Mr Thomas Edison has been up on the two previous nights discovering 'a bug' in his phonograph." --Pall Mall Gazette (1889)
Are we THERE yet?
Back to top
View user's profile Send private message
hjnenc
Veteran
Veteran


Joined: 15 Aug 2004
Posts: 1599
Location: Vienna, Austria

PostPosted: Thu Aug 25, 2005 4:18 pm    Post subject: Reply with quote

Dlareh wrote:

If you cannot disable a dependency with USE flags, then you must use package.provided to have portage think it's already installed.


This will most likely break things because the dependency actually is not there (assuming there is a reason to have the dependency in the ebuild in the first place).

On rereading the original post, I recognized that I had, probably wrongly, assumed that some of the updates should be skipped. If it is whole packages that are unwanted and that are pulled in by others the correct way to deal with this is adjusting the use flags.
Back to top
View user's profile Send private message
Dillius
Tux's lil' helper
Tux's lil' helper


Joined: 12 Mar 2005
Posts: 119

PostPosted: Thu Aug 25, 2005 7:50 pm    Post subject: Reply with quote

Yea I just wanna have the update completely skip some packages it is trying to install. So it would be best to use package.provided for this?
Back to top
View user's profile Send private message
hjnenc
Veteran
Veteran


Joined: 15 Aug 2004
Posts: 1599
Location: Vienna, Austria

PostPosted: Thu Aug 25, 2005 8:07 pm    Post subject: Reply with quote

Use the --tree option of emerge to find out which package pulls in the ones you don't like. Then you can try to get rid of the unwanted dependencies by adjusting the use flags of the package. If there is no use flag to switch off a certain dependency its better to emerge it.

When you put the dependency into package.provided, it will not be emerged but the package that needs it will most likely not work correctly.
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Wed Jan 04, 2006 5:23 pm    Post subject: Reply with quote

Moved from Portage & Programming to Duplicate Threads in favour of GF8: Why is <y> getting pulled in when I emerge <x>?
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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