aboutsummaryrefslogtreecommitdiff
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2013, 2014, 2022 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2016, 2020, 2022, 2023 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2020 Marius Bakke <marius@gnu.org>
;;; Copyright © 2022 Denis Carikli <GNUtoo@cyberdimension.org>
;;; Copyright © 2023 Simon Tournier <zimon.toutoune@gmail.com>
;;; Copyright © 2024 Janneke Nieuwenhuizen <janneke@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 valgrind)
  #:use-module (srfi srfi-1)
  #:use-module (guix build-system gnu)
  #:use-module (guix download)
  #:use-module (guix gexp)
  #:use-module (guix licenses)
  #:use-module (guix packages)
  #:use-module (guix utils)
  #:use-module (gnu packages)
  #:use-module (gnu packages base)
  #:use-module (gnu packages gdb)
  #:use-module (gnu packages perl))

(define-public valgrind
  (package
    (name "valgrind")
    (version "3.22.0")
    (source (origin
              (method url-fetch)
              (uri (list (string-append "https://sourceware.org/pub/valgrind"
                                        "/valgrind-" version ".tar.bz2")
                         (string-append "ftp://sourceware.org/pub/valgrind"
                                        "/valgrind-" version ".tar.bz2")))
              (sha256
               (base32
                "0k1ddnzxfpbng2sp5r31jjxsmp35g977rx6a8jcp4prcvmddn4f8"))))
    (build-system gnu-build-system)
    (outputs '("doc"                              ;16 MB
               "out"))
    (arguments
     `(,@(if (string-prefix? "powerpc" (or (%current-target-system)
                                           (%current-system)))
           `(#:make-flags '("CFLAGS+=-maltivec"))
           '())
       #:phases
       (modify-phases %standard-phases
         (add-after 'install 'patch-suppression-files
           (lambda* (#:key outputs #:allow-other-keys)
             ;; Don't assume the FHS.
             (let* ((out (assoc-ref outputs "out"))
                    (dir (string-append out "/lib/valgrind")))
               (substitute* (find-files dir "\\.supp$")
                 (("obj:/lib") "obj:*/lib")
                 (("obj:/usr/X11R6/lib") "obj:*/lib")
                 (("obj:/usr/lib") "obj:*/lib")))))
         (add-after 'install 'install-doc
           (lambda* (#:key outputs #:allow-other-keys)
             (let ((orig (format #f "~a/share/doc" (assoc-ref outputs "out")))
                   (dest (format #f "~a/share" (assoc-ref outputs "doc"))))
               (mkdir-p dest)
               (rename-file orig dest)))))))
    (native-inputs
     (list perl))
    (home-page "https://www.valgrind.org/")
    (synopsis "Debugging and profiling tool suite")
    (description
     "Valgrind is an instrumentation framework for building dynamic analysis
tools.  There are Valgrind tools that can automatically detect many memory
management and threading bugs, and profile your programs in detail.  You can
also use Valgrind to build new tools.")
    ;; https://valgrind.org/info/platforms.html
    (supported-systems (fold delete %supported-systems
                             '("i586-gnu" "x86_64-gnu"
                               "armhf-linux" "riscv64-linux")))
    (license gpl2+)

    ;; Hide this variant so end users get the "interactive" Valgrind below.
    (properties '((hidden? . #t)))))

(define-public valgrind/interactive
  (package/inherit
   valgrind
   (inputs
    ;; GDB is needed to provide a sane default for `--db-command'.
    (list gdb `(,(canonical-package (libc-for-target)) "debug")))
   (properties '())))
2. Efraim Flashner 2020-05-21gnu: font-abattis-cantarell: Update to 0.201....* gnu/packages/fonts.scm (font-abattis-cantarell): Update to 0.201. [native-inputs]: Remove appstream-glib. Tobias Geerinckx-Rice 2020-05-16gnu: Add font-api-mj-mincho....* gnu/packages/fonts.scm (font-api-mj-mincho): New variable. Julien Lepiller 2020-05-13gnu: font-gnu-freefont: Rename the ‘woff’ subdirectory....* gnu/packages/fonts.scm (font-gnu-freefont)[arguments]: Install WOFFs into ‘share/fonts/webfonts’. Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr> Michael Rohleder 2020-05-13gnu: font-gnu-freefont: Revert fonts' subdirectory names....* gnu/packages/fonts.scm (font-gnu-freefont)[arguments]<#:phases>: Change ‘share/fonts’ subdirectories from ‘ttf’ and ‘otf’ back to ‘truetype’ and ‘opentype’, respectively. Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr> Raghav Gururajan 2020-05-13mailmap: Update entries for Nikita....* .mailmap: change email and name for Nikita. * Makefile.am, doc/guix.texi, etc/completion/fish/guix.fish, gnu/packages/accessibility.scm, gnu/packages/admin.scm, gnu/packages/audio.scm, gnu/packages/autotools.scm, gnu/packages/cdrom.scm, gnu/packages/check.scm, gnu/packages/cinnamon.scm, gnu/packages/compression.scm, gnu/packages/crypto.scm, gnu/packages/databases.scm, gnu/packages/django.scm, gnu/packages/dns.scm, gnu/packages/elixir.scm, gnu/packages/emacs-xyz.scm, gnu/packages/emacs.scm, gnu/packages/enlightenment.scm, gnu/packages/erlang.scm, gnu/packages/fonts.scm, gnu/packages/fontutils.scm, gnu/packages/forth.scm, gnu/packages/fvwm.scm, gnu/packages/games.scm, gnu/packages/gl.scm, gnu/packages/gnome.scm, gnu/packages/gnunet.scm, gnu/packages/gnupg.scm, gnu/packages/gtk.scm, gnu/packages/guile-wm.scm, gnu/packages/guile-xyz.scm, gnu/packages/haskell-apps.scm, gnu/packages/haskell-check.scm, gnu/packages/haskell-crypto.scm, gnu/packages/haskell-xyz.scm, gnu/packages/haskell.scm, gnu/packages/image-viewers.scm, gnu/packages/image.scm, gnu/packages/irc.scm, gnu/packages/language.scm, gnu/packages/libcanberra.scm, gnu/packages/linux.scm, gnu/packages/lisp-xyz.scm, gnu/packages/lisp.scm, gnu/packages/lolcode.scm, gnu/packages/lxde.scm, gnu/packages/lxqt.scm, gnu/packages/mail.scm, gnu/packages/markup.scm, gnu/packages/mate.scm, gnu/packages/maths.scm, gnu/packages/mc.scm, gnu/packages/messaging.scm, gnu/packages/music.scm, gnu/packages/ncurses.scm, gnu/packages/networking.scm, gnu/packages/nickle.scm, gnu/packages/openbox.scm, gnu/packages/pdf.scm, gnu/packages/perl-check.scm, gnu/packages/perl.scm, gnu/packages/python-compression.scm, gnu/packages/python-crypto.scm, gnu/packages/python-web.scm, gnu/packages/python-xyz.scm, gnu/packages/python.scm, gnu/packages/qt.scm, gnu/packages/ruby.scm, gnu/packages/rust.scm, gnu/packages/scheme.scm, gnu/packages/serialization.scm, gnu/packages/shells.scm, gnu/packages/ssh.scm, gnu/packages/suckless.scm, gnu/packages/tbb.scm, gnu/packages/telephony.scm, gnu/packages/text-editors.scm, gnu/packages/textutils.scm, gnu/packages/time.scm, gnu/packages/tls.scm, gnu/packages/tor.scm, gnu/packages/version-control.scm, gnu/packages/video.scm, gnu/packages/vim.scm, gnu/packages/web.scm, gnu/packages/wm.scm, gnu/packages/xdisorg.scm, gnu/packages/xfce.scm, gnu/packages/xml.scm, gnu/packages/xorg.scm, gnu/services/certbot.scm, gnu/services/desktop.scm, gnu/services/version-control.scm, gnu/services/web.scm, guix/import/hackage.scm, guix/licenses.scm: Likewise. Signed-off-by: Efraim Flashner <efraim@flashner.co.il> nikita 2020-04-24gnu: font-gnu-freefont: Build with an older version of FontForge....Fixes <https://bugs.gnu.org/40819>. Reported by Jack Hill <jackhill@jackhill.us>. * gnu/packages/fontutils.scm (fontforge-20190801): New public variable. * gnu/packages/fonts.scm (font-gnu-freefont)[native-inputs]: Change from inherited FontForge variant to FONTFORGE-20190801. Marius Bakke 2020-04-23gnu: GNU FreeFont: Add a deprecated alias for "font-gnu-freefont-ttf"....This is a followup to commit 5483a2d0a913fe533744699e9ef5757c6e3f6983. * gnu/packages/fonts.scm (font-gnu-freefont-ttf): New variable. Leo Famulari 2020-04-22gnu: font-gnu-freefont: Add otf and woff font types....* gnu/packages/fonts.scm (font-gnu-freefont): Add otf and woff font types. * gnu/packages/genealogy.scm (gramps)[inputs]: Replace font-gnu-freefont-tff with font-gnu-freefont. * doc/guix.texi: Adjust a reference to the package. Signed-off-by: Leo Famulari <leo@famulari.name> Raghav Gururajan 2020-04-22gnu: Add font-meera-inimai....* gnu/packages/fonts.scm (font-meera-inimai): New variable. Arun Isaac 2020-04-02gnu: Add font-iosevka-term....* gnu/packages/fonts.scm (font-iosevka-term): New variable. Signed-off-by: Marius Bakke <mbakke@fastmail.com> John Soo 2020-04-02gnu: Add font-iosevka-term-slab....* gnu/packages/fonts.scm (font-iosevka-term-slab): New variable. Signed-off-by: Marius Bakke <mbakke@fastmail.com> John Soo 2020-04-01gnu: font-gnu-unifont: Update to 13.0.01....* ngu/packages/fonts.scm (font-gnu-unifont): Update to 13.0.01. [home-page]: Follow redirect. Efraim Flashner 2020-03-31gnu: font-rachana: Don't use unstable tarball....* gnu/packages/fonts.scm (font-rachana)[source]: Use GIT-FETCH and GIT-FILE-NAME. Tobias Geerinckx-Rice 2020-03-31gnu: font-rachana: Update to 7.0.3....* gnu/packages/fonts.scm (font-rachana): Update to 7.0.3. Tobias Geerinckx-Rice 2020-03-29gnu: font-jetbrains-mono: Update to 1.0.3....* gnu/packages/fonts.scm (font-jetbrains-mono): update to 1.0.3 Signed-off-by: Marius Bakke <mbakke@fastmail.com> Michael Rohleder 2020-03-28Update email address and Savannah handle for Amin Bandali....* .mailmap, gnu/local.mk, gnu/packages/emacs-xyz.scm, gnu/packages/emacs.scm, gnu/packages/fonts.scm, gnu/packages/fpga.scm, gnu/packages/lean.scm, gnu/packages/maths.scm, gnu/packages/pulseaudio.scm: Update my email address. * build-aux/git-authenticate.scm: Update my Savannah handle. Amin Bandali 2020-03-10gnu: font-dosis: Use archive.org'd URIs....* gnu/packages/fonts.scm (font-dosis)[source, home-page]: Use snapshots. Tobias Geerinckx-Rice 2020-03-08gnu: Add font-opendyslexic....* gnu/packages/fonts.scm (font-opendyslexic): New variable. (font-open-dyslexic): Mark as deprecated package. Efraim Flashner 2020-02-25gnu: font-fantasque-sans: Update to 1.8.0....* gnu/packages/fonts.scm (font-fantasque-sans): Update to 1.8.0. [native-inputs]: Remove ttf2eot. [arguments]: Rename the ‘xrange->range’ phase to ‘support-python@3’. Patch another Python twoism. Tobias Geerinckx-Rice 2020-02-23gnu: font-google-material-design-icons: Use HTTPS home page....* gnu/packages/fonts.scm (font-google-material-design-icons)[home-page]: Use HTTPS. Tobias Geerinckx-Rice 2020-02-21gnu: Add font-vazir....* gnu/packages/fonts.scm (font-vazir): New variable. Amin Bandali 2020-02-10gnu: Add copyright line....Add missing copyright line for commit 200514cd8fe1797d7653386a7b1ed1106c61164e. Nicolas Goaziou 2020-02-10gnu: Add font-jetbrains-mono....* gnu/packages/fonts.scm (font-jetbrains-mono): New variable. Damien Cassou 2020-01-23gnu: font-adobe-source-serif-pro: Don't use unstable tarball....* gnu/packages/fonts.scm (font-adobe-source-serif-pro)[source]: Use GIT-FETCH and GIT-FILE-NAME. Tobias Geerinckx-Rice 2020-01-23gnu: font-adobe-source-sans-pro: Don't use unstable tarball....* gnu/packages/fonts.scm (font-adobe-source-sans-pro)[source]: Use GIT-FETCH and GIT-FILE-NAME. Tobias Geerinckx-Rice 2020-01-23gnu: font-adobe-source-code-pro: Don't use unstable tarball....* gnu/packages/fonts.scm (font-adobe-source-code-pro)[source]: Use GIT-FETCH and GIT-FILE-NAME. Tobias Geerinckx-Rice 2020-01-22gnu: font-public-sans: Update to 1.008....* gnu/packages/fonts.scm (font-public-sans): Update to 1.008. Tobias Geerinckx-Rice 2020-01-19gnu: font-wqy-zenhei: Use HTTP home page....* gnu/packages/fonts.scm (font-wqy-zenhei)[home-page]: Use HTTP. Tobias Geerinckx-Rice 2020-01-10gnu: font-iosevka-slab: Update source hash....* gnu/packages/fonts.scm (font-iosevka-slab)[source]: Update sha256. Tobias Geerinckx-Rice 2020-01-09gnu: font-iosevka: Update to 2.3.3....* gnu/packages/fonts.scm (font-iosevka): Update to 2.3.3. Tobias Geerinckx-Rice 2020-01-09gnu: font-comic-neue: Add a note about versions....* gnu/packages/fonts.scm (font-comic-neue): Add a comment about the ‘v2.4’ tag. Tobias Geerinckx-Rice 2020-01-09gnu: font-inconsolata: Use HTTPS home page....* gnu/packages/fonts.scm (font-inconsolata)[home-page]: Use HTTPS. Tobias Geerinckx-Rice 2020-01-09gnu: font-inconsolata: Update to 3.000....* gnu/packages/fonts.scm (font-inconsolata): Update to 3.000. [source]: Fetch from the author's new repository. Tobias Geerinckx-Rice 2020-01-09gnu: font-ibm-plex: Update to 4.0.2....* gnu/packages/fonts.scm (font-ibm-plex): Update to 4.0.2. Tobias Geerinckx-Rice 2020-01-09gnu: font-gnu-unifont: Update to 12.1.04....* gnu/packages/fonts.scm (font-gnu-unifont): Update to 12.1.04. Tobias Geerinckx-Rice 2020-01-09gnu: font-terminus: Update to 4.48....* gnu/packages/fonts.scm (font-terminus): Update to 4.48. Tobias Geerinckx-Rice 2020-01-09gnu: font-lato: Update version number to 2.015....Both the README and the Web site identify this as version 2.015. * gnu/packages/fonts.scm (font-lato)[version]: Correct. Tobias Geerinckx-Rice