On a quick look at the code, you seem to use h2ph only to extract the Linux
syscalls. And the only syscall used in the code is getdents.
But syscalls numbers are not expected to change from one machine to another.
So using h2ph for this task seems to be just masochism. I would just define
a numeric constant.

Olivier.

2017-02-06 15:34 GMT+01:00 Alceu Rodrigues de Freitas Junior via
cpan-testers-discuss <cpan-testers-discuss@perl.org>:

> Hello folks,
>
> I just released a new distribution (http://search.cpan.org/~arfre
> itas/Linux-NFS-BigDir-0.001/) but I see that is getting a lot of fails
> because h2ph is not configured.
>
> I'm wondering if there is any recommended way to execute this
> configuration during the distribution setup (or if it is not recommended
> anyway). I'm using Dist::Zilla for it, and see that there is this plugin
> Dist::Zilla::Plugin::Run should be enough to execute the steps documented
> at https://github.com/glasswalk3r/Linux-NFS-BigDir#install-receipt (but
> I'm not sure it would work in other Linux distributions).
>
> Another possibility is to do "require" under eval() block and skip all
> tests if it generates an exception.
>
> Thanks!
>
> Alceu
>
  • adding h2ph con... Alceu Rodrigues de Freitas Junior via cpan-testers-discuss
    • Re: adding... Olivier Mengué
      • Re: ad... Alceu Rodrigues de Freitas Junior via cpan-testers-discuss
      • Re: ad... Olivier Mengué
        • Re... Alceu Rodrigues de Freitas Junior via cpan-testers-discuss
    • Re: adding... Kent Fredric
      • Re: ad... Alceu Rodrigues de Freitas Junior via cpan-testers-discuss
        • Re... Jean-Damien Durand
          • ... Alceu Rodrigues de Freitas Junior via cpan-testers-discuss
            • ... Kent Fredric

Reply via email to