[packages/psacct] - build fixed
arekm
arekm at pld-linux.org
Sat Feb 16 23:05:00 CET 2013
commit 34c52644247ae7e08d5c5551da6aa368b7e47a62
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat Feb 16 23:04:57 2013 +0100
- build fixed
psacct-build.patch | 13 +++++++++++++
psacct.spec | 2 ++
2 files changed, 15 insertions(+)
---
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}
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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/psacct.git/commitdiff/34c52644247ae7e08d5c5551da6aa368b7e47a62
More information about the pld-cvs-commit
mailing list