3
if [ $# -eq 3 -a "$2" = '-d' ]; then
5
elif [ $# -ne 1 ]; then
6
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
10
-patch) patch $pdir -f --no-backup-if-mismatch -p0 < $0;;
11
-unpatch) patch $pdir -f --no-backup-if-mismatch -R -p0 < $0;;
13
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
18
# DP: bash-3.2 upstream patch bash32-012
26
Bug-Reported-by: John Wyman <JohnWyman@celink.com>
27
Bug-Reference-ID: <5E7DEFC094C35044B87FAE761D9F0EE20143A3B7@exchange2k.celink.com>
32
Some systems (AIX 4.x) don't implement the PRI_xxx macros correctly,
33
causing syntax errors when attempting to compile bash on those systems.
34
This patch adds support for the PRI_MACROS_BROKEN define.
36
You will need to re-run `configure' after applying the patch. Run
37
`touch configure' so make doesn't try to run autoconf.
41
*** ../bash-3.2.11/config.h.in Tue Sep 12 16:00:54 2006
42
--- config.h.in Tue Mar 6 11:17:55 2007
45
/* config.h -- Configuration file for bash. */
47
! /* Copyright (C) 1987-2006 Free Software Foundation, Inc.
49
This file is part of GNU Bash, the Bourne Again SHell.
51
/* config.h -- Configuration file for bash. */
53
! /* Copyright (C) 1987-2007 Free Software Foundation, Inc.
55
This file is part of GNU Bash, the Bourne Again SHell.
59
#undef HAVE_DECL_STRTOLD
61
+ #undef PRI_MACROS_BROKEN
70
+ /* Define if you have the `localeconv' function. */
71
+ #undef HAVE_LOCALECONV
73
/* Define if your system has a working `malloc' function. */
74
/* #undef HAVE_MALLOC */
75
*** ../bash-3.2.11/builtins/printf.def Mon Nov 13 08:58:52 2006
76
--- builtins/printf.def Sun Feb 4 13:58:59 2007
79
It implements the builtin "printf" in Bash.
81
! Copyright (C) 1997-2005 Free Software Foundation, Inc.
83
This file is part of GNU Bash, the Bourne Again SHell.
85
It implements the builtin "printf" in Bash.
87
! Copyright (C) 1997-2007 Free Software Foundation, Inc.
89
This file is part of GNU Bash, the Bourne Again SHell.
95
+ #if defined (PRI_MACROS_BROKEN)
99
#if !defined (PRIdMAX)
101
*** ../bash-3.2/patchlevel.h Thu Apr 13 08:31:04 2006
102
--- patchlevel.h Mon Oct 16 14:22:54 2006
105
looks for to find the patch level (for the sccs version string). */
107
! #define PATCHLEVEL 11
109
#endif /* _PATCHLEVEL_H_ */
111
looks for to find the patch level (for the sccs version string). */
113
! #define PATCHLEVEL 12
115
#endif /* _PATCHLEVEL_H_ */