;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2018 Ludovic Courtès ;;; ;;; 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 . (define-module (test-debug-link) #:use-module (guix elf) #:use-module (guix build utils) #:use-module (guix build debug-link) #:use-module (guix gexp) #:use-module (guix store) #:use-module (guix tests) #:use-module (guix monads
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2020-08-16 03:27:12 +0200
committerTobias Geerinckx-Rice <me@tobias.gr>2020-08-16 03:49:05 +0200
commit9a299d4d9ee3e1ab3dc89aa89f25db7524a6f6bd (patch)
tree34b83cd31b1e1972058a37b756a51a1c6f5f68ea /gnu/installer
parentee3be810d6f5721dce037c5d71c823335f9a6abb (diff)
downloadguix-9a299d4d9ee3e1ab3dc89aa89f25db7524a6f6bd.tar.gz
guix-9a299d4d9ee3e1ab3dc89aa89f25db7524a6f6bd.zip
gnu: vala@0.48: Update to 0.48.7.
* gnu/packages/gnome.scm (vala-0.48): Update to 0.48.7.
Diffstat (limited to 'gnu/installer')
(invoke "strip" "--only-keep-debug" "exe.debug") (invoke "strip" "--strip-debug" "exe") (invoke "objcopy" "--add-gnu-debuglink=exe.debug" "exe") (set-debuglink-crc "exe" #$debug) (call-with-values (lambda () (elf-debuglink (call-with-input-file "exe" read-elf))) (lambda (file crc) (call-with-output-file #$output (lambda (port) (write (list file crc) port))))))))) (mlet* %store-monad ((drv (gexp->derivation "debuglink" exp)) (x (built-derivations (list drv)))) (call-with-input-file (derivation->output-path drv) (lambda (port) (return (match (read port) (("exe.debug" crc) (= crc (debuglink-crc32 (open-input-string "a")))) (x (pk 'fail x #f))))))))) (test-end "debug-link")