aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/serf-python3.patch
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2023-10-09 22:24:56 +0200
committerRicardo Wurmus <rekado@elephly.net>2023-10-09 22:44:47 +0200
commit591ffaede3787e19b95a814134622c30f97607f9 (patch)
treec59be4f4395b64556a58004b63caf5ec2b519d85 /gnu/packages/patches/serf-python3.patch
parent7937c8827b8d23347a3159b4696335bd19fc17aa (diff)
downloadguix-591ffaede3787e19b95a814134622c30f97607f9.tar.gz
guix-591ffaede3787e19b95a814134622c30f97607f9.zip
gnu: r-abn: Update to 3.0.1.
* gnu/packages/bioconductor.scm (r-abn): Update to 3.0.1.
Diffstat (limited to 'gnu/packages/patches/serf-python3.patch')
0 files changed, 0 insertions, 0 deletions
n live))) (current-services)))) marionette))) (test-assert "Probe RPC daemon" (marionette-eval '(zero? (system* "rpcinfo" "-p")) marionette)) (test-end)))) (gexp->derivation name test)) (define %test-nfs (system-test (name "nfs") (description "Test some things related to NFS.") (value (run-nfs-test name "/var/run/rpcbind.sock")))) (define %nfs-os (let ((os (simple-operating-system (simple-service 'create-target-directory activation-service-type #~(begin (mkdir "/remote") (chmod "/remote" #o777) #t)) (service dhcp-client-service-type) (service nfs-service-type (nfs-configuration (debug '(nfs nfsd mountd)) (exports '(("/export" ;; crossmnt = This is the pseudo root. ;; fsid=0 = root file system of the export "*(ro,insecure,no_subtree_check,crossmnt,fsid=0)")))))))) (operating-system (inherit os) (host-name "nfs-server") ;; We need to use a tmpfs here, because the test system's root file ;; system cannot be re-exported via NFS. (file-systems (cons (file-system (device "none") (mount-point "/export") (type "tmpfs") (create-mount-point? #t)) %base-file-systems)) (services ;; Enable debugging output. (modify-services (operating-system-user-services os) (syslog-service-type config => (syslog-configuration (inherit config) (config-file (plain-file "syslog.conf" "*.* /dev/console\n"))))))))) (define (run-nfs-server-test) "Run a test of an OS running a service of NFS-SERVICE-TYPE." (define os (marionette-operating-system %nfs-os #:requirements '(nscd) #:imported-modules '((gnu services herd) (guix combinators)))) (define test (with-imported-modules '((gnu build marionette)) #~(begin (use-modules (gnu build marionette) (srfi srfi-64)) (define marionette (make-marionette (list #$(virtual-machine os)))) (test-runner-current (system-test-runner #$output)) (test-begin "nfs-daemon") (marionette-eval '(begin (current-output-port (open-file "/dev/console" "w0")) (chmod "/export" #o777) (with-output-to-file "/export/hello" (lambda () (display "hello world"))) (chmod "/export/hello" #o777)) marionette) (test-assert "nscd PID file is created" (marionette-eval '(begin (use-modules (gnu services herd)) (start-service 'nscd)) marionette)) (test-assert "nscd is listening on its socket" (wait-for-unix-socket "/var/run/nscd/socket" marionette)) (test-assert "network is up" (marionette-eval '(begin (use-modules (gnu services herd)) (start-service 'networking)) marionette)) ;; Wait for the NFS services to be up and running. (test-assert "nfs services are running" (and (marionette-eval '(begin (use-modules (gnu services herd)) (start-service 'nfs)) marionette) (wait-for-file "/var/run/rpc.statd.pid" marionette))) (test-assert "nfs share is advertised" (marionette-eval '(zero? (system* (string-append #$nfs-utils "/sbin/showmount") "-e" "nfs-server")) marionette)) (test-assert "nfs share mounted" (marionette-eval '(begin (and (zero? (system* (string-append #$nfs-utils "/sbin/mount.nfs4") "nfs-server:/" "/remote" "-v")) (file-exists? "/remote/hello"))) marionette)) (test-end)))) (gexp->derivation "nfs-server-test" test)) (define %test-nfs-server (system-test (name "nfs-server") (description "Test that an NFS server can be started and exported directories can be mounted.") (value (run-nfs-server-test)))) (define (run-nfs-full-test) "Run a test of an OS mounting its root file system via NFS." (define nfs-root-server-os (let ((os (simple-operating-system))) (marionette-operating-system (operating-system (inherit os) (services (cons* (service static-networking-service-type (list (static-networking (addresses (list (network-address (device "ens5") (value "10.0.2.15/24"))))))) (simple-service 'export activation-service-type #~(begin (mkdir-p "/export") (chmod "/export" #o777))) (service nfs-service-type (nfs-configuration (nfsd-port 2049) (nfs-versions '("4.2")) (exports '(("/export" "*(rw,insecure,no_subtree_check,\ crossmnt,fsid=root,no_root_squash,insecure,async)"))))) (modify-services (operating-system-user-services os) (syslog-service-type config => (syslog-configuration (inherit config) (config-file (plain-file "syslog.conf" "*.* /dev/console\n")))))))) #:requirements '(nscd) #:imported-modules '((gnu services herd) (guix combinators))))) (define nfs-root-client-os (marionette-operating-system (simple-operating-system (service static-networking-service-type (list (static-networking (addresses (list (network-address (device "ens5") (value "10.0.2.16/24"))))))) (service nfs-service-type (nfs-configuration (nfsd-port 2049) (nfs-versions '("4.2")))) (simple-service 'export activation-service-type #~(begin (mkdir-p "/export") (chmod "/export" #o777)))) #:requirements '(nscd) #:imported-modules '((gnu services herd) (guix combinators)))) (define test (with-imported-modules '((gnu build marionette)) #~(begin (use-modules (gnu build marionette) (srfi srfi-64)) (test-runner-current (system-test-runner #$output)) (test-begin "start-nfs-boot-test") ;;; Start up NFS server host. (mkdir "/tmp/server") (define server-marionette (make-marionette (cons* #$(virtual-machine (operating-system nfs-root-server-os) (volatile? #f)) '("-device" "e1000,netdev=n1,mac=52:54:00:12:34:56" "-netdev" "socket,id=n1,listen=:1234")) #:socket-directory "/tmp/server")) ;;; Wait for the NFS services to be up and running. (test-assert "nfs services are running" (wait-for-file "/var/run/rpc.statd.pid" server-marionette)) (test-assert "NFS port is ready" (wait-for-tcp-port 2049 server-marionette)) ;;; Start up NFS client host. (mkdir "/tmp/client") (define client-marionette (make-marionette (cons* #$(virtual-machine (operating-system nfs-root-client-os) (volatile? #f)) '("-device" "e1000,netdev=n2,mac=52:54:00:12:34:57" "-netdev" "socket,id=n2,connect=127.0.0.1:1234")) #:socket-directory "/tmp/client")) (test-assert "NFS port is ready" (wait-for-tcp-port 2049 client-marionette)) (marionette-eval '(begin (use-modules (rnrs io ports)) (current-output-port (open-file "/dev/console" "w0")) (and (system* (string-append #$nfs-utils "/sbin/mount.nfs") "10.0.2.15:/export" "/export" "-v") (let ((content (call-with-input-file "/proc/mounts" get-string-all))) (call-with-output-file "/export/mounts" (lambda (port) (display content port)))))) client-marionette) ;;; Check whether NFS client host communicated with NFS server host. (test-assert "nfs client deposited file" (wait-for-file "/export/mounts" server-marionette)) (marionette-eval '(begin (current-output-port (open-file "/dev/console" "w0")) (call-with-input-file "/export/mounts" display)) server-marionette) (test-end)))) (gexp->derivation "nfs-full-test" test)) (define %test-nfs-full (system-test (name "nfs-full") (description "Test that an NFS server can be started and the exported directory can be used by another machine.") (value (run-nfs-full-test)))) New variable. Hartmut Goebel 2020-03-29gnu: Add flyer-composer....* gnu/packages/pdf.scm (flyer-composer): New variable. Hartmut Goebel 2020-03-14Merge branch 'master' into core-updatesMarius Bakke 2020-03-06Merge branch 'master' into stagingMarius Bakke 2020-03-05gnu: Poppler: Update to 0.86.1....* gnu/packages/pdf.scm (poppler): Update to 0.86.1. Marius Bakke 2020-03-04Merge branch 'master' into core-updatesMarius Bakke 2020-03-04gnu: Update pypi.python.org home pages & use HTTPS....* gnu/packages/check.scm (python-unittest2, python-pytest-localserver) (python-discover)[home-page]: Follow (HTTPS) redirections. * gnu/packages/fontutils.scm (python2-defcon)[home-page]: Likewise. * gnu/packages/glib.scm (python2-pygobject-2)[home-page]: Likewise. * gnu/packages/graph.scm (python-igraph)[home-page]: Likewise. * gnu/packages/graphviz.scm (xdot)[home-page]: Likewise. * gnu/packages/pdf.scm (python-poppler-qt5)[home-page]: Likewise. * gnu/packages/python-web.scm (python-zope-event, python-zope-testing) (python-zope-testrunner, python-zope-i18nmessageid, python-zope-schema) (python-zope-configuration, python-zope-proxy, python-zope-location) (python-zope-security))[home-page]: Likewise. * gnu/packages/python-xyz.scm (python-setuptools,python-six) (python2-dogtail, python2-enum, python-enum34, python-unidecode) (python-numpydoc, python-decorator, python-drmaa, python-pathlib2) (python-ly, python-msgpack, python-termcolor, python-colorama) (python-pluggy, python2-pathlib2, python-rfc3987)[home-page]: Likewise. Tobias Geerinckx-Rice 2020-03-04gnu: zathura-pdf-poppler: Update to 0.3.0....* gnu/packages/pdf.scm (zathura-pdf-poppler): Update to 0.3.0. Tobias Geerinckx-Rice 2020-03-04gnu: zathura: Update to 0.4.5....* gnu/packages/pdf.scm (zathura): Update to 0.4.5. Tobias Geerinckx-Rice 2020-03-04gnu: weasyprint: Update to 51....* gnu/packages/pdf.scm (weasyprint): Update to 51. Tobias Geerinckx-Rice 2020-03-04gnu: zathura-djvu: Update to 0.2.9....* gnu/packages/pdf.scm (zathura-djvu): Update to 0.2.9. Tobias Geerinckx-Rice