mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
56c092ce94
* guix/build/gnu-build-system.scm (set-paths): Add `native-inputs' and `native-search-paths' keyword parameters. Honor them. (configure): Add `target' and `native-inputs' keyword parameters. Look for Bash in NATIVE-INPUTS or INPUTS. Pass `--host' when TARGET is true. (strip): Add `strip-command' keyword parameter. Use it. * guix/build/gnu-cross-build.scm: Remove. * Makefile.am (MODULES): Adjust accordingly. * gnu/packages/acl.scm, gnu/packages/attr.scm, gnu/packages/base.scm, gnu/packages/bash.scm, gnu/packages/gawk.scm, gnu/packages/gettext.scm, gnu/packages/guile.scm, gnu/packages/libffi.scm, gnu/packages/libsigsegv.scm, gnu/packages/linux.scm, gnu/packages/ncurses.scm, gnu/packages/readline.scm, guix/build-system/gnu.scm: Replace `%standard-cross-phases' by `%standard-phases'. Remove references to (guix build gnu-cross-build).
61 lines
2.5 KiB
Scheme
61 lines
2.5 KiB
Scheme
;;; GNU Guix --- Functional package management for GNU
|
|
;;; Copyright © 2012, 2013 Ludovic Courtès <ludo@gnu.org>
|
|
;;;
|
|
;;; This file is part of GNU Guix.
|
|
;;;
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
;;; under the terms of the GNU General Public License as published by
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
;;; your option) any later version.
|
|
;;;
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
;;; GNU General Public License for more details.
|
|
;;;
|
|
;;; You should have received a copy of the GNU General Public License
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
(define-module (gnu packages libsigsegv)
|
|
#:use-module (guix licenses)
|
|
#:use-module (guix packages)
|
|
#:use-module (guix download)
|
|
#:use-module (guix build-system gnu))
|
|
|
|
(define-public libsigsegv
|
|
(package
|
|
(name "libsigsegv")
|
|
(version "2.10")
|
|
(source (origin
|
|
(method url-fetch)
|
|
(uri (string-append
|
|
"mirror://gnu/libsigsegv/libsigsegv-"
|
|
version ".tar.gz"))
|
|
(sha256
|
|
(base32 "16hrs8k3nmc7a8jam5j1fpspd6sdpkamskvsdpcw6m29vnis8q44"))))
|
|
(build-system gnu-build-system)
|
|
(home-page "http://www.gnu.org/software/libsigsegv/")
|
|
(synopsis "Library for handling page faults")
|
|
(arguments
|
|
;; On MIPS, work around this error:
|
|
;;
|
|
;; In file included from fault-linux-mips-old.h:18:0,
|
|
;; [...]
|
|
;; linux-libre-headers-cross-mips64el-linux-gnu-3.3.8/include/asm/sigcontext.h:57:8: error: redefinition of 'struct sigcontext'
|
|
(if (string-contains (or (%current-target-system) (%current-system))
|
|
"mips64el")
|
|
`(#:phases (alist-cons-before
|
|
'configure 'patch-mips-old-h
|
|
(lambda _
|
|
(substitute* "src/fault-linux-mips-old.h"
|
|
(("#include <asm/sigcontext\\.h>") "")))
|
|
%standard-phases))
|
|
'()))
|
|
(description
|
|
"GNU libsigsegv is a library for handling page faults in user mode. A page
|
|
fault occurs when a program tries to access to a region of memory that is
|
|
currently not available. Catching and handling a page fault is a useful
|
|
technique for implementing pageable virtual memory, memory-mapped access to
|
|
persistent databases, generational garbage collectors, stack overflow
|
|
handlers, distributed shared memory, and more.")
|
|
(license gpl2+)))
|