[fpc-pascal] SQLDB Firebird port other than 3050

2011-11-15 Thread Reinier Olislagers
Hi all, This is probably my confused week, but I couldn't find any documentation. How do I specify the port number when connecting to Firebird/Interbase databases with sqldb on a different port than the default (3050)? Thanks, Reinier ___ fpc-pascal

[fpc-pascal] Re: RE : SQLDB Firebird port other than 3050

2011-11-15 Thread Reinier Olislagers
On 15-11-2011 16:30, Ludo Brands wrote: How do I specify the port number when connecting to Firebird/Interbase databases with sqldb on a different port than the default (3050)? Try /portnr:/path/to/database in your databasename. host/port:c:\...\data.fdb

[fpc-pascal] Makeskel how to add Firebird connection documentation?

2011-11-16 Thread Reinier Olislagers
Hi list, I want to document packages/fcl-db/src/sqldb/interbase/ibconnection.pp So I run this to get started: makeskel --disable-private --emit-class-separator --update --package=fcl-sqldb --input=/home/reinier/fpc271/packages/fcl-db/src/sqldb/interbase/ibconnection.pp --output=ibconnection.pp

Re: [fpc-pascal] Makeskel how to add Firebird connection documentation?

2011-11-17 Thread Reinier Olislagers
On 17-11-2011 10:06, michael.vancann...@wisa.be wrote: On Thu, 17 Nov 2011, Reinier Olislagers wrote: I want to document packages/fcl-db/src/sqldb/interbase/ibconnection.pp snip stuff about makeskel What do I enter as package? fcl-sqldb? How do I find out? (And if so, can that be documented

[fpc-pascal] Setting environment variables on Unix/Linux?

2011-11-17 Thread Reinier Olislagers
Hi list, It seems FPC allows one to retrieve environment variables on Linux/Unix (GetEnvironmentVariable) but not to set them. Is that correct? Some digging: Setting environment variables on Unix with gnu libc:

Re: [fpc-pascal] Setting environment variables on Unix/Linux?

2011-11-17 Thread Reinier Olislagers
On 17-11-2011 13:55, michael.vancann...@wisa.be wrote: On Thu, 17 Nov 2011, Reinier Olislagers wrote: Hi list, It seems FPC allows one to retrieve environment variables on Linux/Unix (GetEnvironmentVariable) but not to set them. Is that correct? Yes. snip No. Unix works differently

[fpc-pascal] Makeskel generation question

2011-11-18 Thread Reinier Olislagers
Hi list, I've run makeskel on ibconnection.pp. This declaration: protected ... function GetHandle : pointer; override; gets output as: !-- function Visibility: protected -- element name=TIBConnection.GetHandle short/short descr /descr errors /errors seealso /seealso /element !-- function

Re: [fpc-pascal] Makeskel generation question

2011-11-18 Thread Reinier Olislagers
On 18-11-2011 11:13, Graeme Geldenhuys wrote: For the FPC documentation, only Public and Published methods properties are documented. So you should have generated the initial xml file specifying only Public or higher visibility in the output makeskel generates. So apparently no help for

Re: [fpc-pascal] Makeskel generation question

2011-11-18 Thread Reinier Olislagers
On 18-11-2011 12:23, Graeme Geldenhuys wrote: On 2011-11-18 13:15, Reinier Olislagers wrote: So apparently no help for the poor developer who wants to inherit a class and wants to figure out how to use the protected methods properties ;) The is also no help (near zero) for poor Michael

Re: [fpc-pascal] Makeskel generation question

2011-11-18 Thread Reinier Olislagers
On 18-11-2011 13:14, Michael Van Canneyt wrote: On Fri, 18 Nov 2011, Reinier Olislagers wrote: !-- function result Visibility: default -- element name=TIBConnection.GetHandle.Result short/short /element Shouldn't the TIBConnection.GetHandle.Result function result visibility be protected

[fpc-pascal] IBConnection blobsegmentsize irrelevant performance

2011-11-19 Thread Reinier Olislagers
://tech.groups.yahoo.com/group/firebird-support/message/115826 Posted by: Ann Harrison Fri Nov 18, 2011 9:10 am (PST) Reinier Olislagers wrote: I came across BLOB segment size and understand that, when writing BLOBs, you need to write in chunks smaller than or equal to the segment size. Your

[fpc-pascal] Patch/Test BlobSegmentSize was: IBConnection blobsegmentsize irrelevant performance

2011-11-19 Thread Reinier Olislagers
On 19-11-2011 13:28, Reinier Olislagers wrote: Hi list, The Firebird/Interbase ibconnection.pp code has this code in its SetParameters procedure to upload blobs in segments (BlobSegmentSize property is set to 80 on object creation): while BlobBytesWritten (BlobSize-BlobSegmentSize

Re: [fpc-pascal] Patch/Test BlobSegmentSize was: IBConnection blobsegmentsize irrelevant performance

2011-11-20 Thread Reinier Olislagers
On 19-11-2011 23:36, Michael Van Canneyt wrote: On Sat, 19 Nov 2011, Reinier Olislagers wrote: On 19-11-2011 13:28, Reinier Olislagers wrote: I wonder whether/what changes are required for reading blobs... The following function needs adapting: function TIBConnection.getMaxBlobSize

Graeme: FBLIB blob segment size was: [fpc-pascal] Patch/Test BlobSegmentSize

2011-11-20 Thread Reinier Olislagers
On 19-11-2011 23:36, Michael Van Canneyt wrote: On Sat, 19 Nov 2011, Reinier Olislagers wrote: On 19-11-2011 13:28, Reinier Olislagers wrote: Hi list, The Firebird/Interbase ibconnection.pp code has this code in its SetParameters procedure to upload blobs in segments (BlobSegmentSize

Re: Graeme: FBLIB blob segment size was: [fpc-pascal] Patch/Test BlobSegmentSize

2011-11-20 Thread Reinier Olislagers
On 20-11-2011 13:06, Graeme Geldenhuys wrote: On 20/11/2011, Reinier Olislagers reinierolislagers@ wrote: Had a look at tiOPF FBLib FBLDsql.pas. It defines BLOB_SEGMENT_LEN = 4095; used in both reading writing blob data. ... might/could/should that be enlarged to 65535? Based

Re: [fpc-pascal] Patch/Test BlobSegmentSize was: IBConnection blobsegmentsize irrelevant performance

2011-11-21 Thread Reinier Olislagers
On 20-11-2011 10:31, Reinier Olislagers wrote: On 19-11-2011 23:36, Michael Van Canneyt wrote: On Sat, 19 Nov 2011, Reinier Olislagers wrote: On 19-11-2011 13:28, Reinier Olislagers wrote: I wonder whether/what changes are required for reading blobs... Patch attached; it applies against 2.7.1

[fpc-pascal] Re: Firebird Connection documentation: suggestions? remarks?

2011-11-21 Thread Reinier Olislagers
On 19-11-2011 14:21, Reinier Olislagers wrote: Hi list, Please find attached my current version for the Interbase/Firebird connection documentation source. If the attachment gets deleted by the list or if you want to see the latest version, please go to https://bitbucket.org/reiniero

[fpc-pascal] Re: Firebird Connection documentation: suggestions? remarks?

2011-11-22 Thread Reinier Olislagers
On 22-11-2011 10:32, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: Still don't understand what the TIBConnectionDef/TConnectionDef class is used for? It is uses for the TSQLConnector component. Actually, I don't understand registering/unregistering connections. SQLDB maintains a

[fpc-pascal] Re: Firebird Connection documentation: suggestions? remarks?

2011-11-23 Thread Reinier Olislagers
On 19-11-2011 14:21, Reinier Olislagers wrote: Hi list, Please find attached my current version for the Interbase/Firebird connection documentation source. snip I have some doubts/questions: 1. Do I need to document inherited properties etc or will a documented parent unit's help filter

[fpc-pascal] Re: Patch/Test BlobSegmentSize was: IBConnection blobsegmentsize irrelevant performance

2011-11-24 Thread Reinier Olislagers
On 21-11-2011 9:31, Reinier Olislagers wrote: On 20-11-2011 10:31, Reinier Olislagers wrote: On 19-11-2011 23:36, Michael Van Canneyt wrote: On Sat, 19 Nov 2011, Reinier Olislagers wrote: On 19-11-2011 13:28, Reinier Olislagers wrote: I wonder whether/what changes are required for reading

Re: [fpc-pascal] Re: Patch/Test BlobSegmentSize was: IBConnection blobsegmentsize irrelevant performance

2011-11-25 Thread Reinier Olislagers
On 25-11-2011 10:07, Michael Van Canneyt wrote: On Fri, 25 Nov 2011, Reinier Olislagers wrote: Database patches by default get assigned to Joost, and Joost is busy. I'll have a look at it. You can always directly assign bugs to me if we've discussed them here on the list. Michael. Thanks

Re: [fpc-pascal] Re: Patch/Test BlobSegmentSize was: IBConnection blobsegmentsize irrelevant performance

2011-11-26 Thread Reinier Olislagers
On 25-11-2011 10:21, Michael Van Canneyt wrote: On Fri, 25 Nov 2011, Reinier Olislagers wrote: On 25-11-2011 10:07, Michael Van Canneyt wrote: Sometime in the now misty past, Michael Van Canneyt wrote: Database patches by default get assigned to Joost, and Joost is busy. I'll have a look

[fpc-pascal] Latest bootstrap compilers?

2012-01-06 Thread Reinier Olislagers
Hi all, I looked at ftp://ftp.freepascal.org/pub/fpc/dist/2.6.0/bootstrap/ and saw there is e.g. no i386-win32-ppc386.zip Is this intentional? The reason I'm asking: I'm writing a small SVN downloader that should download a bootstrap compiler if required and wanted to know what to get for Win32,

[fpc-pascal] Command line FPC/Lazarus SVN downloader/installer

2012-01-10 Thread Reinier Olislagers
Hi Lazarus FPC people, I got very tired of writing Windows and Linux batch files, so I've written an FPC/Lazarus installer that allows you to keep a copy of FPC and Lazarus that it updates from SVN. This copy can live apart from a regular FPC/Lazarus install as it uses --primary-config path for

[fpc-pascal] IPTables log parser?

2012-01-19 Thread Reinier Olislagers
Hi list, I noticed ik has started a project to manipulate Linux iptables firewall rules... which got me thinking. Is there any FreePascal/Delphi code lying around to parse IPtables log output (e.g. in the /var/log/messages syslog file), e.g. into CSV format? If not, I'll probably write my

Re: [fpc-pascal] IPTables log parser?

2012-01-19 Thread Reinier Olislagers
On 19-1-2012 11:10, Mark Morgan Lloyd wrote: Reinier Olislagers wrote: Hi list, I noticed ik has started a project to manipulate Linux iptables firewall rules... which got me thinking. Is there any FreePascal/Delphi code lying around to parse IPtables log output (e.g. in the /var/log

[fpc-pascal] iptableslogparser released was Re: IPTables log parser?

2012-01-23 Thread Reinier Olislagers
On 19-1-2012 10:51, ik wrote: On Thu, Jan 19, 2012 at 11:37, Reinier Olislagers reinierolislag...@gmail.com mailto:reinierolislag...@gmail.com wrote: I noticed ik has started a project to manipulate Linux iptables firewall rules... which got me thinking. Is there any FreePascal

[fpc-pascal] Request for Win32 bootstrap compiler on ftp.freepascal.org/

2012-01-27 Thread Reinier Olislagers
Hi list, On ftp://ftp.freepascal.org/pub/fpc/dist/2.6.0/bootstrap/ there are a lot of bootstrap compilers, but I miss a x86 Windows bootstrap compiler. Would it be possible to upload one, or can I use the 2.4.2 compiler to compile FPC 2.6.x/2.7.x sources on Windows? Thanks, Reinier

Re: [fpc-pascal] Request for Win32 bootstrap compiler on ftp.freepascal.org/

2012-01-27 Thread Reinier Olislagers
On 27-1-2012 13:01, Marco van de Voort wrote: In our previous episode, Reinier Olislagers said: On ftp://ftp.freepascal.org/pub/fpc/dist/2.6.0/bootstrap/ there are a lot of bootstrap compilers, but I miss a x86 Windows bootstrap compiler. It is the responsibility of the platform maintainers

Re: [fpc-pascal] Request for Win32 bootstrap compiler on ftp.freepascal.org/

2012-01-27 Thread Reinier Olislagers
On 27-1-2012 13:22, Marco van de Voort wrote: In our previous episode, Reinier Olislagers said: It is the responsibility of the platform maintainers to upload that. That being said, for windows it makes less sense than for other platforms, since the release also contains (possibly updated

Re: [fpc-pascal] Request for Win32 bootstrap compiler on ftp.freepascal.org/

2012-01-27 Thread Reinier Olislagers
On 27-1-2012 13:33, Marco van de Voort wrote: In our previous episode, Reinier Olislagers said: That's what I suspected. So when building a Win32 system from scratch, I'd have to either extract the files from the installer or perhaps get them from a stable branch like: http

Re: [fpc-pascal] Request for Win32 bootstrap compiler on ftp.freepascal.org/

2012-01-27 Thread Reinier Olislagers
On 27-1-2012 14:00, Marco van de Voort wrote: In our previous episode, Reinier Olislagers said: No, tags/release_2_6_0 would then be the one. What is currently already in fixed could theoretically already have been changed for 2.6.2 Thanks, Marco; I thought 2.6.1 fixes would be stability

[fpc-pascal] Poor man's resource code available and CheckRide update: now with editor

2012-01-30 Thread Reinier Olislagers
Hi all, (Cross posted to Lazarus+FPC lists) Thanks to UPayload (http://www.delphidabbler.com/articles?article=7) and some help on the forum, I could implement an alternative way of storing files in an executable file (basically it just appends them with a footer). See source:

[fpc-pascal] FPC make all: as.exe not found unless in path

2012-02-02 Thread Reinier Olislagers
Hi all, Tinkering with my bootstrap SVN updater/installer. Directory layout: c:\development\binutils: as.exe, make.exe etc Got these from http://svn.freepascal.org/svn/fpcbuild/tags/release_2_6_0/install/binw32/ c:\development\fpcbootstrap\ppc386.exe from

[fpc-pascal] Re: FPC make all: as.exe not found unless in path

2012-02-02 Thread Reinier Olislagers
Wooops... see inline On 2-2-2012 13:54, Reinier Olislagers wrote: Hi all, Tinkering with my bootstrap SVN updater/installer. Directory layout: c:\development\binutils: as.exe, make.exe etc Got these from http://svn.freepascal.org/svn/fpcbuild/tags/release_2_6_0/install/binw32/ c

[fpc-pascal] Re: FPC make all: as.exe not found unless in path

2012-02-02 Thread Reinier Olislagers
On 2-2-2012 14:08, Marcos Douglas wrote: On Thu, Feb 2, 2012 at 9:54 AM, Reinier Olislagers reinierolislagers-re5jqeeqqe8avxtiumw...@public.gmane.org wrote: When I add c:\development\binutils to the path, it does seem to work. How can I solve this, e.g.: 1. Would moving ppc386.exe

Re: [fpc-pascal] FPC make all: as.exe not found unless in path

2012-02-02 Thread Reinier Olislagers
On 2-2-2012 14:07, Henry Vermaak wrote: On 02/02/12 13:02, Henry Vermaak wrote: On 02/02/12 12:54, Reinier Olislagers wrote: 3. Is there some option I can pass to make to let it find the right binutils? You can pass CROSSBINDIR=/path/to/binutils. P.S. I realise you're not cross compiling

Re: [fpc-pascal] FPC make all: as.exe not found unless in path

2012-02-02 Thread Reinier Olislagers
On 2-2-2012 14:48, Henry Vermaak wrote: On 02/02/12 13:37, Reinier Olislagers wrote: However, when doing the same with make install: C:\development\binutils\make.exe FPC=c:\development\fpcbootstrap\ppc386.exe CROSSBINDIR=C:\development\binutils --directory=c:\development\fpc UPXPROG=echo

[fpc-pascal] Synapse: SSH client+cryptlib+private key

2012-02-02 Thread Reinier Olislagers
Hi all, I've been fiddling with connecting to an SSH server. Thanks to Ludo Brands' help I can use username/password with Synapse (stable)+cryptlib. I'm fiddling and trying to get private key authentication to work. While this compiles and runs, Ethereal shows SSH traffic just stops.. (on a

[fpc-pascal] Re: RE : Synapse: SSH client+cryptlib+private key

2012-02-04 Thread Reinier Olislagers
On 4-2-2012 7:34, Ludo Brands wrote: I've been fiddling with connecting to an SSH server. Thanks to Ludo Brands' help I can use username/password with Synapse (stable)+cryptlib. I'm fiddling and trying to get private key authentication to work. Thanks, Reinier After some fiddling I

[fpc-pascal] Too tired? Forcedirectories does not seem to work

2012-02-06 Thread Reinier Olislagers
Busy porting FPCUP to Linux... think it's time to quit for the day This code: OperationSucceeded:=ForceDirectories(BootstrapCompilerDirectory); debugln('todo: debug: forcedirectories bootstrap compiler dir: '+bootstrapcompilerdirectory+' result: '+BoolToStr(Operationsucceeded)); should

Re: [fpc-pascal] Too tired? Forcedirectories does not seem to work

2012-02-06 Thread Reinier Olislagers
On 6-2-2012 17:49, ik wrote: On Mon, Feb 6, 2012 at 18:40, Reinier Olislagers reinierolislag...@gmail.com mailto:reinierolislag...@gmail.com wrote: Busy porting FPCUP to Linux... think it's time to quit for the day This code: OperationSucceeded:=ForceDirectories

Re: [fpc-pascal] Too tired? Forcedirectories does not seem to work

2012-02-06 Thread Reinier Olislagers
On 6-2-2012 17:50, Henry Vermaak wrote: On 06/02/12 16:40, Reinier Olislagers wrote: This code: OperationSucceeded:=ForceDirectories(BootstrapCompilerDirectory); debugln('todo: debug: forcedirectories bootstrap compiler dir: '+bootstrapcompilerdirectory+' result: '+BoolToStr

[fpc-pascal] Re: Too tired? Forcedirectories does not seem to work

2012-02-06 Thread Reinier Olislagers
On 6-2-2012 18:01, Henry Vermaak wrote: On 06/02/12 16:50, Henry Vermaak wrote: Your shell expands ~ to your home directory. Your program will have to do this manually (i.e. read the HOME environment variable). Like Ido mentioned, ExpandFileName does this already. Perhaps the

[fpc-pascal] Re: Too tired? Forcedirectories does not seem to work

2012-02-06 Thread Reinier Olislagers
On 6-2-2012 19:26, Rich Saunders wrote: On 2/6/12 11:49 AM, ik wrote: You should use ExpandFileName on ForceDirectory's content prior on sending it to it. And then go find the directory that you created in error and remove it! ;) Rich Thanks, Rich, did that ;) Task for tomorrow is to

Re: [fpc-pascal] Too tired? Forcedirectories does not seem to work

2012-02-06 Thread Reinier Olislagers
On 6-2-2012 20:53, Sven Barth wrote: On 06.02.2012 18:14, Reinier Olislagers wrote: On 6-2-2012 17:50, Henry Vermaak wrote: On 06/02/12 16:40, Reinier Olislagers wrote: Perhaps I should submit a patch for the docs indicating that: - ForceDirectories requires an absolute path This is wrong

[fpc-pascal] Re: Too tired? Forcedirectories does not seem to work

2012-02-06 Thread Reinier Olislagers
On 6-2-2012 20:48, Sven Barth wrote: On 06.02.2012 19:31, Reinier Olislagers wrote: Task for tomorrow is to find out how to do chmod u+x someexecutable, but that's for tomorrow - right now I'm liable to start throwing keyboards through the window or falling asleep ;) The documentation

[fpc-pascal] Free! Partly done zipper documentation... heads up for people wanting to work on it

2012-02-07 Thread Reinier Olislagers
Hi list, I've noticed at least one effort to document the zipper unit on a mailing list, bugtracker, forum or website. To find out how FPC/Lazarus documentation worked, I had started work on zipper documentation as well because it's a fairly short unit. I included (paraphrased ;) references to

[fpc-pascal] Code works on Linux x64 but not on Linux x86

2012-02-07 Thread Reinier Olislagers
I have the following code, adapted from pasbzip.pas (bzip2 example) uses ...bzip2.. const BufferSize = 4096; var infile, outfile: Tbufstream; decoder: Tbzip2_decode_stream; a: array[1..BufferSize] of byte; readsize: cardinal; Status: boolean; begin Status := False; result:=false;

Re: [fpc-pascal] Too tired? Forcedirectories does not seem to work

2012-02-07 Thread Reinier Olislagers
On 7-2-2012 17:37, Jürgen Hestermann wrote: Reinier Olislagers schrieb: But ~ is not the only placeholder that will be expanded. Relative paths would become absolute paths and environment variables will be replaced by their values too. And I think it's not restricted to Linus/Unix, it happens

Re: [fpc-pascal] Too tired? Forcedirectories does not seem to work

2012-02-07 Thread Reinier Olislagers
On 7-2-2012 18:34, Jürgen Hestermann wrote: Reinier Olislagers schrieb: That's fine. If you just say anything gets expanded to an absolute path, in my mind: 1. you're implying the thing you're expanding is relative (even if you're not saying so) No, IMO this is not true. A relative path

[fpc-pascal] Re: Code works on Linux x64 but not on Linux x86

2012-02-07 Thread Reinier Olislagers
On 7-2-2012 19:48, Sven Barth wrote: On 07.02.2012 17:12, Reinier Olislagers wrote: Code bombs at decoder.Read(a, readsize). readsize=0 according to debugger. readsize=cardinal; according to help an unsigned 32-bit integer. However, http://wiki.lazarus.freepascal.org

Re: [fpc-pascal] Re: Code works on Linux x64 but not on Linux x86

2012-02-07 Thread Reinier Olislagers
On 7-2-2012 21:11, Sven Barth wrote: On 07.02.2012 20:32, Reinier Olislagers wrote: So in Delphi, presumably cardinal varies between 32 and 64 bit, while in FPC it is always 32 bit. Or am I interpreting this incorrectly? Yes, you are interpreting this incorrectly. ;) snip Regards, Sven

Re: [fpc-pascal] Re: Code works on Linux x64 but not on Linux x86

2012-02-07 Thread Reinier Olislagers
On 7-2-2012 21:11, Sven Barth wrote: On 07.02.2012 20:32, Reinier Olislagers wrote: On 7-2-2012 19:48, Sven Barth wrote: On 07.02.2012 17:12, Reinier Olislagers wrote: Code bombs at decoder.Read(a, readsize). readsize=0 according to debugger. Ok, then I don't know right now what

[fpc-pascal] FPCDocs: diff: saving fpdoc gives huge diff

2012-02-07 Thread Reinier Olislagers
fpdocs Revision 889 svn revert --recursive . Open FPDocEditor on ExpandFileName, type a space somewhere, click Save icon. (Space seems to be automatically removed) This gives a 605 kb diff file; uploaded to

[fpc-pascal] Re: FPCDocs: diff: saving fpdoc gives huge diff

2012-02-07 Thread Reinier Olislagers
On 8-2-2012 4:56, Reinier Olislagers wrote: fpdocs Revision 889 svn revert --recursive . Open FPDocEditor on ExpandFileName, type a space somewhere, click Save icon. (Space seems to be automatically removed) This gives a 605 kb diff file; uploaded to https://bitbucket.org/reiniero

Re: [fpc-pascal] FPCDocs: diff: saving fpdoc gives huge diff

2012-02-08 Thread Reinier Olislagers
On 8-2-2012 10:15, michael.vancann...@wisa.be wrote: On Wed, 8 Feb 2012, Mattias Gaertner wrote: On Wed, 8 Feb 2012 09:26:10 +0100 (CET) michael.vancann...@wisa.be wrote: On Wed, 8 Feb 2012, Reinier Olislagers wrote: To my untrained (and probably tired ;) eye), it seems that the file had

[fpc-pascal] Re: FPCDocs: diff: saving fpdoc gives huge diff

2012-02-09 Thread Reinier Olislagers
On 9-2-2012 0:56, Mattias Gaertner wrote: On Wed, 8 Feb 2012 16:03:05 +0100 Mattias Gaertner nc-gaertnma-uiqtaje4tzc5wgrkcbd...@public.gmane.org wrote: [...] Of course it would be nicer if the used xml readers/writers can be told to keep the spaces. Especially for version control systems. I

[fpc-pascal] Request to fix 2124, was: Code works on Linux x64 but not on Linux x86

2012-02-09 Thread Reinier Olislagers
On 8-2-2012 4:14, Reinier Olislagers wrote: Raised bug 21242 Marco v.d. Voort suggested turning off the include for i386 assembly code. This fixed the problem (in FPC fixes 2.6, bzip2 code identical with trunk). I've also uploaded a test case to mantis. Could somebody comment out the assembly

[fpc-pascal] Problems with moving/renaming file using sysutils.renamefile

2012-02-10 Thread Reinier Olislagers
Free Pascal Compiler version 2.6.0-1 [2012/01/13] for i386 Linux x86 Trying to move a file (and rename it at the same time): //ExtractedCompiler is a string variable //BootstrapCompiler is a string property //I'm using my own version of debugln, not important here debugln('Going to rename/move '

Re: [fpc-pascal] Problems with moving/renaming file using sysutils.renamefile

2012-02-10 Thread Reinier Olislagers
On 10-2-2012 13:09, Jonas Maebe wrote: On 10 Feb 2012, at 12:19, Reinier Olislagers wrote: Trying to move a file (and rename it at the same time): //ExtractedCompiler is a string variable //BootstrapCompiler is a string property //I'm using my own version of debugln, not important here

[fpc-pascal] Re: Problems with moving/renaming file using sysutils.renamefile

2012-02-10 Thread Reinier Olislagers
On 10-2-2012 13:39, Marco van de Voort wrote: In our previous episode, Reinier Olislagers said: 1. Renaming is not moving??? The help says: RenameFile renames a file from OldName to NewName. The function returns True if successful, False otherwise. Remark: you cannot rename across disks

[fpc-pascal] Re: Problems with moving/renaming file using sysutils.renamefile

2012-02-10 Thread Reinier Olislagers
On 10-2-2012 13:42, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: On Fri, 10 Feb 2012, Reinier Olislagers wrote: On 10-2-2012 13:09, Jonas Maebe wrote: 1. Renaming is not moving??? The help says: RenameFile renames a file from OldName to NewName. The function returns True

[fpc-pascal] FPCUp FPC/Lazarus installer/updater: first Linux/Windows version released

2012-02-10 Thread Reinier Olislagers
Hi all, With the help of the people on the forums and the lists, I've completed the first version of FPCup, a tool that downloads FPC and Lazarus sources from SVN, compiles and installs them. For Windows, it offers bare-metal install functionality: it downloads an SVN executable and the binutils

[fpc-pascal] Re: RE : FPCUp FPC/Lazarus installer/updater: first Linux/Windows version released

2012-02-10 Thread Reinier Olislagers
On 10-2-2012 17:27, Ludo Brands wrote: Very nice! Thanks. Suggestions: :) - replace 'Debug:' with 'Progress:' or 'Info:'. The messages are useful :) Yep, basically left a debug build up. Did intend to trim the messages some. Done in currnet commit. - show some progress when checking out

[fpc-pascal] Re: RE : Re: RE : FPCUp FPC/Lazarus installer/updater: first Linux/Windows version released

2012-02-10 Thread Reinier Olislagers
On 10-2-2012 18:29, Ludo Brands wrote: - show some progress when checking out sources. The wait can be very long. Ok. I think I will need help on that one but will come back to the list... Echoing the output from svn to the console would be enough. It will also show the revision you are

[fpc-pascal] Re: RE : Re: RE : FPCUp FPC/Lazarus installer/updater: first Linux/Windows version released

2012-02-10 Thread Reinier Olislagers
On 10-2-2012 18:23, Ludo Brands wrote: - (I hesitated to put this in the category bugs) lazarus is configured to use (default on ubuntu) ~/fpc/bin/fpc. I have 2.4.4 installed with a /etc/fpc.cfg and ~/fpc/bin/fpc will just launch 2.4.4. Changing the compiler to ~/fpc/compiler/ppc386 and

[fpc-pascal] Re: RE : Re: RE : Re: RE : FPCUp FPC/Lazarus installer/updater: first Linux/Windows version released

2012-02-11 Thread Reinier Olislagers
On 11-2-2012 10:30, Ludo Brands wrote: #!/bin/sh ~/wherever/we/installed/fpc -n @~/wherever/we/installed/fpc.cfg $* which should instruct our fpc to ignore any other fpc.cfg, use our own, and get any other arguments passed to the script. Then assign this script as the compiler in

[fpc-pascal] Re: RE : Re: RE : Re: RE : FPCUp FPC/Lazarus installer/updater: first Linux/Windows version released

2012-02-11 Thread Reinier Olislagers
On 11-2-2012 10:30, Ludo Brands wrote: One other problem: the debugger is configured as gdb which is not working. Lazarus looks for a gdb in the current directory (whatever that is), not in the path. Using the output of 'which gdb' would be the easiest solution on linux to set up the default

Re: [fpc-pascal] Re: RE : Re: RE : FPCUp FPC/Lazarus installer/updater: first Linux/Windows version released

2012-02-11 Thread Reinier Olislagers
On 11-2-2012 13:15, Mattias Gaertner wrote: Reinier Olislagers reinierolislag...@gmail.com hat am 11. Februar 2012 um 08:28 geschrieben: On 10-2-2012 18:23, Ludo Brands wrote: - (I hesitated to put this in the category bugs) lazarus is configured to use (default on ubuntu) ~/fpc/bin/fpc

[fpc-pascal] Re: RE : Re: RE : Re: RE : Re: RE : FPCUp FPC/Lazarus installer/updater: first Linux/Windows version released

2012-02-11 Thread Reinier Olislagers
On 11-2-2012 14:19, Ludo Brands wrote: Regarding side by side installations, wouldn't it be better to store the lazarus config in a subdir of the lazarus install? A fixed directory makes side by side installation of lazarus very difficult. You mean a --primary-config path underneath the

[fpc-pascal] Re: RE : Re: RE : Re: RE : Re: RE : Re: RE : FPCUp FPC/Lazarus installer/updater: first Linux/Windows version released

2012-02-11 Thread Reinier Olislagers
On 11-2-2012 14:42, Ludo Brands wrote: Why not create a fpcup script or link alongside the launcher(s) that take the same parameters as the one use to create the launcher? Something like 'lazlinkname' and 'lazlinkname Update'. Mmm, don't get what you mean here. What do you mean by

[fpc-pascal] Re: RE : Re: RE : Re: RE : Re: RE : FPCUp FPC/Lazarus installer/updater: first Linux/Windows version released

2012-02-11 Thread Reinier Olislagers
On 11-2-2012 14:32, Marco van de Voort wrote: In our previous episode, Ludo Brands said: Then again, current fpcup does not have a fixed primary-config-path, merely a default one. Unless I overlooked something, the primary-config-path is pretty hardcoded now

[fpc-pascal] Re: RE : Re: RE : Re: RE : Re: RE : FPCUp FPC/Lazarus installer/updater: first Linux/Windows version released

2012-02-11 Thread Reinier Olislagers
On 11-2-2012 14:19, Ludo Brands wrote: Regarding side by side installations, wouldn't it be better to store the lazarus config in a subdir of the lazarus install? A fixed directory makes side by side installation of lazarus very difficult. You mean a --primary-config path underneath the

[fpc-pascal] Re: Adding Notes in FPDoc

2012-02-11 Thread Reinier Olislagers
On 11-2-2012 20:35, Michael Van Canneyt wrote: On Sat, 11 Feb 2012, Howard Page-Clark wrote: The prospect of a website dedicated to discussion of documentation seems to me to be a helpful move forward. It's not really about discussion (fed up with that, if you can believe it ;) ), but about

[fpc-pascal] Re: FPCUp FPC/Lazarus installer/updater: first Linux/Windows version released

2012-02-11 Thread Reinier Olislagers
On 11-2-2012 22:05, Rainer Stratmann wrote: Sorry for not reading the whole thread. But is it then also possible to povide a binary version of each (Linux) distro for easiest installing (just unzip the archive)? FPC and Lazarus in one sub directory? fpcup downloads (or updates) and

[fpc-pascal] Re: Problems with moving/renaming file using sysutils.renamefile

2012-02-12 Thread Reinier Olislagers
On 10-2-2012 13:59, Reinier Olislagers wrote: On 10-2-2012 13:42, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: The function just renames. The result may be that the file ends up in another directory, i.e. is moved. Mmm yes. To me that is arguing over semantics. Or maybe we're trying

Re: [fpc-pascal] FPCUp FPC/Lazarus installer/updater: first Linux/Windows version released

2012-02-15 Thread Reinier Olislagers
On 14-2-2012 23:43, stootch wrote: W dniu 2012-02-14 10:41, reinierolislag...@gmail.com pisze: You might try with a newer version; we have found and hopefully fixed some problems with lazarus make... Um... Info: make FPC=/home/stootch/fpc/bin/fpc.sh --directory=/home/stootch/lazarus

[fpc-pascal] Re: FPCUp FPC/Lazarus installer/updater: first Linux/Windows version released

2012-02-15 Thread Reinier Olislagers
On 14-2-2012 23:43, stootch wrote: W dniu 2012-02-14 10:41, reinierolislagers-re5jqeeqqe8avxtiumw...@public.gmane.org pisze: You might try with a newer version; we have found and hopefully fixed some problems with lazarus make... Um... Info: make FPC=/home/stootch/fpc/bin/fpc.sh

[fpc-pascal] fpdoc slow on Linux x64... tweaking?

2012-02-21 Thread Reinier Olislagers
Running fpcup on Linux x86, Linux x64 with FPC fixes_2_6 Building LCL chm docs with build_lcl_docs, which calls fpdoc: On x86, seems to works ok. On x64, takes a long time. fpdoc takes a huge amount of CPU (perhaps memory as well, haven't looked). I suspect the reason the doc generation is slow

Re: [fpc-pascal] fpdoc slow on Linux x64... tweaking?

2012-02-22 Thread Reinier Olislagers
On 22-2-2012 9:16, Graeme Geldenhuys wrote: On 22 February 2012 09:49, Reinier Olislagers wrote: 2) Is there anything else I can do to speed up LCL doc generation? You are building CHM help, correct? If so, from recent messages in the FPC and Lazarus mailing lists, that is your problem

[fpc-pascal] Re: Where and how is the FPC documentation created?

2012-02-29 Thread Reinier Olislagers
On 29-2-2012 18:57, Frank Church wrote: On 29 February 2012 16:07, michael.vancann...@wisa.be mailto:michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: Is it open to only a few people and do you upload it for general viewing only when it is ready? In a nutshell is it

[fpc-pascal] Re: Where and how is the FPC documentation created?

2012-02-29 Thread Reinier Olislagers
On 29-2-2012 17:07, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: On Wed, 29 Feb 2012, Frank Church wrote: Another question, are you and Florian Klaempfl the main or only contributors? I am virtually the only one, but I do receive and apply minor patches from time to time. *Cough*

Re: [fpc-pascal] Re: Where and how is the FPC documentation created?

2012-02-29 Thread Reinier Olislagers
On 29-2-2012 20:08, Frank Church wrote: On 29 February 2012 18:10, Reinier Olislagers reinierolislag...@gmail.com mailto:reinierolislag...@gmail.com wrote: *Cough* http://bugs.freepascal.org/view.php?id=20735 *cough* I'd love to see that patch committed or get some feedback

Re: [fpc-pascal] Re: Where and how is the FPC documentation created?

2012-03-01 Thread Reinier Olislagers
On 29-2-2012 20:52, Michael Van Canneyt wrote: On Wed, 29 Feb 2012, Reinier Olislagers wrote: On 29-2-2012 17:07, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: On Wed, 29 Feb 2012, Frank Church wrote: Another question, are you and Florian Klaempfl the main or only contributors

Re: [fpc-pascal] Re: Where and how is the FPC documentation created?

2012-03-01 Thread Reinier Olislagers
On 1-3-2012 9:16, Frank Church wrote: On 29 February 2012 19:52, Michael Van Canneyt mich...@freepascal.org On Wed, 29 Feb 2012, Reinier Olislagers wrote: I'd love to see that patch committed or get some feedback on it ;) But there were quite some errors in the XML, which

Re: [fpc-pascal] Re: Where and how is the FPC documentation created?

2012-03-01 Thread Reinier Olislagers
On 1-3-2012 9:43, michael.vancann...@wisa.be wrote: On Thu, 1 Mar 2012, Reinier Olislagers wrote: On 29-2-2012 20:52, Michael Van Canneyt wrote: On Wed, 29 Feb 2012, Reinier Olislagers wrote: On 29-2-2012 17:07, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: On Wed, 29 Feb

Re: [fpc-pascal] Re: Where and how is the FPC documentation created?

2012-03-01 Thread Reinier Olislagers
On 1-3-2012 10:29, Graeme Geldenhuys wrote: On 1 March 2012 10:49, Reinier Olislagers wrote: I understand why you changed it, but didn't get any error messages either - just redownloaded the original patch upload to make sure: Strange. I did the same test, and got lots of errors. And I get

[fpc-pascal] @Michael Van Canneyt or others: exporting SQL (issue 19937)

2012-03-17 Thread Reinier Olislagers
Good morning Michael the rest, Would any of you committers who are familiar with SQL check to see if my patch at http://bugs.freepascal.org/view.php?id=19937 is correct and implement it? Currently, exporting a dataset using TSQLExporter, it generates INSERT SQL statements which quote string

[fpc-pascal] Re: @Michael Van Canneyt or others: exporting SQL (issue 19937)

2012-03-17 Thread Reinier Olislagers
On 17-3-2012 11:10, Michael Van Canneyt wrote: On Sat, 17 Mar 2012, Reinier Olislagers wrote: Would any of you committers who are familiar with SQL check to see if my patch at http://bugs.freepascal.org/view.php?id=19937 is correct and implement it? Checked and applied, thank you very much

[fpc-pascal] Cygwin dlls in binw32

2012-03-22 Thread Reinier Olislagers
Hi list, While fiddling with fpcup and looking at various binutils URLs, I noticed that http://svn.freepascal.org/svn/fpcbuild/trunk/install/binw32/ has cygiconv-2.dll cygncurses-8.dll cygwin1.dll Are these required by any of the other executables there? Ludo Brands has run depends.exe on the

[fpc-pascal] Database questions re 21579: [Patch] Dbtestframework compilationf fixes for Win64

2012-03-28 Thread Reinier Olislagers
Hi list, I've submitted a patch (21579) to allow win64 dbtestframework compilation. It does that by disabling support for some databases. Oracle, PostgreSQL, MS SQL Server and Sybase connectors are not built on Win64: see packages\fcl-db\src\sqldb\postgres\fpmake.pp Speculated with Lacak2 in

Re: [fpc-pascal] Database questions re 21579: [Patch] Dbtestframework compilationf fixes for Win64

2012-03-28 Thread Reinier Olislagers
On 28-3-2012 11:04, Sven Barth wrote: Am 28.03.2012 10:29, schrieb Reinier Olislagers: Oracle instant client for Windows x64 (the download size makes it... not so instant though) http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html It's called instant client

Re: [fpc-pascal] Database questions re 21579: [Patch] Dbtestframework compilationf fixes for Win64

2012-03-28 Thread Reinier Olislagers
On 28-3-2012 11:36, Sven Barth wrote: Am 28.03.2012 11:12, schrieb Reinier Olislagers: On 28-3-2012 11:04, Sven Barth wrote: Am 28.03.2012 10:29, schrieb Reinier Olislagers: Do you know why it's not compiled on Win64? Do you want the reason why it's not compiled in the view of fpmake

[fpc-pascal] Re: Is there a function that returns UTC time in FPC or Lazarus?

2012-03-30 Thread Reinier Olislagers
On 30-3-2012 16:05, Frank Church wrote: When I get the time via the DateTime function result is adapted for the timezone, making it an hour ahead now? Is there a function that returns the UTC time, either as a UnixTime or TDateTime irregardless of timezone? Frank, You could search the fpc

[fpc-pascal] Heads up: started on MS SQL Server+Sybase ASE support for LazDataDesktop and FPdatadict

2012-04-14 Thread Reinier Olislagers
Hi lists, Just to let you know, I've started working on getting support for the new Microsoft SQL Server and Sybase ASE connectors into Lazdatadesktop. For that, I've started adding to the fpdatadict code (started out with a copy of the Firebird code). Code at my usual patch playground:

[fpc-pascal] SQLDB GetSchemaInfoSQL for indexes etc?

2012-04-17 Thread Reinier Olislagers
In sqldb, this: type TSchemaType = (stNoSchema, stTables, stSysTables, stProcedures, stColumns, stProcedureParams, stIndexes, stPackages); is used in the GetSchemaInfoSQL function: I noticed stIndexes, stProcedureParams and stPackages do not seem to be used in the current sqldb connectors in

[fpc-pascal] Re: SQLDB GetSchemaInfoSQL for indexes etc?

2012-04-17 Thread Reinier Olislagers
On 17-4-2012 13:33, LacaK wrote: Does it perhaps follow ODBC conventions or something? or SQL-Standard INFORMATION_SCHEMA views ;-) While I know that standard exists - I can tell without looking it up that the integer table_type column we're using is a vendor specific extra - that's how

[fpc-pascal] Re: SQLDB GetSchemaInfoSQL for indexes etc?

2012-04-17 Thread Reinier Olislagers
On 17-4-2012 12:58, LacaK wrote: ... assuming SchemaObjectName would be used similar to the existing code and would specify table name (stIndexes)/stored proc name (stProcedureParams)? See http://docwiki.embarcadero.com/VCL/XE2/en/SqlExpr.TCustomSQLDataSet.SetSchemaInfo Thanks Laco, very

[fpc-pascal] Re: SQLDB GetSchemaInfoSQL for indexes etc?

2012-04-19 Thread Reinier Olislagers
On 19-4-2012 9:41, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: On Thu, 19 Apr 2012, Reinier Olislagers wrote: Plans = I'll focus on getting lazdatadesktop/datadict support for MSSQL/Sybase running first; afterwards we can look at the things we can add for other databases

<    1   2   3   4   5   6   7   8   >