Bug 53205 - Make rt3 work with Apache2/mod_perl2
Summary: Make rt3 work with Apache2/mod_perl2
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Dmitry Sivachenko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-11 16:10 UTC by Tim Bishop
Modified: 2003-06-20 09:43 UTC (History)
1 user (show)

See Also:


Attachments
rt3-ap2mp2.diff (5.12 KB, patch)
2003-06-11 16:10 UTC, Tim Bishop
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Bishop freebsd_committer freebsd_triage 2003-06-11 16:10:15 UTC
	In it's current state the rt3 port won't compile/work with
	apache2 and mod_perl2.

Fix: This patch solves this, and a few other minor problems.

	First, apply ports/53204 to fix an issue with p5-Apache-DBI.

	The first change is the dependency list. I followed the
	dependency list given on rt's website, and updated the port.
	There's a few in the port that aren't mentioned on the rt
	site - I've dropped these in this patch and it seems to
	work. I guess the maintainer will know why they were there
	in the first place - so they might decide to keep them. I
	also added a couple of dependencies that were in the list
	on the rt website, but not in the port.

	If WITH_APACHE2 is defined I've added two DEPEND_ARGS. The
	WITHOUT_MODPERL is for the p5-HTML-Mason port which tries
	to use mod_perl (not mod_perl2), and the second is for the
	p5-Apache-DBI port. I wonder if there's a way to do this
	in the dependency list so they're tied to the right port
	only?

	To make Apache start with rt3/mason/mod_perl2 a small perl
	script needs to be run prior to the main rt3 script. This
	script is in the files directory and gets installed by the
	port. I've added a brief note about it to the pkg-message.

	Finally I've updated the pkg-plist for the above new file,
	and I've removed the RT_SiteConfig.pm file - it was rather
	annoying to see my config get destroyed by portupgrade.
	Also added the etc directory, although this makes less sense
	with RT_SiteConfig.pm remaining.

	Something I haven't patched is the way this port deals with
	setting up the database. In my opinion it's "bad" for the
	default behaviour to destroy all data during an upgrade -
	the port requires UPGRADE to be defined to preserve data.
	This could catch people out, especially now portupgrade
	makes doing multiple ports a doddle. I'd suggest changing
	this, but I'm not sure of the best approach.
Comment 1 Dmitry Sivachenko freebsd_committer freebsd_triage 2003-06-11 16:52:38 UTC
Responsible Changed
From-To: freebsd-ports-bugs->demon

I'll commit it.
Comment 2 Ceri Davies freebsd_committer freebsd_triage 2003-06-14 13:09:01 UTC
Adding to audit trail, from misfiled PR ports/53207:

Date: Wed, 11 Jun 2003 23:50:25 +0800
From: Autrijus Tang <autrijus@autrijus.org>
Message-Id: <20030611155025.GA736@not.autrijus.org>
References: <E19Q78r-000CZq-KI@pendennis.ukc.ac.uk>

 On Wed, Jun 11, 2003 at 04:04:01PM +0100, Tim Bishop wrote:
 > >Description:
 > 	In it's current state the rt3 port won't compile/work with
 > 	apache2 and mod_perl2.
 
 Looks good.  Approved for commit.  Cc'ing Dmitry to see if he
 can help us to commit it.
 
 Thanks,
 /Autrijus/
Comment 3 Tim Bishop freebsd_committer freebsd_triage 2003-06-14 18:09:44 UTC
I'm thinking the following dependency I added might actually not
be required:

${SITE_PERL}/Errno.pm:${PORTSDIR}/devel/p5-Errno

While installing lang/perl5.8 on another machine I noticed Errno.pm is
part of the perl port - so I suspect it doesn't need to be installed
as a dependency by this port? Not sure if it's needed for perl 5.6
though.

Either way, it's not causing any harm, but it might be a little
untidy.

Tim.

-- 
Tim Bishop
http://www.bishnet.net/tim
PGP Key: 0x5AE7D984
Comment 4 Dmitry Sivachenko freebsd_committer freebsd_triage 2003-06-20 09:43:02 UTC
State Changed
From-To: open->closed

Patch committed, thanks!