Apache OpenOffice (AOO) Bugzilla – Issue 21042
project smoketest does not build under cygwin/tcsh
Last modified: 2004-02-27 13:00:32 UTC
I was looking to see what the smoketest project is about, but the results of building it in tcsh are not very impressive: [Simon@max ...oo_11rc5_src/smoketest]$ build build -- version: 1.86 /cygdrive/c/oo_11rc5_src/smoketest mkout -- version: 1.3 ------------------------------ Making: ./wntmsci9.pro/misc/t1.dpc dmake subdmake=true -f makefile.mk depend=t ALLDPC ------------------------------ No Dependencies ------------- smoketest -- version: 1.8 can't open solarfile /cygdrive/c/oo_11rc5_src/smoketest\wntmsci9.pro\misc\respon se_fat.new at smoketest.pl line 545. dmake: Error code 2, while making 'make_test' echo: No match. ERROR: Error 65280 occurred while making /cygdrive/c/oo_11rc5_src/smoketest According to Volker: "Yes, the usual problem. Cygwin path for windows binary -> guw.pl missing in the right places."
Sorry, really no time at the moment.
OK, I analyzed the problem a bit. I was totally wrong, the problem is that this project immediately starts smoketest.pl, and it assumes that the perl interpreter has no problems with strings containing "\". Short: It assumes activestate perl, and dos style paths. :-( The script uses lots of $ENV{ENVVAR}, the cleanest solution to this is to get all used variables at the top of the script, and convert them if necessary, like: $var1=$ENV{VAR1} .. $varN=$ENV{VARN} if ( $perl_os =~ /cygwin/ ) { $var1 =~ s#\\#\\\\#g; (or if needed) chomp( $var1 = qx{cygpath -d "$var1"} ); ... $varN = ..; } Errm, there is a "Anwendungsdaten" used for $SVERSION_INI! Does that work for non-german Windows?
reassigned to kurt.
As Volker Quetschke mentioned all paths must be converted if the shell is a tsch. The use of "Anwendungsdaten" in the path for $SVERSION_INI works really only on a german Windows. I could change this to "Application Data" for the english version, but at the moment I have no safe solution for all languages, because there is no environmentvariable for this. Any ideas?
KZ->DV: The responsfileinstallation on cygwin doesn't work. Setup can't find the path of the responsefile.
reassigned to Dirk
The responsefile installation works, when the path to the response file is correctly quoted!
new solution for cygwin ready
close issue.