pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/shells/bash Add a patch allowing compilation of bash o...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2771078f2cb0
branches:  trunk
changeset: 490553:2771078f2cb0
user:      garbled <garbled%pkgsrc.org@localhost>
date:      Tue Mar 15 02:05:49 2005 +0000

description:
Add a patch allowing compilation of bash on AIX 4.3.3.  Tested not to
impact NetBSD/i386 build.  Should also not impact aix5 builds.

diffstat:

 shells/bash/distinfo         |   3 +-
 shells/bash/patches/patch-af |  53 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 55 insertions(+), 1 deletions(-)

diffs (71 lines):

diff -r 811c15c03fb5 -r 2771078f2cb0 shells/bash/distinfo
--- a/shells/bash/distinfo      Mon Mar 14 23:42:12 2005 +0000
+++ b/shells/bash/distinfo      Tue Mar 15 02:05:49 2005 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2005/02/27 23:06:50 wiz Exp $
+$NetBSD: distinfo,v 1.5 2005/03/15 02:05:49 garbled Exp $
 
 SHA1 (bash-3.0.tar.gz) = 3acf1ff4910d4bc863620c7533cbf4858370017b
 RMD160 (bash-3.0.tar.gz) = abe76200003a9dc441ce34650a439cd968f643d4
@@ -56,3 +56,4 @@
 SHA1 (patch-ac) = 012300f9e4427f2e15c8b96bc59a674f17d93cbd
 SHA1 (patch-ad) = 520fec46aa5df6f41418ce253cef6448dc36cadb
 SHA1 (patch-ae) = 7bacb7ac6835eb64014c744aa48eeecf48960fd8
+SHA1 (patch-af) = 8ce9e6adbda879bd32e3854913df2f6f84e4d9f7
diff -r 811c15c03fb5 -r 2771078f2cb0 shells/bash/patches/patch-af
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/shells/bash/patches/patch-af      Tue Mar 15 02:05:49 2005 +0000
@@ -0,0 +1,53 @@
+$NetBSD: patch-af,v 1.1 2005/03/15 02:05:49 garbled Exp $
+--- builtins/printf.def.orig   2003-12-19 16:04:06.000000000 -0700
++++ builtins/printf.def        2005-03-14 18:56:57.000000000 -0700
+@@ -62,6 +62,11 @@
+ #include "bashgetopt.h"
+ #include "common.h"
+ 
++#if defined (_AIX) && !defined (_AIX51)
++   /* AIX defines do not work.  Undefine them.  */
++#  undef PRIdMAX
++#  undef PRIuMAX
++#endif
+ #if !defined (PRIdMAX)
+ #  if HAVE_LONG_LONG
+ #    define PRIdMAX   "lld"
+@@ -69,6 +74,13 @@
+ #    define PRIdMAX   "ld"
+ #  endif
+ #endif
++#if !defined (PRIuMAX) && defined (_AIX)
++#  if HAVE_LONG_LONG
++#    define PRIuMAX "llu"
++#  else
++#    define PRIuMAX "lu"
++#  endif
++#endif
+ 
+ #if !defined (errno)
+ extern int errno;
+@@ -344,7 +356,11 @@
+               p = pp = getintmax ();
+               if (p != pp)
+                 {
++#if defined (_AIX) && !defined (_AIX51)
++                  f = mklong (start, PRIdMAX, sizeof (intmax_t) - 2);
++#else
+                   f = mklong (start, PRIdMAX, sizeof (PRIdMAX) - 2);
++#endif
+                   PF (f, pp);
+                 }
+               else
+@@ -371,7 +387,11 @@
+               p = pp = getuintmax ();
+               if (p != pp)
+                 {
++#if defined (_AIX) && !defined (_AIX51)
++                  f = mklong (start, PRIuMAX, sizeof (uintmax_t) - 2);
++#else
+                   f = mklong (start, PRIdMAX, sizeof (PRIdMAX) - 2);
++#endif
+                   PF (f, pp);
+                 }
+               else



Home | Main Index | Thread Index | Old Index