git: 15fae83a0092 - main - devel/rubygem-iobuffer: Fix build with Ruby 3.x
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 14 Mar 2022 05:04:56 UTC
The branch main has been updated by yasu: URL: https://cgit.FreeBSD.org/ports/commit/?id=15fae83a0092a7a9f57354e2cf52f8fe239ab175 commit 15fae83a0092a7a9f57354e2cf52f8fe239ab175 Author: Yasuhiro Kimura <yasu@FreeBSD.org> AuthorDate: 2022-03-10 09:06:59 +0000 Commit: Yasuhiro Kimura <yasu@FreeBSD.org> CommitDate: 2022-03-14 04:59:58 +0000 devel/rubygem-iobuffer: Fix build with Ruby 3.x PR: 262527 --- devel/rubygem-iobuffer/files/patch-ext_extconf.rb | 13 +++++++++++++ devel/rubygem-iobuffer/files/patch-ext_iobuffer.c | 11 +++++++++++ 2 files changed, 24 insertions(+) diff --git a/devel/rubygem-iobuffer/files/patch-ext_extconf.rb b/devel/rubygem-iobuffer/files/patch-ext_extconf.rb new file mode 100644 index 000000000000..d16f33859799 --- /dev/null +++ b/devel/rubygem-iobuffer/files/patch-ext_extconf.rb @@ -0,0 +1,13 @@ +--- ext/extconf.rb.orig 2022-03-10 08:57:25 UTC ++++ ext/extconf.rb +@@ -2,8 +2,8 @@ require 'mkmf' + + dir_config("iobuffer") + have_library("c", "main") +-if have_macro("HAVE_RB_IO_T", "rubyio.h") +- have_struct_member("rb_io_t", "fd", "rubyio.h") ++if have_macro("HAVE_RB_IO_T", "ruby/io.h") ++ have_struct_member("rb_io_t", "fd", "ruby/io.h") + end + + create_makefile("iobuffer_ext") diff --git a/devel/rubygem-iobuffer/files/patch-ext_iobuffer.c b/devel/rubygem-iobuffer/files/patch-ext_iobuffer.c new file mode 100644 index 000000000000..4253b2675686 --- /dev/null +++ b/devel/rubygem-iobuffer/files/patch-ext_iobuffer.c @@ -0,0 +1,11 @@ +--- ext/iobuffer.c.orig 2022-03-10 08:57:25 UTC ++++ ext/iobuffer.c +@@ -5,7 +5,7 @@ + */ + + #include "ruby.h" +-#include "rubyio.h" ++#include "ruby/io.h" + + #include <assert.h> +