FW: Help with Module::Install::RTx

Didn’t seem to get any answers on rt-users, maybe dev?

Kelly F. Hickel
Senior Software Architect
MQSoftware, Inc
952.345.8677
kfh@mqsoftware.comFrom: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Kelly F.
Hickel
Sent: Wednesday, October 19, 2005 10:05 AM
To: rt-users@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?

  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?

  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

Are there any good examples of using this? I couldn’t seem to find
any…

Thanks,

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

ATT180445.txt (310 Bytes)

Didn’t seem to get any answers on rt-users, maybe dev?

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


From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf
Of Kelly F. Hickel
Sent: Wednesday, October 19, 2005 10:05 AM
To: rt-users@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.
  1. 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
  1. 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.

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@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@lists.bestpractical.com
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel

Best regards, Ruslan.

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

-----Original Message-----
From: Ruslan Zakirov [mailto:ruslan.zakirov@gmail.com]
Sent: Thursday, October 20, 2005 5:43 PM
To: Kelly F. Hickel
Cc: rt-devel@lists.bestpractical.com
Subject: Re: [Rt-devel] FW: [rt-users] Help with Module::Install::RTx

Didn’t seem to get any answers on rt-users, maybe dev?

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


From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf
Of Kelly F. Hickel
Sent: Wednesday, October 19, 2005 10:05 AM
To: rt-users@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.

  1. 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

  1. 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…

> > > From: rt-users-bounces@lists.bestpractical.com > > > [mailto:rt-users-bounces@lists.bestpractical.com] On Behalf > > > Of Kelly F. Hickel > > > Sent: Wednesday, October 19, 2005 10:05 AM > > > To: rt-users@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.

  1. 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

  1. 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.

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@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@lists.bestpractical.com’
Subject: RE: [Rt-devel] FW: [rt-users] Help with Module::Install::RTx

> > > From: rt-users-bounces@lists.bestpractical.com > > > [mailto:rt-users-bounces@lists.bestpractical.com] On Behalf > > > Of Kelly F. Hickel > > > Sent: Wednesday, October 19, 2005 10:05 AM > > > To: rt-users@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.

  1. 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
  1. 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