Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 77564 - mod_ruby needs new revisions that uses apache-module.eclass
Summary: mod_ruby needs new revisions that uses apache-module.eclass
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
: 88928 96062 (view as bug list)
Depends on:
Blocks: 76457
  Show dependency tree
 
Reported: 2005-01-11 10:48 UTC by Michael Stewart (vericgar) (RETIRED)
Modified: 2006-02-14 02:23 UTC (History)
6 users (show)

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


Attachments
patch to mod_ruby_1.2.4-r2.ebuild (mod_ruby_1.2.4-r2_lfs.patch,511 bytes, patch)
2005-04-18 20:01 UTC, David Parrott
Details | Diff
patch to correctly use apxs2 in configure.rb (mod_ruby_1.2.4-r2_apxs2.patch,2.53 KB, patch)
2005-04-19 02:13 UTC, David Parrott
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Stewart (vericgar) (RETIRED) gentoo-dev 2005-01-11 10:48:32 UTC
As of apache-2.0.52-r3 and -1.3.33-r1 apache uses new configuration paths and locations. mod_ruby currently has paths and locations hardcoded into it's ebuild. The ebuild needs a new revision that uses apache-module.eclass so it doesn't break when we unmask the new apache revisions.

Thanks!
Comment 1 Paul Querna 2005-03-16 11:48:02 UTC
Ping to Ruby people. Any progress?  This is blocking apache updates.

Thanks.
Comment 2 Caleb Tennis (RETIRED) gentoo-dev 2005-03-23 04:37:21 UTC
I'm playing around with it now, but I'm a little unsure all that has to be done with it.
Comment 3 Caleb Tennis (RETIRED) gentoo-dev 2005-03-23 08:40:32 UTC
Committed 1.2.4-r1 which is my attempt to be compliant.
Comment 4 Luca Longinotti (RETIRED) gentoo-dev 2005-03-25 02:05:39 UTC
I emerged mod_ruby-1.2.4-r1 yesterday on a system with the new Apache 2.0.53 and noticed some things:
1) The 20_mod_ruby.conf files has a wrong LoadModule directive, it searches for mod_ruby in extramodules/mod_ruby.so, the new Apache needs modules/mod_ruby.so since now all modules are in the /usr/lib/apache2/modules/ folder, extramodules/ folder is deprecated.
2) I don't have an Apache1 to test that, but in the new ebuild the line
APACHE1_MOD_CONF="/mod_ruby"
seems wrong to me, if you want to use files/mod_ruby.conf then you have a / there that shouldn't be there...
3) After I manually fixed the LoadModule path and started my Apache2 with -D RUBY I got these errors in my error_log:
[Thu Mar 24 20:59:39 2005] [error] mod_ruby: failed to require apache/ruby-run
[Thu Mar 24 20:59:39 2005] [error] mod_ruby: error in ruby
[Thu Mar 24 20:59:39 2005] [error] mod_ruby: ruby:0:in `require': No such file to load -- apache/ruby-run (LoadError)
The same goes for apache/eruby-run if I uncomment the eruby code in the 20_mod_ruby.conf file. But I have both ruby and eruby installed... What I noticed is that the emerge of mod_ruby-1.2.4-r1 removed the /usr/lib/ruby/1.8/apache/ directory, where previously ruby-run and eruby-run were located, what can I do to have these again?
Comment 5 Benedikt Böhm (RETIRED) gentoo-dev 2005-03-25 11:37:21 UTC
please see http://home.xnull.de/misc/mod_ruby.patch this ebuilds works for me except that mod_ruby causes segfaults on 2.0
Comment 6 Luca Longinotti (RETIRED) gentoo-dev 2005-03-25 16:16:56 UTC
I can confirm that Benedikt Boehm's ebuild works indeed very well and compiles fine and installs all the needed files, now Apache2 + mod_ruby starts well and doesn't complain. Though I'm also getting segfaults on Apache2, whenever I look at a page with mod_ruby loaded into Apache2 it segfaults. :(
Comment 7 Benedikt Böhm (RETIRED) gentoo-dev 2005-04-13 04:38:41 UTC
*** Bug 88928 has been marked as a duplicate of this bug. ***
Comment 8 Caleb Tennis (RETIRED) gentoo-dev 2005-04-13 05:44:34 UTC
Just committed 1.2.4-r2, let's see if that fixes the problems.
Comment 9 Arash Abedinzadeh 2005-04-13 13:59:35 UTC
I have the same problem as mentioned in comment #6 and unfortunately 1.2.4-r2 doesn't seem to help.
Comment 10 Elfyn McBratney (beu) (RETIRED) gentoo-dev 2005-04-15 18:59:52 UTC
It seems LFS is the culprit here - mod_ruby works fine with an APR built without LFS support.  Not sure as to the solution yet, but since LFS-capable APR results in segfault parties for both mod_ruby and mod_perl LFS support will likely be removed (and soon !).
Comment 11 David Parrott 2005-04-18 20:01:14 UTC
Created attachment 56615 [details, diff]
patch to mod_ruby_1.2.4-r2.ebuild

This patch fixes the segfault problem in apache2
It forces "-D_FILE_OFFSET_BITS=64" into your cflags when using apache2
Might not be the most 'correct' way, but it works

I would think the real fix should be in apxs2 (net-www/apache), which should
include this define in the `apxs2 -q CFLAGS` output
Comment 12 David Parrott 2005-04-19 02:13:40 UTC
Created attachment 56643 [details, diff]
patch to correctly use apxs2 in configure.rb

I believe i've found the correct way to get the cflags.  Apxs2 is poorly
documented, but it appears that there is an EXTRA_CFLAGS field that is now used
for apache2. (see apache's bug #29771).  The patch modifies the configure
script to check for these values, if using apxs2.
Comment 13 Luca Longinotti (RETIRED) gentoo-dev 2005-04-19 03:45:03 UTC
I tried mod_ruby-1.2.4-r2 with David Parrott's last patch (Comment #12, the configure.rb patch) and it compiled fine and works on Apache 2.0.53 without problems, I get no more segfaults when accessing pages and all works fine so far! :) Thanks for the patch David!
Comment 14 Arash Abedinzadeh 2005-04-24 01:54:36 UTC
Patch from comment #12 doesn't work for me. The child processes still segfault. Is there anything else I can do or try?
Comment 15 Arash Abedinzadeh 2005-04-28 18:41:27 UTC
Correction: Patch from comment 12 does work for me. Thanks, David.
Comment 16 Jakub Moc (RETIRED) gentoo-dev 2005-06-14 06:44:36 UTC
*** Bug 96062 has been marked as a duplicate of this bug. ***
Comment 17 Jakub Moc (RETIRED) gentoo-dev 2006-02-14 02:23:44 UTC
Obsolete bug, FIXED.