projects/guix·blob java-team · refs

71 lines · 3.0 KiB

1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2013, 2014 Ludovic Courtès <[email protected]>
3;;; Copyright © 2015 Mark H Weaver <[email protected]>
4;;; Copyright © 2019 Tobias Geerinckx-Rice <[email protected]>
5;;; Copyright © 2022 Efraim Flashner <[email protected]>
6;;; Copyright © 2022 Marius Bakke <[email protected]>
7;;; Copyright © 2025 Janneke Nieuwenhuizen <[email protected]>
8;;;
9;;; This file is part of GNU Guix.
10;;;
11;;; GNU Guix is free software; you can redistribute it and/or modify it
12;;; under the terms of the GNU General Public License as published by
13;;; the Free Software Foundation; either version 3 of the License, or (at
14;;; your option) any later version.
15;;;
16;;; GNU Guix is distributed in the hope that it will be useful, but
17;;; WITHOUT ANY WARRANTY; without even the implied warranty of
18;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19;;; GNU General Public License for more details.
20;;;
21;;; You should have received a copy of the GNU General Public License
22;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
23
24(define-module (gnu packages libunwind)
25 #:use-module (guix gexp)
26 #:use-module (guix download)
27 #:use-module (guix packages)
28 #:use-module (guix utils)
29 #:use-module (gnu packages)
30 #:use-module (guix build-system gnu)
31 #:use-module (guix licenses))
32
33(define-public libunwind
34 (package
35 (name "libunwind")
36 (version "1.6.2")
37 (source (origin
38 (method url-fetch)
39 (uri (string-append "mirror://savannah/libunwind/libunwind-"
40 version ".tar.gz"))
41 (sha256
42 (base32
43 "0xj9g6a9q7v7zz6lymf3f6011synibgawi4wi384bywid5kfqsja"))))
44 (build-system gnu-build-system)
45 (arguments
46 (list
47 #:configure-flags
48 #~(list #$(string-append
49 "CFLAGS=-g -O2"
50 " -Wno-error=implicit-function-declaration"
51 " -Wno-error=incompatible-pointer-types"))
52 ;; Two tests are failing with newer toolchains:
53 ;; https://github.com/libunwind/libunwind/issues/363
54 #:make-flags
55 #~(list "XFAIL_TESTS=run-coredump-unwind run-coredump-unwind-mdi")
56 ;; A different collection of tests fails for each architecture.
57 #:tests? (and (not (%current-target-system))
58 (target-x86-64?))))
59 (home-page "https://www.nongnu.org/libunwind")
60 (synopsis "Determining the call chain of a program")
61 (description
62 "The primary goal of this project is to define a portable and efficient C
63programming interface (API) to determine the call-chain of a program. The API
64additionally provides the means to manipulate the preserved (callee-saved)
65state of each call-frame and to resume execution at any point in the
66call-chain (non-local goto). The API supports both local (same-process) and
67remote (across-process) operation. As such, the API is useful in a number of
68applications.")
69 ;; Do not believe <https://savannah.nongnu.org/projects/libunwind/>:
70 ;; see <https://github.com/libunwind/libunwind/issues/372>.
71 (license expat)))