[packages/aide] - fix build

arekm arekm at pld-linux.org
Sun Feb 17 00:34:08 CET 2013


commit c9837f816c04c1b2e676efae146591141666c3ab
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Feb 17 00:33:59 2013 +0100

    - fix build

 aide-Werror.patch | 20 ++++++++++++++++++++
 aide-lex.patch    | 22 ++++++++++++++++++++++
 aide.spec         |  6 ++++++
 3 files changed, 48 insertions(+)
---
diff --git a/aide.spec b/aide.spec
index 1c8beee..e241bff 100644
--- a/aide.spec
+++ b/aide.spec
@@ -16,6 +16,8 @@ Source4:	%{name}.sysconfig
 Patch0:		%{name}-autoconf.patch
 Patch1:		%{name}-NLS.patch
 Patch2:		%{name}-no_md.patch
+Patch3:		%{name}-lex.patch
+Patch4:		%{name}-Werror.patch
 URL:		http://www.cs.tut.fi/~rammer/aide.html
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -59,6 +61,10 @@ detectar violações de integridade pelo uso de hashes como MD5.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
+%patch4 -p1
+
+rm src/conf_lex.c src/db_lex.c
 
 %build
 %{__gettextize}
diff --git a/aide-Werror.patch b/aide-Werror.patch
new file mode 100644
index 0000000..91e4f5b
--- /dev/null
+++ b/aide-Werror.patch
@@ -0,0 +1,20 @@
+--- aide-0.15.1/src/db_file.c~	2010-08-08 19:39:31.000000000 +0200
++++ aide-0.15.1/src/db_file.c	2013-02-17 00:30:25.921433489 +0100
+@@ -702,7 +702,7 @@
+   }
+ 
+   if(tmpstr){
+-    retval=dofprintf(tmpstr);
++    retval=dofprintf("%s", tmpstr);
+     free(tmpstr);
+     return retval;
+   }else {
+@@ -741,7 +741,7 @@
+ 
+ 
+   tmpstr=encode_base64((byte *)ptr,strlen(ptr));
+-  retval=dofprintf(tmpstr);
++  retval=dofprintf("%s", tmpstr);
+   free(tmpstr);
+   free(ptr);
+ 
diff --git a/aide-lex.patch b/aide-lex.patch
new file mode 100644
index 0000000..ecb4675
--- /dev/null
+++ b/aide-lex.patch
@@ -0,0 +1,22 @@
+--- aide-0.15.1/src/conf_lex.l~	2010-08-08 19:39:31.000000000 +0200
++++ aide-0.15.1/src/conf_lex.l	2013-02-17 00:28:27.265336729 +0100
+@@ -12,7 +12,7 @@
+ 
+ %{
+ 
+-#define YYDEBUG
++#define YYDEBUG 1
+ 
+ /*
+  * Copyright (C) 1999-2002,2004-2006,2010 Rami Lehti, Pablo Virolainen, Richard
+--- aide-0.15.1/src/db_lex.l~	2010-08-08 19:39:31.000000000 +0200
++++ aide-0.15.1/src/db_lex.l	2013-02-17 00:32:07.953812738 +0100
+@@ -45,7 +45,7 @@
+ #define YY_DECL int db_scan(void)
+ 
+ 
+-#define YYDEBUG
++#define YYDEBUG 1
+ 
+ #include "aide.h"
+ #include "conf_yacc.h"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/aide.git/commitdiff/c9837f816c04c1b2e676efae146591141666c3ab



More information about the pld-cvs-commit mailing list