ruby/ext
Yusuke Endoh e1855100e4 ext/fiddle/extconf.rb: check if ffi_closure_alloc is available
to define HAVE_FFI_CLOSURE_ALLOC.
The macro is used in closure.c, so have_func check is needed.

If pkg-config is not installed, extconf.rb fails to detect the version
of libffi, and does not add "-DUSE_FFI_CLOSURE_ALLOC=1" even when system
libffi version is >= 3.2.

If USE_FFI_CLOSURE_ALLOC is not defined, closure.c attempts to check if
HAVE_FFI_CLOSURE_ALLOC is defined or not, but have_func was removed with
528a3a1797, so the macro is always not
defined.

This resulted in this deprecation warning:

https://rubyci.org/logs/rubyci.s3.amazonaws.com/ubuntu2004/ruby-master/log/20200512T123003Z.log.html.gz
```
compiling closure.c
closure.c: In function 'initialize':
closure.c:265:5: warning: 'ffi_prep_closure' is deprecated: use ffi_prep_closure_loc instead [-Wdeprecated-declarations]
  265 |     result = ffi_prep_closure(pcl, cif, callback, (void *)self);
      |     ^~~~~~
In file included from ./fiddle.h:42,
                 from closure.c:1:
/usr/include/x86_64-linux-gnu/ffi.h:334:1: note: declared here
  334 | ffi_prep_closure (ffi_closure*,
      | ^~~~~~~~~~~~~~~~
```
2020-05-13 01:17:30 +09:00
..
-test- sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
bigdecimal sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
cgi/escape sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
continuation sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
coverage sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
date sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
dbm sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
digest sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
etc sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
fcntl sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
fiber Update dependencies 2019-11-18 23:16:22 +09:00
fiddle ext/fiddle/extconf.rb: check if ffi_closure_alloc is available 2020-05-13 01:17:30 +09:00
gdbm sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
io sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
json sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
monitor sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
nkf sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
objspace sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
openssl sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
pathname sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
psych sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
pty sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
racc/cparse sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
rbconfig/sizeof sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
readline sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
ripper sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
rubyvm Added depend files 2019-07-14 01:31:29 +09:00
sdbm sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
socket sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
stringio sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
strscan sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
syslog sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
win32 Include ruby/assert.h in ruby/ruby.h so that assertions can be there 2019-07-14 17:58:03 +09:00
win32ole win32ole: separate global variable declarations and definitions 2020-05-10 21:37:59 +09:00
zlib sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
.document ext/.document: follow-up r59734 2017-09-03 13:31:34 +00:00
Setup Removed deprecated extensions of mathn. 2017-04-20 08:21:24 +00:00
Setup.atheos * ext/tk: Tk is removed from stdlib. [Feature #8539] 2016-08-09 06:44:45 +00:00
Setup.nt * ext/tk: Tk is removed from stdlib. [Feature #8539] 2016-08-09 06:44:45 +00:00
extmk.rb Configure static extensions only if in charge 2019-11-19 15:11:41 +09:00