Re: [PATCH 0/6] Port git to Plan 9
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Aug 4, 2019, 20:22 UTC
- Message-ID
- <20190804202233.GB258325@google.com>
- In-Reply-To
- <CAFMepcm6QVH+5H6on2hoWiMXd=Zoyi5MYP1GAt0WwixZN9oE_Q@mail.gmail.com>
Hi,
Kyohei Kadota wrote:
Show 6 quoted lines
> I think it is possible to replace rc with ape/sh, ape/sh is POSIX > shell in Plan 9. > > However Plan 9 don't have recent versions of Unix tools, > such as gcc, g++, autotools, gmake or perl, > so it is VERY hard to use Makefile instead of mkfile.
The default Git build doesn't use autotools. See INSTALL for more details.
What version of gmake is available for Plan 9? I wouldn't expect Git's build system to be super demanding as far as recent "make" features go.
So I wonder whether it would make sense to do something like the following:
- add entries to config.mak.uname to set the compiler e.g. to 6c when appropriate
- make appropriate compatibility fixes in git-compat-util.h
- add any necessary helpers to the compat/ directory
- use gmake to build
Would that work?
Thanks, Jonathan