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

Kelly F. Hickel kfh at mqsoftware.com
Wed Oct 26 11:46:02 EDT 2005


Oops. My mistake. The files are there, I was just looking in the wrong
place.....

Sorry about that Chief!

-- 

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


> -----Original Message-----
> From: Kelly F. Hickel
> Sent: Wednesday, October 26, 2005 9:00 AM
> To: Kelly F. Hickel; 'Ruslan Zakirov'
> Cc: 'rt-devel at lists.bestpractical.com'
> Subject: RE: [Rt-devel] FW: [rt-users] Help with Module::Install::RTx
> 
> <snip>
> > > > 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.
> 
> From my testing, this isn't true.  If I put a file in html, say
foo.html,
> then it goes into the distribution file, but does NOT get installed
when
> you do make install.  This is OK with me, as I probably need to rename
> Statistics to RTx::Statistics anyway.
> 
> 
> > >
> > > >
> > > >
> > > >
> > > > 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
> 
> I've narrowed this down to two consistency bugs in MM_Unix.pm from
> ExtUtils::MakeMaker.  I've posted a description to the makemaker
mailing
> list, but I'm not sure how active that project is anymore.
> 
> >
> >
> > >
> > > >
> > > >
> > > >
> > > > Are there any good examples of using this? I couldn't seem to
find
> > any....
> > > Browse any RT extions that is on the CPAN.
> > >
> > > >
> > > >
> > > >
> <snip>



More information about the Rt-devel mailing list