CFFI + asdf bundles
Faré
fahree at gmail.com
Thu Sep 24 00:02:31 UTC 2015
PING.
Here's an updated version of my patch, with fixes for monolithic-lib-op.
Should I create a pull request on github instead?
Note that the static linking magic works on Windows and Linux but not BSD
(but that's no regression).
—♯ƒ • François-René ÐVB Rideau •Reflection&Cybernethics• http://fare.tunes.org
Paradoxes only exist in language, not reality. — Eric S. Raymond
On Wed, Sep 16, 2015 at 11:29 PM, Faré <fahree at gmail.com> wrote:
> Here is a patch that will make CFFI play better with ASDF bundles.
> This allows delivery with a single .so and/or .a file for all the
> wrappers in a system, which can be automatically linked into ECL (and
> in the future, in SBCL or other implementations, for application
> delivery).
>
> Also, report for a bug, not fixed in the attached patch: compiling,
> linking, etc., should be atomic, by using temporary pathnames;
> otherwise, there is a race condition when multiple processes try to
> execute a script that depends on a CFFI library. Recent-enough ASDF
> 3.1.2 provides with-temporary-file to help, and 3.1.5 uses it
> internally for its own targets, but some implementations still lag
> behind with ASDF 3.0.x, and ASDF can't backwards-compatibly use
> with-temporary-file for you, so you must use it yourself.
>
> This patch also drops support for ASDF 2 or earlier, because backwards
> compatibility is hard, and not necessary: today, all implementations
> provide ASDF 3.
>
> —♯ƒ • François-René ÐVB Rideau •Reflection&Cybernethics• http://fare.tunes.org
> The least deviation from truth will be multiplied later.
> — Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Make-CFFI-grovel-play-well-with-ASDF-3.1.5.12.patch
Type: text/x-patch
Size: 27242 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/cffi-devel/attachments/20150923/a68f45af/attachment-0001.bin>
More information about the cffi-devel
mailing list