9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Amavect <amavect@gmail.com>
To: 9front@9front.org,cinap_lenrek@felloff.net
Subject: Re: [9front] Re: system mkfile changes
Date: Fri, 02 Apr 2021 13:01:24 -0500	[thread overview]
Message-ID: <2AF689EE-2336-45F3-8559-1935470BE377@gmail.com> (raw)
In-Reply-To: <2E199923D171437BFE5C102DC6FB649D@felloff.net>

On March 27, 2021 10:00:27 AM CDT, cinap_lenrek@felloff.net wrote:
>this is tricky, i think using ls here is better
I believe I was trying to avoid `ls *.[cy]`, which is marginally slower locally, and very slow over a network versus plain `ls`.
Umbraticus' suggestion works great.

The CPDEP stuff was me thowing my hands in the air. Sorry about that.

>the rest of the mkfiles should be able to always rely on that the
>currently
>installed binaries for compilers, linkers, assemblers, yacc, mk, cp,
>awk,
>sed, grep, rc shell are the correct ones.
>
>these races should never exist if we have clear separation of build
>and installation, and the install step makes sure its not relying on
>the very
>tools it is currently installing.
I wanted to avoid serializing the install rule, because that screws up mk's ability to read dependencies.
Perhaps the best solution is to put cp and yacc in their own directory. Maybe a /sys/src/base directory could hold the build environment sources.

Anyways, I gave up.
There's now a small chance of the user specifying install targets manually and getting an ioerror as yacc and cp get installed.
Here's the latest tarball.
https://git.sr.ht/~amavect/mkfilechanges/archive/master.tar.gz

>To build the toolchain, you also need to build their library
>dependencies,
>which is also not stated in the mkfiles.
This is a limitation of mk.
I would love to "import" the rules to build those dependencies from anywhere in the src tree, and finally solve the issue of recursive mk. I have some ideas brewing there.

Thanks,
Amavect

      parent reply	other threads:[~2021-04-03  8:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-20 17:18 [9front] " Amavect
2021-03-24 18:44 ` [9front] " Amavect
2021-03-27 15:00   ` cinap_lenrek
2021-03-29 19:44     ` umbraticus
2021-04-02 18:01     ` Amavect [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2AF689EE-2336-45F3-8559-1935470BE377@gmail.com \
    --to=amavect@gmail.com \
    --cc=9front@9front.org \
    --cc=cinap_lenrek@felloff.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).