Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 485224 - dev-perl/Daemon-Control - create init scripts in perl
Summary: dev-perl/Daemon-Control - create init scripts in perl
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2013-09-17 17:50 UTC by DaggyStyle
Modified: 2014-12-07 15:29 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Daemon-Control-0.001004.ebuild (Daemon-Control-0.001004.ebuild,332 bytes, text/plain)
2013-09-17 17:51 UTC, DaggyStyle
Details

Note You need to log in before you can comment on or make changes to this bug.
Description DaggyStyle 2013-09-17 17:50:57 UTC
I;m attaching an ebuild for module Daemon-Control in perl that I tried the other day

Reproducible: Always
Comment 1 DaggyStyle 2013-09-17 17:51:21 UTC
Created attachment 358888 [details]
Daemon-Control-0.001004.ebuild
Comment 2 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2013-09-18 07:57:09 UTC
Just a heads up.

In Gentoo, we have to normalise perl module versions, because Perl version sematics are almost opposite to Gentoo version sematics, and as such, Perl modules are a special case where the recommendation is *NOT* to match upstream versioning closely. 

There's a tool that makes this straightforward, dev-perl/Gentoo-PerlMod-Version

> $ gentoo-perlmod-version.pl 0.001004
> 0.001004 => 0.1.4

So Daemon-Control-0.001004 should enter Gentoo as Daemon-Control-0.1.4.ebuild
Comment 3 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2013-09-18 08:06:02 UTC
Looking at https://metacpan.org/source/SYMKAT/Daemon-Control-0.001004/META.yml also indicates you've missed a few dependencies:

DEPEND should include >=virtual/perl-ExtUtils-MakeMaker-6.590.0  or it may silently fail on <=perl-5.15

RDEPEND and DEPEND should both include >=virtual/perl-File-Path-2.08 , or it will likely fail on <=perl-5.11  ( which is masked for removal, but still in tree )
Comment 4 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2013-09-18 08:17:23 UTC
Oh, And DESCRIPTION=  should just be DESCRIPTION="Create init scripts in Perl"

Otherwise stuff like 

eix -c dev-perl/Daemon-Control will say:


[N] dev-perl/Daemon-Control (~0.1.4): Perl Daemon-Control - Create init scripts in Perl 


^ which is redundant information.
Comment 5 DaggyStyle 2013-09-19 07:09:49 UTC
thanks for the tips, I just wanted to install it via portage and not via cpan, I've assumed that someone will take the lead on this.

btw, is there a script that creates such perl modules ebuilds, from what I can understand it is quite straight forward creating a basic ebuild
Comment 6 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2013-09-19 08:53:15 UTC
there is app-portage/g-cpan, but the quality of ebuilds it produces are not really portage-tree suitable.

If you're primarily doing perl development however, the recommendation is that you *NOT* rely on the Gentoo toolchain for that.

If you're doing that, there are 2 recommended approaches:

1. Install a perl in ~/  using dev-perl/App-perlbrew from ::perl-experimental{,-snapshots}

2. Use dev-perl/local-lib ( also ::perl-experimental{,-snapshots} ) to provide a user-oriented install path.

And the recommendation is that you use one of the above in conjunction with dev-perl/App-cpanminus, and install and develop things using a strictly CPAN toolchain.
Comment 7 Ettore Di Giacinto (RETIRED) gentoo-dev 2014-07-21 13:44:10 UTC
taking it, opened a pull request on the perl-experimental overlay https://github.com/gentoo-perl/perl-experimental/pull/20
Comment 8 Andreas K. Hüttel archtester gentoo-dev 2014-10-26 22:04:04 UTC
Is anyone still interested in this? Where is it used?
Comment 9 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2014-12-07 15:29:45 UTC
Seems not.