;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2016-2017, 2024 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-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) =eabed5e53d16cd37404614fd299656823d09f9e7'>gnu: sssd: Import ensure-no-mtimes-pre-1980....* gnu/packages/sssd.scm (sssd)[arguments]: Add python-build-system to #:modules and #:imported modules instead of using @@ reference. Change-Id: Id5217e4872a62323691b8976030a1768a6885942 Lars-Dominik Braun 2024-08-31gnu: Remove unneeded libxml2 from native-inputs. (libxslt)...XML_CATALOG_FILES is already set within libxslt so it's unnecessary to include libxml2 for the same effect. * gnu/packages/freedesktop.scm (wayland): Remove obsolete comment. (farstream, elogind, packagekit, accountsservice, plymouth)[native-inputs]: Remove libxml2. * gnu/packages/benchmark.scm (sysbench)[native-inputs]: Ditto. * gnu/packages/cluster.scm (drbd-utils)[native-inputs]: Ditto. * gnu/packages/glib.scm (dbus)[native-inputs]: Ditto. * gnu/packages/gnome.scm (gnome-keyring, glade3, dconf, libsecret, colord) (upower, gnome-settings-daemon)[native-inputs]: Ditto. * gnu/packages/linux.scm (eudev)[native-inputs]: Ditto. * gnu/packages/networking.scm (iputils)[native-inputs]: Ditto. * gnu/packages/ocr.scm (tesseract-ocr)[native-inputs]: Ditto. * gnu/packages/polkit.scm (polkit)[native-inputs]: Ditto. * gnu/packages/samba.scm (samba/pinned)[native-inputs]: Ditto. * gnu/packages/sssd.scm (adcli)[native-inputs]: Ditto. * gnu/packages/terminals.scm (kmscon)[native-inputs]: Ditto. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Change-Id: Ica3fb5a8e23ad928c53ae508c02777d78c635af0 Bruno Victal 2024-08-31gnu: sssd: Drop xmllint workaround....* gnu/packages/sssd.scm (sssd)[arguments]<#:make-flags>: Drop XMLLINT_FLAGS. [native-inputs]: Add docbook-xml-4.4. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Bruno Victal