build: 'sync-descriptions' now compares GNU package descriptions.
[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
LC
54 (description
55"GNU libsigsegv is a library for handling page faults in user mode. A page
56fault occurs when a program tries to access to a region of memory that is
57currently not available. Catching and handling a page fault is a useful
58technique for implementing pageable virtual memory, memory-mapped access to
59persistent databases, generational garbage collectors, stack overflow
60handlers, distributed shared memory, and more.")
4a44e743 61 (license gpl2+)))