aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Nieuwenhuizen <janneke@gnu.org>2019-10-06 14:57:54 +0200
committerJan Nieuwenhuizen <janneke@gnu.org>2020-02-17 23:16:41 +0100
commit1a433d396400577aa6da5c18507dfbe09645acc9 (patch)
tree7c4c32f98666d934221a5269c3709cfb9b0dd32a
parentaa196f1f02afee706c4583d07a1fa34bdc18f0c8 (diff)
downloadguix-1a433d396400577aa6da5c18507dfbe09645acc9.tar
guix-1a433d396400577aa6da5c18507dfbe09645acc9.tar.gz
gnu: commencement: Add patch-mesboot.
* gnu/packages/commencement.scm (patch-mesboot): New variable.
-rw-r--r--gnu/packages/commencement.scm36
1 files changed, 36 insertions, 0 deletions
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 9fcb69f433..d930063cf2 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -1097,6 +1097,42 @@ $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 (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)