gnu: python-pandas: Fix build on 32-bit.
[jackhill/guix/guix.git] / gnu / packages / libsigsegv.scm
CommitLineData
233e7676 1;;; GNU Guix --- Functional package management for GNU
f03e7115 2;;; Copyright © 2012, 2013 Ludovic Courtès <ludo@gnu.org>
c44899a2 3;;;
233e7676 4;;; This file is part of GNU Guix.
c44899a2 5;;;
233e7676 6;;; GNU Guix is free software; you can redistribute it and/or modify it
c44899a2
LC
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
233e7676 11;;; GNU Guix is distributed in the hope that it will be useful, but
c44899a2
LC
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
233e7676 17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
c44899a2 18
1ffa7090 19(define-module (gnu packages libsigsegv)
4a44e743 20 #:use-module (guix licenses)
c44899a2 21 #:use-module (guix packages)
87f5d366 22 #:use-module (guix download)
c44899a2
LC
23 #:use-module (guix build-system gnu))
24
25(define-public libsigsegv
26 (package
27 (name "libsigsegv")
28 (version "2.10")
29 (source (origin
87f5d366 30 (method url-fetch)
c44899a2 31 (uri (string-append
0db342a5 32 "mirror://gnu/libsigsegv/libsigsegv-"
c44899a2
LC
33 version ".tar.gz"))
34 (sha256
35 (base32 "16hrs8k3nmc7a8jam5j1fpspd6sdpkamskvsdpcw6m29vnis8q44"))))
36 (build-system gnu-build-system)
c44899a2 37 (home-page "http://www.gnu.org/software/libsigsegv/")
f50d2669 38 (synopsis "Library for handling page faults")
9aa949a4
LC
39 (arguments
40 ;; On MIPS, work around this error:
41 ;;
42 ;; In file included from fault-linux-mips-old.h:18:0,
43 ;; [...]
44 ;; linux-libre-headers-cross-mips64el-linux-gnu-3.3.8/include/asm/sigcontext.h:57:8: error: redefinition of 'struct sigcontext'
45 (if (string-contains (or (%current-target-system) (%current-system))
46 "mips64el")
47 `(#:phases (alist-cons-before
48 'configure 'patch-mips-old-h
49 (lambda _
50 (substitute* "src/fault-linux-mips-old.h"
51 (("#include <asm/sigcontext\\.h>") "")))
56c092ce 52 %standard-phases))
9aa949a4 53 '()))
c44899a2 54 (description
79c311b8 55 "GNU libsigsegv is a library to handle page faults, which occur when a
a22dc0c4
LC
56program tries to access an unavailable region of memory, in user mode. By
57catching and handling page faults, the program can implement pageable virtual
58memory, stack overflow handlers, and so on.")
4a44e743 59 (license gpl2+)))