guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

27/70: bootstrap: Add patch-mesboot.


From: guix-commits
Subject: 27/70: bootstrap: Add patch-mesboot.
Date: Sun, 15 Dec 2019 08:36:43 -0500 (EST)

janneke pushed a commit to branch wip-bootstrap
in repository guix.

commit 7354375433c99b81e78379474601717f135dba74
Author: Jan Nieuwenhuizen <address@hidden>
Date:   Sun Oct 6 14:57:54 2019 +0200

    bootstrap: Add patch-mesboot.
    
    * gnu/packages/commencement.scm (patch-mesboot): New variable.
---
 gnu/packages/commencement.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index cab09d9..9fb0fcc 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -1121,6 +1121,43 @@ $MES -e '(mescc)' module/mescc.scm -- \"$@\"
                (install-file "diff" bin)
                #t))))))))
 
+(define patch-mesboot
+  ;; The initial patch.
+  (package
+    (inherit patch)
+    (name "patch-mesboot")
+    (version "2.5.9")
+    (source (bootstrap-origin
+             (origin
+               (method url-fetch)
+               (uri (string-append "mirror://gnu/patch/patch-"
+                                   version ".tar.gz"))
+               (sha256
+                (base32
+                 "12nv7jx3gxfp50y11nxzlnmqqrpicjggw6pcsq0wyavkkm3cddgc")))))
+    (supported-systems '("i686-linux" "x86_64-linux"))
+    (inputs '())
+    (propagated-inputs '())
+    (native-inputs (%boot-tcc0-inputs))
+    (arguments
+     `(#:implicit-inputs? #f
+       #:guile ,%bootstrap-guile
+       #:parallel-build? #f
+       #:tests? #f            ; check is naive, also checks non-built PROGRAMS
+       #:strip-binaries? #f   ; no strip yet
+       #:configure-flags '("AR=tcc -ar" "CC=tcc" "LD-tcc")
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'scripted-patch
+           (lambda _
+             ;; avoid another segfault
+             (substitute* "pch.c"
+               (("while [(]p_end >= 0[)]" all)
+                "p_end = -1;\nwhile (0)"))
+             #t))
+         ;; FIXME: no compressing gzip yet
+         (delete 'compress-documentation))))))
+
 (define binutils-mesboot0
   (package
     (inherit binutils)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]