>> * look at possibility/cost to avoid updating the mescc-tools and mes >> bootstrap binaries > > This proved possible (dare I say feasible?). What was needed is > > - allow mescc (0.21+) to work with old mescc-tools 0.5.2 > - add %bootstrap-mes-rewired, to remove MesCC from mes-0.19 and > enable it to run 0.21+ MesCC > > %bootstrap-mes-rewired uses this hack > > (add-after 'unpack 'patch-%moduledir > (lambda _ > (copy-file "module/mescc.scm" "module/mescc.scm.orig") > (substitute* "module/mescc.scm" > (("^ \\(mes-use-module \\(mescc mescc\\)" all) > (string-append " > ;; MesCC from mes-0.21 > (let* ((self (car (command-line))) > (prefix (dirname (dirname self)))) > (set! %moduledir (string-append prefix \"/mes/module/\")) > (setenv \"%numbered_arch\" \"true\")) > > ;; A fixed map, from mes-0.21 > (define (map f h . t) > (if (or (null? h) > (and (pair? t) (null? (car t))) > (and (pair? t) (pair? (cdr t)) (null? (cadr t)))) '() > (if (null? t) (cons (f (car h)) (map f (cdr h))) > (if (null? (cdr t)) > (cons (f (car h) (caar t)) (map f (cdr h) (cdar t))) > (if (null? (cddr t)) > (cons (f (car h) (caar t) (caadr t)) (map f (cdr h) (cdar t) (cdadr t))) > (if (null? (cdddr t)) > (cons (f (car h) (caar t) (caadr t) (car (caddr t))) (map f (cdr h) (cdar t) (cdadr t) (cdr (caddr t)))) > (error 'unsupported (cons* 'map-5: f h t))) ))))) > " all))) > #t)) > > ...not particularly nice/clean/auditable; but "it works". WDYT? ‘caddr’, loooove it! ;-) It seems to me that mescc.scm in 0.21 only use the two-argument ‘map’, no? In that case I guess we could go with a two-argument, fixed-arity version that would have fewer cdadrs caddrs and caadrs? Just sayin’. :-) > On a related note, should mescc 0.21 include some kind of `hook' make > this kind of change easier to make? Good question! During the summit, Vagrant (I think?) asked whether Mes and MesCC should be separated. I think in this case it would have been beneficial to have them distributed separately, no? It might be worth looking at which parts change frequently to determine what to keep as part of the ‘mes’ package itself. Thoughts? >> * remove any generated (gitlab/github) tarballs > > Done (but please check!). LGTM! >> * look into awkward combined bash+gash dependency of glibc-mesboot0 > > Haven't addressed this. I quickly looked with Ludo at this, not really > into it though. WYDT? Hmm, dunno. I can take a look later. >> * add some %bootX-input stages, at least when reached gcc-mesboot1 > > Done. Numbering of bootX, mesbootX could possibly made to make more > sense. However, I also would like to get rid of the whole 2.95 story > some time soon and then many things change again. I could do with some > help/inspiration here. I think it’s good to have ‘%bootX-inputs’ for when we’re going to reuse more or less the same input set several times, because it clarifies that there’s a “plateau” of sorts, but I guess it’s not always appropriate early on in the graph. Another thing we discussed was the growth of the dependency graph: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix graph -e '(@@ (gnu packages commencement) coreutils-final)' | grep 'label =' | wc -l 177 $ guix graph -e '(@@ (gnu packages commencement) coreutils-final)' | grep 'label =' | wc -l 76 --8<---------------cut here---------------end--------------->8--- Clearly we’re adding way more nodes than we mean to. For example, you can remove the call to ‘package-with-bootstrap-guile’ for ‘bash-mesboot’ (down to 153 nodes) and the one for ‘gcc-core-mesboot1’ (down to 121) and the one for ‘binutils-mesboot’ (down to 87), and I think at this point we’re done and the graph has a lovely shape. :-) It makes a noticeable difference from a performance viewpoint (see .) Also, you can leave out calls to ‘bootstrap-origin’ for origins without a snippet and without patches (it’s purely stylistic though.) > We are really getting there! I would like to do a rewrite once Gash > 0.2.0 is out. What to do about Gash Core Utils? I also plan to do a > rewrite once MES 0.22 is out. I think we should probably wait for the Gash and Gash Core Utils releases so we can refer to them directly. How does that sound to you, Timothy? Thanks! Ludo’.