rpms/util-linux/devel util-linux-2.12p-mkswap-man.patch, NONE, 1.1 util-linux-2.13-audit-hwclock.patch, 1.1, 1.2 util-linux.spec, 1.82, 1.83

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Tue Aug 30 09:20:19 UTC 2005


Author: kzak

Update of /cvs/dist/rpms/util-linux/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv25970

Modified Files:
	util-linux-2.13-audit-hwclock.patch util-linux.spec 
Added Files:
	util-linux-2.12p-mkswap-man.patch 
Log Message:
- fix #166923 and #159410


util-linux-2.12p-mkswap-man.patch:
 mkswap.8 |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

--- NEW FILE util-linux-2.12p-mkswap-man.patch ---
--- util-linux-2.12p/disk-utils/mkswap.8.swaplimit	2005-08-29 14:34:07.000000000 +0200
+++ util-linux-2.12p/disk-utils/mkswap.8	2005-08-29 15:01:54.000000000 +0200
@@ -76,9 +76,10 @@
 to use a swap space with hundreds of bad blocks. (I would not even
 use a swap space with 1 bad block.)
 In the new style swap area this is precisely what is done.
-The maximum useful size of a swap area now depends on the architecture.
+
+The maximum useful size of a swap area depends on the architecture and kernel version.
 It is roughly 2GiB on i386, PPC, m68k, ARM, 1GiB on sparc, 512MiB on mips,
-128GiB on alpha and 3TiB on sparc64.
+128GiB on alpha and 3TiB on sparc64. For kernels after 2.3.3 there is no that limitation.
 
 Note that before 2.1.117 the kernel allocated one byte for each page,
 while it now allocates two bytes, so that taking a swap area of 2 GiB

util-linux-2.13-audit-hwclock.patch:
 Makefile.am |    3 +-
 audit.c     |   73 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 audit.h     |   34 +++++++++++++++++++++++++++
 clock.h     |    7 ++++-
 hwclock.c   |   40 ++++++++++++++++++++++++--------
 kd.c        |    5 ++--
 rtc.c       |    7 +++--
 7 files changed, 152 insertions(+), 17 deletions(-)

Index: util-linux-2.13-audit-hwclock.patch
===================================================================
RCS file: /cvs/dist/rpms/util-linux/devel/util-linux-2.13-audit-hwclock.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- util-linux-2.13-audit-hwclock.patch	16 Aug 2005 17:58:01 -0000	1.1
+++ util-linux-2.13-audit-hwclock.patch	30 Aug 2005 09:20:15 -0000	1.2
@@ -1,5 +1,5 @@
---- util-linux-2.13-pre1/hwclock/hwclock.c.audit	2005-07-31 22:15:18.000000000 +0200
-+++ util-linux-2.13-pre1/hwclock/hwclock.c	2005-08-12 14:36:57.000000000 +0200
+--- util-linux-2.13-pre2/hwclock/hwclock.c.audit	2005-07-31 22:15:18.000000000 +0200
++++ util-linux-2.13-pre2/hwclock/hwclock.c	2005-08-30 11:11:11.000000000 +0200
 @@ -81,9 +81,11 @@
  #include <stdarg.h>
  #include <getopt.h>
@@ -21,12 +21,15 @@
  }
  
  static const struct option longopts[] = {
-@@ -1298,6 +1300,12 @@
+@@ -1298,6 +1300,15 @@
  	/* Remember what time we were invoked */
  	gettimeofday(&startup_time, NULL);
  
 +	audit_fd = audit_open();
-+	if (audit_fd < 0) {
++	if (audit_fd < 0 && !(errno == EINVAL || errno == EPROTONOSUPPORT ||
++				errno == EAFNOSUPPORT)) {
++		/* You get these error codes only when the kernel doesn't have
++	   	 * audit compiled in. */
 +		fprintf(stderr, "Error - unable to connect to audit system\n");
 +		return EX_NOPERM;
 +	}
@@ -34,7 +37,7 @@
  	setlocale(LC_ALL, "");
  #ifdef LC_NUMERIC
  	/* We need LC_CTYPE and LC_TIME and LC_MESSAGES, but must avoid
-@@ -1393,6 +1401,13 @@
+@@ -1393,6 +1404,13 @@
  	argc -= optind;
  	argv += optind;
  
@@ -48,7 +51,7 @@
  	if (argc > 0) {
  		usage(_("%s takes no non-option arguments.  "
  			"You supplied %d.\n"),
-@@ -1403,27 +1418,27 @@
+@@ -1403,27 +1421,27 @@
  		fprintf(stderr, _("You have specified multiple functions.\n"
  				  "You can only perform one function "
  				  "at a time.\n"));
@@ -80,7 +83,7 @@
  	}
  
  #ifdef __alpha__
-@@ -1437,7 +1452,7 @@
+@@ -1437,7 +1455,7 @@
  		if (rc != 0) {
  			fprintf(stderr, _("No usable set-to time.  "
  					  "Cannot set clock.\n"));
@@ -89,7 +92,7 @@
  		}
  	}
  
-@@ -1469,11 +1484,11 @@
+@@ -1469,11 +1487,11 @@
  	}
  
  	if (!permitted)
@@ -103,7 +106,7 @@
  	}
  
  	if (debug)
-@@ -1487,12 +1502,14 @@
+@@ -1487,12 +1505,14 @@
  			fprintf(stderr,
  				_("Use the --debug option to see the details "
  				  "of our search for an access method.\n"));
@@ -120,9 +123,9 @@
  }
  
  /* A single routine for greater uniformity */
---- /dev/null	2005-08-10 15:18:23.129961080 +0200
-+++ util-linux-2.13-pre1/hwclock/audit.c	2005-08-12 14:36:57.000000000 +0200
-@@ -0,0 +1,70 @@
+--- /dev/null	2005-08-29 11:11:19.415613608 +0200
++++ util-linux-2.13-pre2/hwclock/audit.c	2005-08-30 11:10:38.000000000 +0200
+@@ -0,0 +1,73 @@
 +/* audit.c -- This file contains the audit system extensions
 + *
 + * Copyright 2005 Red Hat Inc., Durham, North Carolina.
@@ -168,6 +171,9 @@
 +	const char *success;
 +	extern char *progname;
 +
++	if (audit_fd < 0)
++		return;		/* kernel without audit support */
++
 +	if (!result)
 +		success = "success";
 +	else
@@ -193,8 +199,8 @@
 +	exit(status);
 +}
 +
---- util-linux-2.13-pre1/hwclock/kd.c.audit	2005-07-31 18:01:20.000000000 +0200
-+++ util-linux-2.13-pre1/hwclock/kd.c	2005-08-12 14:36:57.000000000 +0200
+--- util-linux-2.13-pre2/hwclock/kd.c.audit	2005-07-31 18:01:20.000000000 +0200
++++ util-linux-2.13-pre2/hwclock/kd.c	2005-08-30 11:06:38.000000000 +0200
 @@ -19,6 +19,7 @@
  
  #include "clock.h"
@@ -221,19 +227,19 @@
    }
    return 0;
  }
---- util-linux-2.13-pre1/hwclock/Makefile.am.audit	2005-08-12 14:37:27.000000000 +0200
-+++ util-linux-2.13-pre1/hwclock/Makefile.am	2005-08-12 14:50:39.000000000 +0200
+--- util-linux-2.13-pre2/hwclock/Makefile.am.audit	2005-01-30 00:18:46.000000000 +0100
++++ util-linux-2.13-pre2/hwclock/Makefile.am	2005-08-30 11:06:38.000000000 +0200
 @@ -4,4 +4,5 @@
  
  sbin_PROGRAMS = hwclock
  
 -hwclock_SOURCES = hwclock.c cmos.c rtc.c kd.c
-\ No newline at end of file
+\ Chybí znak konce řádku na konci souboru
 +hwclock_SOURCES = hwclock.c cmos.c rtc.c kd.c audit.c
 +hwclock_LDADD = -laudit
-\ No newline at end of file
---- /dev/null	2005-08-10 15:18:23.129961080 +0200
-+++ util-linux-2.13-pre1/hwclock/audit.h	2005-08-12 14:36:57.000000000 +0200
+\ Chybí znak konce řádku na konci souboru
+--- /dev/null	2005-08-29 11:11:19.415613608 +0200
++++ util-linux-2.13-pre2/hwclock/audit.h	2005-08-30 11:06:38.000000000 +0200
 @@ -0,0 +1,34 @@
 +/* audit.h -- This file contains the function prototypes for audit calls
 + * Copyright 2005 Red Hat Inc., Durham, North Carolina.
@@ -269,8 +275,8 @@
 +void audit_exit(int status);
 +
 +#endif
---- util-linux-2.13-pre1/hwclock/clock.h.audit	2000-12-07 17:39:53.000000000 +0100
-+++ util-linux-2.13-pre1/hwclock/clock.h	2005-08-12 14:36:57.000000000 +0200
+--- util-linux-2.13-pre2/hwclock/clock.h.audit	2000-12-07 17:39:53.000000000 +0100
++++ util-linux-2.13-pre2/hwclock/clock.h	2005-08-30 11:06:38.000000000 +0200
 @@ -24,7 +24,12 @@
  extern char *progname;
  extern int debug;
@@ -285,8 +291,8 @@
  
  /* cmos.c */
  extern void set_cmos_epoch(int ARCconsole, int SRM);
---- util-linux-2.13-pre1/hwclock/rtc.c.audit	2005-07-31 22:15:45.000000000 +0200
-+++ util-linux-2.13-pre1/hwclock/rtc.c	2005-08-12 14:36:57.000000000 +0200
+--- util-linux-2.13-pre2/hwclock/rtc.c.audit	2005-07-31 22:15:45.000000000 +0200
++++ util-linux-2.13-pre2/hwclock/rtc.c	2005-08-30 11:06:38.000000000 +0200
 @@ -8,6 +8,7 @@
  
  #include "clock.h"


Index: util-linux.spec
===================================================================
RCS file: /cvs/dist/rpms/util-linux/devel/util-linux.spec,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -r1.82 -r1.83
--- util-linux.spec	17 Aug 2005 13:47:16 -0000	1.82
+++ util-linux.spec	30 Aug 2005 09:20:15 -0000	1.83
@@ -151,10 +151,13 @@
 # deprecated the arch command (for compatibility only)
 Patch206: util-linux-2.13-arch.patch
 
-# upstream mistakes
+# upstream build system mistakes
 Patch207: util-linux-2.13-agetty-man.patch
 Patch208: util-linux-2.13-usrsbin.patch
 
+#159410 - mkswap(8) claims max swap area size is 2 GB
+Patch209: util-linux-2.12p-mkswap-man.patch
+
 # When adding patches, please make sure that it is easy to find out what bug # the 
 # patch fixes.
 ########### END upstreamable
@@ -221,6 +224,7 @@
 %patch206 -p1
 %patch207 -p1
 %patch208 -p1
+%patch209 -p1
 
 %build
 unset LINGUAS || :
@@ -642,6 +646,10 @@
 /sbin/losetup
 
 %changelog
+* Tue Aug 30 2005 Karel Zak <kzak at redhat.com> 2.13-0.3.pre2
+- fix #166923 - hwclock will not run on a non audit-enabled kernel
+- fix #159410 - mkswap(8) claims max swap area size is 2 GB
+
 * Tue Aug 16 2005 Karel Zak <kzak at redhat.com> 2.13-0.2.pre2
 - /usr/share/misc/getopt/* -move-> /usr/share/doc/util-linux-2.13/getopt-*
 - the arch command marked as deprecated




More information about the fedora-cvs-commits mailing list