A.J.Mechelynck wrote:
mwoehlke wrote:
I found a really annoying problem trying to build VIM 7 on HP-UX. I have an automated script that builds VIM as part of a toolchain. It ran through, and to my surprise and annoyance, installed VIM in /usr/local instead of where I wanted it.

Long story short, the script called 'configure', which failed because it isn't (for some reason I have not yet figured out) finding the ncurses I built (--with-tlib=ncurses). Now, '<root>/configure' calls 'src/configure' which calls 'src/auto/configure'... but the exit status is not preserved AT EITHER STEP. As a result, my script thinks 'configure' succeeded and moves on to 'make', which RE-runs 'configure' with default parameters, succeeds, and ultimately allows the script to move on to 'make install'!

THIS IS BAD! The indirect 'configure' scripts need to preserve the exit status.

The fix, which is trivial, I leave as an exercise.

Answer to the exercise: set the appropriate environment variables so that when make runs configure, it will use whatever configure options you want to apply. Then you can do without a separate configure step (or use "make config" if you absolutely want one).

...Or... fix the indirect-invocation 'configure' scripts to not mask the exit status? IMO these are broken as-is (and the fix is trivial; Bram was looking at it last I heard).

--
Matthew
Interix, Sphinterix. Cygwin apps don't crash. :-)

Reply via email to