;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2023 Brian Cully ;;; ;;; 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 (tests services pam-mount) #:use-module (gnu services pam-mount) #:use-module (gnu system pam) #:use-module (gnu services) #:use-module (gnu services configuration) #:use-module (guix derivations) #:use-module (guix gexp) #:use-module (guix grafts) #:use-module (guix store) #:use-module (guix tests) #:use-module (ice-9 match) #:use-module (srfi srfi-1) #:use-module (srfi srfi-64)) (define pam-mount-volume-fields (@@ (gnu services pam-mount) pam-mount-volume-fields)) (define field-name->tag (@@ (gnu services pam-mount) field-name->tag)) (define pam-mount-volume->sxml (@@ (gnu services pam-mount) pam-mount-volume->sxml)) (test-begin "services-pam-mount") (test-group "field-name->tag" (let ((field-map '((user-name user) (user-id uid) (primary-group pgrp) (group-id gid) (secondary-group sgrp) (file-system-type fstype) (no-mount-as-root? noroot) (server server) (file-name path) (mount-point mountpoint) (options options) (ssh? ssh) (cipher cipher) (file-system-key-cipher fskeycipher) (file-system-key-hash fskeyhash) (file-system-key-file-name fskeypath)))) (test-equal "all fields accounted for" (map car field-map) (map configuration-field-name pam-mount-volume-fields)) (for-each (match-lambda ((field-name tag-name) (test-eq (format #f "~a -> ~a" field-name tag-name) (field-name->tag field-name) tag-name))) field-map))) (let ((tmpfs-volume (pam-mount-volume (secondary-group "users") (file-system-type "tmpfs") (mount-point "/run/user/%(USERUID)") (options "someoptions")))) (test-equal "tmpfs" '(volume (@ (sgrp "users") (fstype "tmpfs") (mountpoint "/run/user/%(USERUID)") (options "someoptions"))) (pam-mount-volume->sxml tmpfs-volume))) (test-end "services-pam-mount") 7579ef0d916ecf23fe832c9d17802f'>gnu: Replace hard-coded "CC=gcc" with CC-FOR-TARGET calls....* gnu/packages/admin.scm (cbatticon)[arguments]<#:make-flags>: Use CC-FOR-TARGET. * gnu/packages/assembly.scm (dev86)[arguments]<#:make-flags>: Likewise. * gnu/packages/cdrom.scm (cd-discid)[arguments]<#:make-flags>: Likewise. * gnu/packages/crypto.scm (signify, keyutils, ssss, libscrypt, enchive) [arguments]<#:make-flags>: Likewise. * gnu/packages/emacs-xyz.scm (emacs-emacsql, emacs-telega)[arguments] <#:phases>: Likewise. * gnu/packages/gnupg.scm (pgpdump)[arguments]<#:make-flags>: Likewise. * gnu/packages/image-viewers.scm (feh, imv)[arguments]<#:make-flags>: Likewise. * gnu/packages/image.scm (libjxr, giflib, freeimage)[arguments] <#:make-flags>: Likewise. * gnu/packages/irc.scm (ii, sic)[arguments]<#:make-flags>: Likewise. * gnu/packages/lua.scm (make-lua-expat, make-lua-ossl, make-lua-sec) (make-lua-cqueues, make-lua-lgi, lua-resty-signal)[arguments] <#:make-flags>: Likewise. * gnu/packages/networking.scm (httping, pixiewps, sslh, nethogs, spiped) (can-utils, hcxtools, batctl)[arguments]<#:make-flags>: Likewise. * gnu/packages/pdf.scm (fbida)[arguments]<#:make-flags>: Likewise. * gnu/packages/ssh.scm (endlessh)[arguments]<#:make-flags>: Likewise. * gnu/packages/toys.scm (nyancat)[arguments]<#:make-flags>: Likewise. * gnu/packages/upnp.scm (miniupnpc)[arguments]<#:make-flags>: Likewise. * gnu/packages/xdisorg.scm (bemenu, xbanish, sxhkd, xcape, xssproxy) (xrandr-invert-colors, hsetroot, xsettingsd)[arguments]<#:make-flags>: Likewise. Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr> Maxime Devos 2021-04-22gnu: libupnp: Update to 1.14.6....* gnu/packages/upnp.scm (libupnp): Update to 1.14.6. Tobias Geerinckx-Rice 2021-04-07gnu: libupnp: Update to 1.14.5 [fixes CVE-2021-28302]....* gnu/packages/upnp.scm (libupnp): Update to 1.14.5. Tobias Geerinckx-Rice 2021-03-30gnu: libupnp: Update to 1.14.4....* gnu/packages/upnp.scm (libupnp): Update to 1.14.4. Tobias Geerinckx-Rice