From 16b62022c6fe7b0355b338cbd5e59b5479dadc5a Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Tue, 19 Feb 2008 02:54:55 +0000 Subject: [PATCH] add a patch to build on gcc-4.3 --- ruby-1.8.6.111-gcc43.patch | 16 ++++++++++++++++ ruby.spec | 4 +++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 ruby-1.8.6.111-gcc43.patch diff --git a/ruby-1.8.6.111-gcc43.patch b/ruby-1.8.6.111-gcc43.patch new file mode 100644 index 0000000..9e1b297 --- /dev/null +++ b/ruby-1.8.6.111-gcc43.patch @@ -0,0 +1,16 @@ +diff -pruN ruby-1.8.6-p111.orig/ext/socket/socket.c ruby-1.8.6-p111/ext/socket/socket.c +--- ruby-1.8.6-p111.orig/ext/socket/socket.c 2007-05-23 00:08:43.000000000 +0900 ++++ ruby-1.8.6-p111/ext/socket/socket.c 2008-02-19 11:24:22.000000000 +0900 +@@ -893,10 +893,10 @@ port_str(port, pbuf, len) + } + + #ifndef NI_MAXHOST +-# define 1025 ++# define NI_MAXHOST 1025 + #endif + #ifndef NI_MAXSERV +-# define 32 ++# define NI_MAXSERV 32 + #endif + + static struct addrinfo* diff --git a/ruby.spec b/ruby.spec index 36f4be2..0b9dd91 100644 --- a/ruby.spec +++ b/ruby.spec @@ -36,6 +36,7 @@ Patch21: ruby-deprecated-sitelib-search-path.patch Patch22: ruby-deprecated-search-path.patch Patch23: ruby-multilib.patch Patch24: ruby-1.8.6.111-CVE-2007-5162.patch +Patch25: ruby-1.8.6.111-gcc43.patch Summary: An interpreter of object-oriented scripting language Group: Development/Languages @@ -156,6 +157,7 @@ pushd %{name}-%{arcver} %patch23 -p1 %endif %patch24 -p1 +%patch25 -p1 popd %build @@ -509,7 +511,7 @@ rm -rf tmp-ruby-docs %endif %changelog -* Tue Feb 12 2008 Akira TAGOH - 1.8.6.111-8 +* Tue Feb 19 2008 Akira TAGOH - 1.8.6.111-8 - Rebuild for gcc-4.3. * Tue Jan 15 2008 Akira TAGOH - 1.8.6.111-7