From: Jan Hudec <bulb@ucw.cz>
To: "J.C. Pizarro" <jcpiza@gmail.com>
Cc: Jakub Narebski <jnareb@gmail.com>, Andreas Ericsson <ae@op5.se>,
gcc@gcc.gnu.org, git@vger.kernel.org,
David Miller <davem@davemloft.net>,
Daniel Berlin <dberlin@dberlin.org>,
Ismail Donmez <ismail@pardus.org.tr>,
Marcel Holtmann <marcel@holtmann.org>
Subject: Re: In future, to replace autotools by cmake like KDE4 did?
Date: Mon, 10 Dec 2007 21:23:43 +0100 [thread overview]
Message-ID: <20071210202343.GB3517@efreet.light.src> (raw)
In-Reply-To: <998d0e4a0712070642u6ae75232t9cb5bfd0920b2439@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2116 bytes --]
On Fri, Dec 07, 2007 at 15:42:31 +0100, J.C. Pizarro wrote:
> A powerful tool can do better things that old generators-based tools
> (as autotools).
>
> To imagine, there are many scripts in subdirectories or subprojects:
No, there are not. There is just one. Multiple configuration scripts rarely
make sense.
> * Before: (many copy and paste of code as below paragraph)
> A_VARIABLE_OS = `uname -a | grep .... ` # <- slow
> case "$A_VARIABLE_OS" in
> *linux*) ... ;;
> *bsd*) ... ;;
> *aix*) ... ;;
> *) ...;;
> esac
> m4 foo.sh.m4 > bar.sh # <- very slow
Done once at release time.
> ./bar.sh
>
> * Later: (with the powerful tool that had cached many predefined variables in
> a ramdisk's file or in a daemon's memory)
A daemon not runnin' here. No ramdisk here either. Freshly downloaded tarball
to an ancient Un*x with some quirky barely POSIX-compliant shell.
> # call once at 1st time to internal uname of powerful tool for all ocurrences of
> # below predefined variable from many scripts:
> case "$FOO_VARIABLE_OS" in
Someone had to create that variable. And there is just one way to: uname -a | ....
> *linux*) ... ;;
> *bsd*) ... ;;
> *aix*) ... ;;
> *) ...;;
> esac
And how exactly does this differ from the code you had above? For task that
runs once per installation (and for most users never, because their
distribution's build server runs it for them), it's simplicity of code that
matters.
> # i don't need to generate more scripts to inspect still more it.
And how exactly did you find, from the uname, whether I have libcrypto
installed? And whether I have it in /usr/lib, /opt/openssl/lib or
/usr/@foobar.com/sw/system/lib? How did you find libcurl, tcl, zlib...?
Besides, I inspected the configure.ac script that comes with git and it does
not actually contain any code like you show above. Git's configure script is
NOT looking at the platform name AT ALL. The makefile does, but that
obviously does not need anything generated by M4.
--
Jan 'Bulb' Hudec <bulb@ucw.cz>
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
prev parent reply other threads:[~2007-12-10 20:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-07 2:10 In future, to replace autotools by cmake like KDE4 did? J.C. Pizarro
2007-12-07 7:56 ` Marcel Holtmann
2007-12-07 12:14 ` Jakub Narebski
2007-12-07 12:44 ` Andreas Ericsson
2007-12-07 13:56 ` Jakub Narebski
2007-12-07 14:42 ` J.C. Pizarro
2007-12-07 16:10 ` Marco Costalba
2007-12-10 20:23 ` Jan Hudec [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=20071210202343.GB3517@efreet.light.src \
--to=bulb@ucw.cz \
--cc=ae@op5.se \
--cc=davem@davemloft.net \
--cc=dberlin@dberlin.org \
--cc=gcc@gcc.gnu.org \
--cc=git@vger.kernel.org \
--cc=ismail@pardus.org.tr \
--cc=jcpiza@gmail.com \
--cc=jnareb@gmail.com \
--cc=marcel@holtmann.org \
/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).