Apache OpenOffice (AOO) Bugzilla – Issue 26833
The build somehow uses X11 makedepend
Last modified: 2005-01-07 04:24:16 UTC
The W32-tcsh build somehow picks the wrong makedepend. Instead of using solver/645/wntmsci8.pro/bin/makedepend.exe it uses /usr/X11R6/bin/makedepend.exe . Workaround: rename/remove /usr/X11R6/bin/makedepend.exe. vq->ause: What do you think, rehash issue? The solver dir comes first in PATH, and after source winenv.set in a new shell the correct makedepend is found.
OK, got it. The standard /etc/csh.cshrc that comes with the cygwin installation starts all /etc/profile.d/*.csh scripts, and the 00XFree86-bin.csh script does: setenv PATH "/usr/X11R6/bin:${PATH}" Adding /usr/X11R6/bin in front of the path in every case doesn't sound right. Workaround: Rename/remove /etc/profile.d/00XFree86-bin.csh I'm not that familiar with tcsh, is it expected to parse /etc/csh.cshrc in our case?
> I'm not that familiar with tcsh, is it expected to parse > /etc/csh.cshrc in our case? Yes, that's what the manpage says. Not fixable for OOo, change /etc/csh.cshrc. Closing as WONTFIX.
close
OK, how about the following check? #!/bin/sh TPATH=`PATH="/nosuchpath:$PATH"; tcsh -c "echo \\\$PATH"` # Works only with environment variables export TPATH SUBSTPATH=`bash -c 'echo \${TPATH/"\/nosuchpath:*"/\/nosuchpath}` if [ "$SUBSTPATH" != "/nosuchpath" ]; then echo Warning csh is prepending to your path, do this on your own risk MAKEDEPENDFOUND=`tcsh -c "which makedepend"` MAKEDEPENDDIRNAME=`dirname "$MAKEDEPENDFOUND"` if [ "$MAKEDEPENDDIRNAME" != "." ]; then echo found makedepend if ( echo $SUBSTPATH | grep -q "$MAKEDEPENDDIRNAME" ); then echo Error makedepend found in prepended path, see iz.. fi fi fi Substitute the "echo Warning" with "AC_MSG_WARN([" and "echo Error" with "AC_MSG_ERROR([" and eveything is OK.
hmm, why not setting MAKEDEPEND*=$(WRAPCMD) $(SOLARBINDIR)$/makedepend in "unitools.mk"?
Because I had so much shell script fun ;) No, seriously, your solution is much better!
... but doesn't work because there is no $(SOLARBINDIR) in winenv.* I could write MAKEDEPEND*=$(WRAPCMD) $(SOLARVERSION)$/$(INPATH)$/bin$/makedepend but would that work for hamburg environment? P.S.: Why is INPATH called INPATH and not OUTPATH?
there is a set of "SOLAR*DIR" variables defined in "settings.mk". from the view of the module, INPATH is where it gets its input (includes, libs, etc) from. OUTPATH (except for the extension) is where results are written to. historically, OUTPATH + extension may differ from inpath (e.g. to build an instrumented profiling version of a module).
No more questioning of the true master! ;) Sorry, all the shell scrips made me think only of environment variables.
Committed the MAKEDEPEND*=$(WRAPCMD) $(SOLARBINDIR)$/makedepend patch to cws_src680_ooo20040704.
Works for me in m54
I meant close!