Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge -pUu world wants to upgrade, and then downgrade ruby
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
jmarshall
n00b
n00b


Joined: 04 Jul 2002
Posts: 10

PostPosted: Sat May 31, 2003 7:02 am    Post subject: emerge -pUu world wants to upgrade, and then downgrade ruby Reply with quote

Why would this be happening?

Code:

[root@mojo]:/usr/local/portage/dev-ruby/ruby-dbi# emerge -pUu world

These are the packages that I would merge, in order:

Calculating world dependencies ...done!
[ebuild    U ] sys-libs/db-3.2.9-r5 [3.2.9-r2]
[ebuild    U ] net-www/apache-2.0.46 [2.0.45]
[ebuild    U ] dev-lang/ruby-1.8.0_pre2-r2 [1.8.0_pre2-r1] <---------
[ebuild    U ] app-editors/vim-core-6.2_pre6-r1 [6.2_pre6]
[ebuild    U ] app-editors/gvim-6.2_pre6-r1 [6.2_pre6]
[ebuild    U ] sys-devel/distcc-2.5-r1 [2.5]
[ebuild    U ] dev-util/cvs-1.11.6 [1.11.5-r1]
[ebuild    U ] app-editors/vim-6.2_pre6-r1 [6.2_pre6]
[ebuild    U ] dev-libs/glib-2.2.1-r1 [2.2.1]
[ebuild    U ] net-p2p/dctc-0.85.2 [0.85.1]
[ebuild    UD] dev-lang/ruby-1.6.8 [1.8.0_pre2-r1] <-------
[ebuild    U ] net-mail/mutt-1.5.4-r1 [1.5.4]


The arrows, of course were added by me to make it easier to see what the issue is. Notice that I had the "U" flag (for "only upgrade") as well, though it shouldn't be necessary, anyways. Why would portage want to first upgrade, and then downgrade a package? Mutt does not depend on ruby in any way, either, for what it's worth. I have ~x86 in my ACCEPT_KEYWORDS.

As for my working directory there, that just contains an edit of the ruby-dbi ebuild that works with ruby 1.8. It doesn't reference 1.6.8 in any way, and if I rename so that it's no longer seen as an ebuild, the "emerge -pUu" results are the same.
Back to top
View user's profile Send private message
Evil Dark Archon
Guru
Guru


Joined: 21 Dec 2002
Posts: 562
Location: Santa Rosa, CA

PostPosted: Sat May 31, 2003 1:26 pm    Post subject: Reply with quote

because vim doesn't work with ruby 1.8.0_pre*, it only works with ruby 1.6.* so this REALLY confuses portage, try re-emerging vim with the -ruby USE flag so that way it doesn't confuse portage
Back to top
View user's profile Send private message
jmarshall
n00b
n00b


Joined: 04 Jul 2002
Posts: 10

PostPosted: Sat May 31, 2003 7:01 pm    Post subject: Reply with quote

vim.eclass:
Code:

# Vim versions after 6.2d should work with Ruby 1.8 because of a local
# Gentoo patch; working on putting it upstream (22 May 2003 agriffis)
if [[ "$PV" < 6.2 || ( "$PV" == 6.2_pre* && "${PV#*pre}" -lt 4 ) ]]; then
   DEPEND="${DEPEND} ruby? ( =dev-lang/ruby-1.6* )" # 1.8 doesn't work
else
   DEPEND="${DEPEND} ruby? ( dev-lang/ruby )"
fi


So, it looks like this is probably where the issue is, as you said. It still seems like it should fall through to depending on just dev-lang/ruby there (and not ruby-1.6*), since "${PV#*pre} -lt 4" is false even when PV is '6.2_pre6-r1' (i.e., the "-r1" doesn't screw up the comparison). Even if it *were* taking the ruby-1.6* depend, wouldn't it want to downgrade ruby *before* upgrading vim, instead of afterwards?

I just did "emerge -u ruby" (upgrading to 1.8_pre2), and then "emerge -u vim gvim" (to pre6-r1). The vims built with ruby support, and do run fine with the 1.8 ruby library, as the comment in vim.eclass suggests they should. "emerge -puU world" does still want to downgrade ruby, though. Is there somewhere else other than in the eclass that this might be getting confused?

It's not really a big deal, because I am sure this will "sort itself out" soon enough. I'd just sort of like to understand what's going on at this point.
Back to top
View user's profile Send private message
jmarshall
n00b
n00b


Joined: 04 Jul 2002
Posts: 10

PostPosted: Mon Jun 23, 2003 11:57 pm    Post subject: Reply with quote

Nearly four weeks later, it still wants to do the same thing: upgrade to one of the ruby-1.8s, emerge a bunch of stuff, and then downgrade to ruby-1.6.8. I haven't "emerge -u" since originally making this post (busy). I thought it would fix itself, but it doesn't seem that it's going to, anytime soon, at least.

This happen to anyone else? Anyone got any ideas?
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