rpms/psacct/F-12 psacct-6.3.2-ppid.patch, 1.1, 1.2 psacct.spec, 1.40, 1.41

Ivana Varekova varekova at fedoraproject.org
Fri Nov 27 07:38:59 UTC 2009


Author: varekova

Update of /cvs/pkgs/rpms/psacct/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv7315

Modified Files:
	psacct-6.3.2-ppid.patch psacct.spec 
Log Message:
- fix the ac_version variable handle on ppc64 (BIG_ENDIAN machine)


psacct-6.3.2-ppid.patch:
 dump-acct.c |   52 +++++++++++-----
 lastcomm.1  |    9 ++
 lastcomm.c  |  193 ++++++++++++++++++++++++++++++++++++++++--------------------
 pacct_rd.c  |   84 ++++++++++++++++++++++++--
 pacct_rd.h  |    7 +-
 sa.c        |  117 ++++++++++++++++++++++++++++++++++--
 6 files changed, 372 insertions(+), 90 deletions(-)

Index: psacct-6.3.2-ppid.patch
===================================================================
RCS file: /cvs/pkgs/rpms/psacct/F-12/psacct-6.3.2-ppid.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- psacct-6.3.2-ppid.patch	13 Nov 2009 12:02:42 -0000	1.1
+++ psacct-6.3.2-ppid.patch	27 Nov 2009 07:38:59 -0000	1.2
@@ -28,7 +28,7 @@ diff -up acct-6.3.2/dump-acct.c.pom acct
 +    
 +    while ((a_struct = pacct_get_entry (&version)) != NULL)
 +    {
-+       if (version != 3) {
++       if ((version % ACCT_BYTEORDER) != 3) {
 +          rec = (struct acct *)a_struct;
 +          if (raw)
 + 	    fwrite (rec, sizeof (struct acct), 1, stdout);
@@ -170,7 +170,7 @@ diff -up acct-6.3.2/lastcomm.c.pom acct-
 -      if (desired_entry (this_uid, this_dev, rec->ac_comm))
 -	{
 +      
-+      if (version != 3) {
++      if ((version % ACCT_BYTEORDER) != 3) {
 +      
 +        rec = (struct acct *)a_struct;
 +        this_uid = uid_name (rec->ac_uid);
@@ -333,7 +333,7 @@ diff -up acct-6.3.2/lastcomm.c.pom acct-
 -	}
 +        putchar (' ');
 +	  
-+      if ((print_pid == 0) || (version != 3)) {	  
++      if ((print_pid == 0) || ((version % ACCT_BYTEORDER) != 3)) {	  
 +        printf (" %-8.8s %-8.8s %6.2f secs %-16.16s\n",
 +  	    this_uid, this_dev,
 +	    ((ut + st) / (double) hzval),
@@ -508,7 +508,7 @@ diff -up acct-6.3.2/sa.c.pom acct-6.3.2/
 -    {
 +  while ((a_struct = pacct_get_entry (&version)) != NULL)
 +  {
-+    if (version != 3) {
++    if ((version % ACCT_BYTEORDER) != 3) {
 +      rec = (struct acct *)a_struct;
 +      
  #ifdef HAVE_ACUTIME


Index: psacct.spec
===================================================================
RCS file: /cvs/pkgs/rpms/psacct/F-12/psacct.spec,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -p -r1.40 -r1.41
--- psacct.spec	13 Nov 2009 12:02:42 -0000	1.40
+++ psacct.spec	27 Nov 2009 07:38:59 -0000	1.41
@@ -12,7 +12,7 @@
 Summary: Utilities for monitoring process activities
 Name: psacct
 Version: 6.3.2
-Release: 56%{?dist}
+Release: 57%{?dist}
 License: GPLv2+
 Group: Applications/System
 Source: ftp://ftp.gnu.org/pub/gnu/acct-6.3.2.tar.gz
@@ -179,6 +179,9 @@ fi
 %{_infodir}/accounting.info.gz
 
 %changelog
+* Fri Nov 26 2009 Ivana Varekova <varekova at redhat.com> - 6.2.3-57
+- fix the ac_version variable handle on ppc64 (BIG_ENDIAN machine)
+
 * Fri Nov 13 2009 Ivana Varekova <varekova at redhat.com> - 6.2.3-56
 - fix the psacct to deal with all acct types and
   if it is possible and wanted then add the possibility




More information about the fedora-extras-commits mailing list