[fpc-devel] How to call windres with parameters that are shortpath with forward slashes

2009-01-13 Thread Vincent Snijders

Hi,

I have been doing some research on issue 12645: 
http://bugs.freepascal.org/view.php?id=12645


From a discussion in the MinGW bugtracker can be concluded that windres does not 
and  will not support spaces in paths for its parameters in the foreseeable future.
So the compiler will have to convert file names and directories passed to windres to 
short path names (quoting them does not work).


Additionally, forward slashes (/) need to be used as directory separator. Can you 
give me some guidelines how to write a patch for the compiler?


I guess something needs to be changed in 
TWinLikeResourceFile.SetupCompilerArguments. Can I test for windres as rcbin and act 
  accordingly? Or do I need to add two tresinfoflags, for exampe 
res_needs_short_path,  res_needs_unix_dir_separator?


Vincent

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] How to call windres with parameters that are shortpath with forward slashes

2009-01-13 Thread Vincent Snijders

Vincent Snijders schreef:

Hi,

separator. Can you give me some guidelines how to write a patch for the 
compiler?




Please review the patch attached to http://bugs.freepascal.org/view.php?id=12645

Vincent
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] How to call windres with parameters that are shortpathwith forward slashes

2009-01-13 Thread Yury Sidorov

From: Vincent Snijders vsnijd...@vodafonevast.nl

Vincent Snijders schreef:

Hi,

separator. Can you give me some guidelines how to write a patch for 
the compiler?




Please review the patch attached to 
http://bugs.freepascal.org/view.php?id=12645


Looks good to me.

Yury. 
___

fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] How to call windres with parameters that are shortpathwith forward slashes

2009-01-13 Thread Vincent Snijders

Yury Sidorov schreef:

From: Vincent Snijders vsnijd...@vodafonevast.nl
Please review the patch attached to 
http://bugs.freepascal.org/view.php?id=12645


Looks good to me.



Committed in r12545.

Vincent
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Building win32 version from trunk - .svn directories copied inside examples

2009-01-13 Thread Tomas Hajny
On 13 Jan 09, at 22:54, Aleksa Todorovic wrote:

Hi Aleksa,

 I've checked out trunk version of fpc, compiled it with 2.2.2 and
 everything works fine (including compiling and using Lazarus). But,
 I've noticed that .svn directories are copied for some subdirectories
 of examples which:
 
 1) ... is strange behaviour of cp.exe. Does this, maybe, have
 something to do with cp.exe?
 
 2) ... makes it impossible to 'make install' fpc for the second time
 since it reports error when tries to copy .svn over old ones.
 
 Does anyone else have similar problem?

As far as I remember, make install for packages directly from the SVN 
tree isn't supported under Win32, you should use exported sources for 
that.

Tomas

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Building win32 version from trunk - .svn directories copied inside examplest

2009-01-13 Thread Marco van de Voort
In our previous episode, Tomas Hajny said:
  I've checked out trunk version of fpc, compiled it with 2.2.2 and
  everything works fine (including compiling and using Lazarus). But,
  I've noticed that .svn directories are copied for some subdirectories
  of examples which:
  
  1) ... is strange behaviour of cp.exe. Does this, maybe, have
  something to do with cp.exe?
  
  2) ... makes it impossible to 'make install' fpc for the second time
  since it reports error when tries to copy .svn over old ones.
  
  Does anyone else have similar problem?
 
 As far as I remember, make install for packages directly from the SVN 
 tree isn't supported under Win32, you should use exported sources for 
 that.

A solution is in the buildfaq.  http://www.stack.nl/~marcov/buildfaq.pdf
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel