;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2015 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-scripts) #:use-module (guix scripts) #:use-module ((guix scripts build) #:select (%standard-build-options)) #:use-module (srfi srfi-64)) ;; Test the (guix scripts) module. (define-syntax-rule (with-environment-variable variable value body ...) "Run BODY with VARIABLE set to VALUE." (let ((orig (getenv variable))) (dynamic-wind (lambda () (setenv variable value)) (lambda () body ...) (lambda () (if orig (setenv variable orig) (unsetenv variable)))))) (test-begin "scripts") (test-equal "parse-command-line" '((argument . "bar") (argument . "foo") (cores . 10) ;takes precedence (substitutes? . #f) (keep-failed? . #t) (max-jobs . 77) (cores . 42)) (with-environment-variable "GUIX_BUILD_OPTIONS" "-c 42 -M 77" (parse-command-line '("--keep-failed" "--no-substitutes" "--cores=10" "foo" "bar") %standard-build-options (list '())))) (test-equal "parse-command-line and --no options" '((argument . "foo") (substitutes? . #f)) ;takes precedence (with-environment-variable "GUIX_BUILD_OPTIONS" "--no-substitutes" (parse-command-line '("foo") %standard-build-options (list '((substitutes? . #t)))))) (test-end "scripts") ;;; Local Variables: ;;; eval: (put 'with-environment-variable 'scheme-indent-function 2) ;;; End: 807a127b424419fd4f8c5eb13579a0e46b7d'>elf.scm
AgeCommit message (Expand)Author
2020-02-05gnu: elfutils: Update synopsis and description...* gnu/packages/elf.scm (elfutils): Update summaries. [synopsis]: Updated. [description]: Updated. Signed-off-by: Marius Bakke <mbakke@fastmail.com> Mark Wielaard
2019-11-11gnu: patchelf: Update to 0.10....* gnu/packages/elf.scm (patchelf): Update to 0.10. [source]: Remove patches. [arguments]: Remove patch/rework-for-arm phase. Add phase to modify tests for our modified GCC package. [native-inputs]: Add gcc:lib. * gnu/packages/patches/patchelf-page-size.patch, * gnu/packages/patches/patchelf-rework-for-arm.patch: Remove files. * gnu/local.mk (dist_patch_DATA): Remove them. Efraim Flashner
2019-05-26gnu: libelf: Use archived home page and mirrored source....* gnu/packages/elf.scm (libelf)[source]: Use mirror URLs. [home-page]: Use archived home page. Tobias Geerinckx-Rice
2019-05-24gnu: Move Sphinx and friends to (gnu packages sphinx)....* gnu/packages/python-xyz.scm (python-sphinxcontrib-websupport, python2-sphinxcontrib-websupport, python-sphinx, python2-sphinx, python-sphinx-gallery, python2-sphinx-gallery, python-sphinx-rtd-theme, python2-sphinx-rtd-theme, python-guzzle-sphinx-theme, python2-guzzle-sphinx-theme, python-sphinxcontrib-newsfeed, python-sphinxcontrib-programoutput, python2-sphinxcontrib-programoutput, python-sphinx-repoze-interface, python2-sphinx-repoze-interface, python-sphinx-cloud-sptheme, python2-sphinx-cloud-sptheme, python-sphinx-alabaster-theme, python2-sphinx-alabaster-theme, python-sphinx-me, python-sphinxcontrib-svg2pdfconverter): Move to ... (gnu): * gnu/packages/sphinx.scm: ... here. New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Adjust accordingly. * gnu/packages/admin.scm, gnu/packages/bioinformatics.scm, gnu/packages/calendar.scm, gnu/packages/cluster.scm, gnu/packages/databases.scm, gnu/packages/dav.scm, gnu/packages/disk.scm, gnu/packages/django.scm, gnu/packages/elf.scm, gnu/packages/emacs-xyz.scm, gnu/packages/emulators.scm, gnu/packages/finance.scm, gnu/packages/image.scm, gnu/packages/libffi.scm, gnu/packages/mail.scm, gnu/packages/mpd.scm, gnu/packages/openstack.scm, gnu/packages/pdf.scm, gnu/packages/python-web.scm, gnu/packages/search.scm, gnu/packages/statistics.scm, gnu/packages/storage.scm, gnu/packages/sync.scm, gnu/packages/terminals.scm, gnu/packages/tls.scm, gnu/packages/web.scm: Adjust module imports. Marius Bakke