4 ms·
You can generate both. That gives you ninja for development (which had a problem you described) while the official builds still can use the makefiles that shoul
by viraptor 10y ago
You can generate both. That gives you ninja for development (which had a problem you described) while the official builds still can use the makefiles that should result in the same output.
- kazinator 10y ago> You can generate both. That means that a user who wants to patch the build rules has to have the generator, and learn the generating language instead of the Make language he or she already knows. Autoconf has this disease. You can build from an official tarball, but touch anything (or use a git checkout) and you need auto-this to generate auto-that. Not just any auto-this, but a specific version, that is seven releases behind current, or else three releases ahead of what your distro provides. > should result in the same output It should; but someone has to ensure that it does. That's just another unnecessary concern that doesn't actually have to do with anything with the functionality of whatever is being built. We would like to spend our QA cycles validating the program, not three ways of building it. Best to have just one way to build, and don't require users to install extraneous tools.
- avar 10y agoYou've confused autoconf with automake. The output from autoconf is just a list of variables that are sourced by your handwritten Makefile, which you can supply yourself if you don't feel like executing autoconf. It's automake that writes your Makefile for you, but you can just skip using that. E.g. the Git project uses autoconf optionally but not automake.
- kazinator 10y agoRather, you might be confusing the ./configure script with autoconf (the tool which generates the script from "configure.ac").
- avar 10y agoI know the difference between autoconf and its generated ./configure target. Your comment overall indicated to me that you were talking about automake, not autoconf. But if not, fair enough. E.g. you talk about "learn the generating language instead of the Make language". I know you were using that as an example, but there's no general non-horrible replacement for autoconf that you can write by hand, as opposed to automake where you can write a portable Makefile You can of course write a bunch of ad-hoc shellscripts & C test programs to probe your system, but this is going to be a lot nastier and buggier than just using autoconf to achieve the same goal. You also don't generally need autoconf to build projects you clone from source control in the same way that you need automake (because that actually makes the Makefile). The output of autoconf is generally just a file full of variables the Makefile includes, if you don't have that file you can just manually specify anything that differs from the Makefile defaults, e.g. NO_IPV6=YesPlease or whatever. The Git project, whose autoconf recipe I've contributed to, is a good example of this. You can "git clone" it and just issue "make" and it works, but if the default config doesn't work then "make configure && make" generally solves it, but you can also just e.g. do "make NO_IPV6=YesPlease" if it was lack of IPv6 that was causing the compilation failure. It'll then get your NO_IPV6 variable from the command-line instead of from the ./configure generated config.mak.autogen.
- nkurz 10y agoThe output of autoconf is generally just a file full of variables the Makefile includes You may just be using a terminology I don't recognize, but like 'kazinator', I think you are missing a step. The Git project, whose autoconf recipe I've contributed to, is a good example of this. Great, let's use that as a specific example: https://github.com/git/git/blob/master/configure.ac https://github.com/git/git/blob/master/configure.ac. Line 2 says "Process this file with autoconf to produce a configure script." I interpret this as saying that autoconf takes configure.ac as input, and produces a runnable 'configure' script as output. But you are saying that "the output of autoconf is generally just file full of variables the Makefile includes". How can these both be true?
- 10y ago
- viraptor 10y ago> That means that a user who wants to patch the build rules I think we have very different definitions of a "user". I kind of see your point about parallel builds, but think a lot of it could be automatically verified with right CI system. Once it works, it works.
- kazinator 10y ago> Once it works it works ... So long as nobody touches it, or any aspect of the environment it implicitly depends on.