add a patch to build on gcc-4.3

This commit is contained in:
Akira TAGOH 2008-02-19 02:54:55 +00:00
parent e2d02a3483
commit 16b62022c6
2 changed files with 19 additions and 1 deletions

View File

@ -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*

View File

@ -36,6 +36,7 @@ Patch21: ruby-deprecated-sitelib-search-path.patch
Patch22: ruby-deprecated-search-path.patch Patch22: ruby-deprecated-search-path.patch
Patch23: ruby-multilib.patch Patch23: ruby-multilib.patch
Patch24: ruby-1.8.6.111-CVE-2007-5162.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 Summary: An interpreter of object-oriented scripting language
Group: Development/Languages Group: Development/Languages
@ -156,6 +157,7 @@ pushd %{name}-%{arcver}
%patch23 -p1 %patch23 -p1
%endif %endif
%patch24 -p1 %patch24 -p1
%patch25 -p1
popd popd
%build %build
@ -509,7 +511,7 @@ rm -rf tmp-ruby-docs
%endif %endif
%changelog %changelog
* Tue Feb 12 2008 Akira TAGOH <tagoh@redhat.com> - 1.8.6.111-8 * Tue Feb 19 2008 Akira TAGOH <tagoh@redhat.com> - 1.8.6.111-8
- Rebuild for gcc-4.3. - Rebuild for gcc-4.3.
* Tue Jan 15 2008 Akira TAGOH <tagoh@redhat.com> - 1.8.6.111-7 * Tue Jan 15 2008 Akira TAGOH <tagoh@redhat.com> - 1.8.6.111-7