Subject: Re: CVS commit: pkgsrc/mk
To: None <tech-pkg@NetBSD.org>
From: Roland Illig <rillig@NetBSD.org>
List: tech-pkg
Date: 05/12/2006 19:28:09
Dieter Baron wrote:
> In article <446452C8.90005@NetBSD.org> Roland wrote:
> : Johnny C. Lam wrote:
> : >>I cannot see any hint here. What about printing the warning (which is
> : >>currently in config.log) also to the terminal, so the user can see it
> : >>more directly?
> : >
> : >
> : > I don't know how to do this portably, but please feel free to modify
> : > the implementation. Right now, there is enough information in the
> : > files that pkgsrc directs you to look at to figure out what's wrong
> : > and how to fix it.
>
> : For me, "echo foo 1>/dev/tty" has worked on all systems I know. Are
> : there any counterexamples?
>
> I don't think that is a good idea: if you redirect the build output
> (as e. g. the bulk builds do), this warning would not be redirected.
> One shouldn't break the unix convention of writing to stdout/stderr
> without a very good reason.
I thought of doing both -- to stderr and to the terminal. But since the
packages will be fixed soon, this discussion is starting to become
useless. :)
Roland