Browse Source

port to HP-UX 11.11

Ralf S. Engelschall 21 years ago
parent
commit
aff592070b
2 changed files with 18 additions and 2 deletions
  1. 15 0
      readline/readline.patch
  2. 3 2
      readline/readline.spec

+ 15 - 0
readline/readline.patch

@@ -0,0 +1,15 @@
+Index: rlmbutil.h
+--- rlmbutil.h.orig	2001-12-20 15:54:38.000000000 +0100
++++ rlmbutil.h	2004-06-04 20:50:28.000000000 +0200
+@@ -33,6 +33,11 @@
+    support user defined character classes.  */
+    /* Solaris 2.5 has a bug: <wchar.h> must be included before <wctype.h>.  */
+ #if defined (HAVE_WCTYPE_H) && defined (HAVE_WCHAR_H)
++#if defined (__hpux)
++#include <stdarg.h>
++#include <sys/stdsyms.h>
++#define _INCLUDE__STDC_A1_SOURCE
++#endif
+ #  include <wchar.h>
+ #  include <wctype.h>
+ #  if defined (HAVE_MBSRTOWCS) /* system is supposed to support XPG5 */

+ 3 - 2
readline/readline.spec

@@ -39,7 +39,7 @@ Class:        BASE
 Group:        Converter
 License:      GPL
 Version:      %{V_real}.%{V_patch}
-Release:      20040211
+Release:      20040604
 
 #   list of sources
 Source0:      ftp://ftp.gnu.org/gnu/readline/readline-%{V_real}.tar.gz
@@ -48,6 +48,7 @@ Patch1:       ftp://ftp.gnu.org/gnu/readline/readline-%{V_real}-patches/readline
 Patch2:       ftp://ftp.gnu.org/gnu/readline/readline-%{V_real}-patches/readline%{V_comp}-003
 Patch3:       ftp://ftp.gnu.org/gnu/readline/readline-%{V_real}-patches/readline%{V_comp}-004
 Patch4:       ftp://ftp.gnu.org/gnu/readline/readline-%{V_real}-patches/readline%{V_comp}-005
+Patch5:       readline.patch
 
 #   build information
 Prefix:       %{l_prefix}
@@ -76,7 +77,7 @@ AutoReqProv:  no
 
 %prep
     %setup -q -n readline-%{V_real}
-    %patch -p0 -P 0 1 2 3 4
+    %patch -p0 -P 0 1 2 3 4 5
 
 %build
     CC="%{l_cc}" \