dkg has asked for the wisdom of the Perl Monks concerning the following question:
i'm contributing the the Crypt::GCrypt perl bindings for libgcrypt. Certain old versions of libgcrypt are simply buggy, and will guarantee a test suite failure for the perl module. I'd like to refuse module compilation entirely when those versions are present (and print a helpful error message explaining why users should upgrade). What's the best way to do that?
I have a very simple C program written that could be compiled with the same flags used by the translated GCrypt.xs; It returns a 1 for "bad version" or 0 for "good version".
Is there a standard way to have the perl Makefile.PL step build and run this program before emitting a Makefile? Or should i look at some other way to check this information? Or should i just let the test suites fail without any other checking?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Testing for C library status at perl binding build time?
by Corion (Patriarch) on Dec 17, 2009 at 18:09 UTC | |
|
Re: Testing for C library status at perl binding build time?
by jettero (Monsignor) on Dec 17, 2009 at 18:10 UTC | |
by dkg (Acolyte) on Dec 17, 2009 at 19:01 UTC | |
by Corion (Patriarch) on Dec 17, 2009 at 19:06 UTC | |
by dkg (Acolyte) on Dec 17, 2009 at 23:25 UTC |