/[gentoo-x86]/sys-process/audit/files/audit-2.1.3-ia64-compile-fix.patch
Gentoo

Contents of /sys-process/audit/files/audit-2.1.3-ia64-compile-fix.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Dec 22 03:36:53 2012 UTC (19 months, 4 weeks ago) by robbat2
Branch: MAIN
CVS Tags: HEAD
Bug #439188: Absolutely ridiculous workaround for upstream glibc/kernel header issue: http://sourceware.org/bugzilla/show_bug.cgi?id=762 Patch written & tested on dolphin.ia64.dev.gentoo.org.

(Portage version: 2.2.0_alpha144/cvs/Linux x86_64, unsigned Manifest commit)

1 diff -Nuar -X exclude audit-2.1.3.orig/configure.ac audit-2.1.3/configure.ac
2 --- audit-2.1.3.orig/configure.ac 2011-08-15 17:30:58.000000000 +0000
3 +++ audit-2.1.3/configure.ac 2012-12-18 20:03:22.000000000 +0000
4 @@ -79,6 +79,9 @@
5 esac
6 fi
7
8 +AC_CHECK_HEADER([asm/ptrace.h], [AC_DEFINE([HAVE_ASM_PTRACE_H],[],[Define to 1 if you have asm/ptrace.h])], [])
9 +AC_CHECK_HEADER([linux/ptrace.h], [AC_DEFINE([HAVE_LINUX_PTRACE_H],[],[Define to 1 if you have linux/ptrace.h])], [])
10 +
11 #gssapi
12 AC_ARG_ENABLE(gssapi_krb5,
13 [AS_HELP_STRING([--enable-gssapi-krb5],[Enable GSSAPI Kerberos 5 support @<:@default=no@:>@])],
14 diff -Nuar -X exclude audit-2.1.3.orig/src/auditctl.c audit-2.1.3/src/auditctl.c
15 --- audit-2.1.3.orig/src/auditctl.c 2011-08-15 17:31:00.000000000 +0000
16 +++ audit-2.1.3/src/auditctl.c 2012-12-18 20:21:21.000000000 +0000
17 @@ -22,6 +22,7 @@
18 */
19
20 #include "config.h"
21 +#include "fixup.h"
22 #include <stdio.h>
23 #include <stdlib.h>
24 #include <string.h> /* strdup needs xopen define */
25 diff -Nuar -X exclude audit-2.1.3.orig/src/auditd-config.c audit-2.1.3/src/auditd-config.c
26 --- audit-2.1.3.orig/src/auditd-config.c 2011-08-15 17:31:00.000000000 +0000
27 +++ audit-2.1.3/src/auditd-config.c 2012-12-18 20:21:23.000000000 +0000
28 @@ -22,6 +22,7 @@
29 */
30
31 #include "config.h"
32 +#include "fixup.h"
33 #include <stdio.h>
34 #include <unistd.h>
35 #include <sys/stat.h>
36 diff -Nuar -X exclude audit-2.1.3.orig/src/auditd-dispatch.c audit-2.1.3/src/auditd-dispatch.c
37 --- audit-2.1.3.orig/src/auditd-dispatch.c 2011-08-15 17:31:00.000000000 +0000
38 +++ audit-2.1.3/src/auditd-dispatch.c 2012-12-18 20:21:27.000000000 +0000
39 @@ -22,6 +22,7 @@
40 */
41
42 #include "config.h"
43 +#include "fixup.h"
44 #include <unistd.h>
45 #include <sys/uio.h>
46 #include <fcntl.h>
47 diff -Nuar -X exclude audit-2.1.3.orig/src/auditd-event.c audit-2.1.3/src/auditd-event.c
48 --- audit-2.1.3.orig/src/auditd-event.c 2011-08-15 17:31:00.000000000 +0000
49 +++ audit-2.1.3/src/auditd-event.c 2012-12-18 20:21:29.000000000 +0000
50 @@ -22,6 +22,7 @@
51 */
52
53 #include "config.h"
54 +#include "fixup.h"
55 #include <stdio.h>
56 #include <stdlib.h>
57 #include <unistd.h>
58 diff -Nuar -X exclude audit-2.1.3.orig/src/auditd-listen.c audit-2.1.3/src/auditd-listen.c
59 --- audit-2.1.3.orig/src/auditd-listen.c 2011-08-15 17:31:00.000000000 +0000
60 +++ audit-2.1.3/src/auditd-listen.c 2012-12-18 20:21:31.000000000 +0000
61 @@ -22,6 +22,7 @@
62 */
63
64 #include "config.h"
65 +#include "fixup.h"
66 #include <stdio.h>
67 #include <unistd.h>
68 #include <sys/stat.h>
69 diff -Nuar -X exclude audit-2.1.3.orig/src/auditd-reconfig.c audit-2.1.3/src/auditd-reconfig.c
70 --- audit-2.1.3.orig/src/auditd-reconfig.c 2011-08-15 17:31:00.000000000 +0000
71 +++ audit-2.1.3/src/auditd-reconfig.c 2012-12-18 20:21:33.000000000 +0000
72 @@ -22,6 +22,7 @@
73 */
74
75 #include "config.h"
76 +#include "fixup.h"
77 #include <pthread.h>
78 #include <signal.h>
79 #include <stdlib.h>
80 diff -Nuar -X exclude audit-2.1.3.orig/src/auditd-sendmail.c audit-2.1.3/src/auditd-sendmail.c
81 --- audit-2.1.3.orig/src/auditd-sendmail.c 2011-08-15 17:31:00.000000000 +0000
82 +++ audit-2.1.3/src/auditd-sendmail.c 2012-12-18 20:21:34.000000000 +0000
83 @@ -22,6 +22,7 @@
84 */
85
86 #include "config.h"
87 +#include "fixup.h"
88 #include <stdio.h>
89 #include <unistd.h> // for access()
90 #include <string.h>
91 diff -Nuar -X exclude audit-2.1.3.orig/src/auditd.c audit-2.1.3/src/auditd.c
92 --- audit-2.1.3.orig/src/auditd.c 2011-08-15 17:31:00.000000000 +0000
93 +++ audit-2.1.3/src/auditd.c 2012-12-18 20:21:38.000000000 +0000
94 @@ -22,6 +22,7 @@
95 */
96
97 #include "config.h"
98 +#include "fixup.h"
99 #include <stdio.h>
100 #include <sys/types.h>
101 #include <unistd.h>
102 diff -Nuar -X exclude audit-2.1.3.orig/src/autrace.c audit-2.1.3/src/autrace.c
103 --- audit-2.1.3.orig/src/autrace.c 2011-08-15 17:31:00.000000000 +0000
104 +++ audit-2.1.3/src/autrace.c 2012-12-18 20:21:43.000000000 +0000
105 @@ -21,6 +21,7 @@
106 */
107
108 #include "config.h"
109 +#include "fixup.h"
110 #include <stdio.h>
111 #include <string.h>
112 #include <sys/wait.h>
113 diff -Nuar -X exclude audit-2.1.3.orig/src/delete_all.c audit-2.1.3/src/delete_all.c
114 --- audit-2.1.3.orig/src/delete_all.c 2011-08-15 17:31:00.000000000 +0000
115 +++ audit-2.1.3/src/delete_all.c 2012-12-18 20:21:48.000000000 +0000
116 @@ -20,6 +20,7 @@
117 * Steve Grubb <sgrubb@redhat.com>
118 */
119 #include "config.h"
120 +#include "fixup.h"
121 #include <stdio.h>
122 #include <string.h>
123 #include <errno.h>
124 diff -Nuar -X exclude audit-2.1.3.orig/lib/fixup.h audit-2.1.3/lib/fixup.h
125 --- audit-2.1.3.orig/lib/fixup.h 1970-01-01 00:00:00.000000000 +0000
126 +++ audit-2.1.3/lib/fixup.h 2012-12-18 20:21:02.000000000 +0000
127 @@ -0,0 +1,17 @@
128 +#ifndef _AUDIT_IA64_FIXUP_H_
129 +#define _AUDIT_IA64_FIXUP_H_
130 +
131 +#ifdef __ia64__ /* what a pos */
132 +# include <linux/types.h>
133 +# define _ASM_IA64_FPU_H
134 +#endif
135 +#include <signal.h>
136 +/*
137 +#ifdef HAVE_ASM_PTRACE_H
138 +# include <asm/ptrace.h>
139 +#endif
140 +#ifdef HAVE_LINUX_PTRACE_H
141 +# include <linux/ptrace.h>
142 +#endif
143 +*/
144 +#endif
145 --- audit-2.1.3/src/ausearch.c 2012-12-22 03:09:54.000000000 +0000
146 +++ audit-2.1.3/src/ausearch.c 2012-12-22 03:10:02.000000000 +0000
147 @@ -22,6 +22,7 @@
148 */
149
150 #include "config.h"
151 +#include "fixup.h"
152 #include <stdio.h>
153 #include <stdio_ext.h>
154 #include <string.h>
155 diff -Nuar audit-2.1.3.orig/audisp/audispd.c audit-2.1.3/audisp/audispd.c
156 --- audit-2.1.3.orig/audisp/audispd.c 2011-08-15 17:30:59.000000000 +0000
157 +++ audit-2.1.3/audisp/audispd.c 2012-12-22 03:25:15.000000000 +0000
158 @@ -21,6 +21,7 @@
159 */
160
161 #include "config.h"
162 +#include "fixup.h"
163 #include <stdio.h>
164 #include <unistd.h>
165 #include <stdlib.h>
166 diff -Nuar audit-2.1.3.orig/audisp/plugins/prelude/audisp-prelude.c audit-2.1.3/audisp/plugins/prelude/audisp-prelude.c
167 --- audit-2.1.3.orig/audisp/plugins/prelude/audisp-prelude.c 2011-08-15 17:30:59.000000000 +0000
168 +++ audit-2.1.3/audisp/plugins/prelude/audisp-prelude.c 2012-12-22 03:25:20.000000000 +0000
169 @@ -21,6 +21,8 @@
170 *
171 */
172
173 +#include "config.h"
174 +#include "fixup.h"
175 #include <stdio.h>
176 #include <stdlib.h>
177 #include <signal.h>
178 diff -Nuar audit-2.1.3.orig/audisp/plugins/remote/audisp-remote.c audit-2.1.3/audisp/plugins/remote/audisp-remote.c
179 --- audit-2.1.3.orig/audisp/plugins/remote/audisp-remote.c 2011-08-15 17:30:59.000000000 +0000
180 +++ audit-2.1.3/audisp/plugins/remote/audisp-remote.c 2012-12-22 03:25:22.000000000 +0000
181 @@ -22,6 +22,7 @@
182 */
183
184 #include "config.h"
185 +#include "fixup.h"
186 #include <stdio.h>
187 #include <signal.h>
188 #include <syslog.h>
189 diff -Nuar audit-2.1.3.orig/contrib/plugin/audisp-example.c audit-2.1.3/contrib/plugin/audisp-example.c
190 --- audit-2.1.3.orig/contrib/plugin/audisp-example.c 2011-08-15 17:31:02.000000000 +0000
191 +++ audit-2.1.3/contrib/plugin/audisp-example.c 2012-12-22 03:25:27.000000000 +0000
192 @@ -37,6 +37,8 @@
193 */
194
195 #define _GNU_SOURCE
196 +#include "config.h"
197 +#include "fixup.h"
198 #include <stdio.h>
199 #include <signal.h>
200 #include <string.h>
201 diff -Nuar audit-2.1.3.orig/contrib/skeleton.c audit-2.1.3/contrib/skeleton.c
202 --- audit-2.1.3.orig/contrib/skeleton.c 2011-08-15 17:31:02.000000000 +0000
203 +++ audit-2.1.3/contrib/skeleton.c 2012-12-22 03:25:40.000000000 +0000
204 @@ -7,6 +7,8 @@
205 * gcc skeleton.c -o skeleton -laudit
206 */
207
208 +#include "config.h"
209 +#include "fixup.h"
210 #include <stdio.h>
211 #include <sys/types.h>
212 #include <sys/uio.h>

  ViewVC Help
Powered by ViewVC 1.1.20