]> git.pld-linux.org Git - packages/gdb.git/blob - gdb-attach-fail-reasons-5of5configure.patch
- typo
[packages/gdb.git] / gdb-attach-fail-reasons-5of5configure.patch
1 Index: gdb-7.4.50.20120602/gdb/config.in
2 ===================================================================
3 --- gdb-7.4.50.20120602.orig/gdb/config.in      2012-06-02 21:49:26.147399232 +0200
4 +++ gdb-7.4.50.20120602/gdb/config.in   2012-06-02 21:49:27.206398845 +0200
5 @@ -222,6 +222,9 @@
6  /* Define if librpm library is being used. */
7  #undef HAVE_LIBRPM
8  
9 +/* Define to 1 if you have the `selinux' library (-lselinux). */
10 +#undef HAVE_LIBSELINUX
11 +
12  /* Define to 1 if you have the <libunwind-ia64.h> header file. */
13  #undef HAVE_LIBUNWIND_IA64_H
14  
15 @@ -363,6 +366,9 @@
16  /* Define to 1 if you have the `sbrk' function. */
17  #undef HAVE_SBRK
18  
19 +/* Define to 1 if you have the <selinux/selinux.h> header file. */
20 +#undef HAVE_SELINUX_SELINUX_H
21 +
22  /* Define to 1 if you have the `setlocale' function. */
23  #undef HAVE_SETLOCALE
24  
25 Index: gdb-7.4.50.20120602/gdb/configure
26 ===================================================================
27 --- gdb-7.4.50.20120602.orig/gdb/configure      2012-06-02 21:49:27.139398869 +0200
28 +++ gdb-7.4.50.20120602/gdb/configure   2012-06-02 21:49:50.890390179 +0200
29 @@ -12745,6 +12745,64 @@ $as_echo "#define HAVE_PERSONALITY 1" >>
30  
31  fi
32  
33 +for ac_header in selinux/selinux.h
34 +do :
35 +  ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
36 +if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
37 +  cat >>confdefs.h <<_ACEOF
38 +#define HAVE_SELINUX_SELINUX_H 1
39 +_ACEOF
40 +
41 +fi
42 +
43 +done
44 +
45 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for security_get_boolean_active in -lselinux" >&5
46 +$as_echo_n "checking for security_get_boolean_active in -lselinux... " >&6; }
47 +if test "${ac_cv_lib_selinux_security_get_boolean_active+set}" = set; then :
48 +  $as_echo_n "(cached) " >&6
49 +else
50 +  ac_check_lib_save_LIBS=$LIBS
51 +LIBS="-lselinux  $LIBS"
52 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53 +/* end confdefs.h.  */
54 +
55 +/* Override any GCC internal prototype to avoid an error.
56 +   Use char because int might match the return type of a GCC
57 +   builtin and then its argument prototype would still apply.  */
58 +#ifdef __cplusplus
59 +extern "C"
60 +#endif
61 +char security_get_boolean_active ();
62 +int
63 +main ()
64 +{
65 +return security_get_boolean_active ();
66 +  ;
67 +  return 0;
68 +}
69 +_ACEOF
70 +if ac_fn_c_try_link "$LINENO"; then :
71 +  ac_cv_lib_selinux_security_get_boolean_active=yes
72 +else
73 +  ac_cv_lib_selinux_security_get_boolean_active=no
74 +fi
75 +rm -f core conftest.err conftest.$ac_objext \
76 +    conftest$ac_exeext conftest.$ac_ext
77 +LIBS=$ac_check_lib_save_LIBS
78 +fi
79 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_get_boolean_active" >&5
80 +$as_echo "$ac_cv_lib_selinux_security_get_boolean_active" >&6; }
81 +if test "x$ac_cv_lib_selinux_security_get_boolean_active" = x""yes; then :
82 +  cat >>confdefs.h <<_ACEOF
83 +#define HAVE_LIBSELINUX 1
84 +_ACEOF
85 +
86 +  LIBS="-lselinux $LIBS"
87 +
88 +fi
89 +
90 +
91  
92  # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
93  # except that the argument to --with-sysroot is optional.
94 Index: gdb-7.4.50.20120602/gdb/gdbserver/config.in
95 ===================================================================
96 --- gdb-7.4.50.20120602.orig/gdb/gdbserver/config.in    2012-04-19 21:34:51.000000000 +0200
97 +++ gdb-7.4.50.20120602/gdb/gdbserver/config.in 2012-06-02 21:49:55.945388329 +0200
98 @@ -69,6 +69,9 @@
99  /* Define to 1 if you have the `dl' library (-ldl). */
100  #undef HAVE_LIBDL
101  
102 +/* Define to 1 if you have the `selinux' library (-lselinux). */
103 +#undef HAVE_LIBSELINUX
104 +
105  /* Define to 1 if you have the <linux/elf.h> header file. */
106  #undef HAVE_LINUX_ELF_H
107  
108 @@ -130,6 +133,9 @@
109  /* Define to 1 if you have the `readlink' function. */
110  #undef HAVE_READLINK
111  
112 +/* Define to 1 if you have the <selinux/selinux.h> header file. */
113 +#undef HAVE_SELINUX_SELINUX_H
114 +
115  /* Define to 1 if you have the <sgtty.h> header file. */
116  #undef HAVE_SGTTY_H
117  
118 Index: gdb-7.4.50.20120602/gdb/gdbserver/configure
119 ===================================================================
120 --- gdb-7.4.50.20120602.orig/gdb/gdbserver/configure    2012-04-20 19:58:49.000000000 +0200
121 +++ gdb-7.4.50.20120602/gdb/gdbserver/configure 2012-06-02 21:49:54.485388864 +0200
122 @@ -5532,6 +5532,64 @@ if $want_ipa ; then
123     fi
124  fi
125  
126 +for ac_header in selinux/selinux.h
127 +do :
128 +  ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
129 +if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
130 +  cat >>confdefs.h <<_ACEOF
131 +#define HAVE_SELINUX_SELINUX_H 1
132 +_ACEOF
133 +
134 +fi
135 +
136 +done
137 +
138 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for security_get_boolean_active in -lselinux" >&5
139 +$as_echo_n "checking for security_get_boolean_active in -lselinux... " >&6; }
140 +if test "${ac_cv_lib_selinux_security_get_boolean_active+set}" = set; then :
141 +  $as_echo_n "(cached) " >&6
142 +else
143 +  ac_check_lib_save_LIBS=$LIBS
144 +LIBS="-lselinux  $LIBS"
145 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
146 +/* end confdefs.h.  */
147 +
148 +/* Override any GCC internal prototype to avoid an error.
149 +   Use char because int might match the return type of a GCC
150 +   builtin and then its argument prototype would still apply.  */
151 +#ifdef __cplusplus
152 +extern "C"
153 +#endif
154 +char security_get_boolean_active ();
155 +int
156 +main ()
157 +{
158 +return security_get_boolean_active ();
159 +  ;
160 +  return 0;
161 +}
162 +_ACEOF
163 +if ac_fn_c_try_link "$LINENO"; then :
164 +  ac_cv_lib_selinux_security_get_boolean_active=yes
165 +else
166 +  ac_cv_lib_selinux_security_get_boolean_active=no
167 +fi
168 +rm -f core conftest.err conftest.$ac_objext \
169 +    conftest$ac_exeext conftest.$ac_ext
170 +LIBS=$ac_check_lib_save_LIBS
171 +fi
172 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_get_boolean_active" >&5
173 +$as_echo "$ac_cv_lib_selinux_security_get_boolean_active" >&6; }
174 +if test "x$ac_cv_lib_selinux_security_get_boolean_active" = x""yes; then :
175 +  cat >>confdefs.h <<_ACEOF
176 +#define HAVE_LIBSELINUX 1
177 +_ACEOF
178 +
179 +  LIBS="-lselinux $LIBS"
180 +
181 +fi
182 +
183 +
184  
185  
186  
This page took 0.033324 seconds and 3 git commands to generate.