Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27649 - [PATCH] mod-ruby-1.1.1-r2.ebuild mod_ruby for apache 1.3.x
Summary: [PATCH] mod-ruby-1.1.1-r2.ebuild mod_ruby for apache 1.3.x
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-31 08:09 UTC by Jeff Mitchell
Modified: 2004-09-21 11:17 UTC (History)
1 user (show)

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


Attachments
mod_ruby ebuild patch for apache-1.3.28 (mod_ruby.patch,1.06 KB, patch)
2003-09-01 10:48 UTC, Jeff Mitchell
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Mitchell 2003-08-31 08:09:52 UTC
config had a bad filename, and apacheaddmod seems incompatible and/or
unnecessary with the new-style addon-modules/ directory.

diff -ur /usr/portage/dev-ruby/mod-ruby/files/mod_ruby.conf ./files/mod_ruby.conf
--- /usr/portage/dev-ruby/mod-ruby/files/mod_ruby.conf  2003-05-10
09:17:52.000000000 -0400
+++ ./files/mod_ruby.conf       2003-08-31 10:42:22.000000000 -0400
@@ -1,5 +1,5 @@
 # REQUIRED
-LoadModule ruby_module /usr/local/apache/libexec/mod_ruby.so
+LoadModule ruby_module    extramodules/mod_ruby.so
 
 <IfModule mod_ruby.c>
   # for Apache::RubyRun
diff -ur /usr/portage/dev-ruby/mod-ruby/mod-ruby-1.1.1-r2.ebuild
./mod-ruby-1.1.1-r2.ebuild
--- /usr/portage/dev-ruby/mod-ruby/mod-ruby-1.1.1-r2.ebuild     2003-06-10
20:15:17.000000000 -0400
+++ ./mod-ruby-1.1.1-r2.ebuild  2003-08-31 10:42:08.000000000 -0400
@@ -76,9 +76,7 @@
        if [ "`use apache2`" ]; then
                :
        else
-               ${ROOT}/usr/sbin/apacheaddmod \
-                       ${ROOT}/etc/apacheconf/conf/apache.conf \
-                       extramodules/mod_ruby.so mod_ruby.c ruby_module \
-                       before=perl define=RUBY
addconf=conf/addon-modules/mod_ruby.conf
+               echo -e "<IfDefine RUBY>\n  Include 
conf/addon-modules/mod_ruby.conf\n</IfDefine>" >> \
+                       /etc/apache/conf/apache.conf
        fi
 }
Comment 1 Jeff Mitchell 2003-08-31 08:17:48 UTC
oops forgot ${ROOT}. use this:

diff -ur /usr/portage/dev-ruby/mod-ruby/files/mod_ruby.conf ./files/mod_ruby.conf
--- /usr/portage/dev-ruby/mod-ruby/files/mod_ruby.conf  2003-05-10 09:17:52.000000000 -0400
+++ ./files/mod_ruby.conf       2003-08-31 10:42:22.000000000 -0400
@@ -1,5 +1,5 @@
 # REQUIRED
-LoadModule ruby_module /usr/local/apache/libexec/mod_ruby.so
+LoadModule ruby_module    extramodules/mod_ruby.so

 <IfModule mod_ruby.c>
   # for Apache::RubyRun
diff -ur /usr/portage/dev-ruby/mod-ruby/mod-ruby-1.1.1-r2.ebuild ./mod-ruby-1.1.1-r2.ebuild
--- /usr/portage/dev-ruby/mod-ruby/mod-ruby-1.1.1-r2.ebuild     2003-06-10 20:15:17.000000000 -0400
+++ ./mod-ruby-1.1.1-r2.ebuild  2003-08-31 10:42:08.000000000 -0400
@@ -76,9 +76,7 @@
        if [ "`use apache2`" ]; then
                :
        else
-               ${ROOT}/usr/sbin/apacheaddmod \
-                       ${ROOT}/etc/apacheconf/conf/apache.conf \
-                       extramodules/mod_ruby.so mod_ruby.c ruby_module \
-                       before=perl define=RUBY addconf=conf/addon-modules/mod_ruby.conf
+               echo -e "<IfDefine RUBY>\n  Include conf/addon-modules/mod_ruby.conf\n</IfDefine>" >> \
+                       ${ROOT}/etc/apache/conf/apache.conf
        fi
 }
Comment 2 Jeff Mitchell 2003-09-01 10:48:04 UTC
Created attachment 16922 [details, diff]
mod_ruby ebuild patch for apache-1.3.28

silly me, I didn't know about patch attachments. sorry bout that.
Comment 3 Jeff Mitchell 2003-09-01 11:14:24 UTC
(use the attachment and ignore all these other comments)
Comment 4 Jeff Mitchell 2003-09-01 15:45:15 UTC
Also, this is a typo:

 einfo "You may also wish to edit /etc/conf.d/apache2/modules.d/20_mod_ruby.conf"

it should be /etc/apache2/conf/modules.d/20_mod_ruby.conf
Comment 5 Tom Payne (RETIRED) gentoo-dev 2003-09-07 14:18:35 UTC
The patch, as supplied, will add <IfDefine Ruby>... etc. every time mod_ruby is emerged. i.e. after a couple of upgrades there will be multiple copies in the .conf. This isn't good.
Comment 6 Jeff Mitchell 2003-09-07 15:45:42 UTC
The behavior is the same as it was.  The <IfDefine> is not automatically
added.  It is in pkg_config().

After emerging, the user sees

 * To enable mod_ruby:
 * 1. Run "ebuild /var/db/pkg/dev-ruby/mod-ruby-1.1.1-r2/mod-ruby-1.1.1-r2.ebuild config"
 * 2. Edit /etc/conf.d/apache and add "-D RUBY"

If it's already in apache.conf, the user will not (should not) run the config.
Given your reasoning, are you also concerned about the user adding another
"-D RUBY" to his conf.d file every time?
Comment 7 Priit Laes (IRC: plaes) 2004-03-07 01:47:26 UTC
There's a new version of mod_ruby out...
Comment 8 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-04-16 09:51:06 UTC
Sorry for the delay. I've just applied the patch.
Thanks for the contribution.
Comment 9 Mathieu Jobin 2004-09-21 10:44:18 UTC
so how come this bug is fix and I can't install mod_ruby without download an extra ebuild file ??

Comment 10 Mathieu Jobin 2004-09-21 10:45:57 UTC
you named it, mod-ruby
but mod_php is named mod_php

would you please use consistent naming ?

Comment 11 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-09-21 11:17:52 UTC
All right, I moved it to dev-ruby/mod_ruby.