Tim Waugh b13041
			     BASH PATCH REPORT
Tim Waugh b13041
			     =================
Tim Waugh b13041
Tim Waugh b13041
Bash-Release: 3.2
Tim Waugh b13041
Patch-ID: bash32-012
Tim Waugh b13041
Tim Waugh b13041
Bug-Reported-by: John Wyman <JohnWyman@celink.com>
Tim Waugh b13041
Bug-Reference-ID: <5E7DEFC094C35044B87FAE761D9F0EE20143A3B7@exchange2k.celink.com>
Tim Waugh b13041
Bug-Reference-URL: 
Tim Waugh b13041
Tim Waugh b13041
Bug-Description:
Tim Waugh b13041
Tim Waugh b13041
Some systems (AIX 4.x) don't implement the PRI_xxx macros correctly,
Tim Waugh b13041
causing syntax errors when attempting to compile bash on those systems.
Tim Waugh b13041
This patch adds support for the PRI_MACROS_BROKEN define.
Tim Waugh b13041
Tim Waugh b13041
You will need to re-run `configure' after applying the patch.  Run
Tim Waugh b13041
`touch configure' so make doesn't try to run autoconf.
Tim Waugh b13041
Tim Waugh b13041
Patch:
Tim Waugh b13041
Tim Waugh b13041
*** ../bash-3.2.11/config.h.in	Tue Sep 12 16:00:54 2006
Tim Waugh b13041
--- config.h.in	Tue Mar  6 11:17:55 2007
Tim Waugh b13041
***************
Tim Waugh b13041
*** 1,5 ****
Tim Waugh b13041
  /* config.h -- Configuration file for bash. */
Tim Waugh b13041
  
Tim Waugh b13041
! /* Copyright (C) 1987-2006 Free Software Foundation, Inc.
Tim Waugh b13041
  
Tim Waugh b13041
     This file is part of GNU Bash, the Bourne Again SHell.
Tim Waugh b13041
--- 1,5 ----
Tim Waugh b13041
  /* config.h -- Configuration file for bash. */
Tim Waugh b13041
  
Tim Waugh b13041
! /* Copyright (C) 1987-2007 Free Software Foundation, Inc.
Tim Waugh b13041
  
Tim Waugh b13041
     This file is part of GNU Bash, the Bourne Again SHell.
Tim Waugh b13041
***************
Tim Waugh b13041
*** 414,417 ****
Tim Waugh b13041
--- 414,419 ----
Tim Waugh b13041
  #undef HAVE_DECL_STRTOLD
Tim Waugh b13041
  
Tim Waugh b13041
+ #undef PRI_MACROS_BROKEN
Tim Waugh b13041
+ 
Tim Waugh b13041
  #undef STRTOLD_BROKEN
Tim Waugh b13041
  
Tim Waugh b13041
***************
Tim Waugh b13041
*** 1007,1010 ****
Tim Waugh b13041
--- 1009,1015 ----
Tim Waugh b13041
  #undef HAVE_DCGETTEXT
Tim Waugh b13041
  
Tim Waugh b13041
+ /* Define if you have the `localeconv' function. */
Tim Waugh b13041
+ #undef HAVE_LOCALECONV
Tim Waugh b13041
+ 
Tim Waugh b13041
  /* Define if your system has a working `malloc' function. */
Tim Waugh b13041
  /* #undef HAVE_MALLOC */
Tim Waugh b13041
*** ../bash-3.2.11/builtins/printf.def	Mon Nov 13 08:58:52 2006
Tim Waugh b13041
--- builtins/printf.def	Sun Feb  4 13:58:59 2007
Tim Waugh b13041
***************
Tim Waugh b13041
*** 2,6 ****
Tim Waugh b13041
  It implements the builtin "printf" in Bash.
Tim Waugh b13041
  
Tim Waugh b13041
! Copyright (C) 1997-2005 Free Software Foundation, Inc.
Tim Waugh b13041
  
Tim Waugh b13041
  This file is part of GNU Bash, the Bourne Again SHell.
Tim Waugh b13041
--- 2,6 ----
Tim Waugh b13041
  It implements the builtin "printf" in Bash.
Tim Waugh b13041
  
Tim Waugh b13041
! Copyright (C) 1997-2007 Free Software Foundation, Inc.
Tim Waugh b13041
  
Tim Waugh b13041
  This file is part of GNU Bash, the Bourne Again SHell.
Tim Waugh b13041
***************
Tim Waugh b13041
*** 71,74 ****
Tim Waugh b13041
--- 71,78 ----
Tim Waugh b13041
  #include "common.h"
Tim Waugh b13041
  
Tim Waugh b13041
+ #if defined (PRI_MACROS_BROKEN)
Tim Waugh b13041
+ #  undef PRIdMAX
Tim Waugh b13041
+ #endif
Tim Waugh b13041
+ 
Tim Waugh b13041
  #if !defined (PRIdMAX)
Tim Waugh b13041
  #  if HAVE_LONG_LONG
Tim Waugh b13041
*** ../bash-3.2/patchlevel.h	Thu Apr 13 08:31:04 2006
Tim Waugh b13041
--- patchlevel.h	Mon Oct 16 14:22:54 2006
Tim Waugh b13041
***************
Tim Waugh b13041
*** 26,30 ****
Tim Waugh b13041
     looks for to find the patch level (for the sccs version string). */
Tim Waugh b13041
  
Tim Waugh b13041
! #define PATCHLEVEL 11
Tim Waugh b13041
  
Tim Waugh b13041
  #endif /* _PATCHLEVEL_H_ */
Tim Waugh b13041
--- 26,30 ----
Tim Waugh b13041
     looks for to find the patch level (for the sccs version string). */
Tim Waugh b13041
  
Tim Waugh b13041
! #define PATCHLEVEL 12
Tim Waugh b13041
  
Tim Waugh b13041
  #endif /* _PATCHLEVEL_H_ */