Rt on fedora?

Has anyone rt running on Fedora Core 1 ?

Is there a rpm or spec file for rebuilding somevhere?

The rt-3-0-6/etc/rt.spec is needs work:

$ rpmbuild -ta rt-3-0-6.tar.gz
error: File /home/torkil/tmp/rt.tar.gz: No such file or directory

After simple changes in s/rt2/rt3/g, and mv rt-3-0-6.tar.gz
rt-3.0.6.tar.gz and such, i ended up with a spec file which compiled
but someone who knows rt better needs to look at it. The spec file
should work for a user which is not root too. The spec file I have so
far is appended.

Best regards
…torkil…

rt.spec (3.72 KB)

At 04:53 PM 11/11/2003, Torkil Zachariassen wrote:

Requires: perl-DBI >= 1.18
Requires: perl-DBIx-DataSource >= 0.02
Requires: perl-DBIx-SearchBuilder >= 0.47
[snip happens]
Requires: perl-Log-Dispatch >= 1.6

I believe the currently preferred form for Perl module dependencies is
something like perl(DBI), perl(DBIx-DataSource), perl(DBIx-SearchBuilder),
etc. I’m not positive of that since I was hacking some spec files late one
night last week at work and I don’t have them accessible at the moment.

Also, it looks like your list of module dependencies is seriously out of
date. Have a look at the sbin/rt-test-dependencies script for what you will
need in the spec file. Since you are working on a spec file for RedHat, be
sure to require a mod_perl2 that isn’t (more seriously) broken.

Michael

Michael S. Liebman m-liebman@northwestern.edu
http://msl521.freeshell.org/
“I have vision and the rest of the world wears bifocals.”
-Paul Newman in “Butch Cassidy & the Sundance Kid”

Michael S. Liebman wrote:

At 04:53 PM 11/11/2003, Torkil Zachariassen wrote:

Requires: perl-DBI >= 1.18

I believe the currently preferred form for Perl module dependencies is
something like perl(DBI),

Yes, “Requires: perl(MODULE)” seems to work fine. It also seems to work
if I just drop all the requirements. The sneek in again somehow, and
show up when rpm -Uvh rt-3.0.6.i386.rpm is run.

Also, it looks like your list of module dependencies is seriously out of
date. Have a look at the sbin/rt-test-dependencies script for what you
will need in the spec file.
Since you are working on a spec file for
RedHat, be sure to require a mod_perl2 that isn’t (more seriously) broken.

Installed are httpd-2.0.47-10, mod_perl-1.99_09-10, mysql-3.23.58-4 and
all the perl rpm’s within fedora. Is this mod_perl broken?

Sounds like you are suggesting this command to me (cf. the README)

$ ./rt-test-dependencies --with-modperl1 --with-mysql

perl:
5.8.0…found
CORE dependencies:
Digest::MD5 2.27…found
DBI 1.37…found
Test::Inline …MISSING
Class::ReturnValue 0.40…MISSING
DBIx::SearchBuilder 0.92…MISSING
Text::Template …MISSING
File::Spec 0.8…found
HTML::Entities …found
Net::Domain …found
Log::Dispatch 2.0…MISSING
Locale::Maketext 1.06…found
Locale::Maketext::Lexicon 0.25…MISSING
Locale::Maketext::Fuzzy …MISSING
MIME::Entity 5.108…MISSING
Mail::Mailer 1.57…MISSING
Net::SMTP …found
Text::Wrapper …MISSING
Time::ParseDate …MISSING
File::Temp …found
Term::ReadKey …found
Text::Autoformat …MISSING
Text::Quoted …MISSING
MODPERL1 dependencies:
CGI …found
Apache::Request …MISSING
Apache::DBI 0.92…MISSING
MYSQL dependencies:
DBD::mysql 2.1018…found
CLI dependencies:
Getopt::Long 2.24…found
MAILGATE dependencies:
HTML::TreeBuilder …MISSING
HTML::FormatText …MISSING
Getopt::Long …found
LWP::UserAgent …found
DEV dependencies:
Regexp::Common …MISSING
Time::HiRes …found
Test::Inline …MISSING
WWW::Mechanize …MISSING
MASON dependencies:
Params::Validate 0.02…MISSING
Cache::Cache …MISSING
Exception::Class …MISSING
HTML::Mason 1.16…MISSING
MLDBM …MISSING
Errno …found
FreezeThaw …MISSING
Digest::MD5 2.27…found
CGI::Cookie 1.20…found
Storable …found
Apache::Session 1.53…MISSING

Obviously I am still missing something.

rpm -Uvh --test /home/torkil/tmp/RPMS/i386/rt-3.0.6-1.i386.rpm

error: Failed dependencies:
perl(DBIx::SearchBuilder) is needed by rt-3.0.6-1
perl(DBIx::SearchBuilder::Record::Cachable) is needed by rt-3.0.6-1
perl(Encode::compat) is needed by rt-3.0.6-1
perl(Locale::Maketext::Lexicon) >= 0.25 is needed by rt-3.0.6-1
perl(Log::Dispatch) >= 1.6 is needed by rt-3.0.6-1
perl(MIME::Entity) is needed by rt-3.0.6-1
perl(MIME::Head) is needed by rt-3.0.6-1
perl(MIME::Parser) is needed by rt-3.0.6-1
perl(MIME::Words) is needed by rt-3.0.6-1
perl(Mail::Address) is needed by rt-3.0.6-1
perl(RT::Tickets_Overlay_SQL) is needed by rt-3.0.6-1
perl(Regexp::Common) is needed by rt-3.0.6-1
perl(Text::Template) is needed by rt-3.0.6-1

Now most of these can be found on CPAN (look into
/modules/02packages.details.txt.gz ). I will look into converting CPAN
tar balls to rpm’s using cpanflute2.

The execptions is

RT::Tickets_Overlay_SQL, which seems to be provided by rt itself, along
with a bunch of other RT:: modules. Wonder how this should be handled.

And lastly: I try to install using rpm (and yum) only, and would really
like not to use something like "perl -MCPAN -e ".

Torkil Zachariassen wrote:

Michael S. Liebman wrote:

At 04:53 PM 11/11/2003, Torkil Zachariassen wrote:

Requires: perl-DBI >= 1.18

I believe the currently preferred form for Perl module dependencies is
something like perl(DBI),

Yes, “Requires: perl(MODULE)” seems to work fine. It also seems to work
if I just drop all the requirements. The sneek in again somehow, and
show up when rpm -Uvh rt-3.0.6.i386.rpm is run.

Also, it looks like your list of module dependencies is seriously out
of date. Have a look at the sbin/rt-test-dependencies script for what
you will need in the spec file.

Since you are working on a spec file for

RedHat, be sure to require a mod_perl2 that isn’t (more seriously)
broken.

Installed are httpd-2.0.47-10, mod_perl-1.99_09-10, mysql-3.23.58-4 and
all the perl rpm’s within fedora. Is this mod_perl broken?

Sounds like you are suggesting this command to me (cf. the README)

$ ./rt-test-dependencies --with-modperl1 --with-mysql

Mod_perl 1.99 is actually mod_perl 2, so you should use: --with-modperl2
instead. I just installed RT 3.0.6 (plus custom hacks ported from 3.0.4)
on an FC1 system using stock httpd and mod_perl. I used CPAN to install
all of the perl modules. Only had a little bit of trouble with
Apache::Request–I had to download a development release from the
package’s web site:

http://apache.mirrors.pair.com/httpd/libapreq/libapreq2-2.01_03-dev.tar.gz

I know that installing all of the modules by hand sucks–maybe this new
project will help:

http://rpmpan.sourceforge.net/

It looks like you could probably get most of the deps there.

Good luck!

Tim Gerla
Programmer, Outsource Financial Services, LLC
tgerla@outsourcefinancial.com

Installed are httpd-2.0.47-10, mod_perl-1.99_09-10, mysql-3.23.58-4 and
all the perl rpm’s within fedora. Is this mod_perl broken?

You really want to be using mysql4.

-R

At 01:44 PM 11/12/2003, Torkil Zachariassen wrote:

Yes, “Requires: perl(MODULE)” seems to work fine. It also seems to work if
I just drop all the requirements. The sneek in again somehow, and show up
when rpm -Uvh rt-3.0.6.i386.rpm is run.

Well, if you are trying to build an accurate spec file, then you need to
include all of the dependencies in the spec. If you are just trying to get
it to install, then you are probably better off using the supplied tools
and compiling from source. (I’m not trying to start an argument on the
merits of only installing RPM packages vs. compiling from source, but just
explaining some of my recent experiences with trying to force feed RPM
packages into a system.)

Installed are httpd-2.0.47-10, mod_perl-1.99_09-10, mysql-3.23.58-4 and
all the perl rpm’s within fedora. Is this mod_perl broken?

That mod_perl should be new enough and it is probably safe to use that
version in as the dependency in the spec file.

$ ./rt-test-dependencies --with-modperl1 --with-mysql

Just to reiterate, mod_perl-1.99 the development version of mod_perl2 and
you should use --with-modperl2 when appropriate.

The execptions is

RT::Tickets_Overlay_SQL, which seems to be provided by rt itself, along
with a bunch of other RT:: modules. Wonder how this should be handled.

It shouldn’t be handled as a requires in the spec file. It is just a file
in the package. Are you using an automated tool to generate the spec file?

Michael

Michael S. Liebman m-liebman@northwestern.edu
http://msl521.freeshell.org/
“I have vision and the rest of the world wears bifocals.”
-Paul Newman in “Butch Cassidy & the Sundance Kid”