Hi,

On Fri, May 16, 2014 at 11:06:17PM +0300, Niko Tyni wrote:
> Would it be possible to probe for the contents of the flock struct with C
> code at build time, and then use that information to write out a pure perl
> module that regenerates the structs at run time (probably with pack())?
> 
> It would still be architecture dependent (and thus go in
> vendorarch/sitearch) but it wouldn't need a rebuild across Perl upgrades.

I've got it to work and send atttach the new version - it's now
a pure Perl module, created when running 'perl Makefile.PL'.
Please let me know if this helps to solve the problem. If it
does I'll upload it to CPAN.

I've got one concern about the CPAN upload: there's no .pm file
in the package since that only gets created when 'perl Makefile.PL'
is run (that is when I can compile and run the C program that
creates the Perl code for packing/unpacking the C structure which
then is added to the other Perl code). Does anyone know if CPAN
will grok that and run 'perl Makefile.PL'? I worry that without
a .pm file CPAN won't be able to create a web page with the POD
documentation which wouldn't be very nice...

                         Best regards, Jens
-- 
  \   Jens Thoms Toerring  ________      j...@toerring.de
   \_______________________________      http://toerring.de

Attachment: File-FcntlLock-0.15.tar.gz
Description: Binary data

Reply via email to