On 16 Sep 2012, at 08:13, nitnit wrote:

> Jordi Gutiérrez Hermoso wrote
>> 
>> On Fri, Sep 14, 2012 at 3:44 PM, Jordi Gutiérrez Hermoso wrote:
>> Nitzan, can you please publish the sources you've used to build MinGW?
>> It's a little worrisom that we're in effect distributing GPL-violating
>> MinGW binaries.
>> 
> 
> Attached are the patches I have used for octaveforge packages in order to
> build them on mingw. Be aware that most of them are simply workarounds to
> overcome mingw environment failures to identify libs. I hope that I will be
> able to fix some of these on next mingw octave build.
> 
> Nitzan
> 
> ...
> 
> **************************************************************************
> ocs-0.1.3
> **************************************************************************
> 
> --- ocs-0.1.3_svn20120128.tar.gz\ocs\PKG_ADD  Sat Aug 06 15:32:14 2011
> +++ ocs-0.1.3_svn20120128_patched.tar.gz\ocs\PKG_ADD  Sat Jan 28 18:24:23
> 2012
> @@ -1,10 +1,12 @@
> dirlist = {"utl", "asm", "tst", "nls", "prs", "sbn"};
> -dirname = fileparts (canonicalize_file_name (mfilename ("fullpath")));
> +% dirname = fileparts (canonicalize_file_name (mfilename ("fullpath")));
> +dirname = fileparts (mfilename ("fullpath"));
> 
> if (! exist (fullfile (dirname, "inst"), "dir"))
>   ## Run this if the package is installed
>   for ii=1:length (dirlist)
> -    addpath ( [ dirname "/../" dirlist{ii}],"-end")
> +%     addpath ( [ dirname "/../" dirlist{ii}],"-end")
> +    addpath (fullfile(dirname,dirlist{ii}),"-end")
>   endfor
> else
>   ## Run this if we are testing the package without installation
> 
> --- ocs-0.1.3_svn20120128.tar.gz\ocs\PKG_DEL  Sat Aug 06 15:32:14 2011
> +++ ocs-0.1.3_svn20120128_patched.tar.gz\ocs\PKG_DEL  Sat Jan 28 18:02:54
> 2012
> @@ -1,14 +1,18 @@
> dirlist = {"utl", "asm", "tst", "nls", "prs", "sbn"};
> -dirname = fileparts (canonicalize_file_name (mfilename ("fullpath")));
> +% dirname = fileparts (canonicalize_file_name (mfilename ("fullpath")));
> +[basename,dirname] = fileparts (canonicalize_file_name (mfilename
> ("fullpath")));
> 
> for ii=1:length (dirlist)
>   if (! exist (fullfile (dirname, "inst"), "dir"))
>     ## Run this if the package is installed
> -    rmpath ( [ dirname "/../" dirlist{ii}])
> -  else
> +%     rmpath ( [ dirname "/../" dirlist{ii}])
> +    rmpath ( fullfile(basename,dirlist{ii}))
> +   else
>     ## Run this if we are testing the package without installation
> -    rmpath ([ dirname "/inst/" dirlist{ii}])
> -    rmpath ([ dirname "/src/"])
> +%     rmpath ([ dirname "/inst/" dirlist{ii}])
> +    rmpath ( fullfile(basename,"inst",dirlist{ii}) )
> +%     rmpath ([ dirname "/src/"])
> +%     rmpath (fullfile(basename,"src"]))
>   end
> end


I just checked in a slightly different version of your patch for OCS,
could you please check if it works on mingw?

Thanks!
c. 
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to