From 34c52644247ae7e08d5c5551da6aa368b7e47a62 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Sat, 16 Feb 2013 23:04:57 +0100 Subject: [PATCH] - build fixed --- psacct-build.patch | 13 +++++++++++++ psacct.spec | 2 ++ 2 files changed, 15 insertions(+) create mode 100644 psacct-build.patch diff --git a/psacct-build.patch b/psacct-build.patch new file mode 100644 index 0000000..26d5120 --- /dev/null +++ b/psacct-build.patch @@ -0,0 +1,13 @@ +--- acct-6.5.5/lib/stdio.in.h~ 2013-02-16 23:00:04.119332820 +0100 ++++ acct-6.5.5/lib/stdio.in.h 2013-02-16 23:02:00.196823604 +0100 +@@ -453,8 +453,10 @@ + /* It is very rare that the developer ever has full control of stdin, + so any use of gets warrants an unconditional warning. Assume it is + always declared, since it is required by C89. */ ++#ifdef gets + #undef gets + _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); ++#endif + + #if 0 + # if 0 diff --git a/psacct.spec b/psacct.spec index 9694425..6bea527 100644 --- a/psacct.spec +++ b/psacct.spec @@ -18,6 +18,7 @@ Source3: acct.sysinit Source4: acct.sysconfig Patch0: acct-info.patch Patch1: %{name}-path.patch +Patch2: %{name}-build.patch URL: http://www.gnu.org/directory/GNU/acct.html BuildRequires: autoconf >= 2.63 BuildRequires: automake @@ -53,6 +54,7 @@ processos estão incluídas aqui. %setup -q -n acct-%{version} %patch0 -p1 %patch1 -p1 +%patch2 -p1 %build %{__libtoolize} -- 2.44.0