diff --git a/acct-stdio.h.patch b/acct-stdio.h.patch new file mode 100644 index 0000000..f0c7a97 --- /dev/null +++ b/acct-stdio.h.patch @@ -0,0 +1,14 @@ +Index: acct-6.5.5/lib/stdio.in.h +=================================================================== +--- acct-6.5.5.orig/lib/stdio.in.h ++++ acct-6.5.5/lib/stdio.in.h +@@ -142,7 +142,9 @@ _GL_WARN_ON_USE (fflush, "fflush is not + so any use of gets warrants an unconditional warning. Assume it is + always declared, since it is required by C89. */ + #undef gets ++#if HAVE_RAW_DECL_GETS + _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); ++#endif + + #if @GNULIB_FOPEN@ + # if @REPLACE_FOPEN@ diff --git a/acct.changes b/acct.changes index 010dbbb..2307ba9 100644 --- a/acct.changes +++ b/acct.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Jul 22 06:56:58 UTC 2012 - aj@suse.de + +- Fix build with missing gets declaration (glibc 2.16) + ------------------------------------------------------------------- Mon Jan 23 08:43:45 UTC 2012 - bart.vanassche@gmail.com diff --git a/acct.spec b/acct.spec index 24bc4a9..444cd15 100644 --- a/acct.spec +++ b/acct.spec @@ -16,13 +16,10 @@ # - Name: acct -License: GPL-2.0+ -Group: System/Base PreReq: %insserv_prereq %fillup_prereq fileutils %install_info_prereq Version: 6.5.5 -Release: 830 +Release: 0 Source: %{name}-%{version}.tar.gz Source1: rc.acct Source2: logrotate.acct @@ -31,9 +28,12 @@ Patch: %{name}-hz.patch Patch1: %{name}-axp.patch Patch2: %{name}-info.patch Patch3: %{name}-ac.patch +Patch4: acct-stdio.h.patch Url: http://www.gnu.org/directory/acct.html BuildRoot: %{_tmppath}/%{name}-%{version}-build Summary: User-Specific Process Accounting +License: GPL-2.0+ +Group: System/Base %description This package contains the programs necessary for user-specific process @@ -45,6 +45,7 @@ accounting: sa, accton, and lastcomm. %patch1 -p1 %patch2 -p1 %patch3 -p1 +%patch4 -p1 %build %define prefix /usr