aboutsummaryrefslogtreecommitdiff
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2016-2017, 2024 Ludovic Courtès <ludo@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 (test-modules)
  #:use-module (guix modules)
  #:use-module ((guix build-system gnu) #:select (%default-gnu-imported-modules))
  #:use-module ((guix utils) #:select (call-with-temporary-directory))
  #:use-module (srfi srfi-1)
  #:use-module (srfi srfi-34)
  #:use-module (srfi srfi-64))

(test-begin "modules")

(test-assert "closure of (guix build gnu-build-system)"
  (lset= equal?
         (live-module-closure '((guix build gnu-build-system)))
         (source-module-closure '((guix build gnu-build-system)))
         %default-gnu-imported-modules
         (source-module-closure %default-gnu-imported-modules)
         (live-module-closure %default-gnu-imported-modules)))

(test-assert "closure of (gnu build install)"
  (lset= equal?
         (live-module-closure '((gnu build install)))
         (source-module-closure '((gnu build install)))))

(test-assert "closure of (gnu build image)"
  (lset= equal?
         (live-module-closure '((gnu build image)))
         (source-module-closure '((gnu build image)))))

(test-equal "&missing-dependency-error"
  '(something that does not exist)
  (call-with-temporary-directory
   (lambda (directory)
     (call-with-output-file (string-append directory "/foobar.scm")
       (lambda (port)
         (write '(define-module (foobar)
                   #:use-module (something that does not exist))
                port)))

     (call-with-output-file (string-append directory "/baz.scm")
       (lambda (port)
         (write '(define-module (baz)
                   #:use-module (foobar))
                port)))

     (guard (c ((missing-dependency-error? c)
                (missing-dependency-module c)))
       (source-module-closure '((baz)) (list directory)
                              #:select? (const #t))))))

(test-equal "file-name->module-name"
  '(guix foo)
  (file-name->module-name "guix/foo.scm"))

(test-equal "file-name->module-name, leading dot"
  '(guix foo)
  (file-name->module-name "./guix/foo.scm"))

(test-end)
d> 2021-03-23gnu: icecat: Update to 78.9.0-guix0-preview1 [security fixes]....Includes fixes for CVE-2021-23981, CVE-2021-23982, CVE-2021-23984, and CVE-2021-23987. * gnu/packages/gnuzilla.scm (%icecat-version, %icecat-build-id): Update. (icecat-source): Update upstream source hash. Mark H Weaver 2021-02-24gnu: icedove: Update to 78.8.0....* gnu/packages/gnuzilla.scm (icedove): Update to 78.8.0. Jonathan Brielmaier 2021-02-24gnu: icecat: Update to 78.8.0-guix0-preview1 [security fixes]....Includes fixes for CVE-2021-23968, CVE-2021-23969, CVE-2021-23973, and CVE-2021-23978. * gnu/packages/gnuzilla.scm (%icecat-version, %icecat-build-id): Update. (icecat-source): Update upstream source hash. Mark H Weaver 2021-02-07gnu: icedove: Update to 78.7.1....* gnu/packages/gnuzilla.scm (icedove): Update to 78.7.1. Jonathan Brielmaier 2021-02-01Merge branch 'staging'Leo Famulari 2021-01-27gnu: icedove: Update to 78.7.0 [fixes CVE-2020-15685]....* gnu/packages/gnuzilla.scm (%icedove-build-id, icedove): Update. Jonathan Brielmaier 2021-01-26gnu: icecat: Update to 78.7.0-guix0-preview1 [security fixes]....Includes fixes for CVE-2021-23953, CVE-2021-23954, CVE-2020-26976, CVE-2021-23960, and CVE-2021-23964. * gnu/packages/gnuzilla.scm (%icecat-version, %icecat-build-id): Update. (icecat-source): Update gnuzilla commit, base version, and hashes. * gnu/packages/patches/icecat-makeicecat.patch: Adapt to new version. Mark H Weaver 2021-01-25Merge branch 'master' into stagingLeo Famulari 2021-01-12gnu: icedove: Update to 78.6.1....* gnu/packages/gnuzilla.scm (icedove): Update to 78.6.1. Jonathan Brielmaier 2021-01-10Merge branch 'master' into stagingEfraim Flashner 2021-01-08gnu: icecat: Update to 78.6.1-guix0-preview1 [fixes CVE-2020-16044]....* gnu/packages/gnuzilla.scm (%icecat-version, %icecat-build-id): Update. (icecat-source): Update gnuzilla commit, base version, and hashes. * gnu/packages/patches/icecat-makeicecat.patch: Adapt to new version. Mark H Weaver 2020-12-21Merge branch 'master' into ungraftingMarius Bakke 2020-12-16gnu: icedove: Update to 78.6.0....* gnu/packages/gnuzilla.scm (icedove): Update to 78.6.0. Jonathan Brielmaier 2020-12-15gnu: icecat: Update to 78.6.0-guix0-preview1 [security fixes]....Includes fixes for CVE-2020-16042, CVE-2020-26971, CVE-2020-26973, CVE-2020-26974, CVE-2020-26978, CVE-2020-35111, CVE-2020-35112, and CVE-2020-35113. * gnu/packages/gnuzilla.scm (%icecat-version, %icecat-build-id): Update. (icecat-source): Update gnuzilla commit, base version, and hashes. * gnu/packages/patches/icecat-makeicecat.patch: Adapt to new version. Mark H Weaver 2020-12-14gnu: mozjs: Add 78....* gnu/packages/gnuzilla.scm (mozjs-78): New public variable. Marius Bakke 2020-12-08gnu: node: Update to 10.22.1....This follows up on 3eb34c66b42d1fa520a374e9b35a6ce7bd1e8987 which left an unbound "nghttp2-1.41" variable. * gnu/packages/node.scm (node): Update to 10.22.1. (node-10.22): Remove variable. * gnu/packages/gnuzilla.scm (icecat)[native-inputs]: Change from NODE-10.22 to NODE. (icedove)[native-inputs]: Likewise. Marius Bakke 2020-12-02gnu: icedove: Update to 78.5.1 [fixes CVE-2020-26970]....* gnu/packages/gnuzilla.scm (icedove): Update to 78.5.1. Jonathan Brielmaier 2020-11-22Merge branch 'master' into stagingMarius Bakke 2020-11-19gnu: icedove: Update to 78.5.0....* gnu/packages/gnuzilla.scm (icedove): Update to 78.5.0. Jonathan Brielmaier 2020-11-19Merge branch 'master' into stagingMarius Bakke 2020-11-17gnu: icecat: Update to 78.5.0-guix0-preview1 [security fixes]....Includes fixes for CVE-2020-15999, CVE-2020-16012, CVE-2020-26951, CVE-2020-26953, CVE-2020-26956, CVE-2020-26958, CVE-2020-26959, CVE-2020-26960, CVE-2020-26961, CVE-2020-26965, CVE-2020-26966, and CVE-2020-26968. * gnu/packages/gnuzilla.scm (%icecat-version, %icecat-build-id): Update. (icecat-source): Update gnuzilla commit, base version, and hashes. * gnu/packages/patches/icecat-makeicecat.patch: Adapt to new version. Mark H Weaver 2020-11-16gnu: icedove: Update to 78.4.3....* gnu/packages/gnuzilla.scm (icedove): Update to 78.4.3. Jonathan Brielmaier 2020-11-15Merge branch 'master' into stagingMarius Bakke 2020-11-11gnu: icecat: Update to 78.4.1-guix0-preview1 [fixes CVE-2020-26950]....* gnu/packages/gnuzilla.scm (%icecat-version, %icecat-build-id): Update. (icecat-source): Update gnuzilla commit, base version, and hashes. * gnu/packages/patches/icecat-makeicecat.patch: Adapt to new version. Mark H Weaver 2020-11-11Merge branch 'master' into stagingMarius Bakke 2020-11-10gnu: Add icedove-wayland....* gnu/packages/gnuzilla.scm (icedove/wayland): New variable. Signed-off-by: Marius Bakke <marius@gnu.org> Jonathan Brielmaier 2020-11-07Merge branch 'master' into staging... Conflicts: gnu/local.mk gnu/packages/gdb.scm gnu/packages/lisp-xyz.scm gnu/packages/web-browsers.scm Marius Bakke 2020-10-27gnu: icedove: Update to 78.4.0....* gnu/packages/gnuzilla.scm (icedove): Update to 78.4.0. Signed-off-by: Christopher Baines <mail@cbaines.net> Jonathan Brielmaier 2020-10-23gnu: icedove: Update to 78.3.3....* gnu/packages/gnuzilla.scm (icedove): Update to 78.3.3. Signed-off-by: Christopher Baines <mail@cbaines.net> Jonathan Brielmaier 2020-10-20gnu: icecat: Update to 78.4.0-guix0-preview1 [security fixes]....Includes fixes for CVE-2020-15683 and CVE-2020-15969. * gnu/packages/gnuzilla.scm (%icecat-version, %icecat-build-id): Update. (icecat-source): Update gnuzilla commit, base version, and hashes. * gnu/packages/patches/icecat-makeicecat.patch: Adapt to new version. Mark H Weaver 2020-10-19Merge branch 'master' into stagingMarius Bakke 2020-10-16gnu: gnuzilla: Use 'assume-valid-file-name' where appropriate....This avoids spurious 'local-file' warnings when running "make". * gnu/packages/gnuzilla.scm (icecat-source): Wrap 'search-patch' calls in 'assume-valid-file-name'. Ludovic Courtès 2020-10-14gnu: icedove: Update to 78.3.2....* gnu/packages/gnuzilla.scm (icedove): Update to 78.3.2. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Jonathan Brielmaier 2020-10-13gnu: nss, nss-certs: Update to 3.57....* gnu/packages/patches/nss-pkgconfig.patch: Delete file. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/certs.scm (nss-certs): Update to 3.57. * gnu/packages/nss.scm (nss): Likewise. [source](patches): Replace nss-pkgconfig.patch with nss-3.56-pkgconfig.patch. (nss-3.57): Remove variable. * gnu/packages/gnuzilla.scm (icedove)[inputs]: Change from NSS-3.57 to NSS. Marius Bakke 2020-10-03gnu: icecat: Update to 78.3.1-guix0-preview1....* gnu/packages/gnuzilla.scm (%icecat-version, %icecat-build-id): Update. (icecat-source): Update gnuzilla commit, base version, and hashes. * gnu/packages/patches/icecat-makeicecat.patch: Adapt to new version. Mark H Weaver