SHA256
1
0
forked from pool/acct

Accepting request 128702 from Base:System

Fix build with missing gets declaration (glibc 2.16) (forwarded request 128611 from a_jaeger)

OBS-URL: https://build.opensuse.org/request/show/128702
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/acct?expand=0&rev=20
This commit is contained in:
Stephan Kulow 2012-07-23 07:52:21 +00:00 committed by Git OBS Bridge
commit 42653db819
3 changed files with 24 additions and 4 deletions

14
acct-stdio.h.patch Normal file
View File

@ -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@

View File

@ -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 Mon Jan 23 08:43:45 UTC 2012 - bart.vanassche@gmail.com

View File

@ -16,13 +16,10 @@
# #
Name: acct Name: acct
License: GPL-2.0+
Group: System/Base
PreReq: %insserv_prereq %fillup_prereq fileutils %install_info_prereq PreReq: %insserv_prereq %fillup_prereq fileutils %install_info_prereq
Version: 6.5.5 Version: 6.5.5
Release: 830 Release: 0
Source: %{name}-%{version}.tar.gz Source: %{name}-%{version}.tar.gz
Source1: rc.acct Source1: rc.acct
Source2: logrotate.acct Source2: logrotate.acct
@ -31,9 +28,12 @@ Patch: %{name}-hz.patch
Patch1: %{name}-axp.patch Patch1: %{name}-axp.patch
Patch2: %{name}-info.patch Patch2: %{name}-info.patch
Patch3: %{name}-ac.patch Patch3: %{name}-ac.patch
Patch4: acct-stdio.h.patch
Url: http://www.gnu.org/directory/acct.html Url: http://www.gnu.org/directory/acct.html
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: User-Specific Process Accounting Summary: User-Specific Process Accounting
License: GPL-2.0+
Group: System/Base
%description %description
This package contains the programs necessary for user-specific process This package contains the programs necessary for user-specific process
@ -45,6 +45,7 @@ accounting: sa, accton, and lastcomm.
%patch1 -p1 %patch1 -p1
%patch2 -p1 %patch2 -p1
%patch3 -p1 %patch3 -p1
%patch4 -p1
%build %build
%define prefix /usr %define prefix /usr