more DU 4.0D fiddles (Shing-Gene Yung).
authorjbj <devnull@localhost>
Mon, 22 Mar 1999 18:36:23 +0000 (18:36 +0000)
committerjbj <devnull@localhost>
Mon, 22 Mar 1999 18:36:23 +0000 (18:36 +0000)
CVS patchset: 2910
CVS date: 1999/03/22 18:36:23

CHANGES
acconfig.h
configure.in
lib/transaction.c
po/rpm.pot

diff --git a/CHANGES b/CHANGES
index ab15b5a..a0588cd 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -3,6 +3,7 @@
        - pgp5 support (Carlo Wood <carlo@runaway.xs4all.nl>)
        - fix: segfault from double close on ftpGetFileDesc ftpAbort path.
        - fix: don't add header if signature generation failed (Carlo Wood).
+       - more DU 4.0D fiddles (Shing-Gene Yung).
 
 2.91 -> 2.92
        - update with libtool-2.4f.
index a2f0460..45584c6 100644 (file)
 /* Full path to macros configuration file (usually /usr/lib/rpm/macros) */
 #undef MACROFILES
 
+/* statfs in <sys/vfs.h> (for linux systems) */
+#undef STATFS_IN_SYS_VFS
+
+/* statfs in <sys/mount.h> (for Digital Unix 4.0D systems) */
+#undef STATFS_IN_SYS_MOUNT
+
+/* statfs in <sys/statfs.h> (for Irix 6.4 systems) */
+#undef STATFS_IN_SYS_STATFS
+
 ^L
 /* Leave that blank line there!!  Autoheader needs it.
    If you're adding to this file, keep in mind:
index c509ba3..2c0c083 100644 (file)
@@ -364,6 +364,27 @@ AC_CHECK_HEADERS(mntent.h sys/mnttab.h sys/systemcfg.h)
 AC_CHECK_HEADERS(sys/mount.h sys/mntctl.h sys/vmount.h)
 AC_CHECK_HEADERS(bzlib.h libio.h zlib.h)
 
+dnl DU 4.0 fiddles.
+AC_CHECK_HEADERS(glob.h)
+AC_MSG_CHECKING(for struct statfs)
+AC_EGREP_HEADER(struct statfs,sys/vfs.h,[
+  AC_MSG_RESULT(in sys/vfs.h)
+  AC_DEFINE(STATFS_IN_SYS_VFS)],
+[
+  AC_EGREP_HEADER(struct statfs,sys/mount.h,[
+    AC_MSG_RESULT(in sys/mount.h)
+    AC_DEFINE(STATFS_IN_SYS_MOUNT)],
+  [
+    AC_EGREP_HEADER(struct statfs,sys/statfs.h,[
+      AC_MSG_RESULT(in sys/statfs.h)
+      AC_DEFINE(STATFS_IN_SYS_STATFS)],
+    [
+      AC_MSG_RESULT(not found)
+    ])
+  ])
+])
+
+
 AC_C_INLINE
 
 dnl look for libc features
index e9b7a30..1e39a87 100644 (file)
 #include "misc.h"
 #include "rpmdb.h"
 
-#include <sys/vfs.h>
+/* XXX FIXME: merge with existing (broken?) tests in system.h */
+/* DU 4.0 fiddles */
+#if STATFS_IN_SYS_VFS
+# include <sys/vfs.h>
+#else
+# if STATFS_IN_SYS_MOUNT
+#  include <sys/mount.h>
+# else
+#  if STATFS_IN_SYS_STATFS
+#   include <sys/statfs.h>
+#  endif
+# endif
+#endif
 
 struct fileInfo {
   /* for all packages */
index 1b5e392..48c19c7 100644 (file)
@@ -7,7 +7,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 1999-03-22 12:20-0500\n"
+"POT-Creation-Date: 1999-03-22 13:09-0500\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -3170,17 +3170,17 @@ msgstr ""
 msgid "Invalid %%_signature spec in macro file"
 msgstr ""
 
-#: ../lib/transaction.c:744
+#: ../lib/transaction.c:756
 #, c-format
 msgid "relocating %s to %s\n"
 msgstr ""
 
-#: ../lib/transaction.c:750
+#: ../lib/transaction.c:762
 #, c-format
 msgid "excluding %s\n"
 msgstr ""
 
-#: ../lib/transaction.c:838
+#: ../lib/transaction.c:850
 #, c-format
 msgid "%s skipped due to missingok flag\n"
 msgstr ""