[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
24/36: system: gnu: Add %bootstrap-{gcc, binutils, glibc} for devel prof
From: |
guix-commits |
Subject: |
24/36: system: gnu: Add %bootstrap-{gcc, binutils, glibc} for devel profile. |
Date: |
Mon, 27 Apr 2020 06:19:50 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd-vm
in repository guix.
commit d52193647087af6de894c30dde0045753f05f5bf
Author: Jan (janneke) Nieuwenhuizen <address@hidden>
AuthorDate: Sun Apr 19 11:15:14 2020 +0200
system: gnu: Add %bootstrap-{gcc,binutils,glibc} for devel profile.
* gnu/system/hurd.scm (system-profile): Add them.
("/root/.gitconfig"): Add git configuration for GNU.
---
gnu/system/hurd.scm | 34 ++++++++++++++++++++++++++++++----
1 file changed, 30 insertions(+), 4 deletions(-)
diff --git a/gnu/system/hurd.scm b/gnu/system/hurd.scm
index b5f2140..bd06361 100644
--- a/gnu/system/hurd.scm
+++ b/gnu/system/hurd.scm
@@ -30,6 +30,7 @@
#:use-module (gnu packages admin)
#:use-module (gnu packages base)
#:use-module (gnu packages bash)
+ #:use-module (gnu packages bootstrap)
#:use-module (gnu packages commencement)
#:use-module (gnu packages compression)
#:use-module (gnu packages cross-base)
@@ -191,9 +192,23 @@ fi\n")))
(dependencies (map cross-built-entry
(manifest-entry-dependencies entry)))))
+ (define (cross-bootstrap thing)
+ (with-parameters ((%current-system "i586-gnu"))
+ thing))
+
+ (define (cross-bootstrap-entry entry)
+ (manifest-entry
+ (inherit entry)
+ (item (cross-bootstrap (manifest-entry-item entry)))))
+
(define system-profile
- (map-manifest-entries cross-built-entry
- (packages->manifest (operating-system-packages os))))
+ (concatenate-manifests
+ (list (map-manifest-entries cross-built-entry
+ (packages->manifest
(operating-system-packages os)))
+ (map-manifest-entries cross-bootstrap-entry
+ (packages->manifest (list %bootstrap-gcc
+ %bootstrap-binutils
+
%bootstrap-glibc))))))
(define grub.cfg
(let ((hurd (cross-built hurd))
@@ -253,6 +268,15 @@ sshd:x:2:2:sshd:/var/empty:/bin/no-sh
(with-parameters ((%current-target-system "i586-pc-gnu"))
(operating-system-activation-script os)))
+ (define root-.gitconfig
+ (plain-file "root-.gitconfig"
+ "\
+[url \"git+ssh://git.sv.gnu.org/srv/git/\"]
+ insteadof = gnu-ssh:
+[url \"git://git.savannah.gnu.org/\"]
+ insteadof = gnu:
+")) ;" help Emacs
+
(define hurd-directives
`((directory "/servers")
,@(map (lambda (server)
@@ -311,7 +335,8 @@ sshd:x:2:2:sshd:/var/empty:/bin/no-sh
("/bin/sh" -> ,(file-append (with-parameters ((%current-target-system
"i586-pc-gnu"))
bash)
- "/bin/sh"))))
+ "/bin/sh"))
+ ("/root/.gitconfig" -> ,root-.gitconfig)))
(qemu-image #:file-system-type "ext2"
#:file-system-options '("-o" "hurd")
@@ -323,7 +348,8 @@ sshd:x:2:2:sshd:/var/empty:/bin/no-sh
("group" ,group)
("shadow" ,shadow)
("shepherd.conf" ,shepherd.conf)
- ("boot-activation" ,boot-activation))
+ ("boot-activation" ,boot-activation)
+ ("root-.gitconfig" ,root-.gitconfig))
#:copy-inputs? #t
#:os system-profile
#:bootcfg-drv grub.cfg
- 28/36: services: Add hurd-file-systems-service-type., (continued)
- 28/36: services: Add hurd-file-systems-service-type., guix-commits, 2020/04/27
- 29/36: services: hurd: Move hurd-default-essential-services., guix-commits, 2020/04/27
- 32/36: system: hurd: Add hurd-grub-configuration-file., guix-commits, 2020/04/27
- 33/36: system: hurd: Add hurd-grub-minimal-bootloader., guix-commits, 2020/04/27
- 23/36: system: hurd: Create system profile for guix development., guix-commits, 2020/04/27
- 30/36: system: hurd: Export system variables., guix-commits, 2020/04/27
- 27/36: services: hurd: Move hurd-etc-sevcices., guix-commits, 2020/04/27
- 09/36: gnu: Add libtirpc/hurd., guix-commits, 2020/04/27
- 31/36: services: hurd: Use hurd-file-systems-service., guix-commits, 2020/04/27
- 35/36: system: vm: Add defaults for the Hurd., guix-commits, 2020/04/27
- 24/36: system: gnu: Add %bootstrap-{gcc, binutils, glibc} for devel profile.,
guix-commits <=
- 34/36: system: Add hurd-operating-system-directory-base-entries., guix-commits, 2020/04/27
- 36/36: DRAFT system: examples: Add bare-hurd.tmpl., guix-commits, 2020/04/27
- 26/36: system: hurd: Add the guix service., guix-commits, 2020/04/27