Hello community,
here is the log from the commit of package acct
checked in at Tue Aug 22 22:02:35 CEST 2006.
--------
--- acct/acct.changes 2006-01-25 21:34:06.000000000 +0100
+++ acct/acct.changes 2006-08-22 18:59:26.000000000 +0200
@@ -1,0 +2,5 @@
+Tue Aug 22 18:58:08 CEST 2006 - postadal@suse.cz
+
+- define HZ as sysconf(_SC_CLK_TCK) if undefined
+
+-------------------------------------------------------------------
New:
----
acct-6.3.5-hz.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ acct.spec ++++++
--- /var/tmp/diff_new_pack.4jYiq6/_old 2006-08-22 22:02:29.000000000 +0200
+++ /var/tmp/diff_new_pack.4jYiq6/_new 2006-08-22 22:02:29.000000000 +0200
@@ -1,11 +1,11 @@
#
# spec file for package acct (Version 6.3.5)
#
-# Copyright (c) 2004 SUSE LINUX AG, Nuernberg, Germany.
+# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
-# Please submit bugfixes or comments via http://www.suse.de/feedback/
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
@@ -16,7 +16,7 @@
PreReq: %insserv_prereq %fillup_prereq fileutils %install_info_prereq
Autoreqprov: on
Version: 6.3.5
-Release: 678
+Release: 692
Source: %{name}-%{version}.tar.bz2
Source1: rc.acct
Source2: logrotate.acct
@@ -25,12 +25,13 @@
Patch2: %{name}-%{version}-info.diff
Patch3: %{name}-%{version}-acct_v3-fix.diff
Patch4: %{name}-%{version}-time-fix.diff
+Patch5: %{name}-%{version}-hz.patch
URL: http://www.gnu.org/directory/acct.html
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Summary: User Specific Process Accounting
+Summary: User-Specific Process Accounting
%description
-This package contains the programs necessary for user specific process
+This package contains the programs necessary for user-specific process
accounting: sa, accton, and lastcomm.
@@ -40,12 +41,13 @@
Noel Cragg
%prep
-%setup
+%setup -q
%patch
%patch1
%patch2
%patch3
%patch4
+%patch5
%build
%define prefix /usr
@@ -63,7 +65,6 @@
make
%install
-[ -d %{buildroot} -a "%{buildroot}" != "" ] && rm -rf %{buildroot}
make DESTDIR=$RPM_BUILD_ROOT install
install -d -m 755 $RPM_BUILD_ROOT/etc/{init.d,logrotate.d}
install -m 755 %{S:1} $RPM_BUILD_ROOT/etc/init.d/acct
@@ -92,7 +93,7 @@
%{insserv_cleanup}
%clean
-[ -d %{buildroot} -a "%{buildroot}" != "" ] && rm -rf %{buildroot}
+rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
@@ -110,6 +111,8 @@
/usr/sbin/*
%changelog -n acct
+* Tue Aug 22 2006 - postadal@suse.cz
+- define HZ as sysconf(_SC_CLK_TCK) if undefined
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Oct 05 2004 - postadal@suse.cz
++++++ acct-6.3.5-hz.patch ++++++
--- lastcomm.c
+++ lastcomm.c
@@ -47,6 +47,7 @@
#endif
#include
+#include
#include "common.h"
#include "uid_hash.h"
@@ -65,7 +66,7 @@
int strict_match_flag = 0; /* Nonzero if each record has to match
all items on the command line */
int print_controls = 0; /* don't print control characters */
-int ahz = AHZ; /* for viewing logs from another system */
+int ahz = 0; /* for viewing logs from another system */
char *program_name; /* name of the program, for usage & errs */
@@ -91,6 +92,10 @@
/* code */
+#ifndef HZ
+# define AHZ sysconf(_SC_CLK_TCK)
+#endif
+
void
main (int argc, char *argv[])
{
@@ -98,6 +103,7 @@
int other_pacct_file_specified = 0; /* nonzero if the user used the
`-f' or `--file' flag */
+ ahz = AHZ;
program_name = argv[0];
/* Tell the pacct reader that we want to do things backwards! */
--- sa.c
+++ sa.c
@@ -174,7 +174,7 @@
int print_users = 0;
int percentages = 0; /* include percentages in printout */
int user_summary_flag = 0; /* are we printing a user summary? */
-int ahz = AHZ; /* for viewing logs from another system */
+int ahz = 0; /* for viewing logs from another system */
#if defined(HAVE_ACUTIME) && defined(HAVE_ACSTIME)
@@ -265,11 +265,16 @@
/* code */
+#ifndef HZ
+# define AHZ sysconf(_SC_CLK_TCK)
+#endif
+
void
main (int argc, char *argv[])
{
int c;
+ ahz = AHZ;
program_name = argv[0];
/* Cache the page size of the machine for the PAGES_TO_KB macro */
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org