system: hurd: Add net-base and inetutils, and /etc/{services,protocols}.

This fixes

    In procedure getaddrinfo: Servname not supported for ai_socktype

* gnu/system/hurd.scm (%base-packages/hurd): Add net-base, inetutils.
(cross-hurd-image): Add /etc/{services,protocols} from net-base.
This commit is contained in:
Jan (janneke) Nieuwenhuizen 2020-04-08 17:39:30 +02:00 committed by Ludovic Courtès
parent c621269404
commit db047a482c
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -21,6 +21,7 @@ (define-module (gnu system hurd)
#:use-module (guix profiles)
#:use-module (guix utils)
#:use-module (gnu bootloader grub)
#:use-module (gnu packages admin)
#:use-module (gnu packages base)
#:use-module (gnu packages bash)
#:use-module (gnu packages cross-base)
@ -48,7 +49,8 @@ (define-gexp-compiler (compile-manifest (manifest
#:target target))
(define %base-packages/hurd
(list hurd bash coreutils file findutils grep sed guile-3.0))
(list hurd bash coreutils file findutils grep sed guile-3.0
net-base inetutils))
(define* (cross-hurd-image #:key (hurd hurd) (gnumach gnumach))
"Return a cross-built GNU/Hurd image."
@ -158,7 +160,14 @@ (define hurd-directives
(file "/etc/hostname" "guixygnu")
(file "/etc/resolv.conf"
"nameserver 10.0.2.3\n")
("/etc/services" -> ,(file-append (with-parameters ((%current-target-system
"i586-pc-gnu"))
net-base)
"/etc/services"))
("/etc/protocols" -> ,(file-append (with-parameters ((%current-target-system
"i586-pc-gnu"))
net-base)
"/etc/protocols"))
("/etc/motd" -> ,(file-append (with-parameters ((%current-target-system
"i586-pc-gnu"))
hurd)