Alexander Hansen wrote:
You shouldn't need to.  Check and see whether /bin/sh and /bin/bash are
the same size.  If so, then your sh should be bash.

Maybe I should explain why I suspected zsh (and that brings me to another wild guess, see below). In the freetype2 build directory, in unix/unixddef.mk, the parameter OBJ_DIR is defined by


OBJ_DIR := $(shell cd $(TOP_DIR)/objs; pwd)

Earlier, TOP_DIR is definded similarly:

ifndef TOP_DIR
  TOP_DIR := .
endif
TOP_DIR := $(shell cd $(TOP_DIR); pwd)

zsh used to behave differently from other sh incarnations with respect to the 'cd' command. It wrote the directory name to the standard output where others didn't. Therefore sometimes definitions like those above didn't work correctly, because the output of the shell command was not just the output of 'pwd', but a two-line affair.

A similar thing can happen when your shell startup scripts produce output even for non-interactive non-login shells. Unfortunately, the configure and makefile part of the freetype2 sources is such a horrible convoluted spaghetti code that I don't want to try to even understand which shell, tcsh or sh, is used by the above code. It may well be that it is not the same shell when you run "fink build freetype2" or when you run "./configure; make" directly in the source directory.

In any case, you should check your startup files (.cshrc, .tcshrc, .bashrc, .bash_profile, or .profile) whether they don't write something to the output even for non-login shells. I am not sure how to find out easily. You could try a command like

tcsh -c 'bash -c ""'

It should not produce any output. If it writes "Hi Nathan" or even just a blank line, we have found a suspect :-)

These are all wild guesses, of course. It could be something completely different.

--
Martin



-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to