Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 353286 - www-apps/redmine fails to install with passenger (problem in dev-ruby/rack-1.0.1)
Summary: www-apps/redmine fails to install with passenger (problem in dev-ruby/rack-1....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: MATSUU Takuto (RETIRED)
URL:
Whiteboard:
Keywords:
: 362403 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-01-31 08:47 UTC by Jaco Kroon
Modified: 2011-04-24 01:40 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaco Kroon 2011-01-31 08:47:59 UTC
blackpearl rack # USE=passenger emerge -av redmine

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

Calculating dependencies... done!
[ebuild  N    ] dev-util/ragel-6.6-r1  USE="-vim-syntax" 1,067 kB
[ebuild  N    ] dev-ruby/i18n-0.4.2  USE="-test" RUBY_TARGETS="ruby18 -jruby -ree18" 65 kB
[ebuild  N    ] dev-ruby/rake-0.8.7-r6  USE="bash-completion -doc -test" RUBY_TARGETS="ruby18 -jruby -ree18 (-ruby19)" 101 kB
[ebuild  N    ] dev-ruby/ruby-net-ldap-0.0.4-r1  USE="-test" RUBY_TARGETS="ruby18 -jruby -ree18" 41 kB
[ebuild  N    ] dev-ruby/coderay-0.9.7  USE="-doc -test" RUBY_TARGETS="ruby18 -jruby -ree18 (-ruby19)" 103 kB
[ebuild  N    ] dev-libs/libev-4.03  USE="-static-libs" 461 kB
[ebuild  NS   ] dev-ruby/rack-1.2.1 [1.0.1] USE="-doc -test" RUBY_TARGETS="ruby18 -jruby -ree18 (-ruby19)" 278 kB
[ebuild  N    ] dev-ruby/daemon_controller-0.2.5  USE="-test" RUBY_TARGETS="ruby18 -ree18" 22 kB
[ebuild  N    ] dev-ruby/spruz-0.2.2  USE="-test" RUBY_TARGETS="ruby18 -jruby -ree18" 17 kB
[ebuild  N    ] dev-ruby/highline-1.6.1  USE="-doc -test" RUBY_TARGETS="ruby18 -jruby -ree18 (-ruby19)" 55 kB
[ebuild  N    ] dev-ruby/tzinfo-0.3.24  USE="-doc -test" RUBY_TARGETS="ruby18 -jruby -ree18 (-ruby19)" 295 kB
[ebuild  N    ] dev-ruby/builder-3.0.0  USE="-doc -test" RUBY_TARGETS="ruby18 -jruby -ree18" 595 kB
[ebuild  N    ] dev-ruby/file-tail-1.0.5  USE="-doc -test" RUBY_TARGETS="ruby18 -jruby -ree18" 19 kB
[ebuild  N    ] dev-ruby/json-1.5.1  USE="-doc -test" RUBY_TARGETS="ruby18 -jruby -ree18 (-ruby19)" 654 kB
[ebuild  N    ] dev-ruby/mysql-ruby-2.8.2  USE="-test" RUBY_TARGETS="ruby18 -ree18 (-ruby19)" 32 kB
[ebuild  N    ] dev-ruby/activesupport-2.3.10  USE="-test" RUBY_TARGETS="ruby18 -jruby -ree18" 421 kB
[ebuild  N    ] dev-ruby/activerecord-2.3.10  USE="mysql -doc -postgres -sqlite3 -test" RUBY_TARGETS="ruby18 -jruby -ree18" 560 kB
[ebuild  N    ] dev-ruby/rubyforge-2.0.4-r1  USE="-doc -test" RUBY_TARGETS="ruby18 -jruby -ree18 (-ruby19)" 15 kB
[ebuild  N    ] dev-ruby/echoe-4.3.1-r1  USE="-doc -test" RUBY_TARGETS="ruby18 -jruby -ree18 (-ruby19)" 28 kB
[ebuild  N    ] dev-ruby/fastthread-1.0.7-r1  USE="-doc -test" RUBY_TARGETS="ruby18" 21 kB
[ebuild  N    ] www-apache/passenger-3.0.2  USE="-debug -doc -test" RUBY_TARGETS="ruby18" 2,900 kB
[ebuild  N    ] www-apps/redmine-1.1.1  USE="mysql passenger -cvs -darcs -fastcgi -git -imagemagick -mercurial -openid -postgres -sqlite3 -subversion -test" RUBY_TARGETS="ruby18" 4,720 kB
[blocks B     ] <dev-ruby/rack-1.1.0-r1 ("<dev-ruby/rack-1.1.0-r1" is blocking dev-ruby/rack-1.2.1)

Total: 22 packages (21 new, 1 in new slot), Size of downloads: 12,464 kB
Conflict: 1 block (1 unsatisfied)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (dev-ruby/rack-1.2.1, ebuild scheduled for merge) pulled in by
    >=dev-ruby/rack-1.0.0[ruby_targets_ruby18] required by (www-apache/passenger-3.0.2, ebuild scheduled for merge)

  (dev-ruby/rack-1.0.1, installed) pulled in by
    =dev-ruby/rack-1.0.1* required by (www-apps/redmine-1.1.1, ebuild scheduled for merge)


For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked

blackpearl rack # 

redmine requires version 1.0.1 specifically of rack, and passenger depends on rack[ruby_targets_ruby18] which 1.0.1 doesn't satisfy due to the way the ebuild is written.

blackpearl rack # pwd
/usr/portage/dev-ruby/rack
blackpearl rack # cp rack-1.2.1.ebuild rack-1.0.1.ebuild
blackpearl rack # sed -re 's/^RDEPEND/#RDEPEND/' -i rack-1.0.1.ebuild
blackpearl rack # ebuild rack-1.0.1.ebuild digest
...
>>> Creating Manifest for /usr/portage/dev-ruby/rack
blackpearl rack # USE=passenger emerge -av redmine

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

Calculating dependencies... done!
[ebuild  N    ] dev-util/ragel-6.6-r1  USE="-vim-syntax" 1,067 kB
[ebuild  N    ] dev-ruby/rack-1.0.1  USE="-doc -test" RUBY_TARGETS="ruby18 -jruby -ree18 (-ruby19)" 0 kB
[ebuild  N    ] dev-ruby/i18n-0.4.2  USE="-test" RUBY_TARGETS="ruby18 -jruby -ree18" 65 kB
[ebuild  N    ] dev-ruby/rake-0.8.7-r6  USE="bash-completion -doc -test" RUBY_TARGETS="ruby18 -jruby -ree18 (-ruby19)" 101 kB
[ebuild  N    ] dev-ruby/ruby-net-ldap-0.0.4-r1  USE="-test" RUBY_TARGETS="ruby18 -jruby -ree18" 41 kB
[ebuild  N    ] dev-ruby/coderay-0.9.7  USE="-doc -test" RUBY_TARGETS="ruby18 -jruby -ree18 (-ruby19)" 103 kB
[ebuild  N    ] dev-libs/libev-4.03  USE="-static-libs" 461 kB
[ebuild  N    ] dev-ruby/daemon_controller-0.2.5  USE="-test" RUBY_TARGETS="ruby18 -ree18" 22 kB
[ebuild  N    ] dev-ruby/spruz-0.2.2  USE="-test" RUBY_TARGETS="ruby18 -jruby -ree18" 17 kB
[ebuild  N    ] dev-ruby/highline-1.6.1  USE="-doc -test" RUBY_TARGETS="ruby18 -jruby -ree18 (-ruby19)" 55 kB
[ebuild  N    ] dev-ruby/tzinfo-0.3.24  USE="-doc -test" RUBY_TARGETS="ruby18 -jruby -ree18 (-ruby19)" 295 kB
[ebuild  N    ] dev-ruby/builder-3.0.0  USE="-doc -test" RUBY_TARGETS="ruby18 -jruby -ree18" 595 kB
[ebuild  N    ] dev-ruby/file-tail-1.0.5  USE="-doc -test" RUBY_TARGETS="ruby18 -jruby -ree18" 19 kB
[ebuild  N    ] dev-ruby/json-1.5.1  USE="-doc -test" RUBY_TARGETS="ruby18 -jruby -ree18 (-ruby19)" 654 kB
[ebuild  N    ] dev-ruby/mysql-ruby-2.8.2  USE="-test" RUBY_TARGETS="ruby18 -ree18 (-ruby19)" 32 kB
[ebuild  N    ] dev-ruby/activesupport-2.3.10  USE="-test" RUBY_TARGETS="ruby18 -jruby -ree18" 421 kB
[ebuild  N    ] dev-ruby/activerecord-2.3.10  USE="mysql -doc -postgres -sqlite3 -test" RUBY_TARGETS="ruby18 -jruby -ree18" 560 kB
[ebuild  N    ] dev-ruby/rubyforge-2.0.4-r1  USE="-doc -test" RUBY_TARGETS="ruby18 -jruby -ree18 (-ruby19)" 15 kB
[ebuild  N    ] dev-ruby/echoe-4.3.1-r1  USE="-doc -test" RUBY_TARGETS="ruby18 -jruby -ree18 (-ruby19)" 28 kB
[ebuild  N    ] dev-ruby/fastthread-1.0.7-r1  USE="-doc -test" RUBY_TARGETS="ruby18" 21 kB
[ebuild  N    ] www-apache/passenger-3.0.2  USE="-debug -doc -test" RUBY_TARGETS="ruby18" 2,900 kB
[ebuild  N    ] www-apps/redmine-1.1.1  USE="mysql passenger -cvs -darcs -fastcgi -git -imagemagick -mercurial -openid -postgres -sqlite3 -subversion -test" RUBY_TARGETS="ruby18" 4,720 kB

Total: 22 packages (22 new), Size of downloads: 12,186 kB

Would you like to merge these packages? [Yes/No] 


So basically I think it's a problem in the rack 1.0.1 ebuild.

Reproducible: Always
Comment 1 Rafał Mużyło 2011-01-31 16:25:09 UTC
One minor question: does redmine really need ~rack-1.0., or is rack:0 good enough ?
Cause if it's the later, the correct change would be =dev-ruby/rack-1.0.1* -> dev-ruby/rack:0 for redmine.
Comment 2 Jaco Kroon 2011-01-31 19:40:45 UTC
No, it really does need rack 1.0.1 (I honestly wish I knew why, I just know that even with this trouble shooting it took me approx 20 minutes to get redmine working on Gentoo compared to 5 days+ on CentOS - so well done to the ruby Gentoo devs).

The combination of redmine depending on rack-1.0.1 along with passenger which has been ported to the newer ruby ebuild structure (or something, sorry, not 100 % up to date with what's going on in gem land) and requires rack being merged with RUBY_TARGETS correctly set (which rack:0 doesn't do).

Bit of a mess if you ask me, but my method does solve the dependency problem.

Is there a specific reason to NOT do it that way?  (Just trying to understand what's actually going on)
Comment 3 Mark Zhitomirski 2011-03-11 16:12:56 UTC
issue appeared after rack-1.0.1-r1 was killed (~x86, ~x86_64)
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-ruby/rack/rack-1.0.1-r1.ebuild?view=log
if i restore it to local PORTDIR_OVERLAY 
wget -O rack-1.0.1-r1.ebuild http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-ruby/rack/rack-1.0.1-r1.ebuild?revision=1.11
i can seemingly overcome the problem. (compiling now)

No idea here why rack-1.0.1.ebuild does not work - but if you compare them you'll see lots of differences ;)
Comment 4 Mark Zhitomirski 2011-03-11 17:02:56 UTC
I was quick to be trapped by "Post hoc ergo propter hoc"
Somehow I was able to emerge redmine-1.1.1 with rack-1.0.1.ebuild after syncing on Mar 07, 2011 20:05:45 UTC
But now neither redmine-1.1.1 nor redmine-1.2.1 can be emerged with rack-1.0.1
If you decide to go my way (PORTDIR_OVERLAY and -r1 rack) beware of #297843 - fastthread fails to build. To overcome that 'emerge -1 allison'
Comment 5 Hans de Graaff gentoo-dev Security 2011-03-12 12:49:06 UTC
(In reply to comment #4)

> If you decide to go my way (PORTDIR_OVERLAY and -r1 rack) beware of #297843 -
> fastthread fails to build. To overcome that 'emerge -1 allison'

?? That bug is a keywording bug and has no mention of build failures. I've also just built fastthread-1.0.7-r1 without allison installed and that seems to work fine as well.
Comment 6 Mark Zhitomirski 2011-03-14 12:54:10 UTC
(In reply to comment #5)
> > beware of #297843 -
> > fastthread fails to build. To overcome that 'emerge -1 allison'
> ?? That bug is a keywording bug and has no mention of build failures. I've also
> just built fastthread-1.0.7-r1 without allison installed and that seems to work
> fine as well.
you're right, my comment was made in a haste. I could not find a better description than 297843 for my build problem (on a freshly built ~amd64 machine. Missing allison was noticed in "emerge --debug -1 fastthread" output. May be that was not a critical issue, but emerging allison fixed it for me) Anyway this bug is not a proper place for those observations - i'd better file a separate bug for fastthread.
Comment 7 Krzysztof Pawlik (RETIRED) gentoo-dev 2011-03-20 09:16:35 UTC
Calculating dependencies... done!
[ebuild     U ] www-apps/redmine-1.1.2 [1.1.1] USE="mercurial passenger postgres -cvs -darcs -fastcgi -git -imagemagick -mysql -openid -sqlite3 -subversion -test" RUBY_TARGETS="ruby18" 4,717 kB
[ebuild     U ]  www-apache/passenger-3.0.2 [2.2.15] USE="-debug -doc -test%" RUBY_TARGETS="ruby18%*" 2,900 kB
[ebuild  N    ]   dev-libs/libev-4.03  USE="-static-libs" 461 kB
[nomerge      ] www-apache/passenger-3.0.2 [2.2.15] USE="-debug -doc -test%" RUBY_TARGETS="ruby18%*" 
[nomerge      ]  dev-ruby/fastthread-1.0.7-r1  USE="-doc -test" RUBY_TARGETS="ruby18" 
[ebuild     U ]   dev-ruby/echoe-4.3.1-r1 [4.3.1] USE="-doc -test" RUBY_TARGETS="ruby18 -jruby% -ree18%" 0 kB
[ebuild     U ]    dev-ruby/highline-1.6.1 [1.5.2] USE="-doc -test" RUBY_TARGETS="ruby18 -jruby% -ree18%" 55 kB
[ebuild  N    ]  dev-ruby/file-tail-1.0.5  USE="-doc -test" RUBY_TARGETS="ruby18 -jruby -ree18" 19 kB
[ebuild  N    ]   dev-ruby/spruz-0.2.2  USE="-test" RUBY_TARGETS="ruby18 -jruby -ree18" 17 kB
[ebuild  N    ]  dev-ruby/daemon_controller-0.2.6  USE="-test" RUBY_TARGETS="ruby18 -ree18" 22 kB
[ebuild  NS   ]  dev-ruby/rack-1.2.2 [1.0.1] USE="-doc -test" RUBY_TARGETS="ruby18 -jruby -ree18 (-ruby19)" 0 kB
[blocks B     ] <dev-ruby/rack-1.1.0-r1 ("<dev-ruby/rack-1.1.0-r1" is blocking dev-ruby/rack-1.2.2)

Total: 9 packages (4 upgrades, 4 new, 1 in new slot), Size of downloads: 8,189 kB
Conflict: 1 block (1 unsatisfied)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (dev-ruby/rack-1.0.1, installed) pulled in by
    ~dev-ruby/rack-1.0.1 required by (www-apps/redmine-1.1.2, ebuild scheduled for merge)

  (dev-ruby/rack-1.2.2, ebuild scheduled for merge) pulled in by
    >=dev-ruby/rack-1.0.0[ruby_targets_ruby18] required by (www-apache/passenger-3.0.2, ebuild scheduled for merge)



redmine depends on newer passenger, which needs rack-1.2.2, but at the same time redmine needs ~rack-1.0.1
Comment 8 Bernhard Efler 2011-03-24 14:06:56 UTC
*bump*

is there any solution for this?
I tried it with fcgi, but that doesn't work.
Comment 9 Mark Zhitomirski 2011-03-27 10:44:07 UTC
> ... passenger, which needs rack-1.2.2
no, it does not. At least it does not say so

ruby_add_rdepend "
        >=dev-ruby/fastthread-1.0.1
        >=dev-ruby/rack-1.0.0"

However portage or ebuild has difficulty figuring this out.
Sometimes i was able to pacify them with

>dev-ruby/rack-1.0.1-r1
in package.mask

Another machine was better off with masking out this way
=dev-ruby/rack-1.2.1
=dev-ruby/rack-1.2.2

I'd like to be of any help to developers with this issues. Do not know where to start. Huh?
Comment 10 Chí-Thanh Christopher Nguyễn gentoo-dev 2011-04-16 22:11:05 UTC
As an interim solution, you can get rack-1.0.1-r1.ebuild from
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-ruby/rack/?hideattic=0
and place in a local overlay.
Comment 11 MATSUU Takuto (RETIRED) gentoo-dev 2011-04-24 01:33:24 UTC
*** Bug 362403 has been marked as a duplicate of this bug. ***
Comment 12 MATSUU Takuto (RETIRED) gentoo-dev 2011-04-24 01:40:58 UTC
sorry for delay.
rack-1.0.1-r2 in cvs now.