9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Russ Cox <russcox@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] Standalone unix port of the original rc shell
Date: Wed, 10 Aug 2005 11:31:02 -0400	[thread overview]
Message-ID: <ee9e417a050810083170803a92@mail.gmail.com> (raw)
In-Reply-To: <89d1e7b80508100723784161bb@mail.gmail.com>

It sounds like you are missing the fact that 9c, 9a, etc.
are not just scaffolding used to build the rest of the
system.  They're also user commands just like cat and ls.
I'm sure that some days I run 9c by hand 100 times or more.
It's not so easy when you have to type the equivalent
ridiculously long gcc command line instead.

> Personally I hide that verbose gcc output using:
> 
> <target>:
> \t@echo CC $*.c
> \t@CC ...
> This works on all make versions. 

If one only ever invoked the compiler via make, this might
be a reasonable approach.  (It still wouldn't be optimal, since
you'd still go nuts maintaining your CFLAGS variable.)  But
what about when you want to run it from the command line?
Make's output has the nice property that, until you start doing
tricks like that, it's executable.

I use the above make trick on a different project I'm working
on with a bunch of Unix-heads, but it has the disadvantage that
when a source file fails to compile, you can't just snarf and send
the CC line to try recompiling it. 

> > Grep for AUTOLIB in the headers and you'll find out which
> > libraries they need to be linked with.  In fact, 9l will
> > do the linking for you.  As for which headers are provided
> > by which library, the usual rule is that foo.h or libfoo.h
> > goes with $PLAN9/src/libfoo.  There are a few exceptions
> > but that is by far the norm.  An annotated list of the
> > header files is below.  In any event, the header situation
> > is far simpler than it is in Unix.
> 
> Thx for the hint, also for the annotated list which is very helpful.

In return I expect an annotated list of all the headers on a typical
Linux system.

> > I don't know what a dev-wrapper package/directory is,
> > but it sounds scary.
> 
> It's just a separation of 9a, 9ar, 9l, 9c and the INSTALL/make stuff
> to some toolchain/ directory - somewhat more strict than the current
> way.

Again, those are real programs just like cat and ls.
There's no need to hide them.  I could put INSTALL 
into a makefile, but that's kind of a silly argument.
Everyone else has a top-level script called ./configure.
Why can't I have one called ./INSTALL?  I'll throw away
the toplevel makefile if it will make you happy.

Russ


  reply	other threads:[~2005-08-10 15:31 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-09 14:16 Anselm R. Garbe
2005-08-09 15:22 ` Federico Benavento
2005-08-09 15:28   ` Anselm R. Garbe
2005-08-10  5:54 ` Skip Tavakkolian
2005-08-10 10:03   ` Anselm R. Garbe
2005-08-10 10:29     ` Gabriel Diaz
2005-08-10 12:38       ` Anselm R. Garbe
2005-08-10 12:43         ` Gabriel Diaz
2005-08-10 12:57           ` Anselm R. Garbe
2005-08-10 14:55             ` Ronald G Minnich
2005-08-10 13:50     ` Russ Cox
2005-08-10 14:23       ` Anselm R. Garbe
2005-08-10 15:31         ` Russ Cox [this message]
2005-08-10 15:52           ` Anselm R. Garbe
2005-08-10 15:04       ` Ronald G Minnich
2005-08-10 15:18         ` Russ Cox
2005-08-10 15:33         ` Artem Letko
2005-08-10 15:38           ` Ronald G Minnich
2005-08-10 22:34             ` Andy Newman
2005-08-10 15:36         ` Anselm R. Garbe

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=ee9e417a050810083170803a92@mail.gmail.com \
    --to=russcox@gmail.com \
    --cc=9fans@cse.psu.edu \
    /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).