public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] where to put *.pm files
@ 2005-05-25  6:06 Rene Zbinden
  2005-05-25  9:12 ` Michael Cummings
  2005-05-25 21:32 ` Drake Wyrm
  0 siblings, 2 replies; 8+ messages in thread
From: Rene Zbinden @ 2005-05-25  6:06 UTC (permalink / raw
  To: gentoo-dev

Hi 

I am writing a new ebuild. The program contains a perlscript (mainprog.pl) 
which needs two perl modules like (module1.pm module2.pm)

I will put mainprog.pl in /usr/bin but where do I put the two modules. Shall I 
put them in /usr/share/programename and put that to the perl path?

-- 
cheers,
reen
-- 
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] where to put *.pm files
  2005-05-25  6:06 [gentoo-dev] where to put *.pm files Rene Zbinden
@ 2005-05-25  9:12 ` Michael Cummings
  2005-05-25 15:32   ` Rene Zbinden
  2005-05-26 11:20   ` Rene Zbinden
  2005-05-25 21:32 ` Drake Wyrm
  1 sibling, 2 replies; 8+ messages in thread
From: Michael Cummings @ 2005-05-25  9:12 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 986 bytes --]


Well, first off, how does the program look for the perl modules? If it isn't 
suggesting that you place them in your @INC, then it is most likely loading 
them directly. So it all depends on how the main script (please tell me it 
isn't really called mainprog.pl) tries to load those modules as to the best 
place to put them.

/me waits for the bug report for this one

On Wednesday 25 May 2005 02:06 am, Rene Zbinden wrote:
> Hi
>
> I am writing a new ebuild. The program contains a perlscript (mainprog.pl)
> which needs two perl modules like (module1.pm module2.pm)
>
> I will put mainprog.pl in /usr/bin but where do I put the two modules.
> Shall I put them in /usr/share/programename and put that to the perl path?
>
> --
> cheers,
> reen

-- 

-----o()o---------------------------------------------
Michael Cummings   |    #gentoo-dev, #gentoo-perl
Gentoo Perl Dev    |    on irc.freenode.net 
-----o()o---------------------------------------------

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] where to put *.pm files
  2005-05-25  9:12 ` Michael Cummings
@ 2005-05-25 15:32   ` Rene Zbinden
  2005-05-25 15:45     ` Michael Cummings
  2005-05-26 11:20   ` Rene Zbinden
  1 sibling, 1 reply; 8+ messages in thread
From: Rene Zbinden @ 2005-05-25 15:32 UTC (permalink / raw
  To: gentoo-dev

Yes the program looks in @INC for the modules and no the name of the program 
is not mainprog.pl. How can I put the two modules in the @INC the gentoo way. 
I saw that there is a perl eclass, but I am not sure how to use it correctly.
I will file a Bug when the program works. Or should I already file a bug?

Until now I have submitted several ebuilds and patches but none made it into 
the portage tree....

On Wednesday 25 May 2005 11:12, Michael Cummings wrote:
> Well, first off, how does the program look for the perl modules? If it
> isn't suggesting that you place them in your @INC, then it is most likely
> loading them directly. So it all depends on how the main script (please
> tell me it isn't really called mainprog.pl) tries to load those modules as
> to the best place to put them.
>
> /me waits for the bug report for this one
>
> On Wednesday 25 May 2005 02:06 am, Rene Zbinden wrote:
> > Hi
> >
> > I am writing a new ebuild. The program contains a perlscript
> > (mainprog.pl) which needs two perl modules like (module1.pm module2.pm)
> >
> > I will put mainprog.pl in /usr/bin but where do I put the two modules.
> > Shall I put them in /usr/share/programename and put that to the perl
> > path?
> >
> > --
> > cheers,
> > reen

-- 
cheers,
reen
-- 
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] where to put *.pm files
  2005-05-25 15:32   ` Rene Zbinden
@ 2005-05-25 15:45     ` Michael Cummings
  0 siblings, 0 replies; 8+ messages in thread
From: Michael Cummings @ 2005-05-25 15:45 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1940 bytes --]

Perl modules needs to go under /path/to/perl-version/vendor_perl/ in that case 
(vendor_perl being the key). You can call perl within a function to get the 
perl version/vendor_path (see eclass).

And i'm going to leave the comment on submitting ebuilds dangling lest i start 
a flame war :)

On Wednesday 25 May 2005 11:32 am, Rene Zbinden wrote:
> Yes the program looks in @INC for the modules and no the name of the
> program is not mainprog.pl. How can I put the two modules in the @INC the
> gentoo way. I saw that there is a perl eclass, but I am not sure how to use
> it correctly. I will file a Bug when the program works. Or should I already
> file a bug?
>
> Until now I have submitted several ebuilds and patches but none made it
> into the portage tree....
>
> On Wednesday 25 May 2005 11:12, Michael Cummings wrote:
> > Well, first off, how does the program look for the perl modules? If it
> > isn't suggesting that you place them in your @INC, then it is most likely
> > loading them directly. So it all depends on how the main script (please
> > tell me it isn't really called mainprog.pl) tries to load those modules
> > as to the best place to put them.
> >
> > /me waits for the bug report for this one
> >
> > On Wednesday 25 May 2005 02:06 am, Rene Zbinden wrote:
> > > Hi
> > >
> > > I am writing a new ebuild. The program contains a perlscript
> > > (mainprog.pl) which needs two perl modules like (module1.pm module2.pm)
> > >
> > > I will put mainprog.pl in /usr/bin but where do I put the two modules.
> > > Shall I put them in /usr/share/programename and put that to the perl
> > > path?
> > >
> > > --
> > > cheers,
> > > reen
>
> --
> cheers,
> reen

-- 

-----o()o---------------------------------------------
Michael Cummings   |    #gentoo-dev, #gentoo-perl
Gentoo Perl Dev    |    on irc.freenode.net 
-----o()o---------------------------------------------

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] where to put *.pm files
  2005-05-25  6:06 [gentoo-dev] where to put *.pm files Rene Zbinden
  2005-05-25  9:12 ` Michael Cummings
@ 2005-05-25 21:32 ` Drake Wyrm
  2005-05-25 21:39   ` Jan Kundrát
  2005-05-26  9:12   ` Rene Zbinden
  1 sibling, 2 replies; 8+ messages in thread
From: Drake Wyrm @ 2005-05-25 21:32 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 930 bytes --]

Rene Zbinden <rene.zbinden@solnet.ch> wrote:
> I am writing a new ebuild. The program contains a perlscript
> (mainprog.pl) which needs two perl modules like (module1.pm
> module2.pm)
> 
> I will put mainprog.pl in /usr/bin but where do I put the two modules.
> Shall I put them in /usr/share/programename and put that to the perl
> path?

Is this a package that is currently on CPAN? If so, I have a relatively
useful skeleton for writing CPAN ebuilds. I was able to install several
CPAN packages this way. In the ebuild, you'll need to edit or delete any
line marked with "XXX", but that will likely be all you need to get it
to work. Let me know if anything needs more explanation.

<http://www.haell.com/~wyrm/works/comp/env/prgmmg/perl/skel_cpan.tbz2>

-- 
Batou: Hey, Major... You ever hear of "human rights"?
Kusanagi: I understand the concept, but I've never seen it in action.
  --Ghost in the Shell

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] where to put *.pm files
  2005-05-25 21:32 ` Drake Wyrm
@ 2005-05-25 21:39   ` Jan Kundrát
  2005-05-26  9:12   ` Rene Zbinden
  1 sibling, 0 replies; 8+ messages in thread
From: Jan Kundrát @ 2005-05-25 21:39 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 455 bytes --]

Drake Wyrm wrote:
> Is this a package that is currently on CPAN? If so, I have a relatively
> useful skeleton for writing CPAN ebuilds. I was able to install several
> CPAN packages this way. In the ebuild, you'll need to edit or delete any
> line marked with "XXX", but that will likely be all you need to get it
> to work. Let me know if anything needs more explanation.

Do you know about g-cpan.pl ?

-jkt

-- 
cd /local/pub && more beer > /dev/mouth

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] where to put *.pm files
  2005-05-25 21:32 ` Drake Wyrm
  2005-05-25 21:39   ` Jan Kundrát
@ 2005-05-26  9:12   ` Rene Zbinden
  1 sibling, 0 replies; 8+ messages in thread
From: Rene Zbinden @ 2005-05-26  9:12 UTC (permalink / raw
  To: gentoo-dev

Thanks, but unfortunately it is not on CPAN. 

On Wednesday 25 May 2005 23:32, Drake Wyrm wrote:
> Rene Zbinden <rene.zbinden@solnet.ch> wrote:
> > I am writing a new ebuild. The program contains a perlscript
> > (mainprog.pl) which needs two perl modules like (module1.pm
> > module2.pm)
> >
> > I will put mainprog.pl in /usr/bin but where do I put the two modules.
> > Shall I put them in /usr/share/programename and put that to the perl
> > path?
>
> Is this a package that is currently on CPAN? If so, I have a relatively
> useful skeleton for writing CPAN ebuilds. I was able to install several
> CPAN packages this way. In the ebuild, you'll need to edit or delete any
> line marked with "XXX", but that will likely be all you need to get it
> to work. Let me know if anything needs more explanation.
>
> <http://www.haell.com/~wyrm/works/comp/env/prgmmg/perl/skel_cpan.tbz2>

-- 
cheers,
reen
-- 
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] where to put *.pm files
  2005-05-25  9:12 ` Michael Cummings
  2005-05-25 15:32   ` Rene Zbinden
@ 2005-05-26 11:20   ` Rene Zbinden
  1 sibling, 0 replies; 8+ messages in thread
From: Rene Zbinden @ 2005-05-26 11:20 UTC (permalink / raw
  To: gentoo-dev

Thanks for the help! I put it here:
http://bugs.gentoo.org/show_bug.cgi?id=94060

On Wednesday 25 May 2005 11:12, Michael Cummings wrote:
> Well, first off, how does the program look for the perl modules? If it
> isn't suggesting that you place them in your @INC, then it is most likely
> loading them directly. So it all depends on how the main script (please
> tell me it isn't really called mainprog.pl) tries to load those modules as
> to the best place to put them.
>
> /me waits for the bug report for this one
>
> On Wednesday 25 May 2005 02:06 am, Rene Zbinden wrote:
> > Hi
> >
> > I am writing a new ebuild. The program contains a perlscript
> > (mainprog.pl) which needs two perl modules like (module1.pm module2.pm)
> >
> > I will put mainprog.pl in /usr/bin but where do I put the two modules.
> > Shall I put them in /usr/share/programename and put that to the perl
> > path?
> >
> > --
> > cheers,
> > reen

-- 
cheers,
reen
-- 
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-05-26 11:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-25  6:06 [gentoo-dev] where to put *.pm files Rene Zbinden
2005-05-25  9:12 ` Michael Cummings
2005-05-25 15:32   ` Rene Zbinden
2005-05-25 15:45     ` Michael Cummings
2005-05-26 11:20   ` Rene Zbinden
2005-05-25 21:32 ` Drake Wyrm
2005-05-25 21:39   ` Jan Kundrát
2005-05-26  9:12   ` Rene Zbinden

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox