diff options
| author | Maxim Cournoyer <maxim@guixotic.coop> | 2025-10-01 13:01:25 +0900 |
|---|---|---|
| committer | Maxim Cournoyer <maxim@guixotic.coop> | 2025-10-08 23:23:52 +0900 |
| commit | dab43052a683f7ec1a9490dc6d9c09a55fa01bf8 (patch) | |
| tree | fb740abd2867ea1f9b52ab8a3416c90fc20c35bb /gnu/packages/debug.scm | |
| parent | adf9d880fc9993651c6f1aec0321fa47da9f5115 (diff) | |
gnu: rr: Update to 5.9.0-0.7fe1e36.
* gnu/packages/debug.scm (rr): Update to 5.9.0-0.7fe1e36.
[#:phases]: Delete trailing #t.
Change-Id: Ic922056ee613abe7c910e9a93cb8ee8892cb4a06
Diffstat (limited to 'gnu/packages/debug.scm')
| -rw-r--r-- | gnu/packages/debug.scm | 125 |
1 files changed, 64 insertions, 61 deletions
diff --git a/gnu/packages/debug.scm b/gnu/packages/debug.scm index c16b05ffcb1..e89c370846f 100644 --- a/gnu/packages/debug.scm +++ b/gnu/packages/debug.scm | |||
| @@ -774,75 +774,78 @@ error reporting, better tracing, profiling, and a debugger.") | |||
| 774 | (license license:gpl3+))) | 774 | (license license:gpl3+))) |
| 775 | 775 | ||
| 776 | (define-public rr | 776 | (define-public rr |
| 777 | (package | 777 | ;; Use a newer commit, which contains unreleased fixes to the |
| 778 | (name "rr") | 778 | ;; zen-pmu-workaround.c kernel module, among others. |
| 779 | (version "5.9.0") | 779 | (let ((commit "7fe1e367c2b4e0df7647e020c20d66827badfad3") |
| 780 | (source (origin | 780 | (revision "0")) |
| 781 | (method git-fetch) | 781 | (package |
| 782 | (uri (git-reference | 782 | (name "rr") |
| 783 | (url "https://github.com/mozilla/rr") | 783 | (version (git-version "5.9.0" revision commit)) |
| 784 | (commit version))) | 784 | (source (origin |
| 785 | (sha256 | 785 | (method git-fetch) |
| 786 | (base32 | 786 | (uri (git-reference |
| 787 | "18bahi9b7pz8s7vq8r52fg4pdnj62ymx4yyqjkiwnxlp06pdgqd3")) | 787 | (url "https://github.com/mozilla/rr") |
| 788 | (file-name (git-file-name name version)))) | 788 | (commit commit))) |
| 789 | (build-system cmake-build-system) | 789 | (sha256 |
| 790 | (arguments | 790 | (base32 |
| 791 | `(#:configure-flags | 791 | "1zgxk4blwwq0bigi0g8dafgl330aid3kw9ym426825flc3pp1c3m")) |
| 792 | ;; The 'rr_exec_stub' is a static binary, which leads CMake to fail | 792 | (file-name (git-file-name name version)))) |
| 793 | ;; with ‘file RPATH_CHANGE could not write new RPATH: ...’. | 793 | (build-system cmake-build-system) |
| 794 | ;; Clear CMAKE_INSTALL_RPATH to avoid that problem. | 794 | (arguments |
| 795 | (list "-DCMAKE_INSTALL_RPATH=" | 795 | `(#:configure-flags |
| 796 | ;; Satisfy the ‘validate-runpath’ phase. This isn't a direct | 796 | ;; The 'rr_exec_stub' is a static binary, which leads CMake to fail |
| 797 | ;; consequence of clearing CMAKE_INSTALL_RPATH. | 797 | ;; with ‘file RPATH_CHANGE could not write new RPATH: ...’. |
| 798 | (string-append "-DCMAKE_EXE_LINKER_FLAGS=-Wl,-rpath=" | 798 | ;; Clear CMAKE_INSTALL_RPATH to avoid that problem. |
| 799 | (assoc-ref %build-inputs "capnproto") | 799 | (list "-DCMAKE_INSTALL_RPATH=" |
| 800 | "/lib,-rpath=" (assoc-ref %build-inputs "zlib") | 800 | ;; Satisfy the ‘validate-runpath’ phase. This isn't a direct |
| 801 | "/lib,-rpath=" (assoc-ref %build-inputs "zstd") | 801 | ;; consequence of clearing CMAKE_INSTALL_RPATH. |
| 802 | "/lib") | 802 | (string-append "-DCMAKE_EXE_LINKER_FLAGS=-Wl,-rpath=" |
| 803 | ,@(if (and (not (%current-target-system)) | 803 | (assoc-ref %build-inputs "capnproto") |
| 804 | (member (%current-system) | 804 | "/lib,-rpath=" (assoc-ref %build-inputs "zlib") |
| 805 | '("x86_64-linux" "aarch64-linux"))) | 805 | "/lib,-rpath=" (assoc-ref %build-inputs "zstd") |
| 806 | ;; The toolchain doesn't support '-m32'. | 806 | "/lib") |
| 807 | '("-Ddisable32bit=ON") | 807 | ,@(if (and (not (%current-target-system)) |
| 808 | '())) | 808 | (member (%current-system) |
| 809 | '("x86_64-linux" "aarch64-linux"))) | ||
| 810 | ;; The toolchain doesn't support '-m32'. | ||
| 811 | '("-Ddisable32bit=ON") | ||
| 812 | '())) | ||
| 809 | 813 | ||
| 810 | ;; XXX: Most tests fail with: | 814 | ;; XXX: Most tests fail with: |
| 811 | ;; | 815 | ;; |
| 812 | ;; rr needs /proc/sys/kernel/perf_event_paranoid <= 1, but it is 2. | 816 | ;; rr needs /proc/sys/kernel/perf_event_paranoid <= 1, but it is 2. |
| 813 | ;; | 817 | ;; |
| 814 | ;; This setting cannot be changed from the build environment, so skip | 818 | ;; This setting cannot be changed from the build environment, so skip |
| 815 | ;; the tests. | 819 | ;; the tests. |
| 816 | #:tests? #f | 820 | #:tests? #f |
| 817 | 821 | ||
| 818 | #:phases (modify-phases %standard-phases | 822 | #:phases (modify-phases %standard-phases |
| 819 | (add-before 'check 'set-home | 823 | (add-before 'check 'set-home |
| 820 | (lambda _ | 824 | (lambda _ |
| 821 | ;; Some tests expect 'HOME' to be set. | 825 | ;; Some tests expect 'HOME' to be set. |
| 822 | (setenv "HOME" (getcwd)) | 826 | (setenv "HOME" (getcwd))))))) |
| 823 | #t))))) | 827 | (native-inputs |
| 824 | (native-inputs | 828 | (list lldb pkg-config which)) |
| 825 | (list lldb pkg-config which)) | 829 | (inputs |
| 826 | (inputs | 830 | (list gdb |
| 827 | (list gdb | 831 | capnproto |
| 828 | capnproto | 832 | python |
| 829 | python | 833 | python-pexpect |
| 830 | python-pexpect | 834 | zlib |
| 831 | zlib | 835 | `(,zstd "lib"))) |
| 832 | `(,zstd "lib"))) | ||
| 833 | 836 | ||
| 834 | ;; List of supported systems according to 'src/preload/raw_syscall.S'. | 837 | ;; List of supported systems according to 'src/preload/raw_syscall.S'. |
| 835 | (supported-systems '("x86_64-linux" "i686-linux" "aarch64-linux")) | 838 | (supported-systems '("x86_64-linux" "i686-linux" "aarch64-linux")) |
| 836 | 839 | ||
| 837 | (home-page "https://rr-project.org/") | 840 | (home-page "https://rr-project.org/") |
| 838 | (synopsis "Record and replay debugging framework") | 841 | (synopsis "Record and replay debugging framework") |
| 839 | (description | 842 | (description |
| 840 | "rr is a lightweight tool for recording, replaying and debugging | 843 | "rr is a lightweight tool for recording, replaying and debugging |
| 841 | execution of applications (trees of processes and threads). Debugging extends | 844 | execution of applications (trees of processes and threads). Debugging extends |
| 842 | GDB with very efficient reverse-execution, which in combination with standard | 845 | GDB with very efficient reverse-execution, which in combination with standard |
| 843 | GDB/x86 features like hardware data watchpoints, makes debugging much more | 846 | GDB/x86 features like hardware data watchpoints, makes debugging much more |
| 844 | fun.") | 847 | fun.") |
| 845 | (license license:expat))) | 848 | (license license:expat)))) |
| 846 | 849 | ||
| 847 | (define-public libbacktrace | 850 | (define-public libbacktrace |
| 848 | ;; There are no releases nor tags. | 851 | ;; There are no releases nor tags. |
