pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/archivers/ruby-libarchive archivers/ruby-libarchive: F...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/da82046d6a8e
branches:  trunk
changeset: 446949:da82046d6a8e
user:      taca <taca%pkgsrc.org@localhost>
date:      Sun Feb 14 15:23:57 2021 +0000

description:
archivers/ruby-libarchive: Fix build with Ruby 3.0

diffstat:

 archivers/ruby-libarchive/distinfo                                 |   3 +-
 archivers/ruby-libarchive/patches/patch-ext_libarchive__internal.h |  17 ++++++++++
 2 files changed, 19 insertions(+), 1 deletions(-)

diffs (34 lines):

diff -r 53d69c97f337 -r da82046d6a8e archivers/ruby-libarchive/distinfo
--- a/archivers/ruby-libarchive/distinfo        Sun Feb 14 15:17:21 2021 +0000
+++ b/archivers/ruby-libarchive/distinfo        Sun Feb 14 15:23:57 2021 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.4 2016/01/04 02:48:05 taca Exp $
+$NetBSD: distinfo,v 1.5 2021/02/14 15:23:57 taca Exp $
 
 SHA1 (libarchive-0.1.2.gem) = 5a7f5d5e9771f00c4ef2b030602381a29ff0eb11
 RMD160 (libarchive-0.1.2.gem) = 337296b1c31898ee7e438fd5e368fb821462c341
 SHA512 (libarchive-0.1.2.gem) = 5644e82f2a0573f084a96f11dd7a6b9b3f44e4f1190ee830d46f9ba6eeee7e498a78cee9f5af54fda5d27159f53c1c7d66bc9a9e2c8c1c18382848c0deb461ff
 Size (libarchive-0.1.2.gem) = 53760 bytes
 SHA1 (patch-ext_extconf.rb) = 82d1b14bc2c8785883c9a84d541eb18d5a080aa9
+SHA1 (patch-ext_libarchive__internal.h) = 67ad5a14f2d0437de737860768b1a924ecc9ef14
diff -r 53d69c97f337 -r da82046d6a8e archivers/ruby-libarchive/patches/patch-ext_libarchive__internal.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/archivers/ruby-libarchive/patches/patch-ext_libarchive__internal.h        Sun Feb 14 15:23:57 2021 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-ext_libarchive__internal.h,v 1.1 2021/02/14 15:23:57 taca Exp $
+
+* Fix for Ruby 3.
+
+--- ext/libarchive_internal.h.orig     2021-01-11 05:55:51.159908652 +0000
++++ ext/libarchive_internal.h
+@@ -28,7 +28,10 @@
+ #include <archive_entry.h>
+ 
+ #include <ruby.h>
++#include <ruby/version.h>
++#if RUBY_API_VERSION_MAJOR < 3
+ #include <rubysig.h>
++#endif
+ 
+ #ifdef _WIN32
+ #include "libarchive_win32.h"



Home | Main Index | Thread Index | Old Index