File: configure-patch-for-kfreebsd-debian.patch

package info (click to toggle)
libsigsegv 2.10-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,360 kB
  • ctags: 652
  • sloc: sh: 10,567; ansic: 3,632; makefile: 130
file content (69 lines) | stat: -rw-r--r-- 2,619 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
Description: patch configure.ac to also handle kfreeBSD/Debian
Author: Petr Salinger <Petr.Salinger@seznam.cz>
Origin: http://bugs.debian.org/376570
Bug-Debian: http://bugs.debian.org/376570
Forwarded: not-needed



Index: libsigsegv/configure.ac
===================================================================
--- libsigsegv.orig/configure.ac	2011-07-26 15:13:10.000000000 +0200
+++ libsigsegv/configure.ac	2011-07-26 15:19:18.000000000 +0200
@@ -91,7 +91,7 @@
 dnl List of signals that are sent when an invalid virtual memory address
 dnl is accessed, or when the stack overflows.
 case "$host_os" in
-  sunos4* | freebsd* | dragonfly* | openbsd* | netbsd* | kfreebsd* | knetbsd*)
+  sunos4* | freebsd* | openbsd* | netbsd* | kfreebsd* | k*bsd*)
     CFG_SIGNALS=signals-bsd.h ;;
   hpux*)
     CFG_SIGNALS=signals-hpux.h ;;
@@ -133,7 +133,7 @@
 
 dnl FIXME: Put in some more known values into the third argument.
 SV_TRY_FAULT([POSIX], sv_cv_fault_posix,
-  [*-*-solaris2.[7-9] | i?86-*-linux2.[4-9]* | i?86-*-freebsd[4-9]* | i?86-*-mirbsd1[0-9] | alpha*-dec-osf[4-9]* | *-*-hpux11* | mips-sgi-irix6*],
+  [*-*-solaris2.[7-9] | i?86-*-linux2.[4-9]* | i?86-*-freebsd[4-9]* | i?86-*-kfreebsd[4-9]* | alpha*-dec-osf[4-9]* | *-*-hpux11* | mips-sgi-irix6*],
   [],
   [int sig, siginfo_t *sip, void *ucp],
   [sip->si_addr],
@@ -173,7 +173,7 @@
    action.sa_flags = SA_SIGINFO;])
 
 dnl FIXME: Put in some more known values into the third argument.
-SV_TRY_FAULT([BSD], sv_cv_fault_bsd, [i?86-*-freebsd[4-9]*],
+SV_TRY_FAULT([BSD], sv_cv_fault_bsd, [i?86-*-freebsd[4-9]* | i?86-*-kfreebsd[4-9]*],
   [],
   [int sig, int code, struct sigcontext *scp, void *addr],
   [addr])
@@ -672,7 +672,10 @@
   CFG_STACKVMA=stackvma-mquery.c
 fi
 if test -z "$CFG_STACKVMA" && test $ac_cv_func_mincore = yes; then
-  CFG_STACKVMA=stackvma-mincore.c
+  case "$host_os" in
+    kfreebsd*) ;; dnl mincore() does not work
+    *) CFG_STACKVMA=stackvma-mincore.c ;;
+  esac  
 fi
 if test -n "$CFG_STACKVMA"; then
   AC_DEFINE([HAVE_STACKVMA], [1],
@@ -716,7 +719,7 @@
 dnl FIXME: Put in some more known values into the third argument.
 SV_TRY_LEAVE_HANDLER_LONGJMP([ and sigaltstack],
   sv_cv_leave_handler_longjmp_sigaltstack,
-  [*-*-freebsd*],
+  [*-*-freebsd*|*-*-kfreebsd*],
   [
 #ifndef SS_ONSTACK
 #define SS_ONSTACK SA_ONSTACK
@@ -774,7 +777,7 @@
 dnl FIXME: Put in some more known values into the third argument.
 SV_TRY_LEAVE_HANDLER_SIGLONGJMP([ and sigaltstack],
   sv_cv_leave_handler_siglongjmp_sigaltstack,
-  [*-*-freebsd*],
+  [*-*-freebsd*|*-*-kfreebsd*],
   [
 #ifndef SS_ONSTACK
 #define SS_ONSTACK SA_ONSTACK