Apache OpenOffice (AOO) Bugzilla – Issue 48294
check for NSIS in configure
Last modified: 2005-08-19 06:37:38 UTC
Hi, m97 integrated cws with support for NSIS. It is not checked in the configure step and is only checked at the end of instsetoo_native module build. We should check it at the beginning, in configure, set some variable and use that variable later.
Created attachment 25626 [details] Patch to detect NSIS. (untested)
Committed a fixed version of previous patch to configure10. winenv.* now contains a variable named NSIS_PATH containing the path to the nsis.exe. vq->mh: Can you take over and adapt instsetoo_native? P.S.: I needed the following patch and NSIS in my path to build with m97: +++ solenv/bin/modules/installer/download.pm 29 Apr 2005 02:37:16 -0000 @@ -889,7 +890,7 @@ @paths = split(/:/, $ENV{'PATH'}); foreach $paths (@paths) { $nsispath = $paths . "/nsis"; - if ( -x $nsispath ) { $nsispath = $paths; break } else { $nsispath = ""; } + if ( -e $nsispath ) { $nsispath = $paths; last } else { $nsispath = ""; } } if ( $nsispath eq "" ) @@ -901,8 +904,8 @@ } else { - ($vol, $dir, $file) = File::Spec->splitpath( $nsispath ); - $nsispath = $dir; +# ($vol, $dir, $file) = File::Spec->splitpath( $nsispath ); +# $nsispath = $dir; } if ( $ENV{'NSISSDK_SOURCE'} ) { $nsispath = $ENV{'NSISSDK_SOURCE'}; } # overriding the NSIS SDK with NSISSDK_SOURCE
I forgot to mention $NSIS_PATH is empty if NSIS is not found. This should disable the build of the NSIS installation set.
Patch works for me.
.
Verified. pavel@drogo:~> grep NSIS_PATH ~/BuildDir/ooo_SRC680_m103_src/winenv.set setenv NSIS_PATH "/cygdrive/c/PROGRA~1/NSIS" Ie NSIS_PATH points to the directory where NSIS is installed.
close issue.