Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Jan 2018 20:12:43 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r458080 - in head/devel/rubygem-msgpack: . files
Message-ID:  <201801042012.w04KChbM056416@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Thu Jan  4 20:12:43 2018
New Revision: 458080
URL: https://svnweb.freebsd.org/changeset/ports/458080

Log:
  Fix build with Ruby 2.4+ and unbreak this port
  
  Approved by:	portmgr (blanket)
  MFH:		2018Q1

Added:
  head/devel/rubygem-msgpack/files/
  head/devel/rubygem-msgpack/files/patch-ext-msgpack-core_ext.c   (contents, props changed)
Modified:
  head/devel/rubygem-msgpack/Makefile

Modified: head/devel/rubygem-msgpack/Makefile
==============================================================================
--- head/devel/rubygem-msgpack/Makefile	Thu Jan  4 20:12:38 2018	(r458079)
+++ head/devel/rubygem-msgpack/Makefile	Thu Jan  4 20:12:43 2018	(r458080)
@@ -14,8 +14,6 @@ USE_RUBY=	yes
 USES=		gem
 STRIPDIR=	${STAGEDIR}${PREFIX}/${GEMS_BASE_DIR}
 
-BROKEN_RUBY24=	yes
-
 post-install:
 	${FIND} ${STRIPDIR} -type f \( -name '*.o' -o -name '*.so' \) | ${XARGS} ${STRIP_CMD}
 

Added: head/devel/rubygem-msgpack/files/patch-ext-msgpack-core_ext.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/rubygem-msgpack/files/patch-ext-msgpack-core_ext.c	Thu Jan  4 20:12:43 2018	(r458080)
@@ -0,0 +1,13 @@
+--- ext/msgpack/core_ext.c.orig	2018-01-03 15:29:36 UTC
++++ ext/msgpack/core_ext.c
+@@ -118,8 +118,8 @@ void MessagePack_core_ext_module_init()
+     rb_define_method(rb_cNilClass,   "to_msgpack", NilClass_to_msgpack, -1);
+     rb_define_method(rb_cTrueClass,  "to_msgpack", TrueClass_to_msgpack, -1);
+     rb_define_method(rb_cFalseClass, "to_msgpack", FalseClass_to_msgpack, -1);
+-    rb_define_method(rb_cFixnum, "to_msgpack", Fixnum_to_msgpack, -1);
+-    rb_define_method(rb_cBignum, "to_msgpack", Bignum_to_msgpack, -1);
++    rb_define_method(rb_cInteger, "to_msgpack", Fixnum_to_msgpack, -1);
++    rb_define_method(rb_cInteger, "to_msgpack", Bignum_to_msgpack, -1);
+     rb_define_method(rb_cFloat,  "to_msgpack", Float_to_msgpack, -1);
+     rb_define_method(rb_cString, "to_msgpack", String_to_msgpack, -1);
+     rb_define_method(rb_cArray,  "to_msgpack", Array_to_msgpack, -1);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801042012.w04KChbM056416>