Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Sep 2015 21:30:40 +0000 (UTC)
From:      Michael Moll <mmoll@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r397464 - in head/lang: ruby20/files ruby21/files
Message-ID:  <201509202130.t8KLUe7W015210@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mmoll
Date: Sun Sep 20 21:30:40 2015
New Revision: 397464
URL: https://svnweb.freebsd.org/changeset/ports/397464

Log:
  fix Ruby 2.0 and 2.1 header for clang 3.7
  
  2.2 already had this change in upstream
  
  PR:		202660
  Submitted by:	dim (different version)
  Obtained from:	Ruby SVN repository (r47996)

Added:
  head/lang/ruby20/files/patch-include_ruby_ruby.h   (contents, props changed)
  head/lang/ruby21/files/patch-include_ruby_ruby.h   (contents, props changed)

Added: head/lang/ruby20/files/patch-include_ruby_ruby.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/ruby20/files/patch-include_ruby_ruby.h	Sun Sep 20 21:30:40 2015	(r397464)
@@ -0,0 +1,11 @@
+--- include/ruby/ruby.h.orig	2015-09-20 20:42:37 UTC
++++ include/ruby/ruby.h
+@@ -238,7 +238,7 @@ typedef char ruby_check_sizeof_voidp[SIZ
+ #define FIXNUM_MAX (LONG_MAX>>1)
+ #define FIXNUM_MIN RSHIFT((long)LONG_MIN,1)
+ 
+-#define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG))
++#define INT2FIX(i) (((VALUE)(i))<<1 | FIXNUM_FLAG)
+ #define LONG2FIX(i) INT2FIX(i)
+ #define rb_fix_new(v) INT2FIX(v)
+ VALUE rb_int2inum(SIGNED_VALUE);

Added: head/lang/ruby21/files/patch-include_ruby_ruby.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/ruby21/files/patch-include_ruby_ruby.h	Sun Sep 20 21:30:40 2015	(r397464)
@@ -0,0 +1,11 @@
+--- include/ruby/ruby.h.orig	2015-09-20 20:49:26 UTC
++++ include/ruby/ruby.h
+@@ -228,7 +228,7 @@ typedef char ruby_check_sizeof_voidp[SIZ
+ #define FIXNUM_MAX (LONG_MAX>>1)
+ #define FIXNUM_MIN RSHIFT((long)LONG_MIN,1)
+ 
+-#define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG))
++#define INT2FIX(i) (((VALUE)(i))<<1 | FIXNUM_FLAG)
+ #define LONG2FIX(i) INT2FIX(i)
+ #define rb_fix_new(v) INT2FIX(v)
+ VALUE rb_int2inum(SIGNED_VALUE);



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