[前][次][番号順一覧][スレッド一覧]

ruby-changes:40718

From: usa <ko1@a...>
Date: Mon, 30 Nov 2015 21:08:40 +0900 (JST)
Subject: [ruby-changes:40718] usa:r52797 (ruby_2_1): merge revision(s) 52694: [Backport #3231]

usa	2015-11-30 21:08:16 +0900 (Mon, 30 Nov 2015)

  New Revision: 52797

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52797

  Log:
    merge revision(s) 52694: [Backport #3231]
    
    * ext/digest/*/*.[ch]: include ruby.h before digest.h to avoid
      includeing ext/digest/extconf.h. [Bug #3231]
      https://msdn.microsoft.com/library/36k2cdd4.aspx
    
    * ext/digest/*/extconf.rb: remove ext/digest from include search path
      to avoid confusion of cl.exe.
    
    * ext/digest/*/*.[ch]: explicitly specify def.h's path.

  Modified directories:
    branches/ruby_2_1/
  Modified files:
    branches/ruby_2_1/ChangeLog
    branches/ruby_2_1/ext/digest/bubblebabble/bubblebabble.c
    branches/ruby_2_1/ext/digest/bubblebabble/extconf.rb
    branches/ruby_2_1/ext/digest/md5/extconf.rb
    branches/ruby_2_1/ext/digest/md5/md5.h
    branches/ruby_2_1/ext/digest/md5/md5init.c
    branches/ruby_2_1/ext/digest/rmd160/extconf.rb
    branches/ruby_2_1/ext/digest/rmd160/rmd160.c
    branches/ruby_2_1/ext/digest/rmd160/rmd160.h
    branches/ruby_2_1/ext/digest/rmd160/rmd160init.c
    branches/ruby_2_1/ext/digest/rmd160/rmd160ossl.c
    branches/ruby_2_1/ext/digest/sha1/extconf.rb
    branches/ruby_2_1/ext/digest/sha1/sha1.h
    branches/ruby_2_1/ext/digest/sha1/sha1init.c
    branches/ruby_2_1/ext/digest/sha2/extconf.rb
    branches/ruby_2_1/ext/digest/sha2/sha2.c
    branches/ruby_2_1/ext/digest/sha2/sha2init.c
    branches/ruby_2_1/ext/digest/sha2/sha2ossl.c
    branches/ruby_2_1/version.h
Index: ruby_2_1/ChangeLog
===================================================================
--- ruby_2_1/ChangeLog	(revision 52796)
+++ ruby_2_1/ChangeLog	(revision 52797)
@@ -1,3 +1,14 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_1/ChangeLog#L1
+Mon Nov 30 21:02:21 2015  NARUSE, Yui  <naruse@r...>
+
+	* ext/digest/*/*.[ch]: include ruby.h before digest.h to avoid
+	  includeing ext/digest/extconf.h. [Bug #3231]
+	  https://msdn.microsoft.com/library/36k2cdd4.aspx
+
+	* ext/digest/*/extconf.rb: remove ext/digest from include search path
+	  to avoid confusion of cl.exe.
+
+	* ext/digest/*/*.[ch]: explicitly specify def.h's path.
+
 Mon Nov 30 20:54:22 2015  SHIBATA Hiroshi  <hsbt@r...>
 
 	* Added missing reference of GitHub
Index: ruby_2_1/ext/digest/bubblebabble/bubblebabble.c
===================================================================
--- ruby_2_1/ext/digest/bubblebabble/bubblebabble.c	(revision 52796)
+++ ruby_2_1/ext/digest/bubblebabble/bubblebabble.c	(revision 52797)
@@ -11,8 +11,8 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_1/ext/digest/bubblebabble/bubblebabble.c#L11
 
 ************************************************/
 
-#include "ruby.h"
-#include "digest.h"
+#include <ruby/ruby.h>
+#include "../digest.h"
 
 static ID id_digest;
 
Index: ruby_2_1/ext/digest/bubblebabble/extconf.rb
===================================================================
--- ruby_2_1/ext/digest/bubblebabble/extconf.rb	(revision 52796)
+++ ruby_2_1/ext/digest/bubblebabble/extconf.rb	(revision 52797)
@@ -1,6 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_1/ext/digest/bubblebabble/extconf.rb#L1
 require 'mkmf'
 
 $defs << "-DHAVE_CONFIG_H"
-$INCFLAGS << " -I$(srcdir)/.."
 
 create_makefile('digest/bubblebabble')
Index: ruby_2_1/ext/digest/md5/extconf.rb
===================================================================
--- ruby_2_1/ext/digest/md5/extconf.rb	(revision 52796)
+++ ruby_2_1/ext/digest/md5/extconf.rb	(revision 52797)
@@ -5,7 +5,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_1/ext/digest/md5/extconf.rb#L5
 require "mkmf"
 
 $defs << "-DHAVE_CONFIG_H"
-$INCFLAGS << " -I$(srcdir)/.."
 
 $objs = [ "md5init.#{$OBJEXT}" ]
 
Index: ruby_2_1/ext/digest/md5/md5init.c
===================================================================
--- ruby_2_1/ext/digest/md5/md5init.c	(revision 52796)
+++ ruby_2_1/ext/digest/md5/md5init.c	(revision 52797)
@@ -1,7 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_1/ext/digest/md5/md5init.c#L1
 /* $RoughId: md5init.c,v 1.2 2001/07/13 19:49:10 knu Exp $ */
 /* $Id$ */
 
-#include "digest.h"
+#include <ruby/ruby.h>
+#include "../digest.h"
 #if defined(HAVE_OPENSSL_MD5_H)
 #include "md5ossl.h"
 #else
Index: ruby_2_1/ext/digest/md5/md5.h
===================================================================
--- ruby_2_1/ext/digest/md5/md5.h	(revision 52796)
+++ ruby_2_1/ext/digest/md5/md5.h	(revision 52797)
@@ -46,7 +46,7 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_1/ext/digest/md5/md5.h#L46
 #ifndef MD5_INCLUDED
 #  define MD5_INCLUDED
 
-#include "defs.h"
+#include "../defs.h"
 
 /*
  * This code has some adaptations for the Ghostscript environment, but it
Index: ruby_2_1/ext/digest/rmd160/rmd160.h
===================================================================
--- ruby_2_1/ext/digest/rmd160/rmd160.h	(revision 52796)
+++ ruby_2_1/ext/digest/rmd160/rmd160.h	(revision 52797)
@@ -26,7 +26,7 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_1/ext/digest/rmd160/rmd160.h#L26
 #ifndef _RMD160_H_
 #define _RMD160_H_
 
-#include "defs.h"
+#include "../defs.h"
 
 typedef struct {
 	uint32_t	state[5];	/* state (ABCDE) */
Index: ruby_2_1/ext/digest/rmd160/extconf.rb
===================================================================
--- ruby_2_1/ext/digest/rmd160/extconf.rb	(revision 52796)
+++ ruby_2_1/ext/digest/rmd160/extconf.rb	(revision 52797)
@@ -5,7 +5,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_1/ext/digest/rmd160/extconf.rb#L5
 require "mkmf"
 
 $defs << "-DNDEBUG" << "-DHAVE_CONFIG_H"
-$INCFLAGS << " -I$(srcdir)/.."
 
 $objs = [ "rmd160init.#{$OBJEXT}" ]
 
Index: ruby_2_1/ext/digest/rmd160/rmd160.c
===================================================================
--- ruby_2_1/ext/digest/rmd160/rmd160.c	(revision 52796)
+++ ruby_2_1/ext/digest/rmd160/rmd160.c	(revision 52797)
@@ -20,6 +20,7 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_1/ext/digest/rmd160/rmd160.c#L20
  *
 \********************************************************************/
 
+#include "../defs.h"
 #include "rmd160.h"
 
 #ifndef lint
Index: ruby_2_1/ext/digest/rmd160/rmd160ossl.c
===================================================================
--- ruby_2_1/ext/digest/rmd160/rmd160ossl.c	(revision 52796)
+++ ruby_2_1/ext/digest/rmd160/rmd160ossl.c	(revision 52797)
@@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_1/ext/digest/rmd160/rmd160ossl.c#L1
 /* $Id$ */
 
-#include "defs.h"
+#include "../defs.h"
 #include "rmd160ossl.h"
 
 void RMD160_Finish(RMD160_CTX *ctx, char *buf) {
Index: ruby_2_1/ext/digest/rmd160/rmd160init.c
===================================================================
--- ruby_2_1/ext/digest/rmd160/rmd160init.c	(revision 52796)
+++ ruby_2_1/ext/digest/rmd160/rmd160init.c	(revision 52797)
@@ -1,7 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_1/ext/digest/rmd160/rmd160init.c#L1
 /* $RoughId: rmd160init.c,v 1.3 2001/07/13 20:00:43 knu Exp $ */
 /* $Id$ */
 
-#include "digest.h"
+#include <ruby/ruby.h>
+#include "../digest.h"
 #if defined(HAVE_OPENSSL_RIPEMD_H)
 #include "rmd160ossl.h"
 #else
Index: ruby_2_1/ext/digest/sha1/sha1init.c
===================================================================
--- ruby_2_1/ext/digest/sha1/sha1init.c	(revision 52796)
+++ ruby_2_1/ext/digest/sha1/sha1init.c	(revision 52797)
@@ -1,7 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_1/ext/digest/sha1/sha1init.c#L1
 /* $RoughId: sha1init.c,v 1.2 2001/07/13 19:49:10 knu Exp $ */
 /* $Id$ */
 
-#include "digest.h"
+#include <ruby/ruby.h>
+#include "../digest.h"
 #if defined(HAVE_OPENSSL_SHA_H)
 #include "sha1ossl.h"
 #else
Index: ruby_2_1/ext/digest/sha1/sha1.h
===================================================================
--- ruby_2_1/ext/digest/sha1/sha1.h	(revision 52796)
+++ ruby_2_1/ext/digest/sha1/sha1.h	(revision 52797)
@@ -11,7 +11,7 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_1/ext/digest/sha1/sha1.h#L11
 #ifndef _SYS_SHA1_H_
 #define	_SYS_SHA1_H_
 
-#include "defs.h"
+#include "../defs.h"
 
 typedef struct {
 	uint32_t state[5];
Index: ruby_2_1/ext/digest/sha1/extconf.rb
===================================================================
--- ruby_2_1/ext/digest/sha1/extconf.rb	(revision 52796)
+++ ruby_2_1/ext/digest/sha1/extconf.rb	(revision 52797)
@@ -5,7 +5,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_1/ext/digest/sha1/extconf.rb#L5
 require "mkmf"
 
 $defs << "-DHAVE_CONFIG_H"
-$INCFLAGS << " -I$(srcdir)/.."
 
 $objs = [ "sha1init.#{$OBJEXT}" ]
 
Index: ruby_2_1/ext/digest/sha2/sha2ossl.c
===================================================================
--- ruby_2_1/ext/digest/sha2/sha2ossl.c	(revision 52796)
+++ ruby_2_1/ext/digest/sha2/sha2ossl.c	(revision 52797)
@@ -1,4 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_1/ext/digest/sha2/sha2ossl.c#L1
-#include "defs.h"
+#include "../defs.h"
 #include "sha2ossl.h"
 
 #define SHA_Finish(bit) \
Index: ruby_2_1/ext/digest/sha2/sha2init.c
===================================================================
--- ruby_2_1/ext/digest/sha2/sha2init.c	(revision 52796)
+++ ruby_2_1/ext/digest/sha2/sha2init.c	(revision 52797)
@@ -1,7 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_1/ext/digest/sha2/sha2init.c#L1
 /* $RoughId: sha2init.c,v 1.3 2001/07/13 20:00:43 knu Exp $ */
 /* $Id$ */
 
-#include "digest.h"
+#include <ruby/ruby.h>
+#include "../digest.h"
 #if defined(SHA2_USE_OPENSSL)
 #include "sha2ossl.h"
 #else
Index: ruby_2_1/ext/digest/sha2/extconf.rb
===================================================================
--- ruby_2_1/ext/digest/sha2/extconf.rb	(revision 52796)
+++ ruby_2_1/ext/digest/sha2/extconf.rb	(revision 52797)
@@ -5,7 +5,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_1/ext/digest/sha2/extconf.rb#L5
 require "mkmf"
 
 $defs << "-DHAVE_CONFIG_H"
-$INCFLAGS << " -I$(srcdir)/.."
 
 $objs = [ "sha2init.#{$OBJEXT}" ]
 
@@ -28,6 +27,4 @@ have_header("sys/cdefs.h") https://github.com/ruby/ruby/blob/trunk/ruby_2_1/ext/digest/sha2/extconf.rb#L27
 
 $preload = %w[digest]
 
-if have_type("uint64_t", "defs.h", $defs.join(' '))
-  create_makefile("digest/sha2")
-end
+create_makefile("digest/sha2")
Index: ruby_2_1/ext/digest/sha2/sha2.c
===================================================================
--- ruby_2_1/ext/digest/sha2/sha2.c	(revision 52796)
+++ ruby_2_1/ext/digest/sha2/sha2.c	(revision 52797)
@@ -34,7 +34,7 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_1/ext/digest/sha2/sha2.c#L34
  * $Id$
  */
 
-#include "defs.h"
+#include "../defs.h"
 #include <string.h>	/* memcpy()/memset() or bcopy()/bzero() */
 #include <assert.h>	/* assert() */
 #include "sha2.h"
Index: ruby_2_1/version.h
===================================================================
--- ruby_2_1/version.h	(revision 52796)
+++ ruby_2_1/version.h	(revision 52797)
@@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_1/version.h#L1
 #define RUBY_VERSION "2.1.8"
 #define RUBY_RELEASE_DATE "2015-11-30"
-#define RUBY_PATCHLEVEL 422
+#define RUBY_PATCHLEVEL 423
 
 #define RUBY_RELEASE_YEAR 2015
 #define RUBY_RELEASE_MONTH 11

Property changes on: ruby_2_1
___________________________________________________________________
Modified: svn:mergeinfo
   Merged /trunk:r52694


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]