Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can I emerge world *except* for one package?
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
Beetle B.
Guru
Guru


Joined: 01 Mar 2003
Posts: 524

PostPosted: Thu Dec 25, 2008 4:48 pm    Post subject: Can I emerge world *except* for one package? Reply with quote

When I try to do emerge world, it wants to update a package to the latest version. However, that depends on KDE 4, which I've not installed.

It won't show me all the other packages needing updates (even if I do verbose).

So I seem to be stuck. I could just mask the offending package, but that's an ugly hack and I'll have to remember to unmask it when/if KDE 4 becomes stable.

So for now, I can't do world updates, nor even see what needs updates?

Portage 2.x, BTW.
_________________
Beetle B.

Please update the table of equivalents.
A Firefox guide.
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Thu Dec 25, 2008 5:35 pm    Post subject: Reply with quote

Hi, can you post at least the actual message :

Code:

# emerge -auDNv world
Back to top
View user's profile Send private message
Beetle B.
Guru
Guru


Joined: 01 Mar 2003
Posts: 524

PostPosted: Thu Dec 25, 2008 5:58 pm    Post subject: Reply with quote

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

Calculating dependencies... done!

!!! All ebuilds that could satisfy ">=kde-base/kdelibs-4.1:4.1" have been masked.
!!! One of the following masked packages is required to complete your request:
- kde-base/kdelibs-4.1.3-r1 (masked by: ~x86 keyword)
- kde-base/kdelibs-4.1.3 (masked by: ~x86 keyword)
- kde-base/kdelibs-4.1.2-r1 (masked by: ~x86 keyword)
- kde-base/kdelibs-4.1.2 (masked by: ~x86 keyword)

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
(dependency required by "app-cdr/k9copy-2.1.0" [ebuild])
(dependency required by "@world" [argument])


_________________
Beetle B.

Please update the table of equivalents.
A Firefox guide.
Back to top
View user's profile Send private message
a.b.
Apprentice
Apprentice


Joined: 23 Mar 2008
Posts: 218
Location: Anus Mundi, Germany

PostPosted: Thu Dec 25, 2008 7:34 pm    Post subject: Reply with quote

Try this (I'm not on Gentoo right know so I can't tell if it works:
Code:
cat /var/lib/portage/world | grep -v 'app-cdr/k9copy' | xargs emerge -auDNv
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Thu Dec 25, 2008 8:30 pm    Post subject: Reply with quote

Beetle B. wrote:
Code:
These are the packages that would be merged, in order:

Calculating dependencies... done!

!!! All ebuilds that could satisfy ">=kde-base/kdelibs-4.1:4.1" have been masked.
!!! One of the following masked packages is required to complete your request:
- kde-base/kdelibs-4.1.3-r1 (masked by: ~x86 keyword)
- kde-base/kdelibs-4.1.3 (masked by: ~x86 keyword)
- kde-base/kdelibs-4.1.2-r1 (masked by: ~x86 keyword)
- kde-base/kdelibs-4.1.2 (masked by: ~x86 keyword)

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
(dependency required by "app-cdr/k9copy-2.1.0" [ebuild])
(dependency required by "@world" [argument])

Just mask k9copy for now. If and when you do upgrade to kde4 you will need to remove this mask:
Code:
echo "app-cdr/k9copy:2" >> /etc/portage/package.mask

_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Back to top
View user's profile Send private message
Beetle B.
Guru
Guru


Joined: 01 Mar 2003
Posts: 524

PostPosted: Thu Dec 25, 2008 8:55 pm    Post subject: Reply with quote

Quote:
Just mask k9copy for now. If and when you do upgrade to kde4 you will need to remove this mask:


If it's the only solution, I'll do it - but it's a pretty poor one. Chances are high I'll forget the mask ever existed when KDE4 becomes stable. It'd be nice if I could at least get a list of what else needs to be updated so that I could do those manually.
_________________
Beetle B.

Please update the table of equivalents.
A Firefox guide.
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Thu Dec 25, 2008 10:03 pm    Post subject: Reply with quote

Beetle B. wrote:
Quote:
Just mask k9copy for now. If and when you do upgrade to kde4 you will need to remove this mask:


If it's the only solution, I'll do it - but it's a pretty poor one. Chances are high I'll forget the mask ever existed when KDE4 becomes stable. It'd be nice if I could at least get a list of what else needs to be updated so that I could do those manually.
Actually no, it is the recommended way of not upgrading. Portage actually spits out the reason why the package is masked. In my case, I have masked kde-4.0 and greater so this is what portage gives me when I try to emerge kdelibs:4.1:
Quote:
!!! All ebuilds that could satisfy "kde-base/kdelibs:4.1" have been masked.
!!! One of the following masked packages is required to complete your request:
- kde-base/kdelibs-4.1.3-r1 (masked by: package.mask)
/etc/portage/package.mask:
# Mask these for now


- kde-base/kdelibs-4.1.3 (masked by: package.mask)
- kde-base/kdelibs-4.1.2-r1 (masked by: package.mask)
- kde-base/kdelibs-4.1.2 (masked by: package.mask)

_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Back to top
View user's profile Send private message
Beetle B.
Guru
Guru


Joined: 01 Mar 2003
Posts: 524

PostPosted: Thu Dec 25, 2008 10:32 pm    Post subject: Reply with quote

Quote:
Actually no, it is the recommended way of not upgrading.


That doesn't prevent it from being a poor solution. I'll have to remember to unmask it later on, and there's a good chance I'll forget. It'd be nice if Portage could mask packages only while another package is masked (probably hard) - or give a command line switch to ignore all such packages when emerging world (likely easy). Why should the existence of a temporary problem prevent me from doing other stuff, or force me to use a non-temporary solution (i.e. masking it)?

As I said, at the very least, if it told me what other packages need updates, I could go merge those. Right now, I'll be masking k9copy temporarily to get a list of the rest, and then unmasking it because I'll likely forget to do so in the future. Doing this each and every time is a pain. As is keeping it masked the way you/Portage recommend.
_________________
Beetle B.

Please update the table of equivalents.
A Firefox guide.
Back to top
View user's profile Send private message
jstead1
Guru
Guru


Joined: 01 Aug 2003
Posts: 427
Location: Oswego, NY where the snow is deep

PostPosted: Thu Dec 25, 2008 11:39 pm    Post subject: Reply with quote

you should probably just mask the particular version of k9copy that requires kde4 (2.1.0)
If you forget to unmask, when k9copy gets updated, you will get the new one, or another message that it can't be installed.

If you mask k9copy entirely, you will still get the message that k9copy can't be installed because it is masked (I assume it is in your world file, so portage will try to install it).

I agree that it would be nice if portage would give you an option to update everything that isn't blocked, but I would bet that some lazy people would let their systems get out of control. We would need a whole forum section for "I let my gentoo get way out of control, and now I need help big time"
_________________
jim
Back to top
View user's profile Send private message
LukynZ
Apprentice
Apprentice


Joined: 19 Dec 2008
Posts: 230
Location: The Czech Republic

PostPosted: Fri Dec 26, 2008 1:04 am    Post subject: Reply with quote

I have similar problem with ati-driver on amd64. It wants masked x86 xlibs (but it really doesn't need it). And it is really without chance by official way. With --oneshot it will be OK in update, but when you try --depclean it will be selected for remove. I am missing here one nice portage feature from freeBSD. Well hope devs will fix this dependency things....
Back to top
View user's profile Send private message
Beetle B.
Guru
Guru


Joined: 01 Mar 2003
Posts: 524

PostPosted: Fri Dec 26, 2008 2:11 am    Post subject: Reply with quote

Quote:
you should probably just mask the particular version of k9copy that requires kde4 (2.1.0)
If you forget to unmask, when k9copy gets updated, you will get the new one, or another message that it can't be installed.


Yes, but k9copy rarely gets updated (in Portage, at least). So I may miss out on a lot.

Quote:
If you mask k9copy entirely, you will still get the message that k9copy can't be installed because it is masked (I assume it is in your world file, so portage will try to install it).


That virtually did the trick. I did not know this (I pretty much only mask given versions, not altogether). I also did not know that if you precede the entry with comment lines, it'll display those comment lines. So I put in a comment about KDE 4.1 prior to it (not documented in handbook, but it is in the Portage package.mask file).

The solution has the problem the other user posted: It'll be selected for removal if I do depclean. However, I'm always careful to see what packages are being removed when I do depclean so I can always catch it.

Quote:
I agree that it would be nice if portage would give you an option to update everything that isn't blocked, but I would bet that some lazy people would let their systems get out of control.


I probably wasn't clear. I meant it should allow me to update those packages that don't depend on the ones it can't install. So anything that needs that version of k9copy or higher wouldn't emerge, either. But it's kind of silly that I can't update, say, Firefox because I can't merge k9copy.
_________________
Beetle B.

Please update the table of equivalents.
A Firefox guide.
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