Subject: Re: CVS commit: pkgsrc/pkgtools/pkg_install/files
To: None <pkgsrc-changes@NetBSD.org>
From: Thomas Klausner <wiz@NetBSD.org>
List: pkgsrc-changes
Date: 06/10/2005 17:36:09
This is getting silly.

On Fri, Jun 10, 2005 at 04:29:54PM +0100, Alistair Crooks wrote:
> "Identical", where the sources differ? I think not.

This is the effective change to the sources:
diff -u pkgsrc/pkgtools/pkg_install/files/add/perform.c:1.30 pkgsrc/pkgtools/pkg_install/files/add/p
erform.c:1.31
--- pkgsrc/pkgtools/pkg_install/files/add/perform.c:1.30        Sat May 28 02:50:46 2005
+++ pkgsrc/pkgtools/pkg_install/files/add/perform.c     Fri Jun 10 01:37:21 2005
@@ -67,6 +67,26 @@
 static package_t Plist;
 static char *Home;
 
+/*
+ * Some systems such as OpenBSD-3.6 do not provide PRIu64.
+ * Others such as AIX-4.3.2 have a broken PRIu64 which includes
+ * a leading "%".
+ */
+#ifdef NEED_PRI_MACRO
+#  ifdef PRIu64
+#    undef PRIu64
+#  endif
+#  if SIZEOF_INT == 8
+#    define PRIu64 "u"
+#  elif SIZEOF_LONG == 8
+#    define PRIu64 "lu"
+#  elif SIZEOF_LONG_LONG == 8
+#    define PRIu64 "llu"
+#  else
+#    error "unable to find a suitable PRIu64"
+#  endif
+#endif
+
 /* used in build information */
 enum {
        Good,

The rest is autoconf-related stuff.

I don't see any reason for a version number change for this.

Cheers,
 Thomas