[Rt-devel] FW: [rt-users] Help with Module::Install::RTx

Kelly F. Hickel kfh at mqsoftware.com
Tue Oct 25 11:40:23 EDT 2005



-- 

Kelly F. Hickel
Senior Software Architect
MQSoftware, Inc
952.345.8677
kfh at mqsoftware.com


> -----Original Message-----
> From: Ruslan Zakirov [mailto:ruslan.zakirov at gmail.com]
> Sent: Thursday, October 20, 2005 5:43 PM
> To: Kelly F. Hickel
> Cc: rt-devel at lists.bestpractical.com
> Subject: Re: [Rt-devel] FW: [rt-users] Help with Module::Install::RTx
> 
> On 10/20/05, Kelly F. Hickel <kfh at mqsoftware.com> wrote:
> >
> >
> >
> > Didn't seem to get any answers on rt-users, maybe dev?
> > --
> >
> > Kelly F. Hickel
> >  Senior Software Architect
> >  MQSoftware, Inc
> >  952.345.8677
> >  kfh at mqsoftware.com
> >
> >
> >  ________________________________
> >
> >
> > From: rt-users-bounces at lists.bestpractical.com
> > [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf
> > Of Kelly F. Hickel
> >  Sent: Wednesday, October 19, 2005 10:05 AM
> >  To: rt-users at lists.bestpractical.com
> >  Subject: [rt-users] Help with Module::Install::RTx
> >
> >
> >
> > Has anyone used this to build an extension to RT?  I need some help.
> >
> >
> >
> > I'd like to release the next version of Statistics with this, but
have a
> few
> > problems, some of which may be because I've never used
Module::Install,
> nor
> > ExtUtils::MakeMaker.
> >
> >
> >
> > 1)  How do I tell it what goes into the dist?  I put Statistics.pm
in
> > lib/RTx, and that seemed to work, but when I put all the files for
> > /opt/rt3/local/html in html/RTx it added them to the manifest (Yay),
but
> > told me the files in just plain html (as opposed to html/RTx) didn't
> exist.
> > Do I have to have two copies of them?
> No. you just have to put your html files into html dir. if you want
> RTx prefix for all your files then put them into html/RTx, but I think
> you also have to add some callbacks to html/Callbacks.
> 
> >
> >
> >
> > 2) I'd like all the files to either go to /opt/rt3/share or
> /opt/rt3/local,
> > as decided by the user installing the package, how do I do that?
> Not implemented. Patches are wellcome.
> Current layout is fixed and described at
>
http://search.cpan.org/dist/Module-Install-RTx/lib/Module/Install/RTx.pm
> 
> >
> >
> >
> > 3) After installing my first cut of the dist, "make uninstall" said
that
> it
> > was unsafe and would tell me what it would do, but failed to find
the
> > packing list in /usr/lib/perl, not too surprising, as the the "make
> install"
> > put the packing list in
> > /opt/rt3/local/lib/auto/RTx/Statistics/.packlist
> Oh, never tried to uninstall.
[Kelly F. Hickel] OK, Well, I looked into the uninstall first, and
here's what I found.  The Makefiles generated are broken, I suspect it's
not a but in Module::Install::RTx, but one of the modules it uses, but I
can't be sure.

The UNINSTALL make variable is incorrect, and the generated
uninstall_from_sitedirs rule is not specifying the directory that the
install rule used. Below is a diff showing what I had to change in the
generated Makefile to get uninstall to work.  Does anyone have any idea
how to change the generation of these rules? I can't seem to figure it
out.

222c222
< UNINSTALL = $(PERLRUN) "-MExtUtils::Command::MM" -e uninstall
---
> UNINSTALL = $(PERLRUN) "-MExtUtils::Command::MM" -e
'uninstall(@ARGV);'
609c609
<       $(NOECHO) $(UNINSTALL) $(SITEARCHEXP)/auto/$(FULLEXT)/.packlist
---
>       $(NOECHO) $(UNINSTALL)
$(INSTALLSITEARCH)/auto/$(FULLEXT)/.packlist


> 
> >
> >
> >
> > Are there any good examples of using this? I couldn't seem to find
any....
> Browse any RT extions that is on the CPAN.
> 
> >
> >
> >
> >
> >
> > Thanks,
> >
> >
> >
> > --
> >
> > Kelly F. Hickel
> >  Senior Software Architect
> >  MQSoftware, Inc
> >  952.345.8677
> >  kfh at mqsoftware.com
> >
> >
> > _______________________________________________
> > http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> >
> > Be sure to check out the RT Wiki at http://wiki.bestpractical.com
> >
> > Buy your copy of our new book, RT Essentials, today!
> >
> > Download a free sample chapter from
> > http://rtbook.bestpractical.com
> > _______________________________________________
> > Rt-devel mailing list
> > Rt-devel at lists.bestpractical.com
> > http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel
> >
> >
> >
> 
> 
> --
> Best regards, Ruslan.



More information about the Rt-devel mailing list