Dear list,I'd suggest looking at ebuilds created by g-cpan, which produces
I'm trying to create an ebuild for a ZFS snapshot/replication
automation tool called Znapzend that I've been using on FreeBSD for
some time and also would like to use in Gentoo. https://github.com/oetiker/znapzend
The project homepage has a link to a 3 year old abandoned ebuild that
no longer works. The program exists as a package in FreeBSD and also
in Arch Linux and I've used all these sources to try to understand
the best approach how to handle it in Gentoo.
I've managed to create a working ebuild but I need some input for the
final install phase. The program is written in Perl and creates a few modules. The above mentioned sources do not agree on the location of
these files and gives no hints to why the maintainers chose the
solution they did.
The FreeBSD approach seems straight forward and places the files accordingly:
/usr/local/lib/perl5/site_perl/ZnapZend.pm /usr/local/lib/perl5/site_perl/ZnapZend/Config.pm /usr/local/lib/perl5/site_perl/ZnapZend/Time.pm /usr/local/lib/perl5/site_perl/ZnapZend/ZFS.pm /usr/local/lib/perl5/site_perl/inheritLevels.pm
In Gentoo I find .pm files in a multitude of places e.g. /usr/lib64/perl5/5.36
/usr/lib64/perl5/vendor_perl/5.36
This is where I lack the necessary knowledge to proceed.
1) Where's the appropriate place for these files in Gentoo and why?
2) If the appropriate place is either of those folders with a version number, how do I install the files there without hard coding the
version number in the ebuild (which would naturally break the next
time Perl gets updated)?
Regards
Morgan Wesström
On 2023-03-21 21:04, Jack wrote:I don't know if it's actually useful, but note I suggested perl-gcpan
1) Where's the appropriate place for these files in Gentoo and why?I'd suggest looking at ebuilds created by g-cpan, which produces
2) If the appropriate place is either of those folders with a
version number, how do I install the files there without hard
coding the version number in the ebuild (which would naturally
break the next time Perl gets updated)?
Regards
Morgan Wesström
ebuilds for any module in CPAN. I suspect the eclass(es) involved
deal with the perl version issue. I don't think you can savely
ignore that, since there are likely to be things in the module which
do depend on the version of perl used to create that module.
Thank you, Jack. Digging through some ebuilds in the dev-perl
category was the first thing I did. It led me to the perl-module
eclass but I can only find reference documentation which doesn't tell
me how to use it or how its functions hook into the build system.
I lack fundamental knowledge of how Perl is organized and I'm an oldI might challenge you on age, and the mere fact that you are using
guy which mean I have to be selective with new knowledge not t be overwhelmed. ;) How DO I know if either module is dependent on a
specific Perl version for example?
In the old ebuild I found online, the developer just creates a /usr/share/znapzend/perl5 folder and puts all those files there.The znapaend readme says something about any necessary perl modules
https://git.gerczei.eu/tgerczei/gentoo-overlay/src/branch/master/app-backup/znapzend/znapzend-0.20.0.ebuild
I could easily do that and be done with it but this is also an
opportunity to absorb some new knowledge and to know that I made the correct choice and why this choice is the correct one in this
situation.
RegardsJack
Morgan
1) Where's the appropriate place for these files in Gentoo and why?I'd suggest looking at ebuilds created by g-cpan, which produces ebuilds for any module in CPAN. I suspect the eclass(es) involved deal with the perl version issue. I don't think you can savely ignore that, since there are likely to be things in the module which do depend on the version of perl used to create that module.
2) If the appropriate place is either of those folders with a version number,
how do I install the files there without hard coding the version number in >> the ebuild (which would naturally break the next time Perl gets updated)?
Regards
Morgan Wesström
I'd suggest looking at ebuilds created by g-cpan, which produces ebuilds for any module in CPAN.
On 2023-03-21 21:04, Jack wrote:
1) Where's the appropriate place for these files in Gentoo and why?I'd suggest looking at ebuilds created by g-cpan, which produces
2) If the appropriate place is either of those folders with a
version number, how do I install the files there without hard coding
the version number in the ebuild (which would naturally break the
next time Perl gets updated)?
Regards
Morgan Wesström
ebuilds for any module in CPAN. I suspect the eclass(es) involved
deal with the perl version issue. I don't think you can savely
ignore that, since there are likely to be things in the module which
do depend on the version of perl used to create that module.
Thank you, Jack. Digging through some ebuilds in the dev-perl category
was the first thing I did. It led me to the perl-module eclass but I
can only find reference documentation which doesn't tell me how to use
it or how its functions hook into the build system. I lack fundamental knowledge of how Perl is organized and I'm an old guy which mean I
have to be selective with new knowledge not t be overwhelmed. ;) How
DO I know if either module is dependent on a specific Perl version for example?
In the old ebuild I found online, the developer just creates a /usr/share/znapzend/perl5 folder and puts all those files there.
https://git.gerczei.eu/tgerczei/gentoo-overlay/src/branch/master/app-backup/znapzend/znapzend-0.20.0.ebuild
I could easily do that and be done with it but this is also an
opportunity to absorb some new knowledge and to know that I made the
correct choice and why this choice is the correct one in this situation.
Regards
Morgan
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 302 |
Nodes: | 16 (0 / 16) |
Uptime: | 96:17:02 |
Calls: | 6,764 |
Calls today: | 2 |
Files: | 12,295 |
Messages: | 5,376,361 |
Posted today: | 1 |